opencode-matrixx 2.6.9 → 2.6.11
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 +7 -6
- package/dist/agents/architect/default.d.ts +1 -1
- package/dist/agents/architect/gpt.d.ts +1 -1
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +6 -5
- package/dist/cli.js +32 -78
- package/dist/config/schema/agent-overrides.d.ts +126 -126
- package/dist/config/schema/commands.d.ts +0 -5
- package/dist/config/schema/dcp.d.ts +3 -3
- package/dist/config/schema/hooks.d.ts +4 -0
- package/dist/config/schema/internal/permission.d.ts +8 -8
- package/dist/config/schema/knowledge.d.ts +34 -0
- package/dist/config/schema/matrixx-config.d.ts +146 -125
- package/dist/config/schema/tool-gating.d.ts +9 -0
- package/dist/config/schema.d.ts +2 -0
- package/dist/create-hooks.d.ts +4 -0
- package/dist/features/background-agent/manager.d.ts +19 -0
- package/dist/features/bdd/schema.d.ts +5 -5
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/knowledge-hub/index.d.ts +3 -0
- package/dist/features/knowledge-hub/loader.d.ts +11 -0
- package/dist/features/knowledge-hub/loader.test.d.ts +1 -0
- package/dist/features/knowledge-hub/resolver.d.ts +2 -0
- package/dist/features/knowledge-hub/resolver.test.d.ts +1 -0
- package/dist/features/mission-state/constants.d.ts +20 -0
- package/dist/features/mission-state/index.d.ts +1 -0
- package/dist/features/mission-state/plan-storage.d.ts +32 -6
- package/dist/features/mission-state/reconcile.d.ts +75 -0
- package/dist/features/mission-state/reconcile.test.d.ts +1 -0
- package/dist/features/mission-state/storage.d.ts +26 -0
- package/dist/features/mission-state/types.d.ts +6 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -3
- package/dist/hooks/auto-slash-command/hook.d.ts +0 -2
- package/dist/hooks/document-reader-guard/constants.d.ts +5 -0
- package/dist/hooks/document-reader-guard/hook.d.ts +2 -0
- package/dist/hooks/document-reader-guard/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/knowledge-hub-guard/approvals.d.ts +5 -0
- package/dist/hooks/knowledge-hub-guard/hook.d.ts +15 -0
- package/dist/hooks/knowledge-hub-guard/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-guard/index.d.ts +3 -0
- package/dist/hooks/knowledge-hub-injector/hook.d.ts +26 -0
- package/dist/hooks/knowledge-hub-injector/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-injector/index.d.ts +2 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +16 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.test.d.ts +1 -0
- package/dist/hooks/knowledge-hub-search-nudge/index.d.ts +2 -0
- package/dist/hooks/plan-persister/index.d.ts +4 -0
- package/dist/hooks/plan-persister/task-link.d.ts +31 -0
- package/dist/hooks/plan-persister/task-sync.d.ts +39 -0
- package/dist/hooks/plan-persister/task-sync.test.d.ts +1 -0
- package/dist/hooks/start-work/index.d.ts +1 -0
- package/dist/hooks/start-work/plan-filter.d.ts +48 -0
- package/dist/index.js +3472 -2333
- package/dist/matrixx.schema.json +90 -119
- package/dist/mcp/types.d.ts +0 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +4 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +4 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin/tool-gating.d.ts +33 -0
- package/dist/shared/dcp-guidance.d.ts +16 -0
- package/dist/{tools/dcp-switch-profile/tools.d.ts → shared/dcp-switch-profile.d.ts} +1 -3
- package/dist/shared/index.d.ts +1 -0
- package/dist/tools/background-task/constants.d.ts +1 -0
- package/dist/tools/background-task/create-background-wait-all.d.ts +3 -0
- package/dist/tools/background-task/index.d.ts +1 -1
- package/dist/tools/background-task/tools.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +3 -0
- package/dist/tools/delegate-task/constants.d.ts +6 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +1 -0
- package/dist/tools/delegate-task/prompt-builder.tdd.test.d.ts +1 -0
- package/dist/tools/delegate-task/tdd-enforcement.test.d.ts +1 -0
- package/dist/tools/delegate-task/tools.d.ts +6 -0
- package/dist/tools/delegate-task/types.d.ts +1 -0
- package/dist/tools/github-search/cli.d.ts +7 -0
- package/dist/tools/github-search/constants.d.ts +6 -0
- package/dist/tools/github-search/index.d.ts +1 -0
- package/dist/tools/github-search/result-formatter.d.ts +2 -0
- package/dist/tools/github-search/result-formatter.test.d.ts +1 -0
- package/dist/tools/github-search/tools.d.ts +3 -0
- package/dist/tools/github-search/types.d.ts +20 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/knowledge-hub-confirm/index.d.ts +1 -0
- package/dist/tools/knowledge-hub-confirm/tools.d.ts +12 -0
- package/dist/tools/knowledge-hub-confirm/tools.test.d.ts +1 -0
- package/package.json +1 -1
- package/dist/features/builtin-commands/templates/bdd-backend.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-contract.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-frontend.d.ts +0 -1
- package/dist/features/builtin-commands/templates/bdd-tests.d.ts +0 -1
- package/dist/features/builtin-commands/templates/dcp-profile.d.ts +0 -1
- package/dist/mcp/white-rabbit.d.ts +0 -6
- package/dist/tools/dcp-switch-profile/index.d.ts +0 -1
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BuiltinCommandNameSchema: z.ZodEnum<{
|
|
3
|
-
"bdd-contract": "bdd-contract";
|
|
4
|
-
"bdd-backend": "bdd-backend";
|
|
5
|
-
"bdd-frontend": "bdd-frontend";
|
|
6
|
-
"bdd-tests": "bdd-tests";
|
|
7
3
|
"init-deep": "init-deep";
|
|
8
4
|
"matrix-loop": "matrix-loop";
|
|
9
5
|
"ulw-loop": "ulw-loop";
|
|
@@ -18,6 +14,5 @@ export declare const BuiltinCommandNameSchema: z.ZodEnum<{
|
|
|
18
14
|
assembly: "assembly";
|
|
19
15
|
ultrawork: "ultrawork";
|
|
20
16
|
"bdd-pipeline": "bdd-pipeline";
|
|
21
|
-
"dcp-profile": "dcp-profile";
|
|
22
17
|
}>;
|
|
23
18
|
export type BuiltinCommandName = z.infer<typeof BuiltinCommandNameSchema>;
|
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
/**
|
|
3
3
|
* DCP (Dynamic Context Pruning) configuration.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Selects between predefined DCP profile tiers
|
|
6
|
+
* (economy/balanced/performance/ultimate) via `dcp.default_profile`.
|
|
7
7
|
*
|
|
8
8
|
* DCP must be installed as a plugin: `~/.config/opencode/node_modules/@tarquinen/opencode-dcp`
|
|
9
9
|
*/
|
|
@@ -250,9 +250,9 @@ export declare const DcpConfigSchema: z.ZodObject<{
|
|
|
250
250
|
range: "range";
|
|
251
251
|
}>>;
|
|
252
252
|
permission: z.ZodDefault<z.ZodEnum<{
|
|
253
|
+
deny: "deny";
|
|
253
254
|
ask: "ask";
|
|
254
255
|
allow: "allow";
|
|
255
|
-
deny: "deny";
|
|
256
256
|
}>>;
|
|
257
257
|
showCompression: z.ZodDefault<z.ZodBoolean>;
|
|
258
258
|
summaryBuffer: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -61,6 +61,10 @@ export declare const HookNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
61
61
|
"evolution-hitl": "evolution-hitl";
|
|
62
62
|
"context-mode-enforcer": "context-mode-enforcer";
|
|
63
63
|
"task-edit-guard": "task-edit-guard";
|
|
64
|
+
"document-reader-guard": "document-reader-guard";
|
|
64
65
|
"failure-counter": "failure-counter";
|
|
66
|
+
"knowledge-hub-guard": "knowledge-hub-guard";
|
|
67
|
+
"knowledge-hub-injector": "knowledge-hub-injector";
|
|
68
|
+
"knowledge-hub-search-nudge": "knowledge-hub-search-nudge";
|
|
65
69
|
}>, z.ZodPipe<z.ZodLiteral<"anthropic-context-window-limit-recovery">, z.ZodTransform<"context-window-limit-recovery", "anthropic-context-window-limit-recovery">>]>;
|
|
66
70
|
export type HookName = z.infer<typeof HookNameSchema>;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const PermissionValueSchema: z.ZodEnum<{
|
|
3
|
+
deny: "deny";
|
|
3
4
|
ask: "ask";
|
|
4
5
|
allow: "allow";
|
|
5
|
-
deny: "deny";
|
|
6
6
|
}>;
|
|
7
7
|
export type PermissionValue = z.infer<typeof PermissionValueSchema>;
|
|
8
8
|
export declare const AgentPermissionSchema: z.ZodObject<{
|
|
9
9
|
edit: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
deny: "deny";
|
|
10
11
|
ask: "ask";
|
|
11
12
|
allow: "allow";
|
|
12
|
-
deny: "deny";
|
|
13
13
|
}>>;
|
|
14
14
|
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
15
|
+
deny: "deny";
|
|
15
16
|
ask: "ask";
|
|
16
17
|
allow: "allow";
|
|
17
|
-
deny: "deny";
|
|
18
18
|
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
19
|
+
deny: "deny";
|
|
19
20
|
ask: "ask";
|
|
20
21
|
allow: "allow";
|
|
21
|
-
deny: "deny";
|
|
22
22
|
}>>]>>;
|
|
23
23
|
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
deny: "deny";
|
|
24
25
|
ask: "ask";
|
|
25
26
|
allow: "allow";
|
|
26
|
-
deny: "deny";
|
|
27
27
|
}>>;
|
|
28
28
|
task: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
deny: "deny";
|
|
29
30
|
ask: "ask";
|
|
30
31
|
allow: "allow";
|
|
31
|
-
deny: "deny";
|
|
32
32
|
}>>;
|
|
33
33
|
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
deny: "deny";
|
|
34
35
|
ask: "ask";
|
|
35
36
|
allow: "allow";
|
|
36
|
-
deny: "deny";
|
|
37
37
|
}>>;
|
|
38
38
|
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
deny: "deny";
|
|
39
40
|
ask: "ask";
|
|
40
41
|
allow: "allow";
|
|
41
|
-
deny: "deny";
|
|
42
42
|
}>>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
export type AgentPermission = z.infer<typeof AgentPermissionSchema>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DEFAULT_KNOWLEDGE_EXCLUDES: string[];
|
|
3
|
+
export declare const KnowledgeHubSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
path: z.ZodString;
|
|
6
|
+
index: z.ZodDefault<z.ZodString>;
|
|
7
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
project: "project";
|
|
9
|
+
global: "global";
|
|
10
|
+
}>>;
|
|
11
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
"router-only": "router-only";
|
|
13
|
+
pinned: "pinned";
|
|
14
|
+
}>>;
|
|
15
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const KnowledgeConfigSchema: z.ZodObject<{
|
|
18
|
+
hubs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
path: z.ZodString;
|
|
21
|
+
index: z.ZodDefault<z.ZodString>;
|
|
22
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
23
|
+
project: "project";
|
|
24
|
+
global: "global";
|
|
25
|
+
}>>;
|
|
26
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
"router-only": "router-only";
|
|
28
|
+
pinned: "pinned";
|
|
29
|
+
}>>;
|
|
30
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type KnowledgeHub = z.infer<typeof KnowledgeHubSchema>;
|
|
34
|
+
export type KnowledgeConfig = z.infer<typeof KnowledgeConfigSchema>;
|