opencode-matrixx 1.1.1 → 2.1.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 +168 -129
- package/bin/matrixx.js +4 -4
- package/dist/agents/agent-builder.d.ts +2 -3
- package/dist/agents/architect/agent.d.ts +11 -11
- package/dist/agents/architect/default.d.ts +3 -3
- package/dist/agents/architect/gpt.d.ts +3 -3
- package/dist/agents/architect/index.d.ts +5 -5
- package/dist/agents/architect/prompt-section-builder.d.ts +1 -1
- package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
- package/dist/agents/builtin-agents/{atlas-agent.d.ts → architect-agent.d.ts} +2 -2
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents/general-agents.d.ts +3 -5
- package/dist/agents/builtin-agents/hephaestus-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/merovingian.d.ts +1 -0
- 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 +7 -7
- 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 +16738 -14494
- 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 +8 -41
- 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 +4 -2
- package/dist/config/schema/matrixx-config.d.ts +24 -53
- 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 +6 -4
- 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/templates/start-work.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 +3 -3
- 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/mission-state/types.d.ts +1 -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/{atlas-hook.d.ts → architect-hook.d.ts} +2 -2
- package/dist/hooks/architect/event-handler.d.ts +3 -3
- package/dist/hooks/architect/index.d.ts +2 -2
- package/dist/hooks/architect/types.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/mouse-notepad/constants.d.ts +1 -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 +65863 -52362
- 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 +2 -2
- package/dist/plugin/hooks/create-core-hooks.d.ts +4 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts +4 -4
- 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 +2 -3
- 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/mouse-agent.d.ts +1 -1
- 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 +3 -4
- 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/agents/builtin-agents/{sisyphus-agent.d.ts → morpheus-agent.d.ts} +1 -1
- /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,13 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHookEvent } from "./types";
|
|
2
|
-
export interface DisabledHooksConfig {
|
|
3
|
-
Stop?: string[];
|
|
4
|
-
PreToolUse?: string[];
|
|
5
|
-
PostToolUse?: string[];
|
|
6
|
-
UserPromptSubmit?: string[];
|
|
7
|
-
PreCompact?: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface PluginExtendedConfig {
|
|
10
|
-
disabledHooks?: DisabledHooksConfig;
|
|
11
|
-
}
|
|
12
|
-
export declare function loadPluginExtendedConfig(): Promise<PluginExtendedConfig>;
|
|
13
|
-
export declare function isHookCommandDisabled(eventType: ClaudeHookEvent, command: string, config: PluginExtendedConfig | null): boolean;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { PluginConfig } from "../types";
|
|
3
|
-
import type { ContextCollector } from "../../../features/context-injector";
|
|
4
|
-
export declare function createChatMessageHandler(ctx: PluginInput, config: PluginConfig, contextCollector?: ContextCollector): (input: {
|
|
5
|
-
sessionID: string;
|
|
6
|
-
agent?: string;
|
|
7
|
-
model?: {
|
|
8
|
-
providerID: string;
|
|
9
|
-
modelID: string;
|
|
10
|
-
};
|
|
11
|
-
messageID?: string;
|
|
12
|
-
}, output: {
|
|
13
|
-
message: Record<string, unknown>;
|
|
14
|
-
parts: Array<{
|
|
15
|
-
type: string;
|
|
16
|
-
text?: string;
|
|
17
|
-
[key: string]: unknown;
|
|
18
|
-
}>;
|
|
19
|
-
}) => Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { PluginConfig } from "../types";
|
|
3
|
-
export declare function createPreCompactHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
|
4
|
-
sessionID: string;
|
|
5
|
-
}, output: {
|
|
6
|
-
context: string[];
|
|
7
|
-
}) => Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { PluginConfig } from "../types";
|
|
3
|
-
export declare function createSessionEventHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
|
4
|
-
event: {
|
|
5
|
-
type: string;
|
|
6
|
-
properties?: unknown;
|
|
7
|
-
};
|
|
8
|
-
}) => Promise<void>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { PluginConfig } from "../types";
|
|
3
|
-
export declare function createToolExecuteAfterHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
|
4
|
-
tool: string;
|
|
5
|
-
sessionID: string;
|
|
6
|
-
callID: string;
|
|
7
|
-
}, output: {
|
|
8
|
-
title: string;
|
|
9
|
-
output: string;
|
|
10
|
-
metadata: unknown;
|
|
11
|
-
} | undefined) => Promise<void>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { PluginConfig } from "../types";
|
|
3
|
-
export declare function createToolExecuteBeforeHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
|
4
|
-
tool: string;
|
|
5
|
-
sessionID: string;
|
|
6
|
-
callID: string;
|
|
7
|
-
}, output: {
|
|
8
|
-
args: Record<string, unknown>;
|
|
9
|
-
}) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createClaudeCodeHooksHook } from "./claude-code-hooks-hook";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHooksConfig } from "./types";
|
|
2
|
-
import { type PluginExtendedConfig } from "./config-loader";
|
|
3
|
-
export interface PostToolUseClient {
|
|
4
|
-
session: {
|
|
5
|
-
messages: (opts: {
|
|
6
|
-
path: {
|
|
7
|
-
id: string;
|
|
8
|
-
};
|
|
9
|
-
query?: {
|
|
10
|
-
directory: string;
|
|
11
|
-
};
|
|
12
|
-
}) => Promise<unknown>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface PostToolUseContext {
|
|
16
|
-
sessionId: string;
|
|
17
|
-
toolName: string;
|
|
18
|
-
toolInput: Record<string, unknown>;
|
|
19
|
-
toolOutput: Record<string, unknown>;
|
|
20
|
-
cwd: string;
|
|
21
|
-
transcriptPath?: string;
|
|
22
|
-
toolUseId?: string;
|
|
23
|
-
client?: PostToolUseClient;
|
|
24
|
-
permissionMode?: "default" | "plan" | "acceptEdits" | "bypassPermissions";
|
|
25
|
-
}
|
|
26
|
-
export interface PostToolUseResult {
|
|
27
|
-
block: boolean;
|
|
28
|
-
reason?: string;
|
|
29
|
-
message?: string;
|
|
30
|
-
warnings?: string[];
|
|
31
|
-
elapsedMs?: number;
|
|
32
|
-
hookName?: string;
|
|
33
|
-
toolName?: string;
|
|
34
|
-
additionalContext?: string;
|
|
35
|
-
continue?: boolean;
|
|
36
|
-
stopReason?: string;
|
|
37
|
-
suppressOutput?: boolean;
|
|
38
|
-
systemMessage?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare function executePostToolUseHooks(ctx: PostToolUseContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<PostToolUseResult>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHooksConfig } from "./types";
|
|
2
|
-
import { type PluginExtendedConfig } from "./config-loader";
|
|
3
|
-
export interface PreCompactContext {
|
|
4
|
-
sessionId: string;
|
|
5
|
-
cwd: string;
|
|
6
|
-
}
|
|
7
|
-
export interface PreCompactResult {
|
|
8
|
-
context: string[];
|
|
9
|
-
elapsedMs?: number;
|
|
10
|
-
hookName?: string;
|
|
11
|
-
continue?: boolean;
|
|
12
|
-
stopReason?: string;
|
|
13
|
-
suppressOutput?: boolean;
|
|
14
|
-
systemMessage?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function executePreCompactHooks(ctx: PreCompactContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<PreCompactResult>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { PermissionDecision, ClaudeHooksConfig } from "./types";
|
|
2
|
-
import { type PluginExtendedConfig } from "./config-loader";
|
|
3
|
-
export interface PreToolUseContext {
|
|
4
|
-
sessionId: string;
|
|
5
|
-
toolName: string;
|
|
6
|
-
toolInput: Record<string, unknown>;
|
|
7
|
-
cwd: string;
|
|
8
|
-
transcriptPath?: string;
|
|
9
|
-
toolUseId?: string;
|
|
10
|
-
permissionMode?: "default" | "plan" | "acceptEdits" | "bypassPermissions";
|
|
11
|
-
}
|
|
12
|
-
export interface PreToolUseResult {
|
|
13
|
-
decision: PermissionDecision;
|
|
14
|
-
reason?: string;
|
|
15
|
-
modifiedInput?: Record<string, unknown>;
|
|
16
|
-
elapsedMs?: number;
|
|
17
|
-
hookName?: string;
|
|
18
|
-
toolName?: string;
|
|
19
|
-
inputLines?: string;
|
|
20
|
-
continue?: boolean;
|
|
21
|
-
stopReason?: string;
|
|
22
|
-
suppressOutput?: boolean;
|
|
23
|
-
systemMessage?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function executePreToolUseHooks(ctx: PreToolUseContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<PreToolUseResult>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const sessionFirstMessageProcessed: Set<string>;
|
|
2
|
-
export declare const sessionErrorState: Map<string, {
|
|
3
|
-
hasError: boolean;
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const sessionInterruptState: Map<string, {
|
|
7
|
-
interrupted: boolean;
|
|
8
|
-
}>;
|
|
9
|
-
export declare function clearSessionHookState(sessionID: string): void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHooksConfig } from "./types";
|
|
2
|
-
import { type PluginExtendedConfig } from "./config-loader";
|
|
3
|
-
export declare function setStopHookActive(sessionId: string, active: boolean): void;
|
|
4
|
-
export declare function getStopHookActive(sessionId: string): boolean;
|
|
5
|
-
export interface StopContext {
|
|
6
|
-
sessionId: string;
|
|
7
|
-
parentSessionId?: string;
|
|
8
|
-
cwd: string;
|
|
9
|
-
transcriptPath?: string;
|
|
10
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions";
|
|
11
|
-
stopHookActive?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface StopResult {
|
|
14
|
-
block: boolean;
|
|
15
|
-
reason?: string;
|
|
16
|
-
stopHookActive?: boolean;
|
|
17
|
-
permissionMode?: "default" | "plan" | "acceptEdits" | "bypassPermissions";
|
|
18
|
-
injectPrompt?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function executeStopHooks(ctx: StopContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<StopResult>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { TodoFile } from "./types";
|
|
2
|
-
export declare function getTodoPath(sessionId: string): string;
|
|
3
|
-
export interface OpenCodeTodo {
|
|
4
|
-
content: string;
|
|
5
|
-
status: string;
|
|
6
|
-
priority: string;
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function loadTodoFile(sessionId: string): TodoFile | null;
|
|
10
|
-
export declare function saveTodoFile(sessionId: string, file: TodoFile): void;
|
|
11
|
-
export declare function saveOpenCodeTodos(sessionId: string, todos: OpenCodeTodo[]): void;
|
|
12
|
-
export declare function deleteTodoFile(sessionId: string): void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Caches tool_input from PreToolUse for PostToolUse
|
|
3
|
-
*/
|
|
4
|
-
export declare function cacheToolInput(sessionId: string, toolName: string, invocationId: string, toolInput: Record<string, unknown>): void;
|
|
5
|
-
export declare function getToolInput(sessionId: string, toolName: string, invocationId: string): Record<string, unknown> | null;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { TranscriptEntry } from "./types";
|
|
2
|
-
export declare function getTranscriptPath(sessionId: string): string;
|
|
3
|
-
export declare function appendTranscriptEntry(sessionId: string, entry: TranscriptEntry): void;
|
|
4
|
-
/**
|
|
5
|
-
* Clear transcript cache for a specific session or all sessions.
|
|
6
|
-
* Call on session.deleted to prevent memory accumulation.
|
|
7
|
-
*/
|
|
8
|
-
export declare function clearTranscriptCache(sessionId?: string): void;
|
|
9
|
-
/**
|
|
10
|
-
* Build Claude Code compatible transcript from session messages.
|
|
11
|
-
* Uses per-session cache to avoid redundant session.messages() API calls.
|
|
12
|
-
* First call fetches and caches; subsequent calls reuse cached base entries.
|
|
13
|
-
*/
|
|
14
|
-
export declare function buildTranscriptFromSession(client: {
|
|
15
|
-
session: {
|
|
16
|
-
messages: (opts: {
|
|
17
|
-
path: {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
query?: {
|
|
21
|
-
directory: string;
|
|
22
|
-
};
|
|
23
|
-
}) => Promise<unknown>;
|
|
24
|
-
};
|
|
25
|
-
}, sessionId: string, directory: string, currentToolName: string, currentToolInput: Record<string, unknown>): Promise<string | null>;
|
|
26
|
-
/**
|
|
27
|
-
* Delete temp transcript file (call in finally block)
|
|
28
|
-
*/
|
|
29
|
-
export declare function deleteTempTranscript(path: string | null): void;
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude Code Hooks Type Definitions
|
|
3
|
-
* Maps Claude Code hook concepts to OpenCode plugin events
|
|
4
|
-
*/
|
|
5
|
-
export type ClaudeHookEvent = "PreToolUse" | "PostToolUse" | "UserPromptSubmit" | "Stop" | "PreCompact";
|
|
6
|
-
export interface HookMatcher {
|
|
7
|
-
matcher: string;
|
|
8
|
-
hooks: HookCommand[];
|
|
9
|
-
}
|
|
10
|
-
export interface HookCommand {
|
|
11
|
-
type: "command";
|
|
12
|
-
command: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ClaudeHooksConfig {
|
|
15
|
-
PreToolUse?: HookMatcher[];
|
|
16
|
-
PostToolUse?: HookMatcher[];
|
|
17
|
-
UserPromptSubmit?: HookMatcher[];
|
|
18
|
-
Stop?: HookMatcher[];
|
|
19
|
-
PreCompact?: HookMatcher[];
|
|
20
|
-
}
|
|
21
|
-
export interface PreToolUseInput {
|
|
22
|
-
session_id: string;
|
|
23
|
-
transcript_path?: string;
|
|
24
|
-
cwd: string;
|
|
25
|
-
permission_mode?: PermissionMode;
|
|
26
|
-
hook_event_name: "PreToolUse";
|
|
27
|
-
tool_name: string;
|
|
28
|
-
tool_input: Record<string, unknown>;
|
|
29
|
-
tool_use_id?: string;
|
|
30
|
-
hook_source?: HookSource;
|
|
31
|
-
}
|
|
32
|
-
export interface PostToolUseInput {
|
|
33
|
-
session_id: string;
|
|
34
|
-
transcript_path?: string;
|
|
35
|
-
cwd: string;
|
|
36
|
-
permission_mode?: PermissionMode;
|
|
37
|
-
hook_event_name: "PostToolUse";
|
|
38
|
-
tool_name: string;
|
|
39
|
-
tool_input: Record<string, unknown>;
|
|
40
|
-
tool_response: {
|
|
41
|
-
title?: string;
|
|
42
|
-
output?: string;
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
tool_use_id?: string;
|
|
46
|
-
hook_source?: HookSource;
|
|
47
|
-
}
|
|
48
|
-
export interface UserPromptSubmitInput {
|
|
49
|
-
session_id: string;
|
|
50
|
-
cwd: string;
|
|
51
|
-
permission_mode?: PermissionMode;
|
|
52
|
-
hook_event_name: "UserPromptSubmit";
|
|
53
|
-
prompt: string;
|
|
54
|
-
session?: {
|
|
55
|
-
id: string;
|
|
56
|
-
};
|
|
57
|
-
hook_source?: HookSource;
|
|
58
|
-
}
|
|
59
|
-
export type PermissionMode = "default" | "plan" | "acceptEdits" | "bypassPermissions";
|
|
60
|
-
export type HookSource = "opencode-plugin";
|
|
61
|
-
export interface StopInput {
|
|
62
|
-
session_id: string;
|
|
63
|
-
transcript_path?: string;
|
|
64
|
-
cwd: string;
|
|
65
|
-
permission_mode?: PermissionMode;
|
|
66
|
-
hook_event_name: "Stop";
|
|
67
|
-
stop_hook_active: boolean;
|
|
68
|
-
todo_path?: string;
|
|
69
|
-
hook_source?: HookSource;
|
|
70
|
-
}
|
|
71
|
-
export interface PreCompactInput {
|
|
72
|
-
session_id: string;
|
|
73
|
-
cwd: string;
|
|
74
|
-
hook_event_name: "PreCompact";
|
|
75
|
-
hook_source?: HookSource;
|
|
76
|
-
}
|
|
77
|
-
export type PermissionDecision = "allow" | "deny" | "ask";
|
|
78
|
-
/**
|
|
79
|
-
* Common JSON fields for all hook outputs (Claude Code spec)
|
|
80
|
-
*/
|
|
81
|
-
export interface HookCommonOutput {
|
|
82
|
-
/** If false, Claude stops entirely */
|
|
83
|
-
continue?: boolean;
|
|
84
|
-
/** Message shown to user when continue=false */
|
|
85
|
-
stopReason?: string;
|
|
86
|
-
/** Suppress output from transcript */
|
|
87
|
-
suppressOutput?: boolean;
|
|
88
|
-
/** Warning/message displayed to user */
|
|
89
|
-
systemMessage?: string;
|
|
90
|
-
}
|
|
91
|
-
export interface PreToolUseOutput extends HookCommonOutput {
|
|
92
|
-
/** Deprecated: use hookSpecificOutput.permissionDecision instead */
|
|
93
|
-
decision?: "allow" | "deny" | "approve" | "block" | "ask";
|
|
94
|
-
/** Deprecated: use hookSpecificOutput.permissionDecisionReason instead */
|
|
95
|
-
reason?: string;
|
|
96
|
-
hookSpecificOutput?: {
|
|
97
|
-
hookEventName: "PreToolUse";
|
|
98
|
-
permissionDecision: PermissionDecision;
|
|
99
|
-
permissionDecisionReason?: string;
|
|
100
|
-
updatedInput?: Record<string, unknown>;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface PostToolUseOutput extends HookCommonOutput {
|
|
104
|
-
decision?: "block";
|
|
105
|
-
reason?: string;
|
|
106
|
-
hookSpecificOutput?: {
|
|
107
|
-
hookEventName: "PostToolUse";
|
|
108
|
-
/** Additional context to provide to Claude */
|
|
109
|
-
additionalContext?: string;
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
export interface HookResult {
|
|
113
|
-
exitCode: number;
|
|
114
|
-
stdout?: string;
|
|
115
|
-
stderr?: string;
|
|
116
|
-
}
|
|
117
|
-
export interface TranscriptEntry {
|
|
118
|
-
type: "tool_use" | "tool_result" | "user" | "assistant";
|
|
119
|
-
timestamp: string;
|
|
120
|
-
tool_name?: string;
|
|
121
|
-
tool_input?: Record<string, unknown>;
|
|
122
|
-
tool_output?: Record<string, unknown>;
|
|
123
|
-
content?: string;
|
|
124
|
-
}
|
|
125
|
-
export interface TodoItem {
|
|
126
|
-
id: string;
|
|
127
|
-
content: string;
|
|
128
|
-
status: "pending" | "in_progress" | "completed" | "cancelled";
|
|
129
|
-
priority?: "low" | "medium" | "high";
|
|
130
|
-
created_at: string;
|
|
131
|
-
updated_at?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface ClaudeCodeTodoItem {
|
|
134
|
-
content: string;
|
|
135
|
-
status: string;
|
|
136
|
-
activeForm: string;
|
|
137
|
-
}
|
|
138
|
-
export interface TodoFile {
|
|
139
|
-
session_id: string;
|
|
140
|
-
items: TodoItem[];
|
|
141
|
-
created_at: string;
|
|
142
|
-
updated_at: string;
|
|
143
|
-
}
|
|
144
|
-
export interface StopOutput {
|
|
145
|
-
decision?: "block" | "continue";
|
|
146
|
-
reason?: string;
|
|
147
|
-
stop_hook_active?: boolean;
|
|
148
|
-
permission_mode?: PermissionMode;
|
|
149
|
-
inject_prompt?: string;
|
|
150
|
-
}
|
|
151
|
-
export interface PreCompactOutput extends HookCommonOutput {
|
|
152
|
-
/** Additional context to inject into compaction prompt */
|
|
153
|
-
context?: string[];
|
|
154
|
-
hookSpecificOutput?: {
|
|
155
|
-
hookEventName: "PreCompact";
|
|
156
|
-
/** Additional context strings to inject */
|
|
157
|
-
additionalContext?: string[];
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
export type ClaudeCodeContent = {
|
|
161
|
-
type: "text";
|
|
162
|
-
text: string;
|
|
163
|
-
} | {
|
|
164
|
-
type: "tool_use";
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
|
-
input: Record<string, unknown>;
|
|
168
|
-
} | {
|
|
169
|
-
type: "tool_result";
|
|
170
|
-
tool_use_id: string;
|
|
171
|
-
content: string;
|
|
172
|
-
};
|
|
173
|
-
export interface ClaudeCodeMessage {
|
|
174
|
-
type: "user" | "assistant";
|
|
175
|
-
message: {
|
|
176
|
-
role: "user" | "assistant";
|
|
177
|
-
content: ClaudeCodeContent[];
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
export interface PluginConfig {
|
|
181
|
-
disabledHooks?: boolean | ClaudeHookEvent[];
|
|
182
|
-
keywordDetectorDisabled?: boolean;
|
|
183
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHooksConfig } from "./types";
|
|
2
|
-
import { type PluginExtendedConfig } from "./config-loader";
|
|
3
|
-
export interface MessagePart {
|
|
4
|
-
type: "text" | "tool_use" | "tool_result";
|
|
5
|
-
text?: string;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface UserPromptSubmitContext {
|
|
9
|
-
sessionId: string;
|
|
10
|
-
parentSessionId?: string;
|
|
11
|
-
prompt: string;
|
|
12
|
-
parts: MessagePart[];
|
|
13
|
-
cwd: string;
|
|
14
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions";
|
|
15
|
-
}
|
|
16
|
-
export interface UserPromptSubmitResult {
|
|
17
|
-
block: boolean;
|
|
18
|
-
reason?: string;
|
|
19
|
-
modifiedParts: MessagePart[];
|
|
20
|
-
messages: string[];
|
|
21
|
-
}
|
|
22
|
-
export declare function executeUserPromptSubmitHooks(ctx: UserPromptSubmitContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<UserPromptSubmitResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const HANDOFF_FILENAME = "handoff.md";
|
|
2
|
-
export declare const HANDOFF_CONSUMED_FILENAME = "handoff.consumed.md";
|
|
3
|
-
export declare const HANDOFF_FILE_PATH = ".matrixx/handoff.md";
|
|
4
|
-
export declare const HANDOFF_CONSUMED_FILE_PATH = ".matrixx/handoff.consumed.md";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
args?: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
interface ToolExecuteOutput {
|
|
9
|
-
title: string;
|
|
10
|
-
output: string;
|
|
11
|
-
metadata: unknown;
|
|
12
|
-
}
|
|
13
|
-
interface EventInput {
|
|
14
|
-
event: {
|
|
15
|
-
type: string;
|
|
16
|
-
properties?: unknown;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare function createInteractiveBashSessionHook(ctx: PluginInput): {
|
|
20
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
21
|
-
event: ({ event }: EventInput) => Promise<void>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { InteractiveBashSessionState } from "./types";
|
|
2
|
-
type AbortSession = (args: {
|
|
3
|
-
path: {
|
|
4
|
-
id: string;
|
|
5
|
-
};
|
|
6
|
-
}) => Promise<unknown>;
|
|
7
|
-
export declare function createInteractiveBashSessionTracker(options: {
|
|
8
|
-
abortSession: AbortSession;
|
|
9
|
-
}): {
|
|
10
|
-
getOrCreateState: (sessionID: string) => InteractiveBashSessionState;
|
|
11
|
-
handleSessionDeleted: (sessionID: string) => Promise<void>;
|
|
12
|
-
handleTmuxCommand: (input: {
|
|
13
|
-
sessionID: string;
|
|
14
|
-
subCommand: string;
|
|
15
|
-
sessionName: string | null;
|
|
16
|
-
toolOutput: string;
|
|
17
|
-
}) => {
|
|
18
|
-
reminderToAppend: string | null;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
-
import type { MessageData } from "./types";
|
|
3
|
-
type Client = ReturnType<typeof createOpencodeClient>;
|
|
4
|
-
export declare function recoverEmptyContentMessage(client: Client, sessionID: string, failedAssistantMsg: MessageData, _directory: string, error: unknown): Promise<boolean>;
|
|
5
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function remapAgentKeysToDisplayNames(agents: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface CommandResult {
|
|
2
|
-
exitCode: number;
|
|
3
|
-
stdout?: string;
|
|
4
|
-
stderr?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ExecuteHookOptions {
|
|
7
|
-
forceZsh?: boolean;
|
|
8
|
-
zshPath?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function executeHookCommand(command: string, stdin: string, cwd: string, options?: ExecuteHookOptions): Promise<CommandResult>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getHomeDirectory(): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function fuzzyMatchModel(target: string, available: Set<string>, providers?: string[]): string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function addModelsFromModelsJsonCache(connectedProviders: Set<string>, modelSet: Set<string>): boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ModelListFunction, ProviderListFunction } from "./open-code-client-shapes";
|
|
2
|
-
export declare function getProviderListFunction(client: unknown): ProviderListFunction | null;
|
|
3
|
-
export declare function getModelListFunction(client: unknown): ModelListFunction | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type ProviderListResponse = {
|
|
2
|
-
data?: {
|
|
3
|
-
connected?: string[];
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export type ModelListResponse = {
|
|
7
|
-
data?: Array<{
|
|
8
|
-
id?: string;
|
|
9
|
-
provider?: string;
|
|
10
|
-
}>;
|
|
11
|
-
};
|
|
12
|
-
export type ProviderListFunction = () => Promise<ProviderListResponse>;
|
|
13
|
-
export type ModelListFunction = () => Promise<ModelListResponse>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ClaudeHooksConfig, HookMatcher } from "../hooks/claude-code-hooks/types";
|
|
2
|
-
export declare function matchesToolMatcher(toolName: string, matcher: string): boolean;
|
|
3
|
-
export declare function findMatchingHooks(config: ClaudeHooksConfig, eventName: keyof ClaudeHooksConfig, toolName?: string): HookMatcher[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function addModelsFromProviderModelsCache(connectedProviders: Set<string>, modelSet: Set<string>): boolean;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function camelToSnake(str: string): string;
|
|
2
|
-
export declare function snakeToCamel(str: string): string;
|
|
3
|
-
export declare function transformObjectKeys(obj: Record<string, unknown>, transformer: (key: string) => string, deep?: boolean): Record<string, unknown>;
|
|
4
|
-
export declare function objectToSnakeCase(obj: Record<string, unknown>, deep?: boolean): Record<string, unknown>;
|
|
5
|
-
export declare function objectToCamelCase(obj: Record<string, unknown>, deep?: boolean): Record<string, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { spawn } from "bun";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformToolName(toolName: string): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundCancelClient } from "../types";
|
|
3
|
-
import type { BackgroundManager } from "../../../features/background-agent";
|
|
4
|
-
export declare function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition;
|