@nervekit/desktop 0.10.0 → 0.12.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 +165 -134
- package/dist/app/run-runtime-recovery.d.ts +1 -0
- package/dist/app/run-runtime-recovery.d.ts.map +1 -1
- package/dist/app/run-runtime-recovery.js +32 -4
- package/dist/app/run-runtime-recovery.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/agents/agent.operations.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js +5 -1
- package/node_modules/@nervekit/contracts/dist/domains/conversations/conversation-runtime.events.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.d.ts +20 -0
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/git/git.operations.schema.js +3 -2
- 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 +45 -0
- package/node_modules/@nervekit/contracts/dist/domains/git/git.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/git/git.schema.js +32 -0
- package/node_modules/@nervekit/contracts/dist/domains/git/git.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts +4 -0
- package/node_modules/@nervekit/contracts/dist/domains/protocol/http.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/protocol/messages.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.d.ts +85 -28
- 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 -0
- package/node_modules/@nervekit/contracts/dist/domains/protocol/operation-catalog.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.common.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.events.schema.d.ts +4 -4
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.manager.schema.d.ts +46 -46
- package/node_modules/@nervekit/contracts/dist/domains/sandbox/sandbox.operations.schema.d.ts +23 -23
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts +21 -3
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.operations.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts +14 -2
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js +22 -0
- package/node_modules/@nervekit/contracts/dist/domains/settings/settings.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/skills/index.d.ts +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/index.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/index.js +2 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/index.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts +21 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.js +12 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.operations.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts +26 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.d.ts.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js +12 -0
- package/node_modules/@nervekit/contracts/dist/domains/skills/skill.schema.js.map +1 -0
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts +0 -2
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js +1 -8
- package/node_modules/@nervekit/contracts/dist/domains/status/status.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.d.ts +5 -5
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js +2 -2
- package/node_modules/@nervekit/contracts/dist/domains/tools/records.schema.js.map +1 -1
- package/node_modules/@nervekit/contracts/dist/domains/tools/tool.operations.schema.d.ts +1 -1
- package/node_modules/@nervekit/contracts/dist/index.d.ts +1 -0
- package/node_modules/@nervekit/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/contracts/dist/index.js +1 -0
- package/node_modules/@nervekit/contracts/dist/index.js.map +1 -1
- package/node_modules/@nervekit/contracts/package.json +1 -1
- package/node_modules/@nervekit/harness/package.json +2 -2
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.d.ts.map +1 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js +18 -1
- package/node_modules/@nervekit/host-runtime/dist/run-unit-of-work.js.map +1 -1
- package/node_modules/@nervekit/host-runtime/package.json +4 -4
- package/node_modules/@nervekit/protocol/package.json +2 -2
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js +6 -6
- package/node_modules/@nervekit/tools/dist/catalog/core/python.tools.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js +3 -0
- package/node_modules/@nervekit/tools/dist/catalog/core/shell.tools.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts +2 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js +23 -0
- package/node_modules/@nervekit/tools/dist/execution/common/command-cwd.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/execution/common/process-result.js +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-result.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts +8 -2
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js +63 -14
- package/node_modules/@nervekit/tools/dist/execution/common/process-tree.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js +3 -2
- package/node_modules/@nervekit/tools/dist/execution/filesystem/find.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/index.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/execution/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/index.js +1 -0
- package/node_modules/@nervekit/tools/dist/execution/index.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/python.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/python.js +28 -17
- package/node_modules/@nervekit/tools/dist/execution/python/python.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.js +6 -29
- package/node_modules/@nervekit/tools/dist/execution/python/runtime.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.js +22 -11
- package/node_modules/@nervekit/tools/dist/execution/shell/bash.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts +7 -0
- package/node_modules/@nervekit/tools/dist/git/git-branches.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-branches.js +51 -52
- package/node_modules/@nervekit/tools/dist/git/git-branches.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-command.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-command.js +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-command.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-parsers.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-github-parsers.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-parsers.js +31 -0
- package/node_modules/@nervekit/tools/dist/git/git-github-parsers.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts +4 -2
- package/node_modules/@nervekit/tools/dist/git/git-github-service.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-github-service.js +34 -19
- package/node_modules/@nervekit/tools/dist/git/git-github-service.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts +21 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.js +2 -0
- package/node_modules/@nervekit/tools/dist/git/git-observability.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts +6 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.js +94 -0
- package/node_modules/@nervekit/tools/dist/git/git-overview.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts +21 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.d.ts.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js +59 -0
- package/node_modules/@nervekit/tools/dist/git/git-repository-metadata.js.map +1 -0
- package/node_modules/@nervekit/tools/dist/git/git-service.d.ts +18 -9
- package/node_modules/@nervekit/tools/dist/git/git-service.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/git/git-service.js +119 -120
- package/node_modules/@nervekit/tools/dist/git/git-service.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/index.d.ts +2 -1
- package/node_modules/@nervekit/tools/dist/index.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/dist/index.js +2 -1
- package/node_modules/@nervekit/tools/dist/index.js.map +1 -1
- package/node_modules/@nervekit/tools/dist/types.d.ts +1 -0
- package/node_modules/@nervekit/tools/dist/types.d.ts.map +1 -1
- package/node_modules/@nervekit/tools/package.json +2 -2
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js +31 -2
- package/node_modules/@nervekit/workbench-server/dist/app/orchestrator-state.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js +37 -5
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/agent-lifecycle.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts +16 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js +137 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/agent-browser-skills.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/prompting/resource-loader.d.ts +5 -0
- 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 +46 -11
- 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/subagent-runner.d.ts +3 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/subagent-runner.js +6 -6
- 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 +4 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js +3 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/system-prompt-builder.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-agent-mechanics.d.ts +2 -0
- 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 +1 -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.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/agents/run/workbench-harness-execution.js +7 -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/runs/run-transition.repository.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js +10 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/run-transition.repository.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js +5 -2
- package/node_modules/@nervekit/workbench-server/dist/domains/runs/workbench-run.service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js +4 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/task-supervisor.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts +4 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js +5 -3
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-adapters.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts +4 -0
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tasks/workbench-task-service.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/agent-tool-adapter.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/orchestration-tool-dispatcher.js +14 -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-transcript-preview.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js +2 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-call-transcript-preview.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/domains/tools/tool-service.d.ts +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/crash-reports.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/crash-reports.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/crash-reports.js +7 -2
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/diagnostics/crash-reports.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js +3 -3
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/log-migration.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.d.ts +4 -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 +48 -19
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log-registry.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts +9 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js +85 -62
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/events/stream-log.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts +20 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.d.ts.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js +99 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/file-mutations.js.map +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js +1 -0
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/index.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js +43 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/initialize.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js +17 -69
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/json.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js +4 -3
- package/node_modules/@nervekit/workbench-server/dist/infrastructure/storage/legacy-home-migration.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/main.js +11 -0
- package/node_modules/@nervekit/workbench-server/dist/main.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js +3 -2
- package/node_modules/@nervekit/workbench-server/dist/protocol/file-idempotency-store.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.d.ts +1 -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 +14 -1
- package/node_modules/@nervekit/workbench-server/dist/protocol/method-handlers.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js +3 -0
- package/node_modules/@nervekit/workbench-server/dist/routes/agent-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/git-routes.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/routes/git-routes.js +10 -2
- package/node_modules/@nervekit/workbench-server/dist/routes/git-routes.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts +2 -0
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.d.ts.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js +24 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-composition.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.d.ts +2 -1
- 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 +2 -1
- package/node_modules/@nervekit/workbench-server/dist/runtime/runtime-registry.js.map +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/{dist-lmXnsumN.js → dist-CUNRgpDl.js} +1 -1
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CEGKY4zN.js +260 -0
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-oDY02_0Y.css +2 -0
- package/node_modules/@nervekit/workbench-server/dist/web/index.html +2 -2
- package/node_modules/@nervekit/workbench-server/dist/web/sw.js +1 -1
- package/node_modules/@nervekit/workbench-server/package.json +4 -4
- package/package.json +7 -7
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-CDGydaQX.js +0 -260
- package/node_modules/@nervekit/workbench-server/dist/web/assets/index-m5Y19dVt.css +0 -2
package/README.md
CHANGED
|
@@ -1,31 +1,122 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Nerve
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**A transparent, local-first desktop coding harness with the focus of a small agent and the workflow of a complete workbench.**
|
|
4
4
|
|
|
5
|
-
Nerve
|
|
5
|
+
Nerve keeps the agent simple, its work visible, and you in control. Follow streaming messages and tool calls, review approvals and plans, manage Git and background tasks, and change the model or permission level without starting over—all from an open-source desktop app that runs with your local projects.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+

|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> [!NOTE]
|
|
10
|
+
> Nerve is beta software and is distributed under the [Apache-2.0 license](LICENSE).
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## Quick start
|
|
13
|
+
|
|
14
|
+
Nerve requires Node.js `>=24.0.0`. Start the desktop app directly with your package runner:
|
|
12
15
|
|
|
13
16
|
```sh
|
|
14
17
|
npx @nervekit/desktop
|
|
18
|
+
# or
|
|
15
19
|
pnpm dlx @nervekit/desktop
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
The first run may download Electron's platform binary
|
|
22
|
+
The first run may download Electron's platform binary; later runs use the package manager cache. The npm launcher supports Linux, Windows 11, and macOS. Signed and notarized native installers are not currently part of the release path.
|
|
23
|
+
|
|
24
|
+
## Why Nerve
|
|
25
|
+
|
|
26
|
+
Nerve sits between bare command-line harnesses and heavyweight IDE agents: small enough to understand, but complete enough for everyday development.
|
|
27
|
+
|
|
28
|
+
- **See what the agent sees and does.** Messages, reasoning, tool calls, approvals, questions, plans, task output, and logs remain visible instead of disappearing behind a progress indicator.
|
|
29
|
+
- **Change course without restarting.** Switch the model, thinking level, coding or planning mode, and permission level on an active agent. Updated settings apply to its subsequent work.
|
|
30
|
+
- **Use a focused harness.** A concise system prompt, curated tool set, bounded output, and automatic context compaction keep the runtime purposeful without stripping away useful capabilities.
|
|
31
|
+
- **Enable only what you need.** Configure tools and global or project skills from the UI, with optional web, Python, Jira, Confluence, and Agent Browser capabilities.
|
|
32
|
+
- **Keep work local.** The desktop app owns a loopback daemon by default, works directly with local repositories, and stores Nerve data on your machine.
|
|
33
|
+
|
|
34
|
+
## Everything needed for daily coding
|
|
35
|
+
|
|
36
|
+
### A workbench for real projects
|
|
37
|
+
|
|
38
|
+
Open multiple projects and organize their conversations in a navigable tree. Keep conversations, files, pull requests, tasks, logs, settings, and scratch notes in tabs while the composer shows live context-window usage. Search projects and conversations, inspect a conversation's history graph, continue or fork from an earlier point, and edit and resend previous prompts.
|
|
39
|
+
|
|
40
|
+
The desktop UI also includes light and dark themes, browser notifications, zoom controls, and keyboard shortcuts for pane navigation, sending or stopping work, cycling agent controls, and voice input.
|
|
41
|
+
|
|
42
|
+
### Live agent control
|
|
43
|
+
|
|
44
|
+
Choose a provider, model, and supported thinking level for each conversation. Move between coding and planning modes, adjust permission and approval policy, or make the agent read-only. These controls remain available while the agent is active, so a conversation can continue under a different model or authority level without being recreated.
|
|
45
|
+
|
|
46
|
+
Approvals, user questions, and plan reviews appear directly in the conversation. Defaults, scoped models, custom providers, API keys, subscriptions, and model definitions are managed from the workbench.
|
|
47
|
+
|
|
48
|
+
### Transparent coding tools
|
|
49
|
+
|
|
50
|
+
Nerve ships with a curated set of tools for file inspection and editing, shell commands, finite Python execution, search, structured to-dos, and plan review. Tool calls have visible lifecycle states and bounded output. Risk-aware policy and approval gates distinguish reading, workspace writes, commands, network access, destructive actions, and agent spawning.
|
|
51
|
+
|
|
52
|
+
Automatic context compaction preserves recent work and file-operation context as long conversations approach a model's context window.
|
|
53
|
+
|
|
54
|
+
### Git and GitHub in the workbench
|
|
55
|
+
|
|
56
|
+
Inspect repositories, branches, working-tree changes, recent commits, and GitHub pull requests without leaving the conversation. Browse and check out pull requests, then use repository-aware follow-up actions to ask the agent to create a commit, branch, or PR when the current Git state calls for it.
|
|
57
|
+
|
|
58
|
+
### Background tasks and native sub-agents
|
|
59
|
+
|
|
60
|
+
Start supervised background processes for servers, watchers, and other long-running work. Nerve keeps task status and streaming logs available in dedicated panes, and the agent can inspect, restart, or stop those tasks as needed.
|
|
61
|
+
|
|
62
|
+
For larger investigations, the native Explore tool can delegate independent read-only codebase research to parallel sub-agents. The Explore agent has its own configurable model and thinking level, while findings return to the main conversation.
|
|
63
|
+
|
|
64
|
+
### Models, tools, and skills on your terms
|
|
65
|
+
|
|
66
|
+
Nerve supports major model-provider families and custom OpenAI-compatible or provider-specific model definitions. Authentication and model configuration stay in the UI, including context windows, costs, and thinking capabilities where available.
|
|
67
|
+
|
|
68
|
+
Tools can be enabled or disabled from Settings. Markdown skills are discovered globally and per project, can be toggled without deleting their files, and apply to subsequent agent runs. Project definitions take precedence over global skills with the same name.
|
|
69
|
+
|
|
70
|
+
### Voice input
|
|
71
|
+
|
|
72
|
+
Record a prompt from the composer and transcribe it directly into text. Voice transcription uses OpenAI's ChatGPT audio service and requires ChatGPT authentication in Nerve.
|
|
73
|
+
|
|
74
|
+
## How it works
|
|
75
|
+
|
|
76
|
+
By default, the Electron desktop app starts and owns a local daemon bound to loopback, then opens the bundled Web UI. The UI and daemon communicate through Nerve Protocol v1 over HTTP and WebSocket, with reconnect, replay, and snapshot recovery built in.
|
|
77
|
+
|
|
78
|
+
Application data lives under `~/.nerve` by default. Electron's active browser profile is deliberately kept outside that directory, so backing up or migrating the Nerve home does not silently capture browser caches and active profile state.
|
|
79
|
+
|
|
80
|
+
The same workbench can run in a browser, accept opt-in LAN/mobile connections, or connect the desktop shell to an existing daemon.
|
|
81
|
+
|
|
82
|
+
## Skills and project resources
|
|
83
|
+
|
|
84
|
+
Nerve loads project resources from `.nerve/` and shared agent skills from `.agents/skills/` in the current directory or its ancestors.
|
|
85
|
+
|
|
86
|
+
Global Nerve resources live under `<NERVE_HOME>/agent/` (`~/.nerve/agent/` by default). Global shared agent skills live under `~/.agents/skills/`.
|
|
87
|
+
|
|
88
|
+
Legacy `.pi` directories are not loaded. Move old resources to `.nerve/` for Nerve-specific files or `.agents/skills/` for portable skills.
|
|
89
|
+
|
|
90
|
+
Use **Settings → Skills** to review and enable or disable discovered skills. Project skills override global skills with the same name.
|
|
91
|
+
|
|
92
|
+
## Browser, LAN, and remote daemon use
|
|
93
|
+
|
|
94
|
+
Pass desktop and daemon options after `--`:
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
# Allow opt-in LAN access
|
|
98
|
+
npx @nervekit/desktop -- --host 0.0.0.0 --allow-remote
|
|
99
|
+
|
|
100
|
+
# Add self-signed HTTPS for mobile browsers
|
|
101
|
+
npx @nervekit/desktop -- --host 0.0.0.0 --allow-remote --mobile-https
|
|
102
|
+
|
|
103
|
+
# Connect the desktop UI to an existing daemon
|
|
104
|
+
npx @nervekit/desktop -- --connect http://127.0.0.1:3747 --token <token>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
The same options work with `pnpm dlx @nervekit/desktop` and `pnpm desktop` from a source checkout.
|
|
108
|
+
|
|
109
|
+
> [!WARNING]
|
|
110
|
+
> Nerve is beta software. Do not expose its daemon to untrusted networks unless you understand the risks and have configured appropriate access controls. Self-signed HTTPS helps protect transport on a trusted LAN; it does not make public Internet exposure safe by itself.
|
|
111
|
+
|
|
112
|
+
## Troubleshooting
|
|
19
113
|
|
|
20
|
-
|
|
114
|
+
<details>
|
|
115
|
+
<summary><strong>Corporate proxy and Electron download issues</strong></summary>
|
|
21
116
|
|
|
22
|
-
This applies on Linux, Windows, and macOS. `pnpm install` can succeed while the
|
|
23
|
-
Electron platform binary is still missing; in that case `pnpm desktop` (or
|
|
24
|
-
`pnpm run desktop`) may fail when the `electron` package tries to download from
|
|
25
|
-
Electron's release host.
|
|
117
|
+
This applies on Linux, Windows, and macOS. `pnpm install` can succeed while the Electron platform binary is still missing; in that case `pnpm desktop` may fail when the `electron` package tries to download from Electron's release host.
|
|
26
118
|
|
|
27
|
-
If your network requires a corporate proxy, configure the Electron downloader and
|
|
28
|
-
then rebuild Electron:
|
|
119
|
+
If your network requires a corporate proxy, configure the Electron downloader and rebuild Electron:
|
|
29
120
|
|
|
30
121
|
```sh
|
|
31
122
|
export ELECTRON_GET_USE_PROXY=true
|
|
@@ -49,8 +140,7 @@ pnpm --filter @nervekit/desktop-shell rebuild electron
|
|
|
49
140
|
pnpm desktop
|
|
50
141
|
```
|
|
51
142
|
|
|
52
|
-
If you keep proxy settings in pnpm config, use user-level config rather than a
|
|
53
|
-
repo `.npmrc` with secrets:
|
|
143
|
+
If you keep proxy settings in pnpm config, use user-level config rather than a repository `.npmrc` containing secrets:
|
|
54
144
|
|
|
55
145
|
```sh
|
|
56
146
|
pnpm config set proxy http://proxy.example.com:8080
|
|
@@ -58,65 +148,43 @@ pnpm config set https-proxy http://proxy.example.com:8080
|
|
|
58
148
|
pnpm config set cafile /path/to/corporate-ca.pem
|
|
59
149
|
```
|
|
60
150
|
|
|
61
|
-
If your company mirrors Electron artifacts, set `ELECTRON_MIRROR`
|
|
62
|
-
before rebuilding. If a partial download was cached, clear Electron's cache and
|
|
63
|
-
rebuild. Cache locations are `~/.cache/electron` on Linux,
|
|
64
|
-
`~/Library/Caches/electron` on macOS, and `%LOCALAPPDATA%\electron\Cache` on
|
|
65
|
-
Windows.
|
|
151
|
+
If your company mirrors Electron artifacts, set `ELECTRON_MIRROR` before rebuilding. If a partial download was cached, clear Electron's cache and rebuild. Cache locations are `~/.cache/electron` on Linux, `~/Library/Caches/electron` on macOS, and `%LOCALAPPDATA%\electron\Cache` on Windows.
|
|
66
152
|
|
|
67
|
-
The desktop launcher
|
|
68
|
-
macOS System Settings uses a corporate proxy or PAC file, keep `NO_PROXY` set to
|
|
69
|
-
include `localhost,127.0.0.1,::1` for shell-launched development, then run with
|
|
70
|
-
redacted proxy diagnostics when needed:
|
|
153
|
+
The desktop launcher forces loopback proxy bypass for the local daemon. If macOS System Settings uses a corporate proxy or PAC file, keep `NO_PROXY` set to include `localhost,127.0.0.1,::1` for shell-launched development. Run with redacted proxy diagnostics when needed:
|
|
71
154
|
|
|
72
155
|
```sh
|
|
73
156
|
NERVE_DEBUG_PROXY=1 pnpm desktop
|
|
74
157
|
```
|
|
75
158
|
|
|
76
|
-
Desktop logs are written to `~/.nerve/logs/desktop-YYYY-MM-DD.jsonl`; crash
|
|
77
|
-
reports are written to `~/.nerve/crashes`.
|
|
159
|
+
Desktop logs are written to `~/.nerve/logs/desktop-YYYY-MM-DD.jsonl`; crash reports are written to `~/.nerve/crashes`.
|
|
78
160
|
|
|
79
|
-
|
|
161
|
+
</details>
|
|
80
162
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
timestamped backup such as `~/.nerve-bk-20260716-013229`, initializes a fresh
|
|
84
|
-
current data directory, and restores only encrypted provider and tool
|
|
85
|
-
authentication when it can be read. Conversations, projects, history, custom
|
|
86
|
-
provider definitions, settings, and all other state are not imported; review
|
|
87
|
-
your settings after the upgrade.
|
|
163
|
+
<details>
|
|
164
|
+
<summary><strong>Linux Wayland copy or drag freezes</strong></summary>
|
|
88
165
|
|
|
89
|
-
If
|
|
90
|
-
backup intact and asks you to authenticate again. Nerve never deletes these
|
|
91
|
-
backups automatically. Unknown, malformed, or future versioned stores are not
|
|
92
|
-
reset automatically, and remote desktop connections never run this local-home migration.
|
|
93
|
-
|
|
94
|
-
Source development via `pnpm desktop` is supported on macOS. A signed/notarized
|
|
95
|
-
macOS `.app` or DMG release package is not configured yet.
|
|
96
|
-
|
|
97
|
-
Pass desktop/daemon options after `--`:
|
|
166
|
+
Electron may emit Chromium/Ozone Wayland messages such as `Frame latency is negative` or `Invalid state when trying to start drag`. If native Wayland also causes copy or drag freezes in your desktop environment, run the shell through XWayland:
|
|
98
167
|
|
|
99
168
|
```sh
|
|
100
|
-
npx @nervekit/desktop
|
|
101
|
-
npx @nervekit/desktop -- --connect http://127.0.0.1:3747 --token <token>
|
|
102
|
-
pnpm dlx @nervekit/desktop -- --host 0.0.0.0 --allow-remote
|
|
169
|
+
NERVE_ELECTRON_OZONE_PLATFORM=x11 npx @nervekit/desktop
|
|
103
170
|
```
|
|
104
171
|
|
|
105
|
-
|
|
172
|
+
Supported values are `x11`, `wayland`, and `auto`. Leave the variable unset for Electron's default platform selection.
|
|
106
173
|
|
|
107
|
-
|
|
108
|
-
npx @nervekit/desktop -- --host 0.0.0.0 --allow-remote --mobile-https
|
|
109
|
-
```
|
|
174
|
+
</details>
|
|
110
175
|
|
|
111
|
-
|
|
176
|
+
<details>
|
|
177
|
+
<summary><strong>Upgrading a legacy desktop data directory</strong></summary>
|
|
112
178
|
|
|
113
|
-
|
|
179
|
+
When the desktop finds an unversioned legacy `~/.nerve`, it asks before making changes. If accepted, Nerve renames the complete directory to a retained, timestamped backup such as `~/.nerve-bk-20260716-013229`, initializes a fresh current data directory, and restores only encrypted provider and tool authentication when it can be read.
|
|
114
180
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
181
|
+
Conversations, projects, history, custom provider definitions, settings, and all other state are not imported; review your settings after the upgrade.
|
|
182
|
+
|
|
183
|
+
If legacy credentials cannot be decrypted, startup continues with the complete backup intact and asks you to authenticate again. Nerve never deletes these backups automatically. Unknown, malformed, or future versioned stores are not reset automatically, and remote desktop connections never run this local-home migration.
|
|
118
184
|
|
|
119
|
-
|
|
185
|
+
</details>
|
|
186
|
+
|
|
187
|
+
Daemon logs are written under `~/.nerve/logs`. Crash diagnostics are written under `~/.nerve/crashes`; the daemon records structured reports for handled fatal errors, enables Node diagnostic reports for native/runtime fatal errors, and writes a fallback report on the next start if the previous daemon exited without a graceful shutdown.
|
|
120
188
|
|
|
121
189
|
## Develop from source
|
|
122
190
|
|
|
@@ -125,122 +193,85 @@ Requirements:
|
|
|
125
193
|
- Node.js `>=24.0.0`
|
|
126
194
|
- pnpm `11.x` (`packageManager` pins `pnpm@11.8.0`)
|
|
127
195
|
|
|
128
|
-
Install dependencies
|
|
196
|
+
Install dependencies and start the desktop app:
|
|
129
197
|
|
|
130
198
|
```sh
|
|
131
199
|
pnpm install
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Run the desktop app from a source checkout:
|
|
135
|
-
|
|
136
|
-
```sh
|
|
137
200
|
pnpm desktop
|
|
138
201
|
```
|
|
139
202
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
```sh
|
|
143
|
-
pnpm desktop -- --host 0.0.0.0 --allow-remote
|
|
144
|
-
pnpm desktop -- --connect http://127.0.0.1:3747 --token <token>
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
For opt-in LAN remote access plus self-signed HTTPS for mobile browsers
|
|
148
|
-
(binds to `0.0.0.0`, allows remote clients, and enables self-signed HTTPS):
|
|
149
|
-
|
|
150
|
-
```sh
|
|
151
|
-
pnpm desktop:remote-enabled
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### Browser and daemon usage from source
|
|
155
|
-
|
|
156
|
-
Run the daemon and Web UI dev servers together:
|
|
203
|
+
Run the daemon and Web UI development servers together, or run only the Web UI against an existing daemon:
|
|
157
204
|
|
|
158
205
|
```sh
|
|
159
206
|
pnpm dev
|
|
207
|
+
pnpm dev:ui
|
|
160
208
|
```
|
|
161
209
|
|
|
162
|
-
Run
|
|
210
|
+
Run the sandbox manager and its UI:
|
|
163
211
|
|
|
164
212
|
```sh
|
|
165
|
-
pnpm dev:
|
|
213
|
+
pnpm dev:sandbox
|
|
166
214
|
```
|
|
167
215
|
|
|
168
|
-
|
|
216
|
+
For opt-in LAN access with self-signed HTTPS from a source checkout:
|
|
169
217
|
|
|
170
218
|
```sh
|
|
171
|
-
pnpm
|
|
219
|
+
pnpm desktop:remote-enabled
|
|
172
220
|
```
|
|
173
221
|
|
|
174
|
-
For lower-level
|
|
175
|
-
|
|
176
|
-
Run only the daemon:
|
|
222
|
+
For lower-level development, run only the daemon:
|
|
177
223
|
|
|
178
224
|
```sh
|
|
179
225
|
pnpm --filter @nervekit/workbench-server dev
|
|
180
226
|
```
|
|
181
227
|
|
|
182
|
-
|
|
183
|
-
structured reports for handled fatal errors, enables Node diagnostic reports for
|
|
184
|
-
native/runtime fatal errors, and writes a fallback report on next start if the
|
|
185
|
-
previous daemon exited without a graceful shutdown. Daemon logs are written
|
|
186
|
-
under `~/.nerve/logs`.
|
|
187
|
-
|
|
188
|
-
## Root scripts
|
|
189
|
-
|
|
190
|
-
Top-level scripts are kept to user-facing desktop launchers, common validation,
|
|
191
|
-
and release commands used by CI:
|
|
228
|
+
### Root scripts
|
|
192
229
|
|
|
193
230
|
```sh
|
|
194
|
-
pnpm desktop #
|
|
195
|
-
pnpm desktop:remote-enabled #
|
|
196
|
-
pnpm dev #
|
|
197
|
-
pnpm dev:ui #
|
|
198
|
-
pnpm dev:sandbox #
|
|
199
|
-
pnpm build # build
|
|
200
|
-
pnpm fix # apply ESLint fixes
|
|
201
|
-
pnpm check #
|
|
202
|
-
pnpm test #
|
|
203
|
-
pnpm release:verify-tag # validate
|
|
231
|
+
pnpm desktop # Electron desktop app from source
|
|
232
|
+
pnpm desktop:remote-enabled # desktop with LAN/mobile HTTPS flags
|
|
233
|
+
pnpm dev # local daemon and Web UI
|
|
234
|
+
pnpm dev:ui # Web UI against an existing daemon
|
|
235
|
+
pnpm dev:sandbox # sandbox manager and manager UI
|
|
236
|
+
pnpm build # build packages and stage Web assets
|
|
237
|
+
pnpm fix # format and apply ESLint fixes
|
|
238
|
+
pnpm check # formatting, lint, boundaries, package checks
|
|
239
|
+
pnpm test # package tests
|
|
240
|
+
pnpm release:verify-tag # validate a release tag and package versions
|
|
204
241
|
```
|
|
205
242
|
|
|
206
|
-
Release details are documented in `docs/release.md
|
|
243
|
+
Release details are documented in [`docs/release.md`](docs/release.md).
|
|
207
244
|
|
|
208
|
-
##
|
|
245
|
+
## Architecture
|
|
209
246
|
|
|
210
|
-
|
|
247
|
+
The desktop workbench is the main local product:
|
|
211
248
|
|
|
212
|
-
|
|
249
|
+
- `packages/desktop-shell` — Electron launcher, desktop bridge, and local-server owner.
|
|
250
|
+
- `packages/workbench-app` — Svelte browser host and app-specific feature adapters.
|
|
251
|
+
- `packages/workbench-ui` — reusable workbench, conversation, Git, and task feature hosts.
|
|
252
|
+
- `packages/workbench-server` — local HTTP/WebSocket server, persistence, authentication, and built Web assets.
|
|
213
253
|
|
|
214
|
-
|
|
254
|
+
Shared foundations keep contracts and runtime behavior independent of the UI:
|
|
215
255
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
Shared foundations:
|
|
221
|
-
|
|
222
|
-
- `packages/contracts` — transport-neutral API, operation, event, policy, and storage schemas.
|
|
223
|
-
- `packages/protocol` — protocol codec, HTTP mapping, client/server sessions, replay, ACK, and queues.
|
|
224
|
-
- `packages/harness` — model conversation and agent execution harness.
|
|
225
|
-
- `packages/tools` — coding tools and policy enforcement.
|
|
256
|
+
- `packages/contracts` — transport-neutral API, event, policy, operation, and storage schemas.
|
|
257
|
+
- `packages/protocol` — protocol codec, HTTP mapping, client/server sessions, replay, acknowledgements, and queues.
|
|
258
|
+
- `packages/harness` — model conversation, agent loop, skills, and context compaction.
|
|
259
|
+
- `packages/tools` — coding tool catalog, executors, and policy enforcement.
|
|
226
260
|
- `packages/host-runtime` — environment-neutral Git, task, tool, and run composition.
|
|
227
|
-
- `packages/ui-kit` — contract-free shadcn-svelte
|
|
228
|
-
- `packages/workbench-ui` — app-neutral workbench, conversation, Git, and task feature hosts.
|
|
261
|
+
- `packages/ui-kit` — contract-free shadcn-svelte components, theme, and generic renderers.
|
|
229
262
|
|
|
230
|
-
|
|
263
|
+
Nerve also contains a separate sandbox deployment system:
|
|
231
264
|
|
|
232
|
-
- `packages/
|
|
233
|
-
- `packages/
|
|
234
|
-
- `packages/
|
|
265
|
+
- `packages/sandbox-manager` — PostgreSQL-backed manager, runtime drivers, protocol routing, and static UI host.
|
|
266
|
+
- `packages/sandbox-manager-app` — Svelte manager browser host.
|
|
267
|
+
- `packages/sandbox-agent` — isolated agent daemon with file-first state, tools, tasks, Git, and runs.
|
|
235
268
|
|
|
236
|
-
|
|
269
|
+
Nerve Protocol v1 connects the local workbench UI to `workbench_server`, the sandbox manager UI to `sandbox_manager`, and each `sandbox_agent` to its manager. See [`docs/nerve-protocol/v1/`](docs/nerve-protocol/v1/), [`docs/nerve-sandbox/v1/`](docs/nerve-sandbox/v1/), and [`docs/release.md`](docs/release.md).
|
|
237
270
|
|
|
238
|
-
|
|
239
|
-
- `packages/sandbox-manager-app` — Svelte manager browser host and thin shared-feature adapters.
|
|
240
|
-
- `packages/sandbox-agent` — isolated daemon with file-first `/state`, tools, tasks, Git, and runs.
|
|
271
|
+
## Contributing and security
|
|
241
272
|
|
|
242
|
-
|
|
273
|
+
Contributions are welcome; see [`CONTRIBUTING.md`](CONTRIBUTING.md). Report vulnerabilities through the private channels in [`SECURITY.md`](SECURITY.md).
|
|
243
274
|
|
|
244
275
|
## License
|
|
245
276
|
|
|
246
|
-
Apache-2.0. See `LICENSE` and `NOTICE
|
|
277
|
+
Apache-2.0. See [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE).
|
|
@@ -8,6 +8,7 @@ export interface RunRuntimeRecoveryResult<T> {
|
|
|
8
8
|
export interface RunRuntimeRecoveryDependencies {
|
|
9
9
|
showMessageBox: (options: MessageBoxOptions) => Promise<Pick<MessageBoxReturnValue, "response">>;
|
|
10
10
|
rename?: (source: string, destination: string) => Promise<void>;
|
|
11
|
+
delay?: (milliseconds: number) => Promise<void>;
|
|
11
12
|
pathExists?: (path: string) => Promise<boolean>;
|
|
12
13
|
now?: () => Date;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-runtime-recovery.d.ts","sourceRoot":"","sources":["../../src/app/run-runtime-recovery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"run-runtime-recovery.d.ts","sourceRoot":"","sources":["../../src/app/run-runtime-recovery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AASzE,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC;AAED,MAAM,WAAW,8BAA8B;IAC7C,cAAc,EAAE,CACd,OAAO,EAAE,iBAAiB,KACvB,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,KAAK,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAChD,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE;CAIzD;AAED,wBAAsB,2BAA2B,CAAC,CAAC,EACjD,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAA;CAAE,EAChD,YAAY,EAAE,8BAA8B,GAC3C,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAqCtC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { access, rename } from "node:fs/promises";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { isDaemonStartupErrorCode } from "../daemon/diagnostics.js";
|
|
3
|
+
import { DaemonStartupError, isDaemonStartupErrorCode, } from "../daemon/diagnostics.js";
|
|
4
4
|
const RUN_REVISION_CONFLICT = "RUN_REVISION_CONFLICT";
|
|
5
|
+
const CORRUPT_RUN_JOURNAL = "Corrupt run journal";
|
|
5
6
|
export class RunRuntimeRecoveryError extends Error {
|
|
6
7
|
constructor(message, options) {
|
|
7
8
|
super(message, options);
|
|
@@ -13,12 +14,12 @@ export async function startWithRunRuntimeRecovery(input, dependencies) {
|
|
|
13
14
|
return { value: await input.start() };
|
|
14
15
|
}
|
|
15
16
|
catch (error) {
|
|
16
|
-
if (!
|
|
17
|
+
if (!isRecoverableRunRuntimeStartupError(error))
|
|
17
18
|
throw error;
|
|
18
19
|
const confirmation = await dependencies.showMessageBox({
|
|
19
20
|
type: "warning",
|
|
20
21
|
title: "Repair Nerve run data",
|
|
21
|
-
message: "Nerve found inconsistent local run history.",
|
|
22
|
+
message: "Nerve found inconsistent or unreadable local run history.",
|
|
22
23
|
detail: [
|
|
23
24
|
"Nerve can move the complete run-runtime directory to a retained timestamped backup, then retry startup with fresh run data.",
|
|
24
25
|
"Settings, projects, conversations, providers, and authentication will not be changed.",
|
|
@@ -44,10 +45,15 @@ export async function startWithRunRuntimeRecovery(input, dependencies) {
|
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
}
|
|
48
|
+
function isRecoverableRunRuntimeStartupError(error) {
|
|
49
|
+
return (isDaemonStartupErrorCode(error, RUN_REVISION_CONFLICT) ||
|
|
50
|
+
(error instanceof DaemonStartupError &&
|
|
51
|
+
error.daemonOutput.includes(CORRUPT_RUN_JOURNAL)));
|
|
52
|
+
}
|
|
47
53
|
async function backupRunRuntime(home, dependencies) {
|
|
48
54
|
const source = join(home, "run-runtime");
|
|
49
55
|
const backupPath = await allocateBackupPath(home, (dependencies.now ?? (() => new Date()))(), dependencies.pathExists ?? pathExists);
|
|
50
|
-
await (
|
|
56
|
+
await retryRename(source, backupPath, dependencies);
|
|
51
57
|
return backupPath;
|
|
52
58
|
}
|
|
53
59
|
async function allocateBackupPath(home, now, exists) {
|
|
@@ -67,6 +73,28 @@ function formatBackupTimestamp(value) {
|
|
|
67
73
|
const compact = value.toISOString().replaceAll(/[-:]/g, "");
|
|
68
74
|
return `${compact.slice(0, 8)}-${compact.slice(9, 15)}`;
|
|
69
75
|
}
|
|
76
|
+
async function retryRename(source, destination, dependencies) {
|
|
77
|
+
const renamePath = dependencies.rename ?? rename;
|
|
78
|
+
const wait = dependencies.delay ?? delay;
|
|
79
|
+
for (let attempt = 0; attempt < 8; attempt += 1) {
|
|
80
|
+
try {
|
|
81
|
+
await renamePath(source, destination);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
if (!isRetriableRenameError(error) || attempt === 7)
|
|
86
|
+
throw error;
|
|
87
|
+
await wait(10 * 2 ** attempt);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function isRetriableRenameError(error) {
|
|
92
|
+
const code = errorCode(error);
|
|
93
|
+
return code === "EPERM" || code === "EACCES" || code === "EBUSY";
|
|
94
|
+
}
|
|
95
|
+
function delay(milliseconds) {
|
|
96
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
97
|
+
}
|
|
70
98
|
async function pathExists(path) {
|
|
71
99
|
try {
|
|
72
100
|
await access(path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-runtime-recovery.js","sourceRoot":"","sources":["../../src/app/run-runtime-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,
|
|
1
|
+
{"version":3,"file":"run-runtime-recovery.js","sourceRoot":"","sources":["../../src/app/run-runtime-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAElC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAiBlD,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe,EAAE,OAA2B;QACtD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,KAAgD,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AAK,CAAC;QAChD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAAC,KAAc;IAC/B,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK;QAC1D,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;QACpB,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
|
@@ -366,9 +366,9 @@ export declare const agentsOperationDefinitions: readonly [import("../protocol/o
|
|
|
366
366
|
toolName: z.ZodEnum<{
|
|
367
367
|
find: "find";
|
|
368
368
|
read: "read";
|
|
369
|
-
python: "python";
|
|
370
369
|
explore: "explore";
|
|
371
370
|
bash: "bash";
|
|
371
|
+
python_exec: "python_exec";
|
|
372
372
|
edit: "edit";
|
|
373
373
|
write: "write";
|
|
374
374
|
grep: "grep";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-runtime.events.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.events.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mCAAmC,
|
|
1
|
+
{"version":3,"file":"conversation-runtime.events.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.events.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mCAAmC,wEAQ/C,CAAC"}
|
|
@@ -2,9 +2,13 @@ import { definePublicEvent } from "../events/event-definition.schema.js";
|
|
|
2
2
|
import { conversationEventPayloadSchemas } from "./conversation.schema.js";
|
|
3
3
|
export const conversationRuntimeEventDefinitions = Object.entries(conversationEventPayloadSchemas).map(([name, payloadSchema]) => definePublicEvent(name, payloadSchema, {
|
|
4
4
|
delivery: "sequenced",
|
|
5
|
-
supersedable: name
|
|
5
|
+
supersedable: isBufferedConversationEvent(name),
|
|
6
6
|
scope: conversationEventScope(name),
|
|
7
7
|
}));
|
|
8
|
+
function isBufferedConversationEvent(name) {
|
|
9
|
+
return (name.startsWith("conversation.live.") ||
|
|
10
|
+
name === "conversation.context.updated");
|
|
11
|
+
}
|
|
8
12
|
function conversationEventScope(name) {
|
|
9
13
|
if (name === "conversation.live.turn.started") {
|
|
10
14
|
return ["projectId", "conversationId", "agentId", "runId", "turnId"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-runtime.events.schema.js","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,OAAO,CAC/D,+BAA+B,CAChC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,EAAE,CAC9B,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE;IACrC,QAAQ,EAAE,WAAW;IACrB,YAAY,
|
|
1
|
+
{"version":3,"file":"conversation-runtime.events.schema.js","sourceRoot":"","sources":["../../../src/domains/conversations/conversation-runtime.events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,OAAO,CAC/D,+BAA+B,CAChC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,EAAE,CAC9B,iBAAiB,CAAC,IAAI,EAAE,aAAa,EAAE;IACrC,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,2BAA2B,CAAC,IAAI,CAAC;IAC/C,KAAK,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACpC,CAAC,CACH,CAAC;AAEF,SAAS,2BAA2B,CAAC,IAAY;IAC/C,OAAO,CACL,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACrC,IAAI,KAAK,8BAA8B,CACxC,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAY;IAC1C,IAAI,IAAI,KAAK,gCAAgC,EAAE,CAAC;QAC9C,OAAO,CAAC,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;IACD,IACE,IAAI,KAAK,iCAAiC;QAC1C,IAAI,KAAK,oCAAoC,EAC7C,CAAC;QACD,OAAO;YACL,WAAW;YACX,gBAAgB;YAChB,SAAS;YACT,OAAO;YACP,QAAQ;YACR,eAAe;YACf,gBAAgB;YAChB,cAAc;YACd,MAAM;YACN,UAAU;YACV,oBAAoB;SACrB,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,KAAK,qCAAqC,EAAE,CAAC;QACnD,OAAO;YACL,WAAW;YACX,gBAAgB;YAChB,SAAS;YACT,OAAO;YACP,QAAQ;YACR,eAAe;YACf,YAAY;YACZ,cAAc;YACd,QAAQ;SACT,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -329,6 +329,26 @@ export declare const gitOperationDefinitions: readonly [import("../protocol/oper
|
|
|
329
329
|
}, z.core.$strip>>, import("../protocol/operation-definition.schema.js").OperationDefinition<"github.pr.list", z.ZodObject<{
|
|
330
330
|
projectId: z.ZodString;
|
|
331
331
|
repo: z.ZodDefault<z.ZodString>;
|
|
332
|
+
filters: z.ZodDefault<z.ZodObject<{
|
|
333
|
+
author: z.ZodDefault<z.ZodEnum<{
|
|
334
|
+
any: "any";
|
|
335
|
+
username: "username";
|
|
336
|
+
me: "me";
|
|
337
|
+
}>>;
|
|
338
|
+
username: z.ZodOptional<z.ZodString>;
|
|
339
|
+
drafts: z.ZodDefault<z.ZodEnum<{
|
|
340
|
+
include: "include";
|
|
341
|
+
exclude: "exclude";
|
|
342
|
+
only: "only";
|
|
343
|
+
}>>;
|
|
344
|
+
title: z.ZodDefault<z.ZodString>;
|
|
345
|
+
head: z.ZodOptional<z.ZodString>;
|
|
346
|
+
labels: z.ZodPipe<z.ZodDefault<z.ZodArray<z.ZodString>>, z.ZodTransform<string[], string[]>>;
|
|
347
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
348
|
+
"updated-desc": "updated-desc";
|
|
349
|
+
"updated-asc": "updated-asc";
|
|
350
|
+
}>>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
332
352
|
}, z.core.$strip>, z.ZodObject<{
|
|
333
353
|
prs: z.ZodArray<z.ZodObject<{
|
|
334
354
|
number: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.operations.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/git/git.operations.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"git.operations.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/git/git.operations.schema.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA0J1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createBranchRequestSchema, gitBranchListResponseSchema, gitDiscoveryResponseSchema, gitFileActionRequestSchema, gitMutationResponseSchema, gitOverviewResponseSchema, gitRemoteOpRequestSchema, githubPrCheckoutResponseSchema, githubPrDetailSchema, githubPrListResponseSchema, githubStatusResponseSchema, switchBranchRequestSchema, } from "./index.js";
|
|
1
|
+
import { createBranchRequestSchema, gitBranchListResponseSchema, gitDiscoveryResponseSchema, gitFileActionRequestSchema, gitMutationResponseSchema, gitOverviewResponseSchema, gitRemoteOpRequestSchema, githubPrCheckoutResponseSchema, githubPrDetailSchema, githubPrListRequestSchema, githubPrListResponseSchema, githubStatusResponseSchema, switchBranchRequestSchema, } from "./index.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { defineOperation } from "../protocol/operation-definition.schema.js";
|
|
4
4
|
const projectIdSchema = z.string().startsWith("proj_");
|
|
@@ -10,6 +10,7 @@ const gitCreateBranchParamsSchema = projectIdParamsSchema.merge(createBranchRequ
|
|
|
10
10
|
const gitSwitchBranchParamsSchema = projectIdParamsSchema.merge(switchBranchRequestSchema);
|
|
11
11
|
const gitFileActionParamsSchema = projectIdParamsSchema.merge(gitFileActionRequestSchema);
|
|
12
12
|
const gitRemoteOpParamsSchema = projectIdParamsSchema.merge(gitRemoteOpRequestSchema);
|
|
13
|
+
const githubPrListParamsSchema = projectIdParamsSchema.merge(githubPrListRequestSchema);
|
|
13
14
|
const githubPrParamsSchema = gitRepoParamsSchema.extend({
|
|
14
15
|
number: z.number().int().positive(),
|
|
15
16
|
});
|
|
@@ -28,7 +29,7 @@ export const gitOperationDefinitions = [
|
|
|
28
29
|
defineOperation("git.fetch", gitRemoteOpParamsSchema, gitMutationResponseSchema, "mutation", "recommended", ["workbench_server", "sandbox_agent"], "operation.git.fetch"),
|
|
29
30
|
defineOperation("git.switchBaseAndPull", gitRemoteOpParamsSchema, gitMutationResponseSchema, "mutation", "recommended", ["workbench_server", "sandbox_agent"], "operation.git.switchBaseAndPull"),
|
|
30
31
|
defineOperation("github.status.get", gitRepoParamsSchema, githubStatusResponseSchema, "read", "none", ["workbench_server", "sandbox_agent"], "operation.github.status.get"),
|
|
31
|
-
defineOperation("github.pr.list",
|
|
32
|
+
defineOperation("github.pr.list", githubPrListParamsSchema, githubPrListResponseSchema, "read", "none", ["workbench_server", "sandbox_agent"], "operation.github.pr.list"),
|
|
32
33
|
defineOperation("github.pr.get", githubPrParamsSchema, githubPrDetailSchema, "read", "none", ["workbench_server", "sandbox_agent"], "operation.github.pr.get"),
|
|
33
34
|
defineOperation("github.pr.checkout", githubPrParamsSchema, githubPrCheckoutResponseSchema, "mutation", "recommended", ["workbench_server", "sandbox_agent"], "operation.github.pr.checkout"),
|
|
34
35
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.operations.schema.js","sourceRoot":"","sources":["../../../src/domains/git/git.operations.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE7E,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACvD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC;AACvE,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACvD,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,EAC9C,6BAA6B,CAC9B;IACD,eAAe,CACb,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"git.operations.schema.js","sourceRoot":"","sources":["../../../src/domains/git/git.operations.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE7E,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACvD,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC;AACvE,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;CACrC,CAAC,CAAC;AACH,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,KAAK,CAC7D,yBAAyB,CAC1B,CAAC;AACF,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,KAAK,CAC7D,yBAAyB,CAC1B,CAAC;AACF,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,KAAK,CAC3D,0BAA0B,CAC3B,CAAC;AACF,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,KAAK,CACzD,wBAAwB,CACzB,CAAC;AACF,MAAM,wBAAwB,GAAG,qBAAqB,CAAC,KAAK,CAC1D,yBAAyB,CAC1B,CAAC;AACF,MAAM,oBAAoB,GAAG,mBAAmB,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