@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
package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-runtime.js
DELETED
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import { createId, } from "@nervekit/contracts";
|
|
2
|
-
const MAX_LIVE_TOOL_OUTPUT_CHARS = 32_000;
|
|
3
|
-
const MAX_LIVE_TOOL_OUTPUT_CHUNKS = 400;
|
|
4
|
-
export class ConversationRuntime {
|
|
5
|
-
runsByRunId = new Map();
|
|
6
|
-
runIdByAgentId = new Map();
|
|
7
|
-
runIdByConversationId = new Map();
|
|
8
|
-
draftAnchorByProviderToolCallId = new Map();
|
|
9
|
-
startRun(input) {
|
|
10
|
-
const startedAt = input.startedAt ?? new Date().toISOString();
|
|
11
|
-
const run = {
|
|
12
|
-
runId: input.runId,
|
|
13
|
-
agentId: input.agentId,
|
|
14
|
-
projectId: input.projectId,
|
|
15
|
-
conversationId: input.conversationId,
|
|
16
|
-
status: "running",
|
|
17
|
-
startedAt,
|
|
18
|
-
turns: [],
|
|
19
|
-
toolOutputsByToolCallId: {},
|
|
20
|
-
queuedPrompts: [],
|
|
21
|
-
};
|
|
22
|
-
this.runsByRunId.set(input.runId, run);
|
|
23
|
-
this.runIdByAgentId.set(input.agentId, input.runId);
|
|
24
|
-
this.runIdByConversationId.set(input.conversationId, input.runId);
|
|
25
|
-
return cloneRun(run);
|
|
26
|
-
}
|
|
27
|
-
markAborting(runId) {
|
|
28
|
-
const run = this.runsByRunId.get(runId);
|
|
29
|
-
if (!run)
|
|
30
|
-
return undefined;
|
|
31
|
-
run.status = "aborting";
|
|
32
|
-
return cloneRun(run);
|
|
33
|
-
}
|
|
34
|
-
markRetrying(runId, retry) {
|
|
35
|
-
const run = this.runsByRunId.get(runId);
|
|
36
|
-
if (!run)
|
|
37
|
-
return undefined;
|
|
38
|
-
run.status = "retrying";
|
|
39
|
-
run.retry = { ...retry };
|
|
40
|
-
return cloneRun(run);
|
|
41
|
-
}
|
|
42
|
-
clearRetry(runId) {
|
|
43
|
-
const run = this.runsByRunId.get(runId);
|
|
44
|
-
if (!run)
|
|
45
|
-
return undefined;
|
|
46
|
-
if (run.status === "retrying")
|
|
47
|
-
run.status = "running";
|
|
48
|
-
run.retry = undefined;
|
|
49
|
-
return cloneRun(run);
|
|
50
|
-
}
|
|
51
|
-
queuePrompt(runId, queuedPrompt) {
|
|
52
|
-
const run = this.runsByRunId.get(runId);
|
|
53
|
-
if (!run)
|
|
54
|
-
return undefined;
|
|
55
|
-
const index = run.queuedPrompts.findIndex((candidate) => candidate.id === queuedPrompt.id);
|
|
56
|
-
if (index === -1)
|
|
57
|
-
run.queuedPrompts.push(queuedPrompt);
|
|
58
|
-
else
|
|
59
|
-
run.queuedPrompts[index] = queuedPrompt;
|
|
60
|
-
return cloneRun(run);
|
|
61
|
-
}
|
|
62
|
-
removeQueuedPrompt(runId, queuedPromptId) {
|
|
63
|
-
if (!runId)
|
|
64
|
-
return undefined;
|
|
65
|
-
const run = this.runsByRunId.get(runId);
|
|
66
|
-
if (!run)
|
|
67
|
-
return undefined;
|
|
68
|
-
run.queuedPrompts = run.queuedPrompts.filter((candidate) => candidate.id !== queuedPromptId);
|
|
69
|
-
return cloneRun(run);
|
|
70
|
-
}
|
|
71
|
-
completeRun(runId) {
|
|
72
|
-
const run = this.runsByRunId.get(runId);
|
|
73
|
-
if (!run)
|
|
74
|
-
return;
|
|
75
|
-
this.runsByRunId.delete(runId);
|
|
76
|
-
this.runIdByAgentId.delete(run.agentId);
|
|
77
|
-
this.runIdByConversationId.delete(run.conversationId);
|
|
78
|
-
for (const turn of run.turns) {
|
|
79
|
-
for (const message of turn.messages) {
|
|
80
|
-
for (const block of message.blocks) {
|
|
81
|
-
if (block.kind === "tool_call_draft" && block.providerToolCallId) {
|
|
82
|
-
this.draftAnchorByProviderToolCallId.delete(block.providerToolCallId);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
failRun(runId) {
|
|
89
|
-
this.completeRun(runId);
|
|
90
|
-
}
|
|
91
|
-
startTurn(runId) {
|
|
92
|
-
const run = this.requireRun(runId);
|
|
93
|
-
const turn = {
|
|
94
|
-
turnId: createId("turn"),
|
|
95
|
-
ordinal: run.turns.length,
|
|
96
|
-
messages: [],
|
|
97
|
-
};
|
|
98
|
-
run.turns.push(turn);
|
|
99
|
-
return cloneTurn(turn);
|
|
100
|
-
}
|
|
101
|
-
currentTurn(runId) {
|
|
102
|
-
const run = this.runsByRunId.get(runId);
|
|
103
|
-
const turn = run?.turns.at(-1);
|
|
104
|
-
return turn ? cloneTurn(turn) : undefined;
|
|
105
|
-
}
|
|
106
|
-
startAssistantMessage(runId, turnId) {
|
|
107
|
-
const run = this.requireRun(runId);
|
|
108
|
-
const turn = this.requireTurn(run, turnId);
|
|
109
|
-
const startedAt = new Date().toISOString();
|
|
110
|
-
const message = {
|
|
111
|
-
liveMessageId: createId("msg"),
|
|
112
|
-
messageOrdinal: turn.messages.length,
|
|
113
|
-
startedAt,
|
|
114
|
-
blocks: [],
|
|
115
|
-
};
|
|
116
|
-
turn.messages.push(message);
|
|
117
|
-
return {
|
|
118
|
-
conversationId: run.conversationId,
|
|
119
|
-
agentId: run.agentId,
|
|
120
|
-
projectId: run.projectId,
|
|
121
|
-
runId,
|
|
122
|
-
turnId,
|
|
123
|
-
liveMessageId: message.liveMessageId,
|
|
124
|
-
messageOrdinal: message.messageOrdinal,
|
|
125
|
-
startedAt,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
applyContentDelta(input) {
|
|
129
|
-
const { run, message } = this.requireMessage(input);
|
|
130
|
-
const block = this.ensureTextBlock(message, input.contentIndex, input.kind);
|
|
131
|
-
const offset = block.text.length;
|
|
132
|
-
block.text += input.delta;
|
|
133
|
-
return {
|
|
134
|
-
conversationId: run.conversationId,
|
|
135
|
-
agentId: run.agentId,
|
|
136
|
-
projectId: run.projectId,
|
|
137
|
-
runId: input.runId,
|
|
138
|
-
turnId: input.turnId,
|
|
139
|
-
liveMessageId: input.liveMessageId,
|
|
140
|
-
contentBlockId: block.contentBlockId,
|
|
141
|
-
contentIndex: input.contentIndex,
|
|
142
|
-
kind: input.kind,
|
|
143
|
-
offset,
|
|
144
|
-
delta: input.delta,
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
finishContent(input) {
|
|
148
|
-
const { run, message } = this.requireMessage(input);
|
|
149
|
-
const block = this.ensureTextBlock(message, input.contentIndex, input.kind);
|
|
150
|
-
if (input.finalText !== undefined)
|
|
151
|
-
block.text = input.finalText;
|
|
152
|
-
block.done = true;
|
|
153
|
-
block.redacted = input.redacted;
|
|
154
|
-
return {
|
|
155
|
-
conversationId: run.conversationId,
|
|
156
|
-
agentId: run.agentId,
|
|
157
|
-
projectId: run.projectId,
|
|
158
|
-
runId: input.runId,
|
|
159
|
-
turnId: input.turnId,
|
|
160
|
-
liveMessageId: input.liveMessageId,
|
|
161
|
-
contentBlockId: block.contentBlockId,
|
|
162
|
-
contentIndex: input.contentIndex,
|
|
163
|
-
kind: input.kind,
|
|
164
|
-
finalText: input.finalText,
|
|
165
|
-
redacted: input.redacted,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
startToolDraft(input) {
|
|
169
|
-
const { run, message } = this.requireMessage(input);
|
|
170
|
-
const block = this.ensureToolDraftBlock(message, input.contentIndex);
|
|
171
|
-
block.providerToolCallId =
|
|
172
|
-
input.providerToolCallId ?? block.providerToolCallId;
|
|
173
|
-
block.toolName = input.toolName ?? block.toolName;
|
|
174
|
-
if (block.providerToolCallId)
|
|
175
|
-
this.rememberToolAnchor(input, block.providerToolCallId);
|
|
176
|
-
return {
|
|
177
|
-
conversationId: run.conversationId,
|
|
178
|
-
agentId: run.agentId,
|
|
179
|
-
projectId: run.projectId,
|
|
180
|
-
runId: input.runId,
|
|
181
|
-
turnId: input.turnId,
|
|
182
|
-
liveMessageId: input.liveMessageId,
|
|
183
|
-
contentBlockId: block.contentBlockId,
|
|
184
|
-
contentIndex: input.contentIndex,
|
|
185
|
-
providerToolCallId: block.providerToolCallId,
|
|
186
|
-
toolName: block.toolName,
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
applyToolDraftDelta(input) {
|
|
190
|
-
const { run, message } = this.requireMessage(input);
|
|
191
|
-
const block = this.ensureToolDraftBlock(message, input.contentIndex);
|
|
192
|
-
block.providerToolCallId =
|
|
193
|
-
input.providerToolCallId ?? block.providerToolCallId;
|
|
194
|
-
block.toolName = input.toolName ?? block.toolName;
|
|
195
|
-
if (block.providerToolCallId)
|
|
196
|
-
this.rememberToolAnchor(input, block.providerToolCallId);
|
|
197
|
-
const offset = block.argsText.length;
|
|
198
|
-
block.argsText += input.delta;
|
|
199
|
-
return {
|
|
200
|
-
conversationId: run.conversationId,
|
|
201
|
-
agentId: run.agentId,
|
|
202
|
-
projectId: run.projectId,
|
|
203
|
-
runId: input.runId,
|
|
204
|
-
turnId: input.turnId,
|
|
205
|
-
liveMessageId: input.liveMessageId,
|
|
206
|
-
contentBlockId: block.contentBlockId,
|
|
207
|
-
contentIndex: input.contentIndex,
|
|
208
|
-
offset,
|
|
209
|
-
providerToolCallId: block.providerToolCallId,
|
|
210
|
-
toolName: block.toolName,
|
|
211
|
-
delta: input.delta,
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
finishToolDraft(input) {
|
|
215
|
-
const { run, message } = this.requireMessage(input);
|
|
216
|
-
const block = this.ensureToolDraftBlock(message, input.contentIndex);
|
|
217
|
-
block.providerToolCallId = input.providerToolCallId;
|
|
218
|
-
block.toolName = input.toolName;
|
|
219
|
-
block.args = input.args;
|
|
220
|
-
block.done = true;
|
|
221
|
-
block.argsText = "";
|
|
222
|
-
this.rememberToolAnchor(input, input.providerToolCallId);
|
|
223
|
-
return {
|
|
224
|
-
conversationId: run.conversationId,
|
|
225
|
-
agentId: run.agentId,
|
|
226
|
-
projectId: run.projectId,
|
|
227
|
-
runId: input.runId,
|
|
228
|
-
turnId: input.turnId,
|
|
229
|
-
liveMessageId: input.liveMessageId,
|
|
230
|
-
contentBlockId: block.contentBlockId,
|
|
231
|
-
contentIndex: input.contentIndex,
|
|
232
|
-
providerToolCallId: input.providerToolCallId,
|
|
233
|
-
toolName: input.toolName,
|
|
234
|
-
args: input.args,
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
applyToolDraftProgress(input) {
|
|
238
|
-
const { run, message } = this.requireMessage(input);
|
|
239
|
-
const block = this.ensureToolDraftBlock(message, input.contentIndex);
|
|
240
|
-
block.providerToolCallId =
|
|
241
|
-
input.providerToolCallId ?? block.providerToolCallId;
|
|
242
|
-
block.toolName = input.toolName ?? block.toolName;
|
|
243
|
-
block.progress = { ...input.progress };
|
|
244
|
-
if (block.providerToolCallId) {
|
|
245
|
-
this.rememberToolAnchor(input, block.providerToolCallId);
|
|
246
|
-
}
|
|
247
|
-
return {
|
|
248
|
-
conversationId: run.conversationId,
|
|
249
|
-
agentId: run.agentId,
|
|
250
|
-
projectId: run.projectId,
|
|
251
|
-
runId: input.runId,
|
|
252
|
-
turnId: input.turnId,
|
|
253
|
-
liveMessageId: input.liveMessageId,
|
|
254
|
-
contentBlockId: block.contentBlockId,
|
|
255
|
-
contentIndex: input.contentIndex,
|
|
256
|
-
providerToolCallId: block.providerToolCallId,
|
|
257
|
-
toolName: block.toolName,
|
|
258
|
-
progress: { ...block.progress },
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
discardToolDraft(input) {
|
|
262
|
-
const { run, message } = this.requireMessage(input);
|
|
263
|
-
const index = message.blocks.findIndex((block) => block.contentIndex === input.contentIndex &&
|
|
264
|
-
block.kind === "tool_call_draft");
|
|
265
|
-
const block = message.blocks[index];
|
|
266
|
-
if (block?.kind !== "tool_call_draft")
|
|
267
|
-
return undefined;
|
|
268
|
-
if (block.providerToolCallId) {
|
|
269
|
-
this.draftAnchorByProviderToolCallId.delete(block.providerToolCallId);
|
|
270
|
-
}
|
|
271
|
-
message.blocks.splice(index, 1);
|
|
272
|
-
return {
|
|
273
|
-
conversationId: run.conversationId,
|
|
274
|
-
agentId: run.agentId,
|
|
275
|
-
projectId: run.projectId,
|
|
276
|
-
runId: input.runId,
|
|
277
|
-
turnId: input.turnId,
|
|
278
|
-
liveMessageId: input.liveMessageId,
|
|
279
|
-
contentBlockId: block.contentBlockId,
|
|
280
|
-
contentIndex: input.contentIndex,
|
|
281
|
-
providerToolCallId: block.providerToolCallId,
|
|
282
|
-
toolName: block.toolName,
|
|
283
|
-
reason: input.reason,
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
applyToolOutputDelta(input) {
|
|
287
|
-
const run = input.runId ? this.runsByRunId.get(input.runId) : undefined;
|
|
288
|
-
const existing = run?.toolOutputsByToolCallId[input.toolCallId];
|
|
289
|
-
const offset = existing?.text.length ?? 0;
|
|
290
|
-
const now = new Date().toISOString();
|
|
291
|
-
if (run) {
|
|
292
|
-
const output = capToolOutput({
|
|
293
|
-
toolCallId: input.toolCallId,
|
|
294
|
-
chunks: [
|
|
295
|
-
...(existing?.chunks ?? []),
|
|
296
|
-
{ stream: input.stream, text: input.delta, ts: now },
|
|
297
|
-
],
|
|
298
|
-
text: `${existing?.text ?? ""}${input.delta}`,
|
|
299
|
-
updatedAt: now,
|
|
300
|
-
}, {
|
|
301
|
-
totalChars: (existing?.outputLimits?.totalChars ?? existing?.text.length ?? 0) +
|
|
302
|
-
input.delta.length,
|
|
303
|
-
});
|
|
304
|
-
run.toolOutputsByToolCallId[input.toolCallId] = output;
|
|
305
|
-
}
|
|
306
|
-
return {
|
|
307
|
-
conversationId: input.conversationId,
|
|
308
|
-
agentId: input.agentId,
|
|
309
|
-
projectId: input.projectId,
|
|
310
|
-
runId: input.runId,
|
|
311
|
-
turnId: input.turnId,
|
|
312
|
-
liveMessageId: input.liveMessageId,
|
|
313
|
-
contentIndex: input.contentIndex,
|
|
314
|
-
providerToolCallId: input.providerToolCallId,
|
|
315
|
-
toolCallId: input.toolCallId,
|
|
316
|
-
toolName: input.toolName,
|
|
317
|
-
stream: input.stream,
|
|
318
|
-
offset,
|
|
319
|
-
delta: input.delta,
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
snapshotForConversation(conversationId) {
|
|
323
|
-
const runId = this.runIdByConversationId.get(conversationId);
|
|
324
|
-
const run = runId ? this.runsByRunId.get(runId) : undefined;
|
|
325
|
-
return run ? cloneRun(run) : undefined;
|
|
326
|
-
}
|
|
327
|
-
resolveToolAnchor(runId, providerToolCallId) {
|
|
328
|
-
const anchor = this.draftAnchorByProviderToolCallId.get(providerToolCallId);
|
|
329
|
-
return anchor && anchor.runId === runId ? { ...anchor } : undefined;
|
|
330
|
-
}
|
|
331
|
-
rememberToolAnchor(input, providerToolCallId) {
|
|
332
|
-
this.draftAnchorByProviderToolCallId.set(providerToolCallId, {
|
|
333
|
-
runId: input.runId,
|
|
334
|
-
turnId: input.turnId,
|
|
335
|
-
liveMessageId: input.liveMessageId,
|
|
336
|
-
contentIndex: input.contentIndex,
|
|
337
|
-
providerToolCallId,
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
requireRun(runId) {
|
|
341
|
-
const run = this.runsByRunId.get(runId);
|
|
342
|
-
if (!run)
|
|
343
|
-
throw new Error(`Active conversation run not found: ${runId}`);
|
|
344
|
-
return run;
|
|
345
|
-
}
|
|
346
|
-
requireTurn(run, turnId) {
|
|
347
|
-
const turn = run.turns.find((candidate) => candidate.turnId === turnId);
|
|
348
|
-
if (!turn)
|
|
349
|
-
throw new Error(`Active conversation turn not found: ${turnId}`);
|
|
350
|
-
return turn;
|
|
351
|
-
}
|
|
352
|
-
requireMessage(input) {
|
|
353
|
-
const run = this.requireRun(input.runId);
|
|
354
|
-
const turn = this.requireTurn(run, input.turnId);
|
|
355
|
-
const message = turn.messages.find((candidate) => candidate.liveMessageId === input.liveMessageId);
|
|
356
|
-
if (!message) {
|
|
357
|
-
throw new Error(`Active live message not found: ${input.liveMessageId}`);
|
|
358
|
-
}
|
|
359
|
-
return { run, turn, message };
|
|
360
|
-
}
|
|
361
|
-
ensureTextBlock(message, contentIndex, kind) {
|
|
362
|
-
const existing = message.blocks.find((block) => block.contentIndex === contentIndex && block.kind !== "tool_call_draft");
|
|
363
|
-
if (existing && existing.kind !== "tool_call_draft")
|
|
364
|
-
return existing;
|
|
365
|
-
const block = {
|
|
366
|
-
kind,
|
|
367
|
-
contentBlockId: createId("block"),
|
|
368
|
-
contentIndex,
|
|
369
|
-
text: "",
|
|
370
|
-
done: false,
|
|
371
|
-
};
|
|
372
|
-
message.blocks.push(block);
|
|
373
|
-
message.blocks.sort((a, b) => a.contentIndex - b.contentIndex);
|
|
374
|
-
return block;
|
|
375
|
-
}
|
|
376
|
-
ensureToolDraftBlock(message, contentIndex) {
|
|
377
|
-
const existing = message.blocks.find((block) => block.contentIndex === contentIndex && block.kind === "tool_call_draft");
|
|
378
|
-
if (existing?.kind === "tool_call_draft")
|
|
379
|
-
return existing;
|
|
380
|
-
const block = {
|
|
381
|
-
kind: "tool_call_draft",
|
|
382
|
-
contentBlockId: createId("block"),
|
|
383
|
-
contentIndex,
|
|
384
|
-
argsText: "",
|
|
385
|
-
done: false,
|
|
386
|
-
};
|
|
387
|
-
message.blocks.push(block);
|
|
388
|
-
message.blocks.sort((a, b) => a.contentIndex - b.contentIndex);
|
|
389
|
-
return block;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
function cloneRun(run) {
|
|
393
|
-
return {
|
|
394
|
-
...run,
|
|
395
|
-
turns: run.turns.map(cloneTurn),
|
|
396
|
-
toolOutputsByToolCallId: Object.fromEntries(Object.entries(run.toolOutputsByToolCallId).map(([id, output]) => [
|
|
397
|
-
id,
|
|
398
|
-
{ ...output, chunks: output.chunks.map((chunk) => ({ ...chunk })) },
|
|
399
|
-
])),
|
|
400
|
-
queuedPrompts: run.queuedPrompts.map((prompt) => ({ ...prompt })),
|
|
401
|
-
retry: run.retry ? { ...run.retry } : undefined,
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function cloneTurn(turn) {
|
|
405
|
-
return {
|
|
406
|
-
...turn,
|
|
407
|
-
messages: turn.messages.map((message) => ({
|
|
408
|
-
...message,
|
|
409
|
-
blocks: message.blocks.map((block) => block.kind === "tool_call_draft"
|
|
410
|
-
? {
|
|
411
|
-
...block,
|
|
412
|
-
progress: block.progress ? { ...block.progress } : undefined,
|
|
413
|
-
}
|
|
414
|
-
: { ...block }),
|
|
415
|
-
})),
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function capToolOutput(output, totals = {}) {
|
|
419
|
-
const totalChars = totals.totalChars ?? output.text.length;
|
|
420
|
-
let text = output.text;
|
|
421
|
-
if (text.length > MAX_LIVE_TOOL_OUTPUT_CHARS) {
|
|
422
|
-
text = text.slice(text.length - MAX_LIVE_TOOL_OUTPUT_CHARS);
|
|
423
|
-
}
|
|
424
|
-
const chunks = output.chunks.length > MAX_LIVE_TOOL_OUTPUT_CHUNKS
|
|
425
|
-
? output.chunks.slice(output.chunks.length - MAX_LIVE_TOOL_OUTPUT_CHUNKS)
|
|
426
|
-
: output.chunks;
|
|
427
|
-
const capped = totalChars > text.length ||
|
|
428
|
-
output.chunks.length > MAX_LIVE_TOOL_OUTPUT_CHUNKS;
|
|
429
|
-
return {
|
|
430
|
-
...output,
|
|
431
|
-
text,
|
|
432
|
-
chunks,
|
|
433
|
-
outputLimits: {
|
|
434
|
-
capped,
|
|
435
|
-
direction: "tail",
|
|
436
|
-
maxChars: MAX_LIVE_TOOL_OUTPUT_CHARS,
|
|
437
|
-
maxChunks: MAX_LIVE_TOOL_OUTPUT_CHUNKS,
|
|
438
|
-
totalChars,
|
|
439
|
-
displayedChars: text.length,
|
|
440
|
-
omittedChars: Math.max(0, totalChars - text.length),
|
|
441
|
-
displayedLines: countLines(text),
|
|
442
|
-
totalLines: capped ? undefined : countLines(text),
|
|
443
|
-
omittedLines: undefined,
|
|
444
|
-
},
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
function countLines(text) {
|
|
448
|
-
if (text.length === 0)
|
|
449
|
-
return 0;
|
|
450
|
-
return text.split("\n").length;
|
|
451
|
-
}
|
|
452
|
-
//# sourceMappingURL=conversation-runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-runtime.js","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAoBL,QAAQ,GAET,MAAM,qBAAqB,CAAC;AAgC7B,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAC1C,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAExC,MAAM,OAAO,mBAAmB;IACb,WAAW,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC5C,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC3C,qBAAqB,GAAG,IAAI,GAAG,EAAkB,CAAC;IAClD,+BAA+B,GAAG,IAAI,GAAG,EAGvD,CAAC;IAEJ,QAAQ,CAAC,KAAoB;QAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC9D,MAAM,GAAG,GAAe;YACtB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,MAAM,EAAE,SAAS;YACjB,SAAS;YACT,KAAK,EAAE,EAAE;YACT,uBAAuB,EAAE,EAAE;YAC3B,aAAa,EAAE,EAAE;SAClB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC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