@mstar-harness/engine 3.9.2 → 3.9.4
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/audit.d.ts +8 -7
- package/dist/audit.js +908 -170
- package/dist/coordination-write.d.ts +170 -0
- package/dist/coordination.d.ts +284 -0
- package/dist/engine.js +3558 -469
- package/dist/index.d.ts +6 -3
- package/dist/iteration.d.ts +1 -2
- package/dist/lease.d.ts +13 -1
- package/dist/lint.d.ts +50 -2
- package/dist/migrate.d.ts +8 -0
- package/dist/path.d.ts +17 -8
- package/dist/project.d.ts +2 -2
- package/dist/status.d.ts +21 -1
- package/dist/workflow.d.ts +52 -3
- package/package.json +1 -1
package/dist/audit.d.ts
CHANGED
|
@@ -246,16 +246,17 @@ export type PromoteAuditPlansOptions = {
|
|
|
246
246
|
* same root lock `registerWorkflow` uses — so the guard is check-then-act
|
|
247
247
|
* safe: two concurrent same-id promotes cannot both pass it (one writes
|
|
248
248
|
* and registers; the other re-checks under the lock and refuses). The
|
|
249
|
-
* snapshot is written
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
249
|
+
* snapshot is written create-only through the routed
|
|
250
|
+
* `writeWorkflowSnapshot(snapshot, dir, { createOnly: true })`, whose own
|
|
251
|
+
* snapshot-dir lock nests inside the root lock (root → snapshot is the
|
|
252
|
+
* documented acquisition order). The root upsert replicates
|
|
253
|
+
* `registerWorkflow` semantics inline
|
|
253
254
|
* via the shared `registerWorkflowEntryLocked` helper (calling
|
|
254
255
|
* `registerWorkflow` itself would re-enter the non-reentrant root lock).
|
|
255
256
|
*
|
|
256
|
-
* On any failure inside the lock, the
|
|
257
|
-
* workflow dir are rolled back so
|
|
258
|
-
* conflict is resolved.
|
|
257
|
+
* On any failure inside the lock, the snapshot this call created (and only
|
|
258
|
+
* that exact byte version) plus the now-empty workflow dir are rolled back so
|
|
259
|
+
* a retry converges after the root conflict is resolved.
|
|
259
260
|
*/
|
|
260
261
|
export declare function promoteAuditPlans(outDir: string, selected: readonly string[], options: PromoteAuditPlansOptions): Promise<{
|
|
261
262
|
workflowId: string;
|