@elpapi42/pi-fleet 0.1.0-beta.5 → 0.1.0-beta.6

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.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 3,
3
3
  "package": {
4
4
  "name": "@elpapi42/pi-fleet",
5
- "version": "0.1.0-beta.5"
5
+ "version": "0.1.0-beta.6"
6
6
  },
7
7
  "managedPi": "@earendil-works/pi-coding-agent@0.80.10",
8
8
  "files": [
@@ -14,12 +14,12 @@
14
14
  {
15
15
  "path": "dist/cli.mjs",
16
16
  "bytes": 150369,
17
- "sha256": "4ed384c54fa9b6bc4c9b80fcde2e9c0106ef902a0518baeb71565566fe0501dc"
17
+ "sha256": "59a79d1a66ddd63eccdf00bb8c88d9c35ce1bca9505bd5af99c846ff0e7150bc"
18
18
  },
19
19
  {
20
20
  "path": "dist/cli.mjs.map",
21
21
  "bytes": 270001,
22
- "sha256": "449c833189699a96d06ece97e9e3ba06cce92c0483dc3f1dce2f7dd1e1fdf5ab"
22
+ "sha256": "e8ceebe12bc4c8b97293b4f2e0b82d435d4073e97bcb00104aa9c97814f13322"
23
23
  },
24
24
  {
25
25
  "path": "dist/installer-meta.json",
@@ -39,17 +39,17 @@
39
39
  {
40
40
  "path": "dist/runtime-meta.json",
41
41
  "bytes": 241246,
42
- "sha256": "2ab87b9b582fa0d7469f038bbddb014fe2f05dfe53bdc99154f4d01dbd683ebc"
42
+ "sha256": "e731bbd8617a5c14f7d6337462d93a51c519b5f1e04a39b75631a900917f560d"
43
43
  },
44
44
  {
45
45
  "path": "dist/runtime.mjs",
46
- "bytes": 320605,
47
- "sha256": "2628c307f631e1ac30ff580252252c20fc517e716c875f5332f9140d72159d2b"
46
+ "bytes": 320861,
47
+ "sha256": "d0818457b5f53e205c81eee9a5aa43af0c342eefc5e7c0df87465eb78ba015be"
48
48
  },
49
49
  {
50
50
  "path": "dist/runtime.mjs.map",
51
- "bytes": 700561,
52
- "sha256": "c6f300c13c6c3b985e73c30ec4fc32926cdcaf444d9e234954e9623d2862a3ce"
51
+ "bytes": 700987,
52
+ "sha256": "5d318062779cc135816b22e91e0ea4689718c660116c2639b3e259b8f5b27b5c"
53
53
  },
54
54
  {
55
55
  "path": "dist/sqlite-worker-meta.json",
@@ -79,7 +79,7 @@
79
79
  {
80
80
  "path": "package.json",
81
81
  "bytes": 2375,
82
- "sha256": "103d0802e5d1df06d193a9f7d0da60303ae0c24ca23c915b0947140af1c7d29c"
82
+ "sha256": "b0ec0589bf8e177ef1f9d974ad3d34354485b853cd17fac7188c38073c96fe69"
83
83
  }
84
84
  ],
85
85
  "dependencies": [
@@ -6272,7 +6272,7 @@
6272
6272
  "format": "esm"
6273
6273
  },
6274
6274
  "src/runtime/fleet-service.ts": {
6275
- "bytes": 34926,
6275
+ "bytes": 35183,
6276
6276
  "imports": [
6277
6277
  {
6278
6278
  "path": "node:crypto",
@@ -6385,7 +6385,7 @@
6385
6385
  "imports": [],
6386
6386
  "exports": [],
6387
6387
  "inputs": {},
6388
- "bytes": 700561
6388
+ "bytes": 700987
6389
6389
  },
6390
6390
  "dist/runtime.mjs": {
6391
6391
  "imports": [
@@ -6950,7 +6950,7 @@
6950
6950
  "bytesInOutput": 108
6951
6951
  },
6952
6952
  "src/runtime/fleet-service.ts": {
6953
- "bytesInOutput": 29982
6953
+ "bytesInOutput": 30238
6954
6954
  },
6955
6955
  "src/pi/session-selector.ts": {
6956
6956
  "bytesInOutput": 2113
@@ -6968,7 +6968,7 @@
6968
6968
  "bytesInOutput": 3543
6969
6969
  }
6970
6970
  },
6971
- "bytes": 320605
6971
+ "bytes": 320861
6972
6972
  }
6973
6973
  }
6974
6974
  }
package/dist/runtime.mjs CHANGED
@@ -7709,6 +7709,13 @@ var FleetService = class {
7709
7709
  throw error;
7710
7710
  }
7711
7711
  if (agent === null) return this.#notFound(input.name);
7712
+ if (agent.summary.state === "failed") {
7713
+ const code = agent.summary.error?.code ?? "agent_failed";
7714
+ return err({
7715
+ code,
7716
+ message: `Agent ${input.name} is failed (${code}) and has no current successful response.`
7717
+ });
7718
+ }
7712
7719
  if (agent.latestAssistantText === null || agent.responseObservedAt === null) {
7713
7720
  return err({
7714
7721
  code: "no_response",