codiedev 0.9.61 → 0.9.62

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/dist/utils.js +5 -1
  2. package/package.json +2 -2
package/dist/utils.js CHANGED
@@ -1144,7 +1144,11 @@ function installOpenCodeCapturePlugin() {
1144
1144
  ` const prompt = Array.isArray(output?.parts) ? output.parts.filter((part) => part?.type === "text").map((part) => part.text || "").join("\\n") : "";\n` +
1145
1145
  ` const decision = invokeSync(PROMPT, { session_id: id, cwd, prompt });\n` +
1146
1146
  ` const context = decision?.hookSpecificOutput?.additionalContext;\n` +
1147
- ` if (context && Array.isArray(output?.parts)) output.parts.push({ type: "text", text: context });\n` +
1147
+ ` if (context && Array.isArray(output?.parts)) {\n` +
1148
+ ` // Preserve the native part IDs required by current engine schemas.\n` +
1149
+ ` const part = output.parts.find((part) => part?.type === "text" && typeof part.text === "string");\n` +
1150
+ ` if (part) part.text += "\\n\\n" + context;\n` +
1151
+ ` }\n` +
1148
1152
  ` },\n` +
1149
1153
  ` event: async ({ event }) => {\n` +
1150
1154
  ` const id = sessionId(event);\n` +
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codiedev",
3
- "version": "0.9.61",
4
- "description": "Connect Claude Code, Codex, Cursor, OpenCode, or VS Code Copilot to Codiedev for team session capture and artifact collaboration \u2014 and run the governed Codie harness",
3
+ "version": "0.9.62",
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",
7
7
  "codiedev-hook": "dist/hook.js",