@ricsam/r5d-worker 0.0.140 → 0.0.141

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-worker",
3
- "version": "0.0.140",
3
+ "version": "0.0.141",
4
4
  "type": "commonjs"
5
5
  }
package/dist/mjs/main.mjs CHANGED
@@ -7,7 +7,7 @@ import { startManagerRpc } from "./runtime/releases/rpc-main.mjs";
7
7
  import { ManagerRpcConfig } from "./runtime/releases/rpc-protocol.mjs";
8
8
  const args = process.argv.slice(2);
9
9
  if (args.includes("--version")) {
10
- console.log(`r5d-worker ${true ? "0.0.140" : "development"}`);
10
+ console.log(`r5d-worker ${true ? "0.0.141" : "development"}`);
11
11
  } else if (!args.length || args.includes("--help")) {
12
12
  console.log(
13
13
  "Usage: r5d-worker start --label <label> [--root <dir>] [--base-url <url>] [--token <worker-token>]\n r5d-worker executor /absolute/private/config.json\n r5d-worker manager /absolute/private/config.json\n\nRun independently supervised durable runtime services. Provision configuration with r5dinfra."
@@ -15,7 +15,7 @@ if (args.includes("--version")) {
15
15
  } else if (args[0] === "start") {
16
16
  const runtime = await startPersonalWorker(
17
17
  parsePersonalWorkerOptions(args.slice(1)),
18
- true ? "0.0.140" : "development"
18
+ true ? "0.0.141" : "development"
19
19
  );
20
20
  console.log(`Worker connected: ${runtime.resourceId}`);
21
21
  let closing = false;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-worker",
3
- "version": "0.0.140",
3
+ "version": "0.0.141",
4
4
  "type": "module"
5
5
  }
@@ -1294,6 +1294,8 @@ ${DEFAULT_WORKSPACE_IGNORE}`, { mode: 384 });
1294
1294
  if (result.state !== "completed") throw new WorkspaceError("action_unknown", "Executor action receipt is unsettled");
1295
1295
  return result;
1296
1296
  } catch (error) {
1297
+ if (error instanceof ExecutorError && error.code === "run_not_running")
1298
+ throw new WorkspaceError(error.code, error.message, true);
1297
1299
  await this.serial(
1298
1300
  b,
1299
1301
  async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-worker",
3
- "version": "0.0.140",
3
+ "version": "0.0.141",
4
4
  "type": "module",
5
5
  "main": "./dist/mjs/main.mjs",
6
6
  "module": "./dist/mjs/main.mjs",
@@ -21,8 +21,8 @@
21
21
  "r5d-worker": "dist/mjs/main.mjs"
22
22
  },
23
23
  "dependencies": {
24
- "@ricsam/r5d-api": "^0.0.140",
25
- "@ricsam/r5dctl": "0.0.140",
24
+ "@ricsam/r5d-api": "^0.0.141",
25
+ "@ricsam/r5dctl": "0.0.141",
26
26
  "node-pty": "1.1.0",
27
27
  "zod": "^4.1.13",
28
28
  "picomatch": "^4.0.3"