opencode-matrixx-v2 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +82 -0
- package/README.md +205 -2
- package/dist/agents/agent-builder.d.ts +28 -0
- package/dist/agents/agent-config.d.ts +46 -0
- package/dist/agents/agents.transform.d.ts +67 -0
- package/dist/agents/builtin-agents/agent-overrides.d.ts +12 -0
- package/dist/agents/builtin-agents/available-skills.d.ts +4 -0
- package/dist/agents/builtin-agents/general-agents.d.ts +21 -0
- package/dist/agents/builtin-agents/keymaker-agent.d.ts +20 -0
- package/dist/agents/builtin-agents/model-resolution.d.ts +25 -0
- package/dist/agents/builtin-agents/morpheus-agent.d.ts +22 -0
- package/dist/agents/builtin-agents/niobe-agent.d.ts +19 -0
- package/dist/agents/builtin-agents/resolve-file-uri.d.ts +1 -0
- package/dist/agents/builtin-agents.d.ts +5 -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 +54 -0
- package/dist/agents/env-context.d.ts +7 -0
- package/dist/agents/index.d.ts +14 -0
- package/dist/agents/keymaker.d.ts +6 -0
- package/dist/agents/merovingian.d.ts +8 -0
- package/dist/agents/model-directives.d.ts +7 -0
- package/dist/agents/morpheus.d.ts +6 -0
- package/dist/agents/mouse/agent.d.ts +32 -0
- package/dist/agents/mouse/deepseek.d.ts +16 -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 +7 -0
- package/dist/agents/mouse/mimo.d.ts +15 -0
- package/dist/agents/mouse/qwen.d.ts +16 -0
- package/dist/agents/mouse/shared.d.ts +7 -0
- package/dist/agents/niobe/agent.d.ts +34 -0
- package/dist/agents/niobe/default.d.ts +11 -0
- package/dist/agents/niobe/gpt.d.ts +19 -0
- package/dist/agents/niobe/index.d.ts +6 -0
- package/dist/agents/niobe/prompt-section-builder.d.ts +13 -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 +25 -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 +1 -0
- package/dist/agents/oracle/system-prompt.d.ts +20 -0
- package/dist/agents/sati.d.ts +7 -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 +76 -0
- package/dist/cli/doctor/checks/auth.d.ts +2 -0
- package/dist/cli/doctor/checks/config.d.ts +2 -0
- package/dist/cli/doctor/checks/context-mode.d.ts +16 -0
- package/dist/cli/doctor/checks/dcp.d.ts +8 -0
- package/dist/cli/doctor/checks/docker.d.ts +2 -0
- package/dist/cli/doctor/checks/headroom.d.ts +2 -0
- package/dist/cli/doctor/checks/helpers.d.ts +2 -0
- package/dist/cli/doctor/checks/index.d.ts +16 -0
- package/dist/cli/doctor/checks/mcp.d.ts +2 -0
- package/dist/cli/doctor/checks/optional.d.ts +2 -0
- package/dist/cli/doctor/checks/plugin.d.ts +2 -0
- package/dist/cli/doctor/checks/rtk.d.ts +2 -0
- package/dist/cli/doctor/checks/runtime.d.ts +2 -0
- package/dist/cli/doctor/checks/tmux.d.ts +2 -0
- package/dist/cli/doctor/format.d.ts +3 -0
- package/dist/cli/doctor/index.d.ts +9 -0
- package/dist/cli/doctor/types.d.ts +24 -0
- package/dist/cli/index.d.ts +14 -0
- package/dist/cli/install/index.d.ts +12 -0
- package/dist/cli/setup/config-writer.d.ts +12 -0
- package/dist/cli/setup/constants.d.ts +8 -0
- package/dist/cli/setup/deps.d.ts +8 -0
- package/dist/cli/setup/index.d.ts +9 -0
- package/dist/cli/setup/opencode-sync.d.ts +9 -0
- package/dist/cli/setup/preset-wizard.d.ts +36 -0
- package/dist/cli/setup/prompts.d.ts +4 -0
- package/dist/cli/setup/types.d.ts +31 -0
- package/dist/cli.js +19958 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/migrations/index.d.ts +1 -0
- package/dist/config/migrations/model-migration.d.ts +17 -0
- package/dist/config/preset-applier.d.ts +17 -0
- package/dist/config/schema/agent-definitions.d.ts +3 -0
- package/dist/config/schema/agent-names.d.ts +71 -0
- package/dist/config/schema/agent-overrides.d.ts +653 -0
- package/dist/config/schema/assembly.d.ts +13 -0
- package/dist/config/schema/babysitting.d.ts +5 -0
- package/dist/config/schema/background-task.d.ts +53 -0
- package/dist/config/schema/browser-automation.d.ts +17 -0
- package/dist/config/schema/categories.d.ts +65 -0
- package/dist/config/schema/commands.d.ts +21 -0
- package/dist/config/schema/comment-checker.d.ts +5 -0
- package/dist/config/schema/context-mode.d.ts +14 -0
- package/dist/config/schema/dcp.d.ts +367 -0
- package/dist/config/schema/evolution.d.ts +89 -0
- package/dist/config/schema/experimental.d.ts +14 -0
- package/dist/config/schema/headroom.d.ts +23 -0
- package/dist/config/schema/hooks.d.ts +70 -0
- package/dist/config/schema/internal/permission.d.ts +11 -0
- package/dist/config/schema/internal/request.d.ts +7 -0
- package/dist/config/schema/knowledge.d.ts +34 -0
- package/dist/config/schema/matrix-loop.d.ts +7 -0
- package/dist/config/schema/matrixx-config.d.ts +1299 -0
- package/dist/config/schema/matrixx-self-config.d.ts +6 -0
- package/dist/config/schema/memory.d.ts +191 -0
- package/dist/config/schema/model-config.d.ts +59 -0
- package/dist/config/schema/model-presets.d.ts +40 -0
- package/dist/config/schema/morpheus-agent.d.ts +8 -0
- package/dist/config/schema/morpheus.d.ts +26 -0
- package/dist/config/schema/notification.d.ts +12 -0
- package/dist/config/schema/plans.d.ts +6 -0
- package/dist/config/schema/rtk.d.ts +7 -0
- package/dist/config/schema/runtime-fallback.d.ts +10 -0
- package/dist/config/schema/security.d.ts +86 -0
- package/dist/config/schema/skills.d.ts +40 -0
- package/dist/config/schema/software-dev-enforcement.d.ts +30 -0
- package/dist/config/schema/subagent-block.d.ts +13 -0
- package/dist/config/schema/task.d.ts +6 -0
- package/dist/config/schema/tasks.d.ts +29 -0
- package/dist/config/schema/tdd-enforcer.d.ts +5 -0
- package/dist/config/schema/tmux.d.ts +23 -0
- package/dist/config/schema/tool-policy.d.ts +10 -0
- package/dist/config/schema.d.ts +39 -0
- package/dist/features/assembly-state/index.d.ts +1 -0
- package/dist/features/assembly-state/manager.d.ts +6 -0
- package/dist/features/background-agent/concurrency.d.ts +36 -0
- package/dist/features/background-agent/constants.d.ts +55 -0
- package/dist/features/background-agent/error-helpers.d.ts +4 -0
- package/dist/features/background-agent/handle-index.d.ts +79 -0
- package/dist/features/background-agent/index.d.ts +6 -0
- package/dist/features/background-agent/loop-detector.d.ts +16 -0
- package/dist/features/background-agent/manager.bench.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +198 -0
- package/dist/features/background-agent/message-dir.d.ts +5 -0
- package/dist/features/background-agent/notification-builder.d.ts +11 -0
- package/dist/features/background-agent/revive.d.ts +39 -0
- package/dist/features/background-agent/session-output.d.ts +22 -0
- package/dist/features/background-agent/state.d.ts +35 -0
- package/dist/features/background-agent/task-history.d.ts +38 -0
- package/dist/features/background-agent/types.d.ts +113 -0
- package/dist/features/background-agent/wallclock.d.ts +37 -0
- package/dist/features/bdd/schema.d.ts +434 -0
- package/dist/features/bdd/types.d.ts +2 -0
- package/dist/features/builtin-commands/commands.d.ts +3 -0
- package/dist/features/builtin-commands/commands.transform.d.ts +57 -0
- package/dist/features/builtin-commands/templates/assembly.d.ts +1 -0
- package/dist/features/builtin-commands/templates/bdd-pipeline.d.ts +1 -0
- package/dist/features/builtin-commands/templates/cleanup-tasks.d.ts +1 -0
- package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
- package/dist/features/builtin-commands/templates/evolution.d.ts +1 -0
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -0
- package/dist/features/builtin-commands/templates/humanize.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/plan-review.d.ts +1 -0
- package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
- package/dist/features/builtin-commands/templates/quality-assurance.d.ts +1 -0
- package/dist/features/builtin-commands/templates/quality-audit.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/research.d.ts +1 -0
- package/dist/features/builtin-commands/templates/security-audit.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/templates/task-list.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ultrawork.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +3 -0
- package/dist/features/command-loader/index.d.ts +1 -0
- package/dist/features/command-loader/types.d.ts +43 -0
- package/dist/features/completion-review/admission-gate.d.ts +84 -0
- package/dist/features/completion-review/calibration-baseline-check.d.ts +10 -0
- package/dist/features/completion-review/calibration-baseline.d.ts +9 -0
- package/dist/features/completion-review/calibration-corpus-aggregate.d.ts +18 -0
- package/dist/features/completion-review/calibration-corpus-scan.d.ts +20 -0
- package/dist/features/completion-review/calibration-corpus-types.d.ts +95 -0
- package/dist/features/completion-review/calibration-corpus.d.ts +5 -0
- package/dist/features/completion-review/calibration-observed.d.ts +16 -0
- package/dist/features/completion-review/calibration-render.d.ts +15 -0
- package/dist/features/completion-review/calibration-types.d.ts +51 -0
- package/dist/features/completion-review/calibration.d.ts +49 -0
- package/dist/features/completion-review/degradation-evaluate.d.ts +17 -0
- package/dist/features/completion-review/degradation-gate.d.ts +44 -0
- package/dist/features/completion-review/degradation-items.d.ts +38 -0
- package/dist/features/completion-review/degradation-model.d.ts +31 -0
- package/dist/features/completion-review/degradation-types.d.ts +99 -0
- package/dist/features/completion-review/degradation-vacuity.d.ts +32 -0
- package/dist/features/completion-review/degradation.d.ts +19 -0
- package/dist/features/completion-review/evidence-capture.d.ts +39 -0
- package/dist/features/completion-review/evidence-notepad.d.ts +15 -0
- package/dist/features/completion-review/evidence-resolve.d.ts +18 -0
- package/dist/features/completion-review/evidence-types.d.ts +34 -0
- package/dist/features/completion-review/gather-attribution.d.ts +36 -0
- package/dist/features/completion-review/gather-drift.d.ts +16 -0
- package/dist/features/completion-review/gather-notepads.d.ts +13 -0
- package/dist/features/completion-review/gather-types.d.ts +109 -0
- package/dist/features/completion-review/gather.d.ts +18 -0
- package/dist/features/completion-review/index.d.ts +35 -0
- package/dist/features/completion-review/report-gate.d.ts +29 -0
- package/dist/features/completion-review/report-sidecar.d.ts +2 -0
- package/dist/features/completion-review/report-summary.d.ts +10 -0
- package/dist/features/completion-review/report-taxonomy.d.ts +21 -0
- package/dist/features/completion-review/report-types.d.ts +142 -0
- package/dist/features/completion-review/report-write.d.ts +22 -0
- package/dist/features/completion-review/report.d.ts +9 -0
- package/dist/features/completion-review/rubric-dimensions.d.ts +11 -0
- package/dist/features/completion-review/rubric-dod.d.ts +10 -0
- package/dist/features/completion-review/rubric-drift.d.ts +6 -0
- package/dist/features/completion-review/rubric-gate.d.ts +1 -0
- package/dist/features/completion-review/rubric-score.d.ts +16 -0
- package/dist/features/completion-review/rubric-test-decision.d.ts +9 -0
- package/dist/features/completion-review/rubric-types.d.ts +87 -0
- package/dist/features/completion-review/rubric.d.ts +42 -0
- package/dist/features/context-injector/collector.d.ts +13 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +28 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/context-mode-routing/routing-block.d.ts +24 -0
- package/dist/features/context-mode-routing/system-transform.d.ts +30 -0
- package/dist/features/evolution/compressor/index.d.ts +5 -0
- package/dist/features/evolution/compressor/interface.d.ts +10 -0
- package/dist/features/evolution/compressor/llm.d.ts +22 -0
- package/dist/features/evolution/evaluator.d.ts +11 -0
- package/dist/features/evolution/index.d.ts +11 -0
- package/dist/features/evolution/pipeline.d.ts +9 -0
- package/dist/features/evolution/schema.d.ts +46 -0
- package/dist/features/evolution/store/budget-ledger.d.ts +46 -0
- package/dist/features/evolution/store/lifecycle.d.ts +52 -0
- package/dist/features/evolution/store/project-identity.d.ts +27 -0
- package/dist/features/evolution/store/query.d.ts +23 -0
- package/dist/features/evolution/store/trace-store.d.ts +22 -0
- package/dist/features/evolution/types.d.ts +84 -0
- package/dist/features/evolution/writer-emit.d.ts +17 -0
- package/dist/features/evolution/writer-frontmatter.d.ts +23 -0
- package/dist/features/evolution/writer-supersede.d.ts +20 -0
- package/dist/features/evolution/writer.d.ts +24 -0
- package/dist/features/handoff/constants.d.ts +8 -0
- package/dist/features/handoff/index.d.ts +4 -0
- package/dist/features/handoff/schema.d.ts +90 -0
- package/dist/features/handoff/storage.d.ts +7 -0
- package/dist/features/handoff/validate.d.ts +22 -0
- package/dist/features/hook-message-injector/constants.d.ts +1 -0
- package/dist/features/hook-message-injector/index.d.ts +5 -0
- package/dist/features/hook-message-injector/injector.d.ts +62 -0
- package/dist/features/hook-message-injector/sdk-message-cache.d.ts +34 -0
- package/dist/features/hook-message-injector/types.d.ts +46 -0
- package/dist/features/knowledge-hub/index.d.ts +3 -0
- package/dist/features/knowledge-hub/loader.d.ts +11 -0
- package/dist/features/knowledge-hub/resolver.d.ts +2 -0
- package/dist/features/mission-state/atomic-write.d.ts +8 -0
- package/dist/features/mission-state/completion.d.ts +58 -0
- package/dist/features/mission-state/constants.d.ts +56 -0
- package/dist/features/mission-state/index.d.ts +7 -0
- package/dist/features/mission-state/plan-file-read.d.ts +15 -0
- package/dist/features/mission-state/plan-storage.d.ts +67 -0
- package/dist/features/mission-state/reconcile.d.ts +96 -0
- package/dist/features/mission-state/rehydrate.d.ts +30 -0
- package/dist/features/mission-state/storage.d.ts +53 -0
- package/dist/features/mission-state/types.d.ts +78 -0
- package/dist/features/plan-contract/appendix.d.ts +11 -0
- package/dist/features/plan-contract/constants.d.ts +18 -0
- package/dist/features/plan-contract/front-matter.d.ts +59 -0
- package/dist/features/plan-contract/index.d.ts +17 -0
- package/dist/features/plan-contract/lifecycle.d.ts +44 -0
- package/dist/features/plan-contract/migration-report.d.ts +50 -0
- package/dist/features/plan-contract/migration.d.ts +62 -0
- package/dist/features/plan-contract/parse.d.ts +38 -0
- package/dist/features/plan-contract/region.d.ts +67 -0
- package/dist/features/plan-contract/schema.d.ts +106 -0
- package/dist/features/plan-contract/section-registry-h3.d.ts +14 -0
- package/dist/features/plan-contract/section-registry.d.ts +87 -0
- package/dist/features/plan-contract/skeleton.d.ts +5 -0
- package/dist/features/plan-contract/types.d.ts +56 -0
- package/dist/features/plan-contract/validate.d.ts +12 -0
- package/dist/features/preset-state/manager.d.ts +5 -0
- package/dist/features/rtk-routing/routing-block.d.ts +19 -0
- package/dist/features/rtk-routing/system-transform.d.ts +43 -0
- package/dist/features/session-memory/compacting.d.ts +9 -0
- package/dist/features/session-memory/constants.d.ts +18 -0
- package/dist/features/session-memory/index.d.ts +13 -0
- package/dist/features/session-memory/recall.d.ts +64 -0
- package/dist/features/session-memory/retention.d.ts +29 -0
- package/dist/features/session-memory/storage.d.ts +21 -0
- package/dist/features/session-memory/summary.d.ts +26 -0
- package/dist/features/session-memory/types.d.ts +43 -0
- package/dist/features/session-state/state.d.ts +33 -0
- package/dist/features/task-session-scope/ancestry.d.ts +23 -0
- package/dist/features/task-session-scope/index.d.ts +2 -0
- package/dist/features/task-session-scope/session-task-pending.d.ts +83 -0
- package/dist/features/task-storage/storage.d.ts +23 -0
- package/dist/features/task-storage/types.d.ts +29 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +55 -0
- package/dist/features/task-toast-manager/types.d.ts +24 -0
- package/dist/features/tool-metadata-store/call-id.d.ts +6 -0
- package/dist/features/tool-metadata-store/index.d.ts +4 -0
- package/dist/features/tool-metadata-store/store.d.ts +39 -0
- package/dist/features/ultrawork-state/index.d.ts +1 -0
- package/dist/features/ultrawork-state/manager.d.ts +6 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
- package/dist/hooks/agent-usage-reminder/hook.d.ts +16 -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-effort/hook.d.ts +26 -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 +23 -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 +34 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +1 -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 +9 -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 +5 -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 +12 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/background-task-blocker/hook.d.ts +10 -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 +19 -0
- package/dist/hooks/comment-checker/cli-runner.d.ts +20 -0
- package/dist/hooks/comment-checker/cli.d.ts +52 -0
- package/dist/hooks/comment-checker/downloader.d.ts +20 -0
- package/dist/hooks/comment-checker/hook.d.ts +19 -0
- package/dist/hooks/comment-checker/pending-calls.d.ts +4 -0
- package/dist/hooks/comment-checker/types.d.ts +13 -0
- package/dist/hooks/compaction-context-injector/hook.d.ts +8 -0
- package/dist/hooks/context-mode-enforcer/constants.d.ts +9 -0
- package/dist/hooks/context-mode-enforcer/guidance-throttle.d.ts +7 -0
- package/dist/hooks/context-mode-enforcer/hook.d.ts +3 -0
- package/dist/hooks/context-window-limit-recovery/client.d.ts +2 -0
- package/dist/hooks/context-window-limit-recovery/empty-content-recovery.d.ts +8 -0
- package/dist/hooks/context-window-limit-recovery/executor.d.ts +5 -0
- package/dist/hooks/context-window-limit-recovery/index.d.ts +8 -0
- package/dist/hooks/context-window-limit-recovery/message-builder.d.ts +4 -0
- package/dist/hooks/context-window-limit-recovery/parser-patterns.d.ts +11 -0
- package/dist/hooks/context-window-limit-recovery/parser.d.ts +15 -0
- package/dist/hooks/context-window-limit-recovery/recovery-hook.d.ts +11 -0
- package/dist/hooks/context-window-limit-recovery/state.d.ts +6 -0
- package/dist/hooks/context-window-limit-recovery/summarize-retry-strategy.d.ts +11 -0
- package/dist/hooks/context-window-limit-recovery/types.d.ts +31 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/dcp-nudge-sanitizer/constants.d.ts +5 -0
- package/dist/hooks/dcp-nudge-sanitizer/hook.d.ts +34 -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/patterns.d.ts +11 -0
- package/dist/hooks/design-intent-preserver/constants.d.ts +6 -0
- package/dist/hooks/design-intent-preserver/hook.d.ts +19 -0
- package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -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 +20 -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-injector/factory.d.ts +34 -0
- package/dist/hooks/directory-injector/index.d.ts +1 -0
- package/dist/hooks/docs-lookup-guard/constants.d.ts +6 -0
- package/dist/hooks/docs-lookup-guard/hook.d.ts +3 -0
- package/dist/hooks/document-reader-guard/constants.d.ts +5 -0
- package/dist/hooks/document-reader-guard/hook.d.ts +3 -0
- package/dist/hooks/domain-keyword-detector/constants.d.ts +18 -0
- package/dist/hooks/domain-keyword-detector/detector.d.ts +16 -0
- package/dist/hooks/domain-keyword-detector/hook.d.ts +26 -0
- package/dist/hooks/domain-keyword-detector/index.d.ts +3 -0
- package/dist/hooks/edit-error-recovery/hook.d.ts +31 -0
- package/dist/hooks/empty-task-response-detector.d.ts +12 -0
- package/dist/hooks/env-context-injector/flat.d.ts +22 -0
- package/dist/hooks/env-context-injector/index.d.ts +39 -0
- package/dist/hooks/env-file-write-guard/hook.d.ts +15 -0
- package/dist/hooks/env-file-write-guard/sensitive-file-matcher.d.ts +1 -0
- package/dist/hooks/evolution-compressor/host-llm-call.d.ts +15 -0
- package/dist/hooks/evolution-hitl/flat.d.ts +29 -0
- package/dist/hooks/evolution-hitl/index.d.ts +27 -0
- package/dist/hooks/evolution-quality-gate/index.d.ts +6 -0
- package/dist/hooks/evolution-watcher/index.d.ts +21 -0
- package/dist/hooks/evolution-watcher/utils.d.ts +5 -0
- package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
- package/dist/hooks/index.d.ts +68 -0
- package/dist/hooks/input-secret-guard/detection-rules.d.ts +10 -0
- package/dist/hooks/input-secret-guard/detector.d.ts +21 -0
- package/dist/hooks/input-secret-guard/hook.d.ts +19 -0
- package/dist/hooks/input-secret-guard/redactor.d.ts +2 -0
- package/dist/hooks/input-secret-guard/session-allow-cache.d.ts +6 -0
- package/dist/hooks/interactive-bash-session/constants.d.ts +3 -0
- package/dist/hooks/interactive-bash-session/hook.d.ts +18 -0
- package/dist/hooks/interactive-bash-session/parser.d.ts +20 -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/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/constants.d.ts +10 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/docs/default.d.ts +14 -0
- package/dist/hooks/keyword-detector/hook.d.ts +20 -0
- package/dist/hooks/keyword-detector/search/default.d.ts +12 -0
- package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +16 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +6 -0
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +12 -0
- package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +11 -0
- package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +12 -0
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +25 -0
- package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +16 -0
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +6 -0
- package/dist/hooks/keyword-detector/ultrawork/source-detector.d.ts +33 -0
- package/dist/hooks/knowledge-hub-guard/approvals.d.ts +5 -0
- package/dist/hooks/knowledge-hub-guard/hook.d.ts +15 -0
- package/dist/hooks/knowledge-hub-injector/hook.d.ts +37 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +16 -0
- package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +11 -0
- package/dist/hooks/matrix-loop/completion-verifier.d.ts +18 -0
- package/dist/hooks/matrix-loop/constants.d.ts +7 -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/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 +24 -0
- package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +14 -0
- package/dist/hooks/matrix-loop/storage.d.ts +5 -0
- package/dist/hooks/matrix-loop/types.d.ts +25 -0
- package/dist/hooks/mouse-notepad/constants.d.ts +2 -0
- package/dist/hooks/mouse-notepad/hook.d.ts +11 -0
- package/dist/hooks/niobe/bash-command-policy.d.ts +4 -0
- package/dist/hooks/niobe/event-handler.d.ts +9 -0
- package/dist/hooks/niobe/hook-name.d.ts +1 -0
- package/dist/hooks/niobe/matrix-path.d.ts +1 -0
- package/dist/hooks/niobe/mission-continuation-injector.d.ts +13 -0
- package/dist/hooks/niobe/niobe-hook.d.ts +14 -0
- package/dist/hooks/niobe/recent-model-resolver.d.ts +3 -0
- package/dist/hooks/niobe/session-last-agent.d.ts +2 -0
- package/dist/hooks/niobe/subagent-session-id.d.ts +1 -0
- package/dist/hooks/niobe/system-reminder-templates.d.ts +5 -0
- package/dist/hooks/niobe/tool-execute-after.d.ts +6 -0
- package/dist/hooks/niobe/tool-execute-before.d.ts +12 -0
- package/dist/hooks/niobe/types.d.ts +27 -0
- package/dist/hooks/niobe/verification-reminders.d.ts +5 -0
- package/dist/hooks/niobe/write-edit-tool-policy.d.ts +1 -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/non-interactive-env-hook.d.ts +13 -0
- package/dist/hooks/nudge-loop-breaker/constants.d.ts +9 -0
- package/dist/hooks/nudge-loop-breaker/hook.d.ts +12 -0
- package/dist/hooks/nudge-loop-breaker/session-state.d.ts +11 -0
- package/dist/hooks/oracle-md-only/agent-matcher.d.ts +1 -0
- package/dist/hooks/oracle-md-only/agent-resolution.d.ts +14 -0
- package/dist/hooks/oracle-md-only/constants.d.ts +6 -0
- package/dist/hooks/oracle-md-only/hook.d.ts +11 -0
- package/dist/hooks/oracle-md-only/path-policy.d.ts +10 -0
- package/dist/hooks/plan-persister/hook.d.ts +16 -0
- package/dist/hooks/plan-persister/index.d.ts +6 -0
- package/dist/hooks/plan-persister/task-link.d.ts +31 -0
- package/dist/hooks/plan-persister/task-sync.d.ts +39 -0
- package/dist/hooks/post-read-injector/block.d.ts +1 -0
- package/dist/hooks/post-read-injector/constants.d.ts +4 -0
- package/dist/hooks/post-read-injector/hook.d.ts +24 -0
- package/dist/hooks/post-read-injector/index.d.ts +8 -0
- package/dist/hooks/post-read-injector/injector.d.ts +21 -0
- package/dist/hooks/post-read-injector/sections.d.ts +7 -0
- package/dist/hooks/post-read-injector/unified-walk.d.ts +6 -0
- package/dist/hooks/quality-gate/hook.d.ts +31 -0
- package/dist/hooks/read-image-resizer/hook.d.ts +12 -0
- package/dist/hooks/read-image-resizer/image-dimensions.d.ts +2 -0
- package/dist/hooks/read-image-resizer/image-resizer.d.ts +5 -0
- package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
- package/dist/hooks/read-image-resizer/types.d.ts +14 -0
- package/dist/hooks/rtk-bash-rewriter/constants.d.ts +3 -0
- package/dist/hooks/rtk-bash-rewriter/hook.d.ts +12 -0
- package/dist/hooks/rtk-bash-rewriter/types.d.ts +11 -0
- package/dist/hooks/rules-injector/cache.d.ts +8 -0
- package/dist/hooks/rules-injector/constants.d.ts +6 -0
- package/dist/hooks/rules-injector/finder.d.ts +3 -0
- package/dist/hooks/rules-injector/hook.d.ts +20 -0
- package/dist/hooks/rules-injector/injector.d.ts +21 -0
- package/dist/hooks/rules-injector/matcher.d.ts +22 -0
- package/dist/hooks/rules-injector/output-path.d.ts +6 -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 +13 -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 +32 -0
- package/dist/hooks/runtime-fallback/agent-resolver.d.ts +4 -0
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +5 -0
- package/dist/hooks/runtime-fallback/auto-retry.d.ts +10 -0
- package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +20 -0
- package/dist/hooks/runtime-fallback/constants.d.ts +4 -0
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +13 -0
- package/dist/hooks/runtime-fallback/event-handler.d.ts +4 -0
- package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -0
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +4 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +2 -0
- package/dist/hooks/runtime-fallback/index.d.ts +3 -0
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +4 -0
- package/dist/hooks/runtime-fallback/model-utils.d.ts +7 -0
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +11 -0
- package/dist/hooks/runtime-fallback/retry-status-utils.d.ts +2 -0
- package/dist/hooks/runtime-fallback/session-category-registry.d.ts +6 -0
- package/dist/hooks/runtime-fallback/session-messages.d.ts +4 -0
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
- package/dist/hooks/runtime-fallback/types.d.ts +65 -0
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
- package/dist/hooks/secret-leak-guard/git-command-detector.d.ts +2 -0
- package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +16 -0
- package/dist/hooks/secret-leak-guard/hook.d.ts +17 -0
- package/dist/hooks/secret-leak-guard/result-formatter.d.ts +3 -0
- package/dist/hooks/session-memory/hook.d.ts +23 -0
- package/dist/hooks/session-memory/index.d.ts +1 -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 +23 -0
- package/dist/hooks/session-recovery/constants.d.ts +3 -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-thinking-block-order.d.ts +7 -0
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +7 -0
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +7 -0
- package/dist/hooks/session-recovery/resume.d.ts +9 -0
- package/dist/hooks/session-recovery/storage/empty-messages.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/empty-text.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/messages-reader.d.ts +4 -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 +4 -0
- package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/thinking-block-search.d.ts +2 -0
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +3 -0
- package/dist/hooks/session-recovery/storage.d.ts +12 -0
- package/dist/hooks/session-recovery/types.d.ts +66 -0
- package/dist/hooks/shared/compaction-model-resolver.d.ts +5 -0
- package/dist/hooks/silent-failure-guard/constants.d.ts +14 -0
- package/dist/hooks/silent-failure-guard/hook.d.ts +24 -0
- package/dist/hooks/silent-failure-guard/index.d.ts +2 -0
- package/dist/hooks/software-dev-enforcement/constants.d.ts +5 -0
- package/dist/hooks/software-dev-enforcement/hook.d.ts +11 -0
- package/dist/hooks/start-work/plan-filter.d.ts +61 -0
- package/dist/hooks/start-work/start-work-hook.d.ts +16 -0
- package/dist/hooks/stop-continuation-guard/hook.d.ts +19 -0
- package/dist/hooks/subagent-block/constants.d.ts +3 -0
- package/dist/hooks/subagent-block/hook.d.ts +16 -0
- package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +2 -0
- package/dist/hooks/task-continuation-enforcer/constants.d.ts +9 -0
- package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +14 -0
- package/dist/hooks/task-continuation-enforcer/countdown.d.ts +16 -0
- package/dist/hooks/task-continuation-enforcer/handler.d.ts +13 -0
- package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +13 -0
- package/dist/hooks/task-continuation-enforcer/index.d.ts +5 -0
- package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +6 -0
- package/dist/hooks/task-continuation-enforcer/session-state.d.ts +10 -0
- package/dist/hooks/task-continuation-enforcer/staleness.d.ts +32 -0
- package/dist/hooks/task-continuation-enforcer/todo.d.ts +29 -0
- package/dist/hooks/task-continuation-enforcer/types.d.ts +54 -0
- package/dist/hooks/task-edit-guard/constants.d.ts +4 -0
- package/dist/hooks/task-edit-guard/hook.d.ts +3 -0
- package/dist/hooks/task-notepad-writer/constants.d.ts +42 -0
- package/dist/hooks/task-notepad-writer/hook.d.ts +14 -0
- package/dist/hooks/task-notepad-writer/notepad-path.d.ts +36 -0
- package/dist/hooks/task-resume-info/hook.d.ts +11 -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 +76 -0
- package/dist/hooks/think-mode/types.d.ts +25 -0
- package/dist/hooks/thinking-block-validator/flat.d.ts +24 -0
- package/dist/hooks/thinking-block-validator/hook.d.ts +45 -0
- package/dist/hooks/tool-output-truncator.d.ts +17 -0
- package/dist/hooks/tool-pair-validator/hook.d.ts +43 -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 +17 -0
- package/dist/hooks/webfetch-redirect-guard/constants.d.ts +6 -0
- package/dist/hooks/webfetch-redirect-guard/hook.d.ts +19 -0
- package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +16 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +3 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +102004 -0
- package/dist/matrixx.schema.json +4730 -0
- package/dist/mcps/context7.d.ts +9 -0
- package/dist/mcps/document-reader.d.ts +5 -0
- package/dist/mcps/index.d.ts +22 -0
- package/dist/mcps/mcp-startup-state.d.ts +4 -0
- package/dist/mcps/mcp-validator.d.ts +11 -0
- package/dist/mcps/mcp.transform.d.ts +61 -0
- package/dist/mcps/types.d.ts +8 -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/context.d.ts +298 -0
- package/dist/plugin/event-dispatch.d.ts +29 -0
- package/dist/plugin/event.d.ts +20 -0
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +29 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +32 -0
- package/dist/plugin/hooks/create-skill-hooks.d.ts +16 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +38 -0
- package/dist/plugin/hooks/create-transform-hooks.d.ts +29 -0
- package/dist/plugin/legacy-hooks.d.ts +143 -0
- package/dist/plugin/message-hooks/context-injector.d.ts +12 -0
- package/dist/plugin/message-hooks/dcp-nudge-sanitizer.d.ts +43 -0
- package/dist/plugin/message-hooks/domain-keyword-detector.d.ts +30 -0
- package/dist/plugin/message-hooks/env-context-injector.d.ts +14 -0
- package/dist/plugin/message-hooks/evolution-hitl.d.ts +17 -0
- package/dist/plugin/message-hooks/index.d.ts +54 -0
- package/dist/plugin/message-hooks/knowledge-hub-injector.d.ts +18 -0
- package/dist/plugin/message-hooks/thinking-block-validator.d.ts +15 -0
- package/dist/plugin/message-hooks/tool-pair-validator.d.ts +47 -0
- package/dist/plugin/native-context.d.ts +12 -0
- package/dist/plugin/recent-synthetic-idles.d.ts +6 -0
- package/dist/plugin/session-agent-resolver.d.ts +2 -0
- package/dist/plugin/session-status-normalizer.d.ts +2 -0
- package/dist/plugin/setup-domains.d.ts +112 -0
- package/dist/plugin/skill-context.d.ts +14 -0
- package/dist/plugin/tool-catalog.d.ts +18 -0
- package/dist/plugin/tool-definition.d.ts +11 -0
- package/dist/plugin/tool-execute-after.d.ts +12 -0
- package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
- package/dist/plugin/tool-execute-before.d.ts +14 -0
- package/dist/plugin/tool-policy.d.ts +67 -0
- package/dist/plugin/unstable-agent-babysitter.d.ts +10 -0
- package/dist/plugin-config.d.ts +30 -0
- package/dist/plugin-handlers/agent-config-handler.d.ts +15 -0
- package/dist/plugin-handlers/agent-priority-order.d.ts +1 -0
- package/dist/plugin-handlers/agent-tool-allowlist.d.ts +11 -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/formatter-config-handler.d.ts +17 -0
- package/dist/plugin-handlers/index.d.ts +11 -0
- package/dist/plugin-handlers/mcp-config-handler.d.ts +7 -0
- package/dist/plugin-handlers/oracle-agent-config-builder.d.ts +19 -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/provider-config-handler.d.ts +5 -0
- package/dist/plugin-handlers/task-permissions.d.ts +41 -0
- package/dist/plugin-handlers/tool-config-handler.d.ts +6 -0
- package/dist/plugin-state.d.ts +5 -0
- package/dist/shared/agent-display-names.d.ts +17 -0
- package/dist/shared/agent-label.d.ts +21 -0
- package/dist/shared/agent-tool-restrictions.d.ts +6 -0
- package/dist/shared/agent-variant.d.ts +9 -0
- package/dist/shared/awaiting-user.d.ts +12 -0
- package/dist/shared/binary-downloader.d.ts +10 -0
- package/dist/shared/code-patterns.d.ts +2 -0
- package/dist/shared/command-executor/embedded-commands.d.ts +8 -0
- package/dist/shared/command-executor/execute-command.d.ts +1 -0
- package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -0
- package/dist/shared/command-executor.d.ts +2 -0
- package/dist/shared/compaction-log.d.ts +11 -0
- package/dist/shared/config-errors.d.ts +10 -0
- package/dist/shared/connected-providers-cache.d.ts +55 -0
- package/dist/shared/context-limit-resolver.d.ts +6 -0
- package/dist/shared/context-limits.d.ts +36 -0
- package/dist/shared/context-mode-enforcement.d.ts +55 -0
- package/dist/shared/data-path.d.ts +30 -0
- package/dist/shared/dcp-guidance.d.ts +16 -0
- package/dist/shared/dcp-switch-profile.d.ts +19 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/delay.d.ts +1 -0
- package/dist/shared/disabled-tools.d.ts +2 -0
- package/dist/shared/dynamic-truncator.d.ts +23 -0
- package/dist/shared/error-formatting.d.ts +28 -0
- package/dist/shared/escape-regexp.d.ts +1 -0
- package/dist/shared/external-plugin-detector.d.ts +19 -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/format-bytes.d.ts +1 -0
- package/dist/shared/format-duration.d.ts +4 -0
- package/dist/shared/frontmatter.d.ts +8 -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/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/index.d.ts +70 -0
- package/dist/shared/injection-notifier.d.ts +14 -0
- package/dist/shared/is-abort-error.d.ts +1 -0
- package/dist/shared/json-safe-metadata.d.ts +1 -0
- package/dist/shared/jsonc-parser.d.ts +16 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/memory-backend-detect.d.ts +16 -0
- package/dist/shared/merge-categories.d.ts +6 -0
- package/dist/shared/migration/hook-names.d.ts +7 -0
- package/dist/shared/model-availability.d.ts +34 -0
- package/dist/shared/model-requirements.d.ts +23 -0
- package/dist/shared/model-resolution-pipeline.d.ts +27 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/model-suggestion-retry.d.ts +43 -0
- package/dist/shared/normalize-sdk-response.d.ts +1 -0
- package/dist/shared/notify.d.ts +5 -0
- package/dist/shared/opencode-config-dir.d.ts +18 -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 +6 -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/permission-compat.d.ts +19 -0
- package/dist/shared/poll-timeout-outcome.d.ts +21 -0
- package/dist/shared/port-utils.d.ts +9 -0
- package/dist/shared/record-type-guard.d.ts +1 -0
- package/dist/shared/revive-outcome.d.ts +15 -0
- package/dist/shared/rtk-enforcement.d.ts +18 -0
- package/dist/shared/safe-create-hook.d.ts +6 -0
- package/dist/shared/saturated-outcome.d.ts +18 -0
- package/dist/shared/sentinels.d.ts +2 -0
- package/dist/shared/session-context-source.d.ts +36 -0
- package/dist/shared/session-cursor.d.ts +9 -0
- package/dist/shared/session-directory-resolver.d.ts +1 -0
- package/dist/shared/session-facade.d.ts +55 -0
- package/dist/shared/session-id.d.ts +8 -0
- package/dist/shared/session-injected-paths.d.ts +5 -0
- package/dist/shared/session-message.d.ts +30 -0
- package/dist/shared/session-state.d.ts +15 -0
- package/dist/shared/session-utils.d.ts +2 -0
- package/dist/shared/shell-env.d.ts +25 -0
- package/dist/shared/shell-tool-name.d.ts +15 -0
- package/dist/shared/skill-path-resolver.d.ts +9 -0
- package/dist/shared/software-dev-enforcement/index.d.ts +2 -0
- package/dist/shared/software-dev-enforcement/payload.d.ts +29 -0
- package/dist/shared/software-dev-enforcement/targets.d.ts +13 -0
- package/dist/shared/state-root.d.ts +26 -0
- package/dist/shared/status-types.d.ts +1 -0
- package/dist/shared/system-directive.d.ts +77 -0
- package/dist/shared/task-system-gating.d.ts +33 -0
- package/dist/shared/tmux/constants.d.ts +5 -0
- package/dist/shared/tmux/tmux-utils/environment.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +5 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -0
- package/dist/shared/tmux/tmux-utils.d.ts +4 -0
- package/dist/shared/tmux/types.d.ts +4 -0
- package/dist/shared/token-cache.d.ts +23 -0
- package/dist/shared/tool-guards.d.ts +16 -0
- package/dist/shared/transcript-path.d.ts +1 -0
- package/dist/shared/truncate-description.d.ts +1 -0
- package/dist/shared/unwrap-list.d.ts +1 -0
- package/dist/shared/wallclock-outcome.d.ts +18 -0
- package/dist/shared/with-ephemeral-session.d.ts +16 -0
- package/dist/shared/with-timeout.d.ts +1 -0
- package/dist/shared/zip-extractor.d.ts +1 -0
- package/dist/skills/index.d.ts +4 -0
- package/dist/skills/lazy-skill-helper.d.ts +17 -0
- package/dist/skills/schemas/audits-store.d.ts +90 -0
- package/dist/skills/schemas/security-audit.d.ts +144 -0
- package/dist/skills/skills/bdd-backend.d.ts +3 -0
- package/dist/skills/skills/bdd-contract.d.ts +3 -0
- package/dist/skills/skills/bdd-frontend.d.ts +3 -0
- package/dist/skills/skills/bdd-tests.d.ts +3 -0
- package/dist/skills/skills/ccxt-pro-websockets.d.ts +3 -0
- package/dist/skills/skills/ccxt-rest.d.ts +3 -0
- package/dist/skills/skills/crypto-market-structure.d.ts +3 -0
- package/dist/skills/skills/data-quality-observability.d.ts +3 -0
- package/dist/skills/skills/dev-browser.d.ts +2 -0
- package/dist/skills/skills/docker-master.d.ts +2 -0
- package/dist/skills/skills/document-reader.d.ts +2 -0
- package/dist/skills/skills/dsl-codegen.d.ts +3 -0
- package/dist/skills/skills/dsl-composition.d.ts +3 -0
- package/dist/skills/skills/dsl-core.d.ts +3 -0
- package/dist/skills/skills/dsl-grammar.d.ts +3 -0
- package/dist/skills/skills/dsl-metamodel.d.ts +3 -0
- package/dist/skills/skills/dsl-model-transformation.d.ts +3 -0
- package/dist/skills/skills/dsl-pyecore-advanced.d.ts +3 -0
- package/dist/skills/skills/dsl-testing.d.ts +3 -0
- package/dist/skills/skills/dsl-textx-ecosystem.d.ts +3 -0
- package/dist/skills/skills/dsl-tooling.d.ts +3 -0
- package/dist/skills/skills/dsl-validation.d.ts +3 -0
- package/dist/skills/skills/frontend-a11y.d.ts +3 -0
- package/dist/skills/skills/frontend-build-tooling.d.ts +3 -0
- package/dist/skills/skills/frontend-perf.d.ts +3 -0
- package/dist/skills/skills/frontend-react-nextjs.d.ts +3 -0
- package/dist/skills/skills/frontend-state-data.d.ts +3 -0
- package/dist/skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
- package/dist/skills/skills/frontend-testing.d.ts +3 -0
- package/dist/skills/skills/frontend-ui-ux.d.ts +2 -0
- package/dist/skills/skills/git-master.d.ts +2 -0
- package/dist/skills/skills/grafana-dashboards.d.ts +3 -0
- package/dist/skills/skills/index.d.ts +69 -0
- package/dist/skills/skills/influxdb-timeseries.d.ts +3 -0
- package/dist/skills/skills/market-data-architecture.d.ts +3 -0
- package/dist/skills/skills/market-data-bus.d.ts +3 -0
- package/dist/skills/skills/market-data-robustness-review.d.ts +3 -0
- package/dist/skills/skills/matrixx-self-config.d.ts +3 -0
- package/dist/skills/skills/playwright-cli.d.ts +10 -0
- package/dist/skills/skills/playwright.d.ts +3 -0
- package/dist/skills/skills/python-asyncio.d.ts +3 -0
- package/dist/skills/skills/quality-gate.d.ts +2 -0
- package/dist/skills/skills/remove-ai-slops.d.ts +2 -0
- package/dist/skills/skills/resilience-error-taxonomy.d.ts +3 -0
- package/dist/skills/skills/resilience-failure-hunting.d.ts +3 -0
- package/dist/skills/skills/review-work.d.ts +2 -0
- package/dist/skills/skills/security-api.d.ts +3 -0
- package/dist/skills/skills/security-audit.d.ts +3 -0
- package/dist/skills/skills/security-core.d.ts +3 -0
- package/dist/skills/skills/security-crypto.d.ts +3 -0
- package/dist/skills/skills/security-dast.d.ts +3 -0
- package/dist/skills/skills/security-dependencies.d.ts +3 -0
- package/dist/skills/skills/security-infra.d.ts +3 -0
- package/dist/skills/skills/security-review.d.ts +3 -0
- package/dist/skills/skills/security-sast.d.ts +3 -0
- package/dist/skills/skills/security-secrets.d.ts +3 -0
- package/dist/skills/skills/silent-failure-detection.d.ts +3 -0
- package/dist/skills/skills/software-dev.d.ts +2 -0
- package/dist/skills/skills/systematic-debugging.d.ts +2 -0
- package/dist/skills/skills/tdd-enforcer.d.ts +2 -0
- package/dist/skills/skills/telegram-bot.d.ts +3 -0
- package/dist/skills/skills/time-series-fundamentals.d.ts +3 -0
- package/dist/skills/skills/ulw-research.d.ts +2 -0
- package/dist/skills/skills/zeromq-advanced-reqrep.d.ts +3 -0
- package/dist/skills/skills/zeromq-architecture.d.ts +3 -0
- package/dist/skills/skills/zeromq-core.d.ts +3 -0
- package/dist/skills/skills/zeromq-frameworks.d.ts +3 -0
- package/dist/skills/skills/zeromq-pubsub.d.ts +3 -0
- package/dist/skills/skills/zeromq-reliability.d.ts +3 -0
- package/dist/skills/skills/zeromq-sockets-patterns.d.ts +3 -0
- package/dist/skills/skills.d.ts +7 -0
- package/dist/skills/skills.transform.d.ts +27 -0
- package/dist/skills/types.d.ts +24 -0
- package/dist/tool-entry.d.ts +6 -0
- package/dist/tools/assembly/assembly-executor.d.ts +17 -0
- package/dist/tools/assembly/constants.d.ts +6 -0
- package/dist/tools/assembly/provider-selector.d.ts +3 -0
- package/dist/tools/assembly/synthesizer.d.ts +3 -0
- package/dist/tools/assembly/tool-description.d.ts +2 -0
- package/dist/tools/assembly/tools.d.ts +10 -0
- package/dist/tools/assembly/types.d.ts +25 -0
- package/dist/tools/assembly/voter-spawner.d.ts +3 -0
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +4 -0
- package/dist/tools/ast-grep/cli.d.ts +12 -0
- package/dist/tools/ast-grep/constants.d.ts +4 -0
- package/dist/tools/ast-grep/downloader.d.ts +4 -0
- package/dist/tools/ast-grep/environment-check.d.ts +16 -0
- package/dist/tools/ast-grep/language-support.d.ts +5 -0
- package/dist/tools/ast-grep/pattern-hints.d.ts +4 -0
- package/dist/tools/ast-grep/process-output-timeout.d.ts +12 -0
- package/dist/tools/ast-grep/result-formatter.d.ts +3 -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/tool-descriptions.d.ts +3 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +35 -0
- package/dist/tools/background-task/clients.d.ts +28 -0
- package/dist/tools/background-task/constants.d.ts +4 -0
- package/dist/tools/background-task/create-background-cancel.d.ts +4 -0
- package/dist/tools/background-task/create-background-output.d.ts +4 -0
- package/dist/tools/background-task/create-background-revive.d.ts +3 -0
- package/dist/tools/background-task/create-background-wait-all.d.ts +3 -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/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 +1 -0
- package/dist/tools/background-task/tools.d.ts +5 -0
- package/dist/tools/background-task/truncate-text.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +79 -0
- package/dist/tools/bdd-create-contract/constants.d.ts +1 -0
- package/dist/tools/bdd-create-contract/tools.d.ts +3 -0
- package/dist/tools/bdd-create-contract/types.d.ts +12 -0
- package/dist/tools/bdd-parse-gherkin/constants.d.ts +1 -0
- package/dist/tools/bdd-parse-gherkin/tools.d.ts +5 -0
- package/dist/tools/bdd-parse-gherkin/types.d.ts +9 -0
- package/dist/tools/bdd-pipeline/analysis-report-sections.d.ts +10 -0
- package/dist/tools/bdd-pipeline/analysis-report.d.ts +9 -0
- package/dist/tools/bdd-pipeline/constants.d.ts +4 -0
- package/dist/tools/bdd-pipeline/feature-resolver.d.ts +5 -0
- package/dist/tools/bdd-pipeline/pipeline-runner.d.ts +6 -0
- package/dist/tools/bdd-pipeline/subagent-runner.d.ts +14 -0
- package/dist/tools/bdd-pipeline/tools.d.ts +5 -0
- package/dist/tools/bdd-pipeline/types.d.ts +74 -0
- package/dist/tools/bdd-validate-contract/tools.d.ts +21 -0
- package/dist/tools/dashboard-flux-validator/constants.d.ts +8 -0
- package/dist/tools/dashboard-flux-validator/tools.d.ts +3 -0
- package/dist/tools/dashboard-flux-validator/types.d.ts +20 -0
- package/dist/tools/dashboard-flux-validator/validator.d.ts +5 -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 +8 -0
- package/dist/tools/delegate-task/categories.d.ts +22 -0
- package/dist/tools/delegate-task/category-resolver.d.ts +24 -0
- package/dist/tools/delegate-task/complexity-constants.d.ts +23 -0
- package/dist/tools/delegate-task/complexity-scorer.d.ts +31 -0
- package/dist/tools/delegate-task/complexity-types.d.ts +10 -0
- package/dist/tools/delegate-task/constants.d.ts +37 -0
- package/dist/tools/delegate-task/default-model.d.ts +27 -0
- package/dist/tools/delegate-task/diagnostic-shape.d.ts +4 -0
- package/dist/tools/delegate-task/error-formatting.d.ts +6 -0
- package/dist/tools/delegate-task/executor-types.d.ts +37 -0
- package/dist/tools/delegate-task/executor.d.ts +11 -0
- package/dist/tools/delegate-task/index.d.ts +10 -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 +3 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +7 -0
- package/dist/tools/delegate-task/skill-resolver.d.ts +8 -0
- package/dist/tools/delegate-task/software-dev-enforcement.d.ts +1 -0
- package/dist/tools/delegate-task/software-dev-payload.d.ts +1 -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-empty-retry.d.ts +8 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +27 -0
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +13 -0
- package/dist/tools/delegate-task/sync-session-creator.d.ts +21 -0
- package/dist/tools/delegate-task/sync-session-poller.d.ts +18 -0
- package/dist/tools/delegate-task/sync-task-deps.d.ts +11 -0
- package/dist/tools/delegate-task/sync-task.d.ts +10 -0
- package/dist/tools/delegate-task/task-title.d.ts +11 -0
- package/dist/tools/delegate-task/timing.d.ts +16 -0
- package/dist/tools/delegate-task/tool-options.d.ts +12 -0
- package/dist/tools/delegate-task/tools.d.ts +16 -0
- package/dist/tools/delegate-task/types.d.ts +90 -0
- package/dist/tools/delegate-task/unstable-agent-task.d.ts +8 -0
- package/dist/tools/evolution/constants.d.ts +24 -0
- package/dist/tools/evolution/index.d.ts +3 -0
- package/dist/tools/evolution/query-actions.d.ts +3 -0
- package/dist/tools/evolution/tools.d.ts +16 -0
- package/dist/tools/evolution/types.d.ts +20 -0
- package/dist/tools/github-search/cli.d.ts +7 -0
- package/dist/tools/github-search/constants.d.ts +6 -0
- package/dist/tools/github-search/result-formatter.d.ts +2 -0
- package/dist/tools/github-search/tools.d.ts +3 -0
- package/dist/tools/github-search/types.d.ts +20 -0
- package/dist/tools/glob/cli.d.ts +11 -0
- package/dist/tools/glob/constants.d.ts +6 -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 +2 -0
- package/dist/tools/grep/constants.d.ts +16 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/result-formatter.d.ts +2 -0
- package/dist/tools/grep/tools.d.ts +3 -0
- package/dist/tools/grep/types.d.ts +32 -0
- package/dist/tools/handoff/archive-handler.d.ts +9 -0
- package/dist/tools/handoff/body-formatter.d.ts +9 -0
- package/dist/tools/handoff/constants.d.ts +14 -0
- package/dist/tools/handoff/create-handler.d.ts +35 -0
- package/dist/tools/handoff/git.d.ts +12 -0
- package/dist/tools/handoff/list-handler.d.ts +8 -0
- package/dist/tools/handoff/read-handler.d.ts +8 -0
- package/dist/tools/handoff/tools.d.ts +11 -0
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +1 -0
- package/dist/tools/hashline-edit/constants.d.ts +34 -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 +9 -0
- package/dist/tools/hashline-edit/edit-ordering.d.ts +4 -0
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +5 -0
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +8 -0
- package/dist/tools/hashline-edit/hash-computation.d.ts +17 -0
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +10 -0
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +10 -0
- package/dist/tools/hashline-edit/index.d.ts +6 -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 +2 -0
- package/dist/tools/hashline-edit/types.d.ts +17 -0
- package/dist/tools/hashline-edit/validation.d.ts +18 -0
- package/dist/tools/index.d.ts +41 -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/knowledge-hub-confirm/tools.d.ts +12 -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/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/tools.d.ts +4 -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 +4 -0
- package/dist/tools/lsp/lsp-client.d.ts +17 -0
- package/dist/tools/lsp/lsp-formatters.d.ts +9 -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 +124 -0
- package/dist/tools/lsp/workspace-edit.d.ts +8 -0
- package/dist/tools/market-symbol-validator/constants.d.ts +14 -0
- package/dist/tools/market-symbol-validator/tools.d.ts +3 -0
- package/dist/tools/market-symbol-validator/types.d.ts +21 -0
- package/dist/tools/market-symbol-validator/validator.d.ts +9 -0
- package/dist/tools/notepad/constants.d.ts +24 -0
- package/dist/tools/notepad/index.d.ts +20 -0
- package/dist/tools/notepad/notepad-append.d.ts +4 -0
- package/dist/tools/notepad/notepad-create.d.ts +3 -0
- package/dist/tools/notepad/notepad-list.d.ts +3 -0
- package/dist/tools/notepad/notepad-read.d.ts +3 -0
- package/dist/tools/notepad/types.d.ts +14 -0
- package/dist/tools/notepad/validation.d.ts +33 -0
- package/dist/tools/pdf-extract-figures/tools.d.ts +11 -0
- package/dist/tools/plan/constants.d.ts +13 -0
- package/dist/tools/plan/error-codes.d.ts +99 -0
- package/dist/tools/plan/index.d.ts +7 -0
- package/dist/tools/plan/plan-create.d.ts +3 -0
- package/dist/tools/plan/plan-delete.d.ts +3 -0
- package/dist/tools/plan/plan-list.d.ts +3 -0
- package/dist/tools/plan/plan-read-pagination.d.ts +42 -0
- package/dist/tools/plan/plan-read.d.ts +3 -0
- package/dist/tools/plan/plan-tasks-clamp.d.ts +32 -0
- package/dist/tools/plan/plan-tasks.d.ts +3 -0
- package/dist/tools/plan/plan-update.d.ts +4 -0
- package/dist/tools/plan/plan-write-guard.d.ts +38 -0
- package/dist/tools/plan/section-edit.d.ts +24 -0
- package/dist/tools/plan/section-index.d.ts +22 -0
- package/dist/tools/plan/section-locate.d.ts +9 -0
- package/dist/tools/plan/section-read.d.ts +24 -0
- package/dist/tools/plan/status-transition.d.ts +47 -0
- package/dist/tools/plan/types.d.ts +56 -0
- package/dist/tools/preset/tools.d.ts +7 -0
- package/dist/tools/session-cleanup/index.d.ts +13 -0
- package/dist/tools/session-manager/constants.d.ts +9 -0
- package/dist/tools/session-manager/path-normalize.d.ts +7 -0
- package/dist/tools/session-manager/session-formatter.d.ts +11 -0
- package/dist/tools/session-manager/storage.d.ts +61 -0
- package/dist/tools/session-manager/tools.d.ts +4 -0
- package/dist/tools/session-manager/types.d.ts +86 -0
- package/dist/tools/shared/define-tool.d.ts +78 -0
- package/dist/tools/silent-failure-scanner/constants.d.ts +10 -0
- package/dist/tools/silent-failure-scanner/index.d.ts +4 -0
- package/dist/tools/silent-failure-scanner/scanner.d.ts +8 -0
- package/dist/tools/silent-failure-scanner/tools.d.ts +3 -0
- package/dist/tools/silent-failure-scanner/types.d.ts +43 -0
- package/dist/tools/skill/constants.d.ts +2 -0
- package/dist/tools/skill/tools.d.ts +4 -0
- package/dist/tools/skill/types.d.ts +22 -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/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 +46 -0
- package/dist/tools/staleness-gap-checker/checker.d.ts +15 -0
- package/dist/tools/staleness-gap-checker/constants.d.ts +3 -0
- package/dist/tools/staleness-gap-checker/index.d.ts +4 -0
- package/dist/tools/staleness-gap-checker/tools.d.ts +3 -0
- package/dist/tools/staleness-gap-checker/types.d.ts +42 -0
- package/dist/tools/task/constants.d.ts +7 -0
- package/dist/tools/task/create-one.d.ts +21 -0
- package/dist/tools/task/index.d.ts +6 -0
- package/dist/tools/task/task-cleanup.d.ts +4 -0
- package/dist/tools/task/task-create.d.ts +4 -0
- package/dist/tools/task/task-get.d.ts +4 -0
- package/dist/tools/task/task-list.d.ts +4 -0
- package/dist/tools/task/task-update.d.ts +4 -0
- package/dist/tools/task/types.d.ts +156 -0
- package/dist/tools.js +20554 -0
- package/package.json +115 -4
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Handoff YAML frontmatter + body Zod schemas.
|
|
4
|
+
*
|
|
5
|
+
* Pure schema definitions — no I/O, no side effects. Used by:
|
|
6
|
+
* - `validateHandoffYaml` (this folder) for parsing & validating handoff files
|
|
7
|
+
* - future write-side tooling to construct frontmatter programmatically
|
|
8
|
+
*/
|
|
9
|
+
export declare const GitHeadSchema: z.ZodObject<{
|
|
10
|
+
sha: z.ZodString;
|
|
11
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
12
|
+
detached: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type GitHead = z.infer<typeof GitHeadSchema>;
|
|
15
|
+
export declare const HandoffFrontmatterSchema: z.ZodObject<{
|
|
16
|
+
session_id: z.ZodString;
|
|
17
|
+
timestamp: z.ZodString;
|
|
18
|
+
git_head: z.ZodObject<{
|
|
19
|
+
sha: z.ZodString;
|
|
20
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
21
|
+
detached: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
topics: z.ZodArray<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type HandoffFrontmatter = z.infer<typeof HandoffFrontmatterSchema>;
|
|
26
|
+
export declare const HandoffKeyFileSchema: z.ZodObject<{
|
|
27
|
+
path: z.ZodString;
|
|
28
|
+
purpose: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type HandoffKeyFile = z.infer<typeof HandoffKeyFileSchema>;
|
|
31
|
+
export declare const HandoffDecisionSchema: z.ZodObject<{
|
|
32
|
+
decision: z.ZodString;
|
|
33
|
+
rationale: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type HandoffDecision = z.infer<typeof HandoffDecisionSchema>;
|
|
36
|
+
export declare const HandoffSectionSchema: z.ZodObject<{
|
|
37
|
+
user_requests: z.ZodString;
|
|
38
|
+
goal: z.ZodString;
|
|
39
|
+
work_completed: z.ZodArray<z.ZodString>;
|
|
40
|
+
current_state: z.ZodString;
|
|
41
|
+
pending_tasks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
+
key_files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
path: z.ZodString;
|
|
44
|
+
purpose: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
important_decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
decision: z.ZodString;
|
|
48
|
+
rationale: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
explicit_constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
context_for_continuation: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type HandoffSection = z.infer<typeof HandoffSectionSchema>;
|
|
54
|
+
export declare const HandoffSchema: z.ZodObject<{
|
|
55
|
+
frontmatter: z.ZodObject<{
|
|
56
|
+
session_id: z.ZodString;
|
|
57
|
+
timestamp: z.ZodString;
|
|
58
|
+
git_head: z.ZodObject<{
|
|
59
|
+
sha: z.ZodString;
|
|
60
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
61
|
+
detached: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
topics: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
sections: z.ZodObject<{
|
|
66
|
+
user_requests: z.ZodString;
|
|
67
|
+
goal: z.ZodString;
|
|
68
|
+
work_completed: z.ZodArray<z.ZodString>;
|
|
69
|
+
current_state: z.ZodString;
|
|
70
|
+
pending_tasks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
+
key_files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
path: z.ZodString;
|
|
73
|
+
purpose: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
important_decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
+
decision: z.ZodString;
|
|
77
|
+
rationale: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
explicit_constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
context_for_continuation: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type HandoffData = z.infer<typeof HandoffSchema>;
|
|
84
|
+
/**
|
|
85
|
+
* Validated handoff with the markdown body preserved.
|
|
86
|
+
* Returned by `validateHandoffYaml` on success.
|
|
87
|
+
*/
|
|
88
|
+
export type HandoffFileData = HandoffData & {
|
|
89
|
+
body: string;
|
|
90
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function getHandoffFilePath(directory: string): string;
|
|
2
|
+
export declare function getHandoffConsumedFilePath(directory: string): string;
|
|
3
|
+
export declare function handoffFileExists(directory: string): boolean;
|
|
4
|
+
export declare function readHandoffFile(directory: string): string | null;
|
|
5
|
+
export declare function archiveHandoffFile(directory: string): boolean;
|
|
6
|
+
export declare function writeHandoffFile(directory: string, content: string): boolean;
|
|
7
|
+
export declare function ensureHandoffDir(directory: string): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type HandoffFileData } from "./schema";
|
|
2
|
+
/**
|
|
3
|
+
* Result of validating a handoff markdown document.
|
|
4
|
+
*/
|
|
5
|
+
export type HandoffValidationResult = {
|
|
6
|
+
valid: true;
|
|
7
|
+
data: HandoffFileData;
|
|
8
|
+
} | {
|
|
9
|
+
valid: false;
|
|
10
|
+
errors: string[];
|
|
11
|
+
data?: undefined;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Parse and validate a handoff markdown document.
|
|
15
|
+
*
|
|
16
|
+
* Reuses `parseFrontmatter` from `src/shared/frontmatter` to extract the
|
|
17
|
+
* YAML block, then validates with `HandoffSchema`. The markdown body is
|
|
18
|
+
* preserved in `data.body` so callers can render it without re-parsing.
|
|
19
|
+
*
|
|
20
|
+
* Never throws — returns a structured error result on any failure.
|
|
21
|
+
*/
|
|
22
|
+
export declare function validateHandoffYaml(content: string): HandoffValidationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE } from "../../shared";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { MESSAGE_STORAGE } from "./constants";
|
|
2
|
+
export type { StoredMessage } from "./injector";
|
|
3
|
+
export { findFirstMessageWithAgent, findFirstMessageWithAgentFromSDK, findNearestMessageWithFields, findNearestMessageWithFieldsFromSDK, injectHookMessage, resolveMessageContext, } from "./injector";
|
|
4
|
+
export { invalidateSdkMessageCache } from "./sdk-message-cache";
|
|
5
|
+
export type { MessageMeta, OriginalMessageContext, TextPart, ToolPermission } from "./types";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { SessionContextCarrier } from "../../shared/session-context-source";
|
|
2
|
+
import type { OriginalMessageContext, ToolPermission } from "./types";
|
|
3
|
+
export interface StoredMessage {
|
|
4
|
+
agent?: string;
|
|
5
|
+
model?: {
|
|
6
|
+
providerID?: string;
|
|
7
|
+
modelID?: string;
|
|
8
|
+
variant?: string;
|
|
9
|
+
};
|
|
10
|
+
tools?: Record<string, ToolPermission>;
|
|
11
|
+
}
|
|
12
|
+
export type MessageSource = SessionContextCarrier;
|
|
13
|
+
export declare function findNearestMessageWithFieldsFromSDK(client: MessageSource, sessionID: string, timeoutMs?: number): Promise<StoredMessage | null>;
|
|
14
|
+
/**
|
|
15
|
+
* Finds the FIRST (oldest) message with agent field using SDK (for beta/SQLite backend).
|
|
16
|
+
*/
|
|
17
|
+
export declare function findFirstMessageWithAgentFromSDK(client: MessageSource, sessionID: string, timeoutMs?: number): Promise<string | null>;
|
|
18
|
+
/**
|
|
19
|
+
* Finds the nearest message with required fields (agent, model.providerID, model.modelID).
|
|
20
|
+
* Reads from JSON files - for stable (JSON) backend.
|
|
21
|
+
*
|
|
22
|
+
* **Version-gated behavior:**
|
|
23
|
+
* - On beta (SQLite backend): Returns null immediately (no JSON storage)
|
|
24
|
+
* - On stable (JSON backend): Reads from JSON files in messageDir
|
|
25
|
+
*
|
|
26
|
+
* @deprecated Use findNearestMessageWithFieldsFromSDK for beta/SQLite backend
|
|
27
|
+
*/
|
|
28
|
+
export declare function findNearestMessageWithFields(messageDir: string): StoredMessage | null;
|
|
29
|
+
/**
|
|
30
|
+
* Finds the FIRST (oldest) message in the session with agent field.
|
|
31
|
+
* Reads from JSON files - for stable (JSON) backend.
|
|
32
|
+
*
|
|
33
|
+
* **Version-gated behavior:**
|
|
34
|
+
* - On beta (SQLite backend): Returns null immediately (no JSON storage)
|
|
35
|
+
* - On stable (JSON backend): Reads from JSON files in messageDir
|
|
36
|
+
*
|
|
37
|
+
* @deprecated Use findFirstMessageWithAgentFromSDK for beta/SQLite backend
|
|
38
|
+
*/
|
|
39
|
+
export declare function findFirstMessageWithAgent(messageDir: string): string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Injects a hook message into the session storage.
|
|
42
|
+
*
|
|
43
|
+
* **Version-gated behavior:**
|
|
44
|
+
* - On beta (SQLite backend): Logs warning and skips injection (writes are invisible to SQLite)
|
|
45
|
+
* - On stable (JSON backend): Writes message and part JSON files
|
|
46
|
+
*
|
|
47
|
+
* Features degraded on beta:
|
|
48
|
+
* - Hook message injection (e.g., continuation prompts, context injection) won't persist
|
|
49
|
+
* - Niobe hook's injected messages won't be visible in SQLite backend
|
|
50
|
+
* - Todo continuation enforcer's injected prompts won't persist
|
|
51
|
+
* - Ralph loop's continuation prompts won't persist
|
|
52
|
+
*
|
|
53
|
+
* @param sessionID - Target session ID
|
|
54
|
+
* @param hookContent - Content to inject
|
|
55
|
+
* @param originalMessage - Context from the original message
|
|
56
|
+
* @returns true if injection succeeded, false otherwise
|
|
57
|
+
*/
|
|
58
|
+
export declare function injectHookMessage(sessionID: string, hookContent: string, originalMessage: OriginalMessageContext): boolean;
|
|
59
|
+
export declare function resolveMessageContext(sessionID: string, client: MessageSource, messageDir: string | null): Promise<{
|
|
60
|
+
prevMessage: StoredMessage | null;
|
|
61
|
+
firstMessageAgent: string | null;
|
|
62
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-sessionID cache for native session context reads.
|
|
3
|
+
*
|
|
4
|
+
* Why this exists: the full transcript fetch is a 5s-timeout SDK/HTTP round trip
|
|
5
|
+
* that scales with SESSION LENGTH, not with the work of the tool being called.
|
|
6
|
+
* Several hooks resolve the same session's agent/model on every single tool call
|
|
7
|
+
* (see `isCallerOrchestrator` in src/shared/session-utils.ts and
|
|
8
|
+
* `getAgentFromSession` in src/hooks/oracle-md-only/agent-resolution.ts), so the
|
|
9
|
+
* same transcript was re-fetched repeatedly for the life of the session.
|
|
10
|
+
*
|
|
11
|
+
* We cache the RAW message list rather than each derived lookup, so both
|
|
12
|
+
* `findNearestMessageWithFieldsFromSDK` and `findFirstMessageWithAgentFromSDK`
|
|
13
|
+
* are served by a single fetch.
|
|
14
|
+
*
|
|
15
|
+
* Invalidation is TTL-based plus explicit:
|
|
16
|
+
* - TTL bounds staleness, because a new tool call CAN append a message that
|
|
17
|
+
* changes the "nearest message with an agent" answer. A session-lifetime
|
|
18
|
+
* cache would be incorrect.
|
|
19
|
+
* - `invalidateSdkMessageCache(sessionID)` lets the event hook drop a session
|
|
20
|
+
* the moment its state is known to have changed.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Returns the cached message list for a session, or undefined on miss/expiry.
|
|
24
|
+
* Expired entries are removed eagerly so the map cannot grow unboundedly.
|
|
25
|
+
*/ export declare function getCachedSdkMessages(sessionID: string): unknown[] | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Stores a message list for a session. Stores a reference to the array, not a
|
|
28
|
+
* clone — callers must treat cached arrays as read-only.
|
|
29
|
+
*/
|
|
30
|
+
export declare function setCachedSdkMessages(sessionID: string, messages: unknown[], ttlMs?: number): void;
|
|
31
|
+
/** Drops the cached transcript for one session, or all sessions if omitted. */
|
|
32
|
+
export declare function invalidateSdkMessageCache(sessionID?: string): void;
|
|
33
|
+
/** Test seam — mirrors the `_resetForTesting` convention in features/session-state. */
|
|
34
|
+
export declare function _resetSdkMessageCache(): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type ToolPermission = boolean | "allow" | "deny" | "ask";
|
|
2
|
+
export interface MessageMeta {
|
|
3
|
+
id: string;
|
|
4
|
+
sessionID: string;
|
|
5
|
+
role: "user" | "assistant";
|
|
6
|
+
time: {
|
|
7
|
+
created: number;
|
|
8
|
+
completed?: number;
|
|
9
|
+
};
|
|
10
|
+
agent?: string;
|
|
11
|
+
model?: {
|
|
12
|
+
providerID: string;
|
|
13
|
+
modelID: string;
|
|
14
|
+
variant?: string;
|
|
15
|
+
};
|
|
16
|
+
path?: {
|
|
17
|
+
cwd: string;
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
tools?: Record<string, ToolPermission>;
|
|
21
|
+
}
|
|
22
|
+
export interface OriginalMessageContext {
|
|
23
|
+
agent?: string;
|
|
24
|
+
model?: {
|
|
25
|
+
providerID?: string;
|
|
26
|
+
modelID?: string;
|
|
27
|
+
variant?: string;
|
|
28
|
+
};
|
|
29
|
+
path?: {
|
|
30
|
+
cwd?: string;
|
|
31
|
+
root?: string;
|
|
32
|
+
};
|
|
33
|
+
tools?: Record<string, ToolPermission>;
|
|
34
|
+
}
|
|
35
|
+
export interface TextPart {
|
|
36
|
+
id: string;
|
|
37
|
+
type: "text";
|
|
38
|
+
text: string;
|
|
39
|
+
synthetic: boolean;
|
|
40
|
+
time: {
|
|
41
|
+
start: number;
|
|
42
|
+
end: number;
|
|
43
|
+
};
|
|
44
|
+
messageID: string;
|
|
45
|
+
sessionID: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type KnowledgeConfig, type KnowledgeHub } from "../../config/schema/knowledge";
|
|
2
|
+
export interface LoadedHub {
|
|
3
|
+
name: string;
|
|
4
|
+
root: string;
|
|
5
|
+
indexPath: string;
|
|
6
|
+
scope: KnowledgeHub["scope"];
|
|
7
|
+
mode: KnowledgeHub["mode"];
|
|
8
|
+
exclude: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function expandHubPath(rawPath: string, projectDir?: string): string;
|
|
11
|
+
export declare function loadKnowledgeHubs(config: KnowledgeConfig | KnowledgeHub[], projectDir?: string): LoadedHub[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tmp+rename primitive every plan write goes through.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `plan-storage.ts` to keep that module under the 200-LOC ceiling.
|
|
5
|
+
* The target is never written in place — it is only ever REPLACED by rename — so
|
|
6
|
+
* a crash mid-write leaves the previous bytes intact rather than a truncated file.
|
|
7
|
+
*/
|
|
8
|
+
export declare function atomicWrite(filePath: string, content: string): boolean;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan Completion Overlay
|
|
3
|
+
*
|
|
4
|
+
* Pure read-only verdict over the single checkbox implementation
|
|
5
|
+
* (`countPlanProgressFromContent` in `storage.ts`, regexes in `constants.ts`).
|
|
6
|
+
* This module NEVER counts checkboxes itself — it imports the counter and
|
|
7
|
+
* adds the front-matter `status` AND-gate from `plan-contract/schema.ts`.
|
|
8
|
+
*
|
|
9
|
+
* Verdict rule: `complete` iff (all boxes checked AND status == "completed").
|
|
10
|
+
* Any checkbox/status disagreement yields `mismatch-warn` (warn-only; the
|
|
11
|
+
* caller surfaces an advisory, never auto-flips). Zero-task plans
|
|
12
|
+
* (`needsTriage`, e.g. humanize 0/4 or dwfinance 0/5 design docs) NEVER
|
|
13
|
+
* verdict-complete — so a gap can never masquerade
|
|
14
|
+
* as done (silent-failure guard).
|
|
15
|
+
*/
|
|
16
|
+
import { PLAN_STATUS_ORDER } from "../plan-contract/schema";
|
|
17
|
+
import type { PlanProgress } from "./types";
|
|
18
|
+
/** Authoritative front-matter status values (subset of plan-contract enum). */
|
|
19
|
+
export type FrontMatterStatus = (typeof PLAN_STATUS_ORDER)[number];
|
|
20
|
+
/** Minimal front-matter input the overlay reads; never written here. */
|
|
21
|
+
export interface CompletionFrontMatter {
|
|
22
|
+
/** Authoritative `status` from front-matter; unknown/absent becomes null. */
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/** Overlay verdict: complete, incomplete, or warn-only disagreement. */
|
|
26
|
+
export type CompletionVerdict = "complete" | "incomplete" | "mismatch-warn";
|
|
27
|
+
/** Read-only resolution result; checkbox counts are unchanged. */
|
|
28
|
+
export interface PlanCompletion {
|
|
29
|
+
/** Checkbox progress from the single counter (imported, never recomputed). */
|
|
30
|
+
checkbox: PlanProgress;
|
|
31
|
+
/** Normalized front-matter status, or null when absent/unknown. */
|
|
32
|
+
status: FrontMatterStatus | null;
|
|
33
|
+
/** Overlay verdict per the AND-gate rule. */
|
|
34
|
+
verdict: CompletionVerdict;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resolve plan completion from body checkboxes + front-matter status.
|
|
38
|
+
*
|
|
39
|
+
* Pure and read-only: checkbox counts come from
|
|
40
|
+
* `countPlanProgressFromContent`; the AND-gate delegates to `isPlanComplete`.
|
|
41
|
+
* Triage (`needsTriage`, zero tasks) short-circuits to a non-complete
|
|
42
|
+
* verdict, so empty/design docs can never
|
|
43
|
+
* report complete.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolvePlanCompletion(content: string, frontMatter: CompletionFrontMatter | null): PlanCompletion;
|
|
46
|
+
/**
|
|
47
|
+
* Human-readable advisory for a `mismatch-warn` verdict.
|
|
48
|
+
*
|
|
49
|
+
* result into an existing warning channel only when non-null. Callers that
|
|
50
|
+
* lack front-matter should skip the overlay (nothing authoritative to agree
|
|
51
|
+
* with) and leave the verdict uncomputed.
|
|
52
|
+
* Returns null unless the verdict is `mismatch-warn` — callers spread the
|
|
53
|
+
* result into an existing warning channel only when non-null. Callers that
|
|
54
|
+
* lack front-matter should skip the overlay (nothing authoritative to agree
|
|
55
|
+
* with) and leave the verdict uncomputed.
|
|
56
|
+
* Never throws; never touches checkbox counts.
|
|
57
|
+
*/
|
|
58
|
+
export declare function formatCompletionWarning(result: PlanCompletion): string | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mission State Constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const MISSION_DIR = ".matrixx";
|
|
5
|
+
export declare const MISSION_FILE = "mission.json";
|
|
6
|
+
/** Oracle planner plan directory pattern */
|
|
7
|
+
export declare const ORACLE_PLANS_DIR = ".matrixx/plans";
|
|
8
|
+
/**
|
|
9
|
+
* Plan Persistence Constants
|
|
10
|
+
*/
|
|
11
|
+
/** Relative path from project root to plans directory */
|
|
12
|
+
export declare const PLANS_DIR = ".matrixx/plans";
|
|
13
|
+
/** Subdir of PLANS_DIR holding archived stale plans; excluded from listings. */
|
|
14
|
+
export declare const PLANS_ARCHIVE_DIR_NAME = "_archive";
|
|
15
|
+
/** Default staleness window (hours) shared by task + plan archival. */
|
|
16
|
+
export declare const DEFAULT_STALE_AFTER_HOURS = 24;
|
|
17
|
+
/** HTML comment marker for machine metadata at the end of a plan file */
|
|
18
|
+
export declare const META_TAG_PREFIX = "<!-- plan-persister:";
|
|
19
|
+
export declare const META_TAG_SUFFIX = "-->";
|
|
20
|
+
/** Safety cap: max bytes for a single plan file read */
|
|
21
|
+
export declare const MAX_PLAN_FILE_BYTES = 140000;
|
|
22
|
+
/**
|
|
23
|
+
* Resolve the effective plan file cap from plugin config, falling back to
|
|
24
|
+
* `MAX_PLAN_FILE_BYTES` when unset. Mirrors the
|
|
25
|
+
* `cfg?.detection?.max_scan_bytes ?? 64*1024` fallback pattern.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolvePlanCap(config?: {
|
|
28
|
+
plans?: {
|
|
29
|
+
max_plan_file_bytes?: number;
|
|
30
|
+
};
|
|
31
|
+
} | undefined): number;
|
|
32
|
+
/**
|
|
33
|
+
* The single byte ruler for plan content.
|
|
34
|
+
*
|
|
35
|
+
* Every plan size limit compared against this value (`MAX_PLAN_FILE_BYTES`,
|
|
36
|
+
* `MAX_PLAN_READ_RENDERED_BYTES`, the plan-contract size cap) is a TRUE UTF-8
|
|
37
|
+
* byte limit — never a UTF-16 code-unit (`.length`) count. A `.length` ruler
|
|
38
|
+
* undercounts CJK/emoji content by up to 3x and silently reports compliance.
|
|
39
|
+
*/
|
|
40
|
+
export declare function measurePlanBytes(content: string): number;
|
|
41
|
+
/**
|
|
42
|
+
* Plan Checkbox Patterns
|
|
43
|
+
*
|
|
44
|
+
* Single source of truth for plan progress counting (see getPlanProgress).
|
|
45
|
+
* All patterns are anchored to column 0: indented sub-checkboxes
|
|
46
|
+
* (acceptance criteria, Definition-of-Done nests) never count.
|
|
47
|
+
* Do NOT inline checkbox regexes elsewhere — import these instead.
|
|
48
|
+
*/
|
|
49
|
+
/** Top-level unchecked box: `- [ ]` or `* [ ]` */
|
|
50
|
+
export declare const TOP_UNCHECKED_RE: RegExp;
|
|
51
|
+
/** Top-level checked box: `- [x]` / `- [X]` (case-insensitive) */
|
|
52
|
+
export declare const TOP_CHECKED_RE: RegExp;
|
|
53
|
+
/** Numbered unchecked task (Oracle format): `- [ ] 1. Task` */
|
|
54
|
+
export declare const NUMBERED_UNCHECKED_RE: RegExp;
|
|
55
|
+
/** Numbered checked task (Oracle format): `- [x] 2. Task` */
|
|
56
|
+
export declare const NUMBERED_CHECKED_RE: RegExp;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan file readers.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `plan-storage.ts` for the 200-LOC ceiling. The two readers are
|
|
5
|
+
* deliberately separate functions rather than one with a `skipCap` flag: the cap
|
|
6
|
+
* in `readPlanFile` is the defensive whole-file guard, and a boolean on the
|
|
7
|
+
* signature would put "turn it off" one edit away from a whole-file call site.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Read a plan file's content.
|
|
11
|
+
* Returns null if the file does not exist, is too large, or cannot be read.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readPlanFile(planPath: string, cap?: number): string | null;
|
|
14
|
+
/** Read a plan file for a SPAN read, skipping the cap. See the module header. */
|
|
15
|
+
export declare function readPlanFileSpan(planPath: string): string | null;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan Persistence Storage
|
|
3
|
+
*
|
|
4
|
+
* Atomic file operations for plan files.
|
|
5
|
+
* Reuses the write-temp-then-rename pattern from handoff/storage.ts.
|
|
6
|
+
*/
|
|
7
|
+
import type { PlanMeta } from "./types";
|
|
8
|
+
export { atomicWrite } from "./atomic-write";
|
|
9
|
+
export { readPlanFile, readPlanFileSpan } from "./plan-file-read";
|
|
10
|
+
/**
|
|
11
|
+
* Ensure the .matrixx/plans directory exists under the project root.
|
|
12
|
+
*/
|
|
13
|
+
export declare function ensurePlanDir(directory: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Write content to a plan file using atomic write.
|
|
16
|
+
* Ensures the plan directory exists first.
|
|
17
|
+
*/
|
|
18
|
+
export declare function writePlanFile(directory: string, planPath: string, content: string): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Verification-style guard: boxes matching verify/verification/checklist/
|
|
21
|
+
* definition-of-done/final check with zero task overlap are never
|
|
22
|
+
* force-completed — state kept, line reported via `flaggedVerification`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const VERIFICATION_STYLE_RE: RegExp;
|
|
25
|
+
/** Lowercase, strip punctuation/numbers, split tokens, drop stop-words. */
|
|
26
|
+
export declare function normalizeCheckboxText(text: string): string[];
|
|
27
|
+
export declare const isVerificationStyle: (text: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Token overlap: match on >= 2 shared content tokens, or on shorter-side
|
|
30
|
+
* ratio >= 0.5 with normalized-set equality (equality keeps exact matches
|
|
31
|
+
* like "Task A"; without it one generic word cross-matches every sibling,
|
|
32
|
+
* e.g. "Task D" would flip on completed "Task A").
|
|
33
|
+
*/
|
|
34
|
+
export declare function checkboxOverlap(a: string, b: string): {
|
|
35
|
+
shared: number;
|
|
36
|
+
score: number;
|
|
37
|
+
matched: boolean;
|
|
38
|
+
};
|
|
39
|
+
export interface SyncCheckboxesResult {
|
|
40
|
+
content: string;
|
|
41
|
+
flaggedVerification: string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Sync checkboxes to todos by token overlap (indented lines sync too, though
|
|
45
|
+
* Task 2 counting ignores them). Best overlap wins, ties go first. Checked
|
|
46
|
+
* boxes never uncheck ([ ] → [x] only); unmatched lines keep state.
|
|
47
|
+
*/
|
|
48
|
+
export declare function syncCheckboxesDetailed(content: string, todos: Array<{
|
|
49
|
+
content: string;
|
|
50
|
+
status: string;
|
|
51
|
+
}>): SyncCheckboxesResult;
|
|
52
|
+
/** String-only wrapper (backward compatible with plan-persister hook). */
|
|
53
|
+
export declare function syncCheckboxes(content: string, todos: Array<{
|
|
54
|
+
content: string;
|
|
55
|
+
status: string;
|
|
56
|
+
}>): string;
|
|
57
|
+
/**
|
|
58
|
+
* Append or replace the <!-- plan-persister: ... --> metadata comment.
|
|
59
|
+
*
|
|
60
|
+
* If a comment already exists at the end of the file, it is replaced in-place.
|
|
61
|
+
* Otherwise, the tag is appended after the last line.
|
|
62
|
+
*/
|
|
63
|
+
export declare function upsertMetadataComment(content: string, meta: PlanMeta): string;
|
|
64
|
+
/**
|
|
65
|
+
* Extract PlanMeta from an HTML comment, or null if absent/malformed.
|
|
66
|
+
*/
|
|
67
|
+
export declare function parseMetadataComment(content: string): PlanMeta | null;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan reconciliation + stale-plan archival policy.
|
|
3
|
+
*
|
|
4
|
+
* The reconciler re-runs the Tasks 3-4 linkage pass (checkboxOverlap +
|
|
5
|
+
* verification guard from plan-storage) with a confidence gate: only
|
|
6
|
+
* high-confidence token overlap auto-checks, the rest is reported for
|
|
7
|
+
* manual plan_update. Runs are idempotent — a converged plan yields no writes.
|
|
8
|
+
*
|
|
9
|
+
* Archival moves stale orphans to .matrixx/plans/_archive/ (never deletes).
|
|
10
|
+
*/
|
|
11
|
+
import type { MatrixxConfig } from "../../config/schema";
|
|
12
|
+
export interface ReconcileTodo {
|
|
13
|
+
content: string;
|
|
14
|
+
status: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ReconcileResult {
|
|
17
|
+
content: string;
|
|
18
|
+
checked: string[];
|
|
19
|
+
lowConfidence: string[];
|
|
20
|
+
flaggedVerification: string[];
|
|
21
|
+
changed: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ReconcileFileResult extends ReconcileResult {
|
|
24
|
+
wrote: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* High-confidence gate: token overlap matched (Task 3 thresholds) AND the
|
|
28
|
+
* box is not verification-flagged. Verification-style boxes with genuine
|
|
29
|
+
* overlap still flip (overlap wins); zero-overlap verification boxes land
|
|
30
|
+
* in flaggedVerification and never auto-check.
|
|
31
|
+
*/
|
|
32
|
+
export declare function isHighConfidence(boxText: string, todoContent: string, flaggedVerification?: string[]): boolean;
|
|
33
|
+
/** Reconcile plan content against runtime todos; pure, no disk writes. */
|
|
34
|
+
export declare function reconcilePlanContent(content: string, todos: ReconcileTodo[]): ReconcileResult;
|
|
35
|
+
/** Reconcile one plan file; writes only when content changed (idempotent). */
|
|
36
|
+
export declare function reconcilePlanFile(planPath: string, todos: ReconcileTodo[]): ReconcileFileResult;
|
|
37
|
+
/** Invocation point for start-work: reconcile only when plans compete (>1). */
|
|
38
|
+
export declare function shouldReconcileOnStartWork(incompleteCount: number): boolean;
|
|
39
|
+
export interface ActiveTaskSubjects {
|
|
40
|
+
subjects: string[];
|
|
41
|
+
unknownTaskFiles: string[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Subjects of active (pending/in_progress) tasks. Strict-schema drops
|
|
45
|
+
* (readJsonSafe -> null) are counted + logged as unknown — never treated
|
|
46
|
+
* as completed, never silently ignored.
|
|
47
|
+
*/
|
|
48
|
+
export declare function readActiveTaskSubjects(directory: string, config?: Partial<MatrixxConfig>): ActiveTaskSubjects;
|
|
49
|
+
/** A plan whose file cannot be stat'ed is treated as fresh (not stale). */
|
|
50
|
+
export declare function isStaleByMtime(planPath: string, staleAfterHours?: number): boolean;
|
|
51
|
+
export type ArchiveDecision = "active-plan" | "linked-active-tasks" | "fresh" | "unreadable" | "stale-orphan";
|
|
52
|
+
/** Archive candidacy: stale mtime AND zero linked active tasks AND not active. */
|
|
53
|
+
export declare function isArchiveCandidate(planPath: string, content: string | null, subjects: string[], staleAfterHours: number, activePlan?: string | null): {
|
|
54
|
+
candidate: boolean;
|
|
55
|
+
reason: ArchiveDecision;
|
|
56
|
+
};
|
|
57
|
+
export interface ArchiveScanOptions {
|
|
58
|
+
staleAfterHours?: number;
|
|
59
|
+
activePlan?: string | null;
|
|
60
|
+
activeTaskSubjects?: string[];
|
|
61
|
+
config?: Partial<MatrixxConfig>;
|
|
62
|
+
dryRun?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface ArchiveResult {
|
|
65
|
+
candidates: string[];
|
|
66
|
+
moved: string[];
|
|
67
|
+
unknownTaskFiles: string[];
|
|
68
|
+
before: number;
|
|
69
|
+
after: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Move stale orphans to _archive/ preserving bytes (incl. plan-persister
|
|
73
|
+
* meta). Dry-run reports candidates with zero moves. Never deletes.
|
|
74
|
+
*/
|
|
75
|
+
export declare function archiveStalePlans(directory: string, opts?: ArchiveScanOptions): ArchiveResult;
|
|
76
|
+
export interface MissionReconcileOptions {
|
|
77
|
+
dryRun?: boolean;
|
|
78
|
+
staleAfterHours?: number;
|
|
79
|
+
activeTaskSubjects?: string[];
|
|
80
|
+
config?: Partial<MatrixxConfig>;
|
|
81
|
+
}
|
|
82
|
+
export interface MissionReconcileResult {
|
|
83
|
+
wrote: boolean;
|
|
84
|
+
reason: string;
|
|
85
|
+
candidates: string[];
|
|
86
|
+
moved: string[];
|
|
87
|
+
unknownTaskFiles: string[];
|
|
88
|
+
suggestion?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Mission-aware orphan backfill (dry-run-first; default dryRun: true).
|
|
92
|
+
* Missing mission.json -> `{ wrote: false, reason: "no-mission-state" }` + stale-orphan
|
|
93
|
+
* candidates via isArchiveCandidate, zero writes, suggests start-work. Checkbox flips
|
|
94
|
+
* never happen here: any box rewrite stays on reconcilePlanFile/isHighConfidence path.
|
|
95
|
+
*/
|
|
96
|
+
export declare function reconcileMissionState(directory: string, opts?: MissionReconcileOptions): MissionReconcileResult;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan Persistence Rehydration
|
|
3
|
+
*
|
|
4
|
+
* Builds rehydration context from mission state + plan file for injection
|
|
5
|
+
* after compaction or session start.
|
|
6
|
+
*/
|
|
7
|
+
import type { RehydrationContext } from "./types";
|
|
8
|
+
export declare const MAX_REHYDRATION_BYTES = 8000;
|
|
9
|
+
export declare const MAX_TOTAL_COMPACTION_BYTES = 11000;
|
|
10
|
+
/**
|
|
11
|
+
* Truncate a string to at most maxBytes UTF-8 bytes without splitting
|
|
12
|
+
* a multibyte sequence. Byte-based (Buffer.byteLength), never .length.
|
|
13
|
+
*/
|
|
14
|
+
export declare function truncateUtf8ToBytes(value: string, maxBytes: number): string;
|
|
15
|
+
/** Combined injector prompt + rehydration directive size in UTF-8 bytes. */
|
|
16
|
+
export declare function measureCombinedCompactionBytes(injectorPrompt: string, directive: string): number;
|
|
17
|
+
/**
|
|
18
|
+
* Build a rehydration context from mission state + plan file.
|
|
19
|
+
*
|
|
20
|
+
* Returns null when:
|
|
21
|
+
* - No mission file exists
|
|
22
|
+
* - Mission has no active_plan
|
|
23
|
+
* - Plan file is missing
|
|
24
|
+
* - Plan is 100% complete (no point rehydrating a finished plan)
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildRehydrationContext(directory: string): RehydrationContext | null;
|
|
27
|
+
/**
|
|
28
|
+
* Find active plan path from mission state.
|
|
29
|
+
*/
|
|
30
|
+
export declare function findActivePlan(directory: string): string | null;
|