@comfanion/usethis_todo 0.1.16-dev.10 → 0.1.16-dev.12

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 +0 -34
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -106,40 +106,6 @@ const UsethisTodoPlugin: Plugin = async ({ directory, client }) => {
106
106
  output.title = "Task details"
107
107
  }
108
108
  },
109
- },
110
- },
111
-
112
- // Set nicer titles in TUI + track prune state
113
- "tool.execute.after": async (input, output) => {
114
- const ourTools = new Set(["usethis_todo_write", "usethis_todo_read", "usethis_todo_read_five", "usethis_todo_read_by_id", "todowrite"])
115
- if (!ourTools.has(input.tool)) return
116
-
117
- // Update prune state with latest call ID (only for our custom tools, not todowrite)
118
- if (input.tool.startsWith("usethis_todo_")) {
119
- const sessionID = input.sessionID
120
- if (sessionID) {
121
- const state = pruneStates.get(sessionID) || { lastToolCallId: null }
122
- state.lastToolCallId = input.callID
123
- pruneStates.set(sessionID, state)
124
- }
125
- }
126
-
127
- const out = output.output || ""
128
-
129
- // Set a nicer title in TUI
130
- if (input.tool === "usethis_todo_write") {
131
- const match = out.match(/\[(\d+)\/(\d+) done/)
132
- output.title = match ? `TODO: ${match[2]} tasks` : "TODO updated"
133
- } else if (input.tool === "usethis_todo_read") {
134
- const match = out.match(/\[(\d+)\/(\d+) done, (\d+) in progress\]/)
135
- output.title = match ? `TODO [${match[1]}/${match[2]} done]` : "TODO list"
136
- } else if (input.tool === "usethis_todo_read_five") {
137
- output.title = "Next 5 tasks"
138
- } else if (input.tool === "usethis_todo_read_by_id") {
139
- output.title = "Task details"
140
- }
141
- // Don't touch todowrite title — let TUI handle it natively
142
- },
143
109
  }
144
110
  }
145
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/usethis_todo",
3
- "version": "0.1.16-dev.10",
3
+ "version": "0.1.16-dev.12",
4
4
  "description": "OpenCode plugin: enhanced TODO tools (dual storage + dependency graph)",
5
5
  "type": "module",
6
6
  "main": "./index.ts",