pulseed 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts +11 -1
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.js +256 -9
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
- package/dist/base/config/global-config.d.ts +7 -4
- package/dist/base/config/global-config.d.ts.map +1 -1
- package/dist/base/config/global-config.js +3 -1
- package/dist/base/config/global-config.js.map +1 -1
- package/dist/base/protocol/exact-protocol.d.ts +47 -0
- package/dist/base/protocol/exact-protocol.d.ts.map +1 -0
- package/dist/base/protocol/exact-protocol.js +175 -0
- package/dist/base/protocol/exact-protocol.js.map +1 -0
- package/dist/base/types/core.d.ts +1 -1
- package/dist/base/types/core.d.ts.map +1 -1
- package/dist/base/types/core.js +1 -0
- package/dist/base/types/core.js.map +1 -1
- package/dist/base/utils/paths.d.ts +5 -0
- package/dist/base/utils/paths.d.ts.map +1 -1
- package/dist/base/utils/paths.js +7 -0
- package/dist/base/utils/paths.js.map +1 -1
- package/dist/base/utils/workspace-path.d.ts +6 -0
- package/dist/base/utils/workspace-path.d.ts.map +1 -0
- package/dist/base/utils/workspace-path.js +24 -0
- package/dist/base/utils/workspace-path.js.map +1 -0
- package/dist/base/utils/workspace-root.d.ts +6 -0
- package/dist/base/utils/workspace-root.d.ts.map +1 -0
- package/dist/base/utils/workspace-root.js +87 -0
- package/dist/base/utils/workspace-root.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts +2 -0
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +22 -41
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +15 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +3816 -192
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +529 -5
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts +2 -0
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +83 -22
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +5 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +13 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +51 -3
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +5 -17
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +80 -51
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.js +4 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts +7 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +135 -49
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +3 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +12 -0
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts +15 -0
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +260 -42
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +15 -1
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/freeform-route-classifier.d.ts +4 -4
- package/dist/interface/chat/ingress-router.d.ts +3 -0
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +3 -0
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/model-request-builder.d.ts +37 -0
- package/dist/interface/chat/model-request-builder.d.ts.map +1 -0
- package/dist/interface/chat/model-request-builder.js +76 -0
- package/dist/interface/chat/model-request-builder.js.map +1 -0
- package/dist/interface/chat/turn-context.d.ts +200 -0
- package/dist/interface/chat/turn-context.d.ts.map +1 -0
- package/dist/interface/chat/turn-context.js +249 -0
- package/dist/interface/chat/turn-context.js.map +1 -0
- package/dist/interface/chat/turn-protocol.d.ts +35 -0
- package/dist/interface/chat/turn-protocol.d.ts.map +1 -0
- package/dist/interface/chat/turn-protocol.js +27 -0
- package/dist/interface/chat/turn-protocol.js.map +1 -0
- package/dist/interface/chat/user-input.d.ts +55 -0
- package/dist/interface/chat/user-input.d.ts.map +1 -0
- package/dist/interface/chat/user-input.js +52 -0
- package/dist/interface/chat/user-input.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +12 -16
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/cli-runner.js +0 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts +12 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +26 -4
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +66 -8
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts +1 -1
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +61 -29
- package/dist/interface/cli/commands/doctor.js.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.js +10 -6
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-utils.js +3 -5
- package/dist/interface/cli/commands/goal-utils.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +50 -0
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/setup.d.ts +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +4 -3
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts +1 -0
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +12 -3
- package/dist/interface/cli/utils/loop-runner.js.map +1 -1
- package/dist/interface/tui/app.d.ts +6 -1
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +29 -12
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/bash-mode.d.ts.map +1 -1
- package/dist/interface/tui/bash-mode.js +2 -9
- package/dist/interface/tui/bash-mode.js.map +1 -1
- package/dist/interface/tui/chat/viewport.d.ts.map +1 -1
- package/dist/interface/tui/chat/viewport.js +57 -11
- package/dist/interface/tui/chat/viewport.js.map +1 -1
- package/dist/interface/tui/entry-deps.d.ts +6 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +3 -0
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +6 -2
- package/dist/interface/tui/entry.js.map +1 -1
- package/dist/interface/tui/input-action.d.ts.map +1 -1
- package/dist/interface/tui/input-action.js +3 -2
- package/dist/interface/tui/input-action.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +21 -33
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts +10 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js +16 -31
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts +75 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js +10 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js +185 -22
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +18 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +8 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js +12 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +37 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js +21 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +19 -11
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +4 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +135 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +68 -61
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +19 -56
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +8 -2
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +14 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +440 -81
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +80 -12
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js +3 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.d.ts +3 -0
- package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.js +3 -0
- package/dist/orchestrator/execution/agent-loop/index.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js +51 -9
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts +20 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +181 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts +805 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js +104 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts +7 -2
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +33 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +32 -17
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +174 -16
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +10 -4
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts +0 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js +7 -87
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +25 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +5 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.js +7 -4
- package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +18 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js +199 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +15 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +271 -18
- package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js +76 -17
- package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts +16 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.js +56 -50
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts +62 -2
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +30 -13
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +2 -2
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +32 -4
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +3 -3
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +109 -10
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +9 -0
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +64 -3
- package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +3 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +28 -13
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +3 -2
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.js +377 -90
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +13 -0
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.d.ts +5 -4
- package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.js +396 -25
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.d.ts +5 -0
- package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.js +20 -10
- package/dist/orchestrator/execution/task/task-workspace.js.map +1 -1
- package/dist/orchestrator/execution/types/task-group.d.ts +85 -5
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +155 -3
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +18 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts +2 -0
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +12 -12
- package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js +7 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.js +2 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
- package/dist/platform/corrections/memory-correction-ledger.d.ts +30 -30
- package/dist/platform/corrections/memory-governance.d.ts +2 -2
- package/dist/platform/corrections/memory-quarantine.d.ts +2 -2
- package/dist/platform/dream/playbook-memory.d.ts +4 -4
- package/dist/platform/knowledge/types/agent-memory.d.ts +46 -46
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
- package/dist/platform/observation/context-provider/collector.js +89 -24
- package/dist/platform/observation/context-provider/collector.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.d.ts +2 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +8 -2
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/observation/observation-engine.d.ts.map +1 -1
- package/dist/platform/observation/observation-engine.js +118 -70
- package/dist/platform/observation/observation-engine.js.map +1 -1
- package/dist/platform/observation/observation-helpers.d.ts +2 -0
- package/dist/platform/observation/observation-helpers.d.ts.map +1 -1
- package/dist/platform/observation/observation-helpers.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +48 -0
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +4 -0
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/observation/workspace-context.d.ts.map +1 -1
- package/dist/platform/observation/workspace-context.js +13 -18
- package/dist/platform/observation/workspace-context.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +58 -58
- package/dist/prompt/purposes/verification.d.ts +2 -2
- package/dist/reporting/report-formatters.d.ts.map +1 -1
- package/dist/reporting/report-formatters.js +26 -1
- package/dist/reporting/report-formatters.js.map +1 -1
- package/dist/reporting/reporting-engine.d.ts.map +1 -1
- package/dist/reporting/reporting-engine.js +1 -0
- package/dist/reporting/reporting-engine.js.map +1 -1
- package/dist/reporting/reporting-types.d.ts +7 -0
- package/dist/reporting/reporting-types.d.ts.map +1 -1
- package/dist/reporting/types/report.d.ts +12 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/reporting/types/report.js +1 -0
- package/dist/reporting/types/report.js.map +1 -1
- package/dist/runtime/approval-broker.d.ts +12 -0
- package/dist/runtime/approval-broker.d.ts.map +1 -1
- package/dist/runtime/approval-broker.js +27 -7
- package/dist/runtime/approval-broker.js.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +9 -4
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +3 -2
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +27 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +181 -2
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.js +2 -0
- package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts +22 -0
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js +95 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -0
- package/dist/runtime/daemon/client.d.ts +1 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.js +1 -2
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-recovery.d.ts +17 -3
- package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-recovery.js +50 -12
- package/dist/runtime/daemon/runner-recovery.js.map +1 -1
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +18 -1
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +13 -3
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +7 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +171 -25
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +2 -0
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts +3 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +68 -2
- package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
- package/dist/runtime/event/server-types.d.ts +2 -0
- package/dist/runtime/event/server-types.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.js +34 -7
- package/dist/runtime/evidence-answer.js.map +1 -1
- package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
- package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-display-policy.d.ts +42 -0
- package/dist/runtime/gateway/channel-display-policy.d.ts.map +1 -0
- package/dist/runtime/gateway/channel-display-policy.js +85 -0
- package/dist/runtime/gateway/channel-display-policy.js.map +1 -0
- package/dist/runtime/gateway/chat-event-rendering.d.ts +2 -1
- package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-event-rendering.js +2 -0
- package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.js +4 -9
- package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
- package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
- package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-port.js.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts +4 -0
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.js +100 -31
- package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/index.d.ts +4 -0
- package/dist/runtime/gateway/index.d.ts.map +1 -1
- package/dist/runtime/gateway/index.js +2 -0
- package/dist/runtime/gateway/index.js.map +1 -1
- package/dist/runtime/gateway/non-tui-display-projector.d.ts +40 -0
- package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -0
- package/dist/runtime/gateway/non-tui-display-projector.js +166 -0
- package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.js +47 -4
- package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
- package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.js +93 -18
- package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +2 -0
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +61 -113
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js +49 -4
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts +26 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js +75 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js.map +1 -0
- package/dist/runtime/interactive-automation/index.d.ts +2 -0
- package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/index.js +2 -0
- package/dist/runtime/interactive-automation/index.js.map +1 -1
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts +35 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +125 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -0
- package/dist/runtime/permission-dialogue.d.ts +113 -0
- package/dist/runtime/permission-dialogue.d.ts.map +1 -0
- package/dist/runtime/permission-dialogue.js +82 -0
- package/dist/runtime/permission-dialogue.js.map +1 -0
- package/dist/runtime/run-spec/derive.d.ts +14 -14
- package/dist/runtime/run-spec/handoff.d.ts.map +1 -1
- package/dist/runtime/run-spec/handoff.js +33 -0
- package/dist/runtime/run-spec/handoff.js.map +1 -1
- package/dist/runtime/run-spec/types.d.ts +16 -16
- package/dist/runtime/session-registry/types.d.ts +12 -12
- package/dist/runtime/store/artifact-retention.d.ts +2 -0
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
- package/dist/runtime/store/artifact-retention.js +24 -21
- package/dist/runtime/store/artifact-retention.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +8 -8
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +39 -1
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/evidence-types.d.ts +204 -204
- package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
- package/dist/runtime/store/index.d.ts +2 -2
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +1 -1
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/operator-handoff-store.d.ts +3 -3
- package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
- package/dist/runtime/store/runtime-operation-schemas.d.ts +95 -62
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +9 -0
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-paths.d.ts +2 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +6 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +2256 -46
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +85 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/types/companion.d.ts +52 -52
- package/dist/runtime/types/daemon.d.ts +31 -31
- package/dist/tools/automation/InteractiveAutomationTools.d.ts +22 -2
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +75 -10
- package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +2 -1
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +6 -2
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +20 -20
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +6 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +2 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
- package/dist/tools/execution-orchestrator.d.ts +29 -0
- package/dist/tools/execution-orchestrator.d.ts.map +1 -0
- package/dist/tools/execution-orchestrator.js +153 -0
- package/dist/tools/execution-orchestrator.js.map +1 -0
- package/dist/tools/executor.d.ts +6 -0
- package/dist/tools/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +48 -11
- package/dist/tools/executor.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +130 -17
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.js +4 -3
- package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.js +6 -5
- package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +6 -5
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
- package/dist/tools/kaggle/paths.d.ts.map +1 -1
- package/dist/tools/kaggle/paths.js +12 -8
- package/dist/tools/kaggle/paths.js.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +8 -0
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +8 -8
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +49 -7
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js.map +1 -1
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +4 -4
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
- package/dist/tools/permission.d.ts +0 -1
- package/dist/tools/permission.d.ts.map +1 -1
- package/dist/tools/permission.js +9 -33
- package/dist/tools/permission.js.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +8 -8
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +4 -4
- package/dist/tools/query/runtime-session-tools.d.ts +73 -5
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
- package/dist/tools/query/runtime-session-tools.js +114 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +72 -54
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js +4 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.js +162 -2
- package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.js +169 -17
- package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
- package/dist/tools/system/EnvTool/EnvTool.d.ts +4 -4
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +4 -4
- package/dist/tools/system/GitLogTool/GitLogTool.d.ts +4 -4
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +8 -2
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +29 -11
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +12 -8
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +412 -98
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/prompt.js +1 -1
- package/dist/tools/system/ShellTool/prompt.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +152 -8
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
- package/dist/tools/types.d.ts +36 -12
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +26 -3
- package/dist/tools/types.js.map +1 -1
- package/dist/tools/workspace-scope.d.ts +11 -0
- package/dist/tools/workspace-scope.d.ts.map +1 -0
- package/dist/tools/workspace-scope.js +77 -0
- package/dist/tools/workspace-scope.js.map +1 -0
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
declare const GlobalConfigSchema: z.ZodObject<{
|
|
3
3
|
daemon_mode: z.ZodDefault<z.ZodBoolean>;
|
|
4
4
|
no_flicker: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
workspace_root: z.ZodDefault<z.ZodString>;
|
|
5
6
|
interactive_automation: z.ZodDefault<z.ZodObject<{
|
|
6
7
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
default_desktop_provider: z.ZodDefault<z.ZodString>;
|
|
@@ -15,7 +16,7 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
15
16
|
default_desktop_provider: string;
|
|
16
17
|
default_browser_provider: string;
|
|
17
18
|
default_research_provider: string;
|
|
18
|
-
require_approval: "
|
|
19
|
+
require_approval: "destructive" | "always" | "write";
|
|
19
20
|
allowed_apps: string[];
|
|
20
21
|
denied_apps: string[];
|
|
21
22
|
}, {
|
|
@@ -23,31 +24,33 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
23
24
|
default_desktop_provider?: string | undefined;
|
|
24
25
|
default_browser_provider?: string | undefined;
|
|
25
26
|
default_research_provider?: string | undefined;
|
|
26
|
-
require_approval?: "
|
|
27
|
+
require_approval?: "destructive" | "always" | "write" | undefined;
|
|
27
28
|
allowed_apps?: string[] | undefined;
|
|
28
29
|
denied_apps?: string[] | undefined;
|
|
29
30
|
}>>;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
daemon_mode: boolean;
|
|
32
33
|
no_flicker: boolean;
|
|
34
|
+
workspace_root: string;
|
|
33
35
|
interactive_automation: {
|
|
34
36
|
enabled: boolean;
|
|
35
37
|
default_desktop_provider: string;
|
|
36
38
|
default_browser_provider: string;
|
|
37
39
|
default_research_provider: string;
|
|
38
|
-
require_approval: "
|
|
40
|
+
require_approval: "destructive" | "always" | "write";
|
|
39
41
|
allowed_apps: string[];
|
|
40
42
|
denied_apps: string[];
|
|
41
43
|
};
|
|
42
44
|
}, {
|
|
43
45
|
daemon_mode?: boolean | undefined;
|
|
44
46
|
no_flicker?: boolean | undefined;
|
|
47
|
+
workspace_root?: string | undefined;
|
|
45
48
|
interactive_automation?: {
|
|
46
49
|
enabled?: boolean | undefined;
|
|
47
50
|
default_desktop_provider?: string | undefined;
|
|
48
51
|
default_browser_provider?: string | undefined;
|
|
49
52
|
default_research_provider?: string | undefined;
|
|
50
|
-
require_approval?: "
|
|
53
|
+
require_approval?: "destructive" | "always" | "write" | undefined;
|
|
51
54
|
allowed_apps?: string[] | undefined;
|
|
52
55
|
denied_apps?: string[] | undefined;
|
|
53
56
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-config.d.ts","sourceRoot":"","sources":["../../../src/base/config/global-config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"global-config.d.ts","sourceRoot":"","sources":["../../../src/base/config/global-config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,QAAA,MAAM,cAAc,EAAE,YAiBrB,CAAC;AAMF,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,YAAY,CAAC,CAQ9D;AAED,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD;AAED,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAI1E;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAK9F;AAED,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAED,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -5,10 +5,11 @@ import fs from "node:fs/promises";
|
|
|
5
5
|
import * as fsSync from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { z } from "zod";
|
|
8
|
-
import { getPulseedDirPath } from "../utils/paths.js";
|
|
8
|
+
import { getDefaultPulseedWorkspaceRootPath, getPulseedDirPath } from "../utils/paths.js";
|
|
9
9
|
const GlobalConfigSchema = z.object({
|
|
10
10
|
daemon_mode: z.boolean().default(false),
|
|
11
11
|
no_flicker: z.boolean().default(true),
|
|
12
|
+
workspace_root: z.string().min(1).default(getDefaultPulseedWorkspaceRootPath()),
|
|
12
13
|
interactive_automation: z.object({
|
|
13
14
|
enabled: z.boolean().default(false),
|
|
14
15
|
default_desktop_provider: z.string().default("codex_app"),
|
|
@@ -26,6 +27,7 @@ const GlobalConfigSchema = z.object({
|
|
|
26
27
|
const DEFAULT_CONFIG = {
|
|
27
28
|
daemon_mode: false,
|
|
28
29
|
no_flicker: true,
|
|
30
|
+
workspace_root: getDefaultPulseedWorkspaceRootPath(),
|
|
29
31
|
interactive_automation: {
|
|
30
32
|
enabled: false,
|
|
31
33
|
default_desktop_provider: "codex_app",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-config.js","sourceRoot":"","sources":["../../../src/base/config/global-config.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,EAAE;AACF,mFAAmF;AAEnF,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"global-config.js","sourceRoot":"","sources":["../../../src/base/config/global-config.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,EAAE;AACF,mFAAmF;AAEnF,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,kCAAkC,EAAE,CAAC;IAC/E,sBAAsB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC/B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KA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AAE,CAAC,CAAC;IACrE,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACrC,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const EXACT_PROTOCOL_SURFACES: readonly ["slash_command", "cli_flag", "id", "path", "url", "enum_schema", "feature_flag", "wire_token", "mention"];
|
|
2
|
+
export type ExactProtocolSurface = typeof EXACT_PROTOCOL_SURFACES[number];
|
|
3
|
+
export interface ExactProtocolSurfaceDefinition {
|
|
4
|
+
surface: ExactProtocolSurface;
|
|
5
|
+
allowed: string;
|
|
6
|
+
boundary: string;
|
|
7
|
+
examples: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const EXACT_PROTOCOL_SURFACE_DEFINITIONS: readonly ExactProtocolSurfaceDefinition[];
|
|
10
|
+
export interface ExactSlashCommandDefinition<TCommand extends string = string> {
|
|
11
|
+
command: TCommand;
|
|
12
|
+
aliases?: readonly string[];
|
|
13
|
+
allowArguments?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ExactSlashCommandOptions<TCommand extends string = string> {
|
|
16
|
+
bareSymbolCommands?: Readonly<Record<string, TCommand>>;
|
|
17
|
+
}
|
|
18
|
+
export interface ParsedExactSlashCommand<TCommand extends string = string> {
|
|
19
|
+
surface: "slash_command";
|
|
20
|
+
rawInput: string;
|
|
21
|
+
normalizedInput: string;
|
|
22
|
+
command: TCommand;
|
|
23
|
+
alias: string;
|
|
24
|
+
rawArgs: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ParsedExactSlashCommandToken {
|
|
27
|
+
surface: "slash_command";
|
|
28
|
+
rawInput: string;
|
|
29
|
+
command: string;
|
|
30
|
+
rawArgs: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const EXACT_MENTION_KINDS: readonly ["session", "run", "goal", "task", "file", "url", "tool", "skill", "plugin"];
|
|
33
|
+
export type ExactMentionKind = typeof EXACT_MENTION_KINDS[number];
|
|
34
|
+
export interface ParsedExactMentionToken {
|
|
35
|
+
surface: "mention";
|
|
36
|
+
rawInput: string;
|
|
37
|
+
kind: ExactMentionKind;
|
|
38
|
+
id: string;
|
|
39
|
+
target: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function normalizeExactProtocolText(input: string): string;
|
|
42
|
+
export declare function isExactProtocolSurface(value: string): value is ExactProtocolSurface;
|
|
43
|
+
export declare function parseExactSlashCommandToken(input: string): ParsedExactSlashCommandToken | null;
|
|
44
|
+
export declare function isExactSlashCommandInput(input: string): boolean;
|
|
45
|
+
export declare function parseExactSlashCommand<TCommand extends string>(input: string, definitions: readonly ExactSlashCommandDefinition<TCommand>[], options?: ExactSlashCommandOptions<TCommand>): ParsedExactSlashCommand<TCommand> | null;
|
|
46
|
+
export declare function parseExactMentionToken(input: string): ParsedExactMentionToken | null;
|
|
47
|
+
//# sourceMappingURL=exact-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exact-protocol.d.ts","sourceRoot":"","sources":["../../../src/base/protocol/exact-protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qHAU1B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,oBAAoB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,kCAAkC,EAAE,SAAS,8BAA8B,EAuD9E,CAAC;AAEX,MAAM,WAAW,2BAA2B,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IAC3E,OAA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AAE,MAAM,GAAG,OAAO,CAE/D;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,SAAS,MAAM,EAC5D,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,SAAS,2BAA2B,CAAC,QAAQ,CAAC,EAAE,EAC7D,OAAO,GAAE,wBAAwB,CAAC,QAAQ,CAAM,GAC/C,uBAAuB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAgD1C;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,uBAAuB,GAAG,IAAI,CAmBpF"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export const EXACT_PROTOCOL_SURFACES = [
|
|
2
|
+
"slash_command",
|
|
3
|
+
"cli_flag",
|
|
4
|
+
"id",
|
|
5
|
+
"path",
|
|
6
|
+
"url",
|
|
7
|
+
"enum_schema",
|
|
8
|
+
"feature_flag",
|
|
9
|
+
"wire_token",
|
|
10
|
+
"mention",
|
|
11
|
+
];
|
|
12
|
+
export const EXACT_PROTOCOL_SURFACE_DEFINITIONS = [
|
|
13
|
+
{
|
|
14
|
+
surface: "slash_command",
|
|
15
|
+
allowed: "Leading slash or exact symbol commands with command-owned arguments.",
|
|
16
|
+
boundary: "Do not treat bare words or sentences that mention command words as commands.",
|
|
17
|
+
examples: ["/help", "/status goal-123", "?"],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
surface: "cli_flag",
|
|
21
|
+
allowed: "CLI flags and their command-owned values.",
|
|
22
|
+
boundary: "Flags are parsed only inside an already selected CLI or command grammar.",
|
|
23
|
+
examples: ["--json", "--goal goal-123", "-y"],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
surface: "id",
|
|
27
|
+
allowed: "Exact ids for goals, tasks, sessions, runs, approvals, and persisted records.",
|
|
28
|
+
boundary: "Ids select typed fields; they do not infer a freeform user intent by themselves.",
|
|
29
|
+
examples: ["goal-123", "session:conversation:abc", "approval-123"],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
surface: "path",
|
|
33
|
+
allowed: "Filesystem paths validated by the owning operation.",
|
|
34
|
+
boundary: "Paths validate operation fields; they are not a fallback semantic router for ordinary text.",
|
|
35
|
+
examples: ["./src/index.ts", "/tmp/report.md", "~/workspace"],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
surface: "url",
|
|
39
|
+
allowed: "URLs parsed by URL-aware callers.",
|
|
40
|
+
boundary: "URLs can be extracted as exact references, not as intent keywords.",
|
|
41
|
+
examples: ["https://example.com", "file:///tmp/report.md"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
surface: "enum_schema",
|
|
45
|
+
allowed: "Enum values and schema literals accepted by typed APIs.",
|
|
46
|
+
boundary: "Schema validation must fail closed instead of guessing from prose.",
|
|
47
|
+
examples: ["approve", "reject", "read_only"],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
surface: "feature_flag",
|
|
51
|
+
allowed: "Named feature switches and boolean-like config values at config boundaries.",
|
|
52
|
+
boundary: "Feature flags are exact config fields, not natural-language routing rules.",
|
|
53
|
+
examples: ["agentloop-worktree=on", "PULSEED_DEV_MODE=1"],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
surface: "wire_token",
|
|
57
|
+
allowed: "Protocol tokens from external transports and internal event streams.",
|
|
58
|
+
boundary: "Wire tokens are interpreted only within their protocol envelope.",
|
|
59
|
+
examples: ["event: notification_report", "tool_call", "app_mention"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
surface: "mention",
|
|
63
|
+
allowed: "Exact structured mention tokens that name a target namespace and id.",
|
|
64
|
+
boundary: "Do not select targets by fuzzy labels, titles, or prose references.",
|
|
65
|
+
examples: ["@run:run-123", "@session:conversation:abc", "@goal:goal-123"],
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
export const EXACT_MENTION_KINDS = [
|
|
69
|
+
"session",
|
|
70
|
+
"run",
|
|
71
|
+
"goal",
|
|
72
|
+
"task",
|
|
73
|
+
"file",
|
|
74
|
+
"url",
|
|
75
|
+
"tool",
|
|
76
|
+
"skill",
|
|
77
|
+
"plugin",
|
|
78
|
+
];
|
|
79
|
+
const WHITESPACE_PATTERN = /\s+/g;
|
|
80
|
+
const HAS_WHITESPACE_PATTERN = /\s/;
|
|
81
|
+
const MENTION_KIND_PATTERN = /^[a-z][a-z0-9_-]{0,31}$/;
|
|
82
|
+
const MENTION_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$/;
|
|
83
|
+
const mentionKinds = new Set(EXACT_MENTION_KINDS);
|
|
84
|
+
export function normalizeExactProtocolText(input) {
|
|
85
|
+
return input.trim().toLowerCase().replace(WHITESPACE_PATTERN, " ");
|
|
86
|
+
}
|
|
87
|
+
export function isExactProtocolSurface(value) {
|
|
88
|
+
return EXACT_PROTOCOL_SURFACES.includes(value);
|
|
89
|
+
}
|
|
90
|
+
export function parseExactSlashCommandToken(input) {
|
|
91
|
+
const trimmed = input.trim();
|
|
92
|
+
if (!trimmed.startsWith("/") || trimmed === "/")
|
|
93
|
+
return null;
|
|
94
|
+
const [rawCommand = "", ...argTokens] = trimmed.split(WHITESPACE_PATTERN);
|
|
95
|
+
const command = rawCommand.toLowerCase();
|
|
96
|
+
if (!command || command === "/")
|
|
97
|
+
return null;
|
|
98
|
+
return {
|
|
99
|
+
surface: "slash_command",
|
|
100
|
+
rawInput: input,
|
|
101
|
+
command,
|
|
102
|
+
rawArgs: argTokens.join(" "),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export function isExactSlashCommandInput(input) {
|
|
106
|
+
return parseExactSlashCommandToken(input) !== null;
|
|
107
|
+
}
|
|
108
|
+
export function parseExactSlashCommand(input, definitions, options = {}) {
|
|
109
|
+
const trimmed = input.trim();
|
|
110
|
+
const normalizedInput = normalizeExactProtocolText(input);
|
|
111
|
+
if (!normalizedInput)
|
|
112
|
+
return null;
|
|
113
|
+
const bareCommand = options.bareSymbolCommands?.[normalizedInput];
|
|
114
|
+
if (bareCommand) {
|
|
115
|
+
return {
|
|
116
|
+
surface: "slash_command",
|
|
117
|
+
rawInput: input,
|
|
118
|
+
normalizedInput,
|
|
119
|
+
command: bareCommand,
|
|
120
|
+
alias: normalizedInput,
|
|
121
|
+
rawArgs: "",
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
if (!normalizedInput.startsWith("/"))
|
|
125
|
+
return null;
|
|
126
|
+
const normalizedTokens = normalizedInput.split(" ");
|
|
127
|
+
const rawTokens = trimmed.split(WHITESPACE_PATTERN);
|
|
128
|
+
const candidates = definitions.flatMap((definition) => {
|
|
129
|
+
const aliases = [definition.command, ...(definition.aliases ?? [])];
|
|
130
|
+
return aliases.map((alias) => ({
|
|
131
|
+
definition,
|
|
132
|
+
alias: normalizeExactProtocolText(alias),
|
|
133
|
+
}));
|
|
134
|
+
}).sort((a, b) => b.alias.split(" ").length - a.alias.split(" ").length);
|
|
135
|
+
for (const candidate of candidates) {
|
|
136
|
+
const aliasTokens = candidate.alias.split(" ");
|
|
137
|
+
const aliasMatches = aliasTokens.every((token, index) => normalizedTokens[index] === token);
|
|
138
|
+
if (!aliasMatches)
|
|
139
|
+
continue;
|
|
140
|
+
const hasExtraArgs = normalizedTokens.length > aliasTokens.length;
|
|
141
|
+
if (hasExtraArgs && !candidate.definition.allowArguments)
|
|
142
|
+
continue;
|
|
143
|
+
return {
|
|
144
|
+
surface: "slash_command",
|
|
145
|
+
rawInput: input,
|
|
146
|
+
normalizedInput,
|
|
147
|
+
command: candidate.definition.command,
|
|
148
|
+
alias: candidate.alias,
|
|
149
|
+
rawArgs: rawTokens.slice(aliasTokens.length).join(" ").trim(),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
export function parseExactMentionToken(input) {
|
|
155
|
+
const trimmed = input.trim();
|
|
156
|
+
if (!trimmed.startsWith("@") || trimmed.length <= 1 || HAS_WHITESPACE_PATTERN.test(trimmed))
|
|
157
|
+
return null;
|
|
158
|
+
const separatorIndex = trimmed.indexOf(":");
|
|
159
|
+
if (separatorIndex <= 1 || separatorIndex === trimmed.length - 1)
|
|
160
|
+
return null;
|
|
161
|
+
const kind = trimmed.slice(1, separatorIndex).toLowerCase();
|
|
162
|
+
const id = trimmed.slice(separatorIndex + 1);
|
|
163
|
+
if (!MENTION_KIND_PATTERN.test(kind) || !mentionKinds.has(kind))
|
|
164
|
+
return null;
|
|
165
|
+
if (!MENTION_ID_PATTERN.test(id))
|
|
166
|
+
return null;
|
|
167
|
+
return {
|
|
168
|
+
surface: "mention",
|
|
169
|
+
rawInput: input,
|
|
170
|
+
kind: kind,
|
|
171
|
+
id,
|
|
172
|
+
target: `${kind}:${id}`,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=exact-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exact-protocol.js","sourceRoot":"","sources":["../../../src/base/protocol/exact-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,eAAe;IACf,UAAU;IACV,IAAI;IACJ,MAAM;IACN,KAAK;IACL,aAAa;IACb,cAAc;IACd,YAAY;IACZ,SAAS;CACD,CAAC;AAWX,MAAM,CAAC,MAAM,kCAAkC,GAA8C;IAC3F;QACE,OAAO,EAAE,eAAe;QACxB,OAAO,EAAE,sEAAsE;QAC/E,QAAQ,EAAE,8EAA8E;QACxF,QAAQ,EAAE,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,2CAA2C;QACpD,QAAQ,EAAE,0EAA0E;QACpF,QAAQ,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,CAAC;KAC9C;IACD;QACE,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,+EAA+E;QACxF,QAAQ,EAAE,kFAAkF;QAC5F,QAAQ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AAc,GAAG,CAAC,CAAC,CAAC;IAC7C,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7E,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC;IAE9C,OAAO;QACL,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,IAAwB;QAC9B,EAAE;QACF,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,EAAE;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -143,7 +143,7 @@ export declare const ReversibilityEnum: z.ZodEnum<["reversible", "irreversible",
|
|
|
143
143
|
export type Reversibility = z.infer<typeof ReversibilityEnum>;
|
|
144
144
|
export declare const VerdictEnum: z.ZodEnum<["pass", "partial", "fail"]>;
|
|
145
145
|
export type Verdict = z.infer<typeof VerdictEnum>;
|
|
146
|
-
export declare const TaskStatusEnum: z.ZodEnum<["pending", "running", "completed", "timed_out", "cancelled", "error"]>;
|
|
146
|
+
export declare const TaskStatusEnum: z.ZodEnum<["pending", "running", "completed", "timed_out", "cancelled", "blocked", "error"]>;
|
|
147
147
|
export type TaskStatus = z.infer<typeof TaskStatusEnum>;
|
|
148
148
|
export declare const StallTypeEnum: z.ZodEnum<["dimension_stall", "time_exceeded", "consecutive_failure", "global_stall", "predicted_plateau", "predicted_regression"]>;
|
|
149
149
|
export type StallType = z.infer<typeof StallTypeEnum>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/base/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB,wDAM5B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,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sB;AAEtB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAG9D,2BAA2B;AAE3B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,cAAc;IACd,mBAAmB;IACnB,SAAS;IACT,UAAU;IACV,qBAAqB;CACtB,CAAC,CAAC;AAGH,uBAAuB;AAEvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,eAAe;IACf,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,mBAAmB;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Defaults to ~/.pulseed; can be overridden via PULSEED_HOME env var.
|
|
4
4
|
*/
|
|
5
5
|
export declare function getPulseedDirPath(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the default PulSeed-managed mutable workspace root.
|
|
8
|
+
* PULSEED_WORKSPACE_ROOT overrides the default ~/PulSeedWorkspaces location.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getDefaultPulseedWorkspaceRootPath(): string;
|
|
6
11
|
export declare function getGoalsDir(base?: string): string;
|
|
7
12
|
export declare function getEventsDir(base?: string): string;
|
|
8
13
|
export declare function getArchiveDir(base?: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/base/utils/paths.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM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AAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED,wBAAgB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
package/dist/base/utils/paths.js
CHANGED
|
@@ -11,6 +11,13 @@ import * as path from "node:path";
|
|
|
11
11
|
export function getPulseedDirPath() {
|
|
12
12
|
return process.env["PULSEED_HOME"] ?? path.join(os.homedir(), ".pulseed");
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns the default PulSeed-managed mutable workspace root.
|
|
16
|
+
* PULSEED_WORKSPACE_ROOT overrides the default ~/PulSeedWorkspaces location.
|
|
17
|
+
*/
|
|
18
|
+
export function getDefaultPulseedWorkspaceRootPath() {
|
|
19
|
+
return process.env["PULSEED_WORKSPACE_ROOT"] ?? path.join(os.homedir(), "PulSeedWorkspaces");
|
|
20
|
+
}
|
|
14
21
|
export function getGoalsDir(base) {
|
|
15
22
|
return path.join(base ??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I,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,WAAmB,EAAE,IAAa;IACrE,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAa;IACxC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAa;IACtC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,EAAE,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAa;IAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,EAAE,EAAE,aAAa,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAa;IAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,EAAE,EAAE,UAAU,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAa;IACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,iBAAiB,EAAE,EAAE,SAAS,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const WORKSPACE_PATH_CONSTRAINT_PREFIX = "workspace_path:";
|
|
2
|
+
export declare function resolveWorkspacePath(workspacePath: string, cwd?: string): string;
|
|
3
|
+
export declare function formatWorkspacePathConstraint(workspacePath: string): string;
|
|
4
|
+
export declare function extractWorkspacePathConstraint(constraints: readonly string[] | undefined): string | null;
|
|
5
|
+
export declare function upsertWorkspacePathConstraint(constraints: string[], workspacePath: string): void;
|
|
6
|
+
//# sourceMappingURL=workspace-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-path.d.ts","sourceRoot":"","sources":["../../../src/base/utils/workspace-path.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAElE,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,SAAgB,GAAG,MAAM,CAEvF;AAED,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAIxG;AAED,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAQhG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
export const WORKSPACE_PATH_CONSTRAINT_PREFIX = "workspace_path:";
|
|
3
|
+
export function resolveWorkspacePath(workspacePath, cwd = process.cwd()) {
|
|
4
|
+
return path.resolve(cwd, workspacePath);
|
|
5
|
+
}
|
|
6
|
+
export function formatWorkspacePathConstraint(workspacePath) {
|
|
7
|
+
return `${WORKSPACE_PATH_CONSTRAINT_PREFIX}${workspacePath}`;
|
|
8
|
+
}
|
|
9
|
+
export function extractWorkspacePathConstraint(constraints) {
|
|
10
|
+
const constraint = constraints?.find((value) => value.startsWith(WORKSPACE_PATH_CONSTRAINT_PREFIX));
|
|
11
|
+
const workspacePath = constraint?.slice(WORKSPACE_PATH_CONSTRAINT_PREFIX.length).trim();
|
|
12
|
+
return workspacePath && workspacePath.length > 0 ? workspacePath : null;
|
|
13
|
+
}
|
|
14
|
+
export function upsertWorkspacePathConstraint(constraints, workspacePath) {
|
|
15
|
+
const constraint = formatWorkspacePathConstraint(workspacePath);
|
|
16
|
+
const existingIdx = constraints.findIndex((value) => value.startsWith(WORKSPACE_PATH_CONSTRAINT_PREFIX));
|
|
17
|
+
if (existingIdx >= 0) {
|
|
18
|
+
constraints[existingIdx] = constraint;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
constraints.push(constraint);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=workspace-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-path.js","sourceRoot":"","sources":["../../../src/base/utils/workspace-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;AAElE,MAAM,UAAU,oBAAoB,CAAC,aAAqB,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;IAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,aAAqB;IACjE,OAAO,GAAG,gCAAgC,GAAG,aAAa,EAAE,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,WAA0C;IACvF,MAAM,UAAU,GAAG,WAAW,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CAAC;IACpG,MAAM,aAAa,GAAG,UAAU,EAAE,KAAK,CAAC,gCAAgC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACxF,OAAO,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,WAAqB,EAAE,aAAqB;IACxF,MAAM,UAAU,GAAG,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAChE,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CAAC;IACzG,IAAI,WAAW,IAAI,CAAC,EAAE,CAAC;QACrB,WAAW,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC;IACxC,CAAC;SAAM,CAAC;QACN,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function getPulseedWorkspaceRootPath(): string;
|
|
2
|
+
export declare function workspaceRootRelativePath(absolutePath: string): string;
|
|
3
|
+
export declare function assertOutsidePulSeedStateRoot(candidate: string, label: string): void;
|
|
4
|
+
export declare function ensureDirectoryWithinWorkspaceRoot(dirPath: string): Promise<void>;
|
|
5
|
+
export declare function isPathInsidePulSeedStateRoot(candidate: string): boolean;
|
|
6
|
+
//# sourceMappingURL=workspace-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-root.d.ts","sourceRoot":"","sources":["../../../src/base/utils/workspace-root.ts"],"names":[],"mappings":"AAMA,wBAAgB,2BAA2B,IAAI,MAAM,CAMpD;AAED,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAOtE;AAED,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAOpF;AAED,wBAAsB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BvF;AAmBD,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKvE"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { loadGlobalConfigSync } from "../config/global-config.js";
|
|
5
|
+
import { getDefaultPulseedWorkspaceRootPath, getPulseedDirPath } from "./paths.js";
|
|
6
|
+
export function getPulseedWorkspaceRootPath() {
|
|
7
|
+
if (process.env["PULSEED_WORKSPACE_ROOT"]) {
|
|
8
|
+
return path.resolve(process.env["PULSEED_WORKSPACE_ROOT"]);
|
|
9
|
+
}
|
|
10
|
+
const configured = loadGlobalConfigSync().workspace_root;
|
|
11
|
+
return path.resolve(configured || getDefaultPulseedWorkspaceRootPath());
|
|
12
|
+
}
|
|
13
|
+
export function workspaceRootRelativePath(absolutePath) {
|
|
14
|
+
const root = path.resolve(getPulseedWorkspaceRootPath());
|
|
15
|
+
const relativePath = path.relative(root, path.resolve(absolutePath));
|
|
16
|
+
if (relativePath === "" || relativePath.startsWith("..") || path.isAbsolute(relativePath)) {
|
|
17
|
+
throw new Error("path must stay within the PulSeed workspace root");
|
|
18
|
+
}
|
|
19
|
+
return relativePath.split(path.sep).join("/");
|
|
20
|
+
}
|
|
21
|
+
export function assertOutsidePulSeedStateRoot(candidate, label) {
|
|
22
|
+
const stateRoot = path.resolve(getPulseedDirPath());
|
|
23
|
+
const resolved = path.resolve(candidate);
|
|
24
|
+
const relativePath = path.relative(stateRoot, resolved);
|
|
25
|
+
if (resolved === stateRoot || (!relativePath.startsWith("..") && !path.isAbsolute(relativePath))) {
|
|
26
|
+
throw new Error(`${label} must be outside the protected PulSeed state root`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export async function ensureDirectoryWithinWorkspaceRoot(dirPath) {
|
|
30
|
+
const workspaceRoot = path.resolve(getPulseedWorkspaceRootPath());
|
|
31
|
+
assertOutsidePulSeedStateRoot(workspaceRoot, "workspace_root");
|
|
32
|
+
await fs.mkdir(workspaceRoot, { recursive: true });
|
|
33
|
+
const realWorkspaceRoot = await fs.realpath(workspaceRoot);
|
|
34
|
+
assertWithin(workspaceRoot, dirPath, "directory");
|
|
35
|
+
const relativeParts = path.relative(workspaceRoot, path.resolve(dirPath)).split(path.sep).filter(Boolean);
|
|
36
|
+
let current = workspaceRoot;
|
|
37
|
+
for (const part of relativeParts) {
|
|
38
|
+
current = path.join(current, part);
|
|
39
|
+
const existingRealPath = await realpathOrNull(current);
|
|
40
|
+
if (existingRealPath) {
|
|
41
|
+
const stat = await fs.lstat(current);
|
|
42
|
+
if (stat.isSymbolicLink()) {
|
|
43
|
+
throw new Error(`workspace path component must not be a symlink: ${workspaceRootRelativePath(current)}`);
|
|
44
|
+
}
|
|
45
|
+
assertWithin(realWorkspaceRoot, existingRealPath, "directory realpath");
|
|
46
|
+
if (!stat.isDirectory()) {
|
|
47
|
+
throw new Error(`workspace path component is not a directory: ${workspaceRootRelativePath(current)}`);
|
|
48
|
+
}
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
await fs.mkdir(current);
|
|
52
|
+
const createdRealPath = await fs.realpath(current);
|
|
53
|
+
assertWithin(realWorkspaceRoot, createdRealPath, "created directory");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function assertWithin(parent, candidate, label) {
|
|
57
|
+
const relativePath = path.relative(path.resolve(parent), path.resolve(candidate));
|
|
58
|
+
if (relativePath === "" || (!relativePath.startsWith("..") && !path.isAbsolute(relativePath))) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
throw new Error(`${label} must stay within ${parent}`);
|
|
62
|
+
}
|
|
63
|
+
async function realpathOrNull(candidate) {
|
|
64
|
+
try {
|
|
65
|
+
return await fs.realpath(candidate);
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
if (err.code === "ENOENT")
|
|
69
|
+
return null;
|
|
70
|
+
throw err;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export function isPathInsidePulSeedStateRoot(candidate) {
|
|
74
|
+
const stateRoot = canonicalPath(getPulseedDirPath());
|
|
75
|
+
const resolved = canonicalPath(candidate);
|
|
76
|
+
const relativePath = path.relative(stateRoot, resolved);
|
|
77
|
+
return resolved === stateRoot || (!relativePath.startsWith("..") && !path.isAbsolute(relativePath));
|
|
78
|
+
}
|
|
79
|
+
function canonicalPath(value) {
|
|
80
|
+
try {
|
|
81
|
+
return fsSync.realpathSync(value);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
return path.resolve(value);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=workspace-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-root.js","sourceRoot":"","sources":["../../../src/base/utils/workspace-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEnF,MAAM,UAAU,2BAA2B;IACzC,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC,cAAc,CAAC;IACzD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,kCAAkC,EAAE,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,YAAoB;IAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;IACrE,IAAI,YAAY,KAAK,EAAE,IAAI,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1F,MAAM,IAAI,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C,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;QAC9F,OAAO;IACT,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qBAAqB,MAAM,EAAE,CAAC,CAAC;AACzD,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,SAAiB;IAC7C,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAClE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,SAAiB;IAC5D,MAAM,SAAS,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACrD,MAAM,QAAQ,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACxD,OAAO,QAAQ,KAAK,SAAS,IAAI,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;AACtG,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ export { buildCompanionCurrentTargetContext, buildCompanionRuntimeContract, eval
|
|
|
66
66
|
export type { ChatIngressChannel, ChatIngressReplyTarget, ChatSelectedRoute, IngressMessage, IngressRuntimeControl, SelectedChatRoute, } from "./interface/chat/ingress-router.js";
|
|
67
67
|
export type { CompanionCurrentTargetContext, CompanionDialogueKind, CompanionOutputPolicyDecision, CompanionPresenceMode, CompanionPresenceState, CompanionQuietingDecision, CompanionRuntimeContract, CompanionTurnPolicy, CompanionUrgency, ConversationInputModality, ConversationOutputMode, } from "./runtime/types/companion.js";
|
|
68
68
|
export type { ChatEvent, ChatEventHandler, ChatEventBase, ChatEventContext, LifecycleStartEvent, AssistantDeltaEvent, AssistantFinalEvent, ActivityEvent, ActivityKind, ToolStartEvent, ToolUpdateEvent, ToolEndEvent, LifecycleEndEvent, LifecycleErrorEvent, } from "./interface/chat/chat-events.js";
|
|
69
|
+
export { createTextUserInput } from "./interface/chat/user-input.js";
|
|
70
|
+
export type { UserInput, UserInputItem } from "./interface/chat/user-input.js";
|
|
69
71
|
export { IntentRecognizer } from "./interface/tui/intent-recognizer.js";
|
|
70
72
|
export type { IntentType, RecognizedIntent } from "./interface/tui/intent-recognizer.js";
|
|
71
73
|
export { ActionHandler } from "./interface/tui/actions.js";
|
|
@@ -83,6 +85,8 @@ export type { EventServerConfig } from "./runtime/event-server.js";
|
|
|
83
85
|
export { NotificationDispatcher } from "./runtime/notification-dispatcher.js";
|
|
84
86
|
export type { INotificationDispatcher } from "./runtime/notification-dispatcher.js";
|
|
85
87
|
export { RuntimeControlService, recognizeRuntimeControlIntent, } from "./runtime/control/index.js";
|
|
88
|
+
export { NonTuiDisplayProjector, createNonTuiDisplayProjector, createGatewayDisplayPolicy, resolveGatewayChannelDisplayContract, TELEGRAM_GATEWAY_DISPLAY_CONTRACT, SLACK_GATEWAY_DISPLAY_CONTRACT, DISCORD_GATEWAY_DISPLAY_CONTRACT, WHATSAPP_GATEWAY_DISPLAY_CONTRACT, SIGNAL_GATEWAY_DISPLAY_CONTRACT, WEBHOOK_GATEWAY_DISPLAY_CONTRACT, } from "./runtime/gateway/index.js";
|
|
89
|
+
export type { NonTuiDisplayMessageRef, NonTuiDisplayTransport, GatewayChannelDisplayContract, GatewayDisplayCapabilities, GatewayDisplayPolicy, } from "./runtime/gateway/index.js";
|
|
86
90
|
export type { RuntimeControlExecutor, RuntimeControlExecutorResult, RuntimeControlIntent, RuntimeControlRequest, RuntimeControlResult, RuntimeControlServiceOptions, } from "./runtime/control/index.js";
|
|
87
91
|
export { RuntimeOperationStore } from "./runtime/store/runtime-operation-store.js";
|
|
88
92
|
export { RuntimeEvidenceArtifactRefSchema, RuntimeEvidenceEntryKindSchema, RuntimeEvidenceEntrySchema, RuntimeEvidenceDivergentHypothesisSchema, RuntimeEvidenceLedger, RuntimeEvidenceMetricSchema, RuntimeEvidenceOutcomeSchema, } from "./runtime/store/evidence-ledger.js";
|