@linnlabs/linnkit 0.33.0 → 0.34.0
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/CHANGELOG.md +16 -0
- package/dist/cli.cjs +154 -28
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +154 -28
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +54 -0
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +54 -0
- package/dist/context-manager.js.map +1 -1
- package/dist/index.cjs +166 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +166 -39
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +154 -28
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +154 -28
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/graph-engine/functions/parseEngineCheckpoint.d.cts +6 -0
- package/dist/runtime-kernel/graph-engine/functions/parseEngineCheckpoint.d.ts +6 -0
- package/dist/runtime-kernel/graph-engine/index.d.cts +1 -0
- package/dist/runtime-kernel/graph-engine/index.d.ts +1 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +21 -4
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +21 -4
- package/dist/runtime-kernel/run-supervisor/index.d.cts +1 -1
- package/dist/runtime-kernel/run-supervisor/index.d.ts +1 -1
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +2 -1
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +2 -1
- package/dist/runtime-kernel.cjs +163 -36
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +1 -0
- package/dist/runtime-kernel.d.ts +1 -0
- package/dist/runtime-kernel.js +163 -37
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +163 -36
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +163 -36
- package/dist/testkit.js.map +1 -1
- package/docs/integration/persistence.md +1 -0
- package/docs/integration/run-supervisor.md +3 -0
- package/package.json +2 -2
package/dist/quickstart.cjs
CHANGED
|
@@ -2018,6 +2018,7 @@ __export(graph_engine_exports, {
|
|
|
2018
2018
|
evaluatePrimaryPromptCapacity: () => evaluatePrimaryPromptCapacity,
|
|
2019
2019
|
isRunPauseSignal: () => isRunPauseSignal,
|
|
2020
2020
|
isRuntimeFailureFact: () => isRuntimeFailureFact,
|
|
2021
|
+
parseEngineCheckpoint: () => parseEngineCheckpoint,
|
|
2021
2022
|
readCheckpointContextUsage: () => readCheckpointContextUsage,
|
|
2022
2023
|
requireEventStoreId: () => requireEventStoreId,
|
|
2023
2024
|
resolveEffectivePromptBudget: () => resolveEffectivePromptBudget,
|
|
@@ -3366,23 +3367,23 @@ var GraphExecutor = class {
|
|
|
3366
3367
|
};
|
|
3367
3368
|
}
|
|
3368
3369
|
async saveCheckpoint(checkpointKey, state) {
|
|
3369
|
-
const
|
|
3370
|
+
const checkpoint2 = this.sanitize({
|
|
3370
3371
|
...state,
|
|
3371
3372
|
revision: (state.revision ?? 0) + 1
|
|
3372
3373
|
});
|
|
3373
|
-
await this.commitCheckpoint(checkpointKey,
|
|
3374
|
-
return
|
|
3374
|
+
await this.commitCheckpoint(checkpointKey, checkpoint2);
|
|
3375
|
+
return checkpoint2;
|
|
3375
3376
|
}
|
|
3376
|
-
async commitCheckpoint(checkpointKey,
|
|
3377
|
+
async commitCheckpoint(checkpointKey, checkpoint2) {
|
|
3377
3378
|
if (this.executionCheckpointPort) {
|
|
3378
|
-
await this.executionCheckpointPort.commit(checkpointKey,
|
|
3379
|
+
await this.executionCheckpointPort.commit(checkpointKey, checkpoint2);
|
|
3379
3380
|
} else {
|
|
3380
|
-
await this.checkpointer.save(checkpointKey,
|
|
3381
|
+
await this.checkpointer.save(checkpointKey, checkpoint2);
|
|
3381
3382
|
}
|
|
3382
3383
|
}
|
|
3383
3384
|
async saveCheckpointAndBuildResult(checkpointKey, state, events, stepCount) {
|
|
3384
|
-
const
|
|
3385
|
-
return { events, checkpoint, stepCount };
|
|
3385
|
+
const checkpoint2 = await this.saveCheckpoint(checkpointKey, state);
|
|
3386
|
+
return { events, checkpoint: checkpoint2, stepCount };
|
|
3386
3387
|
}
|
|
3387
3388
|
async runUntilYieldInternal(checkpointKey, initialState, reportStepsUsed, maxSteps) {
|
|
3388
3389
|
let state = initialState;
|
|
@@ -9230,16 +9231,16 @@ function requireEventStoreId(eventStoreId) {
|
|
|
9230
9231
|
}
|
|
9231
9232
|
function createMonotonicEventStoreIdFactory(nowProvider = () => Date.now()) {
|
|
9232
9233
|
let lastTimestamp = 0;
|
|
9233
|
-
let
|
|
9234
|
+
let counter2 = 0;
|
|
9234
9235
|
return () => {
|
|
9235
9236
|
const timestamp = Math.max(nowProvider(), lastTimestamp);
|
|
9236
9237
|
if (timestamp === lastTimestamp) {
|
|
9237
|
-
|
|
9238
|
+
counter2 += 1;
|
|
9238
9239
|
} else {
|
|
9239
9240
|
lastTimestamp = timestamp;
|
|
9240
|
-
|
|
9241
|
+
counter2 = 0;
|
|
9241
9242
|
}
|
|
9242
|
-
return `${String(timestamp).padStart(13, "0")}-${String(
|
|
9243
|
+
return `${String(timestamp).padStart(13, "0")}-${String(counter2).padStart(4, "0")}`;
|
|
9243
9244
|
};
|
|
9244
9245
|
}
|
|
9245
9246
|
|
|
@@ -9651,6 +9652,76 @@ function assertNonNegativeSafeInteger(value, field) {
|
|
|
9651
9652
|
throw new Error(`${field} \u5FC5\u987B\u662F\u975E\u8D1F\u5B89\u5168\u6574\u6570\u3002`);
|
|
9652
9653
|
}
|
|
9653
9654
|
}
|
|
9655
|
+
var counter = zod.z.number().int().nonnegative();
|
|
9656
|
+
var executor = zod.z.object({
|
|
9657
|
+
stepCount: counter,
|
|
9658
|
+
phase: zod.z.string().optional(),
|
|
9659
|
+
maxSteps: counter.optional(),
|
|
9660
|
+
remainingSteps: zod.z.number().int().optional(),
|
|
9661
|
+
finalStepPolicy: zod.z.enum(["final_answer", "force_tools"]).optional(),
|
|
9662
|
+
finalStepForcedTools: zod.z.array(zod.z.string()).optional(),
|
|
9663
|
+
lastStepsHintThreshold: counter.optional(),
|
|
9664
|
+
systemReminderPolicy: AgentSpecSystemReminderPolicy.optional(),
|
|
9665
|
+
toolObservationPolicy: AgentSpecToolObservationGovernancePolicy.optional(),
|
|
9666
|
+
runLockedModelId: zod.z.string().optional(),
|
|
9667
|
+
lastSuccessfulLlmModelId: zod.z.string().optional(),
|
|
9668
|
+
llmInvocationKind: zod.z.enum(["user_initiated", "continuation"]).optional(),
|
|
9669
|
+
llmInvocationCount: counter.optional(),
|
|
9670
|
+
lockRequestedModelId: zod.z.boolean().optional(),
|
|
9671
|
+
contextCompaction: zod.z.object({
|
|
9672
|
+
attemptCount: counter,
|
|
9673
|
+
committedCount: counter,
|
|
9674
|
+
lastCommittedFingerprint: zod.z.string().optional()
|
|
9675
|
+
}).strict().optional()
|
|
9676
|
+
}).strict();
|
|
9677
|
+
var checkpoint = zod.z.object({
|
|
9678
|
+
nodeId: zod.z.string().min(1),
|
|
9679
|
+
schemaVersion: zod.z.literal(ENGINE_STATE_SCHEMA_VERSION).optional(),
|
|
9680
|
+
revision: counter.optional(),
|
|
9681
|
+
executionStatus: zod.z.enum(["ready", "executing", "yielded", "awaiting_user"]).optional(),
|
|
9682
|
+
local: zod.z.object({
|
|
9683
|
+
runId: RunIdSchema.optional(),
|
|
9684
|
+
parentRunId: RunIdSchema.optional(),
|
|
9685
|
+
conversationId: zod.z.string().optional(),
|
|
9686
|
+
turnId: zod.z.string().optional(),
|
|
9687
|
+
request: SerializableJsonRecord.optional(),
|
|
9688
|
+
history: zod.z.array(RuntimeEvent).optional(),
|
|
9689
|
+
newEvents: zod.z.array(RuntimeEvent).optional(),
|
|
9690
|
+
executorLocal: executor.optional(),
|
|
9691
|
+
pendingToolCalls: zod.z.array(zod.z.object({
|
|
9692
|
+
id: ToolCallIdSchema,
|
|
9693
|
+
type: zod.z.literal("function"),
|
|
9694
|
+
function: zod.z.object({ name: zod.z.string().min(1), arguments: zod.z.string() }).strict()
|
|
9695
|
+
}).strict()).optional(),
|
|
9696
|
+
executingToolCallId: ToolCallIdSchema.optional(),
|
|
9697
|
+
toolBatchCompletionMode: zod.z.enum(["continue_to_llm", "yield_after_batch"]).optional(),
|
|
9698
|
+
pendingInteractionSpec: SerializableJsonRecord.optional(),
|
|
9699
|
+
lastToolResult: SerializableJsonRecord.optional(),
|
|
9700
|
+
finalAnswer: zod.z.string().optional(),
|
|
9701
|
+
answerId: zod.z.string().optional(),
|
|
9702
|
+
chunkSeq: counter.optional(),
|
|
9703
|
+
contextUsage: ContextUsageSnapshot.optional()
|
|
9704
|
+
}).passthrough().optional()
|
|
9705
|
+
}).strict();
|
|
9706
|
+
function parseEngineCheckpoint(value) {
|
|
9707
|
+
const result = checkpoint.parse(SerializableJsonRecord.parse(value));
|
|
9708
|
+
for (const key of [
|
|
9709
|
+
"memory",
|
|
9710
|
+
"signal",
|
|
9711
|
+
"toolContext",
|
|
9712
|
+
"runtimeEventSink",
|
|
9713
|
+
"runtimeEventCommitPort",
|
|
9714
|
+
"runtimeFailureFactSink",
|
|
9715
|
+
"summarizationCallbacks",
|
|
9716
|
+
"commitExecutionBoundary",
|
|
9717
|
+
"toolRecoveryPort"
|
|
9718
|
+
]) {
|
|
9719
|
+
if (result.local && Object.hasOwn(result.local, key)) {
|
|
9720
|
+
throw new Error(`Checkpoint must not contain execution capability: ${key}`);
|
|
9721
|
+
}
|
|
9722
|
+
}
|
|
9723
|
+
return result;
|
|
9724
|
+
}
|
|
9654
9725
|
|
|
9655
9726
|
// src/runtime-kernel/execution/index.ts
|
|
9656
9727
|
var execution_exports = {};
|
|
@@ -9901,14 +9972,14 @@ var EventBusEventPersistence = class {
|
|
|
9901
9972
|
checkpointWritesActive;
|
|
9902
9973
|
checkpointEvents = [];
|
|
9903
9974
|
/** Graph 的执行边界复用同一有序队列;没有第二条事件写入链。 */
|
|
9904
|
-
async commitCheckpoint(checkpointKey,
|
|
9975
|
+
async commitCheckpoint(checkpointKey, checkpoint2) {
|
|
9905
9976
|
const writer = this.options.checkpointWriter;
|
|
9906
9977
|
if (!writer || !this.checkpointWritesActive) throw new Error("Checkpoint writer is not active");
|
|
9907
9978
|
const events = this.checkpointEvents;
|
|
9908
9979
|
this.checkpointEvents = [];
|
|
9909
9980
|
await this.enqueueWrite(() => writer({
|
|
9910
9981
|
checkpointKey,
|
|
9911
|
-
checkpoint,
|
|
9982
|
+
checkpoint: checkpoint2,
|
|
9912
9983
|
events: events.map((event) => ({ event, eventStoreId: this.options.nextEventStoreId() }))
|
|
9913
9984
|
}));
|
|
9914
9985
|
}
|
|
@@ -12221,7 +12292,15 @@ function createRunConcurrencyKeyRegistry() {
|
|
|
12221
12292
|
runIdByKey.delete(concurrencyKey);
|
|
12222
12293
|
}
|
|
12223
12294
|
}
|
|
12224
|
-
|
|
12295
|
+
function transfer(previous, next, concurrencyKey) {
|
|
12296
|
+
if (runIdByKey.get(concurrencyKey) !== previous || keyByRunId.has(next)) {
|
|
12297
|
+
throw new RunConcurrencyKeyOccupiedError(concurrencyKey, runIdByKey.get(concurrencyKey) ?? previous, next);
|
|
12298
|
+
}
|
|
12299
|
+
keyByRunId.delete(previous);
|
|
12300
|
+
keyByRunId.set(next, concurrencyKey);
|
|
12301
|
+
runIdByKey.set(concurrencyKey, next);
|
|
12302
|
+
}
|
|
12303
|
+
return { acquire, release, transfer };
|
|
12225
12304
|
}
|
|
12226
12305
|
|
|
12227
12306
|
// src/runtime-kernel/run-supervisor/functions/runRegistration.ts
|
|
@@ -12470,6 +12549,9 @@ var DefaultRunSupervisor = class {
|
|
|
12470
12549
|
});
|
|
12471
12550
|
}
|
|
12472
12551
|
async registerRun(spec) {
|
|
12552
|
+
if (spec.replacesPausedRun) {
|
|
12553
|
+
return this.withRunControlLock(spec.replacesPausedRun.runId, () => this.registerPausedReplacement(spec));
|
|
12554
|
+
}
|
|
12473
12555
|
const runId = spec.runId ?? this.runIdFactory();
|
|
12474
12556
|
if (this.handles.has(runId) || await this.registryStore.load(runId)) {
|
|
12475
12557
|
throw new RunAlreadyRegisteredError(runId);
|
|
@@ -12480,13 +12562,51 @@ var DefaultRunSupervisor = class {
|
|
|
12480
12562
|
forwardParentAbortSignal(controller, spec.parentSignal);
|
|
12481
12563
|
const record = createInitialRunRecord({ runId, spec, startedAt });
|
|
12482
12564
|
try {
|
|
12483
|
-
await
|
|
12565
|
+
if (spec.admissionCommit) await spec.admissionCommit(record);
|
|
12566
|
+
else await this.registryStore.save(record);
|
|
12484
12567
|
} catch (error) {
|
|
12485
12568
|
this.releaseRunAdmission(runId);
|
|
12486
12569
|
throw error;
|
|
12487
12570
|
}
|
|
12488
12571
|
return this.attachRun(record, spec, controller);
|
|
12489
12572
|
}
|
|
12573
|
+
async registerPausedReplacement(spec) {
|
|
12574
|
+
const target = spec.replacesPausedRun;
|
|
12575
|
+
if (!target || !spec.concurrencyKey || !spec.admissionCommit || !this.registryStore.compareAndSwap) {
|
|
12576
|
+
throw new Error("Paused replacement requires concurrency identity and atomic admissionCommit");
|
|
12577
|
+
}
|
|
12578
|
+
this.getHandle(target.runId);
|
|
12579
|
+
const previous = await this.registryStore.load(target.runId);
|
|
12580
|
+
if (!previous || previous.status !== "paused" || previous.pausedAt === void 0 || previous.updatedAt !== target.expectedUpdatedAt || previous.metadata?.executionId !== target.expectedExecutionId || previous.conversationId !== spec.conversationId || previous.parentRunId !== spec.parentRunId) {
|
|
12581
|
+
throw new RunInteractionConflictError(target.runId, "replacement does not match the settled pause");
|
|
12582
|
+
}
|
|
12583
|
+
const runId = spec.runId ?? this.runIdFactory();
|
|
12584
|
+
if (this.handles.has(runId) || await this.registryStore.load(runId)) throw new RunAlreadyRegisteredError(runId);
|
|
12585
|
+
this.runConcurrencyKeys.transfer(previous.runId, runId, spec.concurrencyKey);
|
|
12586
|
+
this.runSlotLimiter.release(previous.runId);
|
|
12587
|
+
this.runSlotLimiter.acquire(runId);
|
|
12588
|
+
const now = this.now();
|
|
12589
|
+
const record = createInitialRunRecord({ runId, spec, startedAt: now });
|
|
12590
|
+
const next = {
|
|
12591
|
+
...previous,
|
|
12592
|
+
status: "cancelled",
|
|
12593
|
+
updatedAt: now,
|
|
12594
|
+
errorIfAny: { errorCode: "RUN_REPLACED", message: "Replaced by a newly accepted request", recoverable: false }
|
|
12595
|
+
};
|
|
12596
|
+
try {
|
|
12597
|
+
await spec.admissionCommit(record, { previous, next });
|
|
12598
|
+
} catch (error) {
|
|
12599
|
+
this.runSlotLimiter.release(runId);
|
|
12600
|
+
this.runSlotLimiter.acquire(previous.runId);
|
|
12601
|
+
this.runConcurrencyKeys.transfer(runId, previous.runId, spec.concurrencyKey);
|
|
12602
|
+
throw error;
|
|
12603
|
+
}
|
|
12604
|
+
this.cleanupRunResources(previous.runId);
|
|
12605
|
+
this.notifyTerminalWaiters(previous.runId);
|
|
12606
|
+
const controller = new AbortController();
|
|
12607
|
+
forwardParentAbortSignal(controller, spec.parentSignal);
|
|
12608
|
+
return this.attachRun(record, spec, controller);
|
|
12609
|
+
}
|
|
12490
12610
|
async restoreRun(spec) {
|
|
12491
12611
|
if (!this.registryStore.compareAndSwap) throw new Error("Run restoration requires atomic registry transitions");
|
|
12492
12612
|
return this.withRunControlLock(spec.runId, async () => {
|
|
@@ -12610,7 +12730,7 @@ var DefaultRunSupervisor = class {
|
|
|
12610
12730
|
return this.withRunControlLock(input.runId, async () => {
|
|
12611
12731
|
const handle = this.getHandle(input.runId);
|
|
12612
12732
|
const record = await this.registryStore.load(input.runId);
|
|
12613
|
-
if (!record || record.status !== "paused" || record.pausedAt === void 0 || record.updatedAt !== input.expectedUpdatedAt) {
|
|
12733
|
+
if (!record || record.status !== "paused" || record.pausedAt === void 0 || record.updatedAt !== input.expectedUpdatedAt || input.expectedExecutionId !== void 0 && record.metadata?.executionId !== input.expectedExecutionId) {
|
|
12614
12734
|
throw new RunInteractionConflictError(input.runId, "run is not settled at the expected pause");
|
|
12615
12735
|
}
|
|
12616
12736
|
await persistRunTransition(this.registryStore, record, {
|
|
@@ -12751,7 +12871,7 @@ var DefaultRunSupervisor = class {
|
|
|
12751
12871
|
}
|
|
12752
12872
|
const awaitingUserWithoutClaim = { ...awaitingUser };
|
|
12753
12873
|
Reflect.deleteProperty(awaitingUserWithoutClaim, "resumeClaim");
|
|
12754
|
-
|
|
12874
|
+
const nextRecord = {
|
|
12755
12875
|
...record,
|
|
12756
12876
|
status: "running",
|
|
12757
12877
|
updatedAt: this.now(),
|
|
@@ -12761,6 +12881,10 @@ var DefaultRunSupervisor = class {
|
|
|
12761
12881
|
metadata: {
|
|
12762
12882
|
...record.metadata ?? {},
|
|
12763
12883
|
...execution ? { executionId: execution.executionId } : {},
|
|
12884
|
+
...execution?.inputEventIds ? { resumeInputs: {
|
|
12885
|
+
eventIds: [...execution.inputEventIds],
|
|
12886
|
+
checkpointRevision: pendingInteraction.checkpointRevision
|
|
12887
|
+
} } : {},
|
|
12764
12888
|
awaitingUser: {
|
|
12765
12889
|
...awaitingUserWithoutClaim,
|
|
12766
12890
|
interaction: {
|
|
@@ -12769,7 +12893,9 @@ var DefaultRunSupervisor = class {
|
|
|
12769
12893
|
}
|
|
12770
12894
|
}
|
|
12771
12895
|
}
|
|
12772
|
-
}
|
|
12896
|
+
};
|
|
12897
|
+
if (execution?.admissionCommit) await execution.admissionCommit(record, nextRecord);
|
|
12898
|
+
else await persistRunTransition(this.registryStore, record, nextRecord);
|
|
12773
12899
|
const executionController = new AbortController();
|
|
12774
12900
|
forwardParentAbortSignal(executionController, parentSignal);
|
|
12775
12901
|
handle.replaceExecutionAbortController(executionController, execution?.executionId ?? (typeof record.metadata?.executionId === "string" ? record.metadata.executionId : void 0));
|
|
@@ -12840,13 +12966,13 @@ createConsoleAudit();
|
|
|
12840
12966
|
|
|
12841
12967
|
// src/runtime-kernel/testkit/defaultGraphExecutor.ts
|
|
12842
12968
|
function createDefaultGraphExecutor(options) {
|
|
12843
|
-
const
|
|
12969
|
+
const executor2 = new GraphExecutor(
|
|
12844
12970
|
options.checkpointer ?? new MemoryCheckpointer(),
|
|
12845
12971
|
{ maxSteps: options.maxSteps ?? 8 }
|
|
12846
12972
|
);
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12973
|
+
executor2.registerNode(new UserNode());
|
|
12974
|
+
executor2.registerNode(options.llmNode);
|
|
12975
|
+
executor2.registerNode(new ToolNode({
|
|
12850
12976
|
toolRuntime: options.toolRuntime,
|
|
12851
12977
|
observationPreview: options.observationPreview,
|
|
12852
12978
|
auditPort: options.auditPort,
|
|
@@ -12854,8 +12980,8 @@ function createDefaultGraphExecutor(options) {
|
|
|
12854
12980
|
modelInputCapabilityValidator: options.modelInputCapabilityValidator,
|
|
12855
12981
|
modelInputResolver: options.modelInputResolver
|
|
12856
12982
|
}));
|
|
12857
|
-
|
|
12858
|
-
return
|
|
12983
|
+
executor2.registerNode(new WaitUserNode({ auditPort: options.auditPort }));
|
|
12984
|
+
return executor2;
|
|
12859
12985
|
}
|
|
12860
12986
|
|
|
12861
12987
|
// src/quickstart/functions/contextTrace.ts
|
|
@@ -13134,7 +13260,7 @@ async function runAgent(agent, options) {
|
|
|
13134
13260
|
contextBuilder: new QuickstartContextBuilder(agent),
|
|
13135
13261
|
telemetryPort
|
|
13136
13262
|
});
|
|
13137
|
-
const
|
|
13263
|
+
const executor2 = createDefaultGraphExecutor({
|
|
13138
13264
|
llmNode: new LlmNode({ reasoner }),
|
|
13139
13265
|
toolRuntime,
|
|
13140
13266
|
observationPreview: createNoopObservationPreview(),
|
|
@@ -13170,7 +13296,7 @@ async function runAgent(agent, options) {
|
|
|
13170
13296
|
};
|
|
13171
13297
|
await handle.markRunning({ currentNode: "user" });
|
|
13172
13298
|
try {
|
|
13173
|
-
await
|
|
13299
|
+
await executor2.prime(checkpointKey, {
|
|
13174
13300
|
conversationId,
|
|
13175
13301
|
turnId,
|
|
13176
13302
|
request: {
|
|
@@ -13187,7 +13313,7 @@ async function runAgent(agent, options) {
|
|
|
13187
13313
|
signal: handle.signal,
|
|
13188
13314
|
runtimeEventSink: (event, source) => publisher.publish(event, source)
|
|
13189
13315
|
});
|
|
13190
|
-
const result = await
|
|
13316
|
+
const result = await executor2.runUntilYield(checkpointKey);
|
|
13191
13317
|
await Promise.all([callbackTail, persistenceTail]);
|
|
13192
13318
|
await handle.markCompleted({
|
|
13193
13319
|
currentNode: result.checkpoint.nodeId,
|