@prevalentware/opencode-goal-plugin 0.1.43 → 0.1.44
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/server.js +18 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -3185,6 +3185,24 @@ async function setupV2(context) {
|
|
|
3185
3185
|
});
|
|
3186
3186
|
}
|
|
3187
3187
|
}));
|
|
3188
|
+
registrations.push(await context.session.hook("prompt", async (input) => {
|
|
3189
|
+
const pauseTemplate = goalStatusCommandTemplate("pause_goal");
|
|
3190
|
+
const resumeTemplate = goalStatusCommandTemplate("resume_goal");
|
|
3191
|
+
const template = input.prompt.text.startsWith(pauseTemplate) ? pauseTemplate : input.prompt.text.startsWith(resumeTemplate) ? resumeTemplate : null;
|
|
3192
|
+
if (!template)
|
|
3193
|
+
return;
|
|
3194
|
+
input.prompt.text = template;
|
|
3195
|
+
delete input.prompt.files;
|
|
3196
|
+
delete input.prompt.agents;
|
|
3197
|
+
delete input.prompt.skills;
|
|
3198
|
+
if (template !== pauseTemplate)
|
|
3199
|
+
return;
|
|
3200
|
+
const goal = await getGoal(input.sessionID);
|
|
3201
|
+
if (goal?.status === "active")
|
|
3202
|
+
await setGoalStatus(input.sessionID, "paused");
|
|
3203
|
+
cancelScheduledContinuation(input.sessionID);
|
|
3204
|
+
clearTurnWatchdog(input.sessionID);
|
|
3205
|
+
}));
|
|
3188
3206
|
}
|
|
3189
3207
|
registrations.push(await context.tool.transform((draft) => {
|
|
3190
3208
|
for (const tool of goalToolsV2(goalServices))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prevalentware/opencode-goal-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"description": "OpenCode goal plugin that adds Codex-style long-running goal mode, /goal commands, persistence, and TUI status for AI coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|