lua-cli 3.32.2 → 3.32.3

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.
@@ -365,13 +365,17 @@ export declare interface LuaWorkflowConfig {
365
365
  * `maxDurationSeconds` default 604 800; 2 592 000 when the graph contains an approval / waitForSignal / suspend-capable
366
366
  * step (P1-4). The three members the SDK forwards, spelled by the ONE definition budget (`WorkflowDefinitionBudget`).
367
367
  *
368
- * `maxCredits` counts agent steps, never tokens (LUA-708): an inline agent step settles a flat 1 credit when it
369
- * completes, a `tier:'job'` attempt a flat 4 at its first claim (a retry is a new attempt). The run parks on a
370
- * budget gate (`nextAction:'raise_budget'`, `lua workflows raise-budget`) when what remains is under the next agent
371
- * step's reserve so `maxCredits: 40` buys ten Job-tier attempts, and a value under 4 never dispatches one. Each
372
- * attempt then runs to its own wall (`timeoutSeconds`), `maxInputTokens` (default 4M $1–13 on a Sonnet-class
373
- * model), `maxMessages` and `maxTurns`; nothing meters its tokens against the credits mid-attempt. Size
374
- * `maxInputTokens` for what one attempt may cost and `maxCredits` for how many attempts the run may make.
368
+ * `maxCredits` never meters tokens (LUA-708). Flat metering (every run while `LUA_WORKFLOWS_METERING_V2` is off):
369
+ * an inline agent step settles a flat 1 credit when it completes, a `tier:'job'` attempt a flat 4 at its first
370
+ * claim (a retry is a new attempt) — so `maxCredits: 40` buys ten Job-tier attempts, and a value under 4 never
371
+ * dispatches one. Priced metering (LUA-724, the flag on): an inline agent step settles what chat charged for the
372
+ * turn one credit per model call on the legacy plan, `tier × model multiplier` actions on a seat plan (then the
373
+ * cap is compared in actions) and `lua workflows status` says which mode a run used (`usage.metering`). Either
374
+ * way the run parks on a budget gate (`nextAction:'raise_budget'`, `lua workflows raise-budget`) when what remains
375
+ * is under the next agent step's reserve. Each Job-tier attempt then runs to its own wall (`timeoutSeconds`),
376
+ * `maxInputTokens` (default 4M ≈ $1–13 on a Sonnet-class model), `maxMessages` and `maxTurns`; nothing meters its
377
+ * tokens against the credits mid-attempt. Size `maxInputTokens` for what one attempt may cost and `maxCredits`
378
+ * for how many attempts the run may make.
375
379
  */
376
380
  budget?: Pick<WorkflowDefinitionBudget, 'maxCredits' | 'maxSteps' | 'maxDurationSeconds'>;
377
381
  /** verbatim LuaJob union (D12) → Job{kind:'workflow'} on publish */