@ship-cli/opencode 0.2.0 → 0.2.2

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/package.json +3 -3
  2. package/src/plugin.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ship-cli/opencode",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Ship - Linear task management integration",
6
6
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "prepare": "effect-language-service patch --module typescript"
41
41
  },
42
42
  "dependencies": {
43
- "@opencode-ai/plugin": "^1.0.210",
44
- "@opencode-ai/sdk": "^1.0.210",
43
+ "@opencode-ai/plugin": "^1.1.2",
44
+ "@opencode-ai/sdk": "^1.1.2",
45
45
  "effect": "^3.19.14"
46
46
  },
47
47
  "devDependencies": {
package/src/plugin.ts CHANGED
@@ -374,8 +374,8 @@ const ShellService = Context.GenericTag<ShellService>("ShellService");
374
374
  */
375
375
  const makeShellService = (_$: BunShell, defaultCwd?: string): ShellService => {
376
376
  const getCommand = (): string[] => {
377
- if (process.env.NODE_ENV === "development") {
378
- // Use node with tsx loader directly to avoid pnpm re-escaping arguments with newlines
377
+ // Use SHIP_DEV_MODE for explicit dev mode opt-in (avoids NODE_ENV conflicts)
378
+ if (process.env.SHIP_DEV_MODE === "true") {
379
379
  return ["node", "--import=tsx", "packages/cli/src/bin.ts"];
380
380
  }
381
381
  return ["ship"];
@@ -912,8 +912,8 @@ const makeShipService = Effect.gen(function* () {
912
912
  };
913
913
  }
914
914
 
915
- // Build command
916
- const cmd = process.env.NODE_ENV === "development" ? ["pnpm", "ship"] : ["ship"];
915
+ // Build command - use pnpm in dev mode (SHIP_DEV_MODE=true)
916
+ const cmd = process.env.SHIP_DEV_MODE === "true" ? ["pnpm", "ship"] : ["ship"];
917
917
  const args = [...cmd, "webhook", "forward"];
918
918
  if (events) {
919
919
  args.push("--events", events);