@nervekit/desktop 0.12.0 → 0.14.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 +9 -20
- package/build/icons/16x16.png +0 -0
- package/build/icons/20x20.png +0 -0
- package/build/icons/24x24.png +0 -0
- package/build/icons/32x32.png +0 -0
- package/build/icons/40x40.png +0 -0
- package/build/icons/48x48.png +0 -0
- package/build/tray/linux/tray-dark.png +0 -0
- package/build/tray/linux/tray-light.png +0 -0
- package/build/tray/macos/nerveTemplate.png +0 -0
- package/build/tray/macos/nerveTemplate@2x.png +0 -0
- 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/dist/window/loading-pages.js +2 -2
- package/node_modules/@nervekit/contracts/dist/core/ids.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/core/ids.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/core/ids.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.js +7 -7
- package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/index.d.ts +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/index.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/index.js +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/index.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.js +62 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.events.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/run.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/auth/auth.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/auth/auth.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/auth/auth.schema.d.ts +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/completions/completion.operations.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/completions/completion.operations.schema.js.map +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.js +3 -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.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.events.schema.js +2 -3
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation.events.schema.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 +11 -10
- 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 +68 -43
- 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 +35 -3
- 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/events/event-definition.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/events/event-definition.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.js +4 -4
- package/node_modules/@nervekit/contracts/dist/domains/events/public-event-catalog.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.d.ts +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/filesystem/filesystem.schema.d.ts +4 -4
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.js +17 -17
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/git/git.schema.d.ts +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/logs/logs.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/logs/logs.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.d.ts +7 -8
- package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.js +5 -6
- package/node_modules/@nervekit/contracts/dist/domains/logs/structured-logger.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/models/model.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/models/model.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.d.ts +30 -50
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.js +14 -45
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.d.ts +16 -0
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.js +3 -0
- package/node_modules/@nervekit/contracts/dist/domains/pinned-commands/pinned-command.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.d.ts +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.js +1 -2
- package/node_modules/@nervekit/contracts/dist/domains/plans/plan.events.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/projects/project.operations.schema.js +6 -6
- package/node_modules/@nervekit/contracts/dist/domains/projects/project.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.d.ts +11 -0
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.js +10 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.events.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.d.ts +67 -0
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.js +6 -4
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.d.ts +80 -0
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.js +55 -1
- package/node_modules/@nervekit/contracts/dist/domains/prompt-suggestions/prompt-suggestion.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.d.ts +0 -12
- package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.js +0 -2
- package/node_modules/@nervekit/contracts/dist/domains/protocol/envelope.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/errors.schema.d.ts +0 -4
- package/node_modules/@nervekit/contracts/dist/domains/protocol/errors.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/event-stream.schema.d.ts +0 -4
- package/node_modules/@nervekit/contracts/dist/domains/protocol/event-stream.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts +34 -82
- 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 +18 -88
- package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/notify.schema.d.ts +0 -4
- package/node_modules/@nervekit/contracts/dist/domains/protocol/notify.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts +638 -7027
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.js +2 -4
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/session.schema.d.ts +2 -26
- package/node_modules/@nervekit/contracts/dist/domains/protocol/session.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/snapshot.schema.d.ts +55 -7
- package/node_modules/@nervekit/contracts/dist/domains/protocol/snapshot.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/stream-subscription.schema.d.ts +0 -8
- package/node_modules/@nervekit/contracts/dist/domains/protocol/stream-subscription.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.d.ts +24 -24
- package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.js +5 -5
- package/node_modules/@nervekit/contracts/dist/domains/providers/provider.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/providers/providers.schema.d.ts +14 -14
- package/node_modules/@nervekit/contracts/dist/domains/runs/run-runtime.schema.d.ts +13 -13
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.d.ts +28 -4
- package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/snapshots/snapshot.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.d.ts +14 -14
- package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.js +6 -6
- package/node_modules/@nervekit/contracts/dist/domains/storage/storage.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/storage/storage.schema.d.ts +27 -27
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.d.ts +3 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.js +3 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/index.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.js +10 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.events.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.d.ts +81 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.js +26 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.operations.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.d.ts +50 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.js +30 -0
- package/node_modules/@nervekit/contracts/dist/domains/task-definitions/task-definition.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.js +4 -0
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.events.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.d.ts +315 -10
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.js +18 -8
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.d.ts +95 -6
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.js +27 -0
- package/node_modules/@nervekit/contracts/dist/domains/tasks/task.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/index.d.ts +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/index.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/index.js +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/index.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/task-tool-previews.schema.d.ts +45 -18
- package/node_modules/@nervekit/contracts/dist/domains/tools/task-tool-previews.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-results.schema.d.ts +150 -18
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-results.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts +2 -37
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.js +15 -19
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/usage/usage.operations.schema.js +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/usage/usage.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.d.ts +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/workers/worker.operations.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/workers/worker.schema.d.ts +2 -2
- package/node_modules/@nervekit/contracts/dist/index.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/index.js +1 -1
- package/node_modules/@nervekit/contracts/dist/index.js.map +1 -1
- package/node_modules/@nervekit/contracts/package.json +2 -3
- 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 +23 -2
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/compaction/compaction.js +55 -16
- 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 +3 -3
- package/node_modules/@nervekit/harness/dist/harness/messages.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/harness/messages.js.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 +24 -14
- package/node_modules/@nervekit/harness/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/harness/dist/index.js +23 -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/models/provider-error-classification.d.ts +3 -0
- package/node_modules/@nervekit/harness/dist/models/provider-error-classification.d.ts.map +1 -0
- package/node_modules/@nervekit/harness/dist/models/provider-error-classification.js +9 -0
- package/node_modules/@nervekit/harness/dist/models/provider-error-classification.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 +4 -4
- package/node_modules/@nervekit/protocol/dist/http-client.d.ts.map +1 -1
- package/node_modules/@nervekit/protocol/dist/http-client.js +0 -3
- package/node_modules/@nervekit/protocol/dist/http-client.js.map +1 -1
- package/node_modules/@nervekit/protocol/dist/rpc.d.ts.map +1 -1
- package/node_modules/@nervekit/protocol/dist/rpc.js +0 -3
- package/node_modules/@nervekit/protocol/dist/rpc.js.map +1 -1
- package/node_modules/@nervekit/protocol/package.json +2 -2
- package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.js +3 -0
- package/node_modules/@nervekit/tools/dist/catalog/orchestration/task.tools.js.map +1 -1
- 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/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/index.d.ts +2 -1
- package/node_modules/@nervekit/tools/dist/execution/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/index.js +2 -1
- package/node_modules/@nervekit/tools/dist/execution/index.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/python.js +7 -12
- package/node_modules/@nervekit/tools/dist/execution/python/python.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 +8 -13
- 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/index.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/index.js +1 -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/orchestration/tasks.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/runtime/orchestration/tasks.js +3 -0
- package/node_modules/@nervekit/tools/dist/runtime/orchestration/tasks.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 +1 -1
- package/node_modules/@nervekit/tools/dist/types.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/package.json +3 -3
- 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 +9 -1
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js.map +1 -1
- package/node_modules/@nervekit/{host-runtime/dist/index.d.ts → workbench-server/dist/core/ports.d.ts} +1 -14
- package/node_modules/@nervekit/workbench-server/dist/core/ports.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/core/ports.js +2 -0
- package/node_modules/@nervekit/workbench-server/dist/core/ports.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js +1 -1
- 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 +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/nerve-system-prompt.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts +1 -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 +1 -1
- 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 +6 -1
- 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 +12 -6
- 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/harness-execution-shared.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-execution-shared.js +3 -7
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-execution-shared.js.map +1 -1
- package/node_modules/@nervekit/{host-runtime/dist/harness.d.ts → workbench-server/dist/domains/agents/run/harness-factory.d.ts} +1 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-factory.d.ts.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist/harness.js → workbench-server/dist/domains/agents/run/harness-factory.js} +1 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/harness-factory.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-results.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-results.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/inline-command-runner.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/message-mirror.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/message-mirror.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/prompt-block-expansion.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/prompt-block-expansion.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/sequential-tool-approval-batch.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/sequential-tool-approval-batch.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js +1 -1
- 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 +1 -1
- 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/workbench-agent-mechanics.d.ts +7 -5
- 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 -2
- 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 +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 +4 -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-harness-storage.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/conversation-harness-storage.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 +4 -4
- 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-progress-publisher.d.ts +36 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.js +92 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-progress-publisher.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.d.ts +10 -2
- 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 +221 -144
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/compaction-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.js +1 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/navigation-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/conversations/operations/summary.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/plans/plan-paths.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/plans/plan-paths.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.js +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/index.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.js +95 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-builtins.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.d.ts +18 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.js +51 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-enablement.repository.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.js +10 -4
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-evaluator.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.js +39 -11
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-loader.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.d.ts +5 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion-types.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.d.ts +10 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.js +175 -53
- package/node_modules/@nervekit/workbench-server/dist/domains/prompt-suggestions/prompt-suggestion.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/providers/provider-catalog.store.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/providers/provider-catalog.store.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-cancellation.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-cancellation.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-composition.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-event-publisher.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-event-publisher.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-execution.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-execution.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-integrity.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-integrity.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-live-executions.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-live-executions.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-references.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-references.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts +1 -1
- 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 +3 -4
- 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/runtime/index.d.ts +16 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/index.d.ts.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/index.js +5 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/index.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-cancellation.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-cancellation.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-checkpoints.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-checkpoints.js.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-coordinator.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-coordinator.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-coordinator.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-errors.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-errors.js.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-events.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-events.d.ts.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-events.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-events.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-execution.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-execution.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-locks.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-locks.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-lookup-index.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-lookup-index.js.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-prompts.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-prompts.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-prompts.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-recovery.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-recovery.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-retries.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-retries.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-runtime.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-runtime.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-settlement.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-settlement.js.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-transitions.d.ts +3 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-transitions.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-transitions.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-unit-of-work.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/runtime/run-unit-of-work.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-agent-execution.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-agent-execution.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-query.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-status-projector.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run-status-projector.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts +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 +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runtime/python-runtime-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.js +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/index.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.d.ts +11 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.js +53 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.repository.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.d.ts +15 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.js +74 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/task-definitions/task-definition.service.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.d.ts +8 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.js +40 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/command.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.js +163 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/darwin-driver.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.d.ts +7 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.js +7 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/index.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.js +182 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/linux-driver.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.d.ts +4 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.js +14 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/runtime-driver.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.d.ts +9 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.js +63 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/shell.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.d.ts +46 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.js +2 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/types.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.d.ts +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.js +148 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/process-runtime/windows-driver.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log-query.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log-query.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log.service.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-log.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.js +8 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-notification.service.js.map +1 -1
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-service.d.ts +16 -6
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-service.d.ts.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-service.js +102 -16
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-service.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.js +3 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-status.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.d.ts +4 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js +16 -7
- 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 +1 -1
- 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 +38 -12
- 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-foreground.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.js +12 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service-foreground.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts +9 -6
- 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 +15 -3
- 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.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js +2 -2
- 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/git-mutation-publisher.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/git-mutation-publisher.js.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist/tools.d.ts → workbench-server/dist/domains/tools/host-tool-factory.d.ts} +1 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/host-tool-factory.d.ts.map +1 -0
- package/node_modules/@nervekit/{host-runtime/dist/tools.js → workbench-server/dist/domains/tools/host-tool-factory.js} +1 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/host-tool-factory.js.map +1 -0
- 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 +2 -2
- 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 +6 -32
- 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 +6 -2
- 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 +17 -8
- 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.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-result-bounds.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-bounds.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-bounds.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-result-model-limits.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts +1 -0
- 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 +17 -1
- 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/domains/workers/agent-process.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/workers/agent-process.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/workers/worker-manager.d.ts +2 -2
- package/node_modules/@nervekit/workbench-server/dist/http/errors.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/http/errors.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/stream-log-registry.d.ts +8 -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 +26 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.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/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 +67 -21
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/main.js +21 -14
- package/node_modules/@nervekit/workbench-server/dist/main.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 +4 -12
- 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 +1120 -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 +1085 -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 +92 -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 -566
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.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/routes/project-routes.js +11 -11
- package/node_modules/@nervekit/workbench-server/dist/routes/project-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.js +12 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/prompt-suggestion-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts +3 -3
- 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 +23 -9
- 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 +172 -18
- 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 +117 -29
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/{dist-CUNRgpDl.js → dist-U4j7h_73.js} +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-C7drErUN.css +1 -0
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-Woxp8XqF.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 +8 -7
- package/package.json +11 -13
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.d.ts +0 -12
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.js +0 -12
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/index.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.d.ts +0 -2
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.js +0 -35
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-manager.events.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.d.ts +0 -2
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.js +0 -22
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox-runtime.events.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.d.ts +0 -226
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.js +0 -171
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.d.ts +0 -6717
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.js +0 -781
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.config.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.d.ts +0 -711
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.js +0 -38
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.conversation-snapshot.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.d.ts +0 -1345
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.js +0 -323
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.d.ts +0 -7
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.js +0 -37
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.hash.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.d.ts +0 -5424
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.js +0 -699
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.d.ts +0 -6737
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.js +0 -45
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.d.ts +0 -891
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.js +0 -363
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.runtime-state.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.d.ts +0 -2284
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.js +0 -377
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.snapshot.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.d.ts +0 -21
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.js +0 -323
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.startup.js.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.d.ts +0 -39
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.d.ts.map +0 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.js +0 -41
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool-call-details.schema.js.map +0 -1
- package/node_modules/@nervekit/contracts/schemas/sandbox-config-v1.schema.json +0 -8403
- 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/host-runtime/LICENSE +0 -201
- package/node_modules/@nervekit/host-runtime/NOTICE +0 -5
- package/node_modules/@nervekit/host-runtime/dist/git-mutation-publisher.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/git-mutation-publisher.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/harness-worker.d.ts +0 -2
- package/node_modules/@nervekit/host-runtime/dist/harness-worker.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/harness-worker.js +0 -2
- package/node_modules/@nervekit/host-runtime/dist/harness-worker.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/harness.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/harness.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/index.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/index.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-cancellation.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-cancellation.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-checkpoints.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-checkpoints.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-coordinator.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-coordinator.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-errors.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-errors.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-events.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-events.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-execution.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-execution.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-locks.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-locks.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-lookup-index.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-lookup-index.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-prompts.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-prompts.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-recovery.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-recovery.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-retries.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-retries.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-runtime.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-runtime.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-settlement.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-settlement.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-transitions.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-transitions.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/task-log-query.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/task-log-query.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/task-service.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/task-service.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.d.ts +0 -71
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.js +0 -121
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/assertions.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.d.ts +0 -3
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.js +0 -146
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/cancellation.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.d.ts +0 -6
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.js +0 -52
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/completion.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.d.ts +0 -96
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.js +0 -2
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/fixture.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.d.ts +0 -10
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.js +0 -10
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/index.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.d.ts +0 -3
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.js +0 -150
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/interactions.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.d.ts +0 -4
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.js +0 -22
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/matrix.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.d.ts +0 -3
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.js +0 -68
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/redelivery-races.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.d.ts +0 -3
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.js +0 -93
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/retry-recovery.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.d.ts +0 -3
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.js +0 -36
- package/node_modules/@nervekit/host-runtime/dist/test-support/real-host-run-scenarios/tools.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support.d.ts +0 -2
- package/node_modules/@nervekit/host-runtime/dist/test-support.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/test-support.js +0 -2
- package/node_modules/@nervekit/host-runtime/dist/test-support.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/tools.d.ts.map +0 -1
- package/node_modules/@nervekit/host-runtime/dist/tools.js.map +0 -1
- package/node_modules/@nervekit/host-runtime/package.json +0 -38
- 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/domains/pinned-commands/index.d.ts +0 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.d.ts.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.js +0 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/index.js.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.d.ts +0 -10
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.d.ts.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.js +0 -28
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.repository.js.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.d.ts +0 -13
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.d.ts.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.js +0 -63
- package/node_modules/@nervekit/workbench-server/dist/domains/pinned-commands/pinned-command.service.js.map +0 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CEGKY4zN.js +0 -260
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-oDY02_0Y.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/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-cancellation.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-cancellation.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-checkpoints.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-checkpoints.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-coordinator.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-errors.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-errors.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-execution.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-execution.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-locks.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-locks.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-lookup-index.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-lookup-index.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-prompts.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-recovery.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-recovery.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-retries.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-retries.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-runtime.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-runtime.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-settlement.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-settlement.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-transitions.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-unit-of-work.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/runs/runtime}/run-unit-of-work.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-log-query.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tasks}/task-log-query.js +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tools}/git-mutation-publisher.d.ts +0 -0
- /package/node_modules/@nervekit/{host-runtime/dist → workbench-server/dist/domains/tools}/git-mutation-publisher.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,GAAG,CAAC,KAAK,CAAC,KAAK,EAA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"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type PinnedCommand } from "@nervekit/contracts";
|
|
2
|
-
import { type InitializedStorage } from "../../infrastructure/storage/index.js";
|
|
3
|
-
export declare class PinnedCommandRepository {
|
|
4
|
-
private readonly storage;
|
|
5
|
-
constructor(storage: InitializedStorage);
|
|
6
|
-
private file;
|
|
7
|
-
list(projectId: string): Promise<PinnedCommand[]>;
|
|
8
|
-
replace(projectId: string, commands: PinnedCommand[]): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=pinned-command.repository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.repository.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,uCAAuC,CAAC;AAE/C,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,kBAAkB;IAExD,OAAO,CAAC,IAAI;IASN,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAWjD,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3E"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { mkdir } from "node:fs/promises";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
import { pinnedCommandSchema } from "@nervekit/contracts";
|
|
4
|
-
import { atomicWriteJson, readJsonFile, } from "../../infrastructure/storage/index.js";
|
|
5
|
-
export class PinnedCommandRepository {
|
|
6
|
-
storage;
|
|
7
|
-
constructor(storage) {
|
|
8
|
-
this.storage = storage;
|
|
9
|
-
}
|
|
10
|
-
file(projectId) {
|
|
11
|
-
return join(this.storage.paths.home, "projects", projectId, "pinned-commands.json");
|
|
12
|
-
}
|
|
13
|
-
async list(projectId) {
|
|
14
|
-
const raw = await readJsonFile(this.file(projectId)).catch(() => undefined);
|
|
15
|
-
if (!Array.isArray(raw))
|
|
16
|
-
return [];
|
|
17
|
-
return raw
|
|
18
|
-
.map((value) => pinnedCommandSchema.safeParse(value))
|
|
19
|
-
.filter((result) => result.success)
|
|
20
|
-
.map((result) => result.data);
|
|
21
|
-
}
|
|
22
|
-
async replace(projectId, commands) {
|
|
23
|
-
const path = this.file(projectId);
|
|
24
|
-
await mkdir(dirname(path), { recursive: true, mode: 0o755 });
|
|
25
|
-
await atomicWriteJson(path, commands, 0o600);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=pinned-command.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.repository.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAsB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,eAAe,EAEf,YAAY,GACb,MA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";
|
|
2
|
-
import type { PinnedCommandRepository } from "./pinned-command.repository.js";
|
|
3
|
-
export declare class PinnedCommandService {
|
|
4
|
-
private readonly repository;
|
|
5
|
-
private readonly getProject;
|
|
6
|
-
constructor(repository: PinnedCommandRepository, getProject: (projectId: string) => ProjectRecord);
|
|
7
|
-
list(projectId: string): Promise<PinnedCommand[]>;
|
|
8
|
-
create(projectId: string, request: CreatePinnedCommandRequest): Promise<PinnedCommand>;
|
|
9
|
-
update(projectId: string, commandId: string, request: UpdatePinnedCommandRequest): Promise<PinnedCommand>;
|
|
10
|
-
remove(projectId: string, commandId: string): Promise<void>;
|
|
11
|
-
private notFound;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=pinned-command.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.service.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAE/B,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,0BAA0B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,qBAAa,oBAAoB;IAE7B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADV,UAAU,EAAE,uBAAuB,EACnC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,aAAa;IAG7D,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAKjD,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAiBnB,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAqBnB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjE,OAAO,CAAC,QAAQ;CAOjB"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { createId, } from "@nervekit/contracts";
|
|
2
|
-
import { HttpError } from "../../http/errors.js";
|
|
3
|
-
export class PinnedCommandService {
|
|
4
|
-
repository;
|
|
5
|
-
getProject;
|
|
6
|
-
constructor(repository, getProject) {
|
|
7
|
-
this.repository = repository;
|
|
8
|
-
this.getProject = getProject;
|
|
9
|
-
}
|
|
10
|
-
async list(projectId) {
|
|
11
|
-
this.getProject(projectId);
|
|
12
|
-
return this.repository.list(projectId);
|
|
13
|
-
}
|
|
14
|
-
async create(projectId, request) {
|
|
15
|
-
this.getProject(projectId);
|
|
16
|
-
const now = new Date().toISOString();
|
|
17
|
-
const record = {
|
|
18
|
-
id: createId("pin"),
|
|
19
|
-
projectId,
|
|
20
|
-
label: request.label,
|
|
21
|
-
command: request.command,
|
|
22
|
-
cwd: request.cwd,
|
|
23
|
-
createdAt: now,
|
|
24
|
-
updatedAt: now,
|
|
25
|
-
};
|
|
26
|
-
const existing = await this.repository.list(projectId);
|
|
27
|
-
await this.repository.replace(projectId, [...existing, record]);
|
|
28
|
-
return record;
|
|
29
|
-
}
|
|
30
|
-
async update(projectId, commandId, request) {
|
|
31
|
-
this.getProject(projectId);
|
|
32
|
-
const existing = await this.repository.list(projectId);
|
|
33
|
-
const index = existing.findIndex((command) => command.id === commandId);
|
|
34
|
-
if (index === -1)
|
|
35
|
-
throw this.notFound();
|
|
36
|
-
const current = existing[index];
|
|
37
|
-
if (!current)
|
|
38
|
-
throw this.notFound();
|
|
39
|
-
const updated = {
|
|
40
|
-
...current,
|
|
41
|
-
...(request.label ? { label: request.label } : { label: undefined }),
|
|
42
|
-
command: request.command,
|
|
43
|
-
...(request.cwd ? { cwd: request.cwd } : { cwd: undefined }),
|
|
44
|
-
updatedAt: new Date().toISOString(),
|
|
45
|
-
};
|
|
46
|
-
const next = [...existing];
|
|
47
|
-
next[index] = updated;
|
|
48
|
-
await this.repository.replace(projectId, next);
|
|
49
|
-
return updated;
|
|
50
|
-
}
|
|
51
|
-
async remove(projectId, commandId) {
|
|
52
|
-
this.getProject(projectId);
|
|
53
|
-
const existing = await this.repository.list(projectId);
|
|
54
|
-
const filtered = existing.filter((command) => command.id !== commandId);
|
|
55
|
-
if (filtered.length === existing.length)
|
|
56
|
-
throw this.notFound();
|
|
57
|
-
await this.repository.replace(projectId, filtered);
|
|
58
|
-
}
|
|
59
|
-
notFound() {
|
|
60
|
-
return new HttpError(404, "PINNED_COMMAND_NOT_FOUND", "Pinned command not found.");
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=pinned-command.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.service.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,GAIT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,MAAM,OAAO,oBAAoB;IAEZ;IACA;IAFnB,YACmB,UAAmC,EACnC,UAAgD;QADhD,eAAU,GAAV,UAAU,CAAyB;QACnC,eAAU,GAAV,UAAU,CAAsC;IAChE,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,SAAiB;QAC1B,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,SAAiB,EACjB,OAAmC;QAEnC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACrC,MAAM,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