opencode-matrixx 2.6.0 → 2.6.1
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 +3 -0
- package/dist/cli/doctor/checks/context-mode.d.ts +2 -0
- package/dist/cli/doctor/checks/dcp.d.ts +2 -0
- package/dist/cli/doctor/checks/docker.d.ts +2 -0
- package/dist/cli/doctor/checks/headroom.d.ts +2 -0
- package/dist/cli/doctor/checks/helpers.d.ts +2 -0
- package/dist/cli/doctor/checks/index.d.ts +6 -0
- package/dist/cli/doctor/checks/rtk.d.ts +2 -0
- package/dist/cli/doctor/checks/tmux.d.ts +2 -0
- package/dist/cli/doctor/types.d.ts +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/setup/config-writer.d.ts +12 -0
- package/dist/cli/setup/config-writer.test.d.ts +1 -0
- package/dist/cli/setup/constants.d.ts +8 -0
- package/dist/cli/setup/deps.d.ts +8 -0
- package/dist/cli/setup/deps.test.d.ts +1 -0
- package/dist/cli/setup/index.d.ts +8 -0
- package/dist/cli/setup/index.test.d.ts +1 -0
- package/dist/cli/setup/opencode-sync.d.ts +9 -0
- package/dist/cli/setup/opencode-sync.test.d.ts +1 -0
- package/dist/cli/setup/prompts.d.ts +4 -0
- package/dist/cli/setup/prompts.test.d.ts +1 -0
- package/dist/cli/setup/types.d.ts +26 -0
- package/dist/cli.js +18719 -663
- package/dist/config/schema/experimental.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +2 -2
- package/dist/config/schema/matrixx-config.d.ts +7 -3
- package/dist/config/schema/morpheus.d.ts +8 -0
- package/dist/create-hooks.d.ts +2 -2
- package/dist/features/builtin-commands/templates/cleanup-tasks.d.ts +1 -0
- package/dist/features/builtin-commands/templates/task-list.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/task-storage/storage.d.ts +12 -2
- package/dist/features/task-storage/types.d.ts +1 -0
- package/dist/hooks/compaction-todo-preserver/hook.d.ts +13 -0
- package/dist/hooks/compaction-todo-preserver/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +4 -0
- package/dist/hooks/task-continuation-enforcer/constants.d.ts +10 -0
- package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +12 -0
- package/dist/hooks/task-continuation-enforcer/countdown.d.ts +14 -0
- package/dist/hooks/task-continuation-enforcer/handler.d.ts +16 -0
- package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +11 -0
- package/dist/hooks/task-continuation-enforcer/index.d.ts +6 -0
- package/dist/hooks/task-continuation-enforcer/message-directory.d.ts +1 -0
- package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +6 -0
- package/dist/hooks/task-continuation-enforcer/session-state.d.ts +10 -0
- package/dist/hooks/task-continuation-enforcer/todo.d.ts +5 -0
- package/dist/hooks/task-continuation-enforcer/types.d.ts +60 -0
- package/dist/hooks/task-edit-guard/constants.d.ts +2 -0
- package/dist/hooks/task-edit-guard/hook.d.ts +2 -0
- package/dist/hooks/task-edit-guard/index.d.ts +2 -0
- package/dist/index.js +1445 -820
- package/dist/matrixx.schema.json +16 -3
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -2
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -3
- package/dist/shared/system-directive.d.ts +1 -0
- package/dist/shared/task-system-gating.d.ts +3 -0
- package/dist/shared/task-system-gating.test.d.ts +1 -0
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/task/index.d.ts +1 -1
- package/dist/tools/task/task-cleanup.d.ts +4 -0
- package/dist/tools/task/task-cleanup.test.d.ts +1 -0
- package/dist/tools/task/task-get.d.ts +2 -1
- package/dist/tools/task/task-list.d.ts +2 -1
- package/dist/tools/task/types.d.ts +2 -0
- package/package.json +3 -2
- package/dist/hooks/task-todo-mirror/constants.d.ts +0 -3
- package/dist/hooks/task-todo-mirror/hook.d.ts +0 -43
- package/dist/hooks/task-todo-mirror/index.d.ts +0 -2
- package/dist/hooks/todo-description-override/description.d.ts +0 -1
- package/dist/hooks/todo-description-override/hook.d.ts +0 -8
- package/dist/hooks/todo-description-override/index.d.ts +0 -1
- package/dist/tools/task/todo-sync.d.ts +0 -16
package/dist/matrixx.schema.json
CHANGED
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"items": {
|
|
107
107
|
"type": "string",
|
|
108
108
|
"enum": [
|
|
109
|
+
"task-continuation-enforcer",
|
|
109
110
|
"todo-continuation-enforcer",
|
|
110
111
|
"context-window-monitor",
|
|
111
112
|
"session-recovery",
|
|
@@ -153,7 +154,6 @@
|
|
|
153
154
|
"env-file-write-guard",
|
|
154
155
|
"json-error-recovery",
|
|
155
156
|
"bash-file-read-guard",
|
|
156
|
-
"todo-description-override",
|
|
157
157
|
"runtime-fallback",
|
|
158
158
|
"read-image-resizer",
|
|
159
159
|
"webfetch-redirect-guard",
|
|
@@ -161,14 +161,14 @@
|
|
|
161
161
|
"tool-pair-validator",
|
|
162
162
|
"quality-gate",
|
|
163
163
|
"task-notepad",
|
|
164
|
-
"task-todo-mirror",
|
|
165
164
|
"design-intent-preserver",
|
|
166
165
|
"rtk-bash-rewriter",
|
|
167
166
|
"mcp-startup-notification",
|
|
168
167
|
"evolution-watcher",
|
|
169
168
|
"evolution-compressor",
|
|
170
169
|
"evolution-quality-gate",
|
|
171
|
-
"evolution-hitl"
|
|
170
|
+
"evolution-hitl",
|
|
171
|
+
"task-edit-guard"
|
|
172
172
|
]
|
|
173
173
|
}
|
|
174
174
|
},
|
|
@@ -4063,6 +4063,7 @@
|
|
|
4063
4063
|
"type": "boolean"
|
|
4064
4064
|
},
|
|
4065
4065
|
"task_system": {
|
|
4066
|
+
"default": true,
|
|
4066
4067
|
"type": "boolean"
|
|
4067
4068
|
},
|
|
4068
4069
|
"plugin_load_timeout_ms": {
|
|
@@ -4076,6 +4077,9 @@
|
|
|
4076
4077
|
"type": "boolean"
|
|
4077
4078
|
}
|
|
4078
4079
|
},
|
|
4080
|
+
"required": [
|
|
4081
|
+
"task_system"
|
|
4082
|
+
],
|
|
4079
4083
|
"additionalProperties": false
|
|
4080
4084
|
},
|
|
4081
4085
|
"dcp": {
|
|
@@ -4894,6 +4898,15 @@
|
|
|
4894
4898
|
"claude_code_compat": {
|
|
4895
4899
|
"default": false,
|
|
4896
4900
|
"type": "boolean"
|
|
4901
|
+
},
|
|
4902
|
+
"scope": {
|
|
4903
|
+
"description": "Task storage scope: project → .matrixx/tasks per project (default), global → ~/.config/opencode/tasks/{listId}",
|
|
4904
|
+
"default": "project",
|
|
4905
|
+
"type": "string",
|
|
4906
|
+
"enum": [
|
|
4907
|
+
"global",
|
|
4908
|
+
"project"
|
|
4909
|
+
]
|
|
4897
4910
|
}
|
|
4898
4911
|
},
|
|
4899
4912
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
import { createArchitectHook, createBackgroundNotificationHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createEvolutionCompressorHook, createEvolutionHitlHook, createPlanPersister, createStopContinuationGuardHook, createTodoContinuationEnforcer } from "../../hooks";
|
|
3
|
+
import { createArchitectHook, createBackgroundNotificationHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createEvolutionCompressorHook, createEvolutionHitlHook, createPlanPersister, createStopContinuationGuardHook, createTaskContinuationEnforcer, createTodoContinuationEnforcer } from "../../hooks";
|
|
4
4
|
import type { PluginContext } from "../types";
|
|
5
5
|
import { createUnstableAgentBabysitter } from "../unstable-agent-babysitter";
|
|
6
6
|
export type ContinuationHooks = {
|
|
@@ -8,6 +8,7 @@ export type ContinuationHooks = {
|
|
|
8
8
|
compactionContextInjector: ReturnType<typeof createCompactionContextInjector> | null;
|
|
9
9
|
compactionTodoPreserver: ReturnType<typeof createCompactionTodoPreserverHook> | null;
|
|
10
10
|
todoContinuationEnforcer: ReturnType<typeof createTodoContinuationEnforcer> | null;
|
|
11
|
+
taskContinuationEnforcer: ReturnType<typeof createTaskContinuationEnforcer> | null;
|
|
11
12
|
unstableAgentBabysitter: ReturnType<typeof createUnstableAgentBabysitter> | null;
|
|
12
13
|
backgroundNotificationHook: ReturnType<typeof createBackgroundNotificationHook> | null;
|
|
13
14
|
architectHook: ReturnType<typeof createArchitectHook> | null;
|
|
@@ -25,14 +25,13 @@ export declare function createCoreHooks(args: {
|
|
|
25
25
|
envFileWriteGuard: ReturnType<typeof import("../../hooks").createEnvFileWriteGuardHook> | null;
|
|
26
26
|
jsonErrorRecovery: ReturnType<typeof import("../../hooks").createJsonErrorRecoveryHook> | null;
|
|
27
27
|
bashFileReadGuard: ReturnType<typeof import("../../hooks").createBashFileReadGuardHook> | null;
|
|
28
|
-
todoDescriptionOverride: ReturnType<typeof import("../../hooks").createTodoDescriptionOverrideHook> | null;
|
|
29
28
|
readImageResizer: ReturnType<typeof import("../../hooks").createReadImageResizerHook> | null;
|
|
30
29
|
webfetchRedirectGuard: ReturnType<typeof import("../../hooks").createWebFetchRedirectGuardHook> | null;
|
|
31
30
|
hashlineEditDiffEnhancer: ReturnType<typeof import("../../hooks").createHashlineEditDiffEnhancerHook> | null;
|
|
32
31
|
qualityGate: ReturnType<typeof import("../../hooks").createQualityGateHook> | null;
|
|
33
32
|
taskNotepad: ReturnType<typeof import("../../hooks").createTaskNotepadHook> | null;
|
|
33
|
+
taskEditGuard: ReturnType<typeof import("../../hooks").createTaskEditGuardHook> | null;
|
|
34
34
|
evolutionWatcher: ReturnType<typeof import("../../hooks").createEvolutionWatcherHook> | null;
|
|
35
|
-
taskTodoMirror: ReturnType<typeof import("../../hooks").createTaskTodoMirrorHook> | null;
|
|
36
35
|
contextWindowMonitor: ReturnType<typeof import("../../hooks").createContextWindowMonitorHook> | null;
|
|
37
36
|
preemptiveCompaction: ReturnType<typeof import("../../hooks").createPreemptiveCompactionHook> | null;
|
|
38
37
|
sessionRecovery: ReturnType<typeof import("../../hooks").createSessionRecoveryHook> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
|
-
import { createBashFileReadGuardHook, createCommentCheckerHooks, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook,
|
|
2
|
+
import { createBashFileReadGuardHook, createCommentCheckerHooks, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskEditGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
4
|
export type ToolGuardHooks = {
|
|
5
5
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
@@ -15,14 +15,13 @@ export type ToolGuardHooks = {
|
|
|
15
15
|
envFileWriteGuard: ReturnType<typeof createEnvFileWriteGuardHook> | null;
|
|
16
16
|
jsonErrorRecovery: ReturnType<typeof createJsonErrorRecoveryHook> | null;
|
|
17
17
|
bashFileReadGuard: ReturnType<typeof createBashFileReadGuardHook> | null;
|
|
18
|
-
todoDescriptionOverride: ReturnType<typeof createTodoDescriptionOverrideHook> | null;
|
|
19
18
|
readImageResizer: ReturnType<typeof createReadImageResizerHook> | null;
|
|
20
19
|
webfetchRedirectGuard: ReturnType<typeof createWebFetchRedirectGuardHook> | null;
|
|
21
20
|
hashlineEditDiffEnhancer: ReturnType<typeof createHashlineEditDiffEnhancerHook> | null;
|
|
22
21
|
qualityGate: ReturnType<typeof createQualityGateHook> | null;
|
|
23
22
|
taskNotepad: ReturnType<typeof createTaskNotepadHook> | null;
|
|
23
|
+
taskEditGuard: ReturnType<typeof createTaskEditGuardHook> | null;
|
|
24
24
|
evolutionWatcher: ReturnType<typeof createEvolutionWatcherHook> | null;
|
|
25
|
-
taskTodoMirror: ReturnType<typeof createTaskTodoMirrorHook> | null;
|
|
26
25
|
};
|
|
27
26
|
export declare function createToolGuardHooks(args: {
|
|
28
27
|
ctx: PluginContext;
|
|
@@ -34,6 +34,7 @@ export declare function hasSystemReminder(text: string): boolean;
|
|
|
34
34
|
export declare function removeSystemReminders(text: string): string;
|
|
35
35
|
export declare const SystemDirectiveTypes: {
|
|
36
36
|
readonly TODO_CONTINUATION: "TODO CONTINUATION";
|
|
37
|
+
readonly TASK_CONTINUATION: "TASK CONTINUATION";
|
|
37
38
|
readonly MATRIX_LOOP: "MATRIX LOOP";
|
|
38
39
|
readonly MISSION_CONTINUATION: "MISSION CONTINUATION";
|
|
39
40
|
readonly DELEGATION_REQUIRED: "DELEGATION REQUIRED";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export { createDelegateAgent } from "./delegate-agent";
|
|
|
23
23
|
export { createDelegateTask } from "./delegate-task";
|
|
24
24
|
export { createHashlineEditTool } from "./hashline-edit";
|
|
25
25
|
export { createLookAt } from "./look-at";
|
|
26
|
-
export { createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
|
|
26
|
+
export { createTaskCleanupTool, createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
|
|
27
27
|
export declare function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition>;
|
|
28
28
|
export declare const builtinTools: Record<string, ToolDefinition>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { createTaskCleanupTool } from "./task-cleanup";
|
|
1
2
|
export { createTaskCreateTool } from "./task-create";
|
|
2
3
|
export { createTaskGetTool } from "./task-get";
|
|
3
4
|
export { createTaskList } from "./task-list";
|
|
4
5
|
export { createTaskUpdateTool } from "./task-update";
|
|
5
|
-
export type { TodoInfo } from "./todo-sync";
|
|
6
6
|
export type { TaskCreateInput, TaskDeleteInput, TaskGetInput, TaskListInput, TaskObject, TaskStatus, TaskUpdateInput } from "./types";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
3
|
+
import type { MatrixxConfig } from "../../config/schema";
|
|
4
|
+
export declare function createTaskCleanupTool(config: Partial<MatrixxConfig>, ctx?: PluginInput): ToolDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
1
2
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
3
|
import type { MatrixxConfig } from "../../config/schema";
|
|
3
|
-
export declare function createTaskGetTool(config: Partial<MatrixxConfig
|
|
4
|
+
export declare function createTaskGetTool(config: Partial<MatrixxConfig>, ctx?: PluginInput): ToolDefinition;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
1
2
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
2
3
|
import type { MatrixxConfig } from "../../config/schema";
|
|
3
|
-
export declare function createTaskList(config: Partial<MatrixxConfig
|
|
4
|
+
export declare function createTaskList(config: Partial<MatrixxConfig>, ctx?: PluginInput): ToolDefinition;
|
|
@@ -24,6 +24,7 @@ export declare const TaskObjectSchema: z.ZodObject<{
|
|
|
24
24
|
repoURL: z.ZodOptional<z.ZodString>;
|
|
25
25
|
parentID: z.ZodOptional<z.ZodString>;
|
|
26
26
|
threadID: z.ZodString;
|
|
27
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
27
28
|
}, z.core.$strict>;
|
|
28
29
|
export type TaskObject = z.infer<typeof TaskObjectSchema>;
|
|
29
30
|
export declare const TaskSchema: z.ZodObject<{
|
|
@@ -44,6 +45,7 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
44
45
|
repoURL: z.ZodOptional<z.ZodString>;
|
|
45
46
|
parentID: z.ZodOptional<z.ZodString>;
|
|
46
47
|
threadID: z.ZodString;
|
|
48
|
+
projectRoot: z.ZodOptional<z.ZodString>;
|
|
47
49
|
}, z.core.$strict>;
|
|
48
50
|
export type Task = TaskObject;
|
|
49
51
|
export declare const TaskCreateInputSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-matrixx",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "bun run build:plugin && bun run build:cli && tsc --emitDeclarationOnly && bun run build:schema",
|
|
24
|
-
"build:plugin": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external \"opencode/*\" --external \"@opencode-ai/core/*\"",
|
|
24
|
+
"build:plugin": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external \"opencode/*\" --external \"@opencode-ai/core/*\" --external effect --external \"effect/*\"",
|
|
25
25
|
"build:cli": "bun build src/cli/index.ts --outfile dist/cli.js --target bun --format esm && chmod +x dist/cli.js",
|
|
26
26
|
"build:schema": "bun run script/build-schema.ts",
|
|
27
27
|
"clean": "rm -rf dist",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@ast-grep/cli": "^0.40.0",
|
|
67
67
|
"@ast-grep/napi": "^0.40.0",
|
|
68
|
+
"@clack/prompts": "^1.7.0",
|
|
68
69
|
"@code-yeongyu/comment-checker": "^0.6.1",
|
|
69
70
|
"@cucumber/gherkin": "^34.0.0",
|
|
70
71
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { MatrixxConfig } from "../../config/schema";
|
|
3
|
-
type TodoSyncCtx = PluginInput;
|
|
4
|
-
export declare function createTaskTodoMirrorHook(ctx: TodoSyncCtx, pluginConfig: MatrixxConfig): {
|
|
5
|
-
"tool.execute.after": (input: {
|
|
6
|
-
tool: string;
|
|
7
|
-
sessionID: string;
|
|
8
|
-
callID: string;
|
|
9
|
-
}, _output: {
|
|
10
|
-
title: string;
|
|
11
|
-
output: string;
|
|
12
|
-
metadata: Record<string, unknown>;
|
|
13
|
-
} | undefined) => Promise<void>;
|
|
14
|
-
"chat.message": (input: {
|
|
15
|
-
sessionID: string;
|
|
16
|
-
agent?: string;
|
|
17
|
-
model?: {
|
|
18
|
-
providerID: string;
|
|
19
|
-
modelID: string;
|
|
20
|
-
};
|
|
21
|
-
}, _output: {
|
|
22
|
-
message: Record<string, unknown>;
|
|
23
|
-
parts: Array<{
|
|
24
|
-
type: string;
|
|
25
|
-
text?: string;
|
|
26
|
-
}>;
|
|
27
|
-
}) => Promise<void>;
|
|
28
|
-
"experimental.chat.messages.transform": (_input: Record<string, never>, output: {
|
|
29
|
-
messages: Array<{
|
|
30
|
-
info: {
|
|
31
|
-
sessionID?: string;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
}) => Promise<void>;
|
|
35
|
-
event: (input: {
|
|
36
|
-
event: {
|
|
37
|
-
type: string;
|
|
38
|
-
properties?: unknown;
|
|
39
|
-
};
|
|
40
|
-
}) => Promise<void>;
|
|
41
|
-
_syncForSession: (sessionID: string | undefined) => Promise<void>;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TODOWRITE_DESCRIPTION = "Manage your todo list with ATOMIC, single-responsibility items.\n\nRULES:\n- One todo = one specific, verifiable action (not \"Update everything\" or \"Fix issues\")\n- Each todo must be completable in isolation \u2014 no vague catch-alls\n- Todos must be nameable with a single precise phrase\n- Mark in_progress BEFORE starting work, completed IMMEDIATELY after finishing\n- Only ONE todo in_progress at a time\n\nANTI-PATTERNS (will be rejected by reviewers):\n- \"Update X and Y and Z\" \u2192 SPLIT into 3 separate todos\n- \"Fix issues\" \u2192 SPECIFY which file, function, or behavior\n- \"Refactor\" \u2192 SPECIFY what is being refactored and to what end\n- \"Improve\" \u2192 SPECIFY the measurable outcome\n\nSTATUS TRANSITIONS:\n pending \u2192 in_progress \u2192 completed\n pending \u2192 cancelled (if no longer needed)\n\nNever batch-complete todos. Mark each one complete the moment it is done.";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createTodoDescriptionOverrideHook } from "./hook";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { Task } from "../../features/task-storage/types";
|
|
3
|
-
export interface TodoInfo {
|
|
4
|
-
id?: string;
|
|
5
|
-
content: string;
|
|
6
|
-
status: "pending" | "in_progress" | "completed" | "cancelled";
|
|
7
|
-
priority?: "low" | "medium" | "high";
|
|
8
|
-
}
|
|
9
|
-
type TodoWriter = (input: {
|
|
10
|
-
sessionID: string;
|
|
11
|
-
todos: TodoInfo[];
|
|
12
|
-
}) => Promise<void>;
|
|
13
|
-
export declare function syncTaskToTodo(task: Task): TodoInfo | null;
|
|
14
|
-
export declare function syncTaskTodoUpdate(ctx: PluginInput | undefined, task: Task, sessionID: string, writer?: TodoWriter): Promise<void>;
|
|
15
|
-
export declare function syncAllTasksToTodos(ctx: PluginInput, tasks: Task[], sessionID?: string, writer?: TodoWriter): Promise<void>;
|
|
16
|
-
export {};
|