@plannotator/opencode 0.6.5 → 0.6.6-beta.1
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 -20
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2798,27 +2798,17 @@ var PlannotatorPlugin = async (ctx) => {
|
|
|
2798
2798
|
return process.env.PLANNOTATOR_SHARE !== "disabled";
|
|
2799
2799
|
}
|
|
2800
2800
|
return {
|
|
2801
|
-
"
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2801
|
+
"chat.message": async (input, output) => {
|
|
2802
|
+
if (input.agent === "plan" && input.sessionID && input.messageID) {
|
|
2803
|
+
output.parts.unshift({
|
|
2804
|
+
id: `plannotator-${Date.now()}`,
|
|
2805
|
+
sessionID: input.sessionID,
|
|
2806
|
+
messageID: input.messageID,
|
|
2807
|
+
type: "text",
|
|
2808
|
+
text: `[Reminder: When your plan is complete, call \`submit_plan\` for interactive user review. Do not proceed with implementation until the plan is approved.]`,
|
|
2809
|
+
synthetic: true
|
|
2810
|
+
});
|
|
2806
2811
|
}
|
|
2807
|
-
output.system.push(`
|
|
2808
|
-
## Plan Submission
|
|
2809
|
-
|
|
2810
|
-
When you have completed your plan, you MUST call the \`submit_plan\` tool to submit it for user review.
|
|
2811
|
-
The user will be able to:
|
|
2812
|
-
- Review your plan visually in a dedicated UI
|
|
2813
|
-
- Annotate specific sections with feedback
|
|
2814
|
-
- Approve the plan to proceed with implementation
|
|
2815
|
-
- Request changes with detailed feedback
|
|
2816
|
-
|
|
2817
|
-
If your plan is rejected, you will receive the user's annotated feedback. Revise your plan
|
|
2818
|
-
based on their feedback and call submit_plan again.
|
|
2819
|
-
|
|
2820
|
-
Do NOT proceed with implementation until your plan is approved.
|
|
2821
|
-
`);
|
|
2822
2812
|
},
|
|
2823
2813
|
event: async ({ event }) => {
|
|
2824
2814
|
const isCommandEvent = event.type === "command.executed" || event.type === "tui.command.execute";
|
|
@@ -2879,6 +2869,10 @@ Please address this feedback.`
|
|
|
2879
2869
|
summary: tool.schema.string().describe("A brief 1-2 sentence summary of what the plan accomplishes")
|
|
2880
2870
|
},
|
|
2881
2871
|
async execute(args, context) {
|
|
2872
|
+
const subAgents = ["general", "explore"];
|
|
2873
|
+
if (subAgents.includes(context.agent)) {
|
|
2874
|
+
return `The submit_plan tool is only available to primary agents (plan, build). Sub-agents cannot submit plans directly.`;
|
|
2875
|
+
}
|
|
2882
2876
|
const server = await startPlannotatorServer({
|
|
2883
2877
|
plan: args.plan,
|
|
2884
2878
|
origin: "opencode",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plannotator/opencode",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6-beta.1",
|
|
4
4
|
"description": "Plannotator plugin for OpenCode - interactive plan review with visual annotation",
|
|
5
5
|
"author": "backnotprop",
|
|
6
6
|
"license": "BSL-1.1",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"prepublishOnly": "bun run build"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@opencode-ai/plugin": "^1.
|
|
38
|
+
"@opencode-ai/plugin": "^1.1.10"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"bun": ">=1.0.0"
|