@hearsay-tools/squawk 0.18.0-dev.7816 → 0.18.0-dev.7825
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/activity/publisher.js +2 -2
- package/dist/activity/publisher.js.map +1 -1
- package/dist/activity/read-model.js +1 -1
- package/dist/activity/read-model.js.map +1 -1
- package/dist/activity/requests.d.ts +4 -2
- package/dist/activity/requests.js +1 -1
- package/dist/activity/requests.js.map +1 -1
- package/dist/artifacts/reports-index.d.ts +4 -7
- package/dist/artifacts/reports-index.js +7 -7
- package/dist/artifacts/reports-index.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +42 -42
- package/dist/delegation/conversations.d.ts +6 -2
- package/dist/delegation/conversations.js +3 -2
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/family-end.d.ts +4 -2
- package/dist/delegation/results.js +2 -2
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/delegation/routes.js +1 -1
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/scratch-cleanup.js +2 -2
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/service.js +2 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/delegation/worker-cleanup.js +1 -1
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/preview/host.d.ts +2 -1
- package/dist/preview/host.js +1 -1
- package/dist/preview/host.js.map +1 -1
- package/dist/project-migration/live.js +3 -3
- package/dist/project-migration/live.js.map +1 -1
- package/dist/runs/claim-families.d.ts +1 -1
- package/dist/runs/claim-families.js +1 -1
- package/dist/runs/lifecycle.d.ts +2 -1
- package/dist/runs/lifecycle.js.map +1 -1
- package/dist/runs/live-tasks.js +1 -1
- package/dist/runs/live-tasks.js.map +1 -1
- package/dist/runs/loaded-run-exits.d.ts +23 -0
- package/dist/runs/loaded-run-exits.js +46 -1
- package/dist/runs/loaded-run-exits.js.map +1 -1
- package/dist/runs/ports.d.ts +38 -14
- package/dist/runs/retention.d.ts +3 -1
- package/dist/runs/retention.js +5 -5
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-claims-topic.d.ts +130 -0
- package/dist/runs/run-claims-topic.js +258 -0
- package/dist/runs/run-claims-topic.js.map +1 -0
- package/dist/runs/run-claims.d.ts +1 -1
- package/dist/runs/run-claims.js +1 -1
- package/dist/runs/run-claims.js.map +1 -1
- package/dist/runs/run-database.d.ts +1 -1
- package/dist/runs/run-index.js +3 -1
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-persistence.d.ts +150 -0
- package/dist/runs/run-persistence.js +396 -0
- package/dist/runs/run-persistence.js.map +1 -0
- package/dist/runs/run-pins.d.ts +38 -0
- package/dist/runs/run-pins.js +45 -0
- package/dist/runs/run-pins.js.map +1 -0
- package/dist/runs/run-references.d.ts +1 -1
- package/dist/runs/run-references.js +1 -1
- package/dist/runs/run-references.js.map +1 -1
- package/dist/runs/run-retention.d.ts +6 -2
- package/dist/runs/run-retention.js +11 -2
- package/dist/runs/run-retention.js.map +1 -1
- package/dist/runs/store-open.d.ts +45 -0
- package/dist/runs/store-open.js +89 -0
- package/dist/runs/store-open.js.map +1 -0
- package/dist/runs/store.d.ts +9 -209
- package/dist/runs/store.js +88 -802
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/webhook.d.ts +3 -1
- package/dist/runs/webhook.js +2 -2
- package/dist/runs/webhook.js.map +1 -1
- package/dist/serve-boot.d.ts +2 -2
- package/dist/server/completion-actions.js +2 -2
- package/dist/server/completion-actions.js.map +1 -1
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/project-run-files.d.ts +3 -1
- package/dist/server/project-run-files.js +3 -3
- package/dist/server/project-run-files.js.map +1 -1
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/run-checkout.d.ts +3 -1
- package/dist/server/run-checkout.js +3 -3
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/run-event-feed.js +2 -2
- package/dist/server/run-event-feed.js.map +1 -1
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1593 -1593
- package/dist/server/server.js +9 -9
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-server.js +1 -1
- package/dist/server/start-server.js.map +1 -1
- package/dist/workflows/run/continuation-acceptance.js +2 -2
- package/dist/workflows/run/continuation-acceptance.js.map +1 -1
- package/dist/workflows/run/family-reconciler.d.ts +2 -1
- package/dist/workflows/run/family-reconciler.js +2 -2
- package/dist/workflows/run/family-reconciler.js.map +1 -1
- package/dist/workflows/run/maintenance-claims.js +6 -6
- package/dist/workflows/run/maintenance-claims.js.map +1 -1
- package/dist/workflows/run/native-skill-input-queue.js +1 -1
- package/dist/workflows/run/native-skill-input-queue.js.map +1 -1
- package/dist/workflows/run/queued-revival.js +3 -3
- package/dist/workflows/run/queued-revival.js.map +1 -1
- package/dist/workflows/run/run-cancel.js +5 -5
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-finish.js +1 -1
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +3 -3
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-settlement.js +5 -5
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/step-loop.js +4 -4
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/turn-nudges.js +1 -1
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run/turn-settler.js +1 -1
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/usage-accounting.js +1 -1
- package/dist/workflows/run/usage-accounting.js.map +1 -1
- package/dist/workflows/run.js +7 -7
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-family-reconcile.ts +1 -1
- package/scripts/benchmark-run-store.ts +5 -5
- package/scripts/benchmark-workspace-events.ts +2 -2
package/dist/server/server.js
CHANGED
|
@@ -2358,12 +2358,12 @@ export function createApp(deps) {
|
|
|
2358
2358
|
if (c.req.method === 'GET' || c.req.method === 'HEAD' || id === undefined)
|
|
2359
2359
|
return next();
|
|
2360
2360
|
const { store, manager } = c.get('project');
|
|
2361
|
-
if (store.runOwnership(id) === 'orphaned') {
|
|
2361
|
+
if (store.claims.runOwnership(id) === 'orphaned') {
|
|
2362
2362
|
const stop = c.req.method === 'POST' && c.req.path.endsWith('/cancel');
|
|
2363
2363
|
if (await manager.adoptOrphanedRun(id, { stop }) && stop && store.getRun(id)?.status === 'cancelled')
|
|
2364
2364
|
c.set('stoppedOnAdoption', true);
|
|
2365
2365
|
}
|
|
2366
|
-
const refusal = store.writeRefusal(id);
|
|
2366
|
+
const refusal = store.claims.writeRefusal(id);
|
|
2367
2367
|
if (!refusal)
|
|
2368
2368
|
return next();
|
|
2369
2369
|
// The delegation route in this family answers in the delegation error shape it always uses.
|
|
@@ -2552,7 +2552,7 @@ export function createApp(deps) {
|
|
|
2552
2552
|
if (!store.getRun(id))
|
|
2553
2553
|
return c.json({ error: 'not found' }, 404);
|
|
2554
2554
|
try {
|
|
2555
|
-
return c.json(await readRunHistoryPage(store.sourceDataDir(id), id, c.req.valid('query').cursor));
|
|
2555
|
+
return c.json(await readRunHistoryPage(store.claims.sourceDataDir(id), id, c.req.valid('query').cursor));
|
|
2556
2556
|
}
|
|
2557
2557
|
catch (error) {
|
|
2558
2558
|
if (error instanceof HistoryCursorError)
|
|
@@ -2565,7 +2565,7 @@ export function createApp(deps) {
|
|
|
2565
2565
|
const { id } = c.req.valid('param');
|
|
2566
2566
|
if (!store.getRun(id))
|
|
2567
2567
|
return c.json({ error: 'not found' }, 404);
|
|
2568
|
-
return c.json(await deriveRunContextEvents(store.sourceDataDir(id), id));
|
|
2568
|
+
return c.json(await deriveRunContextEvents(store.claims.sourceDataDir(id), id));
|
|
2569
2569
|
})
|
|
2570
2570
|
// Editable titles (#389). The UI displays `titleSummary ?? title`, so a
|
|
2571
2571
|
// user edit sets BOTH: `title` (the record's own name — the raw task stops
|
|
@@ -2868,7 +2868,7 @@ export function createApp(deps) {
|
|
|
2868
2868
|
const run = store.getRun(c.req.param('id'));
|
|
2869
2869
|
if (!run)
|
|
2870
2870
|
return c.json({ error: 'not found' }, 404);
|
|
2871
|
-
return c.text(renderHandoffRecords(readHandoff(store.sourceDataDir(run.id), run.id), run.handoffRecords), 200, {
|
|
2871
|
+
return c.text(renderHandoffRecords(readHandoff(store.claims.sourceDataDir(run.id), run.id), run.handoffRecords), 200, {
|
|
2872
2872
|
'content-type': 'text/markdown; charset=utf-8',
|
|
2873
2873
|
});
|
|
2874
2874
|
})
|
|
@@ -2878,7 +2878,7 @@ export function createApp(deps) {
|
|
|
2878
2878
|
if (!run)
|
|
2879
2879
|
return c.json({ error: 'not found' }, 404);
|
|
2880
2880
|
const file = c.req.valid('param').file;
|
|
2881
|
-
const path = resolveAttachmentPath(store.sourceDataDir(run.id), run.id, file);
|
|
2881
|
+
const path = resolveAttachmentPath(store.claims.sourceDataDir(run.id), run.id, file);
|
|
2882
2882
|
if (!path)
|
|
2883
2883
|
return c.json({ error: 'not found' }, 404);
|
|
2884
2884
|
const ext = file.split('.').pop() ?? '';
|
|
@@ -2960,7 +2960,7 @@ export function createApp(deps) {
|
|
|
2960
2960
|
return c.json(checkout.body, checkout.status);
|
|
2961
2961
|
const { run, directory: workingDirectory } = checkout;
|
|
2962
2962
|
const query = c.req.valid('query');
|
|
2963
|
-
const loaded = await loadFileLink({ dataDir: store.sourceDataDir(run.id), runId: run.id, projectRoot: root, workingDirectory, path: query.path });
|
|
2963
|
+
const loaded = await loadFileLink({ dataDir: store.claims.sourceDataDir(run.id), runId: run.id, projectRoot: root, workingDirectory, path: query.path });
|
|
2964
2964
|
if (query.raw === '1') {
|
|
2965
2965
|
if (!loaded.imageBytes || loaded.preview.type !== 'file')
|
|
2966
2966
|
return c.json({ error: 'Only bounded raster images can be served inline.' }, 409);
|
|
@@ -3141,7 +3141,7 @@ export function createApp(deps) {
|
|
|
3141
3141
|
const outcome = await resolveForgeRoot(repoRoot, deps.forgeFactory).createPR({
|
|
3142
3142
|
repoRoot,
|
|
3143
3143
|
run,
|
|
3144
|
-
handoffText: readHandoff(store.sourceDataDir(id), id),
|
|
3144
|
+
handoffText: readHandoff(store.claims.sourceDataDir(id), id),
|
|
3145
3145
|
});
|
|
3146
3146
|
if (!outcome.ok) {
|
|
3147
3147
|
return c.json({ error: outcome.error, manual: `git merge ${run.branch}` }, 409);
|
|
@@ -3319,7 +3319,7 @@ export function createApp(deps) {
|
|
|
3319
3319
|
const query = c.req.valid('query');
|
|
3320
3320
|
if (query.cursor) {
|
|
3321
3321
|
try {
|
|
3322
|
-
await validateLiveCursor(store.sourceDataDir(id), id, query.cursor);
|
|
3322
|
+
await validateLiveCursor(store.claims.sourceDataDir(id), id, query.cursor);
|
|
3323
3323
|
}
|
|
3324
3324
|
catch (error) {
|
|
3325
3325
|
if (error instanceof HistoryCursorError)
|