@hold-rein/cli 0.0.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/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/api/app.d.ts +7 -0
- package/dist/runtime/api/app.d.ts.map +1 -0
- package/dist/runtime/api/app.js +41 -0
- package/dist/runtime/api/config/const.d.ts +8 -0
- package/dist/runtime/api/config/const.d.ts.map +1 -0
- package/dist/runtime/api/config/const.js +9 -0
- package/dist/runtime/api/config/env.d.ts +10 -0
- package/dist/runtime/api/config/env.d.ts.map +1 -0
- package/dist/runtime/api/config/env.js +32 -0
- package/dist/runtime/api/db/connection.d.ts +11 -0
- package/dist/runtime/api/db/connection.d.ts.map +1 -0
- package/dist/runtime/api/db/connection.js +21 -0
- package/dist/runtime/api/db/index.d.ts +4 -0
- package/dist/runtime/api/db/index.d.ts.map +1 -0
- package/dist/runtime/api/db/index.js +3 -0
- package/dist/runtime/api/db/migrate.d.ts +4 -0
- package/dist/runtime/api/db/migrate.d.ts.map +1 -0
- package/dist/runtime/api/db/migrate.js +308 -0
- package/dist/runtime/api/db/schema.d.ts +1610 -0
- package/dist/runtime/api/db/schema.d.ts.map +1 -0
- package/dist/runtime/api/db/schema.js +148 -0
- package/dist/runtime/api/middleware/error-middleware.d.ts +3 -0
- package/dist/runtime/api/middleware/error-middleware.d.ts.map +1 -0
- package/dist/runtime/api/middleware/error-middleware.js +5 -0
- package/dist/runtime/api/middleware/not-found-middleware.d.ts +3 -0
- package/dist/runtime/api/middleware/not-found-middleware.d.ts.map +1 -0
- package/dist/runtime/api/middleware/not-found-middleware.js +4 -0
- package/dist/runtime/api/modules/agents/active-task-run-registry.d.ts +10 -0
- package/dist/runtime/api/modules/agents/active-task-run-registry.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/active-task-run-registry.js +20 -0
- package/dist/runtime/api/modules/agents/agent-approval-store.d.ts +7 -0
- package/dist/runtime/api/modules/agents/agent-approval-store.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-approval-store.js +23 -0
- package/dist/runtime/api/modules/agents/agent-event-bus.d.ts +8 -0
- package/dist/runtime/api/modules/agents/agent-event-bus.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-event-bus.js +40 -0
- package/dist/runtime/api/modules/agents/agent-message-repository.d.ts +22 -0
- package/dist/runtime/api/modules/agents/agent-message-repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-message-repository.js +60 -0
- package/dist/runtime/api/modules/agents/agent-message-storage.d.ts +4 -0
- package/dist/runtime/api/modules/agents/agent-message-storage.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-message-storage.js +11 -0
- package/dist/runtime/api/modules/agents/agent-model-resolver.d.ts +4 -0
- package/dist/runtime/api/modules/agents/agent-model-resolver.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-model-resolver.js +17 -0
- package/dist/runtime/api/modules/agents/agent-runtime-messages.d.ts +12 -0
- package/dist/runtime/api/modules/agents/agent-runtime-messages.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-runtime-messages.js +19 -0
- package/dist/runtime/api/modules/agents/agent-runtime-support.d.ts +12 -0
- package/dist/runtime/api/modules/agents/agent-runtime-support.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-runtime-support.js +38 -0
- package/dist/runtime/api/modules/agents/agent-runtime.d.ts +25 -0
- package/dist/runtime/api/modules/agents/agent-runtime.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-runtime.js +371 -0
- package/dist/runtime/api/modules/agents/agent-subagents.d.ts +32 -0
- package/dist/runtime/api/modules/agents/agent-subagents.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-subagents.js +65 -0
- package/dist/runtime/api/modules/agents/agent-task-actions.d.ts +9 -0
- package/dist/runtime/api/modules/agents/agent-task-actions.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-task-actions.js +33 -0
- package/dist/runtime/api/modules/agents/agent-task-title-generator.d.ts +15 -0
- package/dist/runtime/api/modules/agents/agent-task-title-generator.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-task-title-generator.js +61 -0
- package/dist/runtime/api/modules/agents/agent-tool-approval.d.ts +12 -0
- package/dist/runtime/api/modules/agents/agent-tool-approval.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-tool-approval.js +40 -0
- package/dist/runtime/api/modules/agents/agent-types.d.ts +198 -0
- package/dist/runtime/api/modules/agents/agent-types.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agent-types.js +1 -0
- package/dist/runtime/api/modules/agents/agents-router.d.ts +7 -0
- package/dist/runtime/api/modules/agents/agents-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agents-router.js +210 -0
- package/dist/runtime/api/modules/agents/agents-service.d.ts +52 -0
- package/dist/runtime/api/modules/agents/agents-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/agents-service.js +282 -0
- package/dist/runtime/api/modules/agents/approval/store.d.ts +7 -0
- package/dist/runtime/api/modules/agents/approval/store.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/approval/store.js +23 -0
- package/dist/runtime/api/modules/agents/approval/tool-approval.d.ts +14 -0
- package/dist/runtime/api/modules/agents/approval/tool-approval.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/approval/tool-approval.js +43 -0
- package/dist/runtime/api/modules/agents/custom-agent-model.d.ts +16 -0
- package/dist/runtime/api/modules/agents/custom-agent-model.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/custom-agent-model.js +21 -0
- package/dist/runtime/api/modules/agents/default-agents-service.d.ts +3 -0
- package/dist/runtime/api/modules/agents/default-agents-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/default-agents-service.js +52 -0
- package/dist/runtime/api/modules/agents/event/event-bus.d.ts +8 -0
- package/dist/runtime/api/modules/agents/event/event-bus.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/event/event-bus.js +40 -0
- package/dist/runtime/api/modules/agents/index.d.ts +11 -0
- package/dist/runtime/api/modules/agents/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/index.js +9 -0
- package/dist/runtime/api/modules/agents/message/storage.d.ts +4 -0
- package/dist/runtime/api/modules/agents/message/storage.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/message/storage.js +11 -0
- package/dist/runtime/api/modules/agents/model/custom-model.d.ts +16 -0
- package/dist/runtime/api/modules/agents/model/custom-model.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/model/custom-model.js +21 -0
- package/dist/runtime/api/modules/agents/model/resolver.d.ts +4 -0
- package/dist/runtime/api/modules/agents/model/resolver.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/model/resolver.js +17 -0
- package/dist/runtime/api/modules/agents/router/browser-tool-result.d.ts +8 -0
- package/dist/runtime/api/modules/agents/router/browser-tool-result.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/router/browser-tool-result.js +35 -0
- package/dist/runtime/api/modules/agents/router/index.d.ts +10 -0
- package/dist/runtime/api/modules/agents/router/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/router/index.js +210 -0
- package/dist/runtime/api/modules/agents/router/request-parsing.d.ts +24 -0
- package/dist/runtime/api/modules/agents/router/request-parsing.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/router/request-parsing.js +78 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-contributions.d.ts +5 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-contributions.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-contributions.js +115 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-tools.d.ts +13 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-tools.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/browser-runtime-tools.js +31 -0
- package/dist/runtime/api/modules/agents/runtime/browser-tool-call-store.d.ts +21 -0
- package/dist/runtime/api/modules/agents/runtime/browser-tool-call-store.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/browser-tool-call-store.js +69 -0
- package/dist/runtime/api/modules/agents/runtime/continuation-subagent.d.ts +26 -0
- package/dist/runtime/api/modules/agents/runtime/continuation-subagent.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/continuation-subagent.js +67 -0
- package/dist/runtime/api/modules/agents/runtime/index.d.ts +3 -0
- package/dist/runtime/api/modules/agents/runtime/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/index.js +432 -0
- package/dist/runtime/api/modules/agents/runtime/messages.d.ts +12 -0
- package/dist/runtime/api/modules/agents/runtime/messages.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/messages.js +19 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-results.d.ts +22 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-results.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-results.js +39 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-tools.d.ts +49 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-tools.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/subagent-tools.js +195 -0
- package/dist/runtime/api/modules/agents/runtime/support.d.ts +19 -0
- package/dist/runtime/api/modules/agents/runtime/support.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/support.js +106 -0
- package/dist/runtime/api/modules/agents/runtime/token-collection.d.ts +28 -0
- package/dist/runtime/api/modules/agents/runtime/token-collection.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/token-collection.js +131 -0
- package/dist/runtime/api/modules/agents/runtime/token-usage-sync.d.ts +15 -0
- package/dist/runtime/api/modules/agents/runtime/token-usage-sync.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/token-usage-sync.js +46 -0
- package/dist/runtime/api/modules/agents/runtime/type.d.ts +62 -0
- package/dist/runtime/api/modules/agents/runtime/type.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/type.js +1 -0
- package/dist/runtime/api/modules/agents/runtime/workspace-agent-instructions.d.ts +3 -0
- package/dist/runtime/api/modules/agents/runtime/workspace-agent-instructions.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/runtime/workspace-agent-instructions.js +31 -0
- package/dist/runtime/api/modules/agents/service/default.d.ts +3 -0
- package/dist/runtime/api/modules/agents/service/default.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/service/default.js +65 -0
- package/dist/runtime/api/modules/agents/service/index.d.ts +56 -0
- package/dist/runtime/api/modules/agents/service/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/service/index.js +296 -0
- package/dist/runtime/api/modules/agents/service/interrupt-task.d.ts +14 -0
- package/dist/runtime/api/modules/agents/service/interrupt-task.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/service/interrupt-task.js +34 -0
- package/dist/runtime/api/modules/agents/service/startup-recovery.d.ts +14 -0
- package/dist/runtime/api/modules/agents/service/startup-recovery.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/service/startup-recovery.js +15 -0
- package/dist/runtime/api/modules/agents/shell-command-risk.d.ts +3 -0
- package/dist/runtime/api/modules/agents/shell-command-risk.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/shell-command-risk.js +24 -0
- package/dist/runtime/api/modules/agents/shell-exec-tool.d.ts +4 -0
- package/dist/runtime/api/modules/agents/shell-exec-tool.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/shell-exec-tool.js +71 -0
- package/dist/runtime/api/modules/agents/subagent/index.d.ts +45 -0
- package/dist/runtime/api/modules/agents/subagent/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/subagent/index.js +143 -0
- package/dist/runtime/api/modules/agents/subagent/lifecycle.d.ts +13 -0
- package/dist/runtime/api/modules/agents/subagent/lifecycle.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/subagent/lifecycle.js +36 -0
- package/dist/runtime/api/modules/agents/subagent/repository.d.ts +12 -0
- package/dist/runtime/api/modules/agents/subagent/repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/subagent/repository.js +93 -0
- package/dist/runtime/api/modules/agents/subagent-repository.d.ts +11 -0
- package/dist/runtime/api/modules/agents/subagent-repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/subagent-repository.js +65 -0
- package/dist/runtime/api/modules/agents/task/actions.d.ts +10 -0
- package/dist/runtime/api/modules/agents/task/actions.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/task/actions.js +37 -0
- package/dist/runtime/api/modules/agents/task/active-run-registry.d.ts +10 -0
- package/dist/runtime/api/modules/agents/task/active-run-registry.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/task/active-run-registry.js +20 -0
- package/dist/runtime/api/modules/agents/task/run-monitor.d.ts +14 -0
- package/dist/runtime/api/modules/agents/task/run-monitor.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/task/run-monitor.js +42 -0
- package/dist/runtime/api/modules/agents/task/title-generator.d.ts +15 -0
- package/dist/runtime/api/modules/agents/task/title-generator.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/task/title-generator.js +61 -0
- package/dist/runtime/api/modules/agents/task-run-monitor.d.ts +14 -0
- package/dist/runtime/api/modules/agents/task-run-monitor.d.ts.map +1 -0
- package/dist/runtime/api/modules/agents/task-run-monitor.js +42 -0
- package/dist/runtime/api/modules/file-system/file-system-router.d.ts +6 -0
- package/dist/runtime/api/modules/file-system/file-system-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/file-system/file-system-router.js +119 -0
- package/dist/runtime/api/modules/file-system/file-system-service.d.ts +30 -0
- package/dist/runtime/api/modules/file-system/file-system-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/file-system/file-system-service.js +209 -0
- package/dist/runtime/api/modules/file-system/index.d.ts +4 -0
- package/dist/runtime/api/modules/file-system/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/file-system/index.js +1 -0
- package/dist/runtime/api/modules/health/health-router.d.ts +3 -0
- package/dist/runtime/api/modules/health/health-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/health/health-router.js +10 -0
- package/dist/runtime/api/modules/health/index.d.ts +2 -0
- package/dist/runtime/api/modules/health/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/health/index.js +1 -0
- package/dist/runtime/api/modules/model-providers/default-model-provider-service.d.ts +3 -0
- package/dist/runtime/api/modules/model-providers/default-model-provider-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/default-model-provider-service.js +21 -0
- package/dist/runtime/api/modules/model-providers/index.d.ts +5 -0
- package/dist/runtime/api/modules/model-providers/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/index.js +4 -0
- package/dist/runtime/api/modules/model-providers/model-provider-api-key-crypto.d.ts +8 -0
- package/dist/runtime/api/modules/model-providers/model-provider-api-key-crypto.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/model-provider-api-key-crypto.js +35 -0
- package/dist/runtime/api/modules/model-providers/model-provider-repository.d.ts +51 -0
- package/dist/runtime/api/modules/model-providers/model-provider-repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/model-provider-repository.js +314 -0
- package/dist/runtime/api/modules/model-providers/model-providers-router.d.ts +9 -0
- package/dist/runtime/api/modules/model-providers/model-providers-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/model-providers-router.js +188 -0
- package/dist/runtime/api/modules/model-providers/model-providers-service.d.ts +52 -0
- package/dist/runtime/api/modules/model-providers/model-providers-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-providers/model-providers-service.js +239 -0
- package/dist/runtime/api/modules/model-proxies/default-model-proxies-service.d.ts +3 -0
- package/dist/runtime/api/modules/model-proxies/default-model-proxies-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/default-model-proxies-service.js +22 -0
- package/dist/runtime/api/modules/model-proxies/index.d.ts +5 -0
- package/dist/runtime/api/modules/model-proxies/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/index.js +4 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-router.d.ts +7 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-router.js +55 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-service.d.ts +26 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/model-proxies-service.js +107 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-repository.d.ts +39 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-repository.js +146 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-runtime.d.ts +20 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-runtime.d.ts.map +1 -0
- package/dist/runtime/api/modules/model-proxies/model-proxy-runtime.js +45 -0
- package/dist/runtime/api/modules/plugins/plugins-router.d.ts +7 -0
- package/dist/runtime/api/modules/plugins/plugins-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/plugins/plugins-router.js +11 -0
- package/dist/runtime/api/modules/skills/default-skills-service.d.ts +3 -0
- package/dist/runtime/api/modules/skills/default-skills-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/skills/default-skills-service.js +9 -0
- package/dist/runtime/api/modules/skills/index.d.ts +5 -0
- package/dist/runtime/api/modules/skills/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/skills/index.js +3 -0
- package/dist/runtime/api/modules/skills/skills-router.d.ts +7 -0
- package/dist/runtime/api/modules/skills/skills-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/skills/skills-router.js +56 -0
- package/dist/runtime/api/modules/skills/skills-service.d.ts +7 -0
- package/dist/runtime/api/modules/skills/skills-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/skills/skills-service.js +264 -0
- package/dist/runtime/api/modules/skills/skills-types.d.ts +22 -0
- package/dist/runtime/api/modules/skills/skills-types.d.ts.map +1 -0
- package/dist/runtime/api/modules/skills/skills-types.js +1 -0
- package/dist/runtime/api/modules/usage-stats/default-usage-stats-service.d.ts +3 -0
- package/dist/runtime/api/modules/usage-stats/default-usage-stats-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/usage-stats/default-usage-stats-service.js +17 -0
- package/dist/runtime/api/modules/usage-stats/index.d.ts +4 -0
- package/dist/runtime/api/modules/usage-stats/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/usage-stats/index.js +2 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-router.d.ts +7 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-router.js +42 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-service.d.ts +40 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-service.js +144 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-types.d.ts +39 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-types.d.ts.map +1 -0
- package/dist/runtime/api/modules/usage-stats/usage-stats-types.js +1 -0
- package/dist/runtime/api/modules/workspaces/default-workspaces-service.d.ts +3 -0
- package/dist/runtime/api/modules/workspaces/default-workspaces-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/default-workspaces-service.js +20 -0
- package/dist/runtime/api/modules/workspaces/index.d.ts +6 -0
- package/dist/runtime/api/modules/workspaces/index.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/index.js +5 -0
- package/dist/runtime/api/modules/workspaces/workspace-repository.d.ts +41 -0
- package/dist/runtime/api/modules/workspaces/workspace-repository.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/workspace-repository.js +326 -0
- package/dist/runtime/api/modules/workspaces/workspace-types.d.ts +33 -0
- package/dist/runtime/api/modules/workspaces/workspace-types.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/workspace-types.js +1 -0
- package/dist/runtime/api/modules/workspaces/workspaces-router.d.ts +7 -0
- package/dist/runtime/api/modules/workspaces/workspaces-router.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/workspaces-router.js +71 -0
- package/dist/runtime/api/modules/workspaces/workspaces-service.d.ts +24 -0
- package/dist/runtime/api/modules/workspaces/workspaces-service.d.ts.map +1 -0
- package/dist/runtime/api/modules/workspaces/workspaces-service.js +109 -0
- package/dist/runtime/api/plugin.d.ts +5 -0
- package/dist/runtime/api/plugin.d.ts.map +1 -0
- package/dist/runtime/api/plugin.js +48 -0
- package/dist/runtime/api/response/api-response.d.ts +11 -0
- package/dist/runtime/api/response/api-response.d.ts.map +1 -0
- package/dist/runtime/api/response/api-response.js +18 -0
- package/dist/runtime/api/response/index.d.ts +3 -0
- package/dist/runtime/api/response/index.d.ts.map +1 -0
- package/dist/runtime/api/response/index.js +2 -0
- package/dist/runtime/api/response/response-codes.d.ts +52 -0
- package/dist/runtime/api/response/response-codes.d.ts.map +1 -0
- package/dist/runtime/api/response/response-codes.js +44 -0
- package/dist/runtime/api/router/v1/index.d.ts +12 -0
- package/dist/runtime/api/router/v1/index.d.ts.map +1 -0
- package/dist/runtime/api/router/v1/index.js +26 -0
- package/dist/runtime/api/runtime.d.ts +15 -0
- package/dist/runtime/api/runtime.d.ts.map +1 -0
- package/dist/runtime/api/runtime.js +30 -0
- package/dist/runtime/api/server.d.ts +2 -0
- package/dist/runtime/api/server.d.ts.map +1 -0
- package/dist/runtime/api/server.js +14 -0
- package/dist/runtime/api/service/health-service.d.ts +7 -0
- package/dist/runtime/api/service/health-service.d.ts.map +1 -0
- package/dist/runtime/api/service/health-service.js +7 -0
- package/dist/runtime/web/assets/abap-DLDM7-KI.js +1 -0
- package/dist/runtime/web/assets/apex-DNDY2TF8.js +1 -0
- package/dist/runtime/web/assets/azcli-Y6nb8tq_.js +1 -0
- package/dist/runtime/web/assets/bat-BwHxbl9M.js +1 -0
- package/dist/runtime/web/assets/bicep-CFznDFnq.js +2 -0
- package/dist/runtime/web/assets/cameligo-Bf6VGUru.js +1 -0
- package/dist/runtime/web/assets/clojure-Dnu-v4kV.js +1 -0
- package/dist/runtime/web/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist/runtime/web/assets/coffee-Bd8akH9Z.js +1 -0
- package/dist/runtime/web/assets/cpp-BbWJElDN.js +1 -0
- package/dist/runtime/web/assets/csharp-Co3qMtFm.js +1 -0
- package/dist/runtime/web/assets/csp-D-4FJmMZ.js +1 -0
- package/dist/runtime/web/assets/css-DdJfP1eB.js +3 -0
- package/dist/runtime/web/assets/css.worker-B4z49cGk.js +93 -0
- package/dist/runtime/web/assets/cssMode-w2xbbUEW.js +1 -0
- package/dist/runtime/web/assets/cypher-cTPe9QuQ.js +1 -0
- package/dist/runtime/web/assets/dart-BOtBlQCF.js +1 -0
- package/dist/runtime/web/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/runtime/web/assets/ecl-BEgZUVRK.js +1 -0
- package/dist/runtime/web/assets/elixir-BkW5O-1t.js +1 -0
- package/dist/runtime/web/assets/flow9-BeJ5waoc.js +1 -0
- package/dist/runtime/web/assets/freemarker2-mywz2bob.js +3 -0
- package/dist/runtime/web/assets/fsharp-PahG7c26.js +1 -0
- package/dist/runtime/web/assets/go-acbASCJo.js +1 -0
- package/dist/runtime/web/assets/graphql-BxJiqAUM.js +1 -0
- package/dist/runtime/web/assets/handlebars-Cy-2QN_R.js +1 -0
- package/dist/runtime/web/assets/hcl-DtV1sZF8.js +1 -0
- package/dist/runtime/web/assets/html-2WQMGvns.js +1 -0
- package/dist/runtime/web/assets/html.worker-DtiGdgqp.js +470 -0
- package/dist/runtime/web/assets/htmlMode-BznIdxOy.js +1 -0
- package/dist/runtime/web/assets/index-CQ_mZUpS.css +1 -0
- package/dist/runtime/web/assets/index-CtZcItCu.js +1512 -0
- package/dist/runtime/web/assets/ini-Kd9XrMLS.js +1 -0
- package/dist/runtime/web/assets/java-CXBNlu9o.js +1 -0
- package/dist/runtime/web/assets/javascript-BK6G_5BV.js +1 -0
- package/dist/runtime/web/assets/json.worker-leyajbqV.js +58 -0
- package/dist/runtime/web/assets/jsonMode-DI8_Cj0K.js +7 -0
- package/dist/runtime/web/assets/julia-cl7-CwDS.js +1 -0
- package/dist/runtime/web/assets/kotlin-s7OhZKlX.js +1 -0
- package/dist/runtime/web/assets/less-9HpZscsL.js +2 -0
- package/dist/runtime/web/assets/lexon-OrD6JF1K.js +1 -0
- package/dist/runtime/web/assets/liquid-CE7Qnc0w.js +1 -0
- package/dist/runtime/web/assets/lspLanguageFeatures-DKvGiYOU.js +4 -0
- package/dist/runtime/web/assets/lua-Cyyb5UIc.js +1 -0
- package/dist/runtime/web/assets/m3-B8OfTtLu.js +1 -0
- package/dist/runtime/web/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/runtime/web/assets/mdx-Fk0ZjYeT.js +1 -0
- package/dist/runtime/web/assets/mips-CiqrrVzr.js +1 -0
- package/dist/runtime/web/assets/msdax-DmeGPVcC.js +1 -0
- package/dist/runtime/web/assets/mysql-C_tMU-Nz.js +1 -0
- package/dist/runtime/web/assets/objective-c-BDtDVThU.js +1 -0
- package/dist/runtime/web/assets/pascal-vHIfCaH5.js +1 -0
- package/dist/runtime/web/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/dist/runtime/web/assets/perl-Ub6l9XKa.js +1 -0
- package/dist/runtime/web/assets/pgsql-BlNEE0v7.js +1 -0
- package/dist/runtime/web/assets/php-BBUBE1dy.js +1 -0
- package/dist/runtime/web/assets/pla-DSh2-awV.js +1 -0
- package/dist/runtime/web/assets/postiats-CocnycG-.js +1 -0
- package/dist/runtime/web/assets/powerquery-tScXyioY.js +1 -0
- package/dist/runtime/web/assets/powershell-COWaemsV.js +1 -0
- package/dist/runtime/web/assets/protobuf-Brw8urJB.js +2 -0
- package/dist/runtime/web/assets/pug-8SOpv6rk.js +1 -0
- package/dist/runtime/web/assets/python-xn7eKnQc.js +1 -0
- package/dist/runtime/web/assets/qsharp-Bw9ernYp.js +1 -0
- package/dist/runtime/web/assets/r-j7ic8hl3.js +1 -0
- package/dist/runtime/web/assets/razor-BjC5fot0.js +1 -0
- package/dist/runtime/web/assets/redis-Bu5POkcn.js +1 -0
- package/dist/runtime/web/assets/redshift-Bs9aos_-.js +1 -0
- package/dist/runtime/web/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/dist/runtime/web/assets/ruby-zBfavPgS.js +1 -0
- package/dist/runtime/web/assets/rust-BzKRNQWT.js +1 -0
- package/dist/runtime/web/assets/sb-BBc9UKZt.js +1 -0
- package/dist/runtime/web/assets/scala-D9hQfWCl.js +1 -0
- package/dist/runtime/web/assets/scheme-BPhDTwHR.js +1 -0
- package/dist/runtime/web/assets/scss-CBJaRo0y.js +3 -0
- package/dist/runtime/web/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/runtime/web/assets/solidity-Db0IVjzk.js +1 -0
- package/dist/runtime/web/assets/sophia-CnS9iZB_.js +1 -0
- package/dist/runtime/web/assets/sparql-CJmd_6j2.js +1 -0
- package/dist/runtime/web/assets/sql-ClhHkBeG.js +1 -0
- package/dist/runtime/web/assets/st-CHwy0fLd.js +1 -0
- package/dist/runtime/web/assets/swift-Bqt4WxQ4.js +3 -0
- package/dist/runtime/web/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/dist/runtime/web/assets/tcl-Dm6ycUr_.js +1 -0
- package/dist/runtime/web/assets/ts.worker-59MjiAqk.js +67731 -0
- package/dist/runtime/web/assets/tsMode-8t6AIduV.js +11 -0
- package/dist/runtime/web/assets/twig-Csy3S7wG.js +1 -0
- package/dist/runtime/web/assets/typescript-DvPPogGC.js +1 -0
- package/dist/runtime/web/assets/typespec-Btyra-wh.js +1 -0
- package/dist/runtime/web/assets/vb-Db0cS2oM.js +1 -0
- package/dist/runtime/web/assets/wgsl-BTesnYfV.js +298 -0
- package/dist/runtime/web/assets/xml-CB8xdh8u.js +1 -0
- package/dist/runtime/web/assets/yaml-B4sXC4FA.js +1 -0
- package/dist/runtime/web/index.html +13 -0
- package/package.json +42 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { AgentHarnessEvent } from "@earendil-works/pi-agent-core";
|
|
2
|
+
import type { ThinkingLevel } from "@earendil-works/pi-agent-core";
|
|
3
|
+
import type { TaskRow, WorkspaceRow } from "../../db";
|
|
4
|
+
export interface StartAgentInput {
|
|
5
|
+
approvalPolicy?: ApprovalPolicy;
|
|
6
|
+
modelId: string;
|
|
7
|
+
prompt: string;
|
|
8
|
+
provider: string;
|
|
9
|
+
runtimeContributions?: BrowserRuntimeContributions;
|
|
10
|
+
thinkingLevel?: ThinkingLevel;
|
|
11
|
+
workspacePath: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RunAgentInput extends Omit<StartAgentInput, "approvalPolicy" | "thinkingLevel"> {
|
|
14
|
+
approvalPolicy: ApprovalPolicy;
|
|
15
|
+
session?: AgentSessionMetadata;
|
|
16
|
+
taskId: string;
|
|
17
|
+
thinkingLevel: ThinkingLevel;
|
|
18
|
+
}
|
|
19
|
+
export interface BrowserRuntimeToolSchema {
|
|
20
|
+
description?: string;
|
|
21
|
+
inputSchema: unknown;
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BrowserRuntimeSkill {
|
|
25
|
+
content: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
export interface BrowserRuntimeContributions {
|
|
30
|
+
skills?: BrowserRuntimeSkill[];
|
|
31
|
+
systemPrompts?: string[];
|
|
32
|
+
tools?: BrowserRuntimeToolSchema[];
|
|
33
|
+
}
|
|
34
|
+
export interface BrowserToolResultInput {
|
|
35
|
+
agentId: string;
|
|
36
|
+
content: string | StoredTextContent[];
|
|
37
|
+
isError?: boolean;
|
|
38
|
+
toolCallId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AgentSessionMetadata {
|
|
41
|
+
createdAt: string;
|
|
42
|
+
id: string;
|
|
43
|
+
path: string;
|
|
44
|
+
}
|
|
45
|
+
export interface AgentRunResult {
|
|
46
|
+
agentId: string;
|
|
47
|
+
session: AgentSessionMetadata;
|
|
48
|
+
status: "running";
|
|
49
|
+
}
|
|
50
|
+
export type ApprovalPolicy = "approval" | "run_all";
|
|
51
|
+
export type { ThinkingLevel };
|
|
52
|
+
export type InterruptTaskResult = {
|
|
53
|
+
agentId: string;
|
|
54
|
+
status: "interrupted";
|
|
55
|
+
taskId: string;
|
|
56
|
+
} | {
|
|
57
|
+
status: "not_found" | "not_running";
|
|
58
|
+
taskId: string;
|
|
59
|
+
};
|
|
60
|
+
export interface StartAgentResult {
|
|
61
|
+
agentId: string;
|
|
62
|
+
sessionId: string;
|
|
63
|
+
status: "running";
|
|
64
|
+
task: TaskRow;
|
|
65
|
+
workspace: WorkspaceRow;
|
|
66
|
+
}
|
|
67
|
+
export interface TaskTitleResult {
|
|
68
|
+
id: string;
|
|
69
|
+
title: string;
|
|
70
|
+
}
|
|
71
|
+
export interface AgentEventEnvelope {
|
|
72
|
+
agentId: string;
|
|
73
|
+
payload?: unknown;
|
|
74
|
+
sequence: number;
|
|
75
|
+
timestamp: string;
|
|
76
|
+
type: string;
|
|
77
|
+
}
|
|
78
|
+
export interface TaskSubagentHistory {
|
|
79
|
+
agentId: string;
|
|
80
|
+
agentName: string;
|
|
81
|
+
messages: StoredAgentMessage[];
|
|
82
|
+
parentAgentId: string;
|
|
83
|
+
status: "running" | "completed" | "interrupted";
|
|
84
|
+
}
|
|
85
|
+
export interface TaskMessageHistory {
|
|
86
|
+
messages: StoredAgentMessage[];
|
|
87
|
+
subagents: TaskSubagentHistory[];
|
|
88
|
+
}
|
|
89
|
+
export interface AgentEventSubscription {
|
|
90
|
+
unsubscribe: () => void;
|
|
91
|
+
}
|
|
92
|
+
export interface SubscribeAgentEventsInput {
|
|
93
|
+
afterSequence?: number;
|
|
94
|
+
agentId: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ApprovalDecisionInput {
|
|
97
|
+
agentId: string;
|
|
98
|
+
approvalId: string;
|
|
99
|
+
approved: boolean;
|
|
100
|
+
reason?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface ApprovalDecisionResult extends ApprovalDecisionInput {
|
|
103
|
+
}
|
|
104
|
+
export interface ApprovalDecision {
|
|
105
|
+
approved: boolean;
|
|
106
|
+
reason?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface ToolApprovalRequest {
|
|
109
|
+
agentId: string;
|
|
110
|
+
approvalId: string;
|
|
111
|
+
title?: string;
|
|
112
|
+
tool: {
|
|
113
|
+
description?: string;
|
|
114
|
+
input: unknown;
|
|
115
|
+
label?: string;
|
|
116
|
+
name: string;
|
|
117
|
+
toolCallId: string;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export type HarnessEvent = AgentHarnessEvent;
|
|
121
|
+
export interface StoredTextContent {
|
|
122
|
+
text: string;
|
|
123
|
+
textSignature?: string;
|
|
124
|
+
type: "text";
|
|
125
|
+
}
|
|
126
|
+
export interface StoredThinkingContent {
|
|
127
|
+
redacted?: boolean;
|
|
128
|
+
thinking: string;
|
|
129
|
+
thinkingSignature?: string;
|
|
130
|
+
type: "thinking";
|
|
131
|
+
}
|
|
132
|
+
export interface StoredImageContent {
|
|
133
|
+
data: string;
|
|
134
|
+
mimeType: string;
|
|
135
|
+
type: "image";
|
|
136
|
+
}
|
|
137
|
+
export interface StoredToolCall {
|
|
138
|
+
arguments: Record<string, unknown>;
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
thoughtSignature?: string;
|
|
142
|
+
type: "toolCall";
|
|
143
|
+
}
|
|
144
|
+
export type StoredUserContent = StoredTextContent | StoredImageContent;
|
|
145
|
+
export type StoredAssistantContent = StoredTextContent | StoredThinkingContent | StoredToolCall;
|
|
146
|
+
interface StoredMessageBase {
|
|
147
|
+
id: string;
|
|
148
|
+
timestamp: number;
|
|
149
|
+
}
|
|
150
|
+
export interface StoredUserMessage extends StoredMessageBase {
|
|
151
|
+
content: string | StoredUserContent[];
|
|
152
|
+
role: "user";
|
|
153
|
+
}
|
|
154
|
+
export interface StoredAssistantMessage extends StoredMessageBase {
|
|
155
|
+
api: string;
|
|
156
|
+
content: StoredAssistantContent[];
|
|
157
|
+
errorMessage?: string;
|
|
158
|
+
model: string;
|
|
159
|
+
provider: string;
|
|
160
|
+
role: "assistant";
|
|
161
|
+
stopReason: "stop" | "length" | "toolUse" | "error" | "aborted";
|
|
162
|
+
}
|
|
163
|
+
export interface StoredToolResultMessage extends StoredMessageBase {
|
|
164
|
+
content: StoredUserContent[];
|
|
165
|
+
isError: boolean;
|
|
166
|
+
role: "toolResult";
|
|
167
|
+
toolCallId: string;
|
|
168
|
+
toolName: string;
|
|
169
|
+
}
|
|
170
|
+
export interface StoredBashExecutionMessage extends StoredMessageBase {
|
|
171
|
+
cancelled: boolean;
|
|
172
|
+
command: string;
|
|
173
|
+
excludeFromContext?: boolean;
|
|
174
|
+
exitCode?: number;
|
|
175
|
+
fullOutputPath?: string;
|
|
176
|
+
output: string;
|
|
177
|
+
role: "bashExecution";
|
|
178
|
+
truncated: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface StoredCustomMessage extends StoredMessageBase {
|
|
181
|
+
content: string | StoredUserContent[];
|
|
182
|
+
customType: string;
|
|
183
|
+
details?: unknown;
|
|
184
|
+
display: boolean;
|
|
185
|
+
role: "custom";
|
|
186
|
+
}
|
|
187
|
+
export interface StoredBranchSummaryMessage extends StoredMessageBase {
|
|
188
|
+
fromId: string;
|
|
189
|
+
role: "branchSummary";
|
|
190
|
+
summary: string;
|
|
191
|
+
}
|
|
192
|
+
export interface StoredCompactionSummaryMessage extends StoredMessageBase {
|
|
193
|
+
role: "compactionSummary";
|
|
194
|
+
summary: string;
|
|
195
|
+
tokensBefore: number;
|
|
196
|
+
}
|
|
197
|
+
export type StoredAgentMessage = StoredUserMessage | StoredAssistantMessage | StoredToolResultMessage | StoredBashExecutionMessage | StoredCustomMessage | StoredBranchSummaryMessage | StoredCompactionSummaryMessage;
|
|
198
|
+
//# sourceMappingURL=agent-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-types.d.ts","sourceRoot":"","sources":["../../../src/modules/agents/agent-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;IACnD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,eAAe,EAAE,gBAAgB,GAAG,eAAe,CAAC;IAC9F,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C,MAAM,C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AC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
import type { AgentsService } from "./agents-service";
|
|
3
|
+
export interface CreateAgentsRouterOptions {
|
|
4
|
+
agentsService?: AgentsService;
|
|
5
|
+
}
|
|
6
|
+
export declare function createAgentsRouter(options?: CreateAgentsRouterOptions): Router;
|
|
7
|
+
//# sourceMappingURL=agents-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents-router.d.ts","sourceRoot":"","sources":["../../../src/modules/agents/agents-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA+B,MAAM,SAAS,CAAC;AAM9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,yBAAyB;IACxC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAwBD,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,yBAA8B,GACtC,MAAM,CA0SR"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Router } from "express";
|
|
2
|
+
import { sendError, sendSuccess } from "../../response/index.js";
|
|
3
|
+
import { RESPONSE_CODE_DEFINITIONS } from "../../response/response-codes.js";
|
|
4
|
+
import { getDefaultAgentsService } from "./default-agents-service.js";
|
|
5
|
+
export function createAgentsRouter(options = {}) {
|
|
6
|
+
const router = Router();
|
|
7
|
+
const getService = () => options.agentsService ?? getDefaultAgentsService();
|
|
8
|
+
router.post("/agents/start", (request, response) => {
|
|
9
|
+
const input = parseStartAgentBody(request.body);
|
|
10
|
+
if (!input) {
|
|
11
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "workspacePath, provider, modelId and prompt must be strings");
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
void getService()
|
|
15
|
+
.startAgent(input)
|
|
16
|
+
.then((result) => {
|
|
17
|
+
sendSuccess(response, result);
|
|
18
|
+
})
|
|
19
|
+
.catch((error) => {
|
|
20
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to start agent");
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
router.get("/agents/tasks/:taskId/messages", (request, response) => {
|
|
24
|
+
void getService()
|
|
25
|
+
.listTaskMessages({ taskId: request.params.taskId })
|
|
26
|
+
.then((messages) => sendSuccess(response, messages))
|
|
27
|
+
.catch((error) => {
|
|
28
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to load task messages");
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
router.patch("/agents/tasks/:taskId", (request, response) => {
|
|
32
|
+
const title = typeof request.body.title === "string" ? request.body.title.trim() : "";
|
|
33
|
+
if (!title) {
|
|
34
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "title must be a non-empty string");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
void getService()
|
|
38
|
+
.renameTask({ taskId: request.params.taskId, title })
|
|
39
|
+
.then((result) => {
|
|
40
|
+
if (!result) {
|
|
41
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, "Unknown task");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
sendSuccess(response, result);
|
|
45
|
+
})
|
|
46
|
+
.catch((error) => {
|
|
47
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to rename task");
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
router.delete("/agents/tasks/:taskId", (request, response) => {
|
|
51
|
+
void getService()
|
|
52
|
+
.deleteTask({ taskId: request.params.taskId })
|
|
53
|
+
.then((result) => {
|
|
54
|
+
if (result.status === "not_found") {
|
|
55
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, "Unknown task");
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (result.status === "running") {
|
|
59
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.conflict, "Task is running");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
sendSuccess(response, { taskId: result.taskId });
|
|
63
|
+
})
|
|
64
|
+
.catch((error) => {
|
|
65
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to delete task");
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
router.post("/agents/tasks/:taskId/continue", (request, response) => {
|
|
69
|
+
const input = parseContinueTaskBody(request.body, request.params.taskId);
|
|
70
|
+
if (!input) {
|
|
71
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "prompt must be a string and provider and modelId must both be strings when provided");
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
void getService()
|
|
75
|
+
.continueTask(input)
|
|
76
|
+
.then((result) => {
|
|
77
|
+
if (!result) {
|
|
78
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, "Unknown task");
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
sendSuccess(response, result);
|
|
82
|
+
})
|
|
83
|
+
.catch((error) => {
|
|
84
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to continue task");
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
router.post("/agents/tasks/:taskId/interrupt", (request, response) => {
|
|
88
|
+
void getService()
|
|
89
|
+
.interruptTask({ taskId: request.params.taskId })
|
|
90
|
+
.then((result) => {
|
|
91
|
+
if (result.status === "not_found") {
|
|
92
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, "Unknown task");
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (result.status === "not_running") {
|
|
96
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.conflict, "Task is not running");
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
sendSuccess(response, result);
|
|
100
|
+
})
|
|
101
|
+
.catch((error) => {
|
|
102
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to interrupt task");
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
router.get("/agents/tasks/:taskId/title", (request, response) => {
|
|
106
|
+
void getService()
|
|
107
|
+
.getTaskTitle({ taskId: request.params.taskId })
|
|
108
|
+
.then((result) => {
|
|
109
|
+
if (!result) {
|
|
110
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, "Unknown task");
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
sendSuccess(response, result);
|
|
114
|
+
})
|
|
115
|
+
.catch((error) => {
|
|
116
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, error instanceof Error ? error.message : "Failed to get task title");
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
router.get("/agents/:agentId/events", (request, response) => {
|
|
120
|
+
const afterSequence = parseAfterSequence(request.query.afterSequence);
|
|
121
|
+
if (afterSequence === null) {
|
|
122
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "afterSequence must be a non-negative integer");
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
response.status(200);
|
|
126
|
+
response.setHeader("Content-Type", "application/x-ndjson");
|
|
127
|
+
response.setHeader("Cache-Control", "no-cache");
|
|
128
|
+
response.setHeader("Connection", "keep-alive");
|
|
129
|
+
response.flushHeaders();
|
|
130
|
+
const subscription = getService().subscribeToAgentEvents({
|
|
131
|
+
...(afterSequence === undefined ? {} : { afterSequence }),
|
|
132
|
+
agentId: request.params.agentId
|
|
133
|
+
}, (event) => {
|
|
134
|
+
writeNdjsonEvent(response, event);
|
|
135
|
+
});
|
|
136
|
+
request.on("close", () => {
|
|
137
|
+
subscription.unsubscribe();
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
router.post("/agents/:agentId/approvals/:approvalId", (request, response) => {
|
|
141
|
+
if (typeof request.body.approved !== "boolean") {
|
|
142
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "approved must be a boolean");
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (request.body.reason !== undefined &&
|
|
146
|
+
typeof request.body.reason !== "string") {
|
|
147
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.badRequest, "reason must be a string");
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
void getService()
|
|
151
|
+
.approveAgentAction({
|
|
152
|
+
agentId: request.params.agentId,
|
|
153
|
+
approvalId: request.params.approvalId,
|
|
154
|
+
approved: request.body.approved,
|
|
155
|
+
...(request.body.reason === undefined
|
|
156
|
+
? {}
|
|
157
|
+
: { reason: request.body.reason })
|
|
158
|
+
})
|
|
159
|
+
.then((result) => {
|
|
160
|
+
sendSuccess(response, result);
|
|
161
|
+
})
|
|
162
|
+
.catch((error) => {
|
|
163
|
+
sendError(response, RESPONSE_CODE_DEFINITIONS.notFound, error instanceof Error ? error.message : "Unknown approval request");
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
return router;
|
|
167
|
+
}
|
|
168
|
+
function parseContinueTaskBody(body, taskId) {
|
|
169
|
+
if (typeof body.prompt !== "string") {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
if (body.provider === undefined && body.modelId === undefined) {
|
|
173
|
+
return { prompt: body.prompt, taskId };
|
|
174
|
+
}
|
|
175
|
+
if (typeof body.provider !== "string" || typeof body.modelId !== "string") {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
modelId: body.modelId,
|
|
180
|
+
prompt: body.prompt,
|
|
181
|
+
provider: body.provider,
|
|
182
|
+
taskId
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function parseStartAgentBody(body) {
|
|
186
|
+
if (typeof body.workspacePath !== "string" ||
|
|
187
|
+
typeof body.provider !== "string" ||
|
|
188
|
+
typeof body.modelId !== "string" ||
|
|
189
|
+
typeof body.prompt !== "string") {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
modelId: body.modelId,
|
|
194
|
+
prompt: body.prompt,
|
|
195
|
+
provider: body.provider,
|
|
196
|
+
workspacePath: body.workspacePath
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function parseAfterSequence(value) {
|
|
200
|
+
if (value === undefined) {
|
|
201
|
+
return undefined;
|
|
202
|
+
}
|
|
203
|
+
if (typeof value !== "string" || !/^\d+$/.test(value)) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
return Number(value);
|
|
207
|
+
}
|
|
208
|
+
function writeNdjsonEvent(response, event) {
|
|
209
|
+
response.write(`${JSON.stringify(event)}\n`);
|
|
210
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ModelProvidersService } from "../model-providers/model-providers-service";
|
|
2
|
+
import type { WorkspaceRepository } from "../workspaces/workspace-repository";
|
|
3
|
+
import type { AgentApprovalStore } from "./agent-approval-store";
|
|
4
|
+
import type { ActiveTaskRunRegistry } from "./active-task-run-registry";
|
|
5
|
+
import type { AgentEventBus, AgentEventListener } from "./agent-event-bus";
|
|
6
|
+
import type { AgentRuntime } from "./agent-runtime";
|
|
7
|
+
import type { TaskTitleGenerator } from "./agent-task-title-generator";
|
|
8
|
+
import { type DeleteTaskResult } from "./agent-task-actions";
|
|
9
|
+
import type { AgentEventSubscription, ApprovalDecisionInput, ApprovalDecisionResult, InterruptTaskResult, StartAgentInput, StartAgentResult, SubscribeAgentEventsInput, TaskMessageHistory, TaskTitleResult } from "./agent-types";
|
|
10
|
+
import { type SubagentRepository } from "./subagent-repository";
|
|
11
|
+
export interface AgentsService {
|
|
12
|
+
approveAgentAction: (input: ApprovalDecisionInput) => Promise<ApprovalDecisionResult>;
|
|
13
|
+
deleteTask: (input: GetTaskTitleInput) => Promise<DeleteTaskResult>;
|
|
14
|
+
getTaskTitle: (input: GetTaskTitleInput) => Promise<TaskTitleResult | null>;
|
|
15
|
+
interruptTask: (input: GetTaskTitleInput) => Promise<InterruptTaskResult>;
|
|
16
|
+
continueTask: (input: ContinueTaskInput) => Promise<StartAgentResult | null>;
|
|
17
|
+
listTaskMessages: (input: GetTaskTitleInput) => Promise<TaskMessageHistory>;
|
|
18
|
+
renameTask: (input: RenameTaskInput) => Promise<TaskTitleResult | null>;
|
|
19
|
+
startAgent: (input: StartAgentInput) => Promise<StartAgentResult>;
|
|
20
|
+
subscribeToAgentEvents: (input: SubscribeAgentEventsInput, listener: AgentEventListener) => AgentEventSubscription;
|
|
21
|
+
}
|
|
22
|
+
export interface GetTaskTitleInput {
|
|
23
|
+
taskId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface RenameTaskInput extends GetTaskTitleInput {
|
|
26
|
+
title: string;
|
|
27
|
+
}
|
|
28
|
+
interface ContinueTaskBaseInput {
|
|
29
|
+
prompt: string;
|
|
30
|
+
taskId: string;
|
|
31
|
+
}
|
|
32
|
+
export type ContinueTaskInput = ContinueTaskBaseInput & ({
|
|
33
|
+
modelId: string;
|
|
34
|
+
provider: string;
|
|
35
|
+
} | {
|
|
36
|
+
modelId?: never;
|
|
37
|
+
provider?: never;
|
|
38
|
+
});
|
|
39
|
+
export interface CreateAgentsServiceOptions {
|
|
40
|
+
activeTaskRuns?: ActiveTaskRunRegistry;
|
|
41
|
+
approvalStore: AgentApprovalStore;
|
|
42
|
+
eventBus: AgentEventBus;
|
|
43
|
+
modelProvidersService?: ModelProvidersService;
|
|
44
|
+
now?: () => Date;
|
|
45
|
+
repository: WorkspaceRepository;
|
|
46
|
+
runtime: AgentRuntime;
|
|
47
|
+
subagentRepository?: SubagentRepository;
|
|
48
|
+
titleGenerator: TaskTitleGenerator;
|
|
49
|
+
}
|
|
50
|
+
export declare function createAgentsService(options: CreateAgentsServiceOptions): AgentsService;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=agents-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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