@comfanion/usethis_todo 0.1.16-dev.4 → 0.1.16-dev.6

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 (2) hide show
  1. package/index.ts +6 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -27,6 +27,10 @@ const UsethisTodoPlugin: Plugin = async ({ directory, client }) => {
27
27
  }
28
28
 
29
29
  return {
30
+ // Keep only the latest tool output for our TODO tools (context-efficient)
31
+ // Previous todo tool calls are replaced with [TODO pruned]
32
+ // DISABLED for now — lastToolCallId resets after reload, breaks pruning logic
33
+ /*
30
34
  "experimental.chat.messages.transform": async (_input: unknown, output: { messages: any[] }) => {
31
35
  const messages = output.messages || []
32
36
  const sessionID = messages[0]?.info?.sessionID
@@ -41,7 +45,7 @@ const UsethisTodoPlugin: Plugin = async ({ directory, client }) => {
41
45
  "usethis_todo_read",
42
46
  "usethis_todo_read_five",
43
47
  "usethis_todo_read_by_id",
44
- "todowrite",
48
+ // todowrite is NOT pruned — required for TUI rendering + sidebar sync
45
49
  ])
46
50
 
47
51
  // Collect all TODO-related tool parts
@@ -65,6 +69,7 @@ const UsethisTodoPlugin: Plugin = async ({ directory, client }) => {
65
69
  }
66
70
  }
67
71
  },
72
+ */
68
73
 
69
74
  tool: {
70
75
  // Our enhanced tools — AI uses these for graph/dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/usethis_todo",
3
- "version": "0.1.16-dev.4",
3
+ "version": "0.1.16-dev.6",
4
4
  "description": "OpenCode plugin: enhanced TODO tools (dual storage + dependency graph)",
5
5
  "type": "module",
6
6
  "main": "./index.ts",