|
1 | 1 | // Node-side public API for hosts that wire up their own runtime — the |
2 | | -// server-assembly surface (`createHostContext` → `startHttpAndWs`), the |
3 | | -// instance registry, storage, and the two URL/host helpers consumers use. |
| 2 | +// server-assembly surface (`createHostContext` → `createH3DevframeHost` → |
| 3 | +// `startHttpAndWs`) and storage. |
4 | 4 | // |
5 | | -// The diagnostics/services/views hosts, the streaming/shared-state/scope/ |
6 | | -// settings factories, and the internal host helpers (`toDialableHost`, |
7 | | -// `formatHostForUrl`) stay internal. `toAgentToolName` lives at |
8 | | -// `devframe/utils/agent-tool-name` (a client-safe string transform). |
9 | | -// |
10 | | -// The low-level primitives shared only between `devframe` and `@devframes/hub` |
11 | | -// — `createContextRpcServer`, `DevframeAgentHost`, `coerceAgentPositionalArgs` |
12 | | -// — live at `devframe/internal` (an explicitly-unstable cross-package surface), |
13 | | -// not here. |
| 5 | +// Everything lower-level lives at `devframe/internal` (an explicitly-unstable |
| 6 | +// cross-package surface): the transport-agnostic RPC core, the agent host, the |
| 7 | +// instance registry (host self-registration + live discovery), and the |
| 8 | +// `isObject` / `normalizeHttpServerUrl` helpers. The diagnostics/services/views |
| 9 | +// hosts, the streaming/shared-state/scope/settings factories, and the internal |
| 10 | +// host-URL helpers stay fully internal (relative imports only). |
| 11 | +// `toAgentToolName` lives at `devframe/utils/agent-tool-name`. |
14 | 12 | export * from './context' |
15 | 13 | // `RpcFunctionsHostImpl` stays internal; expose only the structural |
16 | 14 | // `RpcFunctionsHost` type so consumers can type/cast `ctx.rpc` without |
17 | 15 | // pulling in the implementation's `@internal` members. |
18 | 16 | export type { RpcFunctionsHost } from './host-functions' |
19 | 17 | export * from './host-h3' |
20 | | -// Registration is public — custom hosts (e.g. @devframes/next) record |
21 | | -// themselves — and live discovery is public too, so surfaces like the |
22 | | -// inspect plugin's Instances tab can enumerate running instances. The |
23 | | -// lower-level read/probe/prune helpers stay internal to the connector. |
24 | | -export { listLiveDevframeInstances, registerDevframeInstance } from './instance-registry' |
25 | | -export type { DevframeInstanceRecord, DevframeInstanceRegistration } from './instance-registry' |
26 | 18 | export * from './server' |
27 | 19 | export * from './storage' |
28 | | -export { isObject, normalizeHttpServerUrl } from './utils' |
0 commit comments