@prevalentware/opencode-goal-plugin 0.1.61 → 0.1.62
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 +8 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4865,15 +4865,19 @@ async function setupV2(context) {
|
|
|
4865
4865
|
cancelScheduledContinuation(sessionID);
|
|
4866
4866
|
}
|
|
4867
4867
|
}));
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
if (
|
|
4868
|
+
const reminder = systemReminder(locale);
|
|
4869
|
+
const ensureSystemReminder = (system) => {
|
|
4870
|
+
if (system.some((part) => part.type === "text" && part.text.includes(reminder)))
|
|
4871
4871
|
return;
|
|
4872
|
-
|
|
4872
|
+
system.push({ type: "text", text: reminder });
|
|
4873
|
+
};
|
|
4874
|
+
registrations.push(await context.session.hook("context", (sessionContext) => {
|
|
4875
|
+
ensureSystemReminder(sessionContext.system);
|
|
4873
4876
|
}));
|
|
4874
4877
|
try {
|
|
4875
4878
|
const hookCompaction = context.session.hook;
|
|
4876
4879
|
registrations.push(await hookCompaction("compaction", async (event) => {
|
|
4880
|
+
ensureSystemReminder(event.system);
|
|
4877
4881
|
const goal = await getGoal(event.sessionID);
|
|
4878
4882
|
if (!goal)
|
|
4879
4883
|
return;
|
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.62",
|
|
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",
|