codiedev 0.9.62 → 0.9.63
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/dist/utils.js +8 -4
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -1097,7 +1097,7 @@ function installOpenCodeCapturePlugin() {
|
|
|
1097
1097
|
const prompt = resolveHookInvocation("discover-codie");
|
|
1098
1098
|
const source = `// Managed by codiedev connect. Safe to remove and reinstall.\n` +
|
|
1099
1099
|
`import { spawn, spawnSync } from "node:child_process";\n` +
|
|
1100
|
-
`import {
|
|
1100
|
+
`import { mkdirSync, writeFileSync, renameSync } from "node:fs";\n` +
|
|
1101
1101
|
`import os from "node:os";\n` +
|
|
1102
1102
|
`import path from "node:path";\n\n` +
|
|
1103
1103
|
`const START = ${JSON.stringify(start)};\n` +
|
|
@@ -1173,13 +1173,17 @@ function installOpenCodeCapturePlugin() {
|
|
|
1173
1173
|
` const last = list.at(-1);\n` +
|
|
1174
1174
|
` const fingerprint = String(list.length) + ":" + String(last?.info?.id ?? last?.info?.time?.completed ?? "");\n` +
|
|
1175
1175
|
` if (fingerprints.get(id) === fingerprint) return;\n` +
|
|
1176
|
-
` fingerprints.set(id, fingerprint);\n` +
|
|
1177
1176
|
` const captureDir = path.join(os.homedir(), ".codiedev", "opencode-captures");\n` +
|
|
1178
|
-
`
|
|
1177
|
+
` mkdirSync(captureDir, { recursive: true, mode: 0o700 });\n` +
|
|
1179
1178
|
` const safeId = String(id).replace(/[^a-zA-Z0-9._-]/g, "_");\n` +
|
|
1180
1179
|
` const transcriptPath = path.join(captureDir, safeId + ".json");\n` +
|
|
1181
|
-
`
|
|
1180
|
+
` // The engine may exit as soon as it emits idle. Publish the complete\n` +
|
|
1181
|
+
` // transcript synchronously so exit finalization never sees a partial file.\n` +
|
|
1182
|
+
` const temporaryPath = transcriptPath + "." + process.pid + ".tmp";\n` +
|
|
1183
|
+
` writeFileSync(temporaryPath, JSON.stringify(list), { mode: 0o600 });\n` +
|
|
1184
|
+
` renameSync(temporaryPath, transcriptPath);\n` +
|
|
1182
1185
|
` transcriptPaths.set(id, transcriptPath);\n` +
|
|
1186
|
+
` fingerprints.set(id, fingerprint);\n` +
|
|
1183
1187
|
` dispatch(CAPTURE, { session_id: id, transcript_path: transcriptPath, cwd, workspace_roots: [cwd], launch: LAUNCH });\n` +
|
|
1184
1188
|
` } catch {}\n` +
|
|
1185
1189
|
` },\n` +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codiedev",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.63",
|
|
4
4
|
"description": "Connect Claude Code, Codex, Cursor, OpenCode, or VS Code Copilot to Codiedev for team session capture and artifact collaboration — and run the governed Codie harness",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codiedev": "dist/cli.js",
|