opencode-matrixx 2.6.4 → 2.6.6

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 (78) hide show
  1. package/dist/agents/oracle/behavioral-summary.d.ts +1 -1
  2. package/dist/agents/oracle/high-accuracy-mode.d.ts +1 -1
  3. package/dist/agents/oracle/interview-mode.d.ts +1 -1
  4. package/dist/agents/oracle/plan-generation.d.ts +1 -1
  5. package/dist/agents/oracle/plan-template.d.ts +1 -1
  6. package/dist/agents/oracle/system-prompt.d.ts +1 -1
  7. package/dist/cli/setup/index.d.ts +1 -0
  8. package/dist/cli/setup/preset-wizard.d.ts +36 -0
  9. package/dist/cli/setup/types.d.ts +5 -0
  10. package/dist/cli.js +499 -64
  11. package/dist/config/index.d.ts +0 -1
  12. package/dist/config/migrations/model-migration.d.ts +1 -2
  13. package/dist/config/preset-applier.d.ts +17 -0
  14. package/dist/config/schema/agent-overrides.d.ts +0 -133
  15. package/dist/config/schema/categories.d.ts +0 -14
  16. package/dist/config/schema/commands.d.ts +1 -1
  17. package/dist/config/schema/hooks.d.ts +1 -0
  18. package/dist/config/schema/matrixx-config.d.ts +29 -144
  19. package/dist/config/schema/model-config.d.ts +0 -22
  20. package/dist/config/schema/model-presets.d.ts +40 -0
  21. package/dist/config/schema/task.d.ts +6 -0
  22. package/dist/config/schema/tasks.d.ts +25 -0
  23. package/dist/config/schema.d.ts +3 -0
  24. package/dist/create-hooks.d.ts +1 -0
  25. package/dist/features/background-agent/handle-index.d.ts +63 -0
  26. package/dist/features/background-agent/handle-index.test.d.ts +1 -0
  27. package/dist/features/background-agent/index.d.ts +1 -0
  28. package/dist/features/background-agent/manager-handles.test.d.ts +1 -0
  29. package/dist/features/background-agent/manager.d.ts +12 -0
  30. package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
  31. package/dist/features/builtin-commands/types.d.ts +1 -1
  32. package/dist/features/preset-state/index.d.ts +1 -0
  33. package/dist/features/preset-state/manager.d.ts +5 -0
  34. package/dist/features/session-state/state.d.ts +6 -0
  35. package/dist/features/task-storage/types.d.ts +2 -0
  36. package/dist/hooks/background-task-blocker/hook.d.ts +10 -0
  37. package/dist/hooks/background-task-blocker/index.d.ts +1 -0
  38. package/dist/hooks/index.d.ts +1 -0
  39. package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
  40. package/dist/hooks/task-continuation-enforcer/continuation-injection.test.d.ts +1 -0
  41. package/dist/hooks/task-continuation-enforcer/staleness.d.ts +7 -1
  42. package/dist/hooks/task-continuation-enforcer/todo.d.ts +8 -0
  43. package/dist/hooks/task-continuation-enforcer/todo.test.d.ts +1 -0
  44. package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +1 -1
  45. package/dist/index.js +923 -624
  46. package/dist/matrixx.schema.json +114 -244
  47. package/dist/mcp/types.d.ts +1 -1
  48. package/dist/mcp/{grep-app.d.ts → white-rabbit.d.ts} +1 -1
  49. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  50. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
  51. package/dist/shared/config-errors.d.ts +3 -0
  52. package/dist/shared/context-mode-prompt.d.ts +12 -0
  53. package/dist/shared/context-mode-prompt.test.d.ts +1 -0
  54. package/dist/shared/index.d.ts +1 -0
  55. package/dist/shared/merge-categories.d.ts +1 -16
  56. package/dist/shared/task-system-gating.d.ts +10 -0
  57. package/dist/tools/background-task/constants.d.ts +0 -1
  58. package/dist/tools/background-task/index.d.ts +1 -1
  59. package/dist/tools/background-task/tools.d.ts +0 -1
  60. package/dist/tools/background-task/types.d.ts +0 -5
  61. package/dist/tools/delegate-task/categories.d.ts +3 -18
  62. package/dist/tools/delegate-task/complexity-constants.d.ts +2 -7
  63. package/dist/tools/delegate-task/executor-types.d.ts +7 -2
  64. package/dist/tools/delegate-task/sync-task.test.d.ts +1 -0
  65. package/dist/tools/delegate-task/timing.d.ts +5 -0
  66. package/dist/tools/delegate-task/timing.test.d.ts +1 -0
  67. package/dist/tools/delegate-task/types.d.ts +5 -2
  68. package/dist/tools/index.d.ts +1 -0
  69. package/dist/tools/preset/index.d.ts +1 -0
  70. package/dist/tools/preset/tools.d.ts +7 -0
  71. package/dist/tools/task/constants.d.ts +1 -0
  72. package/package.json +1 -1
  73. package/dist/config/presets.d.ts +0 -4
  74. package/dist/config/resolve-tiers.d.ts +0 -32
  75. package/dist/features/builtin-commands/templates/profile.d.ts +0 -1
  76. package/dist/shared/model-tiers.d.ts +0 -44
  77. package/dist/shared/tier-resolver.d.ts +0 -26
  78. package/dist/tools/background-task/create-background-task.d.ts +0 -3
@@ -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";