opencode-planpilot 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "opencode-planpilot",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Planpilot plugin for OpenCode",
5
5
  "type": "module",
6
+ "opencodeStudio": {
7
+ "manifest": "dist/studio.manifest.json"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "git+https://github.com/canxin121/opencode-planpilot.git"
@@ -21,12 +24,14 @@
21
24
  }
22
25
  },
23
26
  "files": [
27
+ "dist",
24
28
  "src",
25
29
  "docs",
26
30
  "README.md",
27
31
  "LICENSE"
28
32
  ],
29
33
  "scripts": {
34
+ "test": "bun test",
30
35
  "build": "tsup",
31
36
  "dev": "tsup --watch",
32
37
  "typecheck": "tsc -p tsconfig.json --noEmit",
package/src/command.ts CHANGED
@@ -125,8 +125,6 @@ async function handlePlan(
125
125
  context: { cwd: string | undefined },
126
126
  ) {
127
127
  switch (subcommand) {
128
- case "add":
129
- return { planIds: handlePlanAdd(app, args), shouldSync: true }
130
128
  case "add-tree":
131
129
  return { planIds: handlePlanAddTree(app, args), shouldSync: true }
132
130
  case "list":
@@ -212,17 +210,6 @@ async function handleGoal(app: PlanpilotApp, subcommand: string | undefined, arg
212
210
  }
213
211
  }
214
212
 
215
- function handlePlanAdd(app: PlanpilotApp, args: string[]): number[] {
216
- const [title, content] = args
217
- if (!title || content === undefined) {
218
- throw invalidInput("plan add requires <title> <content>")
219
- }
220
- ensureNonEmpty("plan content", content)
221
- const plan = app.addPlan({ title, content })
222
- log(`Created plan ID: ${plan.id}: ${plan.title}`)
223
- return [plan.id]
224
- }
225
-
226
213
  function handlePlanAddTree(app: PlanpilotApp, args: string[]): number[] {
227
214
  const [title, content, ...rest] = args
228
215
  if (!title || content === undefined) {