@prevalentware/opencode-goal-plugin 0.1.39 → 0.1.40

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/server.js +15 -5
  2. package/package.json +5 -5
package/dist/server.js CHANGED
@@ -2963,11 +2963,21 @@ async function setupV2(context) {
2963
2963
  }
2964
2964
  if (registerCommand) {
2965
2965
  registrations.push(await context.command.transform((draft) => {
2966
- if (draft.get(commandName))
2967
- return;
2968
- draft.update(commandName, (command) => {
2969
- command.description = "Set or view the long-running session goal";
2970
- command.template = goalCommandTemplate(commandName);
2966
+ draft.add({
2967
+ name: commandName,
2968
+ description: "Set or view the long-running session goal",
2969
+ execute: async (input) => {
2970
+ const stripMention = ({ mention: _mention, ...attachment }) => attachment;
2971
+ await context.session.prompt({
2972
+ ...input.prompt,
2973
+ files: input.prompt.files?.map(stripMention),
2974
+ agents: input.prompt.agents?.map(stripMention),
2975
+ skills: input.prompt.skills?.map(stripMention),
2976
+ sessionID: input.sessionID,
2977
+ text: goalCommandTemplate(commandName).replaceAll("$ARGUMENTS", () => input.prompt.text.trim()),
2978
+ delivery: input.delivery
2979
+ });
2980
+ }
2971
2981
  });
2972
2982
  }));
2973
2983
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prevalentware/opencode-goal-plugin",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
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",
@@ -55,16 +55,16 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@opencode-ai/plugin": "^1.17.1",
58
- "@opentui/solid": "^0.4.0",
58
+ "@opentui/solid": ">=0.4.0 <0.6.0",
59
59
  "effect": "^3.21.2",
60
60
  "solid-js": "1.9.12",
61
61
  "zod": "^4.1.8"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@eslint/js": "^10.0.1",
65
- "@opencode-ai/plugin-v2": "npm:@opencode-ai/plugin@0.0.0-next-17055",
66
- "@opencode-ai/theme": "0.0.0-next-17055",
67
- "@opentui/core": "^0.4.0",
65
+ "@opencode-ai/plugin-v2": "npm:@opencode-ai/plugin@0.0.0-beta-18593",
66
+ "@opencode-ai/theme": "0.0.0-beta-18593",
67
+ "@opentui/core": "0.5.9",
68
68
  "@types/bun": "^1.3.13",
69
69
  "eslint": "^10.3.0",
70
70
  "typescript": "^6.0.3",