@comfanion/workflow 4.23.0 → 4.25.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.
package/package.json
CHANGED
package/src/build-info.json
CHANGED
|
@@ -128,22 +128,24 @@ export const FileIndexerPlugin: Plugin = async ({ directory }) => {
|
|
|
128
128
|
* Event handler for file events
|
|
129
129
|
*/
|
|
130
130
|
event: async ({ event }) => {
|
|
131
|
-
|
|
131
|
+
// Log ALL events with full data structure
|
|
132
|
+
const eventData = JSON.stringify(event.data || {}, null, 2).slice(0, 500)
|
|
133
|
+
console.log(`[file-indexer] 📨 Event: ${event.type}\n${eventData}`)
|
|
132
134
|
|
|
133
135
|
// file.edited - when agent edits a file via Edit tool
|
|
134
136
|
if (event.type === "file.edited") {
|
|
135
|
-
const filePath = event.data?.path || event.data?.filePath
|
|
137
|
+
const filePath = event.data?.path || event.data?.filePath || event.data?.file
|
|
138
|
+
console.log(`[file-indexer] 📝 file.edited detected, path: ${filePath}`)
|
|
136
139
|
if (filePath) {
|
|
137
|
-
console.log(`[file-indexer] 📝 file.edited: ${filePath}`)
|
|
138
140
|
queueFileForIndexing(filePath)
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
// file.watcher.updated - when file changes on disk (external or internal)
|
|
143
145
|
if (event.type === "file.watcher.updated") {
|
|
144
|
-
const filePath = event.data?.path || event.data?.filePath
|
|
146
|
+
const filePath = event.data?.path || event.data?.filePath || event.data?.file
|
|
147
|
+
console.log(`[file-indexer] 👁️ file.watcher.updated detected, path: ${filePath}`)
|
|
145
148
|
if (filePath) {
|
|
146
|
-
console.log(`[file-indexer] 👁️ file.watcher.updated: ${filePath}`)
|
|
147
149
|
queueFileForIndexing(filePath)
|
|
148
150
|
}
|
|
149
151
|
}
|
|
@@ -156,7 +158,9 @@ export const FileIndexerPlugin: Plugin = async ({ directory }) => {
|
|
|
156
158
|
const toolName = input.tool?.toLowerCase()
|
|
157
159
|
const filePath = input.args?.filePath
|
|
158
160
|
|
|
159
|
-
|
|
161
|
+
// Log full input structure
|
|
162
|
+
console.log(`[file-indexer] 🔧 tool.execute.after: ${toolName}, filePath: ${filePath}`)
|
|
163
|
+
console.log(`[file-indexer] 🔧 input.args: ${JSON.stringify(input.args || {}, null, 2).slice(0, 300)}`)
|
|
160
164
|
|
|
161
165
|
if ((toolName === "edit" || toolName === "write" || toolName === "patch") && filePath) {
|
|
162
166
|
console.log(`[file-indexer] 📝 Tool edited file: ${filePath}`)
|