opencode-matrixx 2.4.0 → 2.6.0
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 +181 -8
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents.d.ts +2 -2
- package/dist/agents/construct.d.ts +3 -3
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +3 -0
- package/dist/agents/index.d.ts +3 -3
- package/dist/agents/operator.d.ts +3 -3
- package/dist/agents/oracle/identity-constraints.d.ts +1 -1
- package/dist/agents/oracle/system-prompt.d.ts +2 -2
- package/dist/agents/trinity.d.ts +3 -3
- package/dist/cli/doctor/checks/auth.d.ts +2 -0
- package/dist/cli/doctor/checks/config.d.ts +2 -0
- package/dist/cli/doctor/checks/index.d.ts +10 -0
- package/dist/cli/doctor/checks/mcp.d.ts +2 -0
- package/dist/cli/doctor/checks/optional.d.ts +2 -0
- package/dist/cli/doctor/checks/plugin.d.ts +2 -0
- package/dist/cli/doctor/checks/runtime.d.ts +2 -0
- package/dist/cli/doctor/format.d.ts +3 -0
- package/dist/cli/doctor/index.d.ts +9 -0
- package/dist/cli/doctor/types.d.ts +24 -0
- package/dist/cli/index.d.ts +13 -0
- package/dist/cli/install/index.d.ts +12 -0
- package/dist/cli.js +927 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/schema/dcp.d.ts +231 -2
- package/dist/config/schema/evolution.d.ts +89 -0
- package/dist/config/schema/headroom.d.ts +23 -0
- package/dist/config/schema/hooks.d.ts +7 -1
- package/dist/config/schema/matrixx-config.d.ts +134 -9
- package/dist/config/schema.d.ts +3 -3
- package/dist/create-hooks.d.ts +8 -3
- package/dist/create-managers.d.ts +0 -2
- package/dist/create-tools.d.ts +3 -3
- package/dist/features/background-agent/error-helpers.d.ts +0 -2
- package/dist/features/builtin-commands/templates/dcp-profile.d.ts +1 -1
- package/dist/features/builtin-commands/templates/evolution.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/builtin-skills/types.d.ts +10 -1
- package/dist/features/command-loader/index.d.ts +1 -1
- package/dist/features/evolution/compressor/index.d.ts +5 -0
- package/dist/features/evolution/compressor/interface.d.ts +5 -0
- package/dist/features/evolution/compressor/llm.d.ts +12 -0
- package/dist/features/evolution/evaluator.d.ts +11 -0
- package/dist/features/evolution/index.d.ts +7 -0
- package/dist/features/evolution/pipeline.d.ts +7 -0
- package/dist/features/evolution/store.d.ts +22 -0
- package/dist/features/evolution/types.d.ts +51 -0
- package/dist/features/evolution/writer.d.ts +20 -0
- package/dist/features/task-storage/types.d.ts +2 -2
- package/dist/features/task-toast-manager/types.d.ts +2 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +0 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/tool-part-types.d.ts +2 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +5 -2
- package/dist/hooks/auto-slash-command/hook.d.ts +4 -2
- package/dist/hooks/evolution-compressor/index.d.ts +15 -0
- package/dist/hooks/evolution-hitl/index.d.ts +12 -0
- package/dist/hooks/evolution-quality-gate/index.d.ts +6 -0
- package/dist/hooks/evolution-watcher/index.d.ts +21 -0
- package/dist/hooks/evolution-watcher/utils.d.ts +5 -0
- package/dist/hooks/index.d.ts +7 -1
- package/dist/hooks/keyword-detector/analyze/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/constants.d.ts +1 -1
- package/dist/hooks/keyword-detector/search/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +16 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +5 -2
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +12 -0
- package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +11 -0
- package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +4 -7
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +12 -4
- package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +16 -0
- package/dist/hooks/keyword-detector/ultrawork/source-detector.d.ts +18 -6
- package/dist/hooks/matrix-loop/with-timeout.d.ts +1 -1
- package/dist/hooks/mcp-startup-notification/index.d.ts +9 -0
- package/dist/hooks/{prometheus-md-only → oracle-md-only}/constants.d.ts +2 -2
- package/dist/hooks/session-recovery/types.d.ts +2 -1
- package/dist/hooks/task-todo-mirror/constants.d.ts +3 -0
- package/dist/hooks/task-todo-mirror/hook.d.ts +43 -0
- package/dist/hooks/task-todo-mirror/index.d.ts +2 -0
- package/dist/hooks/think-mode/types.d.ts +3 -0
- package/dist/index.js +85417 -96112
- package/dist/matrixx.schema.json +5412 -0
- package/dist/mcp/index.d.ts +10 -1
- package/dist/mcp/mcp-startup-state.d.ts +4 -0
- package/dist/mcp/mcp-validator.d.ts +13 -0
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +4 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -2
- package/dist/plugin/hooks/create-skill-hooks.d.ts +2 -2
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
- package/dist/plugin/skill-context.d.ts +2 -2
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin-handlers/agent-config-handler.d.ts +1 -0
- package/dist/plugin-handlers/index.d.ts +1 -1
- package/dist/plugin-handlers/plan-model-inheritance.d.ts +1 -1
- package/dist/shared/delay.d.ts +1 -0
- package/dist/shared/error-formatting.d.ts +1 -0
- package/dist/shared/format-bytes.d.ts +1 -0
- package/dist/shared/format-bytes.test.d.ts +1 -0
- package/dist/shared/index.d.ts +7 -9
- package/dist/shared/is-abort-error.test.d.ts +1 -0
- package/dist/shared/model-resolution-pipeline.d.ts +26 -1
- package/dist/shared/opencode-config-dir.d.ts +13 -2
- package/dist/shared/sentinels.d.ts +2 -0
- package/dist/shared/session-state.d.ts +15 -0
- package/dist/shared/status-types.d.ts +1 -0
- package/dist/shared/system-directive.d.ts +1 -1
- package/dist/shared/with-timeout.d.ts +1 -0
- package/dist/shared/with-timeout.test.d.ts +1 -0
- package/dist/tools/background-task/delay.d.ts +1 -1
- package/dist/tools/dcp-switch-profile/index.d.ts +1 -0
- package/dist/tools/dcp-switch-profile/tools.d.ts +8 -0
- package/dist/tools/delegate-agent/constants.d.ts +1 -1
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/skill-resolver.d.ts +2 -2
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/pdf-extract-figures/index.d.ts +1 -0
- package/dist/tools/pdf-extract-figures/tools.d.ts +11 -0
- package/dist/tools/skill/types.d.ts +3 -7
- package/dist/tools/slashcommand/skill-command-converter.d.ts +2 -2
- package/dist/tools/slashcommand/types.d.ts +10 -3
- package/dist/tools/task/todo-sync.d.ts +1 -1
- package/dist/tools/task/types.d.ts +5 -5
- package/package.json +15 -4
- package/dist/config/schema/model-capabilities.d.ts +0 -8
- package/dist/features/agent-loader/index.d.ts +0 -2
- package/dist/features/agent-loader/loader.d.ts +0 -3
- package/dist/features/agent-loader/types.d.ts +0 -14
- package/dist/features/command-loader/loader.d.ts +0 -3
- package/dist/features/mcp-oauth/callback-server.d.ts +0 -11
- package/dist/features/mcp-oauth/dcr.d.ts +0 -28
- package/dist/features/mcp-oauth/discovery.d.ts +0 -8
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +0 -26
- package/dist/features/mcp-oauth/provider.d.ts +0 -29
- package/dist/features/mcp-oauth/step-up.d.ts +0 -9
- package/dist/features/mcp-oauth/storage.d.ts +0 -17
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +0 -1
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +0 -7
- package/dist/features/opencode-skill-loader/index.d.ts +0 -14
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +0 -9
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +0 -2
- package/dist/features/opencode-skill-loader/loader.d.ts +0 -17
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +0 -2
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +0 -3
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +0 -11
- package/dist/features/opencode-skill-loader/merger.d.ts +0 -8
- package/dist/features/opencode-skill-loader/skill-content.d.ts +0 -4
- package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +0 -2
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +0 -3
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +0 -8
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +0 -4
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +0 -3
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +0 -7
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +0 -11
- package/dist/features/opencode-skill-loader/types.d.ts +0 -34
- package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -7
- package/dist/features/skill-mcp-manager/connection-type.d.ts +0 -6
- package/dist/features/skill-mcp-manager/connection.d.ts +0 -14
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +0 -2
- package/dist/features/skill-mcp-manager/env-expander.d.ts +0 -1
- package/dist/features/skill-mcp-manager/http-client.d.ts +0 -3
- package/dist/features/skill-mcp-manager/index.d.ts +0 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +0 -20
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -8
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +0 -3
- package/dist/features/skill-mcp-manager/types.d.ts +0 -68
- package/dist/hooks/runtime-fallback/is-abort-error.d.ts +0 -1
- package/dist/shared/is-object.d.ts +0 -1
- package/dist/shared/model-resolution-types.d.ts +0 -27
- package/dist/shared/model-resolver.d.ts +0 -24
- package/dist/shared/opencode-config-dir-types.d.ts +0 -13
- package/dist/shared/session-model-state.d.ts +0 -6
- package/dist/shared/session-temperature-store.d.ts +0 -3
- package/dist/shared/session-tools-store.d.ts +0 -3
- package/dist/tools/skill-mcp/constants.d.ts +0 -1
- package/dist/tools/skill-mcp/index.d.ts +0 -3
- package/dist/tools/skill-mcp/tools.d.ts +0 -11
- package/dist/tools/skill-mcp/types.d.ts +0 -8
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/agent-matcher.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/agent-resolution.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/hook.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/index.d.ts +0 -0
- /package/dist/hooks/{prometheus-md-only → oracle-md-only}/path-policy.d.ts +0 -0
- /package/dist/plugin-handlers/{prometheus-agent-config-builder.d.ts → oracle-agent-config-builder.d.ts} +0 -0
- /package/dist/{hooks/architect → shared}/is-abort-error.d.ts +0 -0
package/dist/config/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { expandPreset, PRESET_NAMES, type PresetName } from "./presets";
|
|
2
|
-
export type { AgentDefinitions, AgentName, AgentOverrideConfig, AgentOverrides, BuiltinCommandName, EnvFileGuardConfig, ExperimentalConfig, HookName, MatrixLoopConfig, MatrixxConfig, McpName,
|
|
2
|
+
export type { AgentDefinitions, AgentName, AgentOverrideConfig, AgentOverrides, BuiltinCommandName, EnvFileGuardConfig, ExperimentalConfig, HookName, MatrixLoopConfig, MatrixxConfig, McpName, MorpheusAgentConfig, MorpheusConfig, MorpheusTasksConfig, RuntimeFallbackConfig, SecretScanningConfig, SecurityConfig, TmuxConfig, TmuxLayout, } from "./schema";
|
|
3
3
|
export { AgentOverrideConfigSchema, AgentOverridesSchema, BuiltinCommandNameSchema, ExperimentalConfigSchema, HookNameSchema, MatrixLoopConfigSchema, MatrixxConfigSchema, McpNameSchema, MorpheusAgentConfigSchema, RuntimeFallbackConfigSchema, SecurityConfigSchema, TmuxConfigSchema, TmuxLayoutSchema, } from "./schema";
|
|
@@ -7,10 +7,239 @@ import { z } from "zod";
|
|
|
7
7
|
*
|
|
8
8
|
* DCP must be installed as a plugin: `~/.config/opencode/node_modules/@tarquinen/opencode-dcp`
|
|
9
9
|
*/
|
|
10
|
+
export declare const DcpCompressOverrideSchema: z.ZodObject<{
|
|
11
|
+
maxContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
12
|
+
minContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
13
|
+
nudgeFrequency: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
iterationNudgeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
nudgeForce: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
strong: "strong";
|
|
17
|
+
soft: "soft";
|
|
18
|
+
}>>;
|
|
19
|
+
protectTags: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
protectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
protectUserMessages: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type DcpCompressOverride = z.infer<typeof DcpCompressOverrideSchema>;
|
|
24
|
+
export declare const DcpStrategiesOverrideSchema: z.ZodObject<{
|
|
25
|
+
purgeErrors: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type DcpStrategiesOverride = z.infer<typeof DcpStrategiesOverrideSchema>;
|
|
30
|
+
export declare const DcpTurnProtectionSchema: z.ZodObject<{
|
|
31
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type DcpTurnProtection = z.infer<typeof DcpTurnProtectionSchema>;
|
|
35
|
+
export declare const DcpExperimentalSchema: z.ZodObject<{
|
|
36
|
+
allowSubAgents: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type DcpExperimental = z.infer<typeof DcpExperimentalSchema>;
|
|
39
|
+
export declare const DcpProfileDefinitionSchema: z.ZodObject<{
|
|
40
|
+
pruneNotification: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
off: "off";
|
|
42
|
+
minimal: "minimal";
|
|
43
|
+
detailed: "detailed";
|
|
44
|
+
}>>;
|
|
45
|
+
compress: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
maxContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
47
|
+
minContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
48
|
+
nudgeFrequency: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
iterationNudgeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
nudgeForce: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
strong: "strong";
|
|
52
|
+
soft: "soft";
|
|
53
|
+
}>>;
|
|
54
|
+
protectTags: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
protectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
protectUserMessages: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
turnProtection: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
allowSubAgents: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
strategies: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
purgeErrors: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type DcpProfileDefinition = z.infer<typeof DcpProfileDefinitionSchema>;
|
|
72
|
+
export declare const BUILTIN_DCP_PROFILES: {
|
|
73
|
+
readonly economy: {
|
|
74
|
+
readonly pruneNotification: "off";
|
|
75
|
+
readonly compress: {
|
|
76
|
+
readonly maxContextLimit: "30%";
|
|
77
|
+
readonly minContextLimit: "20%";
|
|
78
|
+
readonly nudgeFrequency: 2;
|
|
79
|
+
readonly nudgeForce: "strong";
|
|
80
|
+
readonly iterationNudgeThreshold: 7;
|
|
81
|
+
};
|
|
82
|
+
readonly turnProtection: {
|
|
83
|
+
readonly enabled: false;
|
|
84
|
+
};
|
|
85
|
+
readonly experimental: {
|
|
86
|
+
readonly allowSubAgents: false;
|
|
87
|
+
};
|
|
88
|
+
readonly strategies: {
|
|
89
|
+
readonly purgeErrors: {
|
|
90
|
+
readonly turns: 1;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly balanced: {
|
|
95
|
+
readonly pruneNotification: "minimal";
|
|
96
|
+
readonly compress: {
|
|
97
|
+
readonly maxContextLimit: "60%";
|
|
98
|
+
readonly minContextLimit: "30%";
|
|
99
|
+
readonly nudgeFrequency: 3;
|
|
100
|
+
readonly nudgeForce: "strong";
|
|
101
|
+
readonly iterationNudgeThreshold: 10;
|
|
102
|
+
};
|
|
103
|
+
readonly turnProtection: {
|
|
104
|
+
readonly enabled: true;
|
|
105
|
+
readonly turns: 2;
|
|
106
|
+
};
|
|
107
|
+
readonly experimental: {
|
|
108
|
+
readonly allowSubAgents: true;
|
|
109
|
+
};
|
|
110
|
+
readonly strategies: {
|
|
111
|
+
readonly purgeErrors: {
|
|
112
|
+
readonly turns: 2;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly performance: {
|
|
117
|
+
readonly pruneNotification: "minimal";
|
|
118
|
+
readonly compress: {
|
|
119
|
+
readonly maxContextLimit: "80%";
|
|
120
|
+
readonly minContextLimit: "35%";
|
|
121
|
+
readonly nudgeFrequency: 4;
|
|
122
|
+
readonly nudgeForce: "strong";
|
|
123
|
+
readonly iterationNudgeThreshold: 12;
|
|
124
|
+
};
|
|
125
|
+
readonly turnProtection: {
|
|
126
|
+
readonly enabled: true;
|
|
127
|
+
readonly turns: 3;
|
|
128
|
+
};
|
|
129
|
+
readonly experimental: {
|
|
130
|
+
readonly allowSubAgents: true;
|
|
131
|
+
};
|
|
132
|
+
readonly strategies: {
|
|
133
|
+
readonly purgeErrors: {
|
|
134
|
+
readonly turns: 2;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly ultimate: {
|
|
139
|
+
readonly pruneNotification: "detailed";
|
|
140
|
+
readonly compress: {
|
|
141
|
+
readonly maxContextLimit: "85%";
|
|
142
|
+
readonly minContextLimit: "40%";
|
|
143
|
+
readonly nudgeFrequency: 5;
|
|
144
|
+
readonly nudgeForce: "strong";
|
|
145
|
+
readonly iterationNudgeThreshold: 15;
|
|
146
|
+
readonly protectTags: true;
|
|
147
|
+
};
|
|
148
|
+
readonly turnProtection: {
|
|
149
|
+
readonly enabled: true;
|
|
150
|
+
readonly turns: 5;
|
|
151
|
+
};
|
|
152
|
+
readonly experimental: {
|
|
153
|
+
readonly allowSubAgents: true;
|
|
154
|
+
};
|
|
155
|
+
readonly strategies: {
|
|
156
|
+
readonly purgeErrors: {
|
|
157
|
+
readonly turns: 4;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
10
162
|
export declare const DcpConfigSchema: z.ZodObject<{
|
|
11
163
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
-
|
|
13
|
-
|
|
164
|
+
profiles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
+
pruneNotification: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
off: "off";
|
|
167
|
+
minimal: "minimal";
|
|
168
|
+
detailed: "detailed";
|
|
169
|
+
}>>;
|
|
170
|
+
compress: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
maxContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
172
|
+
minContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
173
|
+
nudgeFrequency: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
iterationNudgeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
nudgeForce: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
strong: "strong";
|
|
177
|
+
soft: "soft";
|
|
178
|
+
}>>;
|
|
179
|
+
protectTags: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
protectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
protectUserMessages: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
turnProtection: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
allowSubAgents: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
strategies: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
purgeErrors: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$strip>>>;
|
|
14
196
|
default_profile: z.ZodOptional<z.ZodString>;
|
|
197
|
+
base: z.ZodDefault<z.ZodObject<{
|
|
198
|
+
autoUpdate: z.ZodDefault<z.ZodBoolean>;
|
|
199
|
+
debug: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
pruneNotificationType: z.ZodDefault<z.ZodEnum<{
|
|
201
|
+
chat: "chat";
|
|
202
|
+
toast: "toast";
|
|
203
|
+
}>>;
|
|
204
|
+
compress: z.ZodDefault<z.ZodObject<{
|
|
205
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
206
|
+
message: "message";
|
|
207
|
+
range: "range";
|
|
208
|
+
}>>;
|
|
209
|
+
permission: z.ZodDefault<z.ZodEnum<{
|
|
210
|
+
ask: "ask";
|
|
211
|
+
allow: "allow";
|
|
212
|
+
deny: "deny";
|
|
213
|
+
}>>;
|
|
214
|
+
showCompression: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
+
summaryBuffer: z.ZodDefault<z.ZodBoolean>;
|
|
216
|
+
nudgeForce: z.ZodDefault<z.ZodEnum<{
|
|
217
|
+
strong: "strong";
|
|
218
|
+
soft: "soft";
|
|
219
|
+
}>>;
|
|
220
|
+
iterationNudgeThreshold: z.ZodDefault<z.ZodNumber>;
|
|
221
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
222
|
+
protectUserMessages: z.ZodDefault<z.ZodBoolean>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
strategies: z.ZodDefault<z.ZodObject<{
|
|
225
|
+
deduplication: z.ZodDefault<z.ZodObject<{
|
|
226
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
227
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
purgeErrors: z.ZodDefault<z.ZodObject<{
|
|
230
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
231
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
235
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
manualMode: z.ZodDefault<z.ZodObject<{
|
|
239
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
240
|
+
automaticStrategies: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
protectedFilePatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
15
244
|
}, z.core.$strip>;
|
|
16
245
|
export type DcpConfig = z.infer<typeof DcpConfigSchema>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EvolutionWatcherConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
3
|
+
maxArgChars: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
skipTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6
|
+
}, z.core.$strip>>;
|
|
7
|
+
export type EvolutionWatcherConfig = z.infer<typeof EvolutionWatcherConfigSchema>;
|
|
8
|
+
export declare const EvolutionCompressorConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
9
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
llm: "llm";
|
|
11
|
+
"dspy-gepa": "dspy-gepa";
|
|
12
|
+
}>>;
|
|
13
|
+
model: z.ZodOptional<z.ZodString>;
|
|
14
|
+
minTraces: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
maxInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
trigger: z.ZodDefault<z.ZodEnum<{
|
|
17
|
+
compacting: "compacting";
|
|
18
|
+
idle: "idle";
|
|
19
|
+
both: "both";
|
|
20
|
+
}>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
export type EvolutionCompressorConfig = z.infer<typeof EvolutionCompressorConfigSchema>;
|
|
23
|
+
export declare const EvolutionWriterConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
24
|
+
outputDir: z.ZodDefault<z.ZodString>;
|
|
25
|
+
globalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
allowToolGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
allowAgentGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
export type EvolutionWriterConfig = z.infer<typeof EvolutionWriterConfigSchema>;
|
|
30
|
+
export declare const EvolutionGovernanceConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
31
|
+
requireApproval: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
autoPromote: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
autoPromoteThreshold: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
export type EvolutionGovernanceConfig = z.infer<typeof EvolutionGovernanceConfigSchema>;
|
|
37
|
+
export declare const EvolutionRetentionConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
38
|
+
traceDays: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
maxPending: z.ZodDefault<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
export type EvolutionRetentionConfig = z.infer<typeof EvolutionRetentionConfigSchema>;
|
|
42
|
+
export declare const EvolutionBudgetConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
43
|
+
maxCompressionsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
maxCostCentsPerDay: z.ZodDefault<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
export type EvolutionBudgetConfig = z.infer<typeof EvolutionBudgetConfigSchema>;
|
|
47
|
+
export declare const EvolutionConfigSchema: z.ZodObject<{
|
|
48
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
+
watcher: z.ZodDefault<z.ZodObject<{
|
|
50
|
+
maxArgChars: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
skipTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
compressor: z.ZodDefault<z.ZodObject<{
|
|
55
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
56
|
+
llm: "llm";
|
|
57
|
+
"dspy-gepa": "dspy-gepa";
|
|
58
|
+
}>>;
|
|
59
|
+
model: z.ZodOptional<z.ZodString>;
|
|
60
|
+
minTraces: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
maxInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
trigger: z.ZodDefault<z.ZodEnum<{
|
|
63
|
+
compacting: "compacting";
|
|
64
|
+
idle: "idle";
|
|
65
|
+
both: "both";
|
|
66
|
+
}>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
writer: z.ZodDefault<z.ZodObject<{
|
|
69
|
+
outputDir: z.ZodDefault<z.ZodString>;
|
|
70
|
+
globalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
71
|
+
allowToolGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
72
|
+
allowAgentGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
governance: z.ZodDefault<z.ZodObject<{
|
|
75
|
+
requireApproval: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
autoPromote: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
autoPromoteThreshold: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
retention: z.ZodDefault<z.ZodObject<{
|
|
81
|
+
traceDays: z.ZodDefault<z.ZodNumber>;
|
|
82
|
+
maxPending: z.ZodDefault<z.ZodNumber>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
85
|
+
maxCompressionsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
maxCostCentsPerDay: z.ZodDefault<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type EvolutionConfig = z.infer<typeof EvolutionConfigSchema>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Headroom network-proxy compression configuration.
|
|
4
|
+
*
|
|
5
|
+
* Headroom is an external network-proxy that compresses LLM traffic
|
|
6
|
+
* (CacheAligner → ContentRouter → CCR pipeline). Matrixx does NOT
|
|
7
|
+
* implement compression itself — it only detects/disciplines when
|
|
8
|
+
* Headroom is active.
|
|
9
|
+
*
|
|
10
|
+
* - Opt-in via `enabled: true` (default: false).
|
|
11
|
+
* - Recommended usage is `HEADROOM_WRAP=1 headroom wrap -- <command>`
|
|
12
|
+
* so the proxy sits transparently in front of the transport.
|
|
13
|
+
* - Native transport integration is deferred until the compaction hook
|
|
14
|
+
* stabilizes (Headroom #76 collision risk with
|
|
15
|
+
* anthropic-context-window-limit-recovery).
|
|
16
|
+
*/
|
|
17
|
+
export declare const HeadroomConfigSchema: z.ZodObject<{
|
|
18
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
+
project: z.ZodOptional<z.ZodString>;
|
|
21
|
+
backend: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type HeadroomConfig = z.infer<typeof HeadroomConfigSchema>;
|
|
@@ -4,6 +4,8 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
4
4
|
"quality-gate": "quality-gate";
|
|
5
5
|
"matrix-loop": "matrix-loop";
|
|
6
6
|
"start-work": "start-work";
|
|
7
|
+
"evolution-watcher": "evolution-watcher";
|
|
8
|
+
"evolution-compressor": "evolution-compressor";
|
|
7
9
|
"todo-continuation-enforcer": "todo-continuation-enforcer";
|
|
8
10
|
"context-window-monitor": "context-window-monitor";
|
|
9
11
|
"session-recovery": "session-recovery";
|
|
@@ -33,7 +35,7 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
33
35
|
"auto-slash-command": "auto-slash-command";
|
|
34
36
|
"edit-error-recovery": "edit-error-recovery";
|
|
35
37
|
"delegate-task-retry": "delegate-task-retry";
|
|
36
|
-
"
|
|
38
|
+
"oracle-md-only": "oracle-md-only";
|
|
37
39
|
"plan-persister": "plan-persister";
|
|
38
40
|
"mouse-notepad": "mouse-notepad";
|
|
39
41
|
"unstable-agent-babysitter": "unstable-agent-babysitter";
|
|
@@ -55,7 +57,11 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
55
57
|
"hashline-edit-diff-enhancer": "hashline-edit-diff-enhancer";
|
|
56
58
|
"tool-pair-validator": "tool-pair-validator";
|
|
57
59
|
"task-notepad": "task-notepad";
|
|
60
|
+
"task-todo-mirror": "task-todo-mirror";
|
|
58
61
|
"design-intent-preserver": "design-intent-preserver";
|
|
59
62
|
"rtk-bash-rewriter": "rtk-bash-rewriter";
|
|
63
|
+
"mcp-startup-notification": "mcp-startup-notification";
|
|
64
|
+
"evolution-quality-gate": "evolution-quality-gate";
|
|
65
|
+
"evolution-hitl": "evolution-hitl";
|
|
60
66
|
}>;
|
|
61
67
|
export type HookName = z.infer<typeof HookNameSchema>;
|
|
@@ -72,6 +72,8 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
72
72
|
"quality-gate": "quality-gate";
|
|
73
73
|
"matrix-loop": "matrix-loop";
|
|
74
74
|
"start-work": "start-work";
|
|
75
|
+
"evolution-watcher": "evolution-watcher";
|
|
76
|
+
"evolution-compressor": "evolution-compressor";
|
|
75
77
|
"todo-continuation-enforcer": "todo-continuation-enforcer";
|
|
76
78
|
"context-window-monitor": "context-window-monitor";
|
|
77
79
|
"session-recovery": "session-recovery";
|
|
@@ -101,7 +103,7 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
101
103
|
"auto-slash-command": "auto-slash-command";
|
|
102
104
|
"edit-error-recovery": "edit-error-recovery";
|
|
103
105
|
"delegate-task-retry": "delegate-task-retry";
|
|
104
|
-
"
|
|
106
|
+
"oracle-md-only": "oracle-md-only";
|
|
105
107
|
"plan-persister": "plan-persister";
|
|
106
108
|
"mouse-notepad": "mouse-notepad";
|
|
107
109
|
"unstable-agent-babysitter": "unstable-agent-babysitter";
|
|
@@ -123,8 +125,12 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
123
125
|
"hashline-edit-diff-enhancer": "hashline-edit-diff-enhancer";
|
|
124
126
|
"tool-pair-validator": "tool-pair-validator";
|
|
125
127
|
"task-notepad": "task-notepad";
|
|
128
|
+
"task-todo-mirror": "task-todo-mirror";
|
|
126
129
|
"design-intent-preserver": "design-intent-preserver";
|
|
127
130
|
"rtk-bash-rewriter": "rtk-bash-rewriter";
|
|
131
|
+
"mcp-startup-notification": "mcp-startup-notification";
|
|
132
|
+
"evolution-quality-gate": "evolution-quality-gate";
|
|
133
|
+
"evolution-hitl": "evolution-hitl";
|
|
128
134
|
}>>>;
|
|
129
135
|
disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
130
136
|
"bdd-contract": "bdd-contract";
|
|
@@ -1689,9 +1695,86 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
1689
1695
|
}, z.core.$strip>>;
|
|
1690
1696
|
dcp: z.ZodOptional<z.ZodObject<{
|
|
1691
1697
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1692
|
-
|
|
1693
|
-
|
|
1698
|
+
profiles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1699
|
+
pruneNotification: z.ZodOptional<z.ZodEnum<{
|
|
1700
|
+
off: "off";
|
|
1701
|
+
minimal: "minimal";
|
|
1702
|
+
detailed: "detailed";
|
|
1703
|
+
}>>;
|
|
1704
|
+
compress: z.ZodOptional<z.ZodObject<{
|
|
1705
|
+
maxContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1706
|
+
minContextLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1707
|
+
nudgeFrequency: z.ZodOptional<z.ZodNumber>;
|
|
1708
|
+
iterationNudgeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
+
nudgeForce: z.ZodOptional<z.ZodEnum<{
|
|
1710
|
+
strong: "strong";
|
|
1711
|
+
soft: "soft";
|
|
1712
|
+
}>>;
|
|
1713
|
+
protectTags: z.ZodOptional<z.ZodBoolean>;
|
|
1714
|
+
protectedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1715
|
+
protectUserMessages: z.ZodOptional<z.ZodBoolean>;
|
|
1716
|
+
}, z.core.$strip>>;
|
|
1717
|
+
turnProtection: z.ZodOptional<z.ZodObject<{
|
|
1718
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1719
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
1720
|
+
}, z.core.$strip>>;
|
|
1721
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
1722
|
+
allowSubAgents: z.ZodOptional<z.ZodBoolean>;
|
|
1723
|
+
}, z.core.$strip>>;
|
|
1724
|
+
strategies: z.ZodOptional<z.ZodObject<{
|
|
1725
|
+
purgeErrors: z.ZodOptional<z.ZodObject<{
|
|
1726
|
+
turns: z.ZodOptional<z.ZodNumber>;
|
|
1727
|
+
}, z.core.$strip>>;
|
|
1728
|
+
}, z.core.$strip>>;
|
|
1729
|
+
}, z.core.$strip>>>;
|
|
1694
1730
|
default_profile: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
base: z.ZodDefault<z.ZodObject<{
|
|
1732
|
+
autoUpdate: z.ZodDefault<z.ZodBoolean>;
|
|
1733
|
+
debug: z.ZodDefault<z.ZodBoolean>;
|
|
1734
|
+
pruneNotificationType: z.ZodDefault<z.ZodEnum<{
|
|
1735
|
+
chat: "chat";
|
|
1736
|
+
toast: "toast";
|
|
1737
|
+
}>>;
|
|
1738
|
+
compress: z.ZodDefault<z.ZodObject<{
|
|
1739
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1740
|
+
message: "message";
|
|
1741
|
+
range: "range";
|
|
1742
|
+
}>>;
|
|
1743
|
+
permission: z.ZodDefault<z.ZodEnum<{
|
|
1744
|
+
ask: "ask";
|
|
1745
|
+
allow: "allow";
|
|
1746
|
+
deny: "deny";
|
|
1747
|
+
}>>;
|
|
1748
|
+
showCompression: z.ZodDefault<z.ZodBoolean>;
|
|
1749
|
+
summaryBuffer: z.ZodDefault<z.ZodBoolean>;
|
|
1750
|
+
nudgeForce: z.ZodDefault<z.ZodEnum<{
|
|
1751
|
+
strong: "strong";
|
|
1752
|
+
soft: "soft";
|
|
1753
|
+
}>>;
|
|
1754
|
+
iterationNudgeThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1755
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1756
|
+
protectUserMessages: z.ZodDefault<z.ZodBoolean>;
|
|
1757
|
+
}, z.core.$strip>>;
|
|
1758
|
+
strategies: z.ZodDefault<z.ZodObject<{
|
|
1759
|
+
deduplication: z.ZodDefault<z.ZodObject<{
|
|
1760
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1761
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1762
|
+
}, z.core.$strip>>;
|
|
1763
|
+
purgeErrors: z.ZodDefault<z.ZodObject<{
|
|
1764
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1765
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1766
|
+
}, z.core.$strip>>;
|
|
1767
|
+
}, z.core.$strip>>;
|
|
1768
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
1769
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1770
|
+
protectedTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1771
|
+
}, z.core.$strip>>;
|
|
1772
|
+
manualMode: z.ZodDefault<z.ZodObject<{
|
|
1773
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1774
|
+
automaticStrategies: z.ZodDefault<z.ZodBoolean>;
|
|
1775
|
+
}, z.core.$strip>>;
|
|
1776
|
+
protectedFilePatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1777
|
+
}, z.core.$strip>>;
|
|
1695
1778
|
}, z.core.$strip>>;
|
|
1696
1779
|
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
1697
1780
|
skills: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
@@ -1815,21 +1898,63 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
1815
1898
|
notify_on_fallback: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1816
1899
|
}, z.core.$strip>>;
|
|
1817
1900
|
agent_definitions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1818
|
-
model_capabilities: z.ZodOptional<z.ZodObject<{
|
|
1819
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1820
|
-
auto_refresh_on_start: z.ZodOptional<z.ZodBoolean>;
|
|
1821
|
-
refresh_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1822
|
-
source_url: z.ZodOptional<z.ZodString>;
|
|
1823
|
-
}, z.core.$strip>>;
|
|
1824
1901
|
matrixx_self_config: z.ZodOptional<z.ZodObject<{
|
|
1825
1902
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1826
1903
|
proactive: z.ZodDefault<z.ZodBoolean>;
|
|
1827
1904
|
}, z.core.$strip>>;
|
|
1905
|
+
headroom: z.ZodOptional<z.ZodObject<{
|
|
1906
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1907
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
1908
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
backend: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, z.core.$strip>>;
|
|
1828
1911
|
rtk: z.ZodOptional<z.ZodObject<{
|
|
1829
1912
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1830
1913
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
1831
1914
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
1832
1915
|
}, z.core.$strip>>;
|
|
1916
|
+
evolution: z.ZodOptional<z.ZodObject<{
|
|
1917
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1918
|
+
watcher: z.ZodDefault<z.ZodObject<{
|
|
1919
|
+
maxArgChars: z.ZodDefault<z.ZodNumber>;
|
|
1920
|
+
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
1921
|
+
skipTools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1922
|
+
}, z.core.$strip>>;
|
|
1923
|
+
compressor: z.ZodDefault<z.ZodObject<{
|
|
1924
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
1925
|
+
llm: "llm";
|
|
1926
|
+
"dspy-gepa": "dspy-gepa";
|
|
1927
|
+
}>>;
|
|
1928
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
minTraces: z.ZodDefault<z.ZodNumber>;
|
|
1930
|
+
maxInputTokens: z.ZodDefault<z.ZodNumber>;
|
|
1931
|
+
trigger: z.ZodDefault<z.ZodEnum<{
|
|
1932
|
+
compacting: "compacting";
|
|
1933
|
+
idle: "idle";
|
|
1934
|
+
both: "both";
|
|
1935
|
+
}>>;
|
|
1936
|
+
}, z.core.$strip>>;
|
|
1937
|
+
writer: z.ZodDefault<z.ZodObject<{
|
|
1938
|
+
outputDir: z.ZodDefault<z.ZodString>;
|
|
1939
|
+
globalSkills: z.ZodDefault<z.ZodBoolean>;
|
|
1940
|
+
allowToolGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
1941
|
+
allowAgentGeneration: z.ZodDefault<z.ZodBoolean>;
|
|
1942
|
+
}, z.core.$strip>>;
|
|
1943
|
+
governance: z.ZodDefault<z.ZodObject<{
|
|
1944
|
+
requireApproval: z.ZodDefault<z.ZodBoolean>;
|
|
1945
|
+
autoPromote: z.ZodDefault<z.ZodBoolean>;
|
|
1946
|
+
autoPromoteThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1947
|
+
minConfidence: z.ZodDefault<z.ZodNumber>;
|
|
1948
|
+
}, z.core.$strip>>;
|
|
1949
|
+
retention: z.ZodDefault<z.ZodObject<{
|
|
1950
|
+
traceDays: z.ZodDefault<z.ZodNumber>;
|
|
1951
|
+
maxPending: z.ZodDefault<z.ZodNumber>;
|
|
1952
|
+
}, z.core.$strip>>;
|
|
1953
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1954
|
+
maxCompressionsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
1955
|
+
maxCostCentsPerDay: z.ZodDefault<z.ZodNumber>;
|
|
1956
|
+
}, z.core.$strip>>;
|
|
1957
|
+
}, z.core.$strip>>;
|
|
1833
1958
|
_migrations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1834
1959
|
}, z.core.$strip>;
|
|
1835
1960
|
export type MatrixxConfig = z.infer<typeof MatrixxConfigSchema>;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -8,15 +8,15 @@ export * from "./schema/background-task";
|
|
|
8
8
|
export * from "./schema/browser-automation";
|
|
9
9
|
export * from "./schema/categories";
|
|
10
10
|
export * from "./schema/commands";
|
|
11
|
-
export * from "./schema/commands";
|
|
12
11
|
export * from "./schema/comment-checker";
|
|
13
12
|
export * from "./schema/dcp";
|
|
13
|
+
export * from "./schema/evolution";
|
|
14
14
|
export * from "./schema/experimental";
|
|
15
|
-
export * from "./schema/
|
|
15
|
+
export * from "./schema/headroom";
|
|
16
16
|
export * from "./schema/hooks";
|
|
17
17
|
export * from "./schema/matrix-loop";
|
|
18
18
|
export * from "./schema/matrixx-config";
|
|
19
|
-
export * from "./schema/
|
|
19
|
+
export * from "./schema/matrixx-self-config";
|
|
20
20
|
export * from "./schema/morpheus";
|
|
21
21
|
export * from "./schema/morpheus-agent";
|
|
22
22
|
export * from "./schema/notification";
|
package/dist/create-hooks.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AvailableSkill } from "./agents/dynamic-agent-prompt-builder";
|
|
2
2
|
import type { HookName, MatrixxConfig } from "./config";
|
|
3
3
|
import type { BackgroundManager } from "./features/background-agent";
|
|
4
|
-
import type {
|
|
4
|
+
import type { BuiltinSkill } from "./features/builtin-skills";
|
|
5
5
|
import type { PluginContext } from "./plugin/types";
|
|
6
6
|
export type CreatedHooks = ReturnType<typeof createHooks>;
|
|
7
7
|
export declare function createHooks(args: {
|
|
@@ -10,7 +10,7 @@ export declare function createHooks(args: {
|
|
|
10
10
|
backgroundManager: BackgroundManager;
|
|
11
11
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
12
12
|
safeHookEnabled: boolean;
|
|
13
|
-
|
|
13
|
+
builtinSkills: BuiltinSkill[];
|
|
14
14
|
availableSkills: AvailableSkill[];
|
|
15
15
|
}): {
|
|
16
16
|
categorySkillReminder: ReturnType<typeof import("./hooks").createCategorySkillReminderHook> | null;
|
|
@@ -23,6 +23,8 @@ export declare function createHooks(args: {
|
|
|
23
23
|
backgroundNotificationHook: ReturnType<typeof import("./hooks").createBackgroundNotificationHook> | null;
|
|
24
24
|
architectHook: ReturnType<typeof import("./hooks").createArchitectHook> | null;
|
|
25
25
|
planPersister: ReturnType<typeof import("./hooks").createPlanPersister> | null;
|
|
26
|
+
evolutionCompressor: ReturnType<typeof import("./hooks").createEvolutionCompressorHook> | null;
|
|
27
|
+
evolutionHitl: ReturnType<typeof import("./hooks").createEvolutionHitlHook> | null;
|
|
26
28
|
keywordDetector: ReturnType<typeof import("./hooks").createKeywordDetectorHook> | null;
|
|
27
29
|
contextInjectorMessagesTransform: ReturnType<typeof import("./features/context-injector").createContextInjectorMessagesTransformHook>;
|
|
28
30
|
envContextInjector: ReturnType<typeof import("./hooks").createEnvContextInjectorHook> | null;
|
|
@@ -48,6 +50,8 @@ export declare function createHooks(args: {
|
|
|
48
50
|
hashlineEditDiffEnhancer: ReturnType<typeof import("./hooks").createHashlineEditDiffEnhancerHook> | null;
|
|
49
51
|
qualityGate: ReturnType<typeof import("./hooks").createQualityGateHook> | null;
|
|
50
52
|
taskNotepad: ReturnType<typeof import("./hooks").createTaskNotepadHook> | null;
|
|
53
|
+
evolutionWatcher: ReturnType<typeof import("./hooks").createEvolutionWatcherHook> | null;
|
|
54
|
+
taskTodoMirror: ReturnType<typeof import("./hooks").createTaskTodoMirrorHook> | null;
|
|
51
55
|
contextWindowMonitor: ReturnType<typeof import("./hooks").createContextWindowMonitorHook> | null;
|
|
52
56
|
preemptiveCompaction: ReturnType<typeof import("./hooks").createPreemptiveCompactionHook> | null;
|
|
53
57
|
sessionRecovery: ReturnType<typeof import("./hooks").createSessionRecoveryHook> | null;
|
|
@@ -62,11 +66,12 @@ export declare function createHooks(args: {
|
|
|
62
66
|
editErrorRecovery: ReturnType<typeof import("./hooks").createEditErrorRecoveryHook> | null;
|
|
63
67
|
delegateTaskRetry: ReturnType<typeof import("./hooks").createDelegateTaskRetryHook> | null;
|
|
64
68
|
startWork: ReturnType<typeof import("./hooks").createStartWorkHook> | null;
|
|
65
|
-
|
|
69
|
+
oracleMdOnly: ReturnType<typeof import("./hooks").createOracleMdOnlyHook> | null;
|
|
66
70
|
mouseNotepad: ReturnType<typeof import("./hooks").createMouseNotepadHook> | null;
|
|
67
71
|
questionLabelTruncator: ReturnType<typeof import("./hooks").createQuestionLabelTruncatorHook>;
|
|
68
72
|
taskResumeInfo: ReturnType<typeof import("./hooks").createTaskResumeInfoHook>;
|
|
69
73
|
anthropicEffort: ReturnType<typeof import("./hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
70
74
|
runtimeFallback: ReturnType<typeof import("./hooks").createRuntimeFallbackHook> | null;
|
|
71
75
|
rtkBashRewriter: ReturnType<typeof import("./hooks").createRtkBashRewriterHook> | null;
|
|
76
|
+
mcpStartupNotification: ReturnType<typeof import("./hooks").createMcpStartupNotificationHook> | null;
|
|
72
77
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "./config";
|
|
2
2
|
import { BackgroundManager } from "./features/background-agent";
|
|
3
|
-
import { SkillMcpManager } from "./features/skill-mcp-manager";
|
|
4
3
|
import { TmuxSessionManager } from "./features/tmux-subagent";
|
|
5
4
|
import type { PluginContext, TmuxConfig } from "./plugin/types";
|
|
6
5
|
import { createConfigHandler } from "./plugin-handlers";
|
|
@@ -8,7 +7,6 @@ import type { ModelCacheState } from "./plugin-state";
|
|
|
8
7
|
export type Managers = {
|
|
9
8
|
tmuxSessionManager: TmuxSessionManager;
|
|
10
9
|
backgroundManager: BackgroundManager;
|
|
11
|
-
skillMcpManager: SkillMcpManager;
|
|
12
10
|
configHandler: ReturnType<typeof createConfigHandler>;
|
|
13
11
|
};
|
|
14
12
|
export declare function createManagers(args: {
|