opencode-matrixx 2.6.10 → 2.6.12
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 +6 -5
- 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/agents/oracle/plan-template.d.ts +1 -7
- package/dist/agents/oracle/system-prompt.d.ts +1 -1
- package/dist/cli.js +29 -86
- 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 +3 -2
- 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 +145 -132
- package/dist/config/schema/tool-gating.d.ts +9 -0
- package/dist/config/schema.d.ts +2 -1
- package/dist/create-hooks.d.ts +3 -2
- package/dist/features/background-agent/manager.d.ts +19 -0
- package/dist/features/bdd/schema.d.ts +5 -5
- package/dist/features/builtin-commands/templates/evolution.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/evolution/compressor/index.d.ts +2 -2
- package/dist/features/evolution/compressor/interface.d.ts +9 -4
- package/dist/features/evolution/compressor/llm.d.ts +14 -4
- package/dist/features/evolution/evaluator.d.ts +10 -0
- package/dist/features/evolution/pipeline.d.ts +3 -1
- package/dist/features/evolution/schema.d.ts +46 -0
- package/dist/features/evolution/store/budget-ledger.d.ts +46 -0
- package/dist/features/evolution/store/index.d.ts +5 -0
- package/dist/features/evolution/store/lifecycle.d.ts +52 -0
- package/dist/features/evolution/store/project-identity.d.ts +27 -0
- package/dist/features/evolution/store/query.d.ts +23 -0
- package/dist/features/evolution/{store.d.ts → store/trace-store.d.ts} +1 -1
- package/dist/features/evolution/types.d.ts +34 -1
- package/dist/features/evolution/writer-emit.d.ts +17 -0
- package/dist/features/evolution/writer-frontmatter.d.ts +23 -0
- package/dist/features/evolution/writer-supersede.d.ts +20 -0
- package/dist/features/evolution/writer.d.ts +4 -0
- 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/resolver.d.ts +2 -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/features/plan-contract/appendix.d.ts +14 -0
- package/dist/features/plan-contract/constants.d.ts +16 -0
- package/dist/features/plan-contract/front-matter.d.ts +34 -0
- package/dist/features/plan-contract/index.d.ts +14 -0
- package/dist/features/plan-contract/migration.d.ts +36 -0
- package/dist/features/plan-contract/schema.d.ts +32 -0
- package/dist/features/plan-contract/skeleton.d.ts +5 -0
- package/dist/features/plan-contract/types.d.ts +56 -0
- package/dist/features/plan-contract/validate.d.ts +9 -0
- package/dist/features/session-state/state.d.ts +0 -11
- 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/evolution-compressor/host-llm-call.d.ts +17 -0
- package/dist/hooks/index.d.ts +3 -2
- 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/hooks/task-continuation-enforcer/constants.d.ts +0 -5
- package/dist/index.js +6247 -4111
- package/dist/matrixx.schema.json +88 -145
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts +1 -2
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -2
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin/tool-gating.d.ts +35 -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/evolution/constants.d.ts +24 -0
- package/dist/tools/evolution/index.d.ts +3 -0
- package/dist/tools/evolution/query-actions.d.ts +3 -0
- package/dist/tools/evolution/query-actions.test.d.ts +1 -0
- package/dist/tools/evolution/tools.d.ts +16 -0
- package/dist/tools/evolution/tools.test.d.ts +1 -0
- package/dist/tools/evolution/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/dist/tools/plan/constants.d.ts +1 -0
- package/dist/tools/plan/index.d.ts +1 -0
- package/dist/tools/plan/plan-tasks.d.ts +3 -0
- package/dist/tools/plan/types.d.ts +10 -0
- package/package.json +1 -1
- package/dist/config/schema/failure-counter.d.ts +0 -7
- 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/hooks/failure-counter/counter.d.ts +0 -7
- package/dist/hooks/failure-counter/hook.d.ts +0 -18
- package/dist/hooks/failure-counter/index.d.ts +0 -3
- package/dist/hooks/failure-counter/patterns.d.ts +0 -6
- package/dist/hooks/hashline-edit-diff-enhancer/hook.d.ts +0 -28
- package/dist/hooks/hashline-edit-diff-enhancer/index.d.ts +0 -1
- package/dist/tools/dcp-switch-profile/index.d.ts +0 -1
- /package/dist/{hooks/failure-counter/counter.test.d.ts → features/knowledge-hub/loader.test.d.ts} +0 -0
- /package/dist/{hooks/failure-counter/patterns.test.d.ts → features/knowledge-hub/resolver.test.d.ts} +0 -0
|
@@ -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>;
|
|
@@ -53,7 +53,6 @@ export declare const HookNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
53
53
|
"runtime-fallback": "runtime-fallback";
|
|
54
54
|
"read-image-resizer": "read-image-resizer";
|
|
55
55
|
"webfetch-redirect-guard": "webfetch-redirect-guard";
|
|
56
|
-
"hashline-edit-diff-enhancer": "hashline-edit-diff-enhancer";
|
|
57
56
|
"tool-pair-validator": "tool-pair-validator";
|
|
58
57
|
"task-notepad": "task-notepad";
|
|
59
58
|
"design-intent-preserver": "design-intent-preserver";
|
|
@@ -62,6 +61,8 @@ export declare const HookNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
62
61
|
"context-mode-enforcer": "context-mode-enforcer";
|
|
63
62
|
"task-edit-guard": "task-edit-guard";
|
|
64
63
|
"document-reader-guard": "document-reader-guard";
|
|
65
|
-
"
|
|
64
|
+
"knowledge-hub-guard": "knowledge-hub-guard";
|
|
65
|
+
"knowledge-hub-injector": "knowledge-hub-injector";
|
|
66
|
+
"knowledge-hub-search-nudge": "knowledge-hub-search-nudge";
|
|
66
67
|
}>, z.ZodPipe<z.ZodLiteral<"anthropic-context-window-limit-recovery">, z.ZodTransform<"context-window-limit-recovery", "anthropic-context-window-limit-recovery">>]>;
|
|
67
68
|
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>;
|