opencode-matrixx 2.6.4 → 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.
- package/dist/cli/setup/index.d.ts +1 -0
- package/dist/cli/setup/preset-wizard.d.ts +36 -0
- package/dist/cli/setup/types.d.ts +5 -0
- package/dist/cli.js +486 -59
- package/dist/config/index.d.ts +0 -1
- package/dist/config/migrations/model-migration.d.ts +1 -2
- package/dist/config/preset-applier.d.ts +17 -0
- package/dist/config/schema/agent-overrides.d.ts +0 -133
- package/dist/config/schema/categories.d.ts +0 -14
- package/dist/config/schema/commands.d.ts +1 -1
- package/dist/config/schema/matrixx-config.d.ts +28 -144
- package/dist/config/schema/model-config.d.ts +0 -22
- package/dist/config/schema/model-presets.d.ts +40 -0
- package/dist/config/schema/task.d.ts +6 -0
- package/dist/config/schema/tasks.d.ts +25 -0
- package/dist/config/schema.d.ts +3 -0
- package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/preset-state/index.d.ts +1 -0
- package/dist/features/preset-state/manager.d.ts +5 -0
- package/dist/features/session-state/state.d.ts +6 -0
- package/dist/features/task-storage/types.d.ts +2 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/task-continuation-enforcer/continuation-injection.test.d.ts +1 -0
- package/dist/hooks/task-continuation-enforcer/staleness.d.ts +7 -1
- package/dist/hooks/task-continuation-enforcer/todo.d.ts +8 -0
- package/dist/hooks/task-continuation-enforcer/todo.test.d.ts +1 -0
- package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +1 -1
- package/dist/index.js +673 -598
- package/dist/matrixx.schema.json +113 -244
- package/dist/mcp/types.d.ts +1 -1
- package/dist/mcp/{grep-app.d.ts → white-rabbit.d.ts} +1 -1
- package/dist/shared/config-errors.d.ts +3 -0
- package/dist/shared/merge-categories.d.ts +1 -16
- package/dist/shared/task-system-gating.d.ts +10 -0
- package/dist/tools/delegate-task/categories.d.ts +3 -18
- package/dist/tools/delegate-task/complexity-constants.d.ts +2 -7
- package/dist/tools/delegate-task/executor-types.d.ts +7 -2
- package/dist/tools/delegate-task/timing.d.ts +5 -0
- package/dist/tools/delegate-task/types.d.ts +5 -2
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/preset/index.d.ts +1 -0
- package/dist/tools/preset/tools.d.ts +7 -0
- package/dist/tools/task/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/presets.d.ts +0 -4
- package/dist/config/resolve-tiers.d.ts +0 -32
- package/dist/features/builtin-commands/templates/profile.d.ts +0 -1
- package/dist/shared/model-tiers.d.ts +0 -44
- package/dist/shared/tier-resolver.d.ts +0 -26
|
@@ -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";
|