@fanchao8609/agent_brain_sync 0.3.1 → 0.4.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 +1 -1
- package/src/install.js +1 -1
package/package.json
CHANGED
package/src/install.js
CHANGED
|
@@ -270,7 +270,7 @@ const server = async ({ client, directory }) => {
|
|
|
270
270
|
const pad = (n) => String(n).padStart(2, "0")
|
|
271
271
|
const stamp = d.getFullYear() + "-" + pad(d.getMonth() + 1) + "-" + pad(d.getDate()) + " " + pad(d.getHours()) + ":" + pad(d.getMinutes()) + ":" + pad(d.getSeconds())
|
|
272
272
|
await mkdir(dir, { recursive: true })
|
|
273
|
-
await appendFile(join(dir, "hooks.log"), "[" + stamp + "]
|
|
273
|
+
await appendFile(join(dir, "hooks.log"), "[" + stamp + "] opencode:" + evt + "\\n")
|
|
274
274
|
} catch {} // fire-and-forget: 永不阻塞宿主
|
|
275
275
|
}
|
|
276
276
|
|