openwrk 0.1.1 → 0.1.3

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
@@ -9,6 +9,8 @@ npm install -g openwrk
9
9
  openwrk start --workspace /path/to/workspace --approval auto
10
10
  ```
11
11
 
12
+ `openwrk` ships as a compiled binary, so Bun is not required at runtime.
13
+
12
14
  `openwrk` installs the OpenWork server dependency automatically. No extra install needed.
13
15
 
14
16
  Or from source:
package/dist/cli.js CHANGED
@@ -297,6 +297,10 @@ async function resolveOpenworkServerBin(explicit) {
297
297
  try {
298
298
  const pkgPath = require.resolve("openwork-server/package.json");
299
299
  const pkgDir = dirname(pkgPath);
300
+ const binaryPath = join(pkgDir, "dist", "bin", "openwork-server");
301
+ if (await isExecutable(binaryPath)) {
302
+ return binaryPath;
303
+ }
300
304
  const cliPath = join(pkgDir, "dist", "cli.js");
301
305
  if (await isExecutable(cliPath)) {
302
306
  return cliPath;
Binary file
package/dist/openwrk ADDED
Binary file
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "openwrk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Headless OpenWork host orchestrator for OpenCode + OpenWork server + Owpenbot",
5
5
  "type": "module",
6
6
  "bin": {
7
- "openwrk": "dist/cli.js"
7
+ "openwrk": "dist/openwrk"
8
8
  },
9
9
  "scripts": {
10
10
  "dev": "bun src/cli.ts",
11
11
  "build": "tsc -p tsconfig.json",
12
- "typecheck": "tsc -p tsconfig.json --noEmit"
12
+ "build:bin": "pnpm --filter openwork-server build:bin && bun build --compile src/cli.ts --outfile dist/openwrk && bun scripts/build-bin.ts",
13
+ "typecheck": "tsc -p tsconfig.json --noEmit",
14
+ "prepublishOnly": "pnpm build:bin"
13
15
  },
14
16
  "files": [
15
17
  "dist",
16
- "README.md"
18
+ "README.md",
19
+ "dist/openwork-server"
17
20
  ],
18
21
  "repository": {
19
22
  "type": "git",