pi-opencode-cli-bridge 0.2.3 → 0.2.4

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/package.json +1 -1
  2. package/src/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-opencode-cli-bridge",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Bridge the OpenCode CLI into Pi Coding Agent",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/index.ts CHANGED
@@ -1413,6 +1413,14 @@ async function createTempAgentDir(): Promise<string> {
1413
1413
  const pluginsDir = join(configDir, "plugins");
1414
1414
  await mkdir(agentsDir, { recursive: true });
1415
1415
  await mkdir(pluginsDir, { recursive: true });
1416
+ // `opencode run` streams an OpenCode compaction summary as reply text, where
1417
+ // its quoted markers break the turn. Pi owns compaction, so overflow must
1418
+ // surface as an error instead.
1419
+ await writeFile(
1420
+ join(configDir, "opencode.json"),
1421
+ JSON.stringify({ compaction: { auto: false } }),
1422
+ "utf8",
1423
+ );
1416
1424
  await writeFile(
1417
1425
  join(agentsDir, `${AGENT_ID}.md`),
1418
1426
  `---