@prevalentware/opencode-goal-plugin 0.1.59 → 0.1.61

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/README.md CHANGED
@@ -12,7 +12,7 @@ Links:
12
12
 
13
13
  - npm package: [`@prevalentware/opencode-goal-plugin`](https://www.npmjs.com/package/@prevalentware/opencode-goal-plugin)
14
14
  - GitHub repository: [`prevalentWare/opencode-goal-plugin`](https://github.com/prevalentWare/opencode-goal-plugin)
15
- - OpenCode plugin command: `opencode plugin @prevalentware/opencode-goal-plugin`
15
+ - OpenCode 1 global install: `opencode plugin -g @prevalentware/opencode-goal-plugin`
16
16
 
17
17
  The OpenCode Goal Plugin adds:
18
18
 
@@ -49,19 +49,23 @@ Do not mix the configuration formats. OpenCode 1 uses `plugin` and `tui.json`; O
49
49
 
50
50
  ### OpenCode 1 Stable
51
51
 
52
- Install for the current project:
52
+ For goal mode across your projects, install globally:
53
53
 
54
54
  ```bash
55
- opencode plugin @prevalentware/opencode-goal-plugin
55
+ opencode plugin -g @prevalentware/opencode-goal-plugin
56
56
  ```
57
57
 
58
- Install globally:
58
+ The global install registers the plugin in your user configuration and avoids creating a project-local `.opencode/`
59
+ directory for its dependencies.
60
+
61
+ If you want the plugin only in the current project, install it from that project's directory instead:
59
62
 
60
63
  ```bash
61
- opencode plugin -g @prevalentware/opencode-goal-plugin
64
+ opencode plugin @prevalentware/opencode-goal-plugin
62
65
  ```
63
66
 
64
- OpenCode detects both package entrypoints and writes the plugin into the server and TUI config targets.
67
+ The project install can create `.opencode/` with plugin dependencies in your workspace. OpenCode detects both package
68
+ entrypoints and writes the plugin into the corresponding server and TUI config targets.
65
69
 
66
70
  For manual installation, add the package to both V1 config files.
67
71
 
package/dist/server.js CHANGED
@@ -3004,6 +3004,13 @@ var planToolArgs = {
3004
3004
  revisit_evidence: z2.string().trim().min(1).max(2000).optional()
3005
3005
  };
3006
3006
  var PlanToolSchema = z2.object(planToolArgs).strict();
3007
+ var planToolInputSchema = z2.toJSONSchema(PlanToolSchema, {
3008
+ io: "input",
3009
+ unrepresentable: "any"
3010
+ });
3011
+ function planToolInput() {
3012
+ return JSON.parse(JSON.stringify(planToolInputSchema));
3013
+ }
3007
3014
  async function planFromTool(args, context) {
3008
3015
  const input = PlanToolSchema.parse(args);
3009
3016
  return JSON.stringify({
@@ -4948,7 +4955,7 @@ function goalToolsV2(services) {
4948
4955
  {
4949
4956
  name: "update_goal_plan",
4950
4957
  description: services.locale === "zh-CN" ? "\u4FDD\u5B58\u76EE\u6807\u7684\u6574\u4F53\u8BA1\u5212\u3001\u9636\u6BB5\u3001\u4EFB\u52A1\u548C\u9A8C\u8BC1\u8BC1\u636E\u3002\u4FDD\u6301\u6574\u4F53\u76EE\u6807\u4E0D\u53D8\uFF1B\u4F7F\u7528 get_goal \u8FD4\u56DE\u7684\u76EE\u6807 ID \u548C\u8BA1\u5212\u7248\u672C\u3002" : "Persist the overall plan, phases, tasks, verification evidence and decisions. Preserve the goal scope; use the goal ID and planRevision from get_goal. Completed work cannot be silently reopened or removed.",
4951
- input: v2ObjectSchema(planToolArgs),
4958
+ input: planToolInput(),
4952
4959
  options: { codemode: false },
4953
4960
  execute: async (args, context) => ({ content: await planFromTool(args, context) })
4954
4961
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prevalentware/opencode-goal-plugin",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
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",