opencode-matrixx-v2 1.0.0 → 1.2.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.
Files changed (30) hide show
  1. package/README.md +2 -2
  2. package/dist/cli/doctor/checks/context-mode.d.ts +24 -1
  3. package/dist/cli.js +1254 -10967
  4. package/dist/config/schema/background-task.d.ts +0 -9
  5. package/dist/config/schema/matrixx-config.d.ts +0 -9
  6. package/dist/features/background-agent/constants.d.ts +0 -4
  7. package/dist/features/background-agent/index.d.ts +0 -1
  8. package/dist/features/background-agent/manager.d.ts +1 -0
  9. package/dist/features/background-agent/session-output.d.ts +4 -0
  10. package/dist/features/session-state/state.d.ts +1 -0
  11. package/dist/features/task-toast-manager/manager.d.ts +2 -6
  12. package/dist/hooks/auto-update-checker/hook/mcp-startup-toast.d.ts +5 -0
  13. package/dist/hooks/subagent-block/constants.d.ts +1 -1
  14. package/dist/index.js +6481 -15615
  15. package/dist/matrixx.schema.json +0 -33
  16. package/dist/mcps/context7.d.ts +12 -0
  17. package/dist/mcps/index.d.ts +3 -0
  18. package/dist/mcps/mcp-startup-notice.d.ts +5 -0
  19. package/dist/mcps/mcp.transform.d.ts +2 -0
  20. package/dist/plugin/legacy-hooks.d.ts +5 -5
  21. package/dist/plugin/setup-domains.d.ts +3 -0
  22. package/dist/shared/context-mode-enforcement.d.ts +7 -3
  23. package/dist/shared/task-system-gating.d.ts +1 -1
  24. package/dist/tools/background-task/clients.d.ts +2 -4
  25. package/dist/tools/background-task/create-background-cancel.d.ts +2 -2
  26. package/dist/tools/delegate-task/sync-session-poller.d.ts +15 -0
  27. package/dist/tools/index.d.ts +2 -1
  28. package/dist/tools.js +890 -10588
  29. package/package.json +3 -3
  30. package/dist/features/background-agent/concurrency.d.ts +0 -36
@@ -26,15 +26,6 @@ export declare const BackgroundTaskConfigSchema: z.ZodObject<{
26
26
  maxToolCalls: z.ZodOptional<z.ZodNumber>;
27
27
  consecutiveThreshold: z.ZodOptional<z.ZodNumber>;
28
28
  }, z.core.$strip>>;
29
- admissionTimeoutMs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>;
30
- nestedAdmission: z.ZodOptional<z.ZodObject<{
31
- enabled: z.ZodOptional<z.ZodBoolean>;
32
- mode: z.ZodOptional<z.ZodEnum<{
33
- bypass: "bypass";
34
- reserve: "reserve";
35
- }>>;
36
- maxDepth: z.ZodOptional<z.ZodNumber>;
37
- }, z.core.$strip>>;
38
29
  wakeScheduler: z.ZodOptional<z.ZodObject<{
39
30
  enabled: z.ZodOptional<z.ZodBoolean>;
40
31
  intervalMs: z.ZodOptional<z.ZodNumber>;
@@ -968,15 +968,6 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
968
968
  maxToolCalls: z.ZodOptional<z.ZodNumber>;
969
969
  consecutiveThreshold: z.ZodOptional<z.ZodNumber>;
970
970
  }, z.core.$strip>>;
971
- admissionTimeoutMs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>;
972
- nestedAdmission: z.ZodOptional<z.ZodObject<{
973
- enabled: z.ZodOptional<z.ZodBoolean>;
974
- mode: z.ZodOptional<z.ZodEnum<{
975
- bypass: "bypass";
976
- reserve: "reserve";
977
- }>>;
978
- maxDepth: z.ZodOptional<z.ZodNumber>;
979
- }, z.core.$strip>>;
980
971
  wakeScheduler: z.ZodOptional<z.ZodObject<{
981
972
  enabled: z.ZodOptional<z.ZodBoolean>;
982
973
  intervalMs: z.ZodOptional<z.ZodNumber>;
@@ -11,12 +11,8 @@ export declare const MIN_IDLE_TIME_MS = 5000;
11
11
  export declare const POLLING_INTERVAL_MS = 3000;
12
12
  export declare const PRUNE_THROTTLE_MS = 30000;
13
13
  export declare const TASK_CLEANUP_DELAY_MS: number;
14
- export declare const DEFAULT_ADMISSION_TIMEOUT_MS = 0;
15
14
  export declare const DEFAULT_WALL_CLOCK_TIMEOUT_MS = 0;
16
15
  export declare const DEFAULT_WALL_CLOCK_ABORT_GRACE_MS = 5000;
17
- export declare const DEFAULT_NESTED_ADMISSION_ENABLED = true;
18
- export declare const DEFAULT_NESTED_ADMISSION_MODE: "bypass";
19
- export declare const DEFAULT_NESTED_MAX_DEPTH = 2;
20
16
  export declare const DEFAULT_WAKE_SCHEDULER_ENABLED = false;
21
17
  export declare const DEFAULT_WAKE_INTERVAL_MS = 300000;
22
18
  export declare const MIN_WAKE_INTERVAL_MS = 60000;
@@ -1,4 +1,3 @@
1
- export { ConcurrencyManager } from "./concurrency";
2
1
  export { BG_HANDLE_FILE_PREFIX, type BgHandle, BgHandleSchema, deleteHandleFile, getBgHandleDir, getHandlePath, readHandles, sweepStaleHandles, toHandle, writeHandle, } from "./handle-index";
3
2
  export { BackgroundManager, type OnSubagentSessionCreated, type SubagentSessionCreatedEvent } from "./manager";
4
3
  export { TaskStateManager } from "./state";
@@ -125,6 +125,7 @@ export declare class BackgroundManager {
125
125
  */
126
126
  getNativeDescendants(sessionId: string): NativeDescendant[];
127
127
  findBySession(sessionID: string): BackgroundTask | undefined;
128
+ findDiskTaskBySession(sessionID: string): BackgroundTask | undefined;
128
129
  cancelTask(taskId: string, options?: {
129
130
  source?: string;
130
131
  reason?: string;
@@ -10,7 +10,11 @@ export declare function fetchSessionMessages(client: SessionOutputClient, sessio
10
10
  /**
11
11
  * True when the session produced real assistant/tool output with content.
12
12
  * Shared by `validateSessionHasOutput` (manager) and `reconcileHandle`.
13
+ * Analysis-only content (<analysis> blocks) does NOT count as output —
14
+ * prevents premature completion when a subagent has only emitted its
15
+ * planning preamble.
13
16
  */
17
+ export declare function stripAnalysisBlocks(text: string): string;
14
18
  export declare function messagesHaveAssistantOutput(messages: SessionMessage[], sessionID?: string): boolean;
15
19
  /** True when any assistant message carries a recorded provider/abort error. */
16
20
  export declare function messagesHaveRecordedError(messages: SessionMessage[]): boolean;
@@ -31,3 +31,4 @@ export declare function clearSessionAgent(sessionID: string): void;
31
31
  export declare function setSessionModel(sessionID: string, model: string): void;
32
32
  export declare function getSessionModel(sessionID: string): string | undefined;
33
33
  export declare function clearSessionModel(sessionID: string): void;
34
+ export declare function releaseSubagentSession(sessionID: string): void;
@@ -1,10 +1,6 @@
1
- import type { ConcurrencyManager } from "../background-agent/concurrency";
2
1
  import type { ModelFallbackInfo, TaskStatus, TrackedTask } from "./types";
3
2
  export declare class TaskToastManager {
4
3
  private tasks;
5
- private concurrencyManager?;
6
- constructor(concurrencyManager?: ConcurrencyManager);
7
- setConcurrencyManager(manager: ConcurrencyManager): void;
8
4
  addTask(task: {
9
5
  id: string;
10
6
  description: string;
@@ -35,7 +31,6 @@ export declare class TaskToastManager {
35
31
  * Format duration since task started
36
32
  */
37
33
  private formatDuration;
38
- private getConcurrencyInfo;
39
34
  private buildTaskListMessage;
40
35
  /**
41
36
  * Show consolidated toast with all running/queued tasks
@@ -51,5 +46,6 @@ export declare class TaskToastManager {
51
46
  }): void;
52
47
  }
53
48
  export declare function getTaskToastManager(): TaskToastManager | null;
54
- export declare function initTaskToastManager(concurrencyManager?: ConcurrencyManager): TaskToastManager;
49
+ export declare function getActiveTaskToastManager(): TaskToastManager | null;
50
+ export declare function initTaskToastManager(): TaskToastManager;
55
51
  export declare function _resetTaskToastManagerForTesting(): void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Surface disabled-MCP startup failures as a user-visible warning on the
3
+ * session-created path. Silent when the startup state holds no failures.
4
+ */
5
+ export declare function showMcpStartupNoticeIfAny(): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  export declare const HOOK_NAME = "subagent-block";
2
- export declare const BLOCK_MESSAGE = "[subagent-block] Native subagent tool is blocked. Use task tool instead (category or subagent_type + load_skills) to spawn agents so execution stays tracked and visible to background_output/background_wait_all.";
2
+ export declare const BLOCK_MESSAGE = "[subagent-block] Native subagent tool is blocked. Use task tool instead (category or subagent_type + load_skills) to spawn agents so execution stays tracked and visible to background_output/background_wait_all. ses_ sessions remain manageable: cancellable via background_cancel (session.interrupt) and revivable by the owning parent via background_revive (session.prompt); foreign or unregistered ses_ IDs are still refused.";
3
3
  export declare const BYPASS_LOG_PREFIX = "[subagent-block] allowlist bypass";