openagent-cli 1.0.7 → 1.0.9

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.
Binary file
package/bin/openagent.js CHANGED
@@ -1,29 +1,12 @@
1
1
  #!/usr/bin/env node
2
- const { spawn, execSync } = require("child_process")
2
+ const { spawn } = require("child_process")
3
3
  const path = require("path")
4
4
 
5
- const pkg = require("../package.json")
6
- const currentVersion = pkg.version
7
-
8
- const args = process.argv.slice(2)
9
- if (args.includes("--version") || args.includes("-v")) {
10
- console.log(currentVersion)
11
- process.exit(0)
12
- }
13
-
14
5
  const binDir = __dirname
15
6
  const exe = path.join(binDir, "open-agent.exe")
16
7
 
17
- const env = { ...process.env, OPENAGENT_NPM_VERSION: currentVersion }
18
- try {
19
- const latest = execSync("npm view openagent-cli version", { timeout: 3000, encoding: "utf-8" }).trim()
20
- if (latest && latest !== currentVersion) {
21
- env.OPENAGENT_UPDATE_AVAILABLE = latest
22
- }
23
- } catch {}
24
-
25
- const child = spawn(exe, args, { stdio: "inherit", env })
8
+ const child = spawn(exe, process.argv.slice(2), { stdio: "inherit" })
26
9
  child.on("exit", (code) => process.exit(code ?? 1))
27
10
 
28
11
  process.on("SIGINT", () => child.kill("SIGINT"))
29
- process.on("SIGTERM", () => child.kill("SIGTERM"))
12
+ process.on("SIGTERM", () => child.kill("SIGTERM"))
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "openagent-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "OpenAgent - AI coding agent. Run from any directory.",
5
- "bin": {
6
- "openagent": "bin/openagent.js"
7
- },
5
+ "bin": { "openagent": "./bin/openagent.js" },
8
6
  "license": "MIT"
9
7
  }