lua-cli 3.35.0 → 3.37.0

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.
@@ -246,13 +246,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  provider?: "deepgram" | "elevenlabs";
248
248
  kind?: "plugin";
249
- options?: Record<string, unknown>;
250
249
  class?: "LLM" | "STT" | "STTv2" | "TTS";
250
+ options?: Record<string, unknown>;
251
251
  }, {
252
252
  provider?: "deepgram" | "elevenlabs";
253
253
  kind?: "plugin";
254
- options?: Record<string, unknown>;
255
254
  class?: "LLM" | "STT" | "STTv2" | "TTS";
255
+ options?: Record<string, unknown>;
256
256
  }>, z.ZodObject<{
257
257
  kind: z.ZodLiteral<"realtime">;
258
258
  provider: z.ZodEnum<["openai", "google", "xai"]>;
@@ -312,13 +312,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
312
312
  }, "strip", z.ZodTypeAny, {
313
313
  provider?: "deepgram" | "elevenlabs";
314
314
  kind?: "plugin";
315
- options?: Record<string, unknown>;
316
315
  class?: "LLM" | "STT" | "STTv2" | "TTS";
316
+ options?: Record<string, unknown>;
317
317
  }, {
318
318
  provider?: "deepgram" | "elevenlabs";
319
319
  kind?: "plugin";
320
- options?: Record<string, unknown>;
321
320
  class?: "LLM" | "STT" | "STTv2" | "TTS";
321
+ options?: Record<string, unknown>;
322
322
  }>, z.ZodObject<{
323
323
  kind: z.ZodLiteral<"realtime">;
324
324
  provider: z.ZodEnum<["openai", "google", "xai"]>;
@@ -378,13 +378,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
378
378
  }, "strip", z.ZodTypeAny, {
379
379
  provider?: "deepgram" | "elevenlabs";
380
380
  kind?: "plugin";
381
- options?: Record<string, unknown>;
382
381
  class?: "LLM" | "STT" | "STTv2" | "TTS";
382
+ options?: Record<string, unknown>;
383
383
  }, {
384
384
  provider?: "deepgram" | "elevenlabs";
385
385
  kind?: "plugin";
386
- options?: Record<string, unknown>;
387
386
  class?: "LLM" | "STT" | "STTv2" | "TTS";
387
+ options?: Record<string, unknown>;
388
388
  }>, z.ZodObject<{
389
389
  kind: z.ZodLiteral<"realtime">;
390
390
  provider: z.ZodEnum<["openai", "google", "xai"]>;
@@ -570,8 +570,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
570
570
  } | {
571
571
  provider?: "deepgram" | "elevenlabs";
572
572
  kind?: "plugin";
573
- options?: Record<string, unknown>;
574
573
  class?: "LLM" | "STT" | "STTv2" | "TTS";
574
+ options?: Record<string, unknown>;
575
575
  } | {
576
576
  provider?: "google" | "xai" | "openai";
577
577
  kind?: "realtime";
@@ -586,8 +586,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
586
586
  } | {
587
587
  provider?: "deepgram" | "elevenlabs";
588
588
  kind?: "plugin";
589
- options?: Record<string, unknown>;
590
589
  class?: "LLM" | "STT" | "STTv2" | "TTS";
590
+ options?: Record<string, unknown>;
591
591
  } | {
592
592
  provider?: "google" | "xai" | "openai";
593
593
  kind?: "realtime";
@@ -601,8 +601,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
601
601
  } | {
602
602
  provider?: "deepgram" | "elevenlabs";
603
603
  kind?: "plugin";
604
- options?: Record<string, unknown>;
605
604
  class?: "LLM" | "STT" | "STTv2" | "TTS";
605
+ options?: Record<string, unknown>;
606
606
  } | {
607
607
  provider?: "google" | "xai" | "openai";
608
608
  kind?: "realtime";
@@ -664,8 +664,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
664
664
  } | {
665
665
  provider?: "deepgram" | "elevenlabs";
666
666
  kind?: "plugin";
667
- options?: Record<string, unknown>;
668
667
  class?: "LLM" | "STT" | "STTv2" | "TTS";
668
+ options?: Record<string, unknown>;
669
669
  } | {
670
670
  provider?: "google" | "xai" | "openai";
671
671
  kind?: "realtime";
@@ -680,8 +680,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
680
680
  } | {
681
681
  provider?: "deepgram" | "elevenlabs";
682
682
  kind?: "plugin";
683
- options?: Record<string, unknown>;
684
683
  class?: "LLM" | "STT" | "STTv2" | "TTS";
684
+ options?: Record<string, unknown>;
685
685
  } | {
686
686
  provider?: "google" | "xai" | "openai";
687
687
  kind?: "realtime";
@@ -695,8 +695,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
695
695
  } | {
696
696
  provider?: "deepgram" | "elevenlabs";
697
697
  kind?: "plugin";
698
- options?: Record<string, unknown>;
699
698
  class?: "LLM" | "STT" | "STTv2" | "TTS";
699
+ options?: Record<string, unknown>;
700
700
  } | {
701
701
  provider?: "google" | "xai" | "openai";
702
702
  kind?: "realtime";
@@ -758,8 +758,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
758
758
  } | {
759
759
  provider?: "deepgram" | "elevenlabs";
760
760
  kind?: "plugin";
761
- options?: Record<string, unknown>;
762
761
  class?: "LLM" | "STT" | "STTv2" | "TTS";
762
+ options?: Record<string, unknown>;
763
763
  } | {
764
764
  provider?: "google" | "xai" | "openai";
765
765
  kind?: "realtime";
@@ -774,8 +774,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
774
774
  } | {
775
775
  provider?: "deepgram" | "elevenlabs";
776
776
  kind?: "plugin";
777
- options?: Record<string, unknown>;
778
777
  class?: "LLM" | "STT" | "STTv2" | "TTS";
778
+ options?: Record<string, unknown>;
779
779
  } | {
780
780
  provider?: "google" | "xai" | "openai";
781
781
  kind?: "realtime";
@@ -789,8 +789,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
789
789
  } | {
790
790
  provider?: "deepgram" | "elevenlabs";
791
791
  kind?: "plugin";
792
- options?: Record<string, unknown>;
793
792
  class?: "LLM" | "STT" | "STTv2" | "TTS";
793
+ options?: Record<string, unknown>;
794
794
  } | {
795
795
  provider?: "google" | "xai" | "openai";
796
796
  kind?: "realtime";
@@ -852,8 +852,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
852
852
  } | {
853
853
  provider?: "deepgram" | "elevenlabs";
854
854
  kind?: "plugin";
855
- options?: Record<string, unknown>;
856
855
  class?: "LLM" | "STT" | "STTv2" | "TTS";
856
+ options?: Record<string, unknown>;
857
857
  } | {
858
858
  provider?: "google" | "xai" | "openai";
859
859
  kind?: "realtime";
@@ -868,8 +868,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
868
868
  } | {
869
869
  provider?: "deepgram" | "elevenlabs";
870
870
  kind?: "plugin";
871
- options?: Record<string, unknown>;
872
871
  class?: "LLM" | "STT" | "STTv2" | "TTS";
872
+ options?: Record<string, unknown>;
873
873
  } | {
874
874
  provider?: "google" | "xai" | "openai";
875
875
  kind?: "realtime";
@@ -883,8 +883,8 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
883
883
  } | {
884
884
  provider?: "deepgram" | "elevenlabs";
885
885
  kind?: "plugin";
886
- options?: Record<string, unknown>;
887
886
  class?: "LLM" | "STT" | "STTv2" | "TTS";
887
+ options?: Record<string, unknown>;
888
888
  } | {
889
889
  provider?: "google" | "xai" | "openai";
890
890
  kind?: "realtime";
@@ -48,6 +48,30 @@ export declare interface AgentStepOptions {
48
48
  */
49
49
  maxMessages?: number;
50
50
  maxInputTokens?: number;
51
+ /**
52
+ * What this step DOES: `classify` | `extract` | `transform` | `draft` | `research` | `reason` | `code` |
53
+ * `judge`. On a PUSHED definition it must come with a `model` — a static `taskClass` with none is refused
54
+ * `task-class-without-model`, because nothing maps a task class to a model at dispatch.
55
+ */
56
+ taskClass?: WorkflowTaskClass;
57
+ /**
58
+ * Traits the chosen model must have: `vision` | `structured` | `largeContext` | `codeExecution`. Write these
59
+ * rather than pinning a code that may retire. A step with an `outputSchema` needs `structured`; one reading
60
+ * images needs `vision`.
61
+ */
62
+ requires?: WorkflowModelTrait[];
63
+ /** One line on why this class or pin was chosen — at most 160 characters, plain text, never parsed. */
64
+ modelReason?: string;
65
+ /**
66
+ * Reasoning effort for this step: `low` for fast work and tool-heavy orchestration, `high` for `reason` and
67
+ * `code`, `medium` otherwise. Inert on rows whose ladder is toggle-only.
68
+ *
69
+ * COMPATIBILITY: writing it changes nothing on its own. A plain `lua push` keeps the envelope at
70
+ * `luaWorkflow: 1`, and the executor forwards effort only when the run's frozen snapshot says 2 — opted into
71
+ * by `lua push --apply-effort` or by a new compose while assignment is on (plan 6.4, "The effort marker").
72
+ * Until then the value is carried and estimated, never applied.
73
+ */
74
+ effort?: WorkflowAgentEffort;
51
75
  }
52
76
 
53
77
  export declare interface AgentToolScope {
@@ -614,6 +638,9 @@ export declare interface WaitForSignalOptions {
614
638
  acceptedSources?: Array<'webhook' | 'api' | 'user' | 'agent'>;
615
639
  }
616
640
 
641
+ /** `agent.effort` — the reasoning-effort hint a graph agent node may carry (lua-core's envelope member). */
642
+ declare const WORKFLOW_AGENT_EFFORTS: readonly ["low", "medium", "high"];
643
+
617
644
  /** `approval.onDeny` (§6.4.11 deny-as-data): `'fail'` fails the step on a denial; default `'continue'`. */
618
645
  declare const WORKFLOW_APPROVAL_ON_DENY: readonly ["fail", "continue"];
619
646
 
@@ -627,6 +654,13 @@ declare const WORKFLOW_JOB_HARNESSES: readonly ["claude-code", "generic"];
627
654
  /** `jobResources` (05 §5.17): the Job-tier pod size class. Default `'small'` at spawn. */
628
655
  declare const WORKFLOW_JOB_RESOURCES: readonly ["small", "medium", "large"];
629
656
 
657
+ /**
658
+ * Required traits — capabilities the chosen model MUST have (`AgentNode.requires`), so a composed step can
659
+ * say "needs vision" without pinning a code that may retire. Derived from the catalog row's `media`,
660
+ * `structuredOutput`, `contextWindow` and `tools.codeExecution` (plan 6.2).
661
+ */
662
+ declare const WORKFLOW_MODEL_TRAITS: readonly ["vision", "structured", "largeContext", "codeExecution"];
663
+
630
664
  /** What the FINAL failure of a step does to the run: `'park'` → the §06 §6.3.5 exception gate. Default `'fail'`. */
631
665
  declare const WORKFLOW_ON_ERROR: readonly ["fail", "continue", "park"];
632
666
 
@@ -639,9 +673,18 @@ declare const WORKFLOW_SIDE_EFFECTS: readonly ["none", "external"];
639
673
  /** `waitForSignal.onTimeout`: default `'fail'`; `'continue'` ⇒ output `{received:false, timedOut:true}`. */
640
674
  declare const WORKFLOW_SIGNAL_ON_TIMEOUT: readonly ["fail", "continue"];
641
675
 
676
+ /**
677
+ * Task class — what a step DOES, the composer's primary output for model choice (`AgentNode.taskClass`).
678
+ * The platform maps a task class to a model class (plan 6.3's default `classMap`; an org may override it),
679
+ * so a composer never has to reason about concrete models. Eight values to start.
680
+ */
681
+ declare const WORKFLOW_TASK_CLASSES: readonly ["classify", "extract", "transform", "draft", "research", "reason", "code", "judge"];
682
+
642
683
  /** The only tier a node may DECLARE (`tier:'job'`, implied by `workspace`); the worker tier is the absence. */
643
684
  declare const WORKFLOW_TIERS: readonly ["job"];
644
685
 
686
+ declare type WorkflowAgentEffort = (typeof WORKFLOW_AGENT_EFFORTS)[number];
687
+
645
688
  declare type WorkflowApprovalOnDeny = (typeof WORKFLOW_APPROVAL_ON_DENY)[number];
646
689
 
647
690
  export declare type WorkflowApproverSpec = 'creator' | 'org-admins' | {
@@ -750,6 +793,8 @@ export declare interface WorkflowMergePolicy {
750
793
  onConflict: 'fail' | 'agent';
751
794
  }
752
795
 
796
+ declare type WorkflowModelTrait = (typeof WORKFLOW_MODEL_TRAITS)[number];
797
+
753
798
  declare type WorkflowOnError = (typeof WORKFLOW_ON_ERROR)[number];
754
799
 
755
800
  export declare interface WorkflowOutputVisibility {
@@ -974,6 +1019,8 @@ export declare type WorkflowSuspendTimeoutChainMember = 'deny' | 'cancel-run' |
974
1019
  timeoutHours: number;
975
1020
  };
976
1021
 
1022
+ declare type WorkflowTaskClass = (typeof WORKFLOW_TASK_CLASSES)[number];
1023
+
977
1024
  declare type WorkflowTier = (typeof WORKFLOW_TIERS)[number];
978
1025
 
979
1026
  export declare type WorkflowWorkspaceBackend = 'ebs' | 'efs' | 's3';