@agent-relay/factory 0.1.48 → 0.1.49
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/orchestrator/factory.js +3 -3
- package/dist/orchestrator/factory.js.map +1 -1
- package/dist/ports/state.d.ts +2 -0
- package/dist/ports/state.d.ts.map +1 -1
- package/dist/state/file-state-store.d.ts.map +1 -1
- package/dist/state/file-state-store.js +8 -1
- package/dist/state/file-state-store.js.map +1 -1
- package/dist/state/github-lifecycle-identity.d.ts +11 -0
- package/dist/state/github-lifecycle-identity.d.ts.map +1 -0
- package/dist/state/github-lifecycle-identity.js +43 -0
- package/dist/state/github-lifecycle-identity.js.map +1 -0
- package/dist/state/in-memory-state-store.d.ts.map +1 -1
- package/dist/state/in-memory-state-store.js +8 -1
- package/dist/state/in-memory-state-store.js.map +1 -1
- package/package.json +1 -1
|
@@ -2376,7 +2376,7 @@ export class FactoryLoop {
|
|
|
2376
2376
|
this.#scheduleDispatchLifecycleRetry(inFlightRecordFromLifecycle(claim.lifecycle));
|
|
2377
2377
|
continue;
|
|
2378
2378
|
}
|
|
2379
|
-
this.#dispatchLifecycleEpochs.set(key, claim.lease.epoch);
|
|
2379
|
+
this.#dispatchLifecycleEpochs.set(claim.key ?? key, claim.lease.epoch);
|
|
2380
2380
|
if (claim.lifecycle.phase === 'waiting-for-human')
|
|
2381
2381
|
continue;
|
|
2382
2382
|
const durableRecord = inFlightRecordFromLifecycle(claim.lifecycle);
|
|
@@ -2620,7 +2620,7 @@ export class FactoryLoop {
|
|
|
2620
2620
|
: `dispatch lifecycle is owned by ${claim.lifecycle.lease?.owner ?? 'another publisher'}`;
|
|
2621
2621
|
throw new Error(`Refusing to dispatch ${decision.issue.key}: ${reason}`);
|
|
2622
2622
|
}
|
|
2623
|
-
this.#dispatchLifecycleEpochs.set(key, claim.lease.epoch);
|
|
2623
|
+
this.#dispatchLifecycleEpochs.set(claim.key ?? key, claim.lease.epoch);
|
|
2624
2624
|
this.#scheduleDispatchLifecycleRenewal();
|
|
2625
2625
|
if (claim.created) {
|
|
2626
2626
|
await this.#reportLifecycle(claim.lifecycle, 'run.started');
|
|
@@ -2845,7 +2845,7 @@ export class FactoryLoop {
|
|
|
2845
2845
|
if (!claim.acquired || !claim.lease) {
|
|
2846
2846
|
throw new DispatchLifecycleOwnedElsewhereError(claim.lifecycle.lease?.leaseUntilMs);
|
|
2847
2847
|
}
|
|
2848
|
-
this.#dispatchLifecycleEpochs.set(key, claim.lease.epoch);
|
|
2848
|
+
this.#dispatchLifecycleEpochs.set(claim.key ?? key, claim.lease.epoch);
|
|
2849
2849
|
this.#scheduleDispatchLifecycleRenewal();
|
|
2850
2850
|
lifecycle = claim.lifecycle;
|
|
2851
2851
|
acquiredNow = true;
|