opencode-matrixx 0.0.1
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/LICENSE.md +82 -0
- package/README.md +222 -0
- package/bin/matrixx.js +80 -0
- package/bin/platform.js +38 -0
- package/bin/platform.test.ts +148 -0
- package/dist/agents/agent-builder.d.ts +7 -0
- package/dist/agents/architect/agent.d.ts +34 -0
- package/dist/agents/architect/default.d.ts +11 -0
- package/dist/agents/architect/gpt.d.ts +19 -0
- package/dist/agents/architect/index.d.ts +6 -0
- package/dist/agents/architect/prompt-section-builder.d.ts +13 -0
- package/dist/agents/builtin-agents/agent-overrides.d.ts +12 -0
- package/dist/agents/builtin-agents/atlas-agent.d.ts +17 -0
- package/dist/agents/builtin-agents/available-skills.d.ts +4 -0
- package/dist/agents/builtin-agents/environment-context.d.ts +2 -0
- package/dist/agents/builtin-agents/general-agents.d.ts +23 -0
- package/dist/agents/builtin-agents/hephaestus-agent.d.ts +17 -0
- package/dist/agents/builtin-agents/model-resolution.d.ts +24 -0
- package/dist/agents/builtin-agents/resolve-file-uri.d.ts +1 -0
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +19 -0
- package/dist/agents/builtin-agents.d.ts +6 -0
- package/dist/agents/cipher.d.ts +7 -0
- package/dist/agents/construct.d.ts +7 -0
- package/dist/agents/custom-agent-summaries.d.ts +8 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +36 -0
- package/dist/agents/env-context.d.ts +7 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/agents/keymaker.d.ts +6 -0
- package/dist/agents/merovingian.d.ts +7 -0
- package/dist/agents/morpheus.d.ts +8 -0
- package/dist/agents/mouse/agent.d.ts +29 -0
- package/dist/agents/mouse/default.d.ts +9 -0
- package/dist/agents/mouse/gpt.d.ts +18 -0
- package/dist/agents/mouse/index.d.ts +4 -0
- package/dist/agents/niobe.d.ts +7 -0
- package/dist/agents/operator.d.ts +7 -0
- package/dist/agents/oracle/behavioral-summary.d.ts +6 -0
- package/dist/agents/oracle/high-accuracy-mode.d.ts +6 -0
- package/dist/agents/oracle/identity-constraints.d.ts +7 -0
- package/dist/agents/oracle/index.d.ts +7 -0
- package/dist/agents/oracle/interview-mode.d.ts +7 -0
- package/dist/agents/oracle/plan-generation.d.ts +7 -0
- package/dist/agents/oracle/plan-template.d.ts +7 -0
- package/dist/agents/oracle/system-prompt.d.ts +16 -0
- package/dist/agents/sentinel.d.ts +7 -0
- package/dist/agents/seraph.d.ts +21 -0
- package/dist/agents/smith.d.ts +17 -0
- package/dist/agents/trinity.d.ts +7 -0
- package/dist/agents/types.d.ts +74 -0
- package/dist/cli/cli-installer.d.ts +2 -0
- package/dist/cli/cli-program.d.ts +1 -0
- package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +2 -0
- package/dist/cli/config-manager/add-provider-config.d.ts +2 -0
- package/dist/cli/config-manager/antigravity-provider-configuration.d.ts +122 -0
- package/dist/cli/config-manager/auth-plugins.d.ts +3 -0
- package/dist/cli/config-manager/bun-install.d.ts +7 -0
- package/dist/cli/config-manager/config-context.d.ts +13 -0
- package/dist/cli/config-manager/deep-merge-record.d.ts +1 -0
- package/dist/cli/config-manager/detect-current-config.d.ts +2 -0
- package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +1 -0
- package/dist/cli/config-manager/format-error-with-suggestion.d.ts +1 -0
- package/dist/cli/config-manager/generate-omo-config.d.ts +2 -0
- package/dist/cli/config-manager/jsonc-provider-editor.d.ts +1 -0
- package/dist/cli/config-manager/npm-dist-tags.d.ts +7 -0
- package/dist/cli/config-manager/opencode-binary.d.ts +2 -0
- package/dist/cli/config-manager/opencode-config-format.d.ts +5 -0
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +10 -0
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -0
- package/dist/cli/config-manager/write-omo-config.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +14 -0
- package/dist/cli/doctor/checks/config.d.ts +2 -0
- package/dist/cli/doctor/checks/dependencies.d.ts +4 -0
- package/dist/cli/doctor/checks/index.d.ts +7 -0
- package/dist/cli/doctor/checks/model-resolution-cache.d.ts +2 -0
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -0
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +6 -0
- package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +3 -0
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +37 -0
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +5 -0
- package/dist/cli/doctor/checks/model-resolution.d.ts +6 -0
- package/dist/cli/doctor/checks/system-binary.d.ts +13 -0
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +9 -0
- package/dist/cli/doctor/checks/system-plugin.d.ts +15 -0
- package/dist/cli/doctor/checks/system.d.ts +3 -0
- package/dist/cli/doctor/checks/tools-gh.d.ts +10 -0
- package/dist/cli/doctor/checks/tools-lsp.d.ts +6 -0
- package/dist/cli/doctor/checks/tools-mcp.d.ts +3 -0
- package/dist/cli/doctor/checks/tools.d.ts +3 -0
- package/dist/cli/doctor/constants.d.ts +29 -0
- package/dist/cli/doctor/format-default.d.ts +2 -0
- package/dist/cli/doctor/format-shared.d.ts +6 -0
- package/dist/cli/doctor/format-status.d.ts +2 -0
- package/dist/cli/doctor/format-verbose.d.ts +2 -0
- package/dist/cli/doctor/formatter.d.ts +3 -0
- package/dist/cli/doctor/index.d.ts +5 -0
- package/dist/cli/doctor/runner.d.ts +5 -0
- package/dist/cli/doctor/types.d.ts +124 -0
- package/dist/cli/fallback-chain-resolution.d.ts +10 -0
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/get-local-version.d.ts +2 -0
- package/dist/cli/get-local-version/index.d.ts +2 -0
- package/dist/cli/get-local-version/types.d.ts +13 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +27907 -0
- package/dist/cli/install-validators.d.ts +32 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/mcp-oauth/index.d.ts +6 -0
- package/dist/cli/mcp-oauth/login.d.ts +6 -0
- package/dist/cli/mcp-oauth/logout.d.ts +4 -0
- package/dist/cli/mcp-oauth/status.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +26 -0
- package/dist/cli/model-fallback.d.ts +5 -0
- package/dist/cli/provider-availability.d.ts +4 -0
- package/dist/cli/provider-model-id-transform.d.ts +1 -0
- package/dist/cli/run/agent-resolver.d.ts +5 -0
- package/dist/cli/run/completion.d.ts +2 -0
- package/dist/cli/run/event-formatting.d.ts +3 -0
- package/dist/cli/run/event-handlers.d.ts +10 -0
- package/dist/cli/run/event-state.d.ts +13 -0
- package/dist/cli/run/event-stream-processor.d.ts +3 -0
- package/dist/cli/run/events.d.ts +4 -0
- package/dist/cli/run/index.d.ts +9 -0
- package/dist/cli/run/json-output.d.ts +12 -0
- package/dist/cli/run/on-complete-hook.d.ts +7 -0
- package/dist/cli/run/opencode-bin-path.d.ts +3 -0
- package/dist/cli/run/opencode-binary-resolver.d.ts +5 -0
- package/dist/cli/run/poll-for-completion.d.ts +8 -0
- package/dist/cli/run/runner.d.ts +5 -0
- package/dist/cli/run/server-connection.d.ts +6 -0
- package/dist/cli/run/session-resolver.d.ts +6 -0
- package/dist/cli/run/types.d.ts +119 -0
- package/dist/cli/tui-install-prompts.d.ts +2 -0
- package/dist/cli/tui-installer.d.ts +2 -0
- package/dist/cli/types.d.ts +39 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/profiles.d.ts +4 -0
- package/dist/config/schema/agent-names.d.ts +91 -0
- package/dist/config/schema/agent-overrides.d.ts +1445 -0
- package/dist/config/schema/babysitting.d.ts +5 -0
- package/dist/config/schema/background-task.d.ts +15 -0
- package/dist/config/schema/browser-automation.d.ts +17 -0
- package/dist/config/schema/categories.d.ts +74 -0
- package/dist/config/schema/claude-code.d.ts +11 -0
- package/dist/config/schema/commands.d.ts +11 -0
- package/dist/config/schema/comment-checker.d.ts +5 -0
- package/dist/config/schema/dynamic-context-pruning.d.ts +28 -0
- package/dist/config/schema/experimental.d.ts +38 -0
- package/dist/config/schema/git-master.d.ts +6 -0
- package/dist/config/schema/hooks.d.ts +51 -0
- package/dist/config/schema/internal/permission.d.ts +44 -0
- package/dist/config/schema/matrix-loop.d.ts +7 -0
- package/dist/config/schema/matrixx-config.d.ts +1678 -0
- package/dist/config/schema/morpheus-agent.d.ts +8 -0
- package/dist/config/schema/morpheus.d.ts +15 -0
- package/dist/config/schema/notification.d.ts +5 -0
- package/dist/config/schema/security.d.ts +41 -0
- package/dist/config/schema/skills.d.ts +58 -0
- package/dist/config/schema/tmux.d.ts +23 -0
- package/dist/config/schema/websearch.d.ts +13 -0
- package/dist/config/schema.d.ts +23 -0
- package/dist/create-hooks.d.ts +61 -0
- package/dist/create-managers.d.ts +20 -0
- package/dist/create-tools.d.ts +20 -0
- package/dist/features/background-agent/background-event-handler.d.ts +26 -0
- package/dist/features/background-agent/background-manager-shutdown.d.ts +25 -0
- package/dist/features/background-agent/background-task-completer.d.ts +3 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +10 -0
- package/dist/features/background-agent/concurrency.d.ts +27 -0
- package/dist/features/background-agent/constants.d.ts +48 -0
- package/dist/features/background-agent/duration-formatter.d.ts +1 -0
- package/dist/features/background-agent/error-classifier.d.ts +2 -0
- package/dist/features/background-agent/format-duration.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +5 -0
- package/dist/features/background-agent/loop-detector.d.ts +16 -0
- package/dist/features/background-agent/manager.d.ts +142 -0
- package/dist/features/background-agent/message-dir.d.ts +1 -0
- package/dist/features/background-agent/notification-builder.d.ts +8 -0
- package/dist/features/background-agent/notification-tracker.d.ts +6 -0
- package/dist/features/background-agent/notify-parent-session.d.ts +10 -0
- package/dist/features/background-agent/opencode-client.d.ts +2 -0
- package/dist/features/background-agent/parent-session-context-resolver.d.ts +14 -0
- package/dist/features/background-agent/parent-session-notifier.d.ts +3 -0
- package/dist/features/background-agent/poll-running-tasks.d.ts +15 -0
- package/dist/features/background-agent/process-signal.d.ts +2 -0
- package/dist/features/background-agent/result-handler-context.d.ts +8 -0
- package/dist/features/background-agent/result-handler.d.ts +7 -0
- package/dist/features/background-agent/session-idle-event-handler.d.ts +10 -0
- package/dist/features/background-agent/session-output-validator.d.ts +2 -0
- package/dist/features/background-agent/session-task-cleanup.d.ts +10 -0
- package/dist/features/background-agent/session-todo-checker.d.ts +2 -0
- package/dist/features/background-agent/session-validator.d.ts +7 -0
- package/dist/features/background-agent/spawner/background-session-creator.d.ts +10 -0
- package/dist/features/background-agent/spawner/concurrency-key-from-launch-input.d.ts +2 -0
- package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +6 -0
- package/dist/features/background-agent/spawner/spawner-context.d.ts +11 -0
- package/dist/features/background-agent/spawner/task-factory.d.ts +2 -0
- package/dist/features/background-agent/spawner/task-resumer.d.ts +3 -0
- package/dist/features/background-agent/spawner/task-starter.d.ts +3 -0
- package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +8 -0
- package/dist/features/background-agent/spawner.d.ts +14 -0
- package/dist/features/background-agent/stale-task-pruner.d.ts +15 -0
- package/dist/features/background-agent/state.d.ts +35 -0
- package/dist/features/background-agent/task-canceller.d.ts +27 -0
- package/dist/features/background-agent/task-completer.d.ts +13 -0
- package/dist/features/background-agent/task-history.d.ts +18 -0
- package/dist/features/background-agent/task-launch.d.ts +15 -0
- package/dist/features/background-agent/task-poller.d.ts +20 -0
- package/dist/features/background-agent/task-queries.d.ts +7 -0
- package/dist/features/background-agent/task-queue-processor.d.ts +14 -0
- package/dist/features/background-agent/task-resumer.d.ts +14 -0
- package/dist/features/background-agent/task-starter.d.ts +27 -0
- package/dist/features/background-agent/task-tracker.d.ts +18 -0
- package/dist/features/background-agent/types.d.ts +90 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +2 -0
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/matrix-loop.d.ts +2 -0
- package/dist/features/builtin-commands/templates/pickup.d.ts +1 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
- package/dist/features/builtin-commands/templates/remove-deadcode.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +6 -0
- package/dist/features/builtin-skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills/academic-review.d.ts +4 -0
- package/dist/features/builtin-skills/skills/academic-writing.d.ts +4 -0
- package/dist/features/builtin-skills/skills/data-management-plan.d.ts +4 -0
- package/dist/features/builtin-skills/skills/deliverable-writing.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dev-browser.d.ts +2 -0
- package/dist/features/builtin-skills/skills/document-reader.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-codegen.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-composition.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-core.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-grammar.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-metamodel.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-model-transformation.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-pyecore-advanced.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-testing.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-textx-ecosystem.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-tooling.d.ts +4 -0
- package/dist/features/builtin-skills/skills/dsl-validation.d.ts +4 -0
- package/dist/features/builtin-skills/skills/eu-horizon.d.ts +4 -0
- package/dist/features/builtin-skills/skills/frontend-ui-ux.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master.d.ts +2 -0
- package/dist/features/builtin-skills/skills/grant-writing.d.ts +4 -0
- package/dist/features/builtin-skills/skills/index.d.ts +38 -0
- package/dist/features/builtin-skills/skills/ip-exploitation.d.ts +4 -0
- package/dist/features/builtin-skills/skills/literature-review.d.ts +4 -0
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +10 -0
- package/dist/features/builtin-skills/skills/playwright.d.ts +3 -0
- package/dist/features/builtin-skills/skills/project-management.d.ts +4 -0
- package/dist/features/builtin-skills/skills/research-methodology.d.ts +4 -0
- package/dist/features/builtin-skills/skills/scientific-presentation.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-api.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-core.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-crypto.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-dast.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-dependencies.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-infra.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-review.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-sast.d.ts +4 -0
- package/dist/features/builtin-skills/skills/security-secrets.d.ts +4 -0
- package/dist/features/builtin-skills/skills/technical-lead.d.ts +4 -0
- package/dist/features/builtin-skills/skills.d.ts +7 -0
- package/dist/features/builtin-skills/types.d.ts +15 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
- package/dist/features/claude-code-command-loader/index.d.ts +2 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
- package/dist/features/claude-code-command-loader/types.d.ts +42 -0
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
- package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +39 -0
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/command-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +10 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
- package/dist/features/claude-code-session-state/index.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +9 -0
- package/dist/features/claude-tasks/index.d.ts +3 -0
- package/dist/features/claude-tasks/session-storage.d.ts +9 -0
- package/dist/features/claude-tasks/storage.d.ts +14 -0
- package/dist/features/claude-tasks/types.d.ts +25 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/hook-message-injector/constants.d.ts +1 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +67 -0
- package/dist/features/hook-message-injector/types.d.ts +46 -0
- package/dist/features/mcp-oauth/callback-server.d.ts +11 -0
- package/dist/features/mcp-oauth/dcr.d.ts +34 -0
- package/dist/features/mcp-oauth/discovery.d.ts +8 -0
- package/dist/features/mcp-oauth/index.d.ts +3 -0
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +26 -0
- package/dist/features/mcp-oauth/provider.d.ts +29 -0
- package/dist/features/mcp-oauth/resource-indicator.d.ts +2 -0
- package/dist/features/mcp-oauth/schema.d.ts +6 -0
- package/dist/features/mcp-oauth/step-up.d.ts +8 -0
- package/dist/features/mcp-oauth/storage.d.ts +17 -0
- package/dist/features/mission-state/constants.d.ts +10 -0
- package/dist/features/mission-state/index.d.ts +3 -0
- package/dist/features/mission-state/storage.d.ts +28 -0
- package/dist/features/mission-state/types.d.ts +26 -0
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +1 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +7 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +2 -0
- package/dist/features/opencode-skill-loader/index.d.ts +15 -0
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +9 -0
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +2 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +19 -0
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +2 -0
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +11 -0
- package/dist/features/opencode-skill-loader/merger.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +5 -0
- package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +2 -0
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +3 -0
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +8 -0
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +4 -0
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +3 -0
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +8 -0
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +11 -0
- package/dist/features/opencode-skill-loader/types.d.ts +34 -0
- package/dist/features/skill-mcp-manager/cleanup.d.ts +8 -0
- package/dist/features/skill-mcp-manager/connection-type.d.ts +7 -0
- package/dist/features/skill-mcp-manager/connection.d.ts +15 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/http-client.d.ts +3 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +21 -0
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +9 -0
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +3 -0
- package/dist/features/skill-mcp-manager/types.d.ts +55 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +59 -0
- package/dist/features/task-toast-manager/types.d.ts +24 -0
- package/dist/features/tmux-subagent/action-executor-core.d.ts +21 -0
- package/dist/features/tmux-subagent/action-executor.d.ts +13 -0
- package/dist/features/tmux-subagent/cleanup.d.ts +9 -0
- package/dist/features/tmux-subagent/decision-engine.d.ts +7 -0
- package/dist/features/tmux-subagent/event-handlers.d.ts +6 -0
- package/dist/features/tmux-subagent/grid-planning.d.ts +19 -0
- package/dist/features/tmux-subagent/index.d.ts +15 -0
- package/dist/features/tmux-subagent/manager-cleanup.d.ts +12 -0
- package/dist/features/tmux-subagent/manager.d.ts +56 -0
- package/dist/features/tmux-subagent/oldest-agent-pane.d.ts +7 -0
- package/dist/features/tmux-subagent/pane-split-availability.d.ts +8 -0
- package/dist/features/tmux-subagent/pane-state-querier.d.ts +2 -0
- package/dist/features/tmux-subagent/polling-constants.d.ts +3 -0
- package/dist/features/tmux-subagent/polling-manager.d.ts +13 -0
- package/dist/features/tmux-subagent/polling.d.ts +19 -0
- package/dist/features/tmux-subagent/session-cleaner.d.ts +23 -0
- package/dist/features/tmux-subagent/session-created-event.d.ts +14 -0
- package/dist/features/tmux-subagent/session-created-handler.d.ts +22 -0
- package/dist/features/tmux-subagent/session-deleted-handler.d.ts +15 -0
- package/dist/features/tmux-subagent/session-message-count.d.ts +1 -0
- package/dist/features/tmux-subagent/session-ready-waiter.d.ts +7 -0
- package/dist/features/tmux-subagent/session-spawner.d.ts +34 -0
- package/dist/features/tmux-subagent/session-status-parser.d.ts +5 -0
- package/dist/features/tmux-subagent/spawn-action-decider.d.ts +4 -0
- package/dist/features/tmux-subagent/spawn-target-finder.d.ts +6 -0
- package/dist/features/tmux-subagent/tmux-grid-constants.d.ts +7 -0
- package/dist/features/tmux-subagent/types.d.ts +53 -0
- package/dist/features/tool-metadata-store/index.d.ts +2 -0
- package/dist/features/tool-metadata-store/store.d.ts +39 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +4 -0
- package/dist/hooks/agent-usage-reminder/hook.d.ts +22 -0
- package/dist/hooks/agent-usage-reminder/index.d.ts +1 -0
- package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
- package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts +14 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/client.d.ts +29 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.d.ts +11 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.d.ts +8 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +8 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +10 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.d.ts +13 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-strategy.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/state.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage-paths.d.ts +3 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +4 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +11 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/target-token-truncation.d.ts +5 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/tool-part-types.d.ts +39 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/tool-result-storage-sdk.d.ts +29 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/tool-result-storage.d.ts +10 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +37 -0
- package/dist/hooks/anthropic-effort/hook.d.ts +26 -0
- package/dist/hooks/anthropic-effort/index.d.ts +1 -0
- package/dist/hooks/architect/atlas-hook.d.ts +19 -0
- package/dist/hooks/architect/event-handler.d.ts +13 -0
- package/dist/hooks/architect/hook-name.d.ts +1 -0
- package/dist/hooks/architect/index.d.ts +3 -0
- package/dist/hooks/architect/is-abort-error.d.ts +1 -0
- package/dist/hooks/architect/matrix-path.d.ts +1 -0
- package/dist/hooks/architect/mission-continuation-injector.d.ts +13 -0
- package/dist/hooks/architect/recent-model-resolver.d.ts +3 -0
- package/dist/hooks/architect/session-last-agent.d.ts +4 -0
- package/dist/hooks/architect/subagent-session-id.d.ts +1 -0
- package/dist/hooks/architect/system-reminder-templates.d.ts +5 -0
- package/dist/hooks/architect/tool-execute-after.d.ts +6 -0
- package/dist/hooks/architect/tool-execute-before.d.ts +12 -0
- package/dist/hooks/architect/types.d.ts +27 -0
- package/dist/hooks/architect/verification-reminders.d.ts +5 -0
- package/dist/hooks/architect/write-edit-tool-policy.d.ts +1 -0
- package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +13 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +9 -0
- package/dist/hooks/auto-slash-command/index.d.ts +6 -0
- package/dist/hooks/auto-slash-command/types.d.ts +39 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
- package/dist/hooks/auto-update-checker/checker/cached-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/check-for-update.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/config-paths.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/jsonc-strip.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/latest-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/local-dev-path.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/local-dev-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/package-json-locator.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/pinned-version-updater.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/plugin-entry.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +8 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +10 -0
- package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/config-errors-toast.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/connected-providers-status.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/model-cache-warning.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/spinner-toast.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/startup-toasts.d.ts +3 -0
- package/dist/hooks/auto-update-checker/hook/update-toasts.d.ts +3 -0
- package/dist/hooks/auto-update-checker/hook.d.ts +10 -0
- package/dist/hooks/auto-update-checker/index.d.ts +5 -0
- package/dist/hooks/auto-update-checker/types.d.ts +25 -0
- package/dist/hooks/auto-update-checker/version-channel.d.ts +4 -0
- package/dist/hooks/background-notification/hook.d.ts +18 -0
- package/dist/hooks/background-notification/index.d.ts +2 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/bash-file-read-guard.d.ts +2 -0
- package/dist/hooks/category-skill-reminder/formatter.d.ts +2 -0
- package/dist/hooks/category-skill-reminder/hook.d.ts +23 -0
- package/dist/hooks/category-skill-reminder/index.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +48 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
- package/dist/hooks/claude-code-hooks/handlers/chat-message-handler.d.ts +19 -0
- package/dist/hooks/claude-code-hooks/handlers/pre-compact-handler.d.ts +7 -0
- package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +8 -0
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-after-handler.d.ts +11 -0
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-before-handler.d.ts +9 -0
- package/dist/hooks/claude-code-hooks/index.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
- package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +9 -0
- package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
- package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +29 -0
- package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
- package/dist/hooks/comment-checker/cli-runner.d.ts +19 -0
- package/dist/hooks/comment-checker/cli.d.ts +52 -0
- package/dist/hooks/comment-checker/downloader.d.ts +25 -0
- package/dist/hooks/comment-checker/hook.d.ts +19 -0
- package/dist/hooks/comment-checker/index.d.ts +1 -0
- package/dist/hooks/comment-checker/pending-calls.d.ts +4 -0
- package/dist/hooks/comment-checker/types.d.ts +31 -0
- package/dist/hooks/compaction-context-injector/hook.d.ts +2 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +1 -0
- package/dist/hooks/compaction-todo-preserver/hook.d.ts +11 -0
- package/dist/hooks/compaction-todo-preserver/index.d.ts +2 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
- package/dist/hooks/delegate-task-retry/hook.d.ts +12 -0
- package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
- package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
- package/dist/hooks/directory-agents-injector/constants.d.ts +2 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +5 -0
- package/dist/hooks/directory-agents-injector/hook.d.ts +26 -0
- package/dist/hooks/directory-agents-injector/index.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/injector.d.ts +16 -0
- package/dist/hooks/directory-agents-injector/storage.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +2 -0
- package/dist/hooks/directory-readme-injector/finder.d.ts +5 -0
- package/dist/hooks/directory-readme-injector/hook.d.ts +26 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/injector.d.ts +16 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +1 -0
- package/dist/hooks/edit-error-recovery/hook.d.ts +31 -0
- package/dist/hooks/edit-error-recovery/index.d.ts +1 -0
- package/dist/hooks/empty-task-response-detector.d.ts +12 -0
- package/dist/hooks/env-file-write-guard/hook.d.ts +14 -0
- package/dist/hooks/env-file-write-guard/index.d.ts +1 -0
- package/dist/hooks/env-file-write-guard/sensitive-file-matcher.d.ts +1 -0
- package/dist/hooks/handoff-injector/constants.d.ts +4 -0
- package/dist/hooks/handoff-injector/storage.d.ts +5 -0
- package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
- package/dist/hooks/hashline-read-enhancer/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +47 -0
- package/dist/hooks/interactive-bash-session/constants.d.ts +3 -0
- package/dist/hooks/interactive-bash-session/hook.d.ts +23 -0
- package/dist/hooks/interactive-bash-session/index.d.ts +3 -0
- package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +23 -0
- package/dist/hooks/interactive-bash-session/interactive-bash-session-tracker.d.ts +21 -0
- package/dist/hooks/interactive-bash-session/parser.d.ts +26 -0
- package/dist/hooks/interactive-bash-session/state-manager.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/tmux-command-parser.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +15 -0
- package/dist/hooks/json-error-recovery/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/analyze/default.d.ts +12 -0
- package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/constants.d.ts +10 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/hook.d.ts +20 -0
- package/dist/hooks/keyword-detector/index.d.ts +4 -0
- package/dist/hooks/keyword-detector/search/default.d.ts +12 -0
- package/dist/hooks/keyword-detector/search/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/types.d.ts +4 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +10 -0
- package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +15 -0
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +17 -0
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +6 -0
- package/dist/hooks/keyword-detector/ultrawork/source-detector.d.ts +21 -0
- package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +8 -0
- package/dist/hooks/matrix-loop/completion-verifier.d.ts +15 -0
- package/dist/hooks/matrix-loop/constants.d.ts +8 -0
- package/dist/hooks/matrix-loop/continuation-prompt-builder.d.ts +2 -0
- package/dist/hooks/matrix-loop/continuation-prompt-injector.d.ts +7 -0
- package/dist/hooks/matrix-loop/index.d.ts +5 -0
- package/dist/hooks/matrix-loop/loop-session-recovery.d.ts +7 -0
- package/dist/hooks/matrix-loop/loop-state-controller.d.ts +16 -0
- package/dist/hooks/matrix-loop/matrix-loop-event-handler.d.ts +28 -0
- package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +18 -0
- package/dist/hooks/matrix-loop/message-storage-directory.d.ts +1 -0
- package/dist/hooks/matrix-loop/storage.d.ts +6 -0
- package/dist/hooks/matrix-loop/types.d.ts +25 -0
- package/dist/hooks/matrix-loop/with-timeout.d.ts +1 -0
- package/dist/hooks/mouse-notepad/constants.d.ts +2 -0
- package/dist/hooks/mouse-notepad/hook.d.ts +11 -0
- package/dist/hooks/mouse-notepad/index.d.ts +2 -0
- package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
- package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
- package/dist/hooks/non-interactive-env/index.d.ts +4 -0
- package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +14 -0
- package/dist/hooks/non-interactive-env/types.d.ts +3 -0
- package/dist/hooks/preemptive-compaction.d.ts +30 -0
- package/dist/hooks/prometheus-md-only/agent-matcher.d.ts +1 -0
- package/dist/hooks/prometheus-md-only/agent-resolution.d.ts +16 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +7 -0
- package/dist/hooks/prometheus-md-only/hook.d.ts +11 -0
- package/dist/hooks/prometheus-md-only/index.d.ts +2 -0
- package/dist/hooks/prometheus-md-only/path-policy.d.ts +10 -0
- package/dist/hooks/question-label-truncator/hook.d.ts +7 -0
- package/dist/hooks/question-label-truncator/index.d.ts +1 -0
- package/dist/hooks/rules-injector/cache.d.ts +8 -0
- package/dist/hooks/rules-injector/constants.d.ts +7 -0
- package/dist/hooks/rules-injector/finder.d.ts +3 -0
- package/dist/hooks/rules-injector/hook.d.ts +26 -0
- package/dist/hooks/rules-injector/index.d.ts +2 -0
- package/dist/hooks/rules-injector/injector.d.ts +20 -0
- package/dist/hooks/rules-injector/matcher.d.ts +21 -0
- package/dist/hooks/rules-injector/output-path.d.ts +5 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/project-root-finder.d.ts +8 -0
- package/dist/hooks/rules-injector/rule-distance.d.ts +10 -0
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +15 -0
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +14 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/secret-leak-guard/git-command-detector.d.ts +2 -0
- package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +15 -0
- package/dist/hooks/secret-leak-guard/hook.d.ts +16 -0
- package/dist/hooks/secret-leak-guard/index.d.ts +1 -0
- package/dist/hooks/secret-leak-guard/result-formatter.d.ts +3 -0
- package/dist/hooks/session-notification-formatting.d.ts +3 -0
- package/dist/hooks/session-notification-scheduler.d.ts +24 -0
- package/dist/hooks/session-notification-sender.d.ts +6 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/session-notification.d.ts +20 -0
- package/dist/hooks/session-recovery/constants.d.ts +4 -0
- package/dist/hooks/session-recovery/detect-error-type.d.ts +3 -0
- package/dist/hooks/session-recovery/hook.d.ts +20 -0
- package/dist/hooks/session-recovery/index.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +13 -0
- package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +5 -0
- package/dist/hooks/session-recovery/resume.d.ts +7 -0
- package/dist/hooks/session-recovery/storage/empty-messages.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/empty-text.d.ts +7 -0
- package/dist/hooks/session-recovery/storage/message-dir.d.ts +1 -0
- package/dist/hooks/session-recovery/storage/messages-reader.d.ts +6 -0
- package/dist/hooks/session-recovery/storage/orphan-thinking-search.d.ts +2 -0
- package/dist/hooks/session-recovery/storage/part-content.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/part-id.d.ts +1 -0
- package/dist/hooks/session-recovery/storage/parts-reader.d.ts +6 -0
- package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/thinking-block-search.d.ts +2 -0
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +5 -0
- package/dist/hooks/session-recovery/storage.d.ts +20 -0
- package/dist/hooks/session-recovery/types.d.ts +90 -0
- package/dist/hooks/session-todo-status.d.ts +2 -0
- package/dist/hooks/start-work/index.d.ts +1 -0
- package/dist/hooks/start-work/start-work-hook.d.ts +16 -0
- package/dist/hooks/stop-continuation-guard/hook.d.ts +21 -0
- package/dist/hooks/stop-continuation-guard/index.d.ts +2 -0
- package/dist/hooks/task-reminder/hook.d.ts +19 -0
- package/dist/hooks/task-reminder/index.d.ts +1 -0
- package/dist/hooks/task-resume-info/hook.d.ts +11 -0
- package/dist/hooks/task-resume-info/index.d.ts +1 -0
- package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +3 -0
- package/dist/hooks/tasks-todowrite-disabler/hook.d.ts +14 -0
- package/dist/hooks/tasks-todowrite-disabler/index.d.ts +2 -0
- package/dist/hooks/think-mode/detector.d.ts +5 -0
- package/dist/hooks/think-mode/hook.d.ts +11 -0
- package/dist/hooks/think-mode/index.d.ts +4 -0
- package/dist/hooks/think-mode/switcher.d.ts +75 -0
- package/dist/hooks/think-mode/types.d.ts +21 -0
- package/dist/hooks/thinking-block-validator/hook.d.ts +30 -0
- package/dist/hooks/thinking-block-validator/index.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/abort-detection.d.ts +4 -0
- package/dist/hooks/todo-continuation-enforcer/constants.d.ts +10 -0
- package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +12 -0
- package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +14 -0
- package/dist/hooks/todo-continuation-enforcer/handler.d.ts +15 -0
- package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +11 -0
- package/dist/hooks/todo-continuation-enforcer/index.d.ts +4 -0
- package/dist/hooks/todo-continuation-enforcer/message-directory.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/non-idle-events.d.ts +6 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +10 -0
- package/dist/hooks/todo-continuation-enforcer/todo.d.ts +2 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +58 -0
- package/dist/hooks/tool-output-truncator.d.ts +17 -0
- package/dist/hooks/unstable-agent-babysitter/index.d.ts +2 -0
- package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +23 -0
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +69 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +2 -0
- package/dist/hooks/write-existing-file-guard/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +77859 -0
- package/dist/mcp/context7.d.ts +9 -0
- package/dist/mcp/document-reader.d.ts +5 -0
- package/dist/mcp/grep-app.d.ts +6 -0
- package/dist/mcp/index.d.ts +16 -0
- package/dist/mcp/types.d.ts +10 -0
- package/dist/mcp/websearch.d.ts +11 -0
- package/dist/plugin/available-categories.d.ts +3 -0
- package/dist/plugin/chat-message.d.ts +30 -0
- package/dist/plugin/chat-params.d.ts +28 -0
- package/dist/plugin/event.d.ts +25 -0
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +27 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +45 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +31 -0
- package/dist/plugin/hooks/create-skill-hooks.d.ts +16 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +24 -0
- package/dist/plugin/hooks/create-transform-hooks.d.ts +16 -0
- package/dist/plugin/messages-transform.d.ts +13 -0
- package/dist/plugin/recent-synthetic-idles.d.ts +6 -0
- package/dist/plugin/session-agent-resolver.d.ts +19 -0
- package/dist/plugin/session-status-normalizer.d.ts +8 -0
- package/dist/plugin/skill-context.d.ts +14 -0
- package/dist/plugin/tool-execute-after.d.ts +12 -0
- package/dist/plugin/tool-execute-before.d.ts +12 -0
- package/dist/plugin/tool-registry.d.ts +16 -0
- package/dist/plugin/types.d.ts +12 -0
- package/dist/plugin/unstable-agent-babysitter.d.ts +15 -0
- package/dist/plugin-config.d.ts +5 -0
- package/dist/plugin-handlers/agent-config-handler.d.ts +11 -0
- package/dist/plugin-handlers/agent-key-remapper.d.ts +1 -0
- package/dist/plugin-handlers/agent-priority-order.d.ts +1 -0
- package/dist/plugin-handlers/category-config-resolver.d.ts +2 -0
- package/dist/plugin-handlers/command-config-handler.d.ts +10 -0
- package/dist/plugin-handlers/config-handler.d.ts +12 -0
- package/dist/plugin-handlers/index.d.ts +10 -0
- package/dist/plugin-handlers/mcp-config-handler.d.ts +7 -0
- package/dist/plugin-handlers/plan-model-inheritance.d.ts +1 -0
- package/dist/plugin-handlers/plugin-components-loader.d.ts +22 -0
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +23 -0
- package/dist/plugin-handlers/provider-config-handler.d.ts +5 -0
- package/dist/plugin-handlers/tool-config-handler.d.ts +6 -0
- package/dist/plugin-interface.d.ts +21 -0
- package/dist/plugin-state.d.ts +5 -0
- package/dist/shared/agent-display-names.d.ts +17 -0
- package/dist/shared/agent-tool-restrictions.d.ts +7 -0
- package/dist/shared/agent-variant.d.ts +9 -0
- package/dist/shared/available-models-fetcher.d.ts +4 -0
- package/dist/shared/binary-downloader.d.ts +10 -0
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/command-executor/embedded-commands.d.ts +7 -0
- package/dist/shared/command-executor/execute-command.d.ts +1 -0
- package/dist/shared/command-executor/execute-hook-command.d.ts +10 -0
- package/dist/shared/command-executor/home-directory.d.ts +1 -0
- package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -0
- package/dist/shared/command-executor/shell-path.d.ts +2 -0
- package/dist/shared/command-executor.d.ts +4 -0
- package/dist/shared/config-errors.d.ts +7 -0
- package/dist/shared/connected-providers-cache.d.ts +55 -0
- package/dist/shared/data-path.d.ts +30 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/disabled-tools.d.ts +2 -0
- package/dist/shared/dynamic-truncator.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/fallback-model-availability.d.ts +5 -0
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/file-utils.d.ts +7 -0
- package/dist/shared/first-message-variant.d.ts +11 -0
- package/dist/shared/frontmatter.d.ts +7 -0
- package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +2 -0
- package/dist/shared/git-worktree/format-file-changes.d.ts +2 -0
- package/dist/shared/git-worktree/index.d.ts +5 -0
- package/dist/shared/git-worktree/parse-diff-numstat.d.ts +2 -0
- package/dist/shared/git-worktree/parse-status-porcelain.d.ts +2 -0
- package/dist/shared/git-worktree/types.d.ts +7 -0
- package/dist/shared/hook-disabled.d.ts +2 -0
- package/dist/shared/index.d.ts +49 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/merge-categories.d.ts +6 -0
- package/dist/shared/migration/agent-category.d.ts +19 -0
- package/dist/shared/migration/agent-names.d.ts +6 -0
- package/dist/shared/migration/config-migration.d.ts +1 -0
- package/dist/shared/migration/hook-names.d.ts +6 -0
- package/dist/shared/migration/model-versions.d.ts +13 -0
- package/dist/shared/migration.d.ts +5 -0
- package/dist/shared/model-availability.d.ts +20 -0
- package/dist/shared/model-cache-availability.d.ts +2 -0
- package/dist/shared/model-name-matcher.d.ts +1 -0
- package/dist/shared/model-requirements.d.ts +14 -0
- package/dist/shared/model-resolution-pipeline.d.ts +25 -0
- package/dist/shared/model-resolution-types.d.ts +23 -0
- package/dist/shared/model-resolver.d.ts +22 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/model-suggestion-retry.d.ts +34 -0
- package/dist/shared/models-json-cache-reader.d.ts +1 -0
- package/dist/shared/normalize-sdk-response.d.ts +4 -0
- package/dist/shared/open-code-client-accessors.d.ts +3 -0
- package/dist/shared/open-code-client-shapes.d.ts +13 -0
- package/dist/shared/opencode-config-dir-types.d.ts +14 -0
- package/dist/shared/opencode-config-dir.d.ts +8 -0
- package/dist/shared/opencode-http-api.d.ts +3 -0
- package/dist/shared/opencode-message-dir.d.ts +1 -0
- package/dist/shared/opencode-server-auth.d.ts +19 -0
- package/dist/shared/opencode-storage-detection.d.ts +2 -0
- package/dist/shared/opencode-storage-paths.d.ts +4 -0
- package/dist/shared/opencode-version.d.ts +24 -0
- package/dist/shared/pattern-matcher.d.ts +3 -0
- package/dist/shared/permission-compat.d.ts +27 -0
- package/dist/shared/port-utils.d.ts +9 -0
- package/dist/shared/provider-models-cache-model-reader.d.ts +1 -0
- package/dist/shared/record-type-guard.d.ts +1 -0
- package/dist/shared/safe-create-hook.d.ts +5 -0
- package/dist/shared/session-cursor.d.ts +13 -0
- package/dist/shared/session-directory-resolver.d.ts +7 -0
- package/dist/shared/session-injected-paths.d.ts +10 -0
- package/dist/shared/session-tools-store.d.ts +3 -0
- package/dist/shared/session-utils.d.ts +2 -0
- package/dist/shared/shell-env.d.ts +41 -0
- package/dist/shared/skill-path-resolver.d.ts +9 -0
- package/dist/shared/snake-case.d.ts +5 -0
- package/dist/shared/system-directive.d.ts +45 -0
- package/dist/shared/tmux/constants.d.ts +5 -0
- package/dist/shared/tmux/index.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/environment.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/layout.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +5 -0
- package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +4 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -0
- package/dist/shared/tmux/tmux-utils.d.ts +9 -0
- package/dist/shared/tmux/types.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/shared/truncate-description.d.ts +1 -0
- package/dist/shared/zip-extractor.d.ts +1 -0
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +5 -0
- package/dist/tools/ast-grep/cli.d.ts +12 -0
- package/dist/tools/ast-grep/constants.d.ts +5 -0
- package/dist/tools/ast-grep/downloader.d.ts +5 -0
- package/dist/tools/ast-grep/environment-check.d.ts +20 -0
- package/dist/tools/ast-grep/index.d.ts +5 -0
- package/dist/tools/ast-grep/language-support.d.ts +6 -0
- package/dist/tools/ast-grep/process-output-timeout.d.ts +12 -0
- package/dist/tools/ast-grep/result-formatter.d.ts +5 -0
- package/dist/tools/ast-grep/sg-cli-path.d.ts +3 -0
- package/dist/tools/ast-grep/sg-compact-json-output.d.ts +2 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +58 -0
- package/dist/tools/background-task/clients.d.ts +45 -0
- package/dist/tools/background-task/constants.d.ts +3 -0
- package/dist/tools/background-task/create-background-cancel.d.ts +4 -0
- package/dist/tools/background-task/create-background-output.d.ts +3 -0
- package/dist/tools/background-task/create-background-task.d.ts +3 -0
- package/dist/tools/background-task/delay.d.ts +1 -0
- package/dist/tools/background-task/full-session-format.d.ts +9 -0
- package/dist/tools/background-task/index.d.ts +3 -0
- package/dist/tools/background-task/message-dir.d.ts +1 -0
- package/dist/tools/background-task/modules/background-cancel.d.ts +4 -0
- package/dist/tools/background-task/modules/background-output.d.ts +3 -0
- package/dist/tools/background-task/modules/background-task.d.ts +3 -0
- package/dist/tools/background-task/modules/formatters.d.ts +11 -0
- package/dist/tools/background-task/modules/message-processing.d.ts +59 -0
- package/dist/tools/background-task/modules/utils.d.ts +16 -0
- package/dist/tools/background-task/session-messages.d.ts +3 -0
- package/dist/tools/background-task/task-result-format.d.ts +3 -0
- package/dist/tools/background-task/task-status-format.d.ts +2 -0
- package/dist/tools/background-task/time-format.d.ts +2 -0
- package/dist/tools/background-task/tools.d.ts +4 -0
- package/dist/tools/background-task/truncate-text.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +90 -0
- package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +2 -0
- package/dist/tools/call-omo-agent/background-agent-executor.d.ts +5 -0
- package/dist/tools/call-omo-agent/background-executor.d.ts +13 -0
- package/dist/tools/call-omo-agent/completion-poller.d.ts +11 -0
- package/dist/tools/call-omo-agent/constants.d.ts +2 -0
- package/dist/tools/call-omo-agent/index.d.ts +3 -0
- package/dist/tools/call-omo-agent/message-dir.d.ts +1 -0
- package/dist/tools/call-omo-agent/message-processor.d.ts +2 -0
- package/dist/tools/call-omo-agent/message-storage-directory.d.ts +1 -0
- package/dist/tools/call-omo-agent/session-completion-poller.d.ts +13 -0
- package/dist/tools/call-omo-agent/session-creator.d.ts +15 -0
- package/dist/tools/call-omo-agent/session-message-output-extractor.d.ts +17 -0
- package/dist/tools/call-omo-agent/subagent-session-creator.d.ts +10 -0
- package/dist/tools/call-omo-agent/subagent-session-prompter.d.ts +11 -0
- package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +4 -0
- package/dist/tools/call-omo-agent/sync-executor.d.ts +21 -0
- package/dist/tools/call-omo-agent/tool-context-with-metadata.d.ts +10 -0
- package/dist/tools/call-omo-agent/tools.d.ts +3 -0
- package/dist/tools/call-omo-agent/types.d.ts +34 -0
- package/dist/tools/delegate-task/available-models.d.ts +2 -0
- package/dist/tools/delegate-task/background-continuation.d.ts +3 -0
- package/dist/tools/delegate-task/background-task.d.ts +7 -0
- package/dist/tools/delegate-task/categories.d.ts +17 -0
- package/dist/tools/delegate-task/category-resolver.d.ts +17 -0
- package/dist/tools/delegate-task/constants.d.ts +43 -0
- package/dist/tools/delegate-task/error-formatting.d.ts +15 -0
- package/dist/tools/delegate-task/executor-types.d.ts +51 -0
- package/dist/tools/delegate-task/executor.d.ts +11 -0
- package/dist/tools/delegate-task/index.d.ts +4 -0
- package/dist/tools/delegate-task/model-selection.d.ts +11 -0
- package/dist/tools/delegate-task/model-string-parser.d.ts +7 -0
- package/dist/tools/delegate-task/mouse-agent.d.ts +1 -0
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +4 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +6 -0
- package/dist/tools/delegate-task/skill-content-resolver.d.ts +9 -0
- package/dist/tools/delegate-task/skill-resolver.d.ts +9 -0
- package/dist/tools/delegate-task/subagent-resolver.d.ts +11 -0
- package/dist/tools/delegate-task/sync-continuation-deps.d.ts +7 -0
- package/dist/tools/delegate-task/sync-continuation.d.ts +4 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +22 -0
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +8 -0
- package/dist/tools/delegate-task/sync-session-creator.d.ts +14 -0
- package/dist/tools/delegate-task/sync-session-poller.d.ts +14 -0
- package/dist/tools/delegate-task/sync-task-deps.d.ts +11 -0
- package/dist/tools/delegate-task/sync-task.d.ts +9 -0
- package/dist/tools/delegate-task/time-formatter.d.ts +4 -0
- package/dist/tools/delegate-task/timing.d.ts +11 -0
- package/dist/tools/delegate-task/tools.d.ts +6 -0
- package/dist/tools/delegate-task/types.d.ts +73 -0
- package/dist/tools/delegate-task/unstable-agent-task.d.ts +7 -0
- package/dist/tools/glob/cli.d.ts +11 -0
- package/dist/tools/glob/constants.d.ts +6 -0
- package/dist/tools/glob/index.d.ts +1 -0
- package/dist/tools/glob/result-formatter.d.ts +2 -0
- package/dist/tools/glob/tools.d.ts +3 -0
- package/dist/tools/glob/types.d.ts +20 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +17 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/index.d.ts +1 -0
- package/dist/tools/grep/result-formatter.d.ts +3 -0
- package/dist/tools/grep/tools.d.ts +3 -0
- package/dist/tools/grep/types.d.ts +36 -0
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +6 -0
- package/dist/tools/hashline-edit/constants.d.ts +4 -0
- package/dist/tools/hashline-edit/diff-utils.d.ts +6 -0
- package/dist/tools/hashline-edit/edit-deduplication.d.ts +5 -0
- package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +10 -0
- package/dist/tools/hashline-edit/edit-operations.d.ts +8 -0
- package/dist/tools/hashline-edit/edit-ordering.d.ts +4 -0
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +7 -0
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +7 -0
- package/dist/tools/hashline-edit/formatter-trigger.d.ts +38 -0
- package/dist/tools/hashline-edit/hash-computation.d.ts +11 -0
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +10 -0
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +1 -0
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +11 -0
- package/dist/tools/hashline-edit/index.d.ts +7 -0
- package/dist/tools/hashline-edit/normalize-edits.d.ts +10 -0
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -0
- package/dist/tools/hashline-edit/tools.d.ts +3 -0
- package/dist/tools/hashline-edit/types.d.ts +17 -0
- package/dist/tools/hashline-edit/validation.d.ts +20 -0
- package/dist/tools/index.d.ts +21 -0
- package/dist/tools/interactive-bash/constants.d.ts +3 -0
- package/dist/tools/interactive-bash/index.d.ts +3 -0
- package/dist/tools/interactive-bash/tmux-path-resolver.d.ts +3 -0
- package/dist/tools/interactive-bash/tools.d.ts +7 -0
- package/dist/tools/look-at/assistant-message-extractor.d.ts +1 -0
- package/dist/tools/look-at/constants.d.ts +2 -0
- package/dist/tools/look-at/index.d.ts +3 -0
- package/dist/tools/look-at/look-at-arguments.d.ts +6 -0
- package/dist/tools/look-at/mime-type-inference.d.ts +3 -0
- package/dist/tools/look-at/multimodal-agent-metadata.d.ts +11 -0
- package/dist/tools/look-at/session-poller.d.ts +8 -0
- package/dist/tools/look-at/tools.d.ts +3 -0
- package/dist/tools/look-at/types.d.ts +5 -0
- package/dist/tools/lsp/client.d.ts +3 -0
- package/dist/tools/lsp/config.d.ts +3 -0
- package/dist/tools/lsp/constants.d.ts +5 -0
- package/dist/tools/lsp/diagnostics-tool.d.ts +2 -0
- package/dist/tools/lsp/find-references-tool.d.ts +2 -0
- package/dist/tools/lsp/goto-definition-tool.d.ts +2 -0
- package/dist/tools/lsp/index.d.ts +8 -0
- package/dist/tools/lsp/language-config.d.ts +1 -0
- package/dist/tools/lsp/language-mappings.d.ts +3 -0
- package/dist/tools/lsp/lsp-client-connection.d.ts +4 -0
- package/dist/tools/lsp/lsp-client-transport.d.ts +20 -0
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +8 -0
- package/dist/tools/lsp/lsp-client.d.ts +17 -0
- package/dist/tools/lsp/lsp-formatters.d.ts +13 -0
- package/dist/tools/lsp/lsp-manager-process-cleanup.d.ts +12 -0
- package/dist/tools/lsp/lsp-manager-temp-directory-cleanup.d.ts +8 -0
- package/dist/tools/lsp/lsp-process.d.ts +29 -0
- package/dist/tools/lsp/lsp-server.d.ts +23 -0
- package/dist/tools/lsp/rename-tools.d.ts +3 -0
- package/dist/tools/lsp/server-config-loader.d.ts +25 -0
- package/dist/tools/lsp/server-definitions.d.ts +3 -0
- package/dist/tools/lsp/server-installation.d.ts +1 -0
- package/dist/tools/lsp/server-resolution.d.ts +15 -0
- package/dist/tools/lsp/symbols-tool.d.ts +2 -0
- package/dist/tools/lsp/tools.d.ts +5 -0
- package/dist/tools/lsp/types.d.ts +123 -0
- package/dist/tools/lsp/workspace-edit.d.ts +8 -0
- package/dist/tools/session-manager/constants.d.ts +9 -0
- package/dist/tools/session-manager/index.d.ts +3 -0
- package/dist/tools/session-manager/session-formatter.d.ts +11 -0
- package/dist/tools/session-manager/storage.d.ts +15 -0
- package/dist/tools/session-manager/tools.d.ts +3 -0
- package/dist/tools/session-manager/types.d.ts +89 -0
- package/dist/tools/skill/constants.d.ts +3 -0
- package/dist/tools/skill/index.d.ts +3 -0
- package/dist/tools/skill/tools.d.ts +4 -0
- package/dist/tools/skill/types.d.ts +29 -0
- package/dist/tools/skill-mcp/constants.d.ts +2 -0
- package/dist/tools/skill-mcp/index.d.ts +3 -0
- package/dist/tools/skill-mcp/tools.d.ts +11 -0
- package/dist/tools/skill-mcp/types.d.ts +8 -0
- package/dist/tools/slashcommand/command-discovery.d.ts +2 -0
- package/dist/tools/slashcommand/command-output-formatter.d.ts +3 -0
- package/dist/tools/slashcommand/index.d.ts +2 -0
- package/dist/tools/slashcommand/skill-command-converter.d.ts +3 -0
- package/dist/tools/slashcommand/slashcommand-description.d.ts +3 -0
- package/dist/tools/slashcommand/slashcommand-tool.d.ts +4 -0
- package/dist/tools/slashcommand/tools.d.ts +2 -0
- package/dist/tools/slashcommand/types.d.ts +24 -0
- package/dist/tools/task/index.d.ts +7 -0
- package/dist/tools/task/task-create.d.ts +4 -0
- package/dist/tools/task/task-get.d.ts +3 -0
- package/dist/tools/task/task-list.d.ts +3 -0
- package/dist/tools/task/task-update.d.ts +4 -0
- package/dist/tools/task/todo-sync.d.ts +16 -0
- package/dist/tools/task/types.d.ts +97 -0
- package/package.json +91 -0
- package/postinstall.mjs +43 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
3
|
+
export declare function notifyParentSession(args: {
|
|
4
|
+
task: BackgroundTask;
|
|
5
|
+
tasks: Map<string, BackgroundTask>;
|
|
6
|
+
pendingByParent: Map<string, Set<string>>;
|
|
7
|
+
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
8
|
+
clearNotificationsForTask: (taskId: string) => void;
|
|
9
|
+
client: OpencodeClient;
|
|
10
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OpencodeClient } from "./constants";
|
|
2
|
+
import type { BackgroundTask } from "./types";
|
|
3
|
+
type AgentModel = {
|
|
4
|
+
providerID: string;
|
|
5
|
+
modelID: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function resolveParentSessionAgentAndModel(input: {
|
|
8
|
+
client: OpencodeClient;
|
|
9
|
+
task: BackgroundTask;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
agent?: string;
|
|
12
|
+
model?: AgentModel;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
3
|
+
export declare function pollRunningTasks(args: {
|
|
4
|
+
tasks: Iterable<BackgroundTask>;
|
|
5
|
+
client: OpencodeClient;
|
|
6
|
+
pruneStaleTasksAndNotifications: () => void;
|
|
7
|
+
checkAndInterruptStaleTasks: (statuses: Record<string, {
|
|
8
|
+
type: string;
|
|
9
|
+
}>) => Promise<void>;
|
|
10
|
+
validateSessionHasOutput: (sessionID: string) => Promise<boolean>;
|
|
11
|
+
checkSessionTodos: (sessionID: string) => Promise<boolean>;
|
|
12
|
+
tryCompleteTask: (task: BackgroundTask, source: string) => Promise<boolean>;
|
|
13
|
+
hasRunningTasks: () => boolean;
|
|
14
|
+
stopPolling: () => void;
|
|
15
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OpencodeClient } from "./constants";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
import type { TaskStateManager } from "./state";
|
|
4
|
+
export interface ResultHandlerContext {
|
|
5
|
+
client: OpencodeClient;
|
|
6
|
+
concurrencyManager: ConcurrencyManager;
|
|
7
|
+
state: TaskStateManager;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { ResultHandlerContext } from "./result-handler-context";
|
|
2
|
+
export { formatDuration } from "./duration-formatter";
|
|
3
|
+
export { getMessageDir } from "../../shared";
|
|
4
|
+
export { checkSessionTodos } from "./session-todo-checker";
|
|
5
|
+
export { validateSessionHasOutput } from "./session-output-validator";
|
|
6
|
+
export { tryCompleteTask } from "./background-task-completer";
|
|
7
|
+
export { notifyParentSession } from "./parent-session-notifier";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
export declare function handleSessionIdleBackgroundEvent(args: {
|
|
3
|
+
properties: Record<string, unknown>;
|
|
4
|
+
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
5
|
+
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
6
|
+
validateSessionHasOutput: (sessionID: string) => Promise<boolean>;
|
|
7
|
+
checkSessionTodos: (sessionID: string) => Promise<boolean>;
|
|
8
|
+
tryCompleteTask: (task: BackgroundTask, source: string) => Promise<boolean>;
|
|
9
|
+
emitIdleEvent: (sessionID: string) => void;
|
|
10
|
+
}): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
export declare function cleanupTaskAfterSessionEnds(args: {
|
|
3
|
+
task: BackgroundTask;
|
|
4
|
+
tasks: Map<string, BackgroundTask>;
|
|
5
|
+
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
6
|
+
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
7
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
8
|
+
clearNotificationsForTask: (taskId: string) => void;
|
|
9
|
+
releaseConcurrencyKey?: (key: string) => void;
|
|
10
|
+
}): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
2
|
+
/**
|
|
3
|
+
* Validates that a session has actual assistant/tool output before marking complete.
|
|
4
|
+
* Prevents premature completion when session.idle fires before agent responds.
|
|
5
|
+
*/
|
|
6
|
+
export declare function validateSessionHasOutput(client: OpencodeClient, sessionID: string): Promise<boolean>;
|
|
7
|
+
export declare function checkSessionTodos(client: OpencodeClient, sessionID: string): Promise<boolean>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OpencodeClient } from "../constants";
|
|
2
|
+
import type { ConcurrencyManager } from "../concurrency";
|
|
3
|
+
import type { LaunchInput } from "../types";
|
|
4
|
+
export declare function createBackgroundSession(options: {
|
|
5
|
+
client: OpencodeClient;
|
|
6
|
+
input: LaunchInput;
|
|
7
|
+
parentDirectory: string;
|
|
8
|
+
concurrencyManager: ConcurrencyManager;
|
|
9
|
+
concurrencyKey: string;
|
|
10
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BackgroundTask } from "../types";
|
|
2
|
+
import type { ConcurrencyManager } from "../concurrency";
|
|
3
|
+
import type { OpencodeClient, OnSubagentSessionCreated } from "../constants";
|
|
4
|
+
export interface SpawnerContext {
|
|
5
|
+
client: OpencodeClient;
|
|
6
|
+
directory: string;
|
|
7
|
+
concurrencyManager: ConcurrencyManager;
|
|
8
|
+
tmuxEnabled: boolean;
|
|
9
|
+
onSubagentSessionCreated?: OnSubagentSessionCreated;
|
|
10
|
+
onTaskError: (task: BackgroundTask, error: Error) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { BackgroundTask, ResumeInput } from "../types";
|
|
2
|
+
import type { SpawnerContext } from "./spawner-context";
|
|
3
|
+
export declare function resumeTask(task: BackgroundTask, input: ResumeInput, ctx: Pick<SpawnerContext, "client" | "concurrencyManager" | "onTaskError">): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OnSubagentSessionCreated } from "../constants";
|
|
2
|
+
export declare function maybeInvokeTmuxCallback(options: {
|
|
3
|
+
onSubagentSessionCreated?: OnSubagentSessionCreated;
|
|
4
|
+
tmuxEnabled: boolean;
|
|
5
|
+
sessionID: string;
|
|
6
|
+
parentID: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BackgroundTask, LaunchInput, ResumeInput } from "./types";
|
|
2
|
+
import type { OpencodeClient, OnSubagentSessionCreated, QueueItem } from "./constants";
|
|
3
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
+
export interface SpawnerContext {
|
|
5
|
+
client: OpencodeClient;
|
|
6
|
+
directory: string;
|
|
7
|
+
concurrencyManager: ConcurrencyManager;
|
|
8
|
+
tmuxEnabled: boolean;
|
|
9
|
+
onSubagentSessionCreated?: OnSubagentSessionCreated;
|
|
10
|
+
onTaskError: (task: BackgroundTask, error: Error) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function createTask(input: LaunchInput): BackgroundTask;
|
|
13
|
+
export declare function startTask(item: QueueItem, ctx: SpawnerContext): Promise<void>;
|
|
14
|
+
export declare function resumeTask(task: BackgroundTask, input: ResumeInput, ctx: Pick<SpawnerContext, "client" | "concurrencyManager" | "onTaskError">): Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BackgroundTask, LaunchInput } from "./types";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
type QueueItem = {
|
|
4
|
+
task: BackgroundTask;
|
|
5
|
+
input: LaunchInput;
|
|
6
|
+
};
|
|
7
|
+
export declare function pruneStaleState(args: {
|
|
8
|
+
tasks: Map<string, BackgroundTask>;
|
|
9
|
+
notifications: Map<string, BackgroundTask[]>;
|
|
10
|
+
queuesByKey: Map<string, QueueItem[]>;
|
|
11
|
+
concurrencyManager: ConcurrencyManager;
|
|
12
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
13
|
+
clearNotificationsForTask: (taskId: string) => void;
|
|
14
|
+
}): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BackgroundTask, LaunchInput } from "./types";
|
|
2
|
+
import type { QueueItem } from "./constants";
|
|
3
|
+
export declare class TaskStateManager {
|
|
4
|
+
readonly tasks: Map<string, BackgroundTask>;
|
|
5
|
+
readonly notifications: Map<string, BackgroundTask[]>;
|
|
6
|
+
readonly pendingByParent: Map<string, Set<string>>;
|
|
7
|
+
readonly queuesByKey: Map<string, QueueItem[]>;
|
|
8
|
+
readonly processingKeys: Set<string>;
|
|
9
|
+
readonly completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
10
|
+
getTask(id: string): BackgroundTask | undefined;
|
|
11
|
+
findBySession(sessionID: string): BackgroundTask | undefined;
|
|
12
|
+
getTasksByParentSession(sessionID: string): BackgroundTask[];
|
|
13
|
+
getAllDescendantTasks(sessionID: string): BackgroundTask[];
|
|
14
|
+
getRunningTasks(): BackgroundTask[];
|
|
15
|
+
getNonRunningTasks(): BackgroundTask[];
|
|
16
|
+
hasRunningTasks(): boolean;
|
|
17
|
+
getConcurrencyKeyFromInput(input: LaunchInput): string;
|
|
18
|
+
getConcurrencyKeyFromTask(task: BackgroundTask): string;
|
|
19
|
+
addTask(task: BackgroundTask): void;
|
|
20
|
+
removeTask(taskId: string): void;
|
|
21
|
+
trackPendingTask(parentSessionID: string, taskId: string): void;
|
|
22
|
+
cleanupPendingByParent(task: BackgroundTask): void;
|
|
23
|
+
markForNotification(task: BackgroundTask): void;
|
|
24
|
+
getPendingNotifications(sessionID: string): BackgroundTask[];
|
|
25
|
+
clearNotifications(sessionID: string): void;
|
|
26
|
+
clearNotificationsForTask(taskId: string): void;
|
|
27
|
+
addToQueue(key: string, item: QueueItem): void;
|
|
28
|
+
getQueue(key: string): QueueItem[] | undefined;
|
|
29
|
+
removeFromQueue(key: string, taskId: string): boolean;
|
|
30
|
+
setCompletionTimer(taskId: string, timer: ReturnType<typeof setTimeout>): void;
|
|
31
|
+
clearCompletionTimer(taskId: string): void;
|
|
32
|
+
clearAllCompletionTimers(): void;
|
|
33
|
+
clear(): void;
|
|
34
|
+
cancelPendingTask(taskId: string): boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { LaunchInput } from "./types";
|
|
3
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
5
|
+
type QueueItem = {
|
|
6
|
+
task: BackgroundTask;
|
|
7
|
+
input: LaunchInput;
|
|
8
|
+
};
|
|
9
|
+
export declare function cancelBackgroundTask(args: {
|
|
10
|
+
taskId: string;
|
|
11
|
+
options?: {
|
|
12
|
+
source?: string;
|
|
13
|
+
reason?: string;
|
|
14
|
+
abortSession?: boolean;
|
|
15
|
+
skipNotification?: boolean;
|
|
16
|
+
};
|
|
17
|
+
tasks: Map<string, BackgroundTask>;
|
|
18
|
+
queuesByKey: Map<string, QueueItem[]>;
|
|
19
|
+
completionTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
20
|
+
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
21
|
+
concurrencyManager: ConcurrencyManager;
|
|
22
|
+
client: OpencodeClient;
|
|
23
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
24
|
+
markForNotification: (task: BackgroundTask) => void;
|
|
25
|
+
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
26
|
+
}): Promise<boolean>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
4
|
+
export declare function tryCompleteBackgroundTask(args: {
|
|
5
|
+
task: BackgroundTask;
|
|
6
|
+
source: string;
|
|
7
|
+
concurrencyManager: ConcurrencyManager;
|
|
8
|
+
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
9
|
+
client: OpencodeClient;
|
|
10
|
+
markForNotification: (task: BackgroundTask) => void;
|
|
11
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
12
|
+
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
13
|
+
}): Promise<boolean>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BackgroundTaskStatus } from "./types";
|
|
2
|
+
export interface TaskHistoryEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
sessionID?: string;
|
|
5
|
+
agent: string;
|
|
6
|
+
description: string;
|
|
7
|
+
status: BackgroundTaskStatus;
|
|
8
|
+
category?: string;
|
|
9
|
+
startedAt?: Date;
|
|
10
|
+
completedAt?: Date;
|
|
11
|
+
}
|
|
12
|
+
export declare class TaskHistory {
|
|
13
|
+
private entries;
|
|
14
|
+
record(parentSessionID: string | undefined, entry: TaskHistoryEntry): void;
|
|
15
|
+
getByParentSession(parentSessionID: string): TaskHistoryEntry[];
|
|
16
|
+
clearSession(parentSessionID: string): void;
|
|
17
|
+
formatForCompaction(parentSessionID: string): string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { LaunchInput } from "./types";
|
|
3
|
+
type QueueItem = {
|
|
4
|
+
task: BackgroundTask;
|
|
5
|
+
input: LaunchInput;
|
|
6
|
+
};
|
|
7
|
+
export declare function launchBackgroundTask(args: {
|
|
8
|
+
input: LaunchInput;
|
|
9
|
+
tasks: Map<string, BackgroundTask>;
|
|
10
|
+
pendingByParent: Map<string, Set<string>>;
|
|
11
|
+
queuesByKey: Map<string, QueueItem[]>;
|
|
12
|
+
getConcurrencyKeyFromInput: (input: LaunchInput) => string;
|
|
13
|
+
processKey: (key: string) => void;
|
|
14
|
+
}): BackgroundTask;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BackgroundTaskConfig } from "../../config/schema";
|
|
2
|
+
import type { BackgroundTask } from "./types";
|
|
3
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
5
|
+
export declare function pruneStaleTasksAndNotifications(args: {
|
|
6
|
+
tasks: Map<string, BackgroundTask>;
|
|
7
|
+
notifications: Map<string, BackgroundTask[]>;
|
|
8
|
+
onTaskPruned: (taskId: string, task: BackgroundTask, errorMessage: string) => void;
|
|
9
|
+
}): void;
|
|
10
|
+
export type SessionStatusMap = Record<string, {
|
|
11
|
+
type: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function checkAndInterruptStaleTasks(args: {
|
|
14
|
+
tasks: Iterable<BackgroundTask>;
|
|
15
|
+
client: OpencodeClient;
|
|
16
|
+
config: BackgroundTaskConfig | undefined;
|
|
17
|
+
concurrencyManager: ConcurrencyManager;
|
|
18
|
+
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
19
|
+
sessionStatuses?: SessionStatusMap;
|
|
20
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
export declare function getTasksByParentSession(tasks: Iterable<BackgroundTask>, sessionID: string): BackgroundTask[];
|
|
3
|
+
export declare function getAllDescendantTasks(tasksByParent: (sessionID: string) => BackgroundTask[], sessionID: string): BackgroundTask[];
|
|
4
|
+
export declare function findTaskBySession(tasks: Iterable<BackgroundTask>, sessionID: string): BackgroundTask | undefined;
|
|
5
|
+
export declare function getRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[];
|
|
6
|
+
export declare function getNonRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[];
|
|
7
|
+
export declare function hasRunningTasks(tasks: Iterable<BackgroundTask>): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
type QueueItem = {
|
|
4
|
+
task: BackgroundTask;
|
|
5
|
+
input: import("./types").LaunchInput;
|
|
6
|
+
};
|
|
7
|
+
export declare function processConcurrencyKeyQueue(args: {
|
|
8
|
+
key: string;
|
|
9
|
+
queuesByKey: Map<string, QueueItem[]>;
|
|
10
|
+
processingKeys: Set<string>;
|
|
11
|
+
concurrencyManager: ConcurrencyManager;
|
|
12
|
+
startTask: (item: QueueItem) => Promise<void>;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BackgroundTask, ResumeInput } from "./types";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
4
|
+
export declare function resumeBackgroundTask(args: {
|
|
5
|
+
input: ResumeInput;
|
|
6
|
+
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
7
|
+
client: OpencodeClient;
|
|
8
|
+
concurrencyManager: ConcurrencyManager;
|
|
9
|
+
pendingByParent: Map<string, Set<string>>;
|
|
10
|
+
startPolling: () => void;
|
|
11
|
+
markForNotification: (task: BackgroundTask) => void;
|
|
12
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
13
|
+
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
14
|
+
}): Promise<BackgroundTask>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { LaunchInput } from "./types";
|
|
3
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
4
|
+
import type { OpencodeClient } from "./opencode-client";
|
|
5
|
+
type QueueItem = {
|
|
6
|
+
task: BackgroundTask;
|
|
7
|
+
input: LaunchInput;
|
|
8
|
+
};
|
|
9
|
+
export declare function startQueuedTask(args: {
|
|
10
|
+
item: QueueItem;
|
|
11
|
+
client: OpencodeClient;
|
|
12
|
+
defaultDirectory: string;
|
|
13
|
+
tmuxEnabled: boolean;
|
|
14
|
+
onSubagentSessionCreated?: (event: {
|
|
15
|
+
sessionID: string;
|
|
16
|
+
parentID: string;
|
|
17
|
+
title: string;
|
|
18
|
+
}) => Promise<void>;
|
|
19
|
+
startPolling: () => void;
|
|
20
|
+
getConcurrencyKeyFromInput: (input: LaunchInput) => string;
|
|
21
|
+
concurrencyManager: ConcurrencyManager;
|
|
22
|
+
findBySession: (sessionID: string) => BackgroundTask | undefined;
|
|
23
|
+
markForNotification: (task: BackgroundTask) => void;
|
|
24
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
25
|
+
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BackgroundTask } from "./types";
|
|
2
|
+
import type { ConcurrencyManager } from "./concurrency";
|
|
3
|
+
export declare function trackExternalTask(args: {
|
|
4
|
+
input: {
|
|
5
|
+
taskId: string;
|
|
6
|
+
sessionID: string;
|
|
7
|
+
parentSessionID: string;
|
|
8
|
+
description: string;
|
|
9
|
+
agent?: string;
|
|
10
|
+
parentAgent?: string;
|
|
11
|
+
concurrencyKey?: string;
|
|
12
|
+
};
|
|
13
|
+
tasks: Map<string, BackgroundTask>;
|
|
14
|
+
pendingByParent: Map<string, Set<string>>;
|
|
15
|
+
concurrencyManager: ConcurrencyManager;
|
|
16
|
+
startPolling: () => void;
|
|
17
|
+
cleanupPendingByParent: (task: BackgroundTask) => void;
|
|
18
|
+
}): Promise<BackgroundTask>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type BackgroundTaskStatus = "pending" | "running" | "completed" | "error" | "cancelled" | "interrupt";
|
|
2
|
+
export interface ToolCallWindow {
|
|
3
|
+
lastSignature: string;
|
|
4
|
+
consecutiveCount: number;
|
|
5
|
+
threshold: number;
|
|
6
|
+
}
|
|
7
|
+
export interface TaskProgress {
|
|
8
|
+
toolCalls: number;
|
|
9
|
+
lastTool?: string;
|
|
10
|
+
toolCallWindow?: ToolCallWindow;
|
|
11
|
+
lastUpdate: Date;
|
|
12
|
+
lastMessage?: string;
|
|
13
|
+
lastMessageAt?: Date;
|
|
14
|
+
countedToolPartIDs?: Set<string>;
|
|
15
|
+
}
|
|
16
|
+
export interface BackgroundTask {
|
|
17
|
+
id: string;
|
|
18
|
+
sessionID?: string;
|
|
19
|
+
parentSessionID: string;
|
|
20
|
+
parentMessageID: string;
|
|
21
|
+
description: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
agent: string;
|
|
24
|
+
status: BackgroundTaskStatus;
|
|
25
|
+
queuedAt?: Date;
|
|
26
|
+
startedAt?: Date;
|
|
27
|
+
completedAt?: Date;
|
|
28
|
+
result?: string;
|
|
29
|
+
error?: string;
|
|
30
|
+
progress?: TaskProgress;
|
|
31
|
+
parentModel?: {
|
|
32
|
+
providerID: string;
|
|
33
|
+
modelID: string;
|
|
34
|
+
};
|
|
35
|
+
model?: {
|
|
36
|
+
providerID: string;
|
|
37
|
+
modelID: string;
|
|
38
|
+
variant?: string;
|
|
39
|
+
};
|
|
40
|
+
/** Active concurrency slot key */
|
|
41
|
+
concurrencyKey?: string;
|
|
42
|
+
/** Persistent key for re-acquiring concurrency on resume */
|
|
43
|
+
concurrencyGroup?: string;
|
|
44
|
+
/** Parent session's agent name for notification */
|
|
45
|
+
parentAgent?: string;
|
|
46
|
+
/** Parent session's tool restrictions for notification prompts */
|
|
47
|
+
parentTools?: Record<string, boolean>;
|
|
48
|
+
/** Marks if the task was launched from an unstable agent/category */
|
|
49
|
+
isUnstableAgent?: boolean;
|
|
50
|
+
/** Category used for this task (e.g., 'quick', 'construct') */
|
|
51
|
+
category?: string;
|
|
52
|
+
/** Last message count for stability detection */
|
|
53
|
+
lastMsgCount?: number;
|
|
54
|
+
/** Number of consecutive polls with stable message count */
|
|
55
|
+
stablePolls?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface LaunchInput {
|
|
58
|
+
description: string;
|
|
59
|
+
prompt: string;
|
|
60
|
+
agent: string;
|
|
61
|
+
parentSessionID: string;
|
|
62
|
+
parentMessageID: string;
|
|
63
|
+
parentModel?: {
|
|
64
|
+
providerID: string;
|
|
65
|
+
modelID: string;
|
|
66
|
+
};
|
|
67
|
+
parentAgent?: string;
|
|
68
|
+
parentTools?: Record<string, boolean>;
|
|
69
|
+
model?: {
|
|
70
|
+
providerID: string;
|
|
71
|
+
modelID: string;
|
|
72
|
+
variant?: string;
|
|
73
|
+
};
|
|
74
|
+
isUnstableAgent?: boolean;
|
|
75
|
+
skills?: string[];
|
|
76
|
+
skillContent?: string;
|
|
77
|
+
category?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface ResumeInput {
|
|
80
|
+
sessionId: string;
|
|
81
|
+
prompt: string;
|
|
82
|
+
parentSessionID: string;
|
|
83
|
+
parentMessageID: string;
|
|
84
|
+
parentModel?: {
|
|
85
|
+
providerID: string;
|
|
86
|
+
modelID: string;
|
|
87
|
+
};
|
|
88
|
+
parentAgent?: string;
|
|
89
|
+
parentTools?: Record<string, boolean>;
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HANDOFF_TEMPLATE = "# Handoff Command\n\n## Purpose\n\nUse /handoff when:\n- The current session context is getting too long and quality is degrading\n- You want to start fresh while preserving essential context from this session\n- The context window is approaching capacity\n\nThis creates a detailed context summary that can be used to continue work in a new session.\n\n---\n\n# PHASE 0: VALIDATE REQUEST\n\nBefore proceeding, confirm:\n- [ ] There is meaningful work or context in this session to preserve\n- [ ] The user wants to create a handoff summary (not just asking about it)\n\nIf the session is nearly empty or has no meaningful context, inform the user there is nothing substantial to hand off.\n\n---\n\n# PHASE 1: GATHER PROGRAMMATIC CONTEXT\n\nExecute these tools to gather concrete data:\n\n1. session_read({ session_id: \"$SESSION_ID\" }) \u2014 full session history\n2. todoread() \u2014 current task progress\n3. Bash({ command: \"git diff --stat HEAD~10..HEAD\" }) \u2014 recent file changes\n4. Bash({ command: \"git status --porcelain\" }) \u2014 uncommitted changes\n\nSuggested execution order:\n\n```\nsession_read({ session_id: \"$SESSION_ID\" })\ntodoread()\nBash({ command: \"git diff --stat HEAD~10..HEAD\" })\nBash({ command: \"git status --porcelain\" })\n```\n\nAnalyze the gathered outputs to understand:\n- What the user asked for (exact wording)\n- What work was completed\n- What tasks remain incomplete (include todo state)\n- What decisions were made\n- What files were modified or discussed (include git diff/stat + status)\n- What patterns, constraints, or preferences were established\n\n---\n\n# PHASE 2: EXTRACT CONTEXT\n\nWrite the context summary from first person perspective (\"I did...\", \"I told you...\").\n\nFocus on:\n- Capabilities and behavior, not file-by-file implementation details\n- What matters for continuing the work\n- Avoiding excessive implementation details (variable names, storage keys, constants) unless critical\n- USER REQUESTS (AS-IS) must be verbatim (do not paraphrase)\n- EXPLICIT CONSTRAINTS must be verbatim only (do not invent)\n\nQuestions to consider when extracting:\n- What did I just do or implement?\n- What instructions did I already give which are still relevant (e.g. follow patterns in the codebase)?\n- What files did I tell you are important or that I am working on?\n- Did I provide a plan or spec that should be included?\n- What did I already tell you that is important (libraries, patterns, constraints, preferences)?\n- What important technical details did I discover (APIs, methods, patterns)?\n- What caveats, limitations, or open questions did I find?\n\n---\n\n# PHASE 3: FORMAT OUTPUT\n\nGenerate a handoff summary. WRITE the summary to .matrix/handoff.md using the Write tool. Use this exact format:\n\n```\nHANDOFF CONTEXT\n===============\n\nUSER REQUESTS (AS-IS)\n---------------------\n- [Exact verbatim user requests - NOT paraphrased]\n\nGOAL\n----\n[One sentence describing what should be done next]\n\nWORK COMPLETED\n--------------\n- [First person bullet points of what was done]\n- [Include specific file paths when relevant]\n- [Note key implementation decisions]\n\nCURRENT STATE\n-------------\n- [Current state of the codebase or task]\n- [Build/test status if applicable]\n- [Any environment or configuration state]\n\nPENDING TASKS\n-------------\n- [Tasks that were planned but not completed]\n- [Next logical steps to take]\n- [Any blockers or issues encountered]\n- [Include current todo state from todoread()]\n\nKEY FILES\n---------\n- [path/to/file1] - [brief role description]\n- [path/to/file2] - [brief role description]\n(Maximum 10 files, prioritized by importance)\n- (Include files from git diff/stat and git status)\n\nIMPORTANT DECISIONS\n-------------------\n- [Technical decisions that were made and why]\n- [Trade-offs that were considered]\n- [Patterns or conventions established]\n\nEXPLICIT CONSTRAINTS\n--------------------\n- [Verbatim constraints only - from user or existing AGENTS.md]\n- If none, write: None\n\nCONTEXT FOR CONTINUATION\n------------------------\n- [What the next session needs to know to continue]\n- [Warnings or gotchas to be aware of]\n- [References to documentation if relevant]\n```\n\nWrite this content to .matrix/handoff.md using the Write tool. This file will be automatically loaded when a new session starts.\n\nRules for the summary:\n- Plain text with bullets\n- No markdown headers with # (use the format above with dashes)\n- No bold, italic, or code fences within content\n- Use workspace-relative paths for files\n- Keep it focused - only include what matters for continuation\n- Pick an appropriate length based on complexity\n- USER REQUESTS (AS-IS) and EXPLICIT CONSTRAINTS must be verbatim only\n\n---\n\n# PHASE 4: PROVIDE INSTRUCTIONS\n\nAfter writing the file, inform the user:\n\n```\n---\n\nHANDOFF COMPLETE:\n\nContext saved to .matrix/handoff.md\n\nTo continue in a new session:\n1. Press 'n' in OpenCode TUI to open a new session, or run 'opencode' in a new terminal\n2. Your context will be loaded automatically \u2014 no copy-paste needed\n3. Start with your next task: \"Continue from where I left off. [Your next task]\"\n```\n\n---\n\n# IMPORTANT CONSTRAINTS\n\n- DO NOT attempt to programmatically create new sessions (no API available to agents)\n- DO provide a self-contained summary in the .matrix/handoff.md file\n- DO include workspace-relative file paths\n- DO NOT include sensitive information (API keys, credentials, secrets)\n- DO NOT exceed 10 files in the KEY FILES section\n- DO keep the GOAL section to a single sentence or short paragraph\n\n---\n\n# EXECUTE NOW\n\nBegin by gathering programmatic context, then synthesize the handoff summary.\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INIT_DEEP_TEMPLATE = "# /init-deep\n\nGenerate hierarchical AGENTS.md files. Root + complexity-scored subdirectories.\n\n## Usage\n\n```\n/init-deep # Update mode: modify existing + create new where warranted\n/init-deep --create-new # Read existing \u2192 remove all \u2192 regenerate from scratch\n/init-deep --max-depth=2 # Limit directory depth (default: 3)\n```\n\n---\n\n## Workflow (High-Level)\n\n1. **Discovery + Analysis** (concurrent)\n - Fire background explore agents immediately\n - Main session: bash structure + LSP codemap + read existing AGENTS.md\n2. **Score & Decide** - Determine AGENTS.md locations from merged findings\n3. **Generate** - Root first, then subdirs in parallel\n4. **Review** - Deduplicate, trim, validate\n\n<critical>\n**TodoWrite ALL phases. Mark in_progress \u2192 completed in real-time.**\n```\nTodoWrite([\n { id: \"discovery\", content: \"Fire explore agents + LSP codemap + read existing\", status: \"pending\", priority: \"high\" },\n { id: \"scoring\", content: \"Score directories, determine locations\", status: \"pending\", priority: \"high\" },\n { id: \"generate\", content: \"Generate AGENTS.md files (root + subdirs)\", status: \"pending\", priority: \"high\" },\n { id: \"review\", content: \"Deduplicate, validate, trim\", status: \"pending\", priority: \"medium\" }\n])\n```\n</critical>\n\n---\n\n## Phase 1: Discovery + Analysis (Concurrent)\n\n**Mark \"discovery\" as in_progress.**\n\n### Fire Background Explore Agents IMMEDIATELY\n\nDon't wait\u2014these run async while main session works.\n\n```\n// Fire all at once, collect results later\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Explore project structure\", run_in_background=true, prompt=\"Project structure: PREDICT standard patterns for detected language \u2192 REPORT deviations only\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Find entry points\", run_in_background=true, prompt=\"Entry points: FIND main files \u2192 REPORT non-standard organization\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Find conventions\", run_in_background=true, prompt=\"Conventions: FIND config files (.eslintrc, pyproject.toml, .editorconfig) \u2192 REPORT project-specific rules\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Find anti-patterns\", run_in_background=true, prompt=\"Anti-patterns: FIND 'DO NOT', 'NEVER', 'ALWAYS', 'DEPRECATED' comments \u2192 LIST forbidden patterns\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Explore build/CI\", run_in_background=true, prompt=\"Build/CI: FIND .github/workflows, Makefile \u2192 REPORT non-standard patterns\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Find test patterns\", run_in_background=true, prompt=\"Test patterns: FIND test configs, test structure \u2192 REPORT unique conventions\")\n```\n\n<dynamic-agents>\n**DYNAMIC AGENT SPAWNING**: After bash analysis, spawn ADDITIONAL explore agents based on project scale:\n\n| Factor | Threshold | Additional Agents |\n|--------|-----------|-------------------|\n| **Total files** | >100 | +1 per 100 files |\n| **Total lines** | >10k | +1 per 10k lines |\n| **Directory depth** | \u22654 | +2 for deep exploration |\n| **Large files (>500 lines)** | >10 files | +1 for complexity hotspots |\n| **Monorepo** | detected | +1 per package/workspace |\n| **Multiple languages** | >1 | +1 per language |\n\n```bash\n# Measure project scale first\ntotal_files=$(find . -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | wc -l)\ntotal_lines=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" -o -name \"*.go\" \\) -not -path '*/node_modules/*' -exec wc -l {} + 2>/dev/null | tail -1 | awk '{print $1}')\nlarge_files=$(find . -type f \\( -name \"*.ts\" -o -name \"*.py\" \\) -not -path '*/node_modules/*' -exec wc -l {} + 2>/dev/null | awk '$1 > 500 {count++} END {print count+0}')\nmax_depth=$(find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | awk -F/ '{print NF}' | sort -rn | head -1)\n```\n\nExample spawning:\n```\n// 500 files, 50k lines, depth 6, 15 large files \u2192 spawn 5+5+2+1 = 13 additional agents\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Analyze large files\", run_in_background=true, prompt=\"Large file analysis: FIND files >500 lines, REPORT complexity hotspots\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Explore deep modules\", run_in_background=true, prompt=\"Deep modules at depth 4+: FIND hidden patterns, internal conventions\")\ntask(subagent_type=\"trinity\", load_skills=[], description=\"Find shared utilities\", run_in_background=true, prompt=\"Cross-cutting concerns: FIND shared utilities across directories\")\n// ... more based on calculation\n```\n</dynamic-agents>\n\n### Main Session: Concurrent Analysis\n\n**While background agents run**, main session does:\n\n#### 1. Bash Structural Analysis\n```bash\n# Directory depth + file counts\nfind . -type d -not -path '*/\\.*' -not -path '*/node_modules/*' -not -path '*/venv/*' -not -path '*/dist/*' -not -path '*/build/*' | awk -F/ '{print NF-1}' | sort -n | uniq -c\n\n# Files per directory (top 30)\nfind . -type f -not -path '*/\\.*' -not -path '*/node_modules/*' | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -30\n\n# Code concentration by extension\nfind . -type f \\( -name \"*.py\" -o -name \"*.ts\" -o -name \"*.tsx\" -o -name \"*.js\" -o -name \"*.go\" -o -name \"*.rs\" \\) -not -path '*/node_modules/*' | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -20\n\n# Existing AGENTS.md / CLAUDE.md\nfind . -type f \\( -name \"AGENTS.md\" -o -name \"CLAUDE.md\" \\) -not -path '*/node_modules/*' 2>/dev/null\n```\n\n#### 2. Read Existing AGENTS.md\n```\nFor each existing file found:\n Read(filePath=file)\n Extract: key insights, conventions, anti-patterns\n Store in EXISTING_AGENTS map\n```\n\nIf `--create-new`: Read all existing first (preserve context) \u2192 then delete all \u2192 regenerate.\n\n#### 3. LSP Codemap (if available)\n```\nLspServers() # Check availability\n\n# Entry points (parallel)\nLspDocumentSymbols(filePath=\"src/index.ts\")\nLspDocumentSymbols(filePath=\"main.py\")\n\n# Key symbols (parallel)\nLspWorkspaceSymbols(filePath=\".\", query=\"class\")\nLspWorkspaceSymbols(filePath=\".\", query=\"interface\")\nLspWorkspaceSymbols(filePath=\".\", query=\"function\")\n\n# Centrality for top exports\nLspFindReferences(filePath=\"...\", line=X, character=Y)\n```\n\n**LSP Fallback**: If unavailable, rely on explore agents + AST-grep.\n\n### Collect Background Results\n\n```\n// After main session analysis done, collect all task results\nfor each task_id: background_output(task_id=\"...\")\n```\n\n**Merge: bash + LSP + existing + explore findings. Mark \"discovery\" as completed.**\n\n---\n\n## Phase 2: Scoring & Location Decision\n\n**Mark \"scoring\" as in_progress.**\n\n### Scoring Matrix\n\n| Factor | Weight | High Threshold | Source |\n|--------|--------|----------------|--------|\n| File count | 3x | >20 | bash |\n| Subdir count | 2x | >5 | bash |\n| Code ratio | 2x | >70% | bash |\n| Unique patterns | 1x | Has own config | explore |\n| Module boundary | 2x | Has index.ts/__init__.py | bash |\n| Symbol density | 2x | >30 symbols | LSP |\n| Export count | 2x | >10 exports | LSP |\n| Reference centrality | 3x | >20 refs | LSP |\n\n### Decision Rules\n\n| Score | Action |\n|-------|--------|\n| **Root (.)** | ALWAYS create |\n| **>15** | Create AGENTS.md |\n| **8-15** | Create if distinct domain |\n| **<8** | Skip (parent covers) |\n\n### Output\n```\nAGENTS_LOCATIONS = [\n { path: \".\", type: \"root\" },\n { path: \"src/hooks\", score: 18, reason: \"high complexity\" },\n { path: \"src/api\", score: 12, reason: \"distinct domain\" }\n]\n```\n\n**Mark \"scoring\" as completed.**\n\n---\n\n## Phase 3: Generate AGENTS.md\n\n**Mark \"generate\" as in_progress.**\n\n<critical>\n**File Writing Rule**: If AGENTS.md already exists at the target path \u2192 use `Edit` tool. If it does NOT exist \u2192 use `Write` tool.\nNEVER use Write to overwrite an existing file. ALWAYS check existence first via `Read` or discovery results.\n</critical>\n\n### Root AGENTS.md (Full Treatment)\n\n```markdown\n# PROJECT KNOWLEDGE BASE\n\n**Generated:** {TIMESTAMP}\n**Commit:** {SHORT_SHA}\n**Branch:** {BRANCH}\n\n## OVERVIEW\n{1-2 sentences: what + core stack}\n\n## STRUCTURE\n\\`\\`\\`\n{root}/\n\u251C\u2500\u2500 {dir}/ # {non-obvious purpose only}\n\u2514\u2500\u2500 {entry}\n\\`\\`\\`\n\n## WHERE TO LOOK\n| Task | Location | Notes |\n|------|----------|-------|\n\n## CODE MAP\n{From LSP - skip if unavailable or project <10 files}\n\n| Symbol | Type | Location | Refs | Role |\n|--------|------|----------|------|------|\n\n## CONVENTIONS\n{ONLY deviations from standard}\n\n## ANTI-PATTERNS (THIS PROJECT)\n{Explicitly forbidden here}\n\n## UNIQUE STYLES\n{Project-specific}\n\n## COMMANDS\n\\`\\`\\`bash\n{dev/test/build}\n\\`\\`\\`\n\n## NOTES\n{Gotchas}\n```\n\n**Quality gates**: 50-150 lines, no generic advice, no obvious info.\n\n### Subdirectory AGENTS.md (Parallel)\n\nLaunch writing tasks for each location:\n\n```\nfor loc in AGENTS_LOCATIONS (except root):\n task(category=\"broadcast\", load_skills=[], run_in_background=false, description=\"Generate AGENTS.md\", prompt=\\`\n Generate AGENTS.md for: ${loc.path}\n - Reason: ${loc.reason}\n - 30-80 lines max\n - NEVER repeat parent content\n - Sections: OVERVIEW (1 line), STRUCTURE (if >5 subdirs), WHERE TO LOOK, CONVENTIONS (if different), ANTI-PATTERNS\n \\`)\n```\n\n**Wait for all. Mark \"generate\" as completed.**\n\n---\n\n## Phase 4: Review & Deduplicate\n\n**Mark \"review\" as in_progress.**\n\nFor each generated file:\n- Remove generic advice\n- Remove parent duplicates\n- Trim to size limits\n- Verify telegraphic style\n\n**Mark \"review\" as completed.**\n\n---\n\n## Final Report\n\n```\n=== init-deep Complete ===\n\nMode: {update | create-new}\n\nFiles:\n [OK] ./AGENTS.md (root, {N} lines)\n [OK] ./src/hooks/AGENTS.md ({N} lines)\n\nDirs Analyzed: {N}\nAGENTS.md Created: {N}\nAGENTS.md Updated: {N}\n\nHierarchy:\n ./AGENTS.md\n \u2514\u2500\u2500 src/hooks/AGENTS.md\n```\n\n---\n\n## Anti-Patterns\n\n- **Static agent count**: MUST vary agents based on project size/depth\n- **Sequential execution**: MUST parallel (explore + LSP concurrent)\n- **Ignoring existing**: ALWAYS read existing first, even with --create-new\n- **Over-documenting**: Not every dir needs AGENTS.md\n- **Redundancy**: Child never repeats parent\n- **Generic content**: Remove anything that applies to ALL projects\n- **Verbose style**: Telegraphic or die";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const MATRIX_LOOP_TEMPLATE = "You are starting a Matrix Loop - a self-referential development loop that runs until task completion.\n\n## How Matrix Loop Works\n\n1. You will work on the task continuously\n2. When you believe the task is FULLY complete, output: `<promise>{{COMPLETION_PROMISE}}</promise>`\n3. If you don't output the promise, the loop will automatically inject another prompt to continue\n4. Maximum iterations: Configurable (default 100)\n\n## Rules\n\n- Focus on completing the task fully, not partially\n- Don't output the completion promise until the task is truly done\n- Each iteration should make meaningful progress toward the goal\n- If stuck, try different approaches\n- Use todos to track your progress\n\n## Exit Conditions\n\n1. **Completion**: Output your completion promise tag when fully complete\n2. **Max Iterations**: Loop stops automatically at limit\n3. **Cancel**: User runs `/cancel-loop` command\n\n## Your Task\n\nParse the arguments below and begin working on the task. The format is:\n`\"task description\" [--completion-promise=TEXT] [--max-iterations=N]`\n\nDefault completion promise is \"DONE\" and default max iterations is 100.";
|
|
2
|
+
export declare const CANCEL_LOOP_TEMPLATE = "Cancel the currently active Matrix Loop.\n\nThis will:\n1. Stop the loop from continuing\n2. Clear the loop state file\n3. Allow the session to end normally\n\nCheck if a loop is active and cancel it. Inform the user of the result.";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PICKUP_TEMPLATE = "# Pickup Command\n\n## Purpose\n\nUse /pickup to load handoff context from a previous session.\nThis reads the .matrix/handoff.md file created by /handoff and uses it as context for this session.\n\n---\n\n# PHASE 1: LOAD HANDOFF FILE\n\n1. Read the file .matrix/handoff.md using the Read tool\n2. If the file does not exist, inform the user:\n \"No handoff context found. Run /handoff in a previous session first to create one.\"\n Then STOP \u2014 do not proceed to Phase 2.\n\n---\n\n# PHASE 2: ARCHIVE THE FILE\n\nAfter successfully reading the handoff content:\n\n1. Rename .matrix/handoff.md to .matrix/handoff.consumed.md using Bash:\n Bash({ command: \"mv .matrix/handoff.md .matrix/handoff.consumed.md\" })\n\nThis prevents the same handoff from being picked up again.\n\n---\n\n# PHASE 3: APPLY CONTEXT\n\n1. Acknowledge the loaded context to the user with a brief summary:\n - What the previous session was working on (from GOAL section)\n - What was completed (from WORK COMPLETED section)\n - What remains (from PENDING TASKS section)\n\n2. State: \"Handoff context loaded. Ready to continue.\"\n\n3. If the user provided additional instructions with the /pickup command, begin working on those immediately using the handoff context.\n\n---\n\n# IMPORTANT CONSTRAINTS\n\n- DO read the handoff file using the Read tool \u2014 do not guess or fabricate context\n- DO archive the file after reading to prevent duplicate pickups\n- DO NOT modify the handoff content \u2014 use it as-is for context\n- DO NOT attempt to load handoff.consumed.md \u2014 that is a previously consumed handoff\n- DO summarize the context briefly \u2014 the user wants to know what was picked up\n- DO begin working immediately if the user provided a task alongside /pickup\n";
|