@plannotator/opencode 0.4.2-beta.3 → 0.4.2-beta.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.
- package/dist/index.js +14 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -909,16 +909,20 @@ Do NOT proceed with implementation until your plan is approved.
|
|
|
909
909
|
body: { command: "agent_cycle" }
|
|
910
910
|
});
|
|
911
911
|
} catch {}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
912
|
+
const sessionID = context.sessionID;
|
|
913
|
+
setTimeout(async () => {
|
|
914
|
+
try {
|
|
915
|
+
await ctx.client.session.abort({ path: { id: sessionID } });
|
|
916
|
+
await ctx.client.session.prompt({
|
|
917
|
+
path: { id: sessionID },
|
|
918
|
+
body: {
|
|
919
|
+
agent: "build",
|
|
920
|
+
parts: [{ type: "text", text: "Proceed with implementation" }]
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
} catch {}
|
|
924
|
+
}, 100);
|
|
925
|
+
return `Plan approved! Switching to build mode...
|
|
922
926
|
|
|
923
927
|
Plan Summary: ${args.summary}`;
|
|
924
928
|
} else {
|
package/package.json
CHANGED