@hearsay-tools/squawk 0.18.0-dev.7752 → 0.18.0-dev.7760
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.d.ts +6 -4
- package/dist/activity/publisher.js +5 -6
- package/dist/activity/publisher.js.map +1 -1
- package/dist/activity/tool-activity.d.ts +4 -8
- package/dist/activity/tool-activity.js +9 -5
- package/dist/activity/tool-activity.js.map +1 -1
- package/dist/artifacts/reports-index.d.ts +19 -6
- package/dist/artifacts/reports-index.js +18 -17
- package/dist/artifacts/reports-index.js.map +1 -1
- package/dist/delegation/worker-cleanup.d.ts +3 -1
- package/dist/delegation/worker-cleanup.js +10 -3
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/runs/lifecycle.d.ts +8 -5
- package/dist/runs/lifecycle.js +5 -4
- package/dist/runs/lifecycle.js.map +1 -1
- package/dist/runs/store.js +4 -4
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/workflows/run.js +21 -9
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../src/runs/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../src/runs/lifecycle.ts"],"names":[],"mappings":"AAkDA,MAAM,OAAO,YAAY;IACN,WAAW,GAA8C,EAAE,CAAC;IAE7E,SAAS,CAAC,QAA8B;QACtC,MAAM,KAAK,GAAG,EAAE,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,CAAC;QAC5C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC9C,IAAI,KAAK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ore extends EventEmitter {
|
|
|
1885
1885
|
completionArchiveBlocker: run => this.completionArchiveBlocker(run),
|
|
1886
1886
|
stageArchive: (staged, run, archived) => this.stageArchive(staged, run, archived, exits),
|
|
1887
1887
|
});
|
|
1888
|
-
const before = new Map([...staged].map(([id, next]) => [id, next ? write.before?.get(id) ?? snapshotRun(this.peek(id)) : undefined])),
|
|
1888
|
+
const before = new Map([...staged].map(([id, next]) => [id, next ? write.before?.get(id) ?? snapshotRun(this.peek(id)) : undefined])), committed = new Map([...staged].map(([id, next]) => [id, snapshotRun(next ?? undefined)]));
|
|
1889
1889
|
if (!this.db)
|
|
1890
1890
|
throw this.openFailure ?? new Error('runs database unavailable: nothing can be saved');
|
|
1891
1891
|
this.assertWritable(staged);
|
|
1892
1892
|
this.persist(staged);
|
|
1893
|
-
// Preserve existing record references, but expose the entire transaction before its first event
|
|
1894
|
-
//
|
|
1893
|
+
// Preserve existing record references, but expose the entire transaction before its first event, which
|
|
1894
|
+
// carries the record this commit wrote (`committed`). A finished run is held until the next sweep.
|
|
1895
1895
|
for (const [id, next] of staged) {
|
|
1896
1896
|
this.coldReads.forget(id);
|
|
1897
1897
|
if (!next) {
|
|
@@ -1909,7 +1909,7 @@ export class RunStore extends EventEmitter {
|
|
|
1909
1909
|
for (const id of staged.keys()) {
|
|
1910
1910
|
const run = this.held.get(id);
|
|
1911
1911
|
if (run) {
|
|
1912
|
-
publishRunWrite(this.published, run, before.get(id), source, exits.get(id)
|
|
1912
|
+
publishRunWrite(this.published, committed.get(id) ?? run, before.get(id), source, exits.get(id));
|
|
1913
1913
|
this.emit('run', run, source);
|
|
1914
1914
|
}
|
|
1915
1915
|
else {
|