lua-cli 3.42.0-beta.1 → 3.42.0-beta.2

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.
@@ -236,13 +236,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
236
236
  }, "strip", z.ZodTypeAny, {
237
237
  voice?: string;
238
238
  kind?: "inference";
239
- options?: Record<string, unknown>;
240
239
  model?: string;
240
+ options?: Record<string, unknown>;
241
241
  }, {
242
242
  voice?: string;
243
243
  kind?: "inference";
244
- options?: Record<string, unknown>;
245
244
  model?: string;
245
+ options?: Record<string, unknown>;
246
246
  }>, z.ZodObject<{
247
247
  kind: z.ZodLiteral<"plugin">;
248
248
  provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
@@ -256,13 +256,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
256
256
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
257
257
  }, "strip", z.ZodTypeAny, {
258
258
  class?: "LLM" | "STT" | "STTv2" | "TTS";
259
- provider?: "deepgram" | "elevenlabs";
260
259
  kind?: "plugin";
260
+ provider?: "deepgram" | "elevenlabs";
261
261
  options?: Record<string, unknown>;
262
262
  }, {
263
263
  class?: "LLM" | "STT" | "STTv2" | "TTS";
264
- provider?: "deepgram" | "elevenlabs";
265
264
  kind?: "plugin";
265
+ provider?: "deepgram" | "elevenlabs";
266
266
  options?: Record<string, unknown>;
267
267
  }>, z.ZodObject<{
268
268
  kind: z.ZodLiteral<"realtime">;
@@ -275,12 +275,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
275
275
  */
276
276
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
277
277
  }, "strip", z.ZodTypeAny, {
278
- provider?: "google" | "xai" | "openai";
279
278
  kind?: "realtime";
279
+ provider?: "openai" | "google" | "xai";
280
280
  options?: Record<string, unknown>;
281
281
  }, {
282
- provider?: "google" | "xai" | "openai";
283
282
  kind?: "realtime";
283
+ provider?: "openai" | "google" | "xai";
284
284
  options?: Record<string, unknown>;
285
285
  }>]>;
286
286
  stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -302,13 +302,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
302
302
  }, "strip", z.ZodTypeAny, {
303
303
  voice?: string;
304
304
  kind?: "inference";
305
- options?: Record<string, unknown>;
306
305
  model?: string;
306
+ options?: Record<string, unknown>;
307
307
  }, {
308
308
  voice?: string;
309
309
  kind?: "inference";
310
- options?: Record<string, unknown>;
311
310
  model?: string;
311
+ options?: Record<string, unknown>;
312
312
  }>, z.ZodObject<{
313
313
  kind: z.ZodLiteral<"plugin">;
314
314
  provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
@@ -322,13 +322,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
322
322
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
323
323
  }, "strip", z.ZodTypeAny, {
324
324
  class?: "LLM" | "STT" | "STTv2" | "TTS";
325
- provider?: "deepgram" | "elevenlabs";
326
325
  kind?: "plugin";
326
+ provider?: "deepgram" | "elevenlabs";
327
327
  options?: Record<string, unknown>;
328
328
  }, {
329
329
  class?: "LLM" | "STT" | "STTv2" | "TTS";
330
- provider?: "deepgram" | "elevenlabs";
331
330
  kind?: "plugin";
331
+ provider?: "deepgram" | "elevenlabs";
332
332
  options?: Record<string, unknown>;
333
333
  }>, z.ZodObject<{
334
334
  kind: z.ZodLiteral<"realtime">;
@@ -341,12 +341,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
341
341
  */
342
342
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
343
343
  }, "strip", z.ZodTypeAny, {
344
- provider?: "google" | "xai" | "openai";
345
344
  kind?: "realtime";
345
+ provider?: "openai" | "google" | "xai";
346
346
  options?: Record<string, unknown>;
347
347
  }, {
348
- provider?: "google" | "xai" | "openai";
349
348
  kind?: "realtime";
349
+ provider?: "openai" | "google" | "xai";
350
350
  options?: Record<string, unknown>;
351
351
  }>]>>;
352
352
  tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -368,13 +368,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
368
368
  }, "strip", z.ZodTypeAny, {
369
369
  voice?: string;
370
370
  kind?: "inference";
371
- options?: Record<string, unknown>;
372
371
  model?: string;
372
+ options?: Record<string, unknown>;
373
373
  }, {
374
374
  voice?: string;
375
375
  kind?: "inference";
376
- options?: Record<string, unknown>;
377
376
  model?: string;
377
+ options?: Record<string, unknown>;
378
378
  }>, z.ZodObject<{
379
379
  kind: z.ZodLiteral<"plugin">;
380
380
  provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
@@ -388,13 +388,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
388
388
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  class?: "LLM" | "STT" | "STTv2" | "TTS";
391
- provider?: "deepgram" | "elevenlabs";
392
391
  kind?: "plugin";
392
+ provider?: "deepgram" | "elevenlabs";
393
393
  options?: Record<string, unknown>;
394
394
  }, {
395
395
  class?: "LLM" | "STT" | "STTv2" | "TTS";
396
- provider?: "deepgram" | "elevenlabs";
397
396
  kind?: "plugin";
397
+ provider?: "deepgram" | "elevenlabs";
398
398
  options?: Record<string, unknown>;
399
399
  }>, z.ZodObject<{
400
400
  kind: z.ZodLiteral<"realtime">;
@@ -407,12 +407,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
407
407
  */
408
408
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
409
409
  }, "strip", z.ZodTypeAny, {
410
- provider?: "google" | "xai" | "openai";
411
410
  kind?: "realtime";
411
+ provider?: "openai" | "google" | "xai";
412
412
  options?: Record<string, unknown>;
413
413
  }, {
414
- provider?: "google" | "xai" | "openai";
415
414
  kind?: "realtime";
415
+ provider?: "openai" | "google" | "xai";
416
416
  options?: Record<string, unknown>;
417
417
  }>]>>;
418
418
  vad: z.ZodOptional<z.ZodString>;
@@ -576,47 +576,47 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
576
576
  stt?: {
577
577
  voice?: string;
578
578
  kind?: "inference";
579
- options?: Record<string, unknown>;
580
579
  model?: string;
580
+ options?: Record<string, unknown>;
581
581
  } | {
582
582
  class?: "LLM" | "STT" | "STTv2" | "TTS";
583
- provider?: "deepgram" | "elevenlabs";
584
583
  kind?: "plugin";
584
+ provider?: "deepgram" | "elevenlabs";
585
585
  options?: Record<string, unknown>;
586
586
  } | {
587
- provider?: "google" | "xai" | "openai";
588
587
  kind?: "realtime";
588
+ provider?: "openai" | "google" | "xai";
589
589
  options?: Record<string, unknown>;
590
590
  };
591
591
  volume?: number;
592
592
  llm?: {
593
593
  voice?: string;
594
594
  kind?: "inference";
595
- options?: Record<string, unknown>;
596
595
  model?: string;
596
+ options?: Record<string, unknown>;
597
597
  } | {
598
598
  class?: "LLM" | "STT" | "STTv2" | "TTS";
599
- provider?: "deepgram" | "elevenlabs";
600
599
  kind?: "plugin";
600
+ provider?: "deepgram" | "elevenlabs";
601
601
  options?: Record<string, unknown>;
602
602
  } | {
603
- provider?: "google" | "xai" | "openai";
604
603
  kind?: "realtime";
604
+ provider?: "openai" | "google" | "xai";
605
605
  options?: Record<string, unknown>;
606
606
  };
607
607
  tts?: {
608
608
  voice?: string;
609
609
  kind?: "inference";
610
- options?: Record<string, unknown>;
611
610
  model?: string;
611
+ options?: Record<string, unknown>;
612
612
  } | {
613
613
  class?: "LLM" | "STT" | "STTv2" | "TTS";
614
- provider?: "deepgram" | "elevenlabs";
615
614
  kind?: "plugin";
615
+ provider?: "deepgram" | "elevenlabs";
616
616
  options?: Record<string, unknown>;
617
617
  } | {
618
- provider?: "google" | "xai" | "openai";
619
618
  kind?: "realtime";
619
+ provider?: "openai" | "google" | "xai";
620
620
  options?: Record<string, unknown>;
621
621
  };
622
622
  vadOptions?: {
@@ -670,47 +670,47 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
670
670
  stt?: {
671
671
  voice?: string;
672
672
  kind?: "inference";
673
- options?: Record<string, unknown>;
674
673
  model?: string;
674
+ options?: Record<string, unknown>;
675
675
  } | {
676
676
  class?: "LLM" | "STT" | "STTv2" | "TTS";
677
- provider?: "deepgram" | "elevenlabs";
678
677
  kind?: "plugin";
678
+ provider?: "deepgram" | "elevenlabs";
679
679
  options?: Record<string, unknown>;
680
680
  } | {
681
- provider?: "google" | "xai" | "openai";
682
681
  kind?: "realtime";
682
+ provider?: "openai" | "google" | "xai";
683
683
  options?: Record<string, unknown>;
684
684
  };
685
685
  volume?: number;
686
686
  llm?: {
687
687
  voice?: string;
688
688
  kind?: "inference";
689
- options?: Record<string, unknown>;
690
689
  model?: string;
690
+ options?: Record<string, unknown>;
691
691
  } | {
692
692
  class?: "LLM" | "STT" | "STTv2" | "TTS";
693
- provider?: "deepgram" | "elevenlabs";
694
693
  kind?: "plugin";
694
+ provider?: "deepgram" | "elevenlabs";
695
695
  options?: Record<string, unknown>;
696
696
  } | {
697
- provider?: "google" | "xai" | "openai";
698
697
  kind?: "realtime";
698
+ provider?: "openai" | "google" | "xai";
699
699
  options?: Record<string, unknown>;
700
700
  };
701
701
  tts?: {
702
702
  voice?: string;
703
703
  kind?: "inference";
704
- options?: Record<string, unknown>;
705
704
  model?: string;
705
+ options?: Record<string, unknown>;
706
706
  } | {
707
707
  class?: "LLM" | "STT" | "STTv2" | "TTS";
708
- provider?: "deepgram" | "elevenlabs";
709
708
  kind?: "plugin";
709
+ provider?: "deepgram" | "elevenlabs";
710
710
  options?: Record<string, unknown>;
711
711
  } | {
712
- provider?: "google" | "xai" | "openai";
713
712
  kind?: "realtime";
713
+ provider?: "openai" | "google" | "xai";
714
714
  options?: Record<string, unknown>;
715
715
  };
716
716
  vadOptions?: {
@@ -764,47 +764,47 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
764
764
  stt?: {
765
765
  voice?: string;
766
766
  kind?: "inference";
767
- options?: Record<string, unknown>;
768
767
  model?: string;
768
+ options?: Record<string, unknown>;
769
769
  } | {
770
770
  class?: "LLM" | "STT" | "STTv2" | "TTS";
771
- provider?: "deepgram" | "elevenlabs";
772
771
  kind?: "plugin";
772
+ provider?: "deepgram" | "elevenlabs";
773
773
  options?: Record<string, unknown>;
774
774
  } | {
775
- provider?: "google" | "xai" | "openai";
776
775
  kind?: "realtime";
776
+ provider?: "openai" | "google" | "xai";
777
777
  options?: Record<string, unknown>;
778
778
  };
779
779
  volume?: number;
780
780
  llm?: {
781
781
  voice?: string;
782
782
  kind?: "inference";
783
- options?: Record<string, unknown>;
784
783
  model?: string;
784
+ options?: Record<string, unknown>;
785
785
  } | {
786
786
  class?: "LLM" | "STT" | "STTv2" | "TTS";
787
- provider?: "deepgram" | "elevenlabs";
788
787
  kind?: "plugin";
788
+ provider?: "deepgram" | "elevenlabs";
789
789
  options?: Record<string, unknown>;
790
790
  } | {
791
- provider?: "google" | "xai" | "openai";
792
791
  kind?: "realtime";
792
+ provider?: "openai" | "google" | "xai";
793
793
  options?: Record<string, unknown>;
794
794
  };
795
795
  tts?: {
796
796
  voice?: string;
797
797
  kind?: "inference";
798
- options?: Record<string, unknown>;
799
798
  model?: string;
799
+ options?: Record<string, unknown>;
800
800
  } | {
801
801
  class?: "LLM" | "STT" | "STTv2" | "TTS";
802
- provider?: "deepgram" | "elevenlabs";
803
802
  kind?: "plugin";
803
+ provider?: "deepgram" | "elevenlabs";
804
804
  options?: Record<string, unknown>;
805
805
  } | {
806
- provider?: "google" | "xai" | "openai";
807
806
  kind?: "realtime";
807
+ provider?: "openai" | "google" | "xai";
808
808
  options?: Record<string, unknown>;
809
809
  };
810
810
  vadOptions?: {
@@ -858,47 +858,47 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
858
858
  stt?: {
859
859
  voice?: string;
860
860
  kind?: "inference";
861
- options?: Record<string, unknown>;
862
861
  model?: string;
862
+ options?: Record<string, unknown>;
863
863
  } | {
864
864
  class?: "LLM" | "STT" | "STTv2" | "TTS";
865
- provider?: "deepgram" | "elevenlabs";
866
865
  kind?: "plugin";
866
+ provider?: "deepgram" | "elevenlabs";
867
867
  options?: Record<string, unknown>;
868
868
  } | {
869
- provider?: "google" | "xai" | "openai";
870
869
  kind?: "realtime";
870
+ provider?: "openai" | "google" | "xai";
871
871
  options?: Record<string, unknown>;
872
872
  };
873
873
  volume?: number;
874
874
  llm?: {
875
875
  voice?: string;
876
876
  kind?: "inference";
877
- options?: Record<string, unknown>;
878
877
  model?: string;
878
+ options?: Record<string, unknown>;
879
879
  } | {
880
880
  class?: "LLM" | "STT" | "STTv2" | "TTS";
881
- provider?: "deepgram" | "elevenlabs";
882
881
  kind?: "plugin";
882
+ provider?: "deepgram" | "elevenlabs";
883
883
  options?: Record<string, unknown>;
884
884
  } | {
885
- provider?: "google" | "xai" | "openai";
886
885
  kind?: "realtime";
886
+ provider?: "openai" | "google" | "xai";
887
887
  options?: Record<string, unknown>;
888
888
  };
889
889
  tts?: {
890
890
  voice?: string;
891
891
  kind?: "inference";
892
- options?: Record<string, unknown>;
893
892
  model?: string;
893
+ options?: Record<string, unknown>;
894
894
  } | {
895
895
  class?: "LLM" | "STT" | "STTv2" | "TTS";
896
- provider?: "deepgram" | "elevenlabs";
897
896
  kind?: "plugin";
897
+ provider?: "deepgram" | "elevenlabs";
898
898
  options?: Record<string, unknown>;
899
899
  } | {
900
- provider?: "google" | "xai" | "openai";
901
900
  kind?: "realtime";
901
+ provider?: "openai" | "google" | "xai";
902
902
  options?: Record<string, unknown>;
903
903
  };
904
904
  vadOptions?: {
@@ -108,6 +108,14 @@ export declare interface ApprovalOptions {
108
108
  fourEyes?: WorkflowFourEyes;
109
109
  /** default 168; a binding is resolved at suspend time and must yield 1..720 */
110
110
  timeoutHours?: number | TemplateBinding;
111
+ /**
112
+ * Re-send the approval push to the approvers who have not decided yet, every `remindAfterHours` hours while the
113
+ * approval is pending — at most 3 reminders per ask (an escalation hop starts a new ask), and never after the
114
+ * deadline. A plain number in 1..720 (no binding); a value at or above a numeric `timeoutHours` never fires (a
115
+ * push warning). Absent ⇒ no reminder. Reminders ride the approval push, so they reach the approvers an agent's
116
+ * approval routing names (Settings → Approvals); they are sent on the platform's sweep cadence.
117
+ */
118
+ remindAfterHours?: number;
111
119
  /** 'deny' (default) | 'cancel-run' | 'fail' | a chain of ≤ 3 hops ending in one terminal member */
112
120
  onTimeout?: WorkflowSuspendTimeoutChain;
113
121
  /** default 'continue' (denial is data unless 'fail') */
@@ -347,7 +355,9 @@ export declare type LuaWorkflowBuildCode = 'duplicate-step-id' | 'unknown-step-r
347
355
  * chain — the code is `node-type-unsupported-in-container`. Kept for one minor so a consumer switching on the
348
356
  * union still compiles; removed in the next.
349
357
  */
350
- | 'approval-inside-container' | 'node-type-unsupported-in-container' | 'empty-graph' | 'ephemeral-role-too-long' | 'role-ref-and-inline' | 'approver-excludes-only-candidate' | 'four-eyes-requires-editable' | 'escalation-chain-not-terminal' | 'escalation-chain-too-long' | 'editable-path-invalid' | 'env-template-secret-key' | 'invalid-envelope' | 'invalid-step' | 'invalid-step-id' | 'invalid-workflow-name' | 'schedule-input-required' | 'schedule-input-invalid' | 'hitl-duration-defaulted' | 'WORKFLOW_UNPLACED_STEP';
358
+ | 'approval-inside-container' | 'node-type-unsupported-in-container' | 'empty-graph' | 'ephemeral-role-too-long' | 'role-ref-and-inline' | 'approver-excludes-only-candidate' | 'four-eyes-requires-editable' | 'escalation-chain-not-terminal' | 'escalation-chain-too-long'
359
+ /** LUA-973: `remindAfterHours` is not a number of hours in 1..720 (`validateApprovalReminder`). */
360
+ | 'remind-after-invalid' | 'editable-path-invalid' | 'env-template-secret-key' | 'invalid-envelope' | 'invalid-step' | 'invalid-step-id' | 'invalid-workflow-name' | 'schedule-input-required' | 'schedule-input-invalid' | 'hitl-duration-defaulted' | 'WORKFLOW_UNPLACED_STEP';
351
361
 
352
362
  export declare interface LuaWorkflowBuilder {
353
363
  then(step: StepRef): this;
@@ -708,8 +718,10 @@ declare const WORKFLOW_AGENT_EFFORTS: readonly ["low", "medium", "high"];
708
718
  /** `approval.onDeny` (§6.4.11 deny-as-data): `'fail'` fails the step on a denial; default `'continue'`. */
709
719
  declare const WORKFLOW_APPROVAL_ON_DENY: readonly ["fail", "continue"];
710
720
 
721
+ /** Default `budget.maxDurationSeconds` of a workflow run (7 days). @catalogLimit workflow.run.defaultMaxDuration seconds */
711
722
  export declare const WORKFLOW_DEFAULT_MAX_DURATION_SECONDS = 604800;
712
723
 
724
+ /** Default `budget.maxDurationSeconds` when the graph can park on a human (approval, signal, suspend): 30 days. @catalogLimit workflow.run.hitlDefaultMaxDuration seconds */
713
725
  export declare const WORKFLOW_HITL_MAX_DURATION_SECONDS = 2592000;
714
726
 
715
727
  /** D19-r2 (B22; 05 §5.17.6 Harness row) — both behind one `CodingHarness { run(turn) }`. */
@@ -1098,6 +1110,7 @@ export declare type WorkspaceSpec = {
1098
1110
  ref?: string | TemplateBinding;
1099
1111
  credentialsRef?: string;
1100
1112
  sizeGb?: number;
1113
+ /** Hours a released or held volume is kept before expiry — default 72 h (24 h for a completed `keepArtefacts` volume), platform ceiling 168 h; once the platform enables `LUA_WF_WORKSPACE_TTL_CEILING_ENFORCE` a larger value is refused at push with `workspace-ttl-exceeds-cap` or clamped at run time. */
1101
1114
  ttlHours?: number;
1102
1115
  verify?: string;
1103
1116
  keepArtefacts?: boolean;
@@ -1105,9 +1118,10 @@ export declare type WorkspaceSpec = {
1105
1118
  } | {
1106
1119
  kind: 'empty';
1107
1120
  sizeGb?: number;
1121
+ /** Hours a released or held volume is kept before expiry — default 72 h (24 h for a completed `keepArtefacts` volume), platform ceiling 168 h; once the platform enables `LUA_WF_WORKSPACE_TTL_CEILING_ENFORCE` a larger value is refused at push with `workspace-ttl-exceeds-cap` or clamped at run time. */
1108
1122
  ttlHours?: number;
1109
1123
  /**
1110
- * Keep the volume after the run completes: held until `ttlHours` (24 h when undeclared), then expired. A kept
1124
+ * Keep the volume after the run completes: held until `ttlHours` (24 h when undeclared; the platform ceiling is 168 h once enforced), then expired. A kept
1111
1125
  * volume holds one of the organisation's workspace slots (`maxWorkspacesPerOrg`, 10 by default) until then.
1112
1126
  */
1113
1127
  keepArtefacts?: boolean;