@parcha/agentrun-dsl 0.1.0-beta.182 → 0.1.0-beta.184
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/recovery/driver.d.ts +4 -0
- package/dist/recovery/driver.js +14 -0
- package/package.json +1 -1
|
@@ -213,6 +213,10 @@ export declare function openRecovery(store: RecoveryStore, workflow: Workflow, o
|
|
|
213
213
|
admitDecision(executionPath: unknown, request: Pick<DecisionRequest, "decision_id" | "kind" | "label" | "model" | "request_sha256">): DecisionRequest | undefined;
|
|
214
214
|
/** A request `admitDecision` admitted is no longer in flight. */
|
|
215
215
|
decisionSettled(): void;
|
|
216
|
+
/** Work the host does for a running step outside the driver's records (a model node's request to its model), in
|
|
217
|
+
* flight until the returned release: a pause waits for it, as for an effect, and is taken once it is released. A stop
|
|
218
|
+
* already taken refuses it. Released once; a second release does nothing. */
|
|
219
|
+
hold(): () => void;
|
|
216
220
|
/** A decision request's one outcome, with its spend (null when unknown), in the driver's next commit, together with
|
|
217
221
|
* whatever `alongside` records (the answer's spend, a route's decision): no commit holds the one without the other.
|
|
218
222
|
* It never applies a stop: a request the run asked ends whatever stops the run. */
|
package/dist/recovery/driver.js
CHANGED
|
@@ -1151,6 +1151,20 @@ export async function openRecovery(store, workflow, options) {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
/** A request `admitDecision` admitted is no longer in flight. */
|
|
1153
1153
|
decisionSettled() { settled(); },
|
|
1154
|
+
/** Work the host does for a running step outside the driver's records (a model node's request to its model), in
|
|
1155
|
+
* flight until the returned release: a pause waits for it, as for an effect, and is taken once it is released. A stop
|
|
1156
|
+
* already taken refuses it. Released once; a second release does nothing. */
|
|
1157
|
+
hold() {
|
|
1158
|
+
guard();
|
|
1159
|
+
inFlight += 1;
|
|
1160
|
+
let released = false;
|
|
1161
|
+
return () => {
|
|
1162
|
+
if (released)
|
|
1163
|
+
return;
|
|
1164
|
+
released = true;
|
|
1165
|
+
settled();
|
|
1166
|
+
};
|
|
1167
|
+
},
|
|
1154
1168
|
/** A decision request's one outcome, with its spend (null when unknown), in the driver's next commit, together with
|
|
1155
1169
|
* whatever `alongside` records (the answer's spend, a route's decision): no commit holds the one without the other.
|
|
1156
1170
|
* It never applies a stop: a request the run asked ends whatever stops the run. */
|