opencode-matrixx 2.6.0 → 2.6.1
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 +3 -0
- package/dist/cli/doctor/checks/context-mode.d.ts +2 -0
- package/dist/cli/doctor/checks/dcp.d.ts +2 -0
- package/dist/cli/doctor/checks/docker.d.ts +2 -0
- package/dist/cli/doctor/checks/headroom.d.ts +2 -0
- package/dist/cli/doctor/checks/helpers.d.ts +2 -0
- package/dist/cli/doctor/checks/index.d.ts +6 -0
- package/dist/cli/doctor/checks/rtk.d.ts +2 -0
- package/dist/cli/doctor/checks/tmux.d.ts +2 -0
- package/dist/cli/doctor/types.d.ts +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/setup/config-writer.d.ts +12 -0
- package/dist/cli/setup/config-writer.test.d.ts +1 -0
- package/dist/cli/setup/constants.d.ts +8 -0
- package/dist/cli/setup/deps.d.ts +8 -0
- package/dist/cli/setup/deps.test.d.ts +1 -0
- package/dist/cli/setup/index.d.ts +8 -0
- package/dist/cli/setup/index.test.d.ts +1 -0
- package/dist/cli/setup/opencode-sync.d.ts +9 -0
- package/dist/cli/setup/opencode-sync.test.d.ts +1 -0
- package/dist/cli/setup/prompts.d.ts +4 -0
- package/dist/cli/setup/prompts.test.d.ts +1 -0
- package/dist/cli/setup/types.d.ts +26 -0
- package/dist/cli.js +18719 -663
- package/dist/config/schema/experimental.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +2 -2
- package/dist/config/schema/matrixx-config.d.ts +7 -3
- package/dist/config/schema/morpheus.d.ts +8 -0
- package/dist/create-hooks.d.ts +2 -2
- package/dist/features/builtin-commands/templates/cleanup-tasks.d.ts +1 -0
- package/dist/features/builtin-commands/templates/task-list.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/task-storage/storage.d.ts +12 -2
- package/dist/features/task-storage/types.d.ts +1 -0
- package/dist/hooks/compaction-todo-preserver/hook.d.ts +13 -0
- package/dist/hooks/compaction-todo-preserver/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +4 -0
- package/dist/hooks/task-continuation-enforcer/constants.d.ts +10 -0
- package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +12 -0
- package/dist/hooks/task-continuation-enforcer/countdown.d.ts +14 -0
- package/dist/hooks/task-continuation-enforcer/handler.d.ts +16 -0
- package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +11 -0
- package/dist/hooks/task-continuation-enforcer/index.d.ts +6 -0
- package/dist/hooks/task-continuation-enforcer/message-directory.d.ts +1 -0
- package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +6 -0
- package/dist/hooks/task-continuation-enforcer/session-state.d.ts +10 -0
- package/dist/hooks/task-continuation-enforcer/todo.d.ts +5 -0
- package/dist/hooks/task-continuation-enforcer/types.d.ts +60 -0
- package/dist/hooks/task-edit-guard/constants.d.ts +2 -0
- package/dist/hooks/task-edit-guard/hook.d.ts +2 -0
- package/dist/hooks/task-edit-guard/index.d.ts +2 -0
- package/dist/index.js +1445 -820
- package/dist/matrixx.schema.json +16 -3
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -2
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -3
- package/dist/shared/system-directive.d.ts +1 -0
- package/dist/shared/task-system-gating.d.ts +3 -0
- package/dist/shared/task-system-gating.test.d.ts +1 -0
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/task/index.d.ts +1 -1
- package/dist/tools/task/task-cleanup.d.ts +4 -0
- package/dist/tools/task/task-cleanup.test.d.ts +1 -0
- package/dist/tools/task/task-get.d.ts +2 -1
- package/dist/tools/task/task-list.d.ts +2 -1
- package/dist/tools/task/types.d.ts +2 -0
- package/package.json +3 -2
- package/dist/hooks/task-todo-mirror/constants.d.ts +0 -3
- package/dist/hooks/task-todo-mirror/hook.d.ts +0 -43
- package/dist/hooks/task-todo-mirror/index.d.ts +0 -2
- package/dist/hooks/todo-description-override/description.d.ts +0 -1
- package/dist/hooks/todo-description-override/hook.d.ts +0 -8
- package/dist/hooks/todo-description-override/index.d.ts +0 -1
- package/dist/tools/task/todo-sync.d.ts +0 -16
package/README.md
CHANGED
|
@@ -100,6 +100,9 @@ Create `matrixx.jsonc` in your project root:
|
|
|
100
100
|
}
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
> **Full example:** See [`matrixx.example.jsonc`](./matrixx.example.jsonc) — a fully annotated reference covering every configuration parameter (agents, categories, **headroom**, **context-mode** (external), DCP, RTK, security, tmux, assembly, evolution, and more) with inline comments and defaults. Copy the sections you need into your project `.opencode/matrixx.jsonc` or user `~/.config/opencode/matrixx.jsonc` (both support JSONC comments).
|
|
104
|
+
> Full guide: [Configuration →](docs/configurations.md) · [Context Management (5 layers) →](docs/context-management.md)
|
|
105
|
+
|
|
103
106
|
### Authenticate
|
|
104
107
|
|
|
105
108
|
```bash
|
|
@@ -4,7 +4,13 @@ export declare function getChecksByCategory(category: string): DoctorCheck[];
|
|
|
4
4
|
export declare function getCategories(): string[];
|
|
5
5
|
export { authCheck } from "./auth";
|
|
6
6
|
export { configValidationCheck } from "./config";
|
|
7
|
+
export { contextModeCheck } from "./context-mode";
|
|
8
|
+
export { dcpCheck } from "./dcp";
|
|
9
|
+
export { dockerCheck } from "./docker";
|
|
10
|
+
export { headroomCheck } from "./headroom";
|
|
7
11
|
export { mcpPrerequisitesCheck } from "./mcp";
|
|
8
12
|
export { optionalToolsCheck } from "./optional";
|
|
9
13
|
export { pluginInstallationCheck } from "./plugin";
|
|
14
|
+
export { rtkCheck } from "./rtk";
|
|
10
15
|
export { runtimeDepsCheck } from "./runtime";
|
|
16
|
+
export { tmuxCheck } from "./tmux";
|
|
@@ -6,7 +6,7 @@ export interface CheckResult {
|
|
|
6
6
|
category?: string;
|
|
7
7
|
detail?: string;
|
|
8
8
|
}
|
|
9
|
-
export type CheckCategory = "installation" | "configuration" | "authentication" | "dependencies" | "tools" | "updates";
|
|
9
|
+
export type CheckCategory = "installation" | "configuration" | "authentication" | "dependencies" | "tools" | "integrations" | "updates";
|
|
10
10
|
export interface DoctorCheck {
|
|
11
11
|
name: string;
|
|
12
12
|
category: CheckCategory;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Commands:
|
|
6
6
|
* doctor - Environment diagnostics and health checks
|
|
7
7
|
* install - Interactive setup wizard (--no-tui for CI)
|
|
8
|
+
* setup - Standalone setup wizard for deps + matrixx.jsonc generation
|
|
8
9
|
* version - Display version information
|
|
9
10
|
* help - Display help information
|
|
10
11
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type MatrixxConfig } from "../../config/schema/matrixx-config";
|
|
2
|
+
import type { SetupState } from "./types";
|
|
3
|
+
export declare function resolveMatrixxConfigPath(): {
|
|
4
|
+
format: "json" | "jsonc" | "none";
|
|
5
|
+
path: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function buildMatrixxConfig(state: SetupState, existing: MatrixxConfig | null): MatrixxConfig;
|
|
8
|
+
export declare function previewDiff(existing: string, next: string): string;
|
|
9
|
+
export declare function writeMatrixxConfig(targetPath: string, config: MatrixxConfig, opts: {
|
|
10
|
+
dryRun: boolean;
|
|
11
|
+
backup: boolean;
|
|
12
|
+
}): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Platform } from "./types";
|
|
2
|
+
export declare const REQUIRED_DEPS: readonly ["bun", "opencode", "git"];
|
|
3
|
+
export declare const OPTIONAL_DEPS: readonly ["headroom", "rtk", "dcp", "gitleaks", "ast-grep", "playwright"];
|
|
4
|
+
export type InstallCommandMap = Record<string, Record<Platform | "all", string> | Record<string, string>>;
|
|
5
|
+
export declare const PLATFORM_INSTALL_COMMANDS: Record<string, Partial<Record<Platform | "all", string>>>;
|
|
6
|
+
export declare function getDcpInstallHint(): string;
|
|
7
|
+
export declare function configDirHint(): string;
|
|
8
|
+
export declare function dcpPluginDirHint(): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type DepStatus, type Platform } from "./types";
|
|
2
|
+
export declare function isBunVersionOk(found: string): boolean;
|
|
3
|
+
export declare function isOpenCodeVersionOk(found: string): boolean;
|
|
4
|
+
export declare function getPlatform(): Platform;
|
|
5
|
+
export declare function getInstallCommand(dep: string, platform: Platform): string;
|
|
6
|
+
export declare function checkRequiredDeps(): DepStatus[];
|
|
7
|
+
export declare function checkOptionalDeps(): DepStatus[];
|
|
8
|
+
export declare function formatDepReport(statuses: DepStatus[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { PLATFORM_INSTALL_COMMANDS } from "./constants";
|
|
2
|
+
export { checkOptionalDeps, checkRequiredDeps, formatDepReport, getInstallCommand, getPlatform, isBunVersionOk, isOpenCodeVersionOk } from "./deps";
|
|
3
|
+
export { runSetupPrompts } from "./prompts";
|
|
4
|
+
export type { DepStatus, Platform, SetupState } from "./types";
|
|
5
|
+
export declare function executeSetup(opts: {
|
|
6
|
+
dryRun: boolean;
|
|
7
|
+
yes: boolean;
|
|
8
|
+
}): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SetupState } from "./types";
|
|
2
|
+
export declare function resolveOpencodeConfigPath(): {
|
|
3
|
+
format: "json" | "jsonc" | "none";
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function syncOpencodePlugins(state: SetupState, opts: {
|
|
7
|
+
dryRun: boolean;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
export declare function hasContextModePlugin(plugins: string[]): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type Platform = "darwin" | "linux" | "win32";
|
|
2
|
+
export type DepStatus = {
|
|
3
|
+
name: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
found: boolean;
|
|
6
|
+
version?: string;
|
|
7
|
+
installHint: string;
|
|
8
|
+
};
|
|
9
|
+
export type SetupState = {
|
|
10
|
+
taskSystem: boolean;
|
|
11
|
+
headroom: {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
proxyUrl?: string;
|
|
14
|
+
project?: string;
|
|
15
|
+
};
|
|
16
|
+
rtk: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
binaryPath?: string;
|
|
19
|
+
};
|
|
20
|
+
dcp: {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
};
|
|
23
|
+
contextMode: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const BUN_REQUIRED = "1.4.0";
|
|
26
|
+
export declare const OPENCODE_MIN = "1.0.150";
|