@jini-ai/sidecar 0.6.15-rc.1 → 0.6.15-rc.2

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/dist/json-ipc.js +9 -6
  2. package/package.json +5 -5
package/dist/json-ipc.js CHANGED
@@ -462,12 +462,7 @@ export async function requestJsonIpc({ socketPath, payload }, { timeoutMs = 1500
462
462
  socketPath,
463
463
  traceId,
464
464
  });
465
- const rejection = new Error(response.error?.message ?? "IPC request failed");
466
- if (response.error?.code !== undefined)
467
- rejection.code = response.error.code;
468
- if (response.error?.requestId !== undefined)
469
- rejection.requestId = response.error.requestId;
470
- rejectRequest(rejection);
465
+ rejectRequest(ipcResponseError(response.error));
471
466
  return;
472
467
  }
473
468
  traceJsonIpc("client.response_success", {
@@ -503,4 +498,12 @@ export async function requestJsonIpc({ socketPath, payload }, { timeoutMs = 1500
503
498
  });
504
499
  });
505
500
  }
501
+ function ipcResponseError(error) {
502
+ const rejection = new Error(error?.message ?? "IPC request failed");
503
+ if (error?.code !== undefined)
504
+ rejection.code = error.code;
505
+ if (error?.requestId !== undefined)
506
+ rejection.requestId = error.requestId;
507
+ return rejection;
508
+ }
506
509
  //# sourceMappingURL=json-ipc.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/sidecar",
3
- "version": "0.6.15-rc.1",
3
+ "version": "0.6.15-rc.2",
4
4
  "description": "Sidecar process runtime: JSON-IPC server and client, IPC path validation, namespace/runtime path resolution, port allocation, launch bootstrap, and a local daemon registry.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -63,14 +63,14 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@vitest/coverage-v8": "^2.1.9",
66
- "@jini-ai/core": "0.6.15-rc.1",
67
- "@jini-ai/platform": "0.6.15-rc.1"
66
+ "@jini-ai/core": "0.6.15-rc.2",
67
+ "@jini-ai/platform": "0.6.15-rc.2"
68
68
  },
69
69
  "dependencies": {
70
- "@jini-ai/core": "^0.6.15-rc.1"
70
+ "@jini-ai/core": "^0.6.15-rc.2"
71
71
  },
72
72
  "peerDependencies": {
73
- "@jini-ai/platform": "^0.6.15-rc.1"
73
+ "@jini-ai/platform": "^0.6.15-rc.2"
74
74
  },
75
75
  "peerDependenciesMeta": {
76
76
  "@jini-ai/platform": {