opencode-matrixx 1.1.1 → 2.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/README.md +162 -127
- package/bin/matrixx.js +4 -4
- package/dist/agents/agent-builder.d.ts +2 -3
- package/dist/agents/architect/agent.d.ts +2 -2
- package/dist/agents/architect/index.d.ts +4 -4
- package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
- package/dist/agents/builtin-agents/atlas-agent.d.ts +1 -1
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents/general-agents.d.ts +2 -4
- package/dist/agents/builtin-agents/hephaestus-agent.d.ts +1 -1
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +1 -1
- package/dist/agents/builtin-agents.d.ts +3 -4
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/index.d.ts +6 -7
- package/dist/agents/keymaker.d.ts +1 -1
- package/dist/agents/morpheus.d.ts +1 -3
- package/dist/agents/mouse/index.d.ts +2 -2
- package/dist/agents/oracle/index.d.ts +3 -3
- package/dist/agents/sati.d.ts +7 -0
- package/dist/agents/seraph.d.ts +1 -1
- package/dist/agents/types.d.ts +6 -6
- package/dist/cli/config-manager/config-context.d.ts +1 -1
- package/dist/cli/config-manager/generate-matrixx-config.d.ts +2 -0
- package/dist/cli/config-manager/opencode-config-format.d.ts +2 -1
- package/dist/cli/config-manager/write-matrixx-config.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +10 -10
- package/dist/cli/doctor/checks/index.d.ts +1 -1
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -2
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +2 -2
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +1 -1
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +3 -3
- package/dist/cli/doctor/checks/model-resolution.d.ts +2 -2
- package/dist/cli/doctor/checks/system-binary.d.ts +2 -7
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +2 -1
- package/dist/cli/doctor/checks/tools-gh.d.ts +2 -1
- package/dist/cli/doctor/formatter.d.ts +1 -1
- package/dist/cli/doctor/index.d.ts +2 -2
- package/dist/cli/doctor/runner.d.ts +1 -1
- package/dist/cli/doctor/types.d.ts +2 -30
- package/dist/cli/index.js +16735 -14492
- package/dist/cli/mcp-oauth/login.d.ts +2 -1
- package/dist/cli/mcp-oauth/logout.d.ts +2 -1
- package/dist/cli/model-fallback-types.d.ts +1 -1
- package/dist/cli/model-fallback.d.ts +3 -4
- package/dist/cli/provider-availability.d.ts +1 -1
- package/dist/cli/run/agent-resolver.d.ts +1 -1
- package/dist/cli/run/event-formatting.d.ts +1 -1
- package/dist/cli/run/event-handlers.d.ts +1 -1
- package/dist/cli/run/event-stream-processor.d.ts +1 -1
- package/dist/cli/run/events.d.ts +1 -1
- package/dist/cli/run/index.d.ts +6 -6
- package/dist/cli/run/json-output.d.ts +1 -1
- package/dist/cli/run/opencode-binary-resolver.d.ts +0 -1
- package/dist/cli/run/poll-for-completion.d.ts +3 -2
- package/dist/cli/run/runner.d.ts +1 -1
- package/dist/config/index.d.ts +3 -3
- package/dist/config/profiles.d.ts +1 -1
- package/dist/config/schema/agent-definitions.d.ts +0 -1
- package/dist/config/schema/agent-names.d.ts +6 -39
- package/dist/config/schema/agent-overrides.d.ts +2 -2
- package/dist/config/schema/claude-code.d.ts +0 -1
- package/dist/config/schema/commands.d.ts +2 -0
- package/dist/config/schema/experimental.d.ts +0 -26
- package/dist/config/schema/hooks.d.ts +3 -1
- package/dist/config/schema/matrixx-config.d.ts +22 -51
- package/dist/config/schema/matrixx-self-config.d.ts +6 -0
- package/dist/config/schema/morpheus.d.ts +2 -1
- package/dist/config/schema/security.d.ts +4 -3
- package/dist/config/schema/skills.d.ts +2 -20
- package/dist/config/schema/websearch.d.ts +0 -5
- package/dist/config/schema.d.ts +10 -12
- package/dist/create-hooks.d.ts +4 -2
- package/dist/create-managers.d.ts +2 -2
- package/dist/create-tools.d.ts +3 -2
- package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
- package/dist/features/background-agent/constants.d.ts +1 -5
- package/dist/features/background-agent/index.d.ts +3 -3
- package/dist/features/background-agent/loop-detector.d.ts +2 -2
- package/dist/features/background-agent/manager.d.ts +13 -2
- package/dist/features/background-agent/state.d.ts +1 -1
- package/dist/features/background-agent/task-poller.d.ts +3 -2
- package/dist/features/background-agent/types.d.ts +4 -1
- package/dist/features/builtin-commands/index.d.ts +1 -1
- package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
- package/dist/features/builtin-commands/templates/pickup.d.ts +1 -1
- package/dist/features/builtin-commands/templates/profile.d.ts +1 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -4
- package/dist/features/builtin-skills/index.d.ts +1 -1
- package/dist/features/builtin-skills/skills/document-reader.d.ts +0 -2
- package/dist/features/builtin-skills/skills/dsl-codegen.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-composition.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-core.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-grammar.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-metamodel.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-model-transformation.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-pyecore-advanced.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-testing.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-textx-ecosystem.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-tooling.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-validation.d.ts +0 -1
- package/dist/features/builtin-skills/skills/frontend-a11y.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-build-tooling.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-perf.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-react-nextjs.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-state-data.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-testing.d.ts +3 -0
- package/dist/features/builtin-skills/skills/index.d.ts +25 -30
- package/dist/features/builtin-skills/skills/matrixx-self-config.d.ts +3 -0
- package/dist/features/builtin-skills/skills/quality-gate.d.ts +2 -0
- package/dist/features/builtin-skills/skills/review-work.d.ts +0 -2
- package/dist/features/builtin-skills/skills/security-api.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-core.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-crypto.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-dast.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-dependencies.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-infra.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-review.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-sast.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-secrets.d.ts +0 -1
- package/dist/features/builtin-skills/skills/software-dev.d.ts +2 -0
- package/dist/features/builtin-skills/skills/tdd-enforcer.d.ts +0 -2
- package/dist/features/builtin-skills/skills.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
- package/dist/features/claude-code-command-loader/index.d.ts +1 -1
- package/dist/features/claude-code-command-loader/types.d.ts +2 -1
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -1
- package/dist/features/claude-code-mcp-loader/index.d.ts +2 -2
- package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/index.d.ts +7 -7
- package/dist/features/claude-code-plugin-loader/loader.d.ts +5 -5
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
- package/dist/features/claude-code-plugin-loader/types.d.ts +10 -9
- package/dist/features/claude-tasks/index.d.ts +2 -2
- package/dist/features/claude-tasks/session-storage.d.ts +2 -1
- package/dist/features/claude-tasks/storage.d.ts +0 -1
- package/dist/features/claude-tasks/types.d.ts +4 -4
- package/dist/features/context-injector/index.d.ts +1 -1
- package/dist/features/context-injector/injector.d.ts +1 -27
- 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/{hooks/handoff-injector → features/handoff}/storage.d.ts +2 -0
- package/dist/features/handoff/validate.d.ts +22 -0
- package/dist/features/hook-message-injector/constants.d.ts +1 -1
- package/dist/features/hook-message-injector/index.d.ts +2 -2
- package/dist/features/hook-message-injector/injector.d.ts +2 -2
- package/dist/features/mcp-oauth/dcr.d.ts +3 -9
- package/dist/features/mcp-oauth/index.d.ts +1 -1
- package/dist/features/mcp-oauth/provider.d.ts +4 -4
- package/dist/features/mcp-oauth/schema.d.ts +0 -1
- package/dist/features/mcp-oauth/step-up.d.ts +2 -1
- package/dist/features/mission-state/constants.d.ts +0 -3
- package/dist/features/mission-state/index.d.ts +1 -1
- package/dist/features/mission-state/storage.d.ts +0 -1
- package/dist/features/opencode-skill-loader/index.d.ts +6 -7
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loader.d.ts +2 -2
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger.d.ts +3 -2
- package/dist/features/opencode-skill-loader/skill-content.d.ts +3 -4
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -2
- package/dist/features/run-continuation-state/index.d.ts +1 -1
- package/dist/features/run-continuation-state/types.d.ts +2 -1
- package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -1
- package/dist/features/skill-mcp-manager/index.d.ts +1 -1
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -1
- package/dist/features/skill-mcp-manager/types.d.ts +5 -4
- package/dist/features/task-toast-manager/index.d.ts +2 -2
- package/dist/features/task-toast-manager/manager.d.ts +1 -1
- package/dist/features/tmux-subagent/action-executor.d.ts +2 -2
- package/dist/features/tmux-subagent/cleanup.d.ts +1 -9
- package/dist/features/tmux-subagent/decision-engine.d.ts +3 -3
- package/dist/features/tmux-subagent/event-handlers.d.ts +3 -3
- package/dist/features/tmux-subagent/index.d.ts +7 -8
- package/dist/features/tmux-subagent/manager.d.ts +1 -1
- package/dist/features/tmux-subagent/polling.d.ts +0 -18
- package/dist/features/tmux-subagent/session-created-handler.d.ts +1 -1
- package/dist/features/tmux-subagent/session-deleted-handler.d.ts +1 -1
- package/dist/features/tmux-subagent/spawn-action-decider.d.ts +1 -1
- package/dist/features/tool-metadata-store/index.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +3 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +5 -5
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +0 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +1 -1
- package/dist/hooks/architect/index.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +2 -1
- package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
- package/dist/hooks/auto-slash-command/index.d.ts +3 -3
- package/dist/hooks/auto-slash-command/types.d.ts +0 -5
- package/dist/hooks/auto-update-checker/checker.d.ts +6 -6
- package/dist/hooks/auto-update-checker/constants.d.ts +0 -2
- package/dist/hooks/auto-update-checker/index.d.ts +4 -4
- package/dist/hooks/comment-checker/cli-runner.d.ts +2 -1
- package/dist/hooks/comment-checker/downloader.d.ts +0 -5
- package/dist/hooks/comment-checker/types.d.ts +0 -18
- package/dist/hooks/delegate-task-retry/index.d.ts +2 -2
- 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/index.d.ts +1 -0
- package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-agents-injector/hook.d.ts +3 -23
- package/dist/hooks/directory-injector/factory.d.ts +40 -0
- package/dist/hooks/directory-injector/index.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/hook.d.ts +3 -23
- package/dist/hooks/env-file-write-guard/hook.d.ts +2 -1
- package/dist/hooks/index.d.ts +43 -41
- package/dist/hooks/interactive-bash-session/constants.d.ts +1 -1
- package/dist/hooks/interactive-bash-session/index.d.ts +0 -2
- package/dist/hooks/interactive-bash-session/parser.d.ts +2 -2
- package/dist/hooks/json-error-recovery/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/constants.d.ts +5 -6
- package/dist/hooks/keyword-detector/detector.d.ts +2 -2
- package/dist/hooks/keyword-detector/index.d.ts +1 -2
- package/dist/hooks/keyword-detector/search/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +4 -4
- package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +10 -0
- package/dist/hooks/matrix-loop/completion-verifier.d.ts +4 -1
- package/dist/hooks/matrix-loop/constants.d.ts +0 -1
- package/dist/hooks/matrix-loop/index.d.ts +3 -3
- package/dist/hooks/matrix-loop/storage.d.ts +0 -1
- package/dist/hooks/non-interactive-env/index.d.ts +0 -1
- package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +0 -1
- package/dist/hooks/preemptive-compaction-types.d.ts +2 -1
- package/dist/hooks/prometheus-md-only/constants.d.ts +0 -1
- package/dist/hooks/quality-gate/hook.d.ts +18 -0
- package/dist/hooks/rules-injector/index.d.ts +1 -1
- package/dist/hooks/rules-injector/injector.d.ts +1 -0
- package/dist/hooks/rules-injector/matcher.d.ts +2 -1
- package/dist/hooks/rules-injector/output-path.d.ts +2 -1
- package/dist/hooks/rules-injector/parser.d.ts +2 -1
- package/dist/hooks/rules-injector/types.d.ts +0 -21
- package/dist/hooks/runtime-fallback/agent-resolver.d.ts +0 -2
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +2 -1
- package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -3
- package/dist/hooks/runtime-fallback/index.d.ts +1 -1
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/types.d.ts +1 -1
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +1 -1
- package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +4 -3
- package/dist/hooks/secret-leak-guard/hook.d.ts +2 -1
- package/dist/hooks/session-recovery/constants.d.ts +1 -2
- package/dist/hooks/session-recovery/index.d.ts +3 -3
- package/dist/hooks/session-recovery/storage.d.ts +9 -17
- package/dist/hooks/session-recovery/types.d.ts +3 -5
- package/dist/hooks/start-work/index.d.ts +1 -1
- package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -1
- package/dist/hooks/stop-continuation-guard/index.d.ts +1 -1
- package/dist/hooks/task-notepad/constants.d.ts +10 -0
- package/dist/hooks/task-notepad/hook.d.ts +12 -0
- package/dist/hooks/task-notepad/index.d.ts +3 -0
- package/dist/hooks/task-notepad/types.d.ts +16 -0
- package/dist/hooks/tasks-todowrite-disabler/index.d.ts +1 -1
- package/dist/hooks/think-mode/hook.d.ts +5 -1
- package/dist/hooks/think-mode/index.d.ts +1 -1
- package/dist/hooks/think-mode/switcher.d.ts +1 -0
- package/dist/hooks/think-mode/types.d.ts +3 -2
- package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +1 -1
- package/dist/hooks/unstable-agent-babysitter/index.d.ts +1 -1
- package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +64716 -51265
- package/dist/mcp/index.d.ts +1 -1
- package/dist/plugin/chat-message.d.ts +1 -1
- package/dist/plugin/event.d.ts +1 -1
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -3
- package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
- package/dist/plugin/messages-transform.d.ts +1 -0
- package/dist/plugin/session-agent-resolver.d.ts +1 -1
- package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
- package/dist/plugin/tool-execute-before.d.ts +1 -1
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin/unstable-agent-babysitter.d.ts +1 -1
- package/dist/plugin-config.d.ts +24 -1
- package/dist/plugin-handlers/agent-config-handler.d.ts +1 -1
- package/dist/plugin-handlers/config-handler.d.ts +1 -1
- package/dist/plugin-handlers/index.d.ts +6 -6
- package/dist/plugin-interface.d.ts +1 -1
- package/dist/shared/agent-tool-restrictions.d.ts +0 -1
- package/dist/shared/code-patterns.d.ts +2 -0
- package/dist/shared/command-executor/embedded-commands.d.ts +2 -1
- package/dist/shared/command-executor/execute-command.d.ts +1 -1
- package/dist/shared/command-executor.d.ts +0 -2
- package/dist/shared/dynamic-truncator.d.ts +3 -9
- package/dist/shared/error-formatting.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +2 -1
- package/dist/shared/frontmatter.d.ts +2 -1
- package/dist/shared/git-worktree/index.d.ts +3 -3
- package/dist/shared/index.d.ts +36 -35
- package/dist/shared/is-object.d.ts +1 -0
- package/dist/shared/jsonc-parser.d.ts +2 -1
- package/dist/shared/logger.d.ts +0 -1
- package/dist/shared/migration.d.ts +2 -2
- package/dist/shared/model-availability.d.ts +24 -2
- package/dist/shared/model-suggestion-retry.d.ts +1 -1
- package/dist/shared/normalize-sdk-response.d.ts +2 -1
- package/dist/shared/opencode-config-dir-types.d.ts +0 -1
- package/dist/shared/permission-compat.d.ts +2 -1
- package/dist/shared/port-utils.d.ts +1 -1
- package/dist/shared/session-cursor.d.ts +1 -1
- package/dist/shared/session-injected-paths.d.ts +0 -5
- package/dist/shared/session-model-state.d.ts +2 -3
- package/dist/shared/session-temperature-store.d.ts +3 -0
- package/dist/shared/shell-env.d.ts +2 -18
- package/dist/shared/skill-path-resolver.d.ts +1 -1
- package/dist/shared/system-directive.d.ts +0 -1
- package/dist/shared/tmux/index.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils.d.ts +6 -6
- package/dist/shared/token-cache.d.ts +23 -0
- package/dist/shared/transcript-path.d.ts +1 -0
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -1
- package/dist/tools/ast-grep/constants.d.ts +1 -2
- package/dist/tools/ast-grep/downloader.d.ts +0 -1
- package/dist/tools/ast-grep/index.d.ts +4 -4
- package/dist/tools/ast-grep/result-formatter.d.ts +1 -3
- package/dist/tools/ast-grep/types.d.ts +1 -24
- package/dist/tools/background-task/index.d.ts +2 -2
- package/dist/tools/background-task/time-format.d.ts +0 -1
- package/dist/tools/background-task/tools.d.ts +2 -2
- package/dist/tools/background-task/types.d.ts +0 -19
- package/dist/tools/delegate-agent/background-agent-executor.d.ts +5 -0
- package/dist/tools/{call-omo-agent → delegate-agent}/background-executor.d.ts +3 -3
- package/dist/tools/delegate-agent/constants.d.ts +2 -0
- package/dist/tools/{call-omo-agent → delegate-agent}/index.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/session-creator.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/subagent-session-creator.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/sync-executor.d.ts +3 -3
- package/dist/tools/{call-omo-agent → delegate-agent}/tools.d.ts +1 -1
- package/dist/tools/{call-omo-agent → delegate-agent}/types.d.ts +1 -16
- package/dist/tools/delegate-task/background-continuation.d.ts +1 -1
- package/dist/tools/delegate-task/background-task.d.ts +2 -1
- package/dist/tools/delegate-task/categories.d.ts +5 -3
- package/dist/tools/delegate-task/category-resolver.d.ts +2 -1
- package/dist/tools/delegate-task/constants.d.ts +6 -18
- package/dist/tools/delegate-task/error-formatting.d.ts +4 -13
- package/dist/tools/delegate-task/executor-types.d.ts +1 -2
- package/dist/tools/delegate-task/executor.d.ts +7 -7
- package/dist/tools/delegate-task/index.d.ts +3 -3
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +1 -2
- package/dist/tools/delegate-task/prompt-builder.d.ts +0 -1
- package/dist/tools/delegate-task/skill-resolver.d.ts +1 -2
- package/dist/tools/delegate-task/subagent-resolver.d.ts +1 -1
- package/dist/tools/delegate-task/sync-continuation-deps.d.ts +1 -1
- package/dist/tools/delegate-task/sync-continuation.d.ts +1 -1
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -1
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +6 -1
- package/dist/tools/delegate-task/sync-session-poller.d.ts +5 -1
- package/dist/tools/delegate-task/sync-task-deps.d.ts +2 -2
- package/dist/tools/delegate-task/sync-task.d.ts +2 -1
- package/dist/tools/delegate-task/tools.d.ts +1 -1
- package/dist/tools/delegate-task/types.d.ts +2 -3
- package/dist/tools/delegate-task/unstable-agent-task.d.ts +2 -1
- package/dist/tools/glob/cli.d.ts +1 -1
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/grep/cli.d.ts +1 -2
- package/dist/tools/grep/constants.d.ts +0 -1
- package/dist/tools/grep/result-formatter.d.ts +1 -2
- package/dist/tools/grep/types.d.ts +0 -4
- 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 +17 -0
- package/dist/tools/handoff/create-handler.d.ts +34 -0
- package/dist/tools/handoff/git.d.ts +12 -0
- package/dist/tools/handoff/index.d.ts +3 -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 +0 -5
- package/dist/tools/hashline-edit/edit-operations.d.ts +2 -1
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +0 -2
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -1
- package/dist/tools/hashline-edit/hash-computation.d.ts +2 -1
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +1 -1
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
- package/dist/tools/hashline-edit/index.d.ts +4 -5
- package/dist/tools/hashline-edit/validation.d.ts +0 -2
- package/dist/tools/index.d.ts +8 -7
- package/dist/tools/interactive-bash/constants.d.ts +1 -1
- package/dist/tools/interactive-bash/index.d.ts +1 -1
- package/dist/tools/look-at/index.d.ts +1 -1
- package/dist/tools/lsp/client.d.ts +1 -1
- package/dist/tools/lsp/config.d.ts +1 -1
- package/dist/tools/lsp/constants.d.ts +1 -1
- package/dist/tools/lsp/index.d.ts +4 -4
- package/dist/tools/lsp/lsp-client-transport.d.ts +1 -1
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -5
- package/dist/tools/lsp/lsp-formatters.d.ts +1 -5
- package/dist/tools/lsp/lsp-server.d.ts +1 -1
- package/dist/tools/lsp/tools.d.ts +3 -3
- package/dist/tools/lsp/types.d.ts +8 -7
- package/dist/tools/session-manager/constants.d.ts +1 -1
- package/dist/tools/session-manager/index.d.ts +1 -1
- package/dist/tools/session-manager/session-formatter.d.ts +1 -1
- package/dist/tools/session-manager/storage.d.ts +2 -3
- package/dist/tools/session-manager/types.d.ts +0 -4
- package/dist/tools/skill/constants.d.ts +0 -1
- package/dist/tools/skill/index.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +1 -4
- package/dist/tools/skill-mcp/constants.d.ts +0 -1
- package/dist/tools/skill-mcp/index.d.ts +1 -1
- package/dist/tools/skill-mcp/tools.d.ts +1 -1
- package/dist/tools/slashcommand/index.d.ts +1 -1
- package/dist/tools/slashcommand/types.d.ts +1 -1
- package/dist/tools/task/constants.d.ts +1 -0
- package/dist/tools/task/index.d.ts +1 -2
- package/dist/tools/task/types.d.ts +10 -10
- package/package.json +13 -9
- package/dist/agents/niobe.d.ts +0 -7
- package/dist/agents/zion.d.ts +0 -7
- package/dist/cli/config-manager/generate-omo-config.d.ts +0 -2
- package/dist/cli/config-manager/write-omo-config.d.ts +0 -2
- package/dist/config/schema/dynamic-context-pruning.d.ts +0 -28
- package/dist/config/schema/git-master.d.ts +0 -6
- package/dist/features/background-agent/background-event-handler.d.ts +0 -26
- package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
- package/dist/features/background-agent/background-task-completer.d.ts +0 -3
- package/dist/features/background-agent/duration-formatter.d.ts +0 -1
- package/dist/features/background-agent/error-classifier.d.ts +0 -2
- package/dist/features/background-agent/format-duration.d.ts +0 -1
- package/dist/features/background-agent/message-dir.d.ts +0 -1
- package/dist/features/background-agent/notification-builder.d.ts +0 -8
- package/dist/features/background-agent/notification-tracker.d.ts +0 -6
- package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
- package/dist/features/background-agent/parent-session-context-resolver.d.ts +0 -14
- package/dist/features/background-agent/parent-session-notifier.d.ts +0 -3
- package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
- package/dist/features/background-agent/process-signal.d.ts +0 -2
- package/dist/features/background-agent/result-handler-context.d.ts +0 -8
- package/dist/features/background-agent/result-handler.d.ts +0 -7
- package/dist/features/background-agent/session-idle-event-handler.d.ts +0 -10
- package/dist/features/background-agent/session-output-validator.d.ts +0 -2
- package/dist/features/background-agent/session-task-cleanup.d.ts +0 -10
- package/dist/features/background-agent/session-todo-checker.d.ts +0 -2
- package/dist/features/background-agent/session-validator.d.ts +0 -7
- package/dist/features/background-agent/spawner/background-session-creator.d.ts +0 -10
- package/dist/features/background-agent/spawner/concurrency-key-from-launch-input.d.ts +0 -2
- package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +0 -6
- package/dist/features/background-agent/spawner/spawner-context.d.ts +0 -11
- package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
- package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
- package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
- package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +0 -8
- package/dist/features/background-agent/spawner.d.ts +0 -14
- package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
- package/dist/features/background-agent/task-canceller.d.ts +0 -27
- package/dist/features/background-agent/task-completer.d.ts +0 -13
- package/dist/features/background-agent/task-launch.d.ts +0 -15
- package/dist/features/background-agent/task-queries.d.ts +0 -7
- package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
- package/dist/features/background-agent/task-resumer.d.ts +0 -14
- package/dist/features/background-agent/task-starter.d.ts +0 -27
- package/dist/features/background-agent/task-tracker.d.ts +0 -18
- package/dist/features/builtin-skills/skills/academic-review.d.ts +0 -4
- package/dist/features/builtin-skills/skills/academic-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-market-analysis.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-onchain.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-trading.d.ts +0 -4
- package/dist/features/builtin-skills/skills/data-management-plan.d.ts +0 -4
- package/dist/features/builtin-skills/skills/deliverable-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/eu-horizon.d.ts +0 -4
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +0 -2
- package/dist/features/builtin-skills/skills/grant-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/ip-exploitation.d.ts +0 -4
- package/dist/features/builtin-skills/skills/literature-review.d.ts +0 -4
- package/dist/features/builtin-skills/skills/project-management.d.ts +0 -4
- package/dist/features/builtin-skills/skills/research-methodology.d.ts +0 -4
- package/dist/features/builtin-skills/skills/scientific-presentation.d.ts +0 -4
- package/dist/features/builtin-skills/skills/technical-lead.d.ts +0 -4
- package/dist/features/mcp-oauth/resource-indicator.d.ts +0 -2
- package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
- package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +0 -2
- package/dist/features/team-mode/index.d.ts +0 -2
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +0 -1
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +0 -15
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +0 -3
- package/dist/features/team-mode/team-worktree/index.d.ts +0 -2
- package/dist/features/team-mode/team-worktree/manager.d.ts +0 -15
- package/dist/features/team-mode/types.d.ts +0 -210
- package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
- package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
- package/dist/features/tmux-subagent/session-message-count.d.ts +0 -1
- package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
- package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -10
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
- package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +0 -48
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
- package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
- package/dist/hooks/claude-code-hooks/handlers/chat-message-handler.d.ts +0 -19
- package/dist/hooks/claude-code-hooks/handlers/pre-compact-handler.d.ts +0 -7
- package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +0 -8
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-after-handler.d.ts +0 -11
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-before-handler.d.ts +0 -9
- package/dist/hooks/claude-code-hooks/index.d.ts +0 -1
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
- package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +0 -9
- package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
- package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
- package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -29
- package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
- package/dist/hooks/handoff-injector/constants.d.ts +0 -4
- package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
- package/dist/hooks/interactive-bash-session/interactive-bash-session-tracker.d.ts +0 -21
- package/dist/hooks/interactive-bash-session/tmux-command-parser.d.ts +0 -4
- package/dist/hooks/keyword-detector/types.d.ts +0 -4
- package/dist/hooks/non-interactive-env/types.d.ts +0 -3
- package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +0 -5
- package/dist/plugin-handlers/agent-key-remapper.d.ts +0 -1
- package/dist/shared/available-models-fetcher.d.ts +0 -4
- package/dist/shared/command-executor/execute-hook-command.d.ts +0 -10
- package/dist/shared/command-executor/home-directory.d.ts +0 -1
- package/dist/shared/command-executor/shell-path.d.ts +0 -2
- package/dist/shared/fallback-model-availability.d.ts +0 -5
- package/dist/shared/hook-disabled.d.ts +0 -2
- package/dist/shared/model-cache-availability.d.ts +0 -2
- package/dist/shared/model-name-matcher.d.ts +0 -1
- package/dist/shared/models-json-cache-reader.d.ts +0 -1
- package/dist/shared/open-code-client-accessors.d.ts +0 -3
- package/dist/shared/open-code-client-shapes.d.ts +0 -13
- package/dist/shared/pattern-matcher.d.ts +0 -3
- package/dist/shared/provider-models-cache-model-reader.d.ts +0 -1
- package/dist/shared/snake-case.d.ts +0 -5
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +0 -1
- package/dist/shared/tool-name.d.ts +0 -1
- package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
- package/dist/tools/background-task/modules/background-output.d.ts +0 -3
- package/dist/tools/background-task/modules/background-task.d.ts +0 -3
- package/dist/tools/background-task/modules/formatters.d.ts +0 -11
- package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
- package/dist/tools/background-task/modules/utils.d.ts +0 -16
- package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
- package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
- package/dist/tools/call-omo-agent/constants.d.ts +0 -2
- package/dist/tools/call-omo-agent/session-completion-poller.d.ts +0 -13
- package/dist/tools/call-omo-agent/session-message-output-extractor.d.ts +0 -17
- package/dist/tools/call-omo-agent/subagent-session-prompter.d.ts +0 -11
- package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
- package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +0 -1
- package/dist/tools/look-at/session-poller.d.ts +0 -8
- /package/dist/features/{opencode-skill-loader/discover-worker.d.ts → background-agent/manager.bench.d.ts} +0 -0
- /package/dist/{tools/delegate-task/time-formatter.d.ts → shared/format-duration.d.ts} +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/completion-poller.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-dir.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-processor.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-storage-directory.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/tool-context-with-metadata.d.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_API_SKILL_NAME = "security-api";
|
|
3
|
-
export declare const SECURITY_API_SKILL_DESCRIPTION = "API security patterns: authentication, authorization, input validation, rate limiting, CORS, CSRF, security headers, and error handling. Triggers: 'API security', 'authentication', 'authorization', 'JWT', 'OAuth', 'CORS', 'CSRF', 'rate limiting', 'input validation'.";
|
|
4
3
|
export declare const securityApiSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_CORE_SKILL_NAME = "security-core";
|
|
3
|
-
export declare const SECURITY_CORE_SKILL_DESCRIPTION = "Core security auditing principles, OWASP Top 10, CWE classification, severity scoring, and structured reporting. Triggers: 'security', 'audit', 'vulnerability', 'OWASP', 'CWE', 'security review'.";
|
|
4
3
|
export declare const securityCoreSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_CRYPTO_SKILL_NAME = "security-crypto";
|
|
3
|
-
export declare const SECURITY_CRYPTO_SKILL_DESCRIPTION = "Cryptography and key management security guidelines: algorithm selection, key management, TLS configuration, common crypto mistakes, and secure random generation. Triggers: 'cryptography', 'encryption', 'hashing', 'TLS', 'key management', 'crypto', 'password hashing', 'certificate'.";
|
|
4
3
|
export declare const securityCryptoSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_DAST_SKILL_NAME = "security-dast";
|
|
3
|
-
export declare const SECURITY_DAST_SKILL_DESCRIPTION = "DAST overview: testing running applications for vulnerabilities at runtime, differs from SAST by finding issues only visible during execution. Triggers: 'DAST', 'dynamic analysis', 'ZAP', 'Nuclei', 'runtime security', 'penetration test', 'fuzzing'.";
|
|
4
3
|
export declare const securityDastSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_DEPENDENCIES_SKILL_NAME = "security-dependencies";
|
|
3
|
-
export declare const SECURITY_DEPENDENCIES_SKILL_DESCRIPTION = "Dependency security scanning, SBOM generation, CVE lookups, remediation strategies, license compliance, and supply chain risk management. Triggers: 'dependency', 'CVE', 'npm audit', 'trivy', 'supply chain', 'vulnerability scanning', 'SBOM', 'license'.";
|
|
4
3
|
export declare const securityDependenciesSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_INFRA_SKILL_NAME = "security-infra";
|
|
3
|
-
export declare const SECURITY_INFRA_SKILL_DESCRIPTION = "Infrastructure and container security guidelines: container scanning, Dockerfile hardening, Kubernetes security, IaC scanning, and cloud security fundamentals. Triggers: 'container security', 'Docker', 'Kubernetes', 'IaC', 'infrastructure', 'Checkov', 'tfsec', 'cloud security', 'Dockerfile'.";
|
|
4
3
|
export declare const securityInfraSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_REVIEW_SKILL_NAME = "security-review";
|
|
3
|
-
export declare const SECURITY_REVIEW_SKILL_DESCRIPTION = "Security review and threat modeling methodology: LLM-powered review phases, STRIDE threat model, attack surface mapping, architecture checklist, risk assessment, and report structure. Triggers: 'security review', 'threat model', 'STRIDE', 'attack surface', 'risk assessment', 'security architecture'.";
|
|
4
3
|
export declare const securityReviewSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_SAST_SKILL_NAME = "security-sast";
|
|
3
|
-
export declare const SECURITY_SAST_SKILL_DESCRIPTION = "Static Application Security Testing (SAST), Semgrep usage, CWE-specific code patterns, and ESLint security plugins. Triggers: 'SAST', 'static analysis', 'semgrep', 'code scanning', 'vulnerability pattern'.";
|
|
4
3
|
export declare const securitySastSkill: BuiltinSkill;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
2
|
export declare const SECURITY_SECRETS_SKILL_NAME = "security-secrets";
|
|
3
|
-
export declare const SECURITY_SECRETS_SKILL_DESCRIPTION = "Secret scanning, entropy analysis, gitleaks usage, and remediation playbooks for exposed credentials. Triggers: 'secret', 'API key', 'credential', 'gitleaks', 'secret scanning', 'key exposure'.";
|
|
4
3
|
export declare const securitySecretsSkill: BuiltinSkill;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import type { BuiltinSkill } from "../types";
|
|
2
|
-
export declare const TDD_ENFORCER_SKILL_NAME = "tdd-enforcer";
|
|
3
|
-
export declare const TDD_ENFORCER_SKILL_DESCRIPTION = "Test-Driven Development enforcement: RED-GREEN-REFACTOR cycle, mandatory test-first for every fix/feature/refactor, bun test conventions, BDD comment patterns, unit vs integration test strategy, evidence requirements. Triggers: 'write tests', 'TDD', 'test first', 'unit test', 'integration test', 'test coverage', 'testing', 'failing test', 'test suite'.";
|
|
4
2
|
export declare const tddEnforcerSkill: BuiltinSkill;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BuiltinSkill } from "./types";
|
|
2
1
|
import type { BrowserAutomationProvider } from "../../config/schema";
|
|
2
|
+
import type { BuiltinSkill } from "./types";
|
|
3
3
|
export interface CreateBuiltinSkillsOptions {
|
|
4
4
|
browserProvider?: BrowserAutomationProvider;
|
|
5
5
|
disabledSkills?: Set<string>;
|
|
@@ -4,7 +4,7 @@ export type CommandScope = "user" | "project" | "opencode" | "opencode-project";
|
|
|
4
4
|
* Based on speckit's handoff pattern for multi-agent orchestration.
|
|
5
5
|
* @see https://github.com/github/spec-kit
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
interface HandoffDefinition {
|
|
8
8
|
/** Human-readable label for the handoff action */
|
|
9
9
|
label: string;
|
|
10
10
|
/** Target agent/command identifier (e.g., "speckit.tasks") */
|
|
@@ -40,3 +40,4 @@ export interface LoadedCommand {
|
|
|
40
40
|
definition: CommandDefinition;
|
|
41
41
|
scope: CommandScope;
|
|
42
42
|
}
|
|
43
|
+
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Loads Claude Code .mcp.json format configurations from multiple scopes
|
|
5
5
|
* and transforms them to OpenCode SDK format
|
|
6
6
|
*/
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./env-expander";
|
|
8
8
|
export * from "./loader";
|
|
9
9
|
export * from "./transformer";
|
|
10
|
-
export * from "./
|
|
10
|
+
export * from "./types";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { McpLoadResult } from "./types";
|
|
2
2
|
export declare function getSystemMcpServerNames(): Set<string>;
|
|
3
3
|
export declare function loadMcpConfigs(disabledMcps?: string[]): Promise<McpLoadResult>;
|
|
4
|
-
export declare function formatLoadedServersForToast(loadedServers: LoadedMcpServer[]): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PluginLoaderOptions, PluginLoadResult } from "./types";
|
|
2
2
|
export declare function discoverInstalledPlugins(options?: PluginLoaderOptions): PluginLoadResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./loader";
|
|
1
|
+
export * from "./agent-loader";
|
|
2
|
+
export * from "./command-loader";
|
|
3
3
|
export * from "./discovery";
|
|
4
|
+
export * from "./hook-loader";
|
|
5
|
+
export * from "./loader";
|
|
6
|
+
export * from "./mcp-server-loader";
|
|
4
7
|
export * from "./plugin-path-resolver";
|
|
5
|
-
export * from "./command-loader";
|
|
6
8
|
export * from "./skill-loader";
|
|
7
|
-
export
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./hook-loader";
|
|
10
|
-
export type { PluginLoaderOptions, ClaudeSettings } from "./types";
|
|
9
|
+
export type { ClaudeSettings, PluginLoaderOptions } from "./types";
|
|
10
|
+
export * from "./types";
|
|
@@ -2,13 +2,13 @@ import type { AgentConfig } from "@opencode-ai/sdk";
|
|
|
2
2
|
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
|
3
3
|
import type { McpServerConfig } from "../claude-code-mcp-loader/types";
|
|
4
4
|
import type { HooksConfig, LoadedPlugin, PluginLoadError, PluginLoaderOptions } from "./types";
|
|
5
|
-
export { discoverInstalledPlugins } from "./discovery";
|
|
6
|
-
export { loadPluginCommands } from "./command-loader";
|
|
7
|
-
export { loadPluginSkillsAsCommands } from "./skill-loader";
|
|
8
5
|
export { loadPluginAgents } from "./agent-loader";
|
|
9
|
-
export {
|
|
6
|
+
export { loadPluginCommands } from "./command-loader";
|
|
7
|
+
export { discoverInstalledPlugins } from "./discovery";
|
|
10
8
|
export { loadPluginHooksConfigs } from "./hook-loader";
|
|
11
|
-
export
|
|
9
|
+
export { loadPluginMcpServers } from "./mcp-server-loader";
|
|
10
|
+
export { loadPluginSkillsAsCommands } from "./skill-loader";
|
|
11
|
+
interface PluginComponentsResult {
|
|
12
12
|
commands: Record<string, CommandDefinition>;
|
|
13
13
|
skills: Record<string, CommandDefinition>;
|
|
14
14
|
agents: Record<string, AgentConfig>;
|
|
@@ -21,7 +21,7 @@ export interface PluginInstallation {
|
|
|
21
21
|
* Installed plugins database v1 (legacy)
|
|
22
22
|
* plugins stored as direct objects
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
interface InstalledPluginsDatabaseV1 {
|
|
25
25
|
version: 1;
|
|
26
26
|
plugins: Record<string, PluginInstallation>;
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ export interface InstalledPluginsDatabaseV1 {
|
|
|
29
29
|
* Installed plugins database v2 (current)
|
|
30
30
|
* plugins stored as arrays
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
interface InstalledPluginsDatabaseV2 {
|
|
33
33
|
version: 2;
|
|
34
34
|
plugins: Record<string, PluginInstallation[]>;
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ export type InstalledPluginsDatabase = InstalledPluginsDatabaseV1 | InstalledPlu
|
|
|
41
41
|
/**
|
|
42
42
|
* Plugin author information
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
interface PluginAuthor {
|
|
45
45
|
name?: string;
|
|
46
46
|
email?: string;
|
|
47
47
|
url?: string;
|
|
@@ -70,13 +70,13 @@ export interface PluginManifest {
|
|
|
70
70
|
/**
|
|
71
71
|
* Hooks configuration
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
interface HookEntry {
|
|
74
74
|
type: "command" | "prompt" | "agent";
|
|
75
75
|
command?: string;
|
|
76
76
|
prompt?: string;
|
|
77
77
|
agent?: string;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
interface HookMatcher {
|
|
80
80
|
matcher?: string;
|
|
81
81
|
hooks: HookEntry[];
|
|
82
82
|
}
|
|
@@ -99,7 +99,7 @@ export interface HooksConfig {
|
|
|
99
99
|
/**
|
|
100
100
|
* MCP servers configuration in plugin
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
interface PluginMcpServer {
|
|
103
103
|
command?: string;
|
|
104
104
|
args?: string[];
|
|
105
105
|
env?: Record<string, string>;
|
|
@@ -108,13 +108,13 @@ export interface PluginMcpServer {
|
|
|
108
108
|
type?: "stdio" | "http" | "sse";
|
|
109
109
|
disabled?: boolean;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
interface McpServersConfig {
|
|
112
112
|
mcpServers?: Record<string, PluginMcpServer>;
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* LSP server configuration
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
interface LspServerConfig {
|
|
118
118
|
command: string;
|
|
119
119
|
args?: string[];
|
|
120
120
|
extensionToLanguage: Record<string, string>;
|
|
@@ -132,7 +132,7 @@ export interface LspServerConfig {
|
|
|
132
132
|
env?: Record<string, string>;
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
interface LspServersConfig {
|
|
136
136
|
[language: string]: LspServerConfig;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
@@ -184,3 +184,4 @@ export interface PluginLoaderOptions {
|
|
|
184
184
|
*/
|
|
185
185
|
enabledPluginsOverride?: Record<string, boolean>;
|
|
186
186
|
}
|
|
187
|
+
export {};
|
|
@@ -2,8 +2,9 @@ import type { MatrixxConfig } from "../../config/schema";
|
|
|
2
2
|
export declare function getSessionTaskDir(config: Partial<MatrixxConfig>, sessionID: string): string;
|
|
3
3
|
export declare function listSessionTaskFiles(config: Partial<MatrixxConfig>, sessionID: string): string[];
|
|
4
4
|
export declare function listAllSessionDirs(config: Partial<MatrixxConfig>): string[];
|
|
5
|
-
|
|
5
|
+
interface TaskLocation {
|
|
6
6
|
path: string;
|
|
7
7
|
sessionID: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function findTaskAcrossSessions(config: Partial<MatrixxConfig>, taskId: string): TaskLocation | null;
|
|
10
|
+
export {};
|
|
@@ -3,7 +3,6 @@ import type { MatrixxConfig } from "../../config/schema";
|
|
|
3
3
|
export declare function getTaskDir(config?: Partial<MatrixxConfig>): string;
|
|
4
4
|
export declare function sanitizePathSegment(value: string): string;
|
|
5
5
|
export declare function resolveTaskListId(config?: Partial<MatrixxConfig>): string;
|
|
6
|
-
export declare function ensureDir(dirPath: string): void;
|
|
7
6
|
export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
|
|
8
7
|
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
|
9
8
|
export declare function generateTaskId(): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
3
|
+
deleted: "deleted";
|
|
4
|
+
completed: "completed";
|
|
3
5
|
pending: "pending";
|
|
4
6
|
in_progress: "in_progress";
|
|
5
|
-
completed: "completed";
|
|
6
|
-
deleted: "deleted";
|
|
7
7
|
}>;
|
|
8
8
|
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
9
9
|
export declare const TaskSchema: z.ZodObject<{
|
|
@@ -11,10 +11,10 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
11
11
|
subject: z.ZodString;
|
|
12
12
|
description: z.ZodString;
|
|
13
13
|
status: z.ZodEnum<{
|
|
14
|
+
deleted: "deleted";
|
|
15
|
+
completed: "completed";
|
|
14
16
|
pending: "pending";
|
|
15
17
|
in_progress: "in_progress";
|
|
16
|
-
completed: "completed";
|
|
17
|
-
deleted: "deleted";
|
|
18
18
|
}>;
|
|
19
19
|
activeForm: z.ZodOptional<z.ZodString>;
|
|
20
20
|
blocks: z.ZodArray<z.ZodString>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ContextCollector, contextCollector } from "./collector";
|
|
2
2
|
export { createContextInjectorMessagesTransformHook, } from "./injector";
|
|
3
|
-
export type {
|
|
3
|
+
export type { ContextEntry, ContextPriority, ContextSourceType, InjectionStrategy, MessageContext, OutputParts, PendingContext, RegisterContextOptions, } from "./types";
|
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
import type { ContextCollector } from "./collector";
|
|
2
1
|
import type { Message, Part } from "@opencode-ai/sdk";
|
|
3
|
-
|
|
4
|
-
type: string;
|
|
5
|
-
text?: string;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
interface InjectionResult {
|
|
9
|
-
injected: boolean;
|
|
10
|
-
contextLength: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function injectPendingContext(collector: ContextCollector, sessionID: string, parts: OutputPart[]): InjectionResult;
|
|
13
|
-
interface ChatMessageInput {
|
|
14
|
-
sessionID: string;
|
|
15
|
-
agent?: string;
|
|
16
|
-
model?: {
|
|
17
|
-
providerID: string;
|
|
18
|
-
modelID: string;
|
|
19
|
-
};
|
|
20
|
-
messageID?: string;
|
|
21
|
-
}
|
|
22
|
-
interface ChatMessageOutput {
|
|
23
|
-
message: Record<string, unknown>;
|
|
24
|
-
parts: OutputPart[];
|
|
25
|
-
}
|
|
26
|
-
export declare function createContextInjectorHook(collector: ContextCollector): {
|
|
27
|
-
"chat.message": (input: ChatMessageInput, output: ChatMessageOutput) => Promise<void>;
|
|
28
|
-
};
|
|
2
|
+
import type { ContextCollector } from "./collector";
|
|
29
3
|
interface MessageWithParts {
|
|
30
4
|
info: Message;
|
|
31
5
|
parts: Part[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handoff Storage Constants
|
|
3
|
+
*
|
|
4
|
+
* File path constants for the handoff feature. Defined locally to keep the
|
|
5
|
+
* handoff module self-contained — no dependency on `mission-state/constants`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HANDOFF_FILE_PATH = ".matrixx/handoff.md";
|
|
8
|
+
export declare const HANDOFF_CONSUMED_FILE_PATH = ".matrixx/handoff.consumed.md";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { HANDOFF_CONSUMED_FILE_PATH, HANDOFF_FILE_PATH, } from "./constants";
|
|
2
|
+
export { type GitHead, GitHeadSchema, type HandoffData, type HandoffDecision, HandoffDecisionSchema, type HandoffFileData, type HandoffFrontmatter, HandoffFrontmatterSchema, type HandoffKeyFile, HandoffKeyFileSchema, HandoffSchema, type HandoffSection, HandoffSectionSchema, } from "./schema";
|
|
3
|
+
export { archiveHandoffFile, ensureHandoffDir, getHandoffConsumedFilePath, getHandoffFilePath, handoffFileExists, readHandoffFile, writeHandoffFile, } from "./storage";
|
|
4
|
+
export { type HandoffValidationResult, validateHandoffYaml, } from "./validate";
|
|
@@ -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
|
+
};
|
|
@@ -3,3 +3,5 @@ export declare function getHandoffConsumedFilePath(directory: string): string;
|
|
|
3
3
|
export declare function handoffFileExists(directory: string): boolean;
|
|
4
4
|
export declare function readHandoffFile(directory: string): string | null;
|
|
5
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE } from "../../shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MESSAGE_STORAGE } from "./constants";
|
|
2
2
|
export type { StoredMessage } from "./injector";
|
|
3
|
+
export { findFirstMessageWithAgent, findFirstMessageWithAgentFromSDK, findNearestMessageWithFields, findNearestMessageWithFieldsFromSDK, injectHookMessage, resolveMessageContext, } from "./injector";
|
|
3
4
|
export type { MessageMeta, OriginalMessageContext, TextPart, ToolPermission } from "./types";
|
|
4
|
-
export { MESSAGE_STORAGE } from "./constants";
|
|
@@ -14,11 +14,11 @@ type OpencodeClient = PluginInput["client"];
|
|
|
14
14
|
* Finds the nearest message with required fields using SDK (for beta/SQLite backend).
|
|
15
15
|
* Uses client.session.messages() to fetch message data from SQLite.
|
|
16
16
|
*/
|
|
17
|
-
export declare function findNearestMessageWithFieldsFromSDK(client: OpencodeClient, sessionID: string): Promise<StoredMessage | null>;
|
|
17
|
+
export declare function findNearestMessageWithFieldsFromSDK(client: OpencodeClient, sessionID: string, timeoutMs?: number): Promise<StoredMessage | null>;
|
|
18
18
|
/**
|
|
19
19
|
* Finds the FIRST (oldest) message with agent field using SDK (for beta/SQLite backend).
|
|
20
20
|
*/
|
|
21
|
-
export declare function findFirstMessageWithAgentFromSDK(client: OpencodeClient, sessionID: string): Promise<string | null>;
|
|
21
|
+
export declare function findFirstMessageWithAgentFromSDK(client: OpencodeClient, sessionID: string, timeoutMs?: number): Promise<string | null>;
|
|
22
22
|
/**
|
|
23
23
|
* Finds the nearest message with required fields (agent, model.providerID, model.modelID).
|
|
24
24
|
* Reads from JSON files - for stable (JSON) backend.
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export type ClientRegistrationRequest = {
|
|
2
|
-
redirect_uris: string[];
|
|
3
|
-
client_name: string;
|
|
4
|
-
grant_types: ["authorization_code", "refresh_token"];
|
|
5
|
-
response_types: ["code"];
|
|
6
|
-
token_endpoint_auth_method: "none" | "client_secret_post";
|
|
7
|
-
};
|
|
8
1
|
export type ClientCredentials = {
|
|
9
2
|
clientId: string;
|
|
10
3
|
clientSecret?: string;
|
|
@@ -13,7 +6,7 @@ export type ClientRegistrationStorage = {
|
|
|
13
6
|
getClientRegistration: (serverIdentifier: string) => ClientCredentials | null;
|
|
14
7
|
setClientRegistration: (serverIdentifier: string, credentials: ClientCredentials) => void;
|
|
15
8
|
};
|
|
16
|
-
|
|
9
|
+
type DynamicClientRegistrationOptions = {
|
|
17
10
|
registrationEndpoint?: string | null;
|
|
18
11
|
serverIdentifier?: string;
|
|
19
12
|
clientName: string;
|
|
@@ -23,7 +16,7 @@ export type DynamicClientRegistrationOptions = {
|
|
|
23
16
|
storage: ClientRegistrationStorage;
|
|
24
17
|
fetch?: DcrFetch;
|
|
25
18
|
};
|
|
26
|
-
|
|
19
|
+
type DcrFetch = (input: string, init?: {
|
|
27
20
|
method?: string;
|
|
28
21
|
headers?: Record<string, string>;
|
|
29
22
|
body?: string;
|
|
@@ -32,3 +25,4 @@ export type DcrFetch = (input: string, init?: {
|
|
|
32
25
|
json: () => Promise<unknown>;
|
|
33
26
|
}>;
|
|
34
27
|
export declare function getOrRegisterClient(options: DynamicClientRegistrationOptions): Promise<ClientCredentials | null>;
|
|
28
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { OAuthTokenData } from "./storage";
|
|
2
|
-
import type { OAuthServerMetadata } from "./discovery";
|
|
3
1
|
import type { ClientCredentials } from "./dcr";
|
|
2
|
+
import type { OAuthServerMetadata } from "./discovery";
|
|
4
3
|
import { buildAuthorizationUrl, generateCodeChallenge, generateCodeVerifier, startCallbackServer } from "./oauth-authorization-flow";
|
|
5
|
-
|
|
4
|
+
import type { OAuthTokenData } from "./storage";
|
|
5
|
+
type McpOAuthProviderOptions = {
|
|
6
6
|
serverUrl: string;
|
|
7
7
|
clientId?: string;
|
|
8
8
|
scopes?: string[];
|
|
@@ -26,4 +26,4 @@ export declare class McpOAuthProvider {
|
|
|
26
26
|
}>;
|
|
27
27
|
login(): Promise<OAuthTokenData>;
|
|
28
28
|
}
|
|
29
|
-
export {
|
|
29
|
+
export { buildAuthorizationUrl, generateCodeChallenge, generateCodeVerifier, startCallbackServer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface StepUpInfo {
|
|
2
2
|
requiredScopes: string[];
|
|
3
3
|
error?: string;
|
|
4
4
|
errorDescription?: string;
|
|
@@ -6,3 +6,4 @@ export interface StepUpInfo {
|
|
|
6
6
|
export declare function parseWwwAuthenticate(header: string): StepUpInfo | null;
|
|
7
7
|
export declare function mergeScopes(existing: string[], required: string[]): string[];
|
|
8
8
|
export declare function isStepUpRequired(statusCode: number, headers: Record<string, string>): StepUpInfo | null;
|
|
9
|
+
export {};
|
|
@@ -3,8 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const MISSION_DIR = ".matrixx";
|
|
5
5
|
export declare const MISSION_FILE = "mission.json";
|
|
6
|
-
export declare const MISSION_STATE_PATH = ".matrixx/mission.json";
|
|
7
|
-
export declare const NOTEPAD_DIR = "notepads";
|
|
8
|
-
export declare const NOTEPAD_BASE_PATH = ".matrixx/notepads";
|
|
9
6
|
/** Oracle planner plan directory pattern */
|
|
10
7
|
export declare const ORACLE_PLANS_DIR = ".matrixx/plans";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Handles reading/writing mission.json for active plan tracking.
|
|
5
5
|
*/
|
|
6
6
|
import type { MissionState, PlanProgress } from "./types";
|
|
7
|
-
export declare function getMissionFilePath(directory: string): string;
|
|
8
7
|
export declare function readMissionState(directory: string): MissionState | null;
|
|
9
8
|
export declare function writeMissionState(directory: string, state: MissionState): boolean;
|
|
10
9
|
export declare function appendSessionId(directory: string, sessionId: string): MissionState | null;
|