lua-cli 3.44.0 → 3.45.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.
@@ -720,6 +720,15 @@ export declare interface AgentsApi {
720
720
  promote(version: number, opts: {
721
721
  expectActive: number | null;
722
722
  }): Promise<unknown>;
723
+ /**
724
+ * WD — restore `version`, a version that was ACTIVE before, is OLDER than the active one and was active within the
725
+ * last 7 days (`supervision:rollback`, held only by a WATCHDOG grant; only from a workflow step the grant names).
726
+ * Compare-and-swap: refused (409 `supervision_rollback_conflict`) unless `expectActive` is the active version.
727
+ * Other refusals: `supervision_rollback_never_active`, `supervision_rollback_not_older`, `supervision_rollback_too_old`.
728
+ */
729
+ rollback(version: number, opts: {
730
+ expectActive: number;
731
+ }): Promise<unknown>;
723
732
  /**
724
733
  * Soft-delete `version` (`supervision:release`; only from a named workflow step). Refused
725
734
  * (409 `supervision_version_not_superseded`) unless the version is `superseded` — never the
@@ -788,10 +797,12 @@ export declare interface AgentsApi {
788
797
  * Publish workflow `version` (a semver). Compare-and-swap: refused (409 `WORKFLOW_DEPLOY_CONFLICT`, the
789
798
  * message names the live version) unless `expectActive` is the workflow's live version ID (null = none live).
790
799
  * A deploy also records a new active agent version, so a later `versions.promote` needs a fresh
791
- * `expectActive`.
800
+ * `expectActive`. `commitHash` is the optional source commit the deployed version was built from; it is
801
+ * forwarded unchanged, and when omitted the platform decides what to record.
792
802
  */
793
803
  deploy(workflowId: string, version: string, opts: {
794
804
  expectActive: string | null;
805
+ commitHash?: string;
795
806
  }): Promise<unknown>;
796
807
  };
797
808
  persona(agentId: string): {
@@ -825,6 +836,17 @@ export declare interface AgentsApi {
825
836
  keys: string[];
826
837
  }>;
827
838
  };
839
+ /**
840
+ * What the agent serves RIGHT NOW (`supervision:observe`): its live skills (each with its tools), the published
841
+ * persona, its pre/postprocessors and its `model`, read from each primitive's live pointer, never the latest push. Each
842
+ * `versionId` means what an agent version snapshot's does (skill = semver, processor = version id, persona =
843
+ * persona version id with the same `contentHash`), so you can diff live against a staged version even when the
844
+ * agent has no promoted agent version (`activeAgentVersion: null`). `model` is the model the agent runs now (`''`
845
+ * when unset, as in a snapshot): a promote applies the version's model, so compare it with the snapshot's. Metadata and hashes only: read code with
846
+ * `source(agentId).get(path)` and persona text with `persona(agentId).versions()`. Platform only: offline
847
+ * (`lua test` / `lua dev`) it throws `supervision_offline_unsupported`.
848
+ */
849
+ deployed(agentId: string): Promise<DeployedPrimitives>;
828
850
  /**
829
851
  * Supervision events of the target (`supervision:observe`). Each event of a subscribed kind
830
852
  * (`governance.blocked`, `workflow.run_failed`, `workflow.run_gated`, `connection.unhealthy`, …)
@@ -1201,6 +1223,12 @@ declare interface AgentToolScope_2 {
1201
1223
  connectionIds?: string[];
1202
1224
  /** Allowlisted skill ids (from the agent's `subAgent.skills`). */
1203
1225
  skillIds?: string[];
1226
+ /**
1227
+ * Allowlisted tool ids, as a workflow agent step's `toolScope.toolIds` declares them. Today the runtime applies
1228
+ * it to device tools only: when it names at least one `device__<device>__<command>` tool, only the named device
1229
+ * tools are offered; otherwise (absent, empty, or no device tool named) device tools are unaffected.
1230
+ */
1231
+ toolIds?: string[];
1204
1232
  }
1205
1233
 
1206
1234
  export declare const AI: AiApi;
@@ -1960,9 +1988,9 @@ export declare const CDN: {
1960
1988
  /**
1961
1989
  * Channel type.
1962
1990
  * Represents the communication channel through which a request originated.
1963
- * Known channels are typed as string literals, unrecognized channels are unknown.
1991
+ * Known channels are typed as string literals; unrecognised channels fall through as plain strings.
1964
1992
  */
1965
- export declare type Channel = 'web' | 'whatsapp' | 'facebook' | 'instagram' | 'slack' | 'teams' | 'front' | 'messagebird' | 'api' | 'dev' | 'email' | string;
1993
+ export declare type Channel = 'web' | 'pop' | 'phone' | 'meeting' | 'whatsapp' | 'facebook' | 'instagram' | 'slack' | 'teams' | 'front' | 'messagebird' | 'api' | 'dev' | 'email' | 'rcs' | 'sms' | 'mms' | 'imessage' | 'device' | string;
1966
1994
 
1967
1995
  /** Channels accepted by the v1 unified send. Warm-only channels (teams,
1968
1996
  * instagram, messenger) require a prior inbound conversation. */
@@ -2972,8 +3000,8 @@ export { DatasetRef }
2972
3000
  * paper_low: {
2973
3001
  * description: 'Fired when paper level drops below threshold',
2974
3002
  * payloadSchema: z.object({ level: z.number() }),
2975
- * execute: async (payload, { agent }) => {
2976
- * await agent.chat(\`Printer paper low: \${payload.level}%\`);
3003
+ * execute: async (payload, { device, trigger }) => {
3004
+ * return { device: device.name, trigger: trigger.name, level: payload.level };
2977
3005
  * },
2978
3006
  * },
2979
3007
  * },
@@ -2998,8 +3026,8 @@ export declare function defineDevice(config: LuaDeviceConfig): LuaDevice;
2998
3026
  * name: 'paper-low',
2999
3027
  * description: 'Fired when printer paper drops below threshold',
3000
3028
  * payloadSchema: z.object({ level: z.number() }),
3001
- * execute: async (payload, { agent, device }) => {
3002
- * await agent.chat(\`Printer \${device.name} paper low: \${payload.level}%\`);
3029
+ * execute: async (payload, { device, trigger }) => {
3030
+ * return { device: device.name, trigger: trigger.name, level: payload.level };
3003
3031
  * },
3004
3032
  * });
3005
3033
  * ```
@@ -3193,6 +3221,69 @@ export declare interface DeliveryView {
3193
3221
  failedAt?: string;
3194
3222
  }
3195
3223
 
3224
+ declare interface DeployedPersona {
3225
+ versionId: string;
3226
+ version?: number;
3227
+ /** The same hash an agent version snapshot stores for its persona. */
3228
+ contentHash: string;
3229
+ }
3230
+
3231
+ /**
3232
+ * SV (LUA-1080) — `primitives.deployed` / `Agents.deployed(id)`: the target's CURRENTLY DEPLOYED primitives, read from
3233
+ * each primitive's live pointer (never the latest push). An agent whose live state was deployed primitive by
3234
+ * primitive, with no promoted agent version, answers the same shape, so a supervisor can diff it against a staged
3235
+ * version.
3236
+ *
3237
+ * `versionId` follows the agent version snapshot's semantics entry by entry: a skill's is its semver, a processor's
3238
+ * the version document id, the persona's the PersonaVersion id with the same `contentHash`. Never code, tool source
3239
+ * or persona text: read those with `source.get` and `persona.versions`.
3240
+ */
3241
+ declare interface DeployedPrimitives {
3242
+ agentId: string;
3243
+ /** The promoted (`active`) agent version, or null when the live state is not a promoted version. */
3244
+ activeAgentVersion: number | null;
3245
+ /**
3246
+ * The model the agent runs now (`SubAgent.model`), with the agent version snapshot's meaning: a promote writes
3247
+ * `snapshot.model` here, and an unset model reads `''` as it does in a snapshot, so `model === snapshot.model`
3248
+ * holds exactly when the release would leave the model unchanged.
3249
+ */
3250
+ model: string;
3251
+ skills: DeployedSkill[];
3252
+ /** The served (`published`) persona, or null when none is published. */
3253
+ persona: DeployedPersona | null;
3254
+ preprocessors: DeployedProcessor[];
3255
+ postprocessors: DeployedProcessor[];
3256
+ }
3257
+
3258
+ declare interface DeployedProcessor {
3259
+ id: string;
3260
+ name?: string;
3261
+ /** The live version document id (`activeVersionId`). */
3262
+ versionId: string;
3263
+ version: string;
3264
+ codeHash?: string;
3265
+ }
3266
+
3267
+ declare interface DeployedSkill {
3268
+ skillId: string;
3269
+ name?: string;
3270
+ /** The live semver (`Skills.activeVersionId`), as an agent version snapshot pins it. */
3271
+ versionId: string;
3272
+ version: string;
3273
+ /** Where the skill came from: `cli`, `marketplace`, `manual` or `template`. */
3274
+ origin?: string;
3275
+ /** The deployed version's tools. Equal skill `versionId` ⇒ equal tools. */
3276
+ tools: DeployedTool[];
3277
+ }
3278
+
3279
+ declare interface DeployedTool {
3280
+ name: string;
3281
+ /** The uploaded bundle's content hash, when the version stores one. */
3282
+ codeHash?: string;
3283
+ /** Whether the author's TypeScript source is attached to this version. */
3284
+ hasSource: boolean;
3285
+ }
3286
+
3196
3287
  declare type Depth = [never, 0, 1, 2, 3, 4];
3197
3288
 
3198
3289
  /** Configuration for a single device command (agent → device) */
@@ -3218,13 +3309,20 @@ export declare interface DeviceTriggerConfig {
3218
3309
  payloadSchema?: ZodType;
3219
3310
  /**
3220
3311
  * Handler that runs on lua-core when the device fires this trigger.
3221
- * Has full access to agent context (can call agent.chat(), use tools, etc.)
3312
+ * Receives `(payload, { device, trigger })`; the returned value is the trigger result.
3222
3313
  */
3223
- execute?: (payload: any, context: {
3224
- agent: any;
3225
- device: any;
3226
- trigger: any;
3227
- }) => Promise<any>;
3314
+ execute?: (payload: any, context: DeviceTriggerContext) => Promise<any>;
3315
+ }
3316
+
3317
+ /** Context a device-trigger handler receives; mirrors what lua-core (execute.device-trigger.service.ts) and sandbox-runtime (wrapper-templates.ts) pass. */
3318
+ export declare interface DeviceTriggerContext {
3319
+ device: {
3320
+ name: string;
3321
+ };
3322
+ trigger: {
3323
+ name: string;
3324
+ triggerId: string;
3325
+ };
3228
3326
  }
3229
3327
 
3230
3328
  /** A matched org member and their shareable channel targets (empty when none shared). */
@@ -5030,8 +5128,8 @@ export declare class LuaDevice {
5030
5128
  * paper_low: {
5031
5129
  * description: 'Fired when paper level drops below threshold',
5032
5130
  * payloadSchema: z.object({ level: z.number(), threshold: z.number() }),
5033
- * execute: async (payload, { agent }) => {
5034
- * await agent.chat(\`Printer paper low: \${payload.level}%\`);
5131
+ * execute: async (payload, { device, trigger }) => {
5132
+ * return { device: device.name, trigger: trigger.name, level: payload.level };
5035
5133
  * },
5036
5134
  * },
5037
5135
  * },
@@ -5063,12 +5161,7 @@ export declare class LuaDeviceTrigger {
5063
5161
  readonly name: string;
5064
5162
  readonly description: string;
5065
5163
  readonly payloadSchema?: ZodType;
5066
- readonly execute: (payload: any, context: {
5067
- agent: any;
5068
- device: {
5069
- name: string;
5070
- };
5071
- }) => Promise<any>;
5164
+ readonly execute: (payload: any, context: DeviceTriggerContext) => Promise<any>;
5072
5165
  constructor(config: LuaDeviceTriggerConfig);
5073
5166
  }
5074
5167
 
@@ -5089,8 +5182,8 @@ export declare class LuaDeviceTrigger {
5089
5182
  * name: 'paper-low',
5090
5183
  * description: 'Fired when printer paper drops below threshold',
5091
5184
  * payloadSchema: z.object({ level: z.number() }),
5092
- * execute: async (payload, { agent, device }) => {
5093
- * await agent.chat(`Printer ${device.name} paper low: ${payload.level}%`);
5185
+ * execute: async (payload, { device, trigger }) => {
5186
+ * return { device: device.name, trigger: trigger.name, level: payload.level };
5094
5187
  * },
5095
5188
  * });
5096
5189
  * ```
@@ -5103,12 +5196,7 @@ export declare interface LuaDeviceTriggerConfig {
5103
5196
  /** Zod schema for trigger payload validation */
5104
5197
  payloadSchema?: ZodType;
5105
5198
  /** Function that executes when the trigger fires */
5106
- execute: (payload: any, context: {
5107
- agent: any;
5108
- device: {
5109
- name: string;
5110
- };
5111
- }) => Promise<any>;
5199
+ execute: (payload: any, context: DeviceTriggerContext) => Promise<any>;
5112
5200
  }
5113
5201
 
5114
5202
  /**
@@ -5859,14 +5947,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
5859
5947
  */
5860
5948
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5861
5949
  }, "strip", z.ZodTypeAny, {
5950
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5862
5951
  kind?: "plugin";
5863
5952
  provider?: "deepgram" | "elevenlabs";
5864
- class?: "LLM" | "STT" | "STTv2" | "TTS";
5865
5953
  options?: Record<string, unknown>;
5866
5954
  }, {
5955
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5867
5956
  kind?: "plugin";
5868
5957
  provider?: "deepgram" | "elevenlabs";
5869
- class?: "LLM" | "STT" | "STTv2" | "TTS";
5870
5958
  options?: Record<string, unknown>;
5871
5959
  }>, z.ZodObject<{
5872
5960
  kind: z.ZodLiteral<"realtime">;
@@ -5925,14 +6013,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
5925
6013
  */
5926
6014
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5927
6015
  }, "strip", z.ZodTypeAny, {
6016
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5928
6017
  kind?: "plugin";
5929
6018
  provider?: "deepgram" | "elevenlabs";
5930
- class?: "LLM" | "STT" | "STTv2" | "TTS";
5931
6019
  options?: Record<string, unknown>;
5932
6020
  }, {
6021
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5933
6022
  kind?: "plugin";
5934
6023
  provider?: "deepgram" | "elevenlabs";
5935
- class?: "LLM" | "STT" | "STTv2" | "TTS";
5936
6024
  options?: Record<string, unknown>;
5937
6025
  }>, z.ZodObject<{
5938
6026
  kind: z.ZodLiteral<"realtime">;
@@ -5991,14 +6079,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
5991
6079
  */
5992
6080
  options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5993
6081
  }, "strip", z.ZodTypeAny, {
6082
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5994
6083
  kind?: "plugin";
5995
6084
  provider?: "deepgram" | "elevenlabs";
5996
- class?: "LLM" | "STT" | "STTv2" | "TTS";
5997
6085
  options?: Record<string, unknown>;
5998
6086
  }, {
6087
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
5999
6088
  kind?: "plugin";
6000
6089
  provider?: "deepgram" | "elevenlabs";
6001
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6002
6090
  options?: Record<string, unknown>;
6003
6091
  }>, z.ZodObject<{
6004
6092
  kind: z.ZodLiteral<"realtime">;
@@ -6183,9 +6271,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6183
6271
  model?: string;
6184
6272
  options?: Record<string, unknown>;
6185
6273
  } | {
6274
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6186
6275
  kind?: "plugin";
6187
6276
  provider?: "deepgram" | "elevenlabs";
6188
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6189
6277
  options?: Record<string, unknown>;
6190
6278
  } | {
6191
6279
  kind?: "realtime";
@@ -6199,9 +6287,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6199
6287
  model?: string;
6200
6288
  options?: Record<string, unknown>;
6201
6289
  } | {
6290
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6202
6291
  kind?: "plugin";
6203
6292
  provider?: "deepgram" | "elevenlabs";
6204
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6205
6293
  options?: Record<string, unknown>;
6206
6294
  } | {
6207
6295
  kind?: "realtime";
@@ -6214,9 +6302,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6214
6302
  model?: string;
6215
6303
  options?: Record<string, unknown>;
6216
6304
  } | {
6305
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6217
6306
  kind?: "plugin";
6218
6307
  provider?: "deepgram" | "elevenlabs";
6219
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6220
6308
  options?: Record<string, unknown>;
6221
6309
  } | {
6222
6310
  kind?: "realtime";
@@ -6277,9 +6365,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6277
6365
  model?: string;
6278
6366
  options?: Record<string, unknown>;
6279
6367
  } | {
6368
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6280
6369
  kind?: "plugin";
6281
6370
  provider?: "deepgram" | "elevenlabs";
6282
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6283
6371
  options?: Record<string, unknown>;
6284
6372
  } | {
6285
6373
  kind?: "realtime";
@@ -6293,9 +6381,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6293
6381
  model?: string;
6294
6382
  options?: Record<string, unknown>;
6295
6383
  } | {
6384
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6296
6385
  kind?: "plugin";
6297
6386
  provider?: "deepgram" | "elevenlabs";
6298
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6299
6387
  options?: Record<string, unknown>;
6300
6388
  } | {
6301
6389
  kind?: "realtime";
@@ -6308,9 +6396,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6308
6396
  model?: string;
6309
6397
  options?: Record<string, unknown>;
6310
6398
  } | {
6399
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6311
6400
  kind?: "plugin";
6312
6401
  provider?: "deepgram" | "elevenlabs";
6313
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6314
6402
  options?: Record<string, unknown>;
6315
6403
  } | {
6316
6404
  kind?: "realtime";
@@ -6371,9 +6459,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6371
6459
  model?: string;
6372
6460
  options?: Record<string, unknown>;
6373
6461
  } | {
6462
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6374
6463
  kind?: "plugin";
6375
6464
  provider?: "deepgram" | "elevenlabs";
6376
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6377
6465
  options?: Record<string, unknown>;
6378
6466
  } | {
6379
6467
  kind?: "realtime";
@@ -6387,9 +6475,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6387
6475
  model?: string;
6388
6476
  options?: Record<string, unknown>;
6389
6477
  } | {
6478
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6390
6479
  kind?: "plugin";
6391
6480
  provider?: "deepgram" | "elevenlabs";
6392
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6393
6481
  options?: Record<string, unknown>;
6394
6482
  } | {
6395
6483
  kind?: "realtime";
@@ -6402,9 +6490,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6402
6490
  model?: string;
6403
6491
  options?: Record<string, unknown>;
6404
6492
  } | {
6493
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6405
6494
  kind?: "plugin";
6406
6495
  provider?: "deepgram" | "elevenlabs";
6407
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6408
6496
  options?: Record<string, unknown>;
6409
6497
  } | {
6410
6498
  kind?: "realtime";
@@ -6465,9 +6553,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6465
6553
  model?: string;
6466
6554
  options?: Record<string, unknown>;
6467
6555
  } | {
6556
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6468
6557
  kind?: "plugin";
6469
6558
  provider?: "deepgram" | "elevenlabs";
6470
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6471
6559
  options?: Record<string, unknown>;
6472
6560
  } | {
6473
6561
  kind?: "realtime";
@@ -6481,9 +6569,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6481
6569
  model?: string;
6482
6570
  options?: Record<string, unknown>;
6483
6571
  } | {
6572
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6484
6573
  kind?: "plugin";
6485
6574
  provider?: "deepgram" | "elevenlabs";
6486
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6487
6575
  options?: Record<string, unknown>;
6488
6576
  } | {
6489
6577
  kind?: "realtime";
@@ -6496,9 +6584,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
6496
6584
  model?: string;
6497
6585
  options?: Record<string, unknown>;
6498
6586
  } | {
6587
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
6499
6588
  kind?: "plugin";
6500
6589
  provider?: "deepgram" | "elevenlabs";
6501
- class?: "LLM" | "STT" | "STTv2" | "TTS";
6502
6590
  options?: Record<string, unknown>;
6503
6591
  } | {
6504
6592
  kind?: "realtime";
@@ -6954,7 +7042,11 @@ export declare type LuaWorkflowBuildCode = 'duplicate-step-id' | 'unknown-step-r
6954
7042
  */
6955
7043
  | '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'
6956
7044
  /** LUA-973: `remindAfterHours` is not a number of hours in 1..720 (`validateApprovalReminder`). */
6957
- | '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';
7045
+ | 'remind-after-invalid'
7046
+ /** BAC-2062: the builder mirror of the BAC-619 validator codes: a `waitForSignal` name a delivery refuses. */
7047
+ | 'signal-name-invalid'
7048
+ /** BAC-2062: a numeric approval / waitForSignal `timeoutHours` outside 1..720. */
7049
+ | 'timeout-hours-out-of-range' | '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';
6958
7050
 
6959
7051
  export declare interface LuaWorkflowBuilder {
6960
7052
  then(step: StepRef): this;
@@ -10783,9 +10875,6 @@ export declare const Workflows: WorkflowsApi;
10783
10875
  *
10784
10876
  * - `start` options are checked: an option key it does not know throws
10785
10877
  * `WorkflowApiError{ code:'VALIDATION_FAILED' }` naming it — never silently dropped.
10786
- *
10787
- * `startBatch`, `signalByKey`, `raiseBudget`, `setGoal` and `goals.*` are part of the
10788
- * frozen member list and throw `WORKFLOWS_API_UNAVAILABLE` until their routes ship.
10789
10878
  */
10790
10879
  export declare interface WorkflowsApi {
10791
10880
  start(nameOrId: string, input?: unknown, opts?: {
@@ -10883,6 +10972,11 @@ export declare interface WorkflowsApi {
10883
10972
  code?: string;
10884
10973
  }>;
10885
10974
  }>;
10975
+ /**
10976
+ * Raise a parked or in-flight run's caps (increases only). Only the run's creator/holder or an
10977
+ * org admin may raise it. Refusals are typed `WorkflowApiError`s: 400 `VALIDATION_FAILED` /
10978
+ * `CAP_EXCEEDED`, 403 `NOT_RUN_CREATOR`, 404 `RUN_NOT_FOUND`, 409 `BUDGET_NOT_RAISABLE`.
10979
+ */
10886
10980
  raiseBudget(runId: string, patch: {
10887
10981
  maxCredits?: number;
10888
10982
  maxSteps?: number;
@@ -10897,6 +10991,7 @@ export declare interface WorkflowsApi {
10897
10991
  } | {
10898
10992
  raised: false;
10899
10993
  reason: 'already_raised';
10994
+ runStatus?: WorkflowRunStatus;
10900
10995
  }>;
10901
10996
  setGoal(agentId: string, goal: Record<string, unknown>): Promise<Record<string, unknown>>;
10902
10997
  goals: {