lua-cli 3.32.3 → 3.32.5

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.
@@ -1360,9 +1360,11 @@ export declare type ChatMessage = TextMessage | ImageMessage | FileMessage;
1360
1360
  /**
1361
1361
  * A container arm: a `StepRef` — a `createStep` object, or a string naming an entry declared elsewhere in the chain
1362
1362
  * (`agentStep` / `specialistStep` / `toolStep` / `workflow`, and since LUA-684 `approval` / `waitForSignal`, so an
1363
- * approval can run concurrently with another row) — or (B14 lands with WF-509) the two-element chain
1364
- * `[mapConfig, stepRef]`. A HITL arm takes the previous output as its payload, so it never heads a `[map, step]`
1365
- * chain, and a `loop` body cannot be one until the engine proves it (`node-type-unsupported-in-container`).
1363
+ * approval can run concurrently with another row) — or the two-element pair `[mapConfig, stepRef]`: the step runs
1364
+ * with the map as its own `input` (LUA-780 a `parallel` arm only; a `foreach` / `loop` body receives its item /
1365
+ * the previous output and refuses the pair, `mapping-placement`, unless the target is a `.workflow()` node, whose
1366
+ * `input` is the child run's). A HITL arm takes the previous output as its payload, so it never heads a
1367
+ * `[map, step]` pair, and a `loop` body cannot be one until the engine proves it (`node-type-unsupported-in-container`).
1366
1368
  */
1367
1369
  export declare type ContainerArm = StepRef | [LuaMapConfig, StepRef];
1368
1370
 
@@ -7312,11 +7314,21 @@ declare interface WorkflowRun {
7312
7314
  parentRunId?: string;
7313
7315
  correlationKey?: string;
7314
7316
  tags?: string[];
7317
+ /** R4 `gate` (02 §2.4). LUA-788: a `kind:'billing'` gate names the wallet's refusal (`code`), the held step and its expiry. */
7315
7318
  gate?: {
7316
7319
  kind: string;
7317
7320
  reason?: string;
7318
- since?: string;
7321
+ since?: string | number;
7322
+ code?: string;
7323
+ stepId?: string;
7324
+ expiresAt?: number;
7319
7325
  };
7326
+ /**
7327
+ * Server-decided (09 §9.6): `raise_budget` on a budget gate (LUA-665), `top_up` on a billing gate (LUA-788 — the
7328
+ * wallet clears it; the engine re-checks and resumes on its own), `cancel_again` / `force` under a pending cancel,
7329
+ * else `none`. Absent on an older server.
7330
+ */
7331
+ nextAction?: 'cancel_again' | 'force' | 'none' | 'raise_budget' | 'top_up';
7320
7332
  /**
7321
7333
  * The pending / audited cancel request (`runCancelView`): who asked and when; `wall` when it was the run wall's
7322
7334
  * own (LUA-686); LUA-704: `forcedBy` / `forcedAt` / `forceReason` on a forced terminal (`abandoned`, or