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.
@@ -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: any;
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: any;
106
+ args: Record<string, unknown>;
107
107
  }, output: {
108
108
  title: string;
109
109
  output: string;
110
- metadata: any;
110
+ metadata: Record<string, unknown>;
111
111
  }) => Promise<void>;
112
- "experimental.chat.messages.transform"?: (input: {}, output: {
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: any;
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 (ctx_batch_execute / ctx_execute running `rg`) instead.
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
- * Default absent (false) so production without an override is fail-open
51
- * (warn-only). Tests simulate presence via `_setCtxToolsForTesting(true)`.
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 `warn` plus a single startup toast. Nothing here throws.
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
  */
@@ -16,10 +16,8 @@ export type BackgroundOutputClient = {
16
16
  };
17
17
  export type BackgroundCancelClient = {
18
18
  session: {
19
- abort: (args: {
20
- path: {
21
- id: string;
22
- };
19
+ interrupt: (args: {
20
+ sessionID: string;
23
21
  }) => Promise<unknown>;
24
22
  };
25
23
  };
@@ -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
- export declare function createBackgroundCancel(manager: BackgroundManager, _client: SessionContextCarrier): MatrixxToolDefinition;
3
+ import type { BackgroundCancelClient } from "./clients";
4
+ export declare function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): MatrixxToolDefinition;
@@ -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>;