openwork-server 0.11.170 → 0.11.173

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/LICENSE CHANGED
@@ -1,3 +1,11 @@
1
+ Copyright (c) 2026-present Different AI, Inc.
2
+
3
+ Portions of this software are licensed as follows:
4
+
5
+ * All content that resides under the /ee directory of this repository (Fair Source License) is licensed under the license defined in "ee/LICENSE".
6
+ * All third party components incorporated into the OpenWork Software are licensed under the original license provided by the owner of the applicable component.
7
+ * Content outside of the above mentioned directories or restrictions above is available under the "MIT" license as defined below.
8
+
1
9
  MIT License
2
10
 
3
11
  Copyright (c) 2026 Different AI
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OpenWork Server
2
2
 
3
- Filesystem-backed API for OpenWork remote clients. This package provides the OpenWork server layer described in `packages/app/pr/openwork-server.md` and is intentionally independent from the desktop app.
3
+ Filesystem-backed API for OpenWork remote clients. This package provides the OpenWork server layer described in `apps/app/pr/openwork-server.md` and is intentionally independent from the desktop app.
4
4
 
5
5
  ## Quick start
6
6
 
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawnSync } from "node:child_process";
4
+ import { existsSync } from "node:fs";
5
+ import { basename } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const packageRoot = fileURLToPath(new URL("..", import.meta.url));
9
+ const args = process.argv.slice(2);
10
+
11
+ const binaryName = process.platform === "win32" ? "openwork-server.exe" : "openwork-server";
12
+ const compiledBinary = fileURLToPath(new URL(`./dist/bin/${binaryName}`, `${new URL("../", import.meta.url)}`));
13
+ const builtCli = fileURLToPath(new URL("./dist/cli.js", `${new URL("../", import.meta.url)}`));
14
+ const sourceCli = fileURLToPath(new URL("./src/cli.ts", `${new URL("../", import.meta.url)}`));
15
+
16
+ function run(command, commandArgs) {
17
+ const result = spawnSync(command, commandArgs, { stdio: "inherit" });
18
+ if (result.error) {
19
+ if (result.error.code === "ENOENT") {
20
+ console.error(`Missing runtime dependency: ${command}`);
21
+ process.exit(1);
22
+ }
23
+ throw result.error;
24
+ }
25
+ process.exit(result.status ?? 1);
26
+ }
27
+
28
+ if (existsSync(compiledBinary)) {
29
+ run(compiledBinary, args);
30
+ }
31
+
32
+ if (existsSync(builtCli)) {
33
+ run("bun", [builtCli, ...args]);
34
+ }
35
+
36
+ if (existsSync(sourceCli)) {
37
+ run("bun", [sourceCli, ...args]);
38
+ }
39
+
40
+ console.error(
41
+ `Unable to find an OpenWork server entrypoint in ${basename(packageRoot)}. Build the package or run it from a source checkout with Bun available.`,
42
+ );
43
+ process.exit(1);
Binary file
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "openwork-server",
3
- "version": "0.11.170",
3
+ "version": "0.11.173",
4
4
  "description": "Filesystem-backed API for OpenWork remote clients",
5
5
  "type": "module",
6
6
  "bin": {
7
- "openwork-server": "dist/bin/openwork-server"
7
+ "openwork-server": "bin/openwork-server.mjs"
8
8
  },
9
9
  "files": [
10
+ "bin",
10
11
  "dist",
11
12
  "README.md"
12
13
  ],
13
14
  "repository": {
14
15
  "type": "git",
15
16
  "url": "git+https://github.com/different-ai/openwork.git",
16
- "directory": "packages/server"
17
+ "directory": "apps/server"
17
18
  },
18
- "homepage": "https://github.com/different-ai/openwork/tree/dev/packages/server",
19
+ "homepage": "https://github.com/different-ai/openwork/tree/dev/apps/server",
19
20
  "bugs": {
20
21
  "url": "https://github.com/different-ai/openwork/issues"
21
22
  },