opencode-drive 0.1.4 → 0.1.5

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 +1 -1
  2. package/src/cli/index.ts +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-drive",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "Drive real and simulated OpenCode instances",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/src/cli/index.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  import { NodeRuntime, NodeServices } from "@effect/platform-node"
3
3
  import { Effect, Option } from "effect"
4
4
  import { Command, Flag } from "effect/unstable/cli"
5
+ import packageJson from "../../package.json" with { type: "json" }
5
6
  import { api } from "./api.js"
6
7
  import { extractCommands } from "./parse.js"
7
8
  import { list } from "./list.js"
@@ -150,7 +151,7 @@ const root = Command.make("opencode-drive").pipe(
150
151
  ]),
151
152
  )
152
153
 
153
- Command.runWith(root, { version: "0.1.0" })(extracted.args).pipe(
154
+ Command.runWith(root, { version: packageJson.version })(extracted.args).pipe(
154
155
  Effect.provide(NodeServices.layer),
155
156
  NodeRuntime.runMain,
156
157
  )