@tianshu-ai/tianshu 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +200 -0
- package/README.md +284 -0
- package/README.zh-CN.md +136 -0
- package/bin/tianshu.mjs +32 -0
- package/package.json +60 -0
- package/packages/plugin-sdk/dist/agent-loop.d.ts +96 -0
- package/packages/plugin-sdk/dist/agent-loop.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/agent-loop.js +11 -0
- package/packages/plugin-sdk/dist/agent-loop.js.map +1 -0
- package/packages/plugin-sdk/dist/capabilities.d.ts +48 -0
- package/packages/plugin-sdk/dist/capabilities.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/capabilities.js +61 -0
- package/packages/plugin-sdk/dist/capabilities.js.map +1 -0
- package/packages/plugin-sdk/dist/catalog.d.ts +60 -0
- package/packages/plugin-sdk/dist/catalog.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/catalog.js +11 -0
- package/packages/plugin-sdk/dist/catalog.js.map +1 -0
- package/packages/plugin-sdk/dist/client.d.ts +171 -0
- package/packages/plugin-sdk/dist/client.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/client.js +96 -0
- package/packages/plugin-sdk/dist/client.js.map +1 -0
- package/packages/plugin-sdk/dist/index.d.ts +9 -0
- package/packages/plugin-sdk/dist/index.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/index.js +19 -0
- package/packages/plugin-sdk/dist/index.js.map +1 -0
- package/packages/plugin-sdk/dist/lsp.d.ts +32 -0
- package/packages/plugin-sdk/dist/lsp.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/lsp.js +19 -0
- package/packages/plugin-sdk/dist/lsp.js.map +1 -0
- package/packages/plugin-sdk/dist/manifest.d.ts +423 -0
- package/packages/plugin-sdk/dist/manifest.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/manifest.js +7 -0
- package/packages/plugin-sdk/dist/manifest.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-client.d.ts +74 -0
- package/packages/plugin-sdk/dist/mcp-client.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-client.js +226 -0
- package/packages/plugin-sdk/dist/mcp-client.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-fetch.d.ts +10 -0
- package/packages/plugin-sdk/dist/mcp-fetch.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-fetch.js +130 -0
- package/packages/plugin-sdk/dist/mcp-fetch.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-toolset.d.ts +128 -0
- package/packages/plugin-sdk/dist/mcp-toolset.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-toolset.js +246 -0
- package/packages/plugin-sdk/dist/mcp-toolset.js.map +1 -0
- package/packages/plugin-sdk/dist/server.d.ts +486 -0
- package/packages/plugin-sdk/dist/server.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/server.js +10 -0
- package/packages/plugin-sdk/dist/server.js.map +1 -0
- package/packages/plugin-sdk/dist/session-inbox.d.ts +56 -0
- package/packages/plugin-sdk/dist/session-inbox.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/session-inbox.js +12 -0
- package/packages/plugin-sdk/dist/session-inbox.js.map +1 -0
- package/packages/plugin-sdk/package.json +36 -0
- package/packages/server/builtinConfig/plugins/README.md +1 -0
- package/packages/server/builtinConfig/plugins/files/manifest.json +100 -0
- package/packages/server/builtinConfig/plugins/files/skills/files-workspace-layout.md +29 -0
- package/packages/server/builtinConfig/plugins/microsandbox/manifest.json +177 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-browser-howto.md +155 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-build-use.md +201 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-config.md +38 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-exec-howto.md +144 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-libreoffice.md +159 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-main-orchestration.md +75 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/README.md +26 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/browser.yaml +105 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/task-runner-with-browser.yaml +80 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/task-runner.yaml +80 -0
- package/packages/server/builtinConfig/plugins/web-search/manifest.json +65 -0
- package/packages/server/builtinConfig/plugins/web-search/skills/web-search-howto.md +69 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/echo-demo/agent.json +7 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/llm-default/SOUL.md +53 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/llm-default/agent.json +7 -0
- package/packages/server/builtinConfig/plugins/workboard/manifest.json +180 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/large-input-large-output.md +185 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/workboard-howto.md +166 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/worker-creator.md +267 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/worker-fleet.md +431 -0
- package/packages/server/dist/catalog.d.ts +52 -0
- package/packages/server/dist/catalog.d.ts.map +1 -0
- package/packages/server/dist/catalog.js +189 -0
- package/packages/server/dist/catalog.js.map +1 -0
- package/packages/server/dist/chat/active-harnesses.d.ts +34 -0
- package/packages/server/dist/chat/active-harnesses.d.ts.map +1 -0
- package/packages/server/dist/chat/active-harnesses.js +118 -0
- package/packages/server/dist/chat/active-harnesses.js.map +1 -0
- package/packages/server/dist/chat/agent-loop.d.ts +64 -0
- package/packages/server/dist/chat/agent-loop.d.ts.map +1 -0
- package/packages/server/dist/chat/agent-loop.js +597 -0
- package/packages/server/dist/chat/agent-loop.js.map +1 -0
- package/packages/server/dist/chat/agent-tool-adapter.d.ts +33 -0
- package/packages/server/dist/chat/agent-tool-adapter.d.ts.map +1 -0
- package/packages/server/dist/chat/agent-tool-adapter.js +260 -0
- package/packages/server/dist/chat/agent-tool-adapter.js.map +1 -0
- package/packages/server/dist/chat/compact.d.ts +52 -0
- package/packages/server/dist/chat/compact.d.ts.map +1 -0
- package/packages/server/dist/chat/compact.js +248 -0
- package/packages/server/dist/chat/compact.js.map +1 -0
- package/packages/server/dist/chat/dump-system-prompt.d.ts +17 -0
- package/packages/server/dist/chat/dump-system-prompt.d.ts.map +1 -0
- package/packages/server/dist/chat/dump-system-prompt.js +58 -0
- package/packages/server/dist/chat/dump-system-prompt.js.map +1 -0
- package/packages/server/dist/chat/handler.d.ts +186 -0
- package/packages/server/dist/chat/handler.d.ts.map +1 -0
- package/packages/server/dist/chat/handler.js +1248 -0
- package/packages/server/dist/chat/handler.js.map +1 -0
- package/packages/server/dist/chat/image-fit.d.ts +34 -0
- package/packages/server/dist/chat/image-fit.d.ts.map +1 -0
- package/packages/server/dist/chat/image-fit.js +157 -0
- package/packages/server/dist/chat/image-fit.js.map +1 -0
- package/packages/server/dist/chat/messages.d.ts +118 -0
- package/packages/server/dist/chat/messages.d.ts.map +1 -0
- package/packages/server/dist/chat/messages.js +341 -0
- package/packages/server/dist/chat/messages.js.map +1 -0
- package/packages/server/dist/chat/session-inbox.d.ts +114 -0
- package/packages/server/dist/chat/session-inbox.d.ts.map +1 -0
- package/packages/server/dist/chat/session-inbox.js +418 -0
- package/packages/server/dist/chat/session-inbox.js.map +1 -0
- package/packages/server/dist/chat/sqlite-session-repo.d.ts +26 -0
- package/packages/server/dist/chat/sqlite-session-repo.d.ts.map +1 -0
- package/packages/server/dist/chat/sqlite-session-repo.js +132 -0
- package/packages/server/dist/chat/sqlite-session-repo.js.map +1 -0
- package/packages/server/dist/chat/sqlite-session-storage.d.ts +83 -0
- package/packages/server/dist/chat/sqlite-session-storage.d.ts.map +1 -0
- package/packages/server/dist/chat/sqlite-session-storage.js +418 -0
- package/packages/server/dist/chat/sqlite-session-storage.js.map +1 -0
- package/packages/server/dist/chat/stub-execution-env.d.ts +3 -0
- package/packages/server/dist/chat/stub-execution-env.d.ts.map +1 -0
- package/packages/server/dist/chat/stub-execution-env.js +87 -0
- package/packages/server/dist/chat/stub-execution-env.js.map +1 -0
- package/packages/server/dist/chat/token-estimate.d.ts +11 -0
- package/packages/server/dist/chat/token-estimate.d.ts.map +1 -0
- package/packages/server/dist/chat/token-estimate.js +67 -0
- package/packages/server/dist/chat/token-estimate.js.map +1 -0
- package/packages/server/dist/chat/ws-protocol.d.ts +244 -0
- package/packages/server/dist/chat/ws-protocol.d.ts.map +1 -0
- package/packages/server/dist/chat/ws-protocol.js +193 -0
- package/packages/server/dist/chat/ws-protocol.js.map +1 -0
- package/packages/server/dist/cli.d.ts +9 -0
- package/packages/server/dist/cli.d.ts.map +1 -0
- package/packages/server/dist/cli.js +329 -0
- package/packages/server/dist/cli.js.map +1 -0
- package/packages/server/dist/core/agent-seeds.d.ts +25 -0
- package/packages/server/dist/core/agent-seeds.d.ts.map +1 -0
- package/packages/server/dist/core/agent-seeds.js +69 -0
- package/packages/server/dist/core/agent-seeds.js.map +1 -0
- package/packages/server/dist/core/config.d.ts +172 -0
- package/packages/server/dist/core/config.d.ts.map +1 -0
- package/packages/server/dist/core/config.js +155 -0
- package/packages/server/dist/core/config.js.map +1 -0
- package/packages/server/dist/core/db-pool.d.ts +32 -0
- package/packages/server/dist/core/db-pool.d.ts.map +1 -0
- package/packages/server/dist/core/db-pool.js +108 -0
- package/packages/server/dist/core/db-pool.js.map +1 -0
- package/packages/server/dist/core/dev-mode.d.ts +13 -0
- package/packages/server/dist/core/dev-mode.d.ts.map +1 -0
- package/packages/server/dist/core/dev-mode.js +51 -0
- package/packages/server/dist/core/dev-mode.js.map +1 -0
- package/packages/server/dist/core/global-ops.d.ts +54 -0
- package/packages/server/dist/core/global-ops.d.ts.map +1 -0
- package/packages/server/dist/core/global-ops.js +143 -0
- package/packages/server/dist/core/global-ops.js.map +1 -0
- package/packages/server/dist/core/identity-resolvers.d.ts +102 -0
- package/packages/server/dist/core/identity-resolvers.d.ts.map +1 -0
- package/packages/server/dist/core/identity-resolvers.js +176 -0
- package/packages/server/dist/core/identity-resolvers.js.map +1 -0
- package/packages/server/dist/core/index.d.ts +13 -0
- package/packages/server/dist/core/index.d.ts.map +1 -0
- package/packages/server/dist/core/index.js +18 -0
- package/packages/server/dist/core/index.js.map +1 -0
- package/packages/server/dist/core/llm.d.ts +45 -0
- package/packages/server/dist/core/llm.d.ts.map +1 -0
- package/packages/server/dist/core/llm.js +140 -0
- package/packages/server/dist/core/llm.js.map +1 -0
- package/packages/server/dist/core/mcp-manager.d.ts +47 -0
- package/packages/server/dist/core/mcp-manager.d.ts.map +1 -0
- package/packages/server/dist/core/mcp-manager.js +129 -0
- package/packages/server/dist/core/mcp-manager.js.map +1 -0
- package/packages/server/dist/core/middleware.d.ts +31 -0
- package/packages/server/dist/core/middleware.d.ts.map +1 -0
- package/packages/server/dist/core/middleware.js +102 -0
- package/packages/server/dist/core/middleware.js.map +1 -0
- package/packages/server/dist/core/migrations/001-initial.d.ts +4 -0
- package/packages/server/dist/core/migrations/001-initial.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/001-initial.js +66 -0
- package/packages/server/dist/core/migrations/001-initial.js.map +1 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.d.ts +4 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.js +20 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.js.map +1 -0
- package/packages/server/dist/core/migrations/003-session-tree.d.ts +4 -0
- package/packages/server/dist/core/migrations/003-session-tree.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/003-session-tree.js +96 -0
- package/packages/server/dist/core/migrations/003-session-tree.js.map +1 -0
- package/packages/server/dist/core/migrations/003-worker-agents.d.ts +4 -0
- package/packages/server/dist/core/migrations/003-worker-agents.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/003-worker-agents.js +65 -0
- package/packages/server/dist/core/migrations/003-worker-agents.js.map +1 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.d.ts +4 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.js +52 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.js.map +1 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.d.ts +4 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.js +64 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.js.map +1 -0
- package/packages/server/dist/core/migrations/006-task-labels.d.ts +4 -0
- package/packages/server/dist/core/migrations/006-task-labels.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/006-task-labels.js +43 -0
- package/packages/server/dist/core/migrations/006-task-labels.js.map +1 -0
- package/packages/server/dist/core/migrations/007-session-inbox.d.ts +4 -0
- package/packages/server/dist/core/migrations/007-session-inbox.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/007-session-inbox.js +67 -0
- package/packages/server/dist/core/migrations/007-session-inbox.js.map +1 -0
- package/packages/server/dist/core/migrations/008-task-intervention.d.ts +4 -0
- package/packages/server/dist/core/migrations/008-task-intervention.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/008-task-intervention.js +60 -0
- package/packages/server/dist/core/migrations/008-task-intervention.js.map +1 -0
- package/packages/server/dist/core/migrations/index.d.ts +12 -0
- package/packages/server/dist/core/migrations/index.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/index.js +58 -0
- package/packages/server/dist/core/migrations/index.js.map +1 -0
- package/packages/server/dist/core/paths.d.ts +53 -0
- package/packages/server/dist/core/paths.d.ts.map +1 -0
- package/packages/server/dist/core/paths.js +125 -0
- package/packages/server/dist/core/paths.js.map +1 -0
- package/packages/server/dist/core/plugins/builtin-loader.d.ts +56 -0
- package/packages/server/dist/core/plugins/builtin-loader.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/builtin-loader.js +153 -0
- package/packages/server/dist/core/plugins/builtin-loader.js.map +1 -0
- package/packages/server/dist/core/plugins/discovery.d.ts +28 -0
- package/packages/server/dist/core/plugins/discovery.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/discovery.js +97 -0
- package/packages/server/dist/core/plugins/discovery.js.map +1 -0
- package/packages/server/dist/core/plugins/index.d.ts +6 -0
- package/packages/server/dist/core/plugins/index.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/index.js +6 -0
- package/packages/server/dist/core/plugins/index.js.map +1 -0
- package/packages/server/dist/core/plugins/manifest.d.ts +9 -0
- package/packages/server/dist/core/plugins/manifest.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/manifest.js +584 -0
- package/packages/server/dist/core/plugins/manifest.js.map +1 -0
- package/packages/server/dist/core/plugins/registry.d.ts +269 -0
- package/packages/server/dist/core/plugins/registry.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/registry.js +1003 -0
- package/packages/server/dist/core/plugins/registry.js.map +1 -0
- package/packages/server/dist/core/plugins/secrets.d.ts +46 -0
- package/packages/server/dist/core/plugins/secrets.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/secrets.js +174 -0
- package/packages/server/dist/core/plugins/secrets.js.map +1 -0
- package/packages/server/dist/core/plugins/skills.d.ts +131 -0
- package/packages/server/dist/core/plugins/skills.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/skills.js +389 -0
- package/packages/server/dist/core/plugins/skills.js.map +1 -0
- package/packages/server/dist/core/templates.d.ts +28 -0
- package/packages/server/dist/core/templates.d.ts.map +1 -0
- package/packages/server/dist/core/templates.js +103 -0
- package/packages/server/dist/core/templates.js.map +1 -0
- package/packages/server/dist/core/tenant-context.d.ts +18 -0
- package/packages/server/dist/core/tenant-context.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-context.js +42 -0
- package/packages/server/dist/core/tenant-context.js.map +1 -0
- package/packages/server/dist/core/tenant-id.d.ts +8 -0
- package/packages/server/dist/core/tenant-id.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-id.js +53 -0
- package/packages/server/dist/core/tenant-id.js.map +1 -0
- package/packages/server/dist/core/tenant-skills.d.ts +29 -0
- package/packages/server/dist/core/tenant-skills.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-skills.js +77 -0
- package/packages/server/dist/core/tenant-skills.js.map +1 -0
- package/packages/server/dist/core/worker-agents-fs.d.ts +44 -0
- package/packages/server/dist/core/worker-agents-fs.d.ts.map +1 -0
- package/packages/server/dist/core/worker-agents-fs.js +86 -0
- package/packages/server/dist/core/worker-agents-fs.js.map +1 -0
- package/packages/server/dist/core/worker-agents.d.ts +77 -0
- package/packages/server/dist/core/worker-agents.d.ts.map +1 -0
- package/packages/server/dist/core/worker-agents.js +191 -0
- package/packages/server/dist/core/worker-agents.js.map +1 -0
- package/packages/server/dist/index.d.ts +2 -0
- package/packages/server/dist/index.d.ts.map +1 -0
- package/packages/server/dist/index.js +623 -0
- package/packages/server/dist/index.js.map +1 -0
- package/packages/server/dist/lsp/client.d.ts +53 -0
- package/packages/server/dist/lsp/client.d.ts.map +1 -0
- package/packages/server/dist/lsp/client.js +258 -0
- package/packages/server/dist/lsp/client.js.map +1 -0
- package/packages/server/dist/lsp/format.d.ts +13 -0
- package/packages/server/dist/lsp/format.d.ts.map +1 -0
- package/packages/server/dist/lsp/format.js +55 -0
- package/packages/server/dist/lsp/format.js.map +1 -0
- package/packages/server/dist/lsp/index.d.ts +20 -0
- package/packages/server/dist/lsp/index.d.ts.map +1 -0
- package/packages/server/dist/lsp/index.js +32 -0
- package/packages/server/dist/lsp/index.js.map +1 -0
- package/packages/server/dist/lsp/language-registry.d.ts +29 -0
- package/packages/server/dist/lsp/language-registry.d.ts.map +1 -0
- package/packages/server/dist/lsp/language-registry.js +62 -0
- package/packages/server/dist/lsp/language-registry.js.map +1 -0
- package/packages/server/dist/lsp/manager.d.ts +77 -0
- package/packages/server/dist/lsp/manager.d.ts.map +1 -0
- package/packages/server/dist/lsp/manager.js +300 -0
- package/packages/server/dist/lsp/manager.js.map +1 -0
- package/packages/server/dist/plugins-routes.d.ts +96 -0
- package/packages/server/dist/plugins-routes.d.ts.map +1 -0
- package/packages/server/dist/plugins-routes.js +627 -0
- package/packages/server/dist/plugins-routes.js.map +1 -0
- package/packages/server/dist/setup/checks/config.d.ts +9 -0
- package/packages/server/dist/setup/checks/config.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/config.js +66 -0
- package/packages/server/dist/setup/checks/config.js.map +1 -0
- package/packages/server/dist/setup/checks/db.d.ts +6 -0
- package/packages/server/dist/setup/checks/db.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/db.js +79 -0
- package/packages/server/dist/setup/checks/db.js.map +1 -0
- package/packages/server/dist/setup/checks/known-models.d.ts +18 -0
- package/packages/server/dist/setup/checks/known-models.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/known-models.js +119 -0
- package/packages/server/dist/setup/checks/known-models.js.map +1 -0
- package/packages/server/dist/setup/checks/network.d.ts +11 -0
- package/packages/server/dist/setup/checks/network.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/network.js +176 -0
- package/packages/server/dist/setup/checks/network.js.map +1 -0
- package/packages/server/dist/setup/checks/plugins.d.ts +9 -0
- package/packages/server/dist/setup/checks/plugins.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/plugins.js +194 -0
- package/packages/server/dist/setup/checks/plugins.js.map +1 -0
- package/packages/server/dist/setup/checks/providers.d.ts +12 -0
- package/packages/server/dist/setup/checks/providers.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/providers.js +368 -0
- package/packages/server/dist/setup/checks/providers.js.map +1 -0
- package/packages/server/dist/setup/checks/runtime.d.ts +3 -0
- package/packages/server/dist/setup/checks/runtime.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/runtime.js +44 -0
- package/packages/server/dist/setup/checks/runtime.js.map +1 -0
- package/packages/server/dist/setup/checks/sandbox.d.ts +9 -0
- package/packages/server/dist/setup/checks/sandbox.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/sandbox.js +110 -0
- package/packages/server/dist/setup/checks/sandbox.js.map +1 -0
- package/packages/server/dist/setup/checks/tenants.d.ts +9 -0
- package/packages/server/dist/setup/checks/tenants.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/tenants.js +509 -0
- package/packages/server/dist/setup/checks/tenants.js.map +1 -0
- package/packages/server/dist/setup/cli-agent.d.ts +39 -0
- package/packages/server/dist/setup/cli-agent.d.ts.map +1 -0
- package/packages/server/dist/setup/cli-agent.js +1353 -0
- package/packages/server/dist/setup/cli-agent.js.map +1 -0
- package/packages/server/dist/setup/doctor.d.ts +32 -0
- package/packages/server/dist/setup/doctor.d.ts.map +1 -0
- package/packages/server/dist/setup/doctor.js +80 -0
- package/packages/server/dist/setup/doctor.js.map +1 -0
- package/packages/server/dist/setup/launchd.d.ts +107 -0
- package/packages/server/dist/setup/launchd.d.ts.map +1 -0
- package/packages/server/dist/setup/launchd.js +309 -0
- package/packages/server/dist/setup/launchd.js.map +1 -0
- package/packages/server/dist/setup/load-env.d.ts +21 -0
- package/packages/server/dist/setup/load-env.d.ts.map +1 -0
- package/packages/server/dist/setup/load-env.js +88 -0
- package/packages/server/dist/setup/load-env.js.map +1 -0
- package/packages/server/dist/setup/probe-default-model.d.ts +28 -0
- package/packages/server/dist/setup/probe-default-model.d.ts.map +1 -0
- package/packages/server/dist/setup/probe-default-model.js +133 -0
- package/packages/server/dist/setup/probe-default-model.js.map +1 -0
- package/packages/server/dist/setup/render.d.ts +28 -0
- package/packages/server/dist/setup/render.d.ts.map +1 -0
- package/packages/server/dist/setup/render.js +60 -0
- package/packages/server/dist/setup/render.js.map +1 -0
- package/packages/server/dist/setup/repo-root.d.ts +3 -0
- package/packages/server/dist/setup/repo-root.d.ts.map +1 -0
- package/packages/server/dist/setup/repo-root.js +43 -0
- package/packages/server/dist/setup/repo-root.js.map +1 -0
- package/packages/server/dist/setup/service.d.ts +60 -0
- package/packages/server/dist/setup/service.d.ts.map +1 -0
- package/packages/server/dist/setup/service.js +345 -0
- package/packages/server/dist/setup/service.js.map +1 -0
- package/packages/server/dist/setup/start-server.d.ts +23 -0
- package/packages/server/dist/setup/start-server.d.ts.map +1 -0
- package/packages/server/dist/setup/start-server.js +465 -0
- package/packages/server/dist/setup/start-server.js.map +1 -0
- package/packages/server/dist/setup/wizard.d.ts +59 -0
- package/packages/server/dist/setup/wizard.d.ts.map +1 -0
- package/packages/server/dist/setup/wizard.js +556 -0
- package/packages/server/dist/setup/wizard.js.map +1 -0
- package/packages/server/dist/tools/edit-file.d.ts +13 -0
- package/packages/server/dist/tools/edit-file.d.ts.map +1 -0
- package/packages/server/dist/tools/edit-file.js +90 -0
- package/packages/server/dist/tools/edit-file.js.map +1 -0
- package/packages/server/dist/tools/glob.d.ts +12 -0
- package/packages/server/dist/tools/glob.d.ts.map +1 -0
- package/packages/server/dist/tools/glob.js +82 -0
- package/packages/server/dist/tools/glob.js.map +1 -0
- package/packages/server/dist/tools/index.d.ts +82 -0
- package/packages/server/dist/tools/index.d.ts.map +1 -0
- package/packages/server/dist/tools/index.js +72 -0
- package/packages/server/dist/tools/index.js.map +1 -0
- package/packages/server/dist/tools/list-dir.d.ts +24 -0
- package/packages/server/dist/tools/list-dir.d.ts.map +1 -0
- package/packages/server/dist/tools/list-dir.js +99 -0
- package/packages/server/dist/tools/list-dir.js.map +1 -0
- package/packages/server/dist/tools/path-helper.d.ts +15 -0
- package/packages/server/dist/tools/path-helper.d.ts.map +1 -0
- package/packages/server/dist/tools/path-helper.js +72 -0
- package/packages/server/dist/tools/path-helper.js.map +1 -0
- package/packages/server/dist/tools/read-file.d.ts +17 -0
- package/packages/server/dist/tools/read-file.d.ts.map +1 -0
- package/packages/server/dist/tools/read-file.js +94 -0
- package/packages/server/dist/tools/read-file.js.map +1 -0
- package/packages/server/dist/tools/sandbox.d.ts +57 -0
- package/packages/server/dist/tools/sandbox.d.ts.map +1 -0
- package/packages/server/dist/tools/sandbox.js +291 -0
- package/packages/server/dist/tools/sandbox.js.map +1 -0
- package/packages/server/dist/tools/write-file.d.ts +12 -0
- package/packages/server/dist/tools/write-file.d.ts.map +1 -0
- package/packages/server/dist/tools/write-file.js +67 -0
- package/packages/server/dist/tools/write-file.js.map +1 -0
- package/packages/server/dist/worker-agents-routes.d.ts +11 -0
- package/packages/server/dist/worker-agents-routes.d.ts.map +1 -0
- package/packages/server/dist/worker-agents-routes.js +253 -0
- package/packages/server/dist/worker-agents-routes.js.map +1 -0
- package/packages/server/package.json +41 -0
- package/packages/web/dist/assets/index-DH-gJ09_.js +60 -0
- package/packages/web/dist/assets/index-xU4lYYqY.css +2 -0
- package/packages/web/dist/index.html +14 -0
- package/packages/web/package.json +36 -0
- package/plugins/README.md +64 -0
- package/plugins/files/dist/client.d.ts +5 -0
- package/plugins/files/dist/client.d.ts.map +1 -0
- package/plugins/files/dist/client.js +354 -0
- package/plugins/files/dist/client.js.map +1 -0
- package/plugins/files/dist/server.d.ts +32 -0
- package/plugins/files/dist/server.d.ts.map +1 -0
- package/plugins/files/dist/server.js +514 -0
- package/plugins/files/dist/server.js.map +1 -0
- package/plugins/files/dist/tools/edit-file.d.ts +29 -0
- package/plugins/files/dist/tools/edit-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/edit-file.js +230 -0
- package/plugins/files/dist/tools/edit-file.js.map +1 -0
- package/plugins/files/dist/tools/edit-file.prompt.md +36 -0
- package/plugins/files/dist/tools/glob.d.ts +12 -0
- package/plugins/files/dist/tools/glob.d.ts.map +1 -0
- package/plugins/files/dist/tools/glob.js +84 -0
- package/plugins/files/dist/tools/glob.js.map +1 -0
- package/plugins/files/dist/tools/index.d.ts +13 -0
- package/plugins/files/dist/tools/index.d.ts.map +1 -0
- package/plugins/files/dist/tools/index.js +158 -0
- package/plugins/files/dist/tools/index.js.map +1 -0
- package/plugins/files/dist/tools/list-dir.d.ts +24 -0
- package/plugins/files/dist/tools/list-dir.d.ts.map +1 -0
- package/plugins/files/dist/tools/list-dir.js +104 -0
- package/plugins/files/dist/tools/list-dir.js.map +1 -0
- package/plugins/files/dist/tools/load-prompt.d.ts +5 -0
- package/plugins/files/dist/tools/load-prompt.d.ts.map +1 -0
- package/plugins/files/dist/tools/load-prompt.js +39 -0
- package/plugins/files/dist/tools/load-prompt.js.map +1 -0
- package/plugins/files/dist/tools/path-helper.d.ts +32 -0
- package/plugins/files/dist/tools/path-helper.d.ts.map +1 -0
- package/plugins/files/dist/tools/path-helper.js +113 -0
- package/plugins/files/dist/tools/path-helper.js.map +1 -0
- package/plugins/files/dist/tools/read-file.d.ts +17 -0
- package/plugins/files/dist/tools/read-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/read-file.js +109 -0
- package/plugins/files/dist/tools/read-file.js.map +1 -0
- package/plugins/files/dist/tools/read-tracker.d.ts +28 -0
- package/plugins/files/dist/tools/read-tracker.d.ts.map +1 -0
- package/plugins/files/dist/tools/read-tracker.js +135 -0
- package/plugins/files/dist/tools/read-tracker.js.map +1 -0
- package/plugins/files/dist/tools/replacers.d.ts +27 -0
- package/plugins/files/dist/tools/replacers.d.ts.map +1 -0
- package/plugins/files/dist/tools/replacers.js +221 -0
- package/plugins/files/dist/tools/replacers.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-delete.d.ts +12 -0
- package/plugins/files/dist/tools/tenant-config-delete.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-delete.js +70 -0
- package/plugins/files/dist/tools/tenant-config-delete.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-edit.d.ts +25 -0
- package/plugins/files/dist/tools/tenant-config-edit.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-edit.js +142 -0
- package/plugins/files/dist/tools/tenant-config-edit.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-glob.d.ts +12 -0
- package/plugins/files/dist/tools/tenant-config-glob.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-glob.js +64 -0
- package/plugins/files/dist/tools/tenant-config-glob.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-helper.d.ts +64 -0
- package/plugins/files/dist/tools/tenant-config-helper.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-helper.js +162 -0
- package/plugins/files/dist/tools/tenant-config-helper.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-list.d.ts +20 -0
- package/plugins/files/dist/tools/tenant-config-list.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-list.js +95 -0
- package/plugins/files/dist/tools/tenant-config-list.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-read.d.ts +17 -0
- package/plugins/files/dist/tools/tenant-config-read.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-read.js +87 -0
- package/plugins/files/dist/tools/tenant-config-read.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-write.d.ts +14 -0
- package/plugins/files/dist/tools/tenant-config-write.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-write.js +78 -0
- package/plugins/files/dist/tools/tenant-config-write.js.map +1 -0
- package/plugins/files/dist/tools/text-shape.d.ts +20 -0
- package/plugins/files/dist/tools/text-shape.d.ts.map +1 -0
- package/plugins/files/dist/tools/text-shape.js +57 -0
- package/plugins/files/dist/tools/text-shape.js.map +1 -0
- package/plugins/files/dist/tools/write-file.d.ts +12 -0
- package/plugins/files/dist/tools/write-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/write-file.js +89 -0
- package/plugins/files/dist/tools/write-file.js.map +1 -0
- package/plugins/files/dist/tools/write-file.prompt.md +14 -0
- package/plugins/files/manifest.json +100 -0
- package/plugins/files/package.json +39 -0
- package/plugins/files/skills/files-workspace-layout.md +29 -0
- package/plugins/microsandbox/dist/admin/browser-routes.d.ts +41 -0
- package/plugins/microsandbox/dist/admin/browser-routes.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/browser-routes.js +208 -0
- package/plugins/microsandbox/dist/admin/browser-routes.js.map +1 -0
- package/plugins/microsandbox/dist/admin/preview-exec.d.ts +38 -0
- package/plugins/microsandbox/dist/admin/preview-exec.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/preview-exec.js +185 -0
- package/plugins/microsandbox/dist/admin/preview-exec.js.map +1 -0
- package/plugins/microsandbox/dist/admin/routes.d.ts +35 -0
- package/plugins/microsandbox/dist/admin/routes.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/routes.js +728 -0
- package/plugins/microsandbox/dist/admin/routes.js.map +1 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.d.ts +11 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.js +72 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.js.map +1 -0
- package/plugins/microsandbox/dist/admin/templates.d.ts +16 -0
- package/plugins/microsandbox/dist/admin/templates.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/templates.js +66 -0
- package/plugins/microsandbox/dist/admin/templates.js.map +1 -0
- package/plugins/microsandbox/dist/admin.d.ts +5 -0
- package/plugins/microsandbox/dist/admin.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin.js +256 -0
- package/plugins/microsandbox/dist/admin.js.map +1 -0
- package/plugins/microsandbox/dist/build/builder.d.ts +69 -0
- package/plugins/microsandbox/dist/build/builder.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/builder.js +257 -0
- package/plugins/microsandbox/dist/build/builder.js.map +1 -0
- package/plugins/microsandbox/dist/build/metadata.d.ts +27 -0
- package/plugins/microsandbox/dist/build/metadata.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/metadata.js +55 -0
- package/plugins/microsandbox/dist/build/metadata.js.map +1 -0
- package/plugins/microsandbox/dist/build/pointer.d.ts +51 -0
- package/plugins/microsandbox/dist/build/pointer.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/pointer.js +130 -0
- package/plugins/microsandbox/dist/build/pointer.js.map +1 -0
- package/plugins/microsandbox/dist/build/sandboxfile.d.ts +15 -0
- package/plugins/microsandbox/dist/build/sandboxfile.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/sandboxfile.js +176 -0
- package/plugins/microsandbox/dist/build/sandboxfile.js.map +1 -0
- package/plugins/microsandbox/dist/client.d.ts +5 -0
- package/plugins/microsandbox/dist/client.d.ts.map +1 -0
- package/plugins/microsandbox/dist/client.js +941 -0
- package/plugins/microsandbox/dist/client.js.map +1 -0
- package/plugins/microsandbox/dist/runner/browser.d.ts +50 -0
- package/plugins/microsandbox/dist/runner/browser.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/browser.js +142 -0
- package/plugins/microsandbox/dist/runner/browser.js.map +1 -0
- package/plugins/microsandbox/dist/runner/free-port.d.ts +6 -0
- package/plugins/microsandbox/dist/runner/free-port.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/free-port.js +53 -0
- package/plugins/microsandbox/dist/runner/free-port.js.map +1 -0
- package/plugins/microsandbox/dist/runner/index.d.ts +28 -0
- package/plugins/microsandbox/dist/runner/index.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/index.js +72 -0
- package/plugins/microsandbox/dist/runner/index.js.map +1 -0
- package/plugins/microsandbox/dist/runner/microsandbox.d.ts +64 -0
- package/plugins/microsandbox/dist/runner/microsandbox.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/microsandbox.js +668 -0
- package/plugins/microsandbox/dist/runner/microsandbox.js.map +1 -0
- package/plugins/microsandbox/dist/runner/nullable.d.ts +36 -0
- package/plugins/microsandbox/dist/runner/nullable.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/nullable.js +82 -0
- package/plugins/microsandbox/dist/runner/nullable.js.map +1 -0
- package/plugins/microsandbox/dist/runner/pool.d.ts +97 -0
- package/plugins/microsandbox/dist/runner/pool.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/pool.js +494 -0
- package/plugins/microsandbox/dist/runner/pool.js.map +1 -0
- package/plugins/microsandbox/dist/runner/types.d.ts +33 -0
- package/plugins/microsandbox/dist/runner/types.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/types.js +79 -0
- package/plugins/microsandbox/dist/runner/types.js.map +1 -0
- package/plugins/microsandbox/dist/server.d.ts +7 -0
- package/plugins/microsandbox/dist/server.d.ts.map +1 -0
- package/plugins/microsandbox/dist/server.js +276 -0
- package/plugins/microsandbox/dist/server.js.map +1 -0
- package/plugins/microsandbox/dist/tools/browser.d.ts +25 -0
- package/plugins/microsandbox/dist/tools/browser.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/browser.js +78 -0
- package/plugins/microsandbox/dist/tools/browser.js.map +1 -0
- package/plugins/microsandbox/dist/tools/build.d.ts +5 -0
- package/plugins/microsandbox/dist/tools/build.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/build.js +243 -0
- package/plugins/microsandbox/dist/tools/build.js.map +1 -0
- package/plugins/microsandbox/dist/tools/index.d.ts +9 -0
- package/plugins/microsandbox/dist/tools/index.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/index.js +430 -0
- package/plugins/microsandbox/dist/tools/index.js.map +1 -0
- package/plugins/microsandbox/dist/tools/mcp-client.d.ts +63 -0
- package/plugins/microsandbox/dist/tools/mcp-client.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/mcp-client.js +226 -0
- package/plugins/microsandbox/dist/tools/mcp-client.js.map +1 -0
- package/plugins/microsandbox/manifest.json +177 -0
- package/plugins/microsandbox/package.json +38 -0
- package/plugins/microsandbox/skills/microsandbox-browser-howto.md +155 -0
- package/plugins/microsandbox/skills/microsandbox-build-use.md +201 -0
- package/plugins/microsandbox/skills/microsandbox-config.md +38 -0
- package/plugins/microsandbox/skills/microsandbox-exec-howto.md +144 -0
- package/plugins/microsandbox/skills/microsandbox-libreoffice.md +159 -0
- package/plugins/microsandbox/templates/README.md +26 -0
- package/plugins/web-search/dist/server.d.ts +4 -0
- package/plugins/web-search/dist/server.d.ts.map +1 -0
- package/plugins/web-search/dist/server.js +73 -0
- package/plugins/web-search/dist/server.js.map +1 -0
- package/plugins/web-search/dist/tools/health.d.ts +31 -0
- package/plugins/web-search/dist/tools/health.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/health.js +59 -0
- package/plugins/web-search/dist/tools/health.js.map +1 -0
- package/plugins/web-search/dist/tools/index.d.ts +3 -0
- package/plugins/web-search/dist/tools/index.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/index.js +2 -0
- package/plugins/web-search/dist/tools/index.js.map +1 -0
- package/plugins/web-search/dist/tools/providers.d.ts +43 -0
- package/plugins/web-search/dist/tools/providers.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/providers.js +140 -0
- package/plugins/web-search/dist/tools/providers.js.map +1 -0
- package/plugins/web-search/dist/tools/web-search.d.ts +15 -0
- package/plugins/web-search/dist/tools/web-search.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/web-search.js +244 -0
- package/plugins/web-search/dist/tools/web-search.js.map +1 -0
- package/plugins/web-search/manifest.json +65 -0
- package/plugins/web-search/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/plugins/web-search/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/plugins/web-search/node_modules/@vitest/expect/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/expect/README.md +21 -0
- package/plugins/web-search/node_modules/@vitest/expect/dist/index.d.ts +808 -0
- package/plugins/web-search/node_modules/@vitest/expect/dist/index.js +1799 -0
- package/plugins/web-search/node_modules/@vitest/expect/package.json +46 -0
- package/plugins/web-search/node_modules/@vitest/mocker/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/mocker/README.md +5 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/auto-register.d.ts +2 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/auto-register.js +9 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/browser.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/browser.js +91 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js +15 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-mocker.js +1602 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-pathe.M-eThtNZ.js +174 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-registry.js +182 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-utils.js +16 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/index.d.ts +21 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/index.js +174 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/mocker.d-Ce9_ySj5.d.ts +83 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/node.d.ts +821 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/node.js +1306 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/redirect.d.ts +3 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/redirect.js +75 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/register.d.ts +9 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/register.js +41 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/registry.d-D765pazg.d.ts +87 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/types.d-D_aRZRdy.d.ts +8 -0
- package/plugins/web-search/node_modules/@vitest/mocker/package.json +82 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/dist/index.d.ts +119 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/dist/index.js +1387 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/package.json +44 -0
- package/plugins/web-search/node_modules/@vitest/runner/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/runner/README.md +5 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/chunk-hooks.js +2254 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/index.d.ts +261 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/index.js +6 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/tasks.d-CkscK4of.d.ts +558 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/types.d.ts +163 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/types.js +1 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/utils.d.ts +47 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/utils.js +6 -0
- package/plugins/web-search/node_modules/@vitest/runner/package.json +49 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/README.md +84 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.d-DHdQ1Csl.d.ts +22 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.d.ts +16 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.js +40 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/index.d.ts +137 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/index.js +2305 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/manager.d.ts +18 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/manager.js +73 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/rawSnapshot.d-lFsMJFUd.d.ts +61 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/package.json +54 -0
- package/plugins/web-search/node_modules/@vitest/spy/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/spy/README.md +3 -0
- package/plugins/web-search/node_modules/@vitest/spy/dist/index.d.ts +356 -0
- package/plugins/web-search/node_modules/@vitest/spy/dist/index.js +191 -0
- package/plugins/web-search/node_modules/@vitest/spy/package.json +38 -0
- package/plugins/web-search/node_modules/@vitest/utils/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +158 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/diff.d.ts +104 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/diff.js +2185 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/error.d.ts +9 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/error.js +162 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/helpers.d.ts +56 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/helpers.js +251 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/index.d.ts +57 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/index.js +633 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/source-map.d.ts +139 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/source-map.js +996 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.js +1 -0
- package/plugins/web-search/node_modules/@vitest/utils/package.json +77 -0
- package/plugins/web-search/node_modules/chai/LICENSE +21 -0
- package/plugins/web-search/node_modules/chai/README.md +162 -0
- package/plugins/web-search/node_modules/chai/package.json +74 -0
- package/plugins/web-search/node_modules/esbuild/README.md +3 -0
- package/plugins/web-search/node_modules/esbuild/package.json +49 -0
- package/plugins/web-search/node_modules/std-env/README.md +118 -0
- package/plugins/web-search/node_modules/std-env/dist/index.cjs +1 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.cts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.mts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.ts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.mjs +1 -0
- package/plugins/web-search/node_modules/std-env/package.json +46 -0
- package/plugins/web-search/node_modules/tinyexec/LICENSE +21 -0
- package/plugins/web-search/node_modules/tinyexec/README.md +256 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.cjs +575 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.d.cts +70 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.d.ts +70 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.js +578 -0
- package/plugins/web-search/node_modules/tinyexec/package.json +66 -0
- package/plugins/web-search/node_modules/tinyrainbow/README.md +28 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/browser.d.ts +8 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/browser.js +20 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +90 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/index-8b61d5bc.d.ts +59 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/node.d.ts +8 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/node.js +22 -0
- package/plugins/web-search/node_modules/tinyrainbow/package.json +37 -0
- package/plugins/web-search/node_modules/typescript/README.md +50 -0
- package/plugins/web-search/node_modules/typescript/package.json +120 -0
- package/plugins/web-search/node_modules/vite/README.md +20 -0
- package/plugins/web-search/node_modules/vite/dist/client/client.mjs +1106 -0
- package/plugins/web-search/node_modules/vite/dist/client/env.mjs +19 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/build.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/build2.js +5538 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/chunk.js +48 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/config.js +36065 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/config2.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/dist.js +6758 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/lib.js +377 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/logger.js +329 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/optimizer.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/postcss-import.js +479 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/preview.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/server.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/cli.js +698 -0
- package/plugins/web-search/node_modules/vite/dist/node/index.d.ts +3717 -0
- package/plugins/web-search/node_modules/vite/dist/node/index.js +30 -0
- package/plugins/web-search/node_modules/vite/dist/node/module-runner.d.ts +311 -0
- package/plugins/web-search/node_modules/vite/dist/node/module-runner.js +1160 -0
- package/plugins/web-search/node_modules/vite/package.json +199 -0
- package/plugins/web-search/node_modules/vite/types/package.json +4 -0
- package/plugins/web-search/node_modules/vitest/README.md +7 -0
- package/plugins/web-search/node_modules/vitest/dist/browser.d.ts +34 -0
- package/plugins/web-search/node_modules/vitest/dist/browser.js +8 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +7 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/base.DfmxU-tU.js +38 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/benchmark.d.BwvBVTda.d.ts +24 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/cac.0BJqEUeA.js +1469 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/cli-api.DWGBtMmz.js +10660 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/config.d.BKdhh7Zx.d.ts +224 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/console.CtFJOzRO.js +153 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/constants.DnKduX2e.js +44 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.DVF1vEu8.js +25 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.DfSpMS-b.js +4350 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.d.S9RMNXIe.d.ts +35 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/creator.GK6I-cL4.js +640 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +73 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/defaults.B7q_naMc.js +115 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/env.D4Lgay0q.js +8 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/environment.d.cL3nLXbE.d.ts +119 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/execute.B7h3T_Hc.js +708 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/git.BVQ8w_Sw.js +72 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/global.d.MAmajcmJ.d.ts +136 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/globals.DEHgCU4V.js +26 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.B521nVV-.js +157 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.BCWujgDG.js +231 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CmSc2RE5.js +587 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CwejwG0H.js +105 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.D3XRDfWc.js +213 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.VByaPkjc.js +2183 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.X0nbfr6-.js +6584 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/inspector.C914Efll.js +57 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/mocker.d.BE_2ls6u.d.ts +17 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/node.fjCdwEIl.js +15 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/reporters.d.BuRON0I0.d.ts +3168 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/rpc.-pEldfrD.js +83 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/runBaseTests.9Ij9_de-.js +129 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/setup-common.Dd054P77.js +60 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/suite.d.FvehnV49.d.ts +10 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/typechecker.DRKU1-1g.js +874 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/utils.CAioKnHs.js +61 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +65 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +4015 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vite.d.BnOPPc46.d.ts +25 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vm.BThCzidc.js +756 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/worker.d.CUgIPz9V.d.ts +176 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/worker.d.uzWsCv9X.d.ts +8 -0
- package/plugins/web-search/node_modules/vitest/dist/cli.js +27 -0
- package/plugins/web-search/node_modules/vitest/dist/config.cjs +148 -0
- package/plugins/web-search/node_modules/vitest/dist/config.d.ts +100 -0
- package/plugins/web-search/node_modules/vitest/dist/config.js +21 -0
- package/plugins/web-search/node_modules/vitest/dist/coverage.d.ts +108 -0
- package/plugins/web-search/node_modules/vitest/dist/coverage.js +34 -0
- package/plugins/web-search/node_modules/vitest/dist/environments.d.ts +26 -0
- package/plugins/web-search/node_modules/vitest/dist/environments.js +2 -0
- package/plugins/web-search/node_modules/vitest/dist/execute.d.ts +150 -0
- package/plugins/web-search/node_modules/vitest/dist/execute.js +13 -0
- package/plugins/web-search/node_modules/vitest/dist/index.d.ts +651 -0
- package/plugins/web-search/node_modules/vitest/dist/index.js +18 -0
- package/plugins/web-search/node_modules/vitest/dist/mocker.d.ts +1 -0
- package/plugins/web-search/node_modules/vitest/dist/mocker.js +1 -0
- package/plugins/web-search/node_modules/vitest/dist/node.d.ts +158 -0
- package/plugins/web-search/node_modules/vitest/dist/node.js +105 -0
- package/plugins/web-search/node_modules/vitest/dist/path.js +7 -0
- package/plugins/web-search/node_modules/vitest/dist/reporters.d.ts +25 -0
- package/plugins/web-search/node_modules/vitest/dist/reporters.js +23 -0
- package/plugins/web-search/node_modules/vitest/dist/runners.d.ts +46 -0
- package/plugins/web-search/node_modules/vitest/dist/runners.js +235 -0
- package/plugins/web-search/node_modules/vitest/dist/snapshot.d.ts +9 -0
- package/plugins/web-search/node_modules/vitest/dist/snapshot.js +4 -0
- package/plugins/web-search/node_modules/vitest/dist/spy.js +1 -0
- package/plugins/web-search/node_modules/vitest/dist/suite.d.ts +5 -0
- package/plugins/web-search/node_modules/vitest/dist/suite.js +5 -0
- package/plugins/web-search/node_modules/vitest/dist/worker.js +124 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/forks.js +43 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/runVmTests.js +90 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/threads.js +31 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/vmForks.js +47 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/vmThreads.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/workers.d.ts +40 -0
- package/plugins/web-search/node_modules/vitest/dist/workers.js +30 -0
- package/plugins/web-search/node_modules/vitest/package.json +207 -0
- package/plugins/web-search/package.json +30 -0
- package/plugins/web-search/skills/web-search-howto.md +69 -0
- package/plugins/workboard/agent-seeds/echo-demo/agent.json +7 -0
- package/plugins/workboard/agent-seeds/llm-default/SOUL.md +53 -0
- package/plugins/workboard/agent-seeds/llm-default/agent.json +7 -0
- package/plugins/workboard/dist/client.d.ts +5 -0
- package/plugins/workboard/dist/client.d.ts.map +1 -0
- package/plugins/workboard/dist/client.js +895 -0
- package/plugins/workboard/dist/client.js.map +1 -0
- package/plugins/workboard/dist/db/agents.d.ts +100 -0
- package/plugins/workboard/dist/db/agents.d.ts.map +1 -0
- package/plugins/workboard/dist/db/agents.js +280 -0
- package/plugins/workboard/dist/db/agents.js.map +1 -0
- package/plugins/workboard/dist/db/schema.d.ts +3 -0
- package/plugins/workboard/dist/db/schema.d.ts.map +1 -0
- package/plugins/workboard/dist/db/schema.js +31 -0
- package/plugins/workboard/dist/db/schema.js.map +1 -0
- package/plugins/workboard/dist/db/session-history.d.ts +28 -0
- package/plugins/workboard/dist/db/session-history.d.ts.map +1 -0
- package/plugins/workboard/dist/db/session-history.js +224 -0
- package/plugins/workboard/dist/db/session-history.js.map +1 -0
- package/plugins/workboard/dist/db/tasks.d.ts +260 -0
- package/plugins/workboard/dist/db/tasks.d.ts.map +1 -0
- package/plugins/workboard/dist/db/tasks.js +451 -0
- package/plugins/workboard/dist/db/tasks.js.map +1 -0
- package/plugins/workboard/dist/db/worker-agents.d.ts +16 -0
- package/plugins/workboard/dist/db/worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/db/worker-agents.js +62 -0
- package/plugins/workboard/dist/db/worker-agents.js.map +1 -0
- package/plugins/workboard/dist/effective-skills.d.ts +13 -0
- package/plugins/workboard/dist/effective-skills.d.ts.map +1 -0
- package/plugins/workboard/dist/effective-skills.js +126 -0
- package/plugins/workboard/dist/effective-skills.js.map +1 -0
- package/plugins/workboard/dist/fs-worker-agents.d.ts +35 -0
- package/plugins/workboard/dist/fs-worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/fs-worker-agents.js +199 -0
- package/plugins/workboard/dist/fs-worker-agents.js.map +1 -0
- package/plugins/workboard/dist/migrate-worker-agents.d.ts +11 -0
- package/plugins/workboard/dist/migrate-worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/migrate-worker-agents.js +89 -0
- package/plugins/workboard/dist/migrate-worker-agents.js.map +1 -0
- package/plugins/workboard/dist/routes/handlers.d.ts +106 -0
- package/plugins/workboard/dist/routes/handlers.d.ts.map +1 -0
- package/plugins/workboard/dist/routes/handlers.js +668 -0
- package/plugins/workboard/dist/routes/handlers.js.map +1 -0
- package/plugins/workboard/dist/server.d.ts +6 -0
- package/plugins/workboard/dist/server.d.ts.map +1 -0
- package/plugins/workboard/dist/server.js +368 -0
- package/plugins/workboard/dist/server.js.map +1 -0
- package/plugins/workboard/dist/tools/index.d.ts +70 -0
- package/plugins/workboard/dist/tools/index.d.ts.map +1 -0
- package/plugins/workboard/dist/tools/index.js +963 -0
- package/plugins/workboard/dist/tools/index.js.map +1 -0
- package/plugins/workboard/dist/types.d.ts +27 -0
- package/plugins/workboard/dist/types.d.ts.map +1 -0
- package/plugins/workboard/dist/types.js +16 -0
- package/plugins/workboard/dist/types.js.map +1 -0
- package/plugins/workboard/dist/worker/pool.d.ts +220 -0
- package/plugins/workboard/dist/worker/pool.d.ts.map +1 -0
- package/plugins/workboard/dist/worker/pool.js +866 -0
- package/plugins/workboard/dist/worker/pool.js.map +1 -0
- package/plugins/workboard/dist/worker/tool-policy.d.ts +27 -0
- package/plugins/workboard/dist/worker/tool-policy.d.ts.map +1 -0
- package/plugins/workboard/dist/worker/tool-policy.js +76 -0
- package/plugins/workboard/dist/worker/tool-policy.js.map +1 -0
- package/plugins/workboard/dist/worker-agents-page.d.ts +4 -0
- package/plugins/workboard/dist/worker-agents-page.d.ts.map +1 -0
- package/plugins/workboard/dist/worker-agents-page.js +193 -0
- package/plugins/workboard/dist/worker-agents-page.js.map +1 -0
- package/plugins/workboard/manifest.json +180 -0
- package/plugins/workboard/package.json +37 -0
- package/plugins/workboard/skills/large-input-large-output.md +185 -0
- package/plugins/workboard/skills/workboard-howto.md +166 -0
- package/plugins/workboard/skills/worker-creator.md +267 -0
- package/plugins/workboard/skills/worker-fleet.md +431 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
// Per-task sandbox pool.
|
|
2
|
+
//
|
|
3
|
+
// Lifecycle (matches PR #140 + this PR's design):
|
|
4
|
+
//
|
|
5
|
+
// workboard task pickup
|
|
6
|
+
// → SandboxPool.acquireTask(taskId)
|
|
7
|
+
// → first time: Sandbox.builder(tianshu-task-<taskId>)
|
|
8
|
+
// .fromSnapshot(<task-role pointer>)
|
|
9
|
+
// .create() (await; ~500ms warm)
|
|
10
|
+
// → resume: Sandbox.start(name) (await; ~200ms)
|
|
11
|
+
//
|
|
12
|
+
// agent-loop runs on this task
|
|
13
|
+
// → ExecTool sees ctx.taskId, calls runner.exec({...,taskId})
|
|
14
|
+
// → SandboxRunner facade routes to pool.execForTask(taskId, req)
|
|
15
|
+
//
|
|
16
|
+
// worker run terminates (any reason)
|
|
17
|
+
// → SandboxPool.releaseTask(taskId)
|
|
18
|
+
// → sandbox.stop() (preserves disk + installed packages;
|
|
19
|
+
// frees RAM)
|
|
20
|
+
// → state = 'stopped'; pool entry kept so retry can resume
|
|
21
|
+
//
|
|
22
|
+
// workboard task_delete
|
|
23
|
+
// → SandboxPool.destroyTask(taskId)
|
|
24
|
+
// → sandbox.stop() if running, then handle.remove() so
|
|
25
|
+
// disk image is reclaimed
|
|
26
|
+
//
|
|
27
|
+
// plugin deactivate
|
|
28
|
+
// → SandboxPool.dispose()
|
|
29
|
+
// → stop every running task sandbox (don't remove; next
|
|
30
|
+
// activate can resume)
|
|
31
|
+
//
|
|
32
|
+
// Resource sizing comes from MicroSandboxConfig.task* fields
|
|
33
|
+
// (PR #140); falling back to the browser-role values when not set.
|
|
34
|
+
//
|
|
35
|
+
// `bindSession(sessionId, taskId)` lets the SandboxRunner facade
|
|
36
|
+
// resolve `ctx.sessionId` -> taskId for tool calls that don't
|
|
37
|
+
// carry an explicit `req.taskId`. Workboard wires this from
|
|
38
|
+
// onSessionStart so every worker session lands in the right
|
|
39
|
+
// per-task sandbox.
|
|
40
|
+
import { promises as fs } from "node:fs";
|
|
41
|
+
import { readPointers } from "../build/pointer.js";
|
|
42
|
+
import { snapshotExists } from "../build/builder.js";
|
|
43
|
+
let msbModuleP = null;
|
|
44
|
+
function loadMsb() {
|
|
45
|
+
if (!msbModuleP) {
|
|
46
|
+
msbModuleP = import("microsandbox");
|
|
47
|
+
}
|
|
48
|
+
return msbModuleP;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Build a buildTenantUserBlock-equivalent shell wrapper. This is
|
|
52
|
+
* the same logic as MicrosandboxRunner uses; we reimplement here
|
|
53
|
+
* to keep the pool independent of the (per-tenant singleton)
|
|
54
|
+
* runner. The contract is "drop privileges to the tenant user
|
|
55
|
+
* before running the user-supplied command".
|
|
56
|
+
*
|
|
57
|
+
* Kept in sync with microsandbox.ts:buildTenantUserBlock.
|
|
58
|
+
*/
|
|
59
|
+
const TENANT_USER_ID_RE = /^[a-zA-Z][a-zA-Z0-9_-]{0,30}$/;
|
|
60
|
+
function shellEscape(s) {
|
|
61
|
+
return s.replace(/(["\\$`])/g, "\\$1");
|
|
62
|
+
}
|
|
63
|
+
function hostUid() {
|
|
64
|
+
const fn = process.getuid;
|
|
65
|
+
return typeof fn === "function" ? fn.call(process) : 1000;
|
|
66
|
+
}
|
|
67
|
+
function buildScript(userId, workdir, command) {
|
|
68
|
+
if (!userId) {
|
|
69
|
+
return `set -e; cd "${shellEscape(workdir)}"; ${command}`;
|
|
70
|
+
}
|
|
71
|
+
if (!TENANT_USER_ID_RE.test(userId)) {
|
|
72
|
+
throw new Error(`invalid tenant userId for sandbox exec: ${JSON.stringify(userId)}`);
|
|
73
|
+
}
|
|
74
|
+
const safeUserId = userId;
|
|
75
|
+
const home = `/workspace/users/${safeUserId}`;
|
|
76
|
+
const uid = hostUid();
|
|
77
|
+
const innerCmd = command.replace(/'/g, `'\\''`);
|
|
78
|
+
return [
|
|
79
|
+
`set -e`,
|
|
80
|
+
`if ! id ${safeUserId} >/dev/null 2>&1; then`,
|
|
81
|
+
` useradd -d "${home}" -s /bin/bash -u ${uid} -o ${safeUserId} >/dev/null 2>&1 || true`,
|
|
82
|
+
` echo '${safeUserId} ALL=(ALL) NOPASSWD:***' > /etc/sudoers.d/${safeUserId}`,
|
|
83
|
+
` chmod 440 /etc/sudoers.d/${safeUserId}`,
|
|
84
|
+
`fi`,
|
|
85
|
+
`runuser -u ${safeUserId} -- env MSB_USER_ID=${safeUserId} bash -c 'cd "${shellEscape(workdir)}" && ${innerCmd}'`,
|
|
86
|
+
].join("\n");
|
|
87
|
+
}
|
|
88
|
+
const STOPPED_STATE = "stopped";
|
|
89
|
+
export class SandboxPool {
|
|
90
|
+
entries = new Map();
|
|
91
|
+
sessionToTask = new Map();
|
|
92
|
+
opts;
|
|
93
|
+
constructor(opts) {
|
|
94
|
+
this.opts = opts;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Map a session id back to its task entry, if any. Used by the
|
|
98
|
+
* SandboxRunner facade so a chat tool call without an explicit
|
|
99
|
+
* taskId can still find the right per-task sandbox.
|
|
100
|
+
*/
|
|
101
|
+
resolveBySession(sessionId) {
|
|
102
|
+
if (!sessionId)
|
|
103
|
+
return undefined;
|
|
104
|
+
const taskId = this.sessionToTask.get(sessionId);
|
|
105
|
+
if (!taskId)
|
|
106
|
+
return undefined;
|
|
107
|
+
return this.entries.get(taskId);
|
|
108
|
+
}
|
|
109
|
+
/** Direct lookup by taskId. */
|
|
110
|
+
get(taskId) {
|
|
111
|
+
return this.entries.get(taskId);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Snapshot every task entry the pool currently tracks. Used by
|
|
115
|
+
* the admin UI's pool monitor. Mutations to the returned array
|
|
116
|
+
* don't affect the pool.
|
|
117
|
+
*/
|
|
118
|
+
list() {
|
|
119
|
+
const out = [];
|
|
120
|
+
for (const e of this.entries.values()) {
|
|
121
|
+
out.push({
|
|
122
|
+
taskId: e.taskId,
|
|
123
|
+
sandboxName: e.sandboxName,
|
|
124
|
+
state: e.state,
|
|
125
|
+
startError: e.startError,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return out;
|
|
129
|
+
}
|
|
130
|
+
bindSession(sessionId, taskId) {
|
|
131
|
+
this.sessionToTask.set(sessionId, taskId);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Block until a sandbox exists and is ready for `taskId`. First
|
|
135
|
+
* call boots from the configured task-role snapshot; subsequent
|
|
136
|
+
* calls after a release resume the same sandbox so installed
|
|
137
|
+
* packages and saved files survive across attempts.
|
|
138
|
+
*/
|
|
139
|
+
async acquireTask(taskId, sessionId) {
|
|
140
|
+
if (sessionId)
|
|
141
|
+
this.sessionToTask.set(sessionId, taskId);
|
|
142
|
+
let entry = this.entries.get(taskId);
|
|
143
|
+
if (!entry) {
|
|
144
|
+
entry = {
|
|
145
|
+
taskId,
|
|
146
|
+
sandboxName: `tianshu-task-${this.opts.tenantId}-${taskId}`,
|
|
147
|
+
sandbox: null,
|
|
148
|
+
state: "starting",
|
|
149
|
+
startError: null,
|
|
150
|
+
startPromise: null,
|
|
151
|
+
};
|
|
152
|
+
this.entries.set(taskId, entry);
|
|
153
|
+
}
|
|
154
|
+
if (entry.state === "running" && entry.sandbox)
|
|
155
|
+
return;
|
|
156
|
+
if (entry.startPromise) {
|
|
157
|
+
await entry.startPromise;
|
|
158
|
+
if (entry.state !== "running" || !entry.sandbox) {
|
|
159
|
+
throw new Error(entry.startError ?? "sandbox failed to start");
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
entry.state = "starting";
|
|
164
|
+
entry.startError = null;
|
|
165
|
+
entry.startPromise = this.bringUp(entry).finally(() => {
|
|
166
|
+
entry.startPromise = null;
|
|
167
|
+
});
|
|
168
|
+
await entry.startPromise;
|
|
169
|
+
if (entry.state !== "running" || !entry.sandbox) {
|
|
170
|
+
throw new Error(entry.startError ?? "sandbox failed to start");
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
async bringUp(entry) {
|
|
174
|
+
try {
|
|
175
|
+
const { Sandbox } = await loadMsb();
|
|
176
|
+
// Resume path: existing sandbox row with on-disk state.
|
|
177
|
+
// microsandbox throws on Sandbox.start when no row exists,
|
|
178
|
+
// so we don't need to probe up front; the start will fail
|
|
179
|
+
// fast and we fall through to the create path.
|
|
180
|
+
let sandbox = null;
|
|
181
|
+
try {
|
|
182
|
+
const SbStart = Sandbox.start;
|
|
183
|
+
if (typeof SbStart === "function") {
|
|
184
|
+
sandbox = await SbStart.call(Sandbox, entry.sandboxName);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
sandbox = null;
|
|
189
|
+
}
|
|
190
|
+
if (!sandbox) {
|
|
191
|
+
// First run: ensure workspace dir, pick the task-role
|
|
192
|
+
// snapshot if any, fork.
|
|
193
|
+
const ws = this.opts.workspaceDir;
|
|
194
|
+
await fs.mkdir(ws, { recursive: true });
|
|
195
|
+
const pointers = await readPointers(ws);
|
|
196
|
+
const taskPointer = pointers.task ?? pointers.browser;
|
|
197
|
+
let snapshotName = null;
|
|
198
|
+
if (taskPointer) {
|
|
199
|
+
const exists = await snapshotExists(taskPointer.snapshotName);
|
|
200
|
+
if (exists)
|
|
201
|
+
snapshotName = taskPointer.snapshotName;
|
|
202
|
+
}
|
|
203
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
204
|
+
let builder = Sandbox
|
|
205
|
+
.builder(entry.sandboxName)
|
|
206
|
+
.cpus(this.opts.config.taskCpus)
|
|
207
|
+
.memory(this.opts.config.taskMemoryMib)
|
|
208
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
209
|
+
.volume("/workspace", (m) =>
|
|
210
|
+
// Same as the long-lived runner: expose host uid so
|
|
211
|
+
// tenant users created inside the guest can access
|
|
212
|
+
// the workspace bind-mount.
|
|
213
|
+
m.bind(ws).statVirtualization("off"))
|
|
214
|
+
.replace(true);
|
|
215
|
+
if (snapshotName) {
|
|
216
|
+
builder = builder.fromSnapshot(snapshotName);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
builder = builder.image(this.opts.config.image);
|
|
220
|
+
}
|
|
221
|
+
sandbox = (await builder.create());
|
|
222
|
+
}
|
|
223
|
+
entry.sandbox = sandbox;
|
|
224
|
+
entry.state = "running";
|
|
225
|
+
this.opts.log.info(`task sandbox up`, { taskId: entry.taskId, sandboxName: entry.sandboxName });
|
|
226
|
+
}
|
|
227
|
+
catch (err) {
|
|
228
|
+
entry.state = "error";
|
|
229
|
+
entry.startError = err instanceof Error ? err.message : String(err);
|
|
230
|
+
this.opts.log.error(`task sandbox failed to start`, {
|
|
231
|
+
taskId: entry.taskId,
|
|
232
|
+
err: entry.startError,
|
|
233
|
+
});
|
|
234
|
+
throw err;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Stop the sandbox bound to `taskId` without removing its disk
|
|
239
|
+
* image. Fire-and-forget — returns once the stop has been kicked
|
|
240
|
+
* off so callers (worker pool's runOne finally) aren't blocked
|
|
241
|
+
* on graceful shutdown. Errors are logged.
|
|
242
|
+
*/
|
|
243
|
+
releaseTask(taskId) {
|
|
244
|
+
const entry = this.entries.get(taskId);
|
|
245
|
+
if (!entry)
|
|
246
|
+
return;
|
|
247
|
+
if (entry.state === STOPPED_STATE)
|
|
248
|
+
return;
|
|
249
|
+
if (entry.state === "starting" && entry.startPromise) {
|
|
250
|
+
// Defer the stop until startup completes; otherwise we'll
|
|
251
|
+
// race the SDK's create() lock and likely fail.
|
|
252
|
+
void entry.startPromise.then(() => this.stopEntry(entry), () => {
|
|
253
|
+
/* startPromise already updated state to error */
|
|
254
|
+
});
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
void this.stopEntry(entry);
|
|
258
|
+
}
|
|
259
|
+
async stopEntry(entry) {
|
|
260
|
+
const sb = entry.sandbox;
|
|
261
|
+
entry.sandbox = null;
|
|
262
|
+
entry.state = STOPPED_STATE;
|
|
263
|
+
if (!sb)
|
|
264
|
+
return;
|
|
265
|
+
try {
|
|
266
|
+
if (typeof sb.stopWithTimeout === "function") {
|
|
267
|
+
await sb.stopWithTimeout(10_000);
|
|
268
|
+
}
|
|
269
|
+
else if (typeof sb.stop === "function") {
|
|
270
|
+
await sb.stop();
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
catch (err) {
|
|
274
|
+
this.opts.log.warn(`task sandbox stop failed`, {
|
|
275
|
+
taskId: entry.taskId,
|
|
276
|
+
err: err instanceof Error ? err.message : String(err),
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Stop AND remove the sandbox so its disk is reclaimed. Called
|
|
282
|
+
* from workboard's task delete handler.
|
|
283
|
+
*/
|
|
284
|
+
async destroyTask(taskId) {
|
|
285
|
+
const entry = this.entries.get(taskId);
|
|
286
|
+
// Sandbox name is deterministic (tianshu-task-<tenantId>-<taskId>),
|
|
287
|
+
// so we can reclaim the on-disk image even when the in-memory
|
|
288
|
+
// pool entry is missing — the typical case for orphan VMs left
|
|
289
|
+
// behind by a previous process incarnation. Synthesise an entry
|
|
290
|
+
// so the regular stop-and-remove path runs uniformly.
|
|
291
|
+
const sandboxName = entry?.sandboxName ?? `tianshu-task-${this.opts.tenantId}-${taskId}`;
|
|
292
|
+
if (entry) {
|
|
293
|
+
// Wait for any in-flight startup so we don't race the SDK.
|
|
294
|
+
if (entry.startPromise) {
|
|
295
|
+
try {
|
|
296
|
+
await entry.startPromise;
|
|
297
|
+
}
|
|
298
|
+
catch {
|
|
299
|
+
/* startup may have failed; we can still attempt remove */
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
if (entry.state === "running") {
|
|
303
|
+
await this.stopEntry(entry);
|
|
304
|
+
}
|
|
305
|
+
this.entries.delete(taskId);
|
|
306
|
+
// Drop session bindings pointing at this taskId.
|
|
307
|
+
for (const [sid, tid] of this.sessionToTask) {
|
|
308
|
+
if (tid === taskId)
|
|
309
|
+
this.sessionToTask.delete(sid);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
try {
|
|
313
|
+
const { Sandbox } = await loadMsb();
|
|
314
|
+
const SbGet = Sandbox.get;
|
|
315
|
+
if (typeof SbGet === "function") {
|
|
316
|
+
const handle = await SbGet.call(Sandbox, sandboxName);
|
|
317
|
+
// Orphan VMs may still be 'running' (e.g. a previous process
|
|
318
|
+
// crashed before stop). Attempt a best-effort stop before
|
|
319
|
+
// remove; the SDK's remove rejects on a still-running VM.
|
|
320
|
+
if (typeof handle.stopWithTimeout === "function") {
|
|
321
|
+
await handle.stopWithTimeout(10_000).catch(() => { });
|
|
322
|
+
}
|
|
323
|
+
await handle.remove();
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
catch (err) {
|
|
327
|
+
this.opts.log.warn(`task sandbox remove failed`, {
|
|
328
|
+
taskId,
|
|
329
|
+
err: err instanceof Error ? err.message : String(err),
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Stop every running task sandbox without removing them. Called
|
|
335
|
+
* from plugin deactivate so the next activate cycle can resume.
|
|
336
|
+
*/
|
|
337
|
+
async dispose() {
|
|
338
|
+
const tasks = [];
|
|
339
|
+
for (const entry of this.entries.values()) {
|
|
340
|
+
if (entry.state === "running" || entry.state === "starting") {
|
|
341
|
+
tasks.push(this.stopEntry(entry));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
await Promise.allSettled(tasks);
|
|
345
|
+
this.sessionToTask.clear();
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Run an exec inside the sandbox bound to `taskId`. Mirrors the
|
|
349
|
+
* timeout / kill semantics of MicrosandboxRunner.exec but
|
|
350
|
+
* without the per-tenant singleton plumbing.
|
|
351
|
+
*/
|
|
352
|
+
async execForTask(taskId, req) {
|
|
353
|
+
const entry = this.entries.get(taskId);
|
|
354
|
+
if (!entry) {
|
|
355
|
+
throw new Error(`no task sandbox for taskId=${taskId}`);
|
|
356
|
+
}
|
|
357
|
+
// Lazy resume: the worker pool is supposed to acquire before
|
|
358
|
+
// exec, but a chat session bound via bindSession() may hit a
|
|
359
|
+
// task whose worker run has ended (state=stopped). Resume on
|
|
360
|
+
// the fly in that case.
|
|
361
|
+
if (entry.state !== "running") {
|
|
362
|
+
await this.acquireTask(taskId);
|
|
363
|
+
}
|
|
364
|
+
if (!entry.sandbox) {
|
|
365
|
+
throw new Error(`task sandbox not ready for taskId=${taskId}`);
|
|
366
|
+
}
|
|
367
|
+
const start = Date.now();
|
|
368
|
+
const timeoutMs = typeof req.timeoutMs === "number" && Number.isFinite(req.timeoutMs)
|
|
369
|
+
? Math.max(0, req.timeoutMs)
|
|
370
|
+
: this.opts.config.taskExecTimeoutMs;
|
|
371
|
+
const workdir = req.workdir ?? "/workspace";
|
|
372
|
+
const script = buildScript(req.userId, workdir, req.command);
|
|
373
|
+
const TIMEOUT = Symbol("exec-timeout");
|
|
374
|
+
const HANDSHAKE = Symbol("exec-handshake-timeout");
|
|
375
|
+
const ABORTED = Symbol("exec-aborted");
|
|
376
|
+
const buildAbortP = () => {
|
|
377
|
+
const sig = req.signal;
|
|
378
|
+
if (!sig)
|
|
379
|
+
return new Promise(() => { });
|
|
380
|
+
if (sig.aborted)
|
|
381
|
+
return Promise.resolve(ABORTED);
|
|
382
|
+
return new Promise((resolve) => {
|
|
383
|
+
sig.addEventListener("abort", () => resolve(ABORTED), { once: true });
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
// Mirror MicrosandboxRunner.exec: race shellStream() itself,
|
|
387
|
+
// not just collect(). If the host-guest agent socket is dead
|
|
388
|
+
// the SDK blocks on the start-of-stream ack and the inner
|
|
389
|
+
// timeout never arms.
|
|
390
|
+
const handshakeP = timeoutMs > 0
|
|
391
|
+
? new Promise((resolve) => setTimeout(() => resolve(HANDSHAKE), timeoutMs))
|
|
392
|
+
: new Promise(() => { });
|
|
393
|
+
const startedExec = await Promise.race([
|
|
394
|
+
entry.sandbox.shellStream(script),
|
|
395
|
+
handshakeP,
|
|
396
|
+
buildAbortP(),
|
|
397
|
+
]);
|
|
398
|
+
if (startedExec === HANDSHAKE) {
|
|
399
|
+
// Mark the entry errored so the next acquireTask path can
|
|
400
|
+
// re-fork instead of handing back the same wedged sandbox.
|
|
401
|
+
entry.state = "error";
|
|
402
|
+
entry.startError = `shellStream handshake timeout after ${timeoutMs}ms`;
|
|
403
|
+
return {
|
|
404
|
+
exitCode: -1,
|
|
405
|
+
stdout: "",
|
|
406
|
+
stderr: `[microsandbox] task sandbox shellStream() did not return ` +
|
|
407
|
+
`within ${timeoutMs}ms — marking sandbox errored so the next ` +
|
|
408
|
+
`task pickup re-forks from the snapshot.`,
|
|
409
|
+
durationMs: Date.now() - start,
|
|
410
|
+
timedOut: true,
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
if (startedExec === ABORTED) {
|
|
414
|
+
return {
|
|
415
|
+
exitCode: -1,
|
|
416
|
+
stdout: "",
|
|
417
|
+
stderr: `[microsandbox] task exec aborted by caller before shellStream returned.`,
|
|
418
|
+
durationMs: Date.now() - start,
|
|
419
|
+
timedOut: false,
|
|
420
|
+
aborted: true,
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
const exec = startedExec;
|
|
424
|
+
let timer = null;
|
|
425
|
+
const collectP = exec.collect();
|
|
426
|
+
const timeoutP = timeoutMs > 0
|
|
427
|
+
? new Promise((resolve) => {
|
|
428
|
+
timer = setTimeout(() => {
|
|
429
|
+
exec.kill().catch(() => { });
|
|
430
|
+
resolve(TIMEOUT);
|
|
431
|
+
}, timeoutMs);
|
|
432
|
+
})
|
|
433
|
+
: new Promise(() => { });
|
|
434
|
+
const collectAbortP = buildAbortP();
|
|
435
|
+
const winner = await Promise.race([collectP, timeoutP, collectAbortP]);
|
|
436
|
+
if (timer)
|
|
437
|
+
clearTimeout(timer);
|
|
438
|
+
if (winner === ABORTED) {
|
|
439
|
+
exec.kill().catch(() => { });
|
|
440
|
+
let partial = { stdout: "", stderr: "" };
|
|
441
|
+
try {
|
|
442
|
+
const drained = await Promise.race([
|
|
443
|
+
collectP,
|
|
444
|
+
new Promise((r) => setTimeout(() => r(null), 1500)),
|
|
445
|
+
]);
|
|
446
|
+
if (drained) {
|
|
447
|
+
partial = { stdout: drained.stdout(), stderr: drained.stderr() };
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
catch {
|
|
451
|
+
/* ignore */
|
|
452
|
+
}
|
|
453
|
+
return {
|
|
454
|
+
exitCode: -1,
|
|
455
|
+
stdout: partial.stdout,
|
|
456
|
+
stderr: (partial.stderr ? partial.stderr + "\n" : "") +
|
|
457
|
+
`[microsandbox] task exec aborted by caller; SIGKILL sent.`,
|
|
458
|
+
durationMs: Date.now() - start,
|
|
459
|
+
timedOut: false,
|
|
460
|
+
aborted: true,
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
if (winner === TIMEOUT) {
|
|
464
|
+
let partial = { stdout: "", stderr: "" };
|
|
465
|
+
try {
|
|
466
|
+
const o = await collectP;
|
|
467
|
+
partial = { stdout: o.stdout(), stderr: o.stderr() };
|
|
468
|
+
}
|
|
469
|
+
catch {
|
|
470
|
+
/* ignore */
|
|
471
|
+
}
|
|
472
|
+
return {
|
|
473
|
+
exitCode: 124,
|
|
474
|
+
stdout: partial.stdout,
|
|
475
|
+
stderr: partial.stderr,
|
|
476
|
+
durationMs: Date.now() - start,
|
|
477
|
+
timedOut: true,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const out = winner;
|
|
481
|
+
return {
|
|
482
|
+
exitCode: out.code,
|
|
483
|
+
stdout: out.stdout(),
|
|
484
|
+
stderr: out.stderr(),
|
|
485
|
+
durationMs: Date.now() - start,
|
|
486
|
+
timedOut: false,
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
/** Path helper exported for tests. */
|
|
491
|
+
export function taskSandboxName(tenantId, taskId) {
|
|
492
|
+
return `tianshu-task-${tenantId}-${taskId}`;
|
|
493
|
+
}
|
|
494
|
+
//# sourceMappingURL=pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../src/runner/pool.ts"],"names":[],"mappings":"AAAA,yBAAyB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EAAE;YACpB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE;YACpB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;YAC9B,QAAQ,EAAE,KAAK;SAChB,CAAC;IACJ,CAAC;CACF;AAED,sCAAsC;AACtC,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,MAAc;IAC9D,OAAO,gBAAgB,QAAQ,IAAI,MAAM,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface MicroSandboxConfig {
|
|
2
|
+
/** Sandbox name (becomes the microsandbox identifier). Default
|
|
3
|
+
* is `tianshu-<tenantId>` filled in by the facade. */
|
|
4
|
+
sandboxName: string;
|
|
5
|
+
/** OCI image to fork from when no snapshot pointer is set. */
|
|
6
|
+
image: string;
|
|
7
|
+
/** vCPUs allocated to the Browser microVM. */
|
|
8
|
+
cpus: number;
|
|
9
|
+
/** Browser microVM memory in MiB. */
|
|
10
|
+
memoryMib: number;
|
|
11
|
+
/** Idle timeout in ms for the Browser sandbox; 0 disables. v0
|
|
12
|
+
* records but doesn't act on this. */
|
|
13
|
+
idleShutdownMs: number;
|
|
14
|
+
/** Default per-exec timeout in ms for the Browser sandbox. */
|
|
15
|
+
execTimeoutMs: number;
|
|
16
|
+
/** vCPUs allocated to each per-task sandbox. Defaults to `cpus`. */
|
|
17
|
+
taskCpus: number;
|
|
18
|
+
/** Memory (MiB) for each per-task sandbox. Defaults to `memoryMib`. */
|
|
19
|
+
taskMemoryMib: number;
|
|
20
|
+
/** How long a per-task sandbox stays alive after its last task
|
|
21
|
+
* releases it before being stopped. 0 = stop immediately. */
|
|
22
|
+
taskIdleShutdownMs: number;
|
|
23
|
+
/** Per-exec timeout in ms for task-pool exec calls. Defaults to
|
|
24
|
+
* `execTimeoutMs`. */
|
|
25
|
+
taskExecTimeoutMs: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const DEFAULT_CONFIG: MicroSandboxConfig;
|
|
28
|
+
/** Apply tenant config defaults. Unknown / wrong-typed fields are
|
|
29
|
+
* ignored and the default kicks in. Task-role fields fall back to
|
|
30
|
+
* the Browser-role value when not explicitly supplied, so legacy
|
|
31
|
+
* single-config installs preserve their pre-split behaviour. */
|
|
32
|
+
export declare function resolveConfig(raw: Record<string, unknown>): MicroSandboxConfig;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/runner/types.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,kBAAkB;IACjC;2DACuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IAGd,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB;2CACuC;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAC;IAItB,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAC;IACtB;kEAC8D;IAC9D,kBAAkB,EAAE,MAAM,CAAC;IAC3B;2BACuB;IACvB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,EAAE,kBAmB5B,CAAC;AAEF;;;iEAGiE;AACjE,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,kBAAkB,CAkD9E"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Internal types shared across the microsandbox runner.
|
|
2
|
+
//
|
|
3
|
+
// The runner has two roles — the long-lived Browser sandbox and
|
|
4
|
+
// the per-task pool — and each role gets its own resource budget.
|
|
5
|
+
// Top-level fields (cpus, memoryMib, idleShutdownMs, execTimeoutMs)
|
|
6
|
+
// describe the Browser role. The matching task* fields describe
|
|
7
|
+
// per-task sandboxes. When a task* field isn't supplied, it falls
|
|
8
|
+
// back to the Browser-role value, so existing single-config
|
|
9
|
+
// installs see no behaviour change.
|
|
10
|
+
export const DEFAULT_CONFIG = {
|
|
11
|
+
sandboxName: "default", // overridden per-tenant by the facade
|
|
12
|
+
image: "python:3.12-slim",
|
|
13
|
+
cpus: 2,
|
|
14
|
+
// 4 GiB is the smallest value where pip-installing the standard
|
|
15
|
+
// Python data science stack + a chromium build doesn't OOM.
|
|
16
|
+
// Browser-heavy (Playwright + multi-tab) workloads still want
|
|
17
|
+
// to bump to 8192+ via the plugin config UI, but at 4 GiB the
|
|
18
|
+
// out-of-the-box experience doesn't hit "the kernel killed our
|
|
19
|
+
// pip install" on first run.
|
|
20
|
+
memoryMib: 4096,
|
|
21
|
+
idleShutdownMs: 14_400_000, // 4h
|
|
22
|
+
execTimeoutMs: 300_000, // 5min
|
|
23
|
+
// Task-role defaults mirror the Browser role until the operator
|
|
24
|
+
// overrides them via plugin config.
|
|
25
|
+
taskCpus: 2,
|
|
26
|
+
taskMemoryMib: 4096,
|
|
27
|
+
taskIdleShutdownMs: 600_000, // 10min after last release
|
|
28
|
+
taskExecTimeoutMs: 300_000,
|
|
29
|
+
};
|
|
30
|
+
/** Apply tenant config defaults. Unknown / wrong-typed fields are
|
|
31
|
+
* ignored and the default kicks in. Task-role fields fall back to
|
|
32
|
+
* the Browser-role value when not explicitly supplied, so legacy
|
|
33
|
+
* single-config installs preserve their pre-split behaviour. */
|
|
34
|
+
export function resolveConfig(raw) {
|
|
35
|
+
const out = { ...DEFAULT_CONFIG };
|
|
36
|
+
if (typeof raw.sandboxName === "string" && raw.sandboxName.length > 0)
|
|
37
|
+
out.sandboxName = raw.sandboxName;
|
|
38
|
+
if (typeof raw.image === "string" && raw.image.length > 0)
|
|
39
|
+
out.image = raw.image;
|
|
40
|
+
if (typeof raw.cpus === "number" && Number.isFinite(raw.cpus) && raw.cpus > 0)
|
|
41
|
+
out.cpus = Math.floor(raw.cpus);
|
|
42
|
+
if (typeof raw.memoryMib === "number" && Number.isFinite(raw.memoryMib) && raw.memoryMib > 0) {
|
|
43
|
+
out.memoryMib = Math.floor(raw.memoryMib);
|
|
44
|
+
}
|
|
45
|
+
if (typeof raw.idleShutdownMs === "number" && Number.isFinite(raw.idleShutdownMs) && raw.idleShutdownMs >= 0) {
|
|
46
|
+
out.idleShutdownMs = raw.idleShutdownMs;
|
|
47
|
+
}
|
|
48
|
+
if (typeof raw.execTimeoutMs === "number" && Number.isFinite(raw.execTimeoutMs) && raw.execTimeoutMs > 0) {
|
|
49
|
+
out.execTimeoutMs = raw.execTimeoutMs;
|
|
50
|
+
}
|
|
51
|
+
// Task-role overrides. Each falls back to the matching
|
|
52
|
+
// Browser-role value when missing/invalid, so unconfigured
|
|
53
|
+
// installs see one shared budget across both roles.
|
|
54
|
+
out.taskCpus = out.cpus;
|
|
55
|
+
out.taskMemoryMib = out.memoryMib;
|
|
56
|
+
out.taskExecTimeoutMs = out.execTimeoutMs;
|
|
57
|
+
if (typeof raw.taskCpus === "number" &&
|
|
58
|
+
Number.isFinite(raw.taskCpus) &&
|
|
59
|
+
raw.taskCpus > 0) {
|
|
60
|
+
out.taskCpus = Math.floor(raw.taskCpus);
|
|
61
|
+
}
|
|
62
|
+
if (typeof raw.taskMemoryMib === "number" &&
|
|
63
|
+
Number.isFinite(raw.taskMemoryMib) &&
|
|
64
|
+
raw.taskMemoryMib > 0) {
|
|
65
|
+
out.taskMemoryMib = Math.floor(raw.taskMemoryMib);
|
|
66
|
+
}
|
|
67
|
+
if (typeof raw.taskExecTimeoutMs === "number" &&
|
|
68
|
+
Number.isFinite(raw.taskExecTimeoutMs) &&
|
|
69
|
+
raw.taskExecTimeoutMs > 0) {
|
|
70
|
+
out.taskExecTimeoutMs = raw.taskExecTimeoutMs;
|
|
71
|
+
}
|
|
72
|
+
if (typeof raw.taskIdleShutdownMs === "number" &&
|
|
73
|
+
Number.isFinite(raw.taskIdleShutdownMs) &&
|
|
74
|
+
raw.taskIdleShutdownMs >= 0) {
|
|
75
|
+
out.taskIdleShutdownMs = raw.taskIdleShutdownMs;
|
|
76
|
+
}
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/runner/types.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,gEAAgE;AAChE,kEAAkE;AAClE,oEAAoE;AACpE,gEAAgE;AAChE,kEAAkE;AAClE,4DAA4D;AAC5D,oCAAoC;AAkCpC,MAAM,CAAC,MAAM,cAAc,GAAuB;IAChD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,CAAC;IACP,gEAAgE;IAChE,4DAA4D;IAC5D,8DAA8D;IAC9D,8DAA8D;IAC9D,+DAA+D;IAC/D,6BAA6B;IAC7B,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,UAAU,EAAE,KAAK;IACjC,aAAa,EAAE,OAAO,EAAE,OAAO;IAC/B,gEAAgE;IAChE,oCAAoC;IACpC,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,OAAO,EAAE,2BAA2B;IACxD,iBAAiB,EAAE,OAAO;CAC3B,CAAC;AAEF;;;iEAGiE;AACjE,MAAM,UAAU,aAAa,CAAC,GAA4B;IACxD,MAAM,GAAG,GAAuB,EAAE,GAAG,cAAc,EAAE,CAAC;IACtD,IAAI,OAAO,GAAG,CAAC,WAAW,KAAK,QAAQ,IAAI,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;QAAE,GAAG,CAAC,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IACzG,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,IAAI,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAA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MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC7B,GAAG,CAAC,QAAQ,GAAG,CAAC,EAChB,CAAC;QACD,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IACD,IACE,OAAO,GAAG,CAAC,aAAa,KAAK,QAAQ;QACrC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC;QAClC,GAAG,CAAC,aAAa,GAAG,CAAC,EACrB,CAAC;QACD,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACpD,CAAC;IACD,IACE,OAAO,GAAG,CAAC,iBAAiB,KAAK,QAAQ;QACzC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC;QACtC,GAAG,CAAC,iBAAiB,GAAG,CAAC,EACzB,CAAC;QACD,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;IAChD,CAAC;IACD,IACE,OAAO,GAAG,CAAC,kBAAkB,KAAK,QAAQ;QAC1C,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC;QACvC,GAAG,CAAC,kBAAkB,IAAI,CAAC,EAC3B,CAAC;QACD,GAAG,CAAC,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC;IAClD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PluginContext, PluginServerExports } from "@tianshu/plugin-sdk";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
activate(ctx: PluginContext): Promise<PluginServerExports>;
|
|
4
|
+
deactivate(): Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAIV,aAAa,EAEb,mBAAmB,EAGpB,MAAM,qBAAqB,CAAC;;kBAqJP,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC;;;AADlE,wBA+JE"}
|