@nervekit/desktop 0.11.0 → 0.13.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/README.md +166 -135
- package/dist/app/run-runtime-recovery.d.ts +1 -0
- package/dist/app/run-runtime-recovery.d.ts.map +1 -1
- package/dist/app/run-runtime-recovery.js +23 -1
- package/dist/app/run-runtime-recovery.js.map +1 -1
- package/dist/app/startup-sequence.d.ts +28 -0
- package/dist/app/startup-sequence.d.ts.map +1 -0
- package/dist/app/startup-sequence.js +46 -0
- package/dist/app/startup-sequence.js.map +1 -0
- package/dist/main.js +56 -31
- package/dist/main.js.map +1 -1
- package/dist/settings/desktop-settings.d.ts +2 -1
- package/dist/settings/desktop-settings.d.ts.map +1 -1
- package/dist/settings/desktop-settings.js +7 -3
- package/dist/settings/desktop-settings.js.map +1 -1
- package/dist/window/initial-zoom.d.ts +3 -0
- package/dist/window/initial-zoom.d.ts.map +1 -0
- package/dist/window/initial-zoom.js +9 -0
- package/dist/window/initial-zoom.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts +2 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js +5 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js +15 -10
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts +4 -0
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts +28 -2
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js +17 -2
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js +5 -5
- package/node_modules/@nervekit/contracts/dist/domains/events/bounded-public-data.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts +4 -0
- package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts +24 -5
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts +12 -3
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts +8 -2
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js +13 -2
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts +5 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts +5 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts +0 -2
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js +1 -8
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.d.ts +5 -5
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/package.json +1 -1
- package/node_modules/@nervekit/harness/dist/{agent.d.ts → agent/agent.d.ts} +2 -2
- package/node_modules/@nervekit/harness/dist/agent/agent.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{agent.js → agent/agent.js} +2 -2
- package/node_modules/@nervekit/harness/dist/agent/agent.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/loop/agent-loop.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/events.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/loop/events.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/stream-assistant.js +2 -2
- package/node_modules/@nervekit/harness/dist/agent/loop/stream-assistant.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/tool-execution.js +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/tool-execution.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/loop/turn-loop.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{suspension.d.ts → agent/suspension.d.ts} +1 -1
- package/node_modules/@nervekit/harness/dist/agent/suspension.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/suspension.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{tool-adapter.d.ts → agent/tool-adapter.d.ts} +1 -1
- package/node_modules/@nervekit/harness/dist/agent/tool-adapter.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/tool-adapter.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts +83 -0
- package/node_modules/@nervekit/harness/dist/agent/types/agent.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/agent.js +2 -0
- package/node_modules/@nervekit/harness/dist/agent/types/agent.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts +26 -0
- package/node_modules/@nervekit/harness/dist/agent/types/common.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/common.js +2 -0
- package/node_modules/@nervekit/harness/dist/agent/types/common.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts +6 -0
- package/node_modules/@nervekit/harness/dist/agent/types/index.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/index.js +6 -0
- package/node_modules/@nervekit/harness/dist/agent/types/index.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{types.d.ts → agent/types/loop.d.ts} +5 -197
- package/node_modules/@nervekit/harness/dist/agent/types/loop.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/loop.js +2 -0
- package/node_modules/@nervekit/harness/dist/agent/types/loop.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts +24 -0
- package/node_modules/@nervekit/harness/dist/agent/types/messages.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/messages.js +2 -0
- package/node_modules/@nervekit/harness/dist/agent/types/messages.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts +74 -0
- package/node_modules/@nervekit/harness/dist/agent/types/tools.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/agent/types/tools.js +2 -0
- package/node_modules/@nervekit/harness/dist/agent/types/tools.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts +6 -5
- package/node_modules/@nervekit/harness/dist/harness/agent-harness.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/agent-harness.js +67 -191
- package/node_modules/@nervekit/harness/dist/harness/agent-harness.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts +2 -2
- package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/branch-summarization.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/types.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/usage.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/utils.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.d.ts → configuration/operations.d.ts} +4 -4
- package/node_modules/@nervekit/harness/dist/harness/configuration/operations.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-configuration-methods.js → configuration/operations.js} +5 -5
- package/node_modules/@nervekit/harness/dist/harness/configuration/operations.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{options.d.ts → configuration/options.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/configuration/options.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/configuration/options.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/configuration/stream-options.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{configuration.d.ts → configuration/tools.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/configuration/tools.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{configuration.js → configuration/tools.js} +2 -2
- package/node_modules/@nervekit/harness/dist/harness/configuration/tools.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{turn-state.d.ts → configuration/turn-state.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/configuration/turn-state.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/context.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/conversation.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/entries.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-repo.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation/jsonl-storage.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/environment/nodejs.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/environment/types.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/environment/types.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-events.d.ts → lifecycle/event-hub.d.ts} +4 -4
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-events.js → lifecycle/event-hub.js} +4 -4
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-hub.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts +26 -0
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js +52 -0
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/event-processing.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{events.d.ts → lifecycle/events.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/lifecycle/events.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{events.js.map → lifecycle/events.js.map} +1 -1
- package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.d.ts → maintenance/operations.d.ts} +5 -5
- package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-maintenance.js → maintenance/operations.js} +6 -6
- package/node_modules/@nervekit/harness/dist/harness/maintenance/operations.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/messages.d.ts +2 -2
- package/node_modules/@nervekit/harness/dist/harness/messages.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.d.ts → path-utils.d.ts} +1 -1
- package/node_modules/@nervekit/harness/dist/harness/path-utils.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{utils/env-path.js → path-utils.js} +1 -1
- package/node_modules/@nervekit/harness/dist/harness/path-utils.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.d.ts → queue/coalescing.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-queue-coalescing.js → queue/coalescing.js} +2 -2
- package/node_modules/@nervekit/harness/dist/harness/queue/coalescing.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.d.ts → queue/operations.d.ts} +14 -4
- package/node_modules/@nervekit/harness/dist/harness/queue/operations.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-queue-methods.js → queue/operations.js} +35 -5
- package/node_modules/@nervekit/harness/dist/harness/queue/operations.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.d.ts → resources/invocations.d.ts} +4 -4
- package/node_modules/@nervekit/harness/dist/harness/resources/invocations.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-invocations.js → resources/invocations.js} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/resources/invocations.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.d.ts → resources/prompt-templates.d.ts} +2 -2
- package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{prompt-templates.js → resources/prompt-templates.js} +2 -2
- package/node_modules/@nervekit/harness/dist/harness/resources/prompt-templates.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/format.js +1 -1
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/format.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/index.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.d.ts +2 -2
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/loader.js +1 -1
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/loader.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/parser.js +1 -1
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/parser.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/skills/validation.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/resources/system-prompt.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.d.ts → run/continuation.d.ts} +4 -4
- package/node_modules/@nervekit/harness/dist/harness/run/continuation.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{harness-continuation.js → run/continuation.js} +6 -6
- package/node_modules/@nervekit/harness/dist/harness/run/continuation.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.d.ts → run/conversation-writes.d.ts} +3 -3
- package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/run/conversation-writes.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts +42 -0
- package/node_modules/@nervekit/harness/dist/harness/run/execution.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/run/execution.js +118 -0
- package/node_modules/@nervekit/harness/dist/harness/run/execution.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/harness/run/messages.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/index.d.ts +22 -13
- package/node_modules/@nervekit/harness/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/index.js +22 -13
- package/node_modules/@nervekit/harness/dist/index.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/models/image-normalization.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/image-normalization.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts +4 -0
- package/node_modules/@nervekit/harness/dist/models/prompt-stream.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/prompt-stream.js +23 -0
- package/node_modules/@nervekit/harness/dist/models/prompt-stream.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{pi-ai-models.d.ts → models/provider-registry.d.ts} +1 -1
- package/node_modules/@nervekit/harness/dist/models/provider-registry.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{pi-ai-models.js → models/provider-registry.js} +1 -1
- package/node_modules/@nervekit/harness/dist/models/provider-registry.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/resolution.d.ts +17 -0
- package/node_modules/@nervekit/harness/dist/models/resolution.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime.js → models/resolution.js} +5 -74
- package/node_modules/@nervekit/harness/dist/models/resolution.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts +10 -0
- package/node_modules/@nervekit/harness/dist/models/scripted-provider.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/scripted-provider.js +55 -0
- package/node_modules/@nervekit/harness/dist/models/scripted-provider.js.map +1 -0
- package/node_modules/@nervekit/harness/dist/{runtime.d.ts → models/types.d.ts} +3 -23
- package/node_modules/@nervekit/harness/dist/models/types.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/{harness/env → models}/types.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/node.d.ts +1 -1
- package/node_modules/@nervekit/harness/dist/node.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/node.js +1 -1
- package/node_modules/@nervekit/harness/dist/node.js.map +1 -1
- package/node_modules/@nervekit/harness/dist/{proxy.d.ts → transport/proxy.d.ts} +1 -1
- package/node_modules/@nervekit/harness/dist/transport/proxy.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/transport/proxy.js.map +1 -0
- package/node_modules/@nervekit/harness/package.json +3 -3
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.d.ts.map +1 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js +18 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js.map +1 -1
- package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts +1 -2
- package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts.map +1 -1
- package/node_modules/@nervekit/host-runtime/dist/task-service.js +21 -6
- package/node_modules/@nervekit/host-runtime/dist/task-service.js.map +1 -1
- package/node_modules/@nervekit/host-runtime/package.json +4 -4
- package/node_modules/@nervekit/protocol/package.json +2 -2
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js +6 -6
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js +3 -0
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts +2 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js +23 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts +2 -0
- package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js +59 -0
- package/node_modules/@nervekit/tools/dist/execution/common/html-to-markdown.worker.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts +17 -0
- package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js +162 -0
- package/node_modules/@nervekit/tools/dist/execution/common/isolated-html-to-markdown.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts +15 -0
- package/node_modules/@nervekit/tools/dist/execution/common/live-output.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/live-output.js +47 -0
- package/node_modules/@nervekit/tools/dist/execution/common/live-output.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts +5 -1
- package/node_modules/@nervekit/tools/dist/execution/common/output-budget.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js +24 -10
- package/node_modules/@nervekit/tools/dist/execution/common/output-budget.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-result.js +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-result.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts +8 -2
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js +63 -14
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/confluence/files.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/confluence/files.js +2 -2
- package/node_modules/@nervekit/tools/dist/execution/confluence/files.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js +6 -31
- package/node_modules/@nervekit/tools/dist/execution/confluence/markdown.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js +3 -2
- package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/index.d.ts +3 -1
- package/node_modules/@nervekit/tools/dist/execution/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/index.js +3 -1
- package/node_modules/@nervekit/tools/dist/execution/index.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/python.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/python.js +35 -29
- package/node_modules/@nervekit/tools/dist/execution/python/python.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.js +6 -29
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.js +30 -24
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js +49 -4
- package/node_modules/@nervekit/tools/dist/execution/web/web-fetch.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts +7 -0
- package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-branches.js +51 -52
- package/node_modules/@nervekit/tools/dist/git/git-branches.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-command.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-command.js +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-command.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-service.js +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-github-service.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts +21 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.js +2 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts +6 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.js +94 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts +21 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js +59 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-service.d.ts +14 -5
- package/node_modules/@nervekit/tools/dist/git/git-service.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-service.js +97 -109
- package/node_modules/@nervekit/tools/dist/git/git-service.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/index.d.ts +2 -1
- package/node_modules/@nervekit/tools/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/index.js +2 -1
- package/node_modules/@nervekit/tools/dist/index.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js +3 -3
- package/node_modules/@nervekit/tools/dist/runtime/dispatcher.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/runtime/types.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/runtime/types.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/runtime/types.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/types.d.ts +2 -1
- package/node_modules/@nervekit/tools/dist/types.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/package.json +2 -2
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js +39 -2
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js +37 -5
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts +16 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js +137 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts +3 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js +11 -4
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts +5 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js +10 -4
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/auto-compaction-runner.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.d.ts +3 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js +2 -5
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js +2 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts +5 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js +8 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js +5 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js +5 -5
- package/node_modules/@nervekit/workbench-server/dist/domains/auth/oauth-flow-manager.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js +5 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-lifecycle.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js +3 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js +5 -7
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation.repository.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts +5 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js +210 -145
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js +12 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js +5 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js +4 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts +4 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js +28 -7
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts +7 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts +17 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js +75 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/live-tool-output-publisher.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js +5 -31
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher-handlers.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts +5 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js +29 -15
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/policy.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js +2 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts +17 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js +44 -4
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call.repository.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts +2 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js +16 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js +9 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/usage/subscription-usage-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js +20 -4
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/logging.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js +3 -3
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts +12 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js +74 -19
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts +9 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js +85 -62
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js +49 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/index-store/index-store.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts +20 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js +99 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js +43 -2
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts +7 -3
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js +84 -90
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js +4 -3
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/main.js +32 -14
- package/node_modules/@nervekit/workbench-server/dist/main.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js +3 -2
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js +3 -11
- package/node_modules/@nervekit/workbench-server/dist/protocol/http-dispatcher.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts +17 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js +54 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts +505 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js +88 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/conversation-agent-method-handlers.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts +433 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js +24 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/git-method-handlers.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts +400 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js +68 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/interaction-method-handlers.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts +1099 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js +127 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/platform-method-handlers.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts +910 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js +82 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers/project-task-method-handlers.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts +3 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js +18 -565
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js +2 -0
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/auth-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js +24 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts +15 -2
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js +74 -19
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/{dist-CzAenP9m.js → dist-CFWIYh0s.js} +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-maZKRPqe.css +1 -0
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-uoIbQOdM.js +261 -0
- package/node_modules/@nervekit/workbench-server/dist/web/index.html +31 -2
- package/node_modules/@nervekit/workbench-server/dist/web/sw.js +1 -1
- package/node_modules/@nervekit/workbench-server/package.json +5 -5
- package/package.json +8 -8
- package/node_modules/@nervekit/harness/dist/agent-loop.d.ts +0 -2
- package/node_modules/@nervekit/harness/dist/agent-loop.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/agent-loop.js +0 -2
- package/node_modules/@nervekit/harness/dist/agent-loop.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/agent.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/agent.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/configuration.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/configuration.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation-writes.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/conversation-writes.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/env/nodejs.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/env/nodejs.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/env/types.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/events.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-configuration-methods.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-continuation.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-continuation.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-events.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-events.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-invocations.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-invocations.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-maintenance.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-queue-coalescing.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/harness-queue-methods.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/options.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/options.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/prompt-templates.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/prompt-templates.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/format.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/format.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/index.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/index.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/loader.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/loader.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/parser.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/parser.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/validation.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills/validation.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills.d.ts +0 -2
- package/node_modules/@nervekit/harness/dist/harness/skills.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/skills.js +0 -2
- package/node_modules/@nervekit/harness/dist/harness/skills.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/stream-options.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/stream-options.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/system-prompt.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/system-prompt.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/turn-state.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/turn-state.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/types.d.ts +0 -9
- package/node_modules/@nervekit/harness/dist/harness/types.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/types.js +0 -8
- package/node_modules/@nervekit/harness/dist/harness/types.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/utils/env-path.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/harness/utils/env-path.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/pi-ai-models.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/pi-ai-models.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/proxy.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/proxy.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/image-normalization.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/image-normalization.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/agent-loop.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/events.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/events.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts +0 -6
- package/node_modules/@nervekit/harness/dist/runtime/loop/index.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/index.js +0 -6
- package/node_modules/@nervekit/harness/dist/runtime/loop/index.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/stream-assistant.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/tool-execution.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime/loop/turn-loop.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/runtime.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/suspension.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/suspension.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/tool-adapter.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/tool-adapter.js.map +0 -1
- package/node_modules/@nervekit/harness/dist/types.d.ts.map +0 -1
- package/node_modules/@nervekit/harness/dist/types.js.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts +0 -114
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.d.ts.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js +0 -452
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-5CMVpr1y.js +0 -260
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CtD2pS6K.css +0 -2
- /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/agent-loop.js +0 -0
- /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/events.js +0 -0
- /package/node_modules/@nervekit/harness/dist/{runtime → agent}/loop/turn-loop.js +0 -0
- /package/node_modules/@nervekit/harness/dist/{suspension.js → agent/suspension.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/{tool-adapter.js → agent/tool-adapter.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{options.js → configuration/options.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{stream-options.d.ts → configuration/stream-options.d.ts} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{stream-options.js → configuration/stream-options.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{turn-state.js → configuration/turn-state.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.d.ts +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/nodejs.js +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.d.ts +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{env → environment}/types.js +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{events.js → lifecycle/events.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.d.ts +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/index.js +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.d.ts +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{skills → resources/skills}/validation.js +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.d.ts → resources/system-prompt.d.ts} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{system-prompt.js → resources/system-prompt.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/harness/{conversation-writes.js → run/conversation-writes.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.d.ts +0 -0
- /package/node_modules/@nervekit/harness/dist/{runtime → models}/image-normalization.js +0 -0
- /package/node_modules/@nervekit/harness/dist/{types.js → models/types.js} +0 -0
- /package/node_modules/@nervekit/harness/dist/{proxy.js → transport/proxy.js} +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { GitWorkflowError } from "@nervekit/host-runtime/tools";
|
|
3
|
-
import { operationDefinition,
|
|
3
|
+
import { operationDefinition, protocolRequestMessageSchema, } from "@nervekit/contracts";
|
|
4
4
|
import { RpcDispatcher, } from "@nervekit/protocol";
|
|
5
5
|
import { ZodError } from "zod";
|
|
6
6
|
import { HttpError } from "../http/errors.js";
|
|
7
7
|
import { FileIdempotencyStore } from "./file-idempotency-store.js";
|
|
8
8
|
import { createProtocolMessage, orchestratorSource } from "./messages.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bindWorkbenchOperationHandlers, WORKBENCH_OPERATION_METHODS, } from "./method-handlers.js";
|
|
10
10
|
import { protocolErrorData, redactProtocolValue } from "./protocol-errors.js";
|
|
11
11
|
export const PROTOCOL_HTTP_CONTENT_TYPE = "application/vnd.nerve.protocol.v1+json";
|
|
12
12
|
const MAX_PROTOCOL_HTTP_BODY_BYTES = 4 * 1024 * 1024;
|
|
13
13
|
const workbenchDispatchers = new WeakMap();
|
|
14
|
-
const workbenchMethods = new Set(WORKBENCH_OPERATION_METHODS);
|
|
15
14
|
const workbenchCapabilities = WORKBENCH_OPERATION_METHODS.map((method) => operationDefinition(method).requiredCapability).filter((capability) => Boolean(capability));
|
|
16
15
|
export class ProtocolHttpDispatcher {
|
|
17
16
|
state;
|
|
@@ -78,14 +77,7 @@ export class ProtocolHttpDispatcher {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
export function workbenchOperationHandlers(state) {
|
|
81
|
-
return
|
|
82
|
-
get(_target, property) {
|
|
83
|
-
if (typeof property !== "string" || !workbenchMethods.has(property))
|
|
84
|
-
return undefined;
|
|
85
|
-
const method = operationNameSchema.parse(property);
|
|
86
|
-
return (params) => handleProtocolMethod(state, method, params);
|
|
87
|
-
},
|
|
88
|
-
});
|
|
80
|
+
return bindWorkbenchOperationHandlers(state);
|
|
89
81
|
}
|
|
90
82
|
export function workbenchRpcDispatcher(state) {
|
|
91
83
|
const existing = workbenchDispatchers.get(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-dispatcher.js","sourceRoot":"","sources":["../../src/protocol/http-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAGL,mBAAmB,
|
|
1
|
+
{"version":3,"file":"http-dispatcher.js","sourceRoot":"","sources":["../../src/protocol/http-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAGL,mBAAmB,EAGnB,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,MAAM,CAAC,MAAM,0BAA0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AAC;QACb,KAAK,UAAU,CAAC;QAChB,KAAK,sBAAsB;YACzB,OAAO,GAAG,CAAC;QACb,KAAK,0BAA0B;YAC7B,OAAO,GAAG,CAAC;QACb,KAAK,mBAAmB;YACtB,OAAO,GAAG,CAAC;QACb,KAAK,qBAAqB,CAAC;QAC3B,KAAK,SAAS;YACZ,OAAO,GAAG,CAAC;QACb,KAAK,gBAAgB;YACnB,OAAO,GAAG,CAAC;QACb;YACE,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type OperationName, type OperationParams } from "@nervekit/contracts";
|
|
2
|
+
import type { OperationHandlerRegistry } from "@nervekit/protocol";
|
|
3
|
+
import type { OrchestratorState } from "../app/orchestrator-state.js";
|
|
4
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
5
|
+
type WorkbenchMethodHandler<M extends OperationName> = (state: OrchestratorState, params: OperationParams<M>) => MaybePromise<unknown>;
|
|
6
|
+
export type WorkbenchMethodHandlerMap = {
|
|
7
|
+
readonly [M in OperationName]?: WorkbenchMethodHandler<M>;
|
|
8
|
+
};
|
|
9
|
+
export declare function defineWorkbenchMethodHandlers<const Handlers extends WorkbenchMethodHandlerMap>(handlers: Handlers): Handlers;
|
|
10
|
+
export interface WorkbenchMethodRegistry {
|
|
11
|
+
readonly methods: readonly OperationName[];
|
|
12
|
+
handle(state: OrchestratorState, method: OperationName, params: unknown): Promise<unknown>;
|
|
13
|
+
bind(state: OrchestratorState): Partial<OperationHandlerRegistry>;
|
|
14
|
+
}
|
|
15
|
+
export declare function createWorkbenchMethodRegistry(groups: readonly WorkbenchMethodHandlerMap[]): WorkbenchMethodRegistry;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=method-handler-registry.d.ts.map
|
package/node_modules/@nervekit/workbench-server/dist/protocol/method-handler-registry.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-handler-registry.d.ts","sourceRoot":"","sources":["../../src/protocol/method-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,sBAAsB,CAAC,CAAC,SAAS,aAAa,IAAI,CACrD,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,KACvB,YAAY,CAAC,OAAO,CAAC,CAAC;AAE3B,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,CAAC,IAAI,aAAa,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,KAAK,CAAC,QAAQ,SAAS,yBAAyB,EAChD,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAE9B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAC3C,MAAM,CACJ,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,IAAI,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACnE;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,SAAS,yBAAyB,EAAE,GAC3C,uBAAuB,CAsEzB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { allOperationDefinitions, } from "@nervekit/contracts";
|
|
2
|
+
export function defineWorkbenchMethodHandlers(handlers) {
|
|
3
|
+
return handlers;
|
|
4
|
+
}
|
|
5
|
+
export function createWorkbenchMethodRegistry(groups) {
|
|
6
|
+
const handlers = new Map();
|
|
7
|
+
const duplicates = [];
|
|
8
|
+
for (const group of groups) {
|
|
9
|
+
for (const [method, handler] of Object.entries(group)) {
|
|
10
|
+
if (handlers.has(method))
|
|
11
|
+
duplicates.push(method);
|
|
12
|
+
handlers.set(method, handler);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
if (duplicates.length > 0) {
|
|
16
|
+
throw new Error(`Duplicate workbench operation handlers: ${sorted(duplicates).join(", ")}`);
|
|
17
|
+
}
|
|
18
|
+
const expectedMethods = allOperationDefinitions()
|
|
19
|
+
.filter((definition) => definition.allowedTargetRoles.includes("workbench_server"))
|
|
20
|
+
.map((definition) => definition.method);
|
|
21
|
+
const expected = new Set(expectedMethods);
|
|
22
|
+
const missing = expectedMethods.filter((method) => !handlers.has(method));
|
|
23
|
+
const unexpected = [...handlers.keys()].filter((method) => !expected.has(method));
|
|
24
|
+
if (missing.length > 0 || unexpected.length > 0) {
|
|
25
|
+
throw new Error([
|
|
26
|
+
missing.length > 0
|
|
27
|
+
? `missing: ${sorted(missing).join(", ")}`
|
|
28
|
+
: undefined,
|
|
29
|
+
unexpected.length > 0
|
|
30
|
+
? `unexpected: ${sorted(unexpected).join(", ")}`
|
|
31
|
+
: undefined,
|
|
32
|
+
]
|
|
33
|
+
.filter(Boolean)
|
|
34
|
+
.join("; ")
|
|
35
|
+
.replace(/^/, "Workbench operation handler coverage mismatch: "));
|
|
36
|
+
}
|
|
37
|
+
async function handle(state, method, params) {
|
|
38
|
+
const handler = handlers.get(method);
|
|
39
|
+
if (!handler)
|
|
40
|
+
throw new Error(`Unsupported workbench operation: ${method}`);
|
|
41
|
+
return handler(state, params);
|
|
42
|
+
}
|
|
43
|
+
function bind(state) {
|
|
44
|
+
return Object.fromEntries(expectedMethods.map((method) => [
|
|
45
|
+
method,
|
|
46
|
+
(params) => handle(state, method, params),
|
|
47
|
+
]));
|
|
48
|
+
}
|
|
49
|
+
return { methods: expectedMethods, handle, bind };
|
|
50
|
+
}
|
|
51
|
+
function sorted(methods) {
|
|
52
|
+
return [...new Set(methods)].sort();
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=method-handler-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method-handler-registry.js","sourceRoot":"","sources":["../../src/protocol/method-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAGxB,MAAM,qBAAqB,CAAC;AAe7B,MAAM,UAAU,6BAA6B,CAE3C,QAAkB;IAClB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAYD,MAAM,UAAU,6BAA6B,CAC3C,MAA4C;IAE5C,MAAM,QAAQ,GAAG,IAAI,GAAG,EAGrB,CAAC;IACJ,MAAM,UAAU,GAAoB,EAAE,CAAC;IAEvC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAGjD,EAAE,CAAC;YACJ,IAAI,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;gBAAE,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClD,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2CAA2C,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC3E,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GAAG,uBAAuB,EAAE;SAC9C,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CACrB,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAC3D;SACA,GAAG,CAAC,CAAC,UAAU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IACzC,CAAC;IAED,SAAS,IAAI,CAAC,KAAwB;QACpC,OAAO,MAAM,CAAC,WAAW,CACvB,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YAC9B,MAAM;YACN,CAAC,MAAe,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;SACnD,CAAC,CAC6C,CAAC;IACpD,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACpD,CAAC;AAED,SAAS,MAAM,CAAC,OAAiC;IAC/C,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import type { OrchestratorState } from "../../app/orchestrator-state.js";
|
|
2
|
+
export declare const conversationAgentMethodHandlers: {
|
|
3
|
+
readonly "conversation.create": (state: OrchestratorState, params: {
|
|
4
|
+
projectId: string;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
mode?: "planning" | "coding" | undefined;
|
|
7
|
+
permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
|
|
8
|
+
approvalPolicy?: {
|
|
9
|
+
autoApproveReadOnly?: boolean | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
conversation: {
|
|
13
|
+
id: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
title: string;
|
|
16
|
+
mode: "planning" | "coding";
|
|
17
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
18
|
+
approvalPolicy: {
|
|
19
|
+
autoApproveReadOnly: boolean;
|
|
20
|
+
};
|
|
21
|
+
createdAt: string;
|
|
22
|
+
updatedAt: string;
|
|
23
|
+
activeAgentId?: string | undefined;
|
|
24
|
+
activeEntryId?: string | undefined;
|
|
25
|
+
lastUserMessageAt?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
28
|
+
readonly "conversation.import": (state: OrchestratorState, params: {
|
|
29
|
+
conversation: {
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
mode?: "planning" | "coding" | undefined;
|
|
32
|
+
permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
|
|
33
|
+
approvalPolicy?: {
|
|
34
|
+
autoApproveReadOnly?: boolean | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
};
|
|
37
|
+
project?: {
|
|
38
|
+
dir: string;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
agents?: unknown[] | undefined;
|
|
42
|
+
entries?: unknown[] | undefined;
|
|
43
|
+
}) => Promise<{
|
|
44
|
+
project: import("@nervekit/contracts").ProjectRecord;
|
|
45
|
+
conversation: import("@nervekit/contracts").ConversationRecord;
|
|
46
|
+
agents: import("@nervekit/contracts").AgentRecord[];
|
|
47
|
+
entries: import("@nervekit/contracts").ConversationEntry[];
|
|
48
|
+
}>;
|
|
49
|
+
readonly "conversation.list": (state: OrchestratorState) => {
|
|
50
|
+
conversations: {
|
|
51
|
+
id: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
title: string;
|
|
54
|
+
mode: "planning" | "coding";
|
|
55
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
56
|
+
approvalPolicy: {
|
|
57
|
+
autoApproveReadOnly: boolean;
|
|
58
|
+
};
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
activeAgentId?: string | undefined;
|
|
62
|
+
activeEntryId?: string | undefined;
|
|
63
|
+
lastUserMessageAt?: string | undefined;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
readonly "conversation.get": (state: OrchestratorState, params: {
|
|
67
|
+
conversationId: string;
|
|
68
|
+
}) => {
|
|
69
|
+
conversation: {
|
|
70
|
+
id: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
title: string;
|
|
73
|
+
mode: "planning" | "coding";
|
|
74
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
75
|
+
approvalPolicy: {
|
|
76
|
+
autoApproveReadOnly: boolean;
|
|
77
|
+
};
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
activeAgentId?: string | undefined;
|
|
81
|
+
activeEntryId?: string | undefined;
|
|
82
|
+
lastUserMessageAt?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly "conversation.delete": (state: OrchestratorState, params: {
|
|
86
|
+
conversationId: string;
|
|
87
|
+
}) => Promise<{
|
|
88
|
+
ok: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
readonly "conversation.entries.list": (state: OrchestratorState, params: {
|
|
91
|
+
conversationId: string;
|
|
92
|
+
}) => {
|
|
93
|
+
entries: {
|
|
94
|
+
id: string;
|
|
95
|
+
conversationId: string;
|
|
96
|
+
role: "system" | "user" | "assistant";
|
|
97
|
+
kind: "compaction" | "message" | "branch_summary" | "explore_report" | "run_status" | "task_event";
|
|
98
|
+
text: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
agentId?: string | undefined;
|
|
101
|
+
runId?: string | undefined;
|
|
102
|
+
turnId?: string | undefined;
|
|
103
|
+
liveMessageId?: string | undefined;
|
|
104
|
+
messageOrdinal?: number | undefined;
|
|
105
|
+
parentEntryId?: string | undefined;
|
|
106
|
+
summary?: string | undefined;
|
|
107
|
+
tokensBefore?: number | undefined;
|
|
108
|
+
usage?: {
|
|
109
|
+
input: number;
|
|
110
|
+
output: number;
|
|
111
|
+
cacheRead: number;
|
|
112
|
+
cacheWrite: number;
|
|
113
|
+
totalTokens: number;
|
|
114
|
+
cost: number;
|
|
115
|
+
} | undefined;
|
|
116
|
+
firstKeptEntryId?: string | undefined;
|
|
117
|
+
fromEntryId?: string | undefined;
|
|
118
|
+
details?: unknown;
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
readonly "conversation.contextUsage.get": (state: OrchestratorState, params: {
|
|
122
|
+
conversationId: string;
|
|
123
|
+
}) => Promise<{
|
|
124
|
+
contextUsage: {
|
|
125
|
+
tokens: number | null;
|
|
126
|
+
contextWindow: number;
|
|
127
|
+
percent: number | null;
|
|
128
|
+
};
|
|
129
|
+
}>;
|
|
130
|
+
readonly "conversation.tree.get": (state: OrchestratorState, params: {
|
|
131
|
+
conversationId: string;
|
|
132
|
+
}) => {
|
|
133
|
+
tree: {
|
|
134
|
+
conversationId: string;
|
|
135
|
+
rootEntryIds: string[];
|
|
136
|
+
nodes: {
|
|
137
|
+
entry: {
|
|
138
|
+
id: string;
|
|
139
|
+
conversationId: string;
|
|
140
|
+
role: "system" | "user" | "assistant";
|
|
141
|
+
kind: "compaction" | "message" | "branch_summary" | "explore_report" | "run_status" | "task_event";
|
|
142
|
+
text: string;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
agentId?: string | undefined;
|
|
145
|
+
runId?: string | undefined;
|
|
146
|
+
turnId?: string | undefined;
|
|
147
|
+
liveMessageId?: string | undefined;
|
|
148
|
+
messageOrdinal?: number | undefined;
|
|
149
|
+
parentEntryId?: string | undefined;
|
|
150
|
+
summary?: string | undefined;
|
|
151
|
+
tokensBefore?: number | undefined;
|
|
152
|
+
usage?: {
|
|
153
|
+
input: number;
|
|
154
|
+
output: number;
|
|
155
|
+
cacheRead: number;
|
|
156
|
+
cacheWrite: number;
|
|
157
|
+
totalTokens: number;
|
|
158
|
+
cost: number;
|
|
159
|
+
} | undefined;
|
|
160
|
+
firstKeptEntryId?: string | undefined;
|
|
161
|
+
fromEntryId?: string | undefined;
|
|
162
|
+
details?: unknown;
|
|
163
|
+
};
|
|
164
|
+
childEntryIds: string[];
|
|
165
|
+
}[];
|
|
166
|
+
activeEntryId?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly "conversation.navigate": (state: OrchestratorState, params: {
|
|
170
|
+
conversationId: string;
|
|
171
|
+
activeEntryId: string | null;
|
|
172
|
+
summarize?: boolean | undefined;
|
|
173
|
+
summaryInstructions?: string | undefined;
|
|
174
|
+
}) => Promise<{
|
|
175
|
+
conversation: {
|
|
176
|
+
id: string;
|
|
177
|
+
projectId: string;
|
|
178
|
+
title: string;
|
|
179
|
+
mode: "planning" | "coding";
|
|
180
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
181
|
+
approvalPolicy: {
|
|
182
|
+
autoApproveReadOnly: boolean;
|
|
183
|
+
};
|
|
184
|
+
createdAt: string;
|
|
185
|
+
updatedAt: string;
|
|
186
|
+
activeAgentId?: string | undefined;
|
|
187
|
+
activeEntryId?: string | undefined;
|
|
188
|
+
lastUserMessageAt?: string | undefined;
|
|
189
|
+
};
|
|
190
|
+
}>;
|
|
191
|
+
readonly "conversation.compact": (state: OrchestratorState, params: {
|
|
192
|
+
conversationId: string;
|
|
193
|
+
instructions?: string | undefined;
|
|
194
|
+
keepRecentTokens?: number | undefined;
|
|
195
|
+
}) => Promise<{
|
|
196
|
+
conversation: import("@nervekit/contracts").ConversationRecord;
|
|
197
|
+
entry: import("@nervekit/contracts").ConversationEntry;
|
|
198
|
+
}>;
|
|
199
|
+
readonly "conversation.compaction.cancel": (state: OrchestratorState, params: {
|
|
200
|
+
conversationId: string;
|
|
201
|
+
}) => Promise<{
|
|
202
|
+
ok: true;
|
|
203
|
+
}>;
|
|
204
|
+
readonly "agent.create": (state: OrchestratorState, params: {
|
|
205
|
+
conversationId: string;
|
|
206
|
+
projectId: string;
|
|
207
|
+
projectDir?: string | undefined;
|
|
208
|
+
workerId?: string | undefined;
|
|
209
|
+
parentAgentId?: string | undefined;
|
|
210
|
+
task?: string | undefined;
|
|
211
|
+
mode?: "planning" | "coding" | undefined;
|
|
212
|
+
permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
|
|
213
|
+
approvalPolicy?: {
|
|
214
|
+
autoApproveReadOnly?: boolean | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
workspaceScope?: {
|
|
217
|
+
roots: string[];
|
|
218
|
+
readonly?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
systemPrompt?: string | undefined;
|
|
221
|
+
budget?: {
|
|
222
|
+
depth?: number | undefined;
|
|
223
|
+
maxDepth?: number | undefined;
|
|
224
|
+
maxRuns?: number | undefined;
|
|
225
|
+
usedRuns?: number | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
model?: {
|
|
228
|
+
provider: string;
|
|
229
|
+
modelId: string;
|
|
230
|
+
} | undefined;
|
|
231
|
+
thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
232
|
+
}) => Promise<{
|
|
233
|
+
agent: {
|
|
234
|
+
id: string;
|
|
235
|
+
conversationId: string;
|
|
236
|
+
projectId: string;
|
|
237
|
+
projectDir: string;
|
|
238
|
+
rootAgentId: string;
|
|
239
|
+
mode: "planning" | "coding";
|
|
240
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
241
|
+
approvalPolicy: {
|
|
242
|
+
autoApproveReadOnly: boolean;
|
|
243
|
+
};
|
|
244
|
+
workspaceScope: {
|
|
245
|
+
roots: string[];
|
|
246
|
+
readonly?: boolean | undefined;
|
|
247
|
+
};
|
|
248
|
+
budget: {
|
|
249
|
+
depth: number;
|
|
250
|
+
maxDepth: number;
|
|
251
|
+
maxRuns: number;
|
|
252
|
+
usedRuns: number;
|
|
253
|
+
};
|
|
254
|
+
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
255
|
+
status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt: string;
|
|
258
|
+
workerId?: string | undefined;
|
|
259
|
+
parentAgentId?: string | undefined;
|
|
260
|
+
systemPrompt?: string | undefined;
|
|
261
|
+
model?: {
|
|
262
|
+
provider: string;
|
|
263
|
+
modelId: string;
|
|
264
|
+
} | undefined;
|
|
265
|
+
};
|
|
266
|
+
}>;
|
|
267
|
+
readonly "agent.list": (state: OrchestratorState) => {
|
|
268
|
+
agents: {
|
|
269
|
+
id: string;
|
|
270
|
+
conversationId: string;
|
|
271
|
+
projectId: string;
|
|
272
|
+
projectDir: string;
|
|
273
|
+
rootAgentId: string;
|
|
274
|
+
mode: "planning" | "coding";
|
|
275
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
276
|
+
approvalPolicy: {
|
|
277
|
+
autoApproveReadOnly: boolean;
|
|
278
|
+
};
|
|
279
|
+
workspaceScope: {
|
|
280
|
+
roots: string[];
|
|
281
|
+
readonly?: boolean | undefined;
|
|
282
|
+
};
|
|
283
|
+
budget: {
|
|
284
|
+
depth: number;
|
|
285
|
+
maxDepth: number;
|
|
286
|
+
maxRuns: number;
|
|
287
|
+
usedRuns: number;
|
|
288
|
+
};
|
|
289
|
+
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
290
|
+
status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
|
|
291
|
+
createdAt: string;
|
|
292
|
+
updatedAt: string;
|
|
293
|
+
workerId?: string | undefined;
|
|
294
|
+
parentAgentId?: string | undefined;
|
|
295
|
+
systemPrompt?: string | undefined;
|
|
296
|
+
model?: {
|
|
297
|
+
provider: string;
|
|
298
|
+
modelId: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
}[];
|
|
301
|
+
};
|
|
302
|
+
readonly "agent.get": (state: OrchestratorState, params: {
|
|
303
|
+
agentId: string;
|
|
304
|
+
}) => {
|
|
305
|
+
agent: {
|
|
306
|
+
id: string;
|
|
307
|
+
conversationId: string;
|
|
308
|
+
projectId: string;
|
|
309
|
+
projectDir: string;
|
|
310
|
+
rootAgentId: string;
|
|
311
|
+
mode: "planning" | "coding";
|
|
312
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
313
|
+
approvalPolicy: {
|
|
314
|
+
autoApproveReadOnly: boolean;
|
|
315
|
+
};
|
|
316
|
+
workspaceScope: {
|
|
317
|
+
roots: string[];
|
|
318
|
+
readonly?: boolean | undefined;
|
|
319
|
+
};
|
|
320
|
+
budget: {
|
|
321
|
+
depth: number;
|
|
322
|
+
maxDepth: number;
|
|
323
|
+
maxRuns: number;
|
|
324
|
+
usedRuns: number;
|
|
325
|
+
};
|
|
326
|
+
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
327
|
+
status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
|
|
328
|
+
createdAt: string;
|
|
329
|
+
updatedAt: string;
|
|
330
|
+
workerId?: string | undefined;
|
|
331
|
+
parentAgentId?: string | undefined;
|
|
332
|
+
systemPrompt?: string | undefined;
|
|
333
|
+
model?: {
|
|
334
|
+
provider: string;
|
|
335
|
+
modelId: string;
|
|
336
|
+
} | undefined;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly "agent.configure": (state: OrchestratorState, params: {
|
|
340
|
+
agentId: string;
|
|
341
|
+
mode?: "planning" | "coding" | undefined;
|
|
342
|
+
permissionLevel?: "autonomous" | "supervised" | "read_only" | undefined;
|
|
343
|
+
approvalPolicy?: {
|
|
344
|
+
autoApproveReadOnly?: boolean | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
model?: {
|
|
347
|
+
provider: string;
|
|
348
|
+
modelId: string;
|
|
349
|
+
} | null | undefined;
|
|
350
|
+
thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
351
|
+
}) => Promise<{
|
|
352
|
+
agent: {
|
|
353
|
+
id: string;
|
|
354
|
+
conversationId: string;
|
|
355
|
+
projectId: string;
|
|
356
|
+
projectDir: string;
|
|
357
|
+
rootAgentId: string;
|
|
358
|
+
mode: "planning" | "coding";
|
|
359
|
+
permissionLevel: "autonomous" | "supervised" | "read_only";
|
|
360
|
+
approvalPolicy: {
|
|
361
|
+
autoApproveReadOnly: boolean;
|
|
362
|
+
};
|
|
363
|
+
workspaceScope: {
|
|
364
|
+
roots: string[];
|
|
365
|
+
readonly?: boolean | undefined;
|
|
366
|
+
};
|
|
367
|
+
budget: {
|
|
368
|
+
depth: number;
|
|
369
|
+
maxDepth: number;
|
|
370
|
+
maxRuns: number;
|
|
371
|
+
usedRuns: number;
|
|
372
|
+
};
|
|
373
|
+
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
374
|
+
status: "error" | "running" | "aborted" | "idle" | "awaiting_user";
|
|
375
|
+
createdAt: string;
|
|
376
|
+
updatedAt: string;
|
|
377
|
+
workerId?: string | undefined;
|
|
378
|
+
parentAgentId?: string | undefined;
|
|
379
|
+
systemPrompt?: string | undefined;
|
|
380
|
+
model?: {
|
|
381
|
+
provider: string;
|
|
382
|
+
modelId: string;
|
|
383
|
+
} | undefined;
|
|
384
|
+
};
|
|
385
|
+
}>;
|
|
386
|
+
readonly "run.start": (state: OrchestratorState, params: {
|
|
387
|
+
text: string;
|
|
388
|
+
conversationId?: string | undefined;
|
|
389
|
+
agentId?: string | undefined;
|
|
390
|
+
images?: {
|
|
391
|
+
type: "image";
|
|
392
|
+
data: string;
|
|
393
|
+
mimeType: string;
|
|
394
|
+
}[] | undefined;
|
|
395
|
+
}) => Promise<{
|
|
396
|
+
accepted: boolean;
|
|
397
|
+
agentId: string;
|
|
398
|
+
}>;
|
|
399
|
+
readonly "run.steer": (state: OrchestratorState, params: {
|
|
400
|
+
agentId: string;
|
|
401
|
+
text: string;
|
|
402
|
+
conversationId?: string | undefined;
|
|
403
|
+
runId?: string | undefined;
|
|
404
|
+
images?: {
|
|
405
|
+
type: "image";
|
|
406
|
+
data: string;
|
|
407
|
+
mimeType: string;
|
|
408
|
+
}[] | undefined;
|
|
409
|
+
}) => Promise<{
|
|
410
|
+
accepted: boolean;
|
|
411
|
+
agentId: string;
|
|
412
|
+
}>;
|
|
413
|
+
readonly "run.followUp": (state: OrchestratorState, params: {
|
|
414
|
+
agentId: string;
|
|
415
|
+
text: string;
|
|
416
|
+
conversationId?: string | undefined;
|
|
417
|
+
runId?: string | undefined;
|
|
418
|
+
images?: {
|
|
419
|
+
type: "image";
|
|
420
|
+
data: string;
|
|
421
|
+
mimeType: string;
|
|
422
|
+
}[] | undefined;
|
|
423
|
+
}) => Promise<{
|
|
424
|
+
accepted: boolean;
|
|
425
|
+
agentId: string;
|
|
426
|
+
}>;
|
|
427
|
+
readonly "agent.promptQueue.list": (state: OrchestratorState, params: {
|
|
428
|
+
agentId: string;
|
|
429
|
+
}) => Promise<{
|
|
430
|
+
queuedPrompts: {
|
|
431
|
+
id: string;
|
|
432
|
+
agentId: string;
|
|
433
|
+
conversationId: string;
|
|
434
|
+
projectId: string;
|
|
435
|
+
behavior: "steer" | "follow-up";
|
|
436
|
+
text: string;
|
|
437
|
+
status: "failed" | "cancelled" | "queued" | "accepted" | "delivered";
|
|
438
|
+
createdAt: string;
|
|
439
|
+
updatedAt: string;
|
|
440
|
+
ordinal: number;
|
|
441
|
+
deliveryAttempts: number;
|
|
442
|
+
runId?: string | undefined;
|
|
443
|
+
images?: {
|
|
444
|
+
type: "image";
|
|
445
|
+
data: string;
|
|
446
|
+
mimeType: string;
|
|
447
|
+
}[] | undefined;
|
|
448
|
+
deliveredEntryId?: string | undefined;
|
|
449
|
+
error?: string | undefined;
|
|
450
|
+
}[];
|
|
451
|
+
}>;
|
|
452
|
+
readonly "agent.promptQueue.cancel": (state: OrchestratorState, params: {
|
|
453
|
+
agentId: string;
|
|
454
|
+
queuedPromptId: string;
|
|
455
|
+
}) => Promise<{
|
|
456
|
+
queuedPrompt: {
|
|
457
|
+
id: string;
|
|
458
|
+
agentId: string;
|
|
459
|
+
conversationId: string;
|
|
460
|
+
projectId: string;
|
|
461
|
+
behavior: "steer" | "follow-up";
|
|
462
|
+
text: string;
|
|
463
|
+
status: "failed" | "cancelled" | "queued" | "accepted" | "delivered";
|
|
464
|
+
createdAt: string;
|
|
465
|
+
updatedAt: string;
|
|
466
|
+
ordinal: number;
|
|
467
|
+
deliveryAttempts: number;
|
|
468
|
+
runId?: string | undefined;
|
|
469
|
+
images?: {
|
|
470
|
+
type: "image";
|
|
471
|
+
data: string;
|
|
472
|
+
mimeType: string;
|
|
473
|
+
}[] | undefined;
|
|
474
|
+
deliveredEntryId?: string | undefined;
|
|
475
|
+
error?: string | undefined;
|
|
476
|
+
};
|
|
477
|
+
}>;
|
|
478
|
+
readonly "agent.requestTool": (state: OrchestratorState, params: {
|
|
479
|
+
agentId: string;
|
|
480
|
+
toolName: "bash" | "python_exec" | "web_search" | "web_fetch" | "find" | "read" | "explore" | "edit" | "write" | "grep" | "ls" | "ask_user" | "todos_set" | "todos_get" | "jira_search_users" | "jira_search_issues" | "jira_get_issue" | "jira_get_project" | "jira_create_issue" | "jira_update_issue" | "jira_add_comment" | "jira_transition_issue" | "confluence_search_spaces" | "confluence_search_pages" | "confluence_get_page" | "confluence_download_pages" | "confluence_create_page" | "confluence_update_page" | "confluence_publish_pages" | "confluence_upload_attachment" | "task_start" | "task_status" | "task_logs" | "task_cancel" | "task_restart" | "plan_mode_enter" | "plan_mode_present" | "plan_mode_force_exit";
|
|
481
|
+
args?: Record<string, unknown> | undefined;
|
|
482
|
+
}) => Promise<import("../../domains/tools/tool-service.js").ToolExecutionResponse>;
|
|
483
|
+
readonly "run.continue": (state: OrchestratorState, params: {
|
|
484
|
+
runId: string;
|
|
485
|
+
agentId?: string | undefined;
|
|
486
|
+
conversationId?: string | undefined;
|
|
487
|
+
reason?: "manual" | "after_input" | "after_approval" | "retry_error" | undefined;
|
|
488
|
+
}) => Promise<{
|
|
489
|
+
accepted: boolean;
|
|
490
|
+
agentId: string;
|
|
491
|
+
runId: string;
|
|
492
|
+
}>;
|
|
493
|
+
readonly "run.cancel": (state: OrchestratorState, params: {
|
|
494
|
+
agentId?: string | undefined;
|
|
495
|
+
conversationId?: string | undefined;
|
|
496
|
+
runId?: string | undefined;
|
|
497
|
+
reason?: string | undefined;
|
|
498
|
+
}) => Promise<{
|
|
499
|
+
accepted: boolean;
|
|
500
|
+
agentId: string | undefined;
|
|
501
|
+
runId: string | undefined;
|
|
502
|
+
status: string;
|
|
503
|
+
}>;
|
|
504
|
+
};
|
|
505
|
+
//# sourceMappingURL=conversation-agent-method-handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-agent-method-handlers.d.ts","sourceRoot":"","sources":["../../../src/protocol/method-handlers/conversation-agent-method-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGzE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF1C,CAAC"}
|