@plannotator/opencode 0.4.2-beta.1 → 0.4.2-beta.3

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/index.js +10 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -909,15 +909,16 @@ Do NOT proceed with implementation until your plan is approved.
909
909
  body: { command: "agent_cycle" }
910
910
  });
911
911
  } catch {}
912
- setTimeout(async () => {
913
- try {
914
- await ctx.client.tui.appendPrompt({
915
- body: { text: "\u2713 Proceed with implementation" }
916
- });
917
- await ctx.client.tui.submitPrompt({});
918
- } catch {}
919
- }, 500);
920
- return `Plan approved! Switching to build mode. Please wait...
912
+ try {
913
+ await ctx.client.session.prompt({
914
+ path: { id: context.sessionID },
915
+ body: {
916
+ agent: "build",
917
+ parts: [{ type: "text", text: "Proceed with implementation" }]
918
+ }
919
+ });
920
+ } catch {}
921
+ return `Plan approved!
921
922
 
922
923
  Plan Summary: ${args.summary}`;
923
924
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plannotator/opencode",
3
- "version": "0.4.2-beta.1",
3
+ "version": "0.4.2-beta.3",
4
4
  "description": "Plannotator plugin for OpenCode - interactive plan review with visual annotation",
5
5
  "author": "backnotprop",
6
6
  "license": "BSL-1.1",