opencode-matrixx 2.6.13 → 2.6.14

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 (91) hide show
  1. package/README.md +25 -21
  2. package/dist/agents/architect/default.d.ts +1 -1
  3. package/dist/agents/architect/gpt.d.ts +1 -1
  4. package/dist/agents/builtin-agents/architect-agent.d.ts +0 -1
  5. package/dist/agents/builtin-agents/general-agents.d.ts +0 -1
  6. package/dist/agents/builtin-agents/keymaker-agent.d.ts +0 -1
  7. package/dist/agents/builtin-agents/morpheus-agent.d.ts +0 -1
  8. package/dist/agents/builtin-agents.d.ts +1 -1
  9. package/dist/agents/keymaker.d.ts +1 -1
  10. package/dist/agents/morpheus.d.ts +1 -1
  11. package/dist/agents/mouse/agent.d.ts +2 -2
  12. package/dist/agents/mouse/deepseek.d.ts +1 -1
  13. package/dist/agents/mouse/default.d.ts +1 -1
  14. package/dist/agents/mouse/gpt.d.ts +1 -1
  15. package/dist/agents/mouse/mimo.d.ts +1 -1
  16. package/dist/agents/mouse/qwen.d.ts +1 -1
  17. package/dist/agents/mouse/shared.d.ts +3 -3
  18. package/dist/agents/oracle/plan-generation.d.ts +1 -1
  19. package/dist/agents/seraph.d.ts +1 -1
  20. package/dist/cli.js +11 -9
  21. package/dist/config/schema/experimental.d.ts +1 -1
  22. package/dist/config/schema/hooks.d.ts +2 -5
  23. package/dist/config/schema/matrixx-config.d.ts +4 -6
  24. package/dist/config/schema/tasks.d.ts +5 -1
  25. package/dist/create-hooks.d.ts +1 -4
  26. package/dist/features/background-agent/manager.d.ts +5 -2
  27. package/dist/features/background-agent/reconcile.d.ts +8 -1
  28. package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
  29. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
  30. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
  31. package/dist/features/builtin-commands/templates/remove-deadcode.d.ts +1 -1
  32. package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -1
  33. package/dist/features/task-session-scope/ancestry.d.ts +23 -0
  34. package/dist/features/task-session-scope/index.d.ts +2 -0
  35. package/dist/features/task-session-scope/session-task-pending.d.ts +83 -0
  36. package/dist/hooks/architect/system-reminder-templates.d.ts +1 -1
  37. package/dist/hooks/index.d.ts +1 -5
  38. package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +1 -1
  39. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +1 -1
  40. package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +1 -1
  41. package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +1 -1
  42. package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +1 -1
  43. package/dist/hooks/plan-persister/hook.d.ts +1 -1
  44. package/dist/hooks/session-notification-scheduler.d.ts +1 -1
  45. package/dist/hooks/session-notification.d.ts +9 -2
  46. package/dist/hooks/task-continuation-enforcer/handler.d.ts +0 -1
  47. package/dist/hooks/task-continuation-enforcer/index.d.ts +0 -1
  48. package/dist/hooks/task-continuation-enforcer/staleness.d.ts +10 -0
  49. package/dist/hooks/task-continuation-enforcer/todo.d.ts +2 -1
  50. package/dist/hooks/task-continuation-enforcer/types.d.ts +0 -8
  51. package/dist/hooks/task-notepad-writer/constants.d.ts +42 -0
  52. package/dist/hooks/task-notepad-writer/hook.d.ts +14 -0
  53. package/dist/hooks/task-notepad-writer/index.d.ts +2 -0
  54. package/dist/hooks/task-notepad-writer/notepad-path.d.ts +36 -0
  55. package/dist/index.js +1545 -2092
  56. package/dist/matrixx.schema.json +31 -18
  57. package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -3
  58. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -2
  59. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -3
  60. package/dist/plugin-handlers/task-permissions.d.ts +48 -0
  61. package/dist/shared/logger.d.ts +1 -0
  62. package/dist/shared/system-directive.d.ts +0 -1
  63. package/dist/shared/task-system-gating.d.ts +24 -4
  64. package/dist/tools/session-manager/constants.d.ts +1 -1
  65. package/dist/tools/session-manager/storage.d.ts +44 -0
  66. package/dist/tools/session-manager/tools.d.ts +2 -1
  67. package/dist/tools/task/create-one.d.ts +21 -0
  68. package/dist/tools/task/types.d.ts +56 -1
  69. package/package.json +1 -1
  70. package/dist/hooks/compaction-todo-preserver/hook.d.ts +0 -24
  71. package/dist/hooks/compaction-todo-preserver/index.d.ts +0 -2
  72. package/dist/hooks/session-todo-status.d.ts +0 -2
  73. package/dist/hooks/task-notepad/constants.d.ts +0 -10
  74. package/dist/hooks/task-notepad/hook.d.ts +0 -12
  75. package/dist/hooks/task-notepad/index.d.ts +0 -3
  76. package/dist/hooks/task-notepad/types.d.ts +0 -16
  77. package/dist/hooks/tasks-todowrite-disabler/constants.d.ts +0 -3
  78. package/dist/hooks/tasks-todowrite-disabler/hook.d.ts +0 -14
  79. package/dist/hooks/tasks-todowrite-disabler/index.d.ts +0 -2
  80. package/dist/hooks/todo-continuation-enforcer/abort-detection.d.ts +0 -4
  81. package/dist/hooks/todo-continuation-enforcer/constants.d.ts +0 -10
  82. package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +0 -12
  83. package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +0 -14
  84. package/dist/hooks/todo-continuation-enforcer/handler.d.ts +0 -15
  85. package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +0 -11
  86. package/dist/hooks/todo-continuation-enforcer/index.d.ts +0 -4
  87. package/dist/hooks/todo-continuation-enforcer/message-directory.d.ts +0 -1
  88. package/dist/hooks/todo-continuation-enforcer/non-idle-events.d.ts +0 -6
  89. package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +0 -10
  90. package/dist/hooks/todo-continuation-enforcer/todo.d.ts +0 -2
  91. package/dist/hooks/todo-continuation-enforcer/types.d.ts +0 -61
@@ -1,14 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { SessionStateStore } from "./session-state";
4
- import type { ResolvedMessageInfo } from "./types";
5
- export declare function startCountdown(args: {
6
- ctx: PluginInput;
7
- sessionID: string;
8
- incompleteCount: number;
9
- total: number;
10
- resolvedInfo?: ResolvedMessageInfo;
11
- backgroundManager?: BackgroundManager;
12
- skipAgents: string[];
13
- sessionStateStore: SessionStateStore;
14
- }): void;
@@ -1,15 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { SessionStateStore } from "./session-state";
4
- export declare function createTodoContinuationHandler(args: {
5
- ctx: PluginInput;
6
- sessionStateStore: SessionStateStore;
7
- backgroundManager?: BackgroundManager;
8
- skipAgents?: string[];
9
- isContinuationStopped?: (sessionID: string) => boolean;
10
- }): (input: {
11
- event: {
12
- type: string;
13
- properties?: unknown;
14
- };
15
- }) => Promise<void>;
@@ -1,11 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { SessionStateStore } from "./session-state";
4
- export declare function handleSessionIdle(args: {
5
- ctx: PluginInput;
6
- sessionID: string;
7
- sessionStateStore: SessionStateStore;
8
- backgroundManager?: BackgroundManager;
9
- skipAgents?: string[];
10
- isContinuationStopped?: (sessionID: string) => boolean;
11
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { TodoContinuationEnforcer, TodoContinuationEnforcerOptions } from "./types";
3
- export type { TodoContinuationEnforcer, TodoContinuationEnforcerOptions } from "./types";
4
- export declare function createTodoContinuationEnforcer(ctx: PluginInput, options?: TodoContinuationEnforcerOptions): TodoContinuationEnforcer;
@@ -1 +0,0 @@
1
- export { getMessageDir } from "../../shared/opencode-message-dir";
@@ -1,6 +0,0 @@
1
- import type { SessionStateStore } from "./session-state";
2
- export declare function handleNonIdleEvent(args: {
3
- eventType: string;
4
- properties: Record<string, unknown> | undefined;
5
- sessionStateStore: SessionStateStore;
6
- }): void;
@@ -1,10 +0,0 @@
1
- import type { SessionState } from "./types";
2
- export interface SessionStateStore {
3
- getState: (sessionID: string) => SessionState;
4
- getExistingState: (sessionID: string) => SessionState | undefined;
5
- cancelCountdown: (sessionID: string) => void;
6
- cleanup: (sessionID: string) => void;
7
- cancelAllCountdowns: () => void;
8
- shutdown: () => void;
9
- }
10
- export declare function createSessionStateStore(): SessionStateStore;
@@ -1,2 +0,0 @@
1
- import type { Todo } from "./types";
2
- export declare function getIncompleteCount(todos: Todo[]): number;
@@ -1,61 +0,0 @@
1
- import type { BackgroundManager } from "../../features/background-agent";
2
- import type { ToolPermission } from "../../features/hook-message-injector";
3
- export interface TodoContinuationEnforcerOptions {
4
- backgroundManager?: BackgroundManager;
5
- skipAgents?: string[];
6
- isContinuationStopped?: (sessionID: string) => boolean;
7
- }
8
- export interface TodoContinuationEnforcer {
9
- handler: (input: {
10
- event: {
11
- type: string;
12
- properties?: unknown;
13
- };
14
- }) => Promise<void>;
15
- markRecovering: (sessionID: string) => void;
16
- markRecoveryComplete: (sessionID: string) => void;
17
- cancelAllCountdowns: () => void;
18
- isAwaitingUser: (sessionID: string) => boolean;
19
- }
20
- export interface Todo {
21
- content: string;
22
- status: string;
23
- priority: string;
24
- id?: string;
25
- }
26
- export interface SessionState {
27
- countdownTimer?: ReturnType<typeof setTimeout>;
28
- countdownInterval?: ReturnType<typeof setInterval>;
29
- isRecovering?: boolean;
30
- countdownStartedAt?: number;
31
- abortDetectedAt?: number;
32
- lastInjectedAt?: number;
33
- inFlight?: boolean;
34
- awaitingUser?: boolean;
35
- awaitingUserSince?: number;
36
- consecutiveFailures: number;
37
- }
38
- export interface MessageInfo {
39
- id?: string;
40
- role?: string;
41
- error?: {
42
- name?: string;
43
- data?: unknown;
44
- };
45
- agent?: string;
46
- model?: {
47
- providerID: string;
48
- modelID: string;
49
- };
50
- providerID?: string;
51
- modelID?: string;
52
- tools?: Record<string, ToolPermission>;
53
- }
54
- export interface ResolvedMessageInfo {
55
- agent?: string;
56
- model?: {
57
- providerID: string;
58
- modelID: string;
59
- };
60
- tools?: Record<string, ToolPermission>;
61
- }