opencode-matrixx-v2 1.0.0 → 1.1.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 +2 -2
- package/dist/cli/doctor/checks/context-mode.d.ts +15 -1
- package/dist/cli.js +1239 -10971
- package/dist/config/schema/background-task.d.ts +0 -9
- package/dist/config/schema/matrixx-config.d.ts +0 -9
- package/dist/features/background-agent/constants.d.ts +0 -4
- package/dist/features/background-agent/index.d.ts +0 -1
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/features/background-agent/session-output.d.ts +4 -0
- package/dist/features/session-state/state.d.ts +1 -0
- package/dist/features/task-toast-manager/manager.d.ts +2 -6
- package/dist/hooks/subagent-block/constants.d.ts +1 -1
- package/dist/index.js +6291 -15528
- package/dist/matrixx.schema.json +0 -33
- package/dist/plugin/legacy-hooks.d.ts +5 -5
- package/dist/shared/context-mode-enforcement.d.ts +7 -3
- package/dist/shared/task-system-gating.d.ts +1 -1
- package/dist/tools/background-task/clients.d.ts +2 -4
- package/dist/tools/background-task/create-background-cancel.d.ts +2 -2
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools.js +890 -10588
- package/package.json +3 -3
- package/dist/features/background-agent/concurrency.d.ts +0 -36
package/dist/matrixx.schema.json
CHANGED
|
@@ -3299,39 +3299,6 @@
|
|
|
3299
3299
|
},
|
|
3300
3300
|
"additionalProperties": false
|
|
3301
3301
|
},
|
|
3302
|
-
"admissionTimeoutMs": {
|
|
3303
|
-
"anyOf": [
|
|
3304
|
-
{
|
|
3305
|
-
"type": "number",
|
|
3306
|
-
"const": 0
|
|
3307
|
-
},
|
|
3308
|
-
{
|
|
3309
|
-
"type": "number",
|
|
3310
|
-
"minimum": 60000
|
|
3311
|
-
}
|
|
3312
|
-
]
|
|
3313
|
-
},
|
|
3314
|
-
"nestedAdmission": {
|
|
3315
|
-
"type": "object",
|
|
3316
|
-
"properties": {
|
|
3317
|
-
"enabled": {
|
|
3318
|
-
"type": "boolean"
|
|
3319
|
-
},
|
|
3320
|
-
"mode": {
|
|
3321
|
-
"type": "string",
|
|
3322
|
-
"enum": [
|
|
3323
|
-
"bypass",
|
|
3324
|
-
"reserve"
|
|
3325
|
-
]
|
|
3326
|
-
},
|
|
3327
|
-
"maxDepth": {
|
|
3328
|
-
"type": "integer",
|
|
3329
|
-
"minimum": 1,
|
|
3330
|
-
"maximum": 5
|
|
3331
|
-
}
|
|
3332
|
-
},
|
|
3333
|
-
"additionalProperties": false
|
|
3334
|
-
},
|
|
3335
3302
|
"wakeScheduler": {
|
|
3336
3303
|
"type": "object",
|
|
3337
3304
|
"properties": {
|
|
@@ -90,7 +90,7 @@ export interface Hooks {
|
|
|
90
90
|
sessionID: string;
|
|
91
91
|
callID: string;
|
|
92
92
|
}, output: {
|
|
93
|
-
args:
|
|
93
|
+
args: Record<string, unknown>;
|
|
94
94
|
}) => Promise<void>;
|
|
95
95
|
"shell.env"?: (input: {
|
|
96
96
|
cwd: string;
|
|
@@ -103,13 +103,13 @@ export interface Hooks {
|
|
|
103
103
|
tool: string;
|
|
104
104
|
sessionID: string;
|
|
105
105
|
callID: string;
|
|
106
|
-
args:
|
|
106
|
+
args: Record<string, unknown>;
|
|
107
107
|
}, output: {
|
|
108
108
|
title: string;
|
|
109
109
|
output: string;
|
|
110
|
-
metadata:
|
|
110
|
+
metadata: Record<string, unknown>;
|
|
111
111
|
}) => Promise<void>;
|
|
112
|
-
"experimental.chat.messages.transform"?: (input:
|
|
112
|
+
"experimental.chat.messages.transform"?: (input: Record<string, unknown>, output: {
|
|
113
113
|
messages: {
|
|
114
114
|
info: Message;
|
|
115
115
|
parts: Part[];
|
|
@@ -138,6 +138,6 @@ export interface Hooks {
|
|
|
138
138
|
toolID: string;
|
|
139
139
|
}, output: {
|
|
140
140
|
description: string;
|
|
141
|
-
parameters:
|
|
141
|
+
parameters: Record<string, unknown>;
|
|
142
142
|
}) => Promise<void>;
|
|
143
143
|
}
|
|
@@ -23,7 +23,7 @@ export declare function hasGrepGlobToolNames(toolNames: readonly string[]): bool
|
|
|
23
23
|
* Whether agent prompts may advertise a grep/glob fallback.
|
|
24
24
|
* Usable = registered AND not blocked. Under enforce:true the hook throws on
|
|
25
25
|
* grep/glob, so the prompt must never offer them — it must name the working
|
|
26
|
-
* substitute (
|
|
26
|
+
* substitute (ctx_batch / ctx_execute running `rg`) instead.
|
|
27
27
|
*/
|
|
28
28
|
export declare function resolveGrepGlobUsable(toolNames: readonly string[], contextMode?: ContextModeConfigInput): boolean;
|
|
29
29
|
export declare function _setDisciplinePathForTesting(p: string | null | undefined): void;
|
|
@@ -47,8 +47,12 @@ export declare function resolveContextModeDisciplineInfo(): {
|
|
|
47
47
|
export declare function hasWorkingSubstitute(): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* SINGLE-OWNER predicate for ctx-tool presence.
|
|
50
|
-
*
|
|
51
|
-
*
|
|
50
|
+
* Fail-open (locked Phase-2 decision, honoring the committed
|
|
51
|
+
* ctx-absent-blocked RED suite): available only when the discipline path
|
|
52
|
+
* resolves AND a context_mode config is present and enabled; every other
|
|
53
|
+
* state defaults to false so the hook's warn-only fallback path stays
|
|
54
|
+
* reachable exactly as today. Tests force either outcome via
|
|
55
|
+
* `_setCtxToolsForTesting`.
|
|
52
56
|
*/
|
|
53
57
|
export declare function isCtxToolsAvailable(): boolean;
|
|
54
58
|
/** Alias kept for prompt-builder readability — same single owner. */
|
|
@@ -25,7 +25,7 @@ export declare function resetTaskSystemDeprecationWarning(): void;
|
|
|
25
25
|
* unconditional and always resolves to `TASK_SYSTEM_DEFAULT`. The three keys
|
|
26
26
|
* that used to gate it (`tasks.enabled`, `experimental.task_system`,
|
|
27
27
|
* `new_task_system_enabled`) are parsed, ignored, and reported once per session
|
|
28
|
-
* via
|
|
28
|
+
* via a log line plus a single startup toast. Nothing here throws.
|
|
29
29
|
*
|
|
30
30
|
* Pure derivation, no mutation — safe to call on every read.
|
|
31
31
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
2
|
-
import type { SessionContextCarrier } from "../../shared/session-context-source";
|
|
3
2
|
import { type MatrixxToolDefinition } from "../shared/define-tool";
|
|
4
|
-
|
|
3
|
+
import type { BackgroundCancelClient } from "./clients";
|
|
4
|
+
export declare function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): MatrixxToolDefinition;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -31,11 +31,12 @@ export { createStalenessGapCheckerTool } from "./staleness-gap-checker";
|
|
|
31
31
|
export { lspManager };
|
|
32
32
|
import type { BackgroundManager } from "../features/background-agent";
|
|
33
33
|
import type { SessionContextCarrier } from "../shared/session-context-source";
|
|
34
|
+
import type { BackgroundCancelClient } from "./background-task/clients";
|
|
34
35
|
import type { MatrixxToolDefinition } from "./shared/define-tool";
|
|
35
36
|
export { createAssemblyTool } from "./assembly/tools";
|
|
36
37
|
export { createDelegateTask, resolveSystemDefaultModel } from "./delegate-task";
|
|
37
38
|
export { createHashlineEditTool } from "./hashline-edit";
|
|
38
39
|
export { createLookAt } from "./look-at/tools";
|
|
39
40
|
export { createTaskCleanupTool, createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
|
|
40
|
-
export declare function createBackgroundTools(manager: BackgroundManager, client: SessionContextCarrier, directory: string): Record<string, MatrixxToolDefinition>;
|
|
41
|
+
export declare function createBackgroundTools(manager: BackgroundManager, client: SessionContextCarrier & BackgroundCancelClient, directory: string): Record<string, MatrixxToolDefinition>;
|
|
41
42
|
export declare const builtinTools: Record<string, MatrixxToolDefinition>;
|