feat(web): inject workspace instructions

This commit is contained in:
Dudu-0223
2026-07-23 14:11:25 +08:00
parent edb999fd0f
commit 1ba00bf80c
12 changed files with 199 additions and 19 deletions
+6 -1
View File
@@ -78,7 +78,12 @@ export async function runHeadless(argv: string[]): Promise<void> {
}
// A missing DEEPSEEK_API_KEY throws here (plugin load is fail-loud, uncaught by design).
const host = await startHost({ boot: { persistenceRoot: './.sessions' } })
const host = await startHost({
boot: {
persistenceRoot: './.sessions',
workspaceContext: false,
},
})
const api = new InProcessApiClient(host.handler)
const created = await unwrap(await api.sessions.create({}), () => host.dispose())
+6 -1
View File
@@ -36,7 +36,12 @@ export async function runWeb(argv: string[]): Promise<void> {
}
// A missing DEEPSEEK_API_KEY throws here (plugin load is fail-loud, uncaught by design).
const host = await startHost({ boot: { persistenceRoot: './.sessions' } })
const host = await startHost({
boot: {
persistenceRoot: './.sessions',
workspaceContext: { maxBytes: 65_536 },
},
})
// Web UI plugin chain: in-memory Loader tree over the eight UI packages,
// then the registry that feeds __DSH_BOOT__ and /plugins/<id>/client.js.