opencode-matrixx 2.6.3 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/agents/dynamic-agent-prompt-builder.d.ts +5 -3
  2. package/dist/agents/mouse/agent.d.ts +1 -1
  3. package/dist/agents/oracle/behavioral-summary.d.ts +1 -1
  4. package/dist/agents/oracle/identity-constraints.d.ts +1 -1
  5. package/dist/agents/oracle/plan-generation.d.ts +1 -1
  6. package/dist/agents/oracle/plan-template.d.ts +1 -1
  7. package/dist/agents/oracle/system-prompt.d.ts +4 -3
  8. package/dist/agents/smith.d.ts +1 -1
  9. package/dist/agents/types.d.ts +1 -1
  10. package/dist/cli/setup/index.d.ts +1 -0
  11. package/dist/cli/setup/preset-wizard.d.ts +36 -0
  12. package/dist/cli/setup/types.d.ts +5 -0
  13. package/dist/cli.js +581 -49
  14. package/dist/config/index.d.ts +0 -1
  15. package/dist/config/migrations/index.d.ts +1 -0
  16. package/dist/config/migrations/model-migration.d.ts +17 -0
  17. package/dist/config/preset-applier.d.ts +17 -0
  18. package/dist/config/schema/agent-overrides.d.ts +0 -133
  19. package/dist/config/schema/categories.d.ts +0 -14
  20. package/dist/config/schema/commands.d.ts +1 -1
  21. package/dist/config/schema/failure-counter.d.ts +7 -0
  22. package/dist/config/schema/hooks.d.ts +1 -0
  23. package/dist/config/schema/matrixx-config.d.ts +61 -134
  24. package/dist/config/schema/model-config.d.ts +59 -0
  25. package/dist/config/schema/model-presets.d.ts +40 -0
  26. package/dist/config/schema/morpheus.d.ts +4 -0
  27. package/dist/config/schema/task.d.ts +6 -0
  28. package/dist/config/schema/tasks.d.ts +25 -0
  29. package/dist/config/schema.d.ts +5 -0
  30. package/dist/create-hooks.d.ts +1 -0
  31. package/dist/features/background-agent/manager.d.ts +8 -0
  32. package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
  33. package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
  34. package/dist/features/builtin-commands/types.d.ts +1 -1
  35. package/dist/features/mission-state/plan-storage.d.ts +1 -0
  36. package/dist/features/mission-state/plan-storage.test.d.ts +1 -0
  37. package/dist/features/preset-state/index.d.ts +1 -0
  38. package/dist/features/preset-state/manager.d.ts +5 -0
  39. package/dist/features/session-state/state.d.ts +32 -0
  40. package/dist/features/session-state/state.test.d.ts +1 -0
  41. package/dist/features/task-storage/types.d.ts +3 -0
  42. package/dist/hooks/context-mode-enforcer/constants.d.ts +1 -1
  43. package/dist/hooks/failure-counter/counter.d.ts +7 -0
  44. package/dist/hooks/failure-counter/counter.test.d.ts +1 -0
  45. package/dist/hooks/failure-counter/hook.d.ts +18 -0
  46. package/dist/hooks/failure-counter/index.d.ts +3 -0
  47. package/dist/hooks/failure-counter/patterns.d.ts +6 -0
  48. package/dist/hooks/failure-counter/patterns.test.d.ts +1 -0
  49. package/dist/hooks/index.d.ts +1 -0
  50. package/dist/hooks/interactive-bash-session/hook.test.d.ts +1 -0
  51. package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
  52. package/dist/hooks/keyword-detector/analyze/default.d.ts +1 -1
  53. package/dist/hooks/keyword-detector/search/default.d.ts +1 -1
  54. package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +1 -1
  55. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +1 -1
  56. package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +1 -1
  57. package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +1 -1
  58. package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +1 -1
  59. package/dist/hooks/stop-continuation-guard/hook.d.ts +3 -2
  60. package/dist/hooks/stop-continuation-guard/repro.test.d.ts +1 -0
  61. package/dist/hooks/task-continuation-enforcer/awaiting-user.test.d.ts +1 -0
  62. package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +2 -0
  63. package/dist/hooks/task-continuation-enforcer/continuation-injection.test.d.ts +1 -0
  64. package/dist/hooks/task-continuation-enforcer/countdown.d.ts +2 -0
  65. package/dist/hooks/task-continuation-enforcer/handler.d.ts +2 -0
  66. package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +2 -0
  67. package/dist/hooks/task-continuation-enforcer/staleness.d.ts +22 -0
  68. package/dist/hooks/task-continuation-enforcer/staleness.test.d.ts +1 -0
  69. package/dist/hooks/task-continuation-enforcer/todo.d.ts +23 -0
  70. package/dist/hooks/task-continuation-enforcer/todo.test.d.ts +1 -0
  71. package/dist/hooks/task-continuation-enforcer/types.d.ts +6 -0
  72. package/dist/hooks/task-edit-guard/constants.d.ts +2 -0
  73. package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +1 -1
  74. package/dist/hooks/todo-continuation-enforcer/awaiting-user.test.d.ts +1 -0
  75. package/dist/hooks/todo-continuation-enforcer/types.d.ts +3 -0
  76. package/dist/index.js +30326 -29061
  77. package/dist/matrixx.schema.json +286 -190
  78. package/dist/mcp/types.d.ts +1 -1
  79. package/dist/mcp/{grep-app.d.ts → white-rabbit.d.ts} +1 -1
  80. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  81. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
  82. package/dist/plugin-handlers/oracle-agent-config-builder.d.ts +2 -1
  83. package/dist/shared/awaiting-user.d.ts +12 -0
  84. package/dist/shared/config-errors.d.ts +3 -0
  85. package/dist/shared/merge-categories.d.ts +0 -4
  86. package/dist/shared/model-requirements.d.ts +9 -0
  87. package/dist/shared/task-system-gating.d.ts +10 -0
  88. package/dist/tools/delegate-task/categories.d.ts +4 -8
  89. package/dist/tools/delegate-task/complexity-constants.d.ts +10 -11
  90. package/dist/tools/delegate-task/executor-types.d.ts +9 -1
  91. package/dist/tools/delegate-task/index.d.ts +1 -1
  92. package/dist/tools/delegate-task/timing.d.ts +5 -0
  93. package/dist/tools/delegate-task/types.d.ts +7 -1
  94. package/dist/tools/index.d.ts +6 -0
  95. package/dist/tools/plan/constants.d.ts +10 -0
  96. package/dist/tools/plan/index.d.ts +6 -0
  97. package/dist/tools/plan/plan-create.d.ts +3 -0
  98. package/dist/tools/plan/plan-delete.d.ts +3 -0
  99. package/dist/tools/plan/plan-list.d.ts +3 -0
  100. package/dist/tools/plan/plan-read.d.ts +3 -0
  101. package/dist/tools/plan/plan-update.d.ts +3 -0
  102. package/dist/tools/plan/types.d.ts +28 -0
  103. package/dist/tools/preset/index.d.ts +1 -0
  104. package/dist/tools/preset/tools.d.ts +7 -0
  105. package/dist/tools/task/constants.d.ts +6 -0
  106. package/dist/tools/task/types.d.ts +2 -0
  107. package/package.json +1 -1
  108. package/dist/config/presets.d.ts +0 -4
  109. package/dist/config/resolve-tiers.d.ts +0 -32
  110. package/dist/features/builtin-commands/templates/profile.d.ts +0 -1
  111. package/dist/shared/model-tiers.d.ts +0 -31
  112. package/dist/shared/tier-resolver.d.ts +0 -26
@@ -55,7 +55,7 @@ export interface AgentPromptMetadata {
55
55
  export declare function isGptModel(model: string): boolean;
56
56
  /**
57
57
  * Detect Anthropic/Claude models by provider or model name.
58
- * Matches: "anthropic/claude-*", "google-vertex-anthropic/claude-*", etc.
58
+ * Matches: "<provider>/<model>" e.g., provider/model strings containing relevant indicators — replace with live model from provider.list
59
59
  */
60
60
  export declare function isAnthropicModel(model: string): boolean;
61
61
  export declare function isQwenModel(model: string): boolean;
@@ -5,4 +5,5 @@ export type { DepStatus, Platform, SetupState } from "./types";
5
5
  export declare function executeSetup(opts: {
6
6
  dryRun: boolean;
7
7
  yes: boolean;
8
+ skipPresets?: boolean;
8
9
  }): Promise<string>;
@@ -0,0 +1,36 @@
1
+ import type { ModelPreset } from "../../config/schema/model-presets";
2
+ /**
3
+ * Exact error surfaced when no connected provider / model can be detected.
4
+ * Aborts setup before any config is written.
5
+ */
6
+ export declare const NO_CONNECTED_PROVIDERS_ERROR = "No connected providers detected. Configure at least one provider in OpenCode (opencode auth login), then re-run: bunx opencode-matrixx setup";
7
+ export type PresetWizardResult = {
8
+ status: "generated";
9
+ name: string;
10
+ preset: ModelPreset;
11
+ } | {
12
+ status: "skipped";
13
+ } | {
14
+ status: "no-providers";
15
+ error: string;
16
+ };
17
+ /**
18
+ * Build a preset that assigns the same model to every builtin agent and
19
+ * category (pure — no prompts, no I/O). The explicit per-entry assignments
20
+ * make the generated preset self-documenting and individually overridable.
21
+ */
22
+ export declare function buildDefaultPreset(model: string, agentNames: readonly string[], categoryNames: readonly string[]): ModelPreset;
23
+ /**
24
+ * Detect the models available from connected providers using the shared
25
+ * provider caches (no OpenCode client calls — safe during CLI execution).
26
+ */
27
+ export declare function detectAvailableModels(): Promise<Set<string>>;
28
+ /**
29
+ * First-run preset step: detect connected providers, prompt for a preset
30
+ * name + default model, and return the generated preset. Returns
31
+ * `no-providers` (with the exact error) when nothing is detected, and
32
+ * `skipped` when the user declines or `--skip-presets` is set.
33
+ */
34
+ export declare function runPresetWizard(opts: {
35
+ skip: boolean;
36
+ }): Promise<PresetWizardResult>;
@@ -1,3 +1,4 @@
1
+ import type { ModelPreset } from "../../config/schema/model-presets";
1
2
  export type Platform = "darwin" | "linux" | "win32";
2
3
  export type DepStatus = {
3
4
  name: string;
@@ -21,6 +22,10 @@ export type SetupState = {
21
22
  enabled: boolean;
22
23
  };
23
24
  contextMode: boolean;
25
+ preset?: {
26
+ name: string;
27
+ preset: ModelPreset;
28
+ };
24
29
  };
25
30
  export declare const BUN_REQUIRED = "1.4.0";
26
31
  export declare const OPENCODE_MIN = "1.0.150";