@wjarka/cezarion 0.14.9-dev.1017 → 0.14.9-dev.1020
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/dist/delegation/routes.d.ts +50 -50
- package/dist/delegation/transport.d.ts +50 -50
- package/dist/runs/store.d.ts +10 -0
- package/dist/runs/store.js +21 -0
- package/dist/runs/store.js.map +1 -1
- package/dist/server/server.d.ts +1195 -1195
- package/dist/server/server.js +6 -3
- package/dist/server/server.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{commit-list-DGsvJs8W.js → commit-list-Clrt2fri.js} +1 -1
- package/web/dist/assets/{compare-variants-C2XM9Cdu.js → compare-variants-94hIoU8f.js} +1 -1
- package/web/dist/assets/{github-Bigpyf77.js → github-Dpgdq0PM.js} +1 -1
- package/web/dist/assets/{index-vrmXsGqF.js → index-BKYnjMUh.js} +6 -6
- package/web/dist/assets/{repo-git-BNmcmALh.js → repo-git-BET_qb78.js} +1 -1
- package/web/dist/assets/{skills-CQo5yBQH.js → skills-CXRLxn_l.js} +1 -1
- package/web/dist/assets/{task-changes-Aqk-VGht.js → task-changes-B2uYO3RP.js} +1 -1
- package/web/dist/assets/{task-commits-CP3D9MKz.js → task-commits-Wd4pSn4p.js} +1 -1
- package/web/dist/assets/{task-files-DY6LWGRA.js → task-files-CG6gafc9.js} +1 -1
- package/web/dist/assets/{workflows-Cve95oNS.js → workflows-D12QL21-.js} +1 -1
- package/web/dist/index.html +1 -1
package/dist/server/server.js
CHANGED
|
@@ -3163,11 +3163,14 @@ export function createApp(deps) {
|
|
|
3163
3163
|
const run = store.getRun(c.req.valid('param').id);
|
|
3164
3164
|
if (!run)
|
|
3165
3165
|
return c.json({ error: 'not found' }, 404);
|
|
3166
|
-
//
|
|
3166
|
+
// Off the parent's receipts, not a scan of the project index (#659): archived/off-page
|
|
3167
|
+
// workers still belong to this parent, and the cockpit asks on every run event, so the
|
|
3168
|
+
// read has to cost O(workers) whatever the store holds — and nothing at all for the
|
|
3169
|
+
// ordinary run that owns none, delegation on or off.
|
|
3167
3170
|
// Human reads use the bound project, never agent credentials or private evidence.
|
|
3168
|
-
const workers = store.
|
|
3171
|
+
const workers = store.listOwnedWorkers(run.id).flatMap(worker => {
|
|
3169
3172
|
const owned = worker.delegation;
|
|
3170
|
-
if (owned?.role !== 'worker'
|
|
3173
|
+
if (owned?.role !== 'worker')
|
|
3171
3174
|
return [];
|
|
3172
3175
|
return [{ workerId: worker.id, parentRunId: run.id, status: worker.status, workspace: owned.workspace,
|
|
3173
3176
|
...(worker.currentStepId === undefined ? {} : { currentStepId: worker.currentStepId }),
|