The root: provides nothing and requires nothing; it exists so the groups have a scope to see each other in.
API
@Module({
children: [
RuntimeModule,
SettingsModule,
AccountDataModule,
PluginConfigModule,
PluginSourceSettingsModule,
PluginIndexModule,
IdentityModule,
ProjectsModule,
SessionRuntimeModule,
ObservabilityModule,
TracesModule,
AgentsModule,
WorkspaceModule,
MessagingHubModule,
CompanyModule,
ApiModule,
PluginLibraryModule,
PluginModulesModule,
SandboxModule,
SandboxSettingsModule,
TerminalModule,
MachinesModule,
TerminalRelay,
SessionForwardRoutes,
HistoryRoutes,
HistoryLinesRoutes,
WorkbenchesModule,
ModelToolsModule,
ThemesModule,
AgentApiModule,
Startup,
],
})
export class PlatformModule {}Children (31)
RuntimeModule
The tree, grouped by mechanism. Each group is a @Module whose exports are the interfaces its children offer the rest of the tree; everything else in a group — the repos, the seams a test replaces, the route components — is visible only inside it. A whole group is replaceable, and so is any node inside one.
View module → (packages/server/src/platform.ts:301)
Config Db Channels Proxy Hmr HmrControl Reassembly Desktop AuthState ResourceGroups Log Clock Paths DataLayoutSettingsModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:431)
AccountDataModule
What an account keeps on the server beside its preferences: unsent drafts and the custom background image. A group of its own rather than part of the settings group, so a stand-in for the settings store does not have to stand in for these too.
View module → (packages/server/src/platform.ts:442)
PluginConfigModule
Plugin configuration as a group of its own, beside the settings it is stored in: a plugin that stands in for the settings group replaces the store, not the schema-and-watch layer over it, and a plugin's manifest names this module as where PluginConfig comes from.
View module → (packages/server/src/platform.ts:453)
PluginSourceSettingsModule
Plugin sources as a group of their own: the settings node declares the group and applies it to the installer, and needs plugin configuration (and through it the database), so it sits above it — the same shape the sandbox settings' module has.
View module → (packages/server/src/platform.ts:464)
PluginIndexModule
The plugin index's sources as a settings group, and the reader the listing and the install face ask per request: above the config store (it reads the document) and beside the routes that consume it.
View module → (packages/server/src/platform.ts:475)
IdentityModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:337)
ProjectsModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:354)
SessionRuntimeModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:393)
ObservabilityModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:492)
TracesModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:498)
AgentsModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:504)
WorkspaceModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:518)
MessagingHubModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:524)
CompanyModule
Company mode: the organization runtime, its routes and the caches they project into. The caches are the group's own store — only the four members the session runtime and Project deletion reach for leave the group, as OrgCache.
View module → (packages/server/src/platform.ts:547)
ApiModule
No JSDoc comment in source.
View module → (packages/server/src/platform.ts:553)
PluginLibraryModule
No JSDoc comment in source.
View module → (packages/server/src/plugin/library-module.ts:102)
PluginModulesModule
A library plugin's server modules, brought along by an install on an Agent (PRFC-0031): the ledger of requests and decisions, the record of preinstalled modules handled per Project (PRFC-0030), the service that applies the rule, the member's and the administrator's routes, and the slot a module declares the system app it provides in (SystemAppModule.apps). Its own group: the Agent service and the installed-plugins routes reach it as PluginModules, and nothing else reads the ledger.
View module → (packages/server/src/platform.ts:626)
SandboxModule
No JSDoc comment in source.
View module → (packages/server/src/sandbox/service.ts:54)
SandboxSettingsModule
Sandbox settings as a group of their own: the sandbox service boots on the capability-free floor, while its settings group and the node applying it need plugin configuration (and through it the database), so they sit above it.
View module → (packages/server/src/platform.ts:486)
TerminalModule
No JSDoc comment in source.
View module → (packages/server/src/terminal/manager.ts:34)
TerminalModule.routesMachinesModule
No JSDoc comment in source.
View module → (packages/server/src/machines/service.ts:45)
MachinesModule.routes MachinesModule.server-proxyTerminalRelay
No JSDoc comment in source.
View component → (library/machine/src/terminal-relay.ts:258)
SessionForwardRoutes
No JSDoc comment in source.
View component → (packages/server/src/machines/session-forward.ts:21)
SessionForwardRoutes.routesHistoryRoutes
No JSDoc comment in source.
View component → (packages/server/src/http/routes/history.ts:24)
HistoryRoutes.routesHistoryLinesRoutes
No JSDoc comment in source.
View component → (packages/server/src/http/routes/history-lines.ts:24)
HistoryLinesRoutes.routesWorkbenchesModule
Workbenches, and the Agent State history behind their versions: AgentStateHistoryModule owns the engines slot a plugin contributes a faster engine to (./workbenches/engines.ts).
View module → (packages/server/src/platform.ts:592)
ModelToolsModule
What a plugin's model tools stand on: the bindings plugins declare, and requests to a Project model outside a chat turn. A group of its own, above the Projects, Sessions and usage it reads and the machines its bindings travel to; no operation is named here — those are the plugins'.
View module → (packages/server/src/platform.ts:603)
ThemesModule
The server's theme packs: the store under the data root and the routes over it. Its own group: nothing else reads the store, and a pack is a per-server web resource, not a plugin.
View module → (packages/server/src/platform.ts:613)
AgentApiModule
The Agent API: per-Agent settings and keys in web.db, and the public AMSP routes.
View module → (packages/server/src/amsp/module.ts:86)
Startup
The platform's module tree: the root module and its children, in one place.
View component → (packages/server/src/platform.ts:241)
Exports (0)
None (module-private).