ShareServer previously existed only as design documents. The repository now includes a standalone Hono service and a responsive React management-console prototype covering administrator and member workflows, with local build, test, and container entry points. The sharing design now includes organization-scoped digital agents and explicit local partitioned-memory selection for @ calls. Memory documentation consistently uses partitioned memory and treats time or internal events only as optional recall triggers. This remains an interactive prototype: fixture actions do not persist, and production authentication, PostgreSQL isolation, device connections, routing, relay, and federation still require implementation. Release note: 新增可独立运行的 ShareServer 管理控制台交互原型,并完善组织数字人与分区记忆共享设计;当前原型数据和操作不会写入生产系统。
10 lines
349 B
TypeScript
10 lines
349 B
TypeScript
import { serve } from '@hono/node-server'
|
|
import { app } from './app.js'
|
|
|
|
const port = Number(process.env.SHARESERVER_PORT ?? 8787)
|
|
const hostname = process.env.SHARESERVER_HOST ?? '127.0.0.1'
|
|
|
|
serve({ fetch: app.fetch, port, hostname }, (info) => {
|
|
console.log(`ShareServer interactive prototype listening on http://${hostname}:${info.port}`)
|
|
})
|