lua-cli 3.32.6 → 3.33.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.
@@ -140,11 +140,16 @@ export declare const exists: (ref: TypedRef<unknown>) => LuaPredicate;
140
140
  export declare const falsy: (ref: TypedRef<unknown>) => LuaPredicate;
141
141
 
142
142
  export declare interface ForeachOptions {
143
- /** Cluster G (B34): PURE builder lowering — emits `{ type:'mapping', id:'<foreachId>_items', mapConfig:{'': items} }` before the foreach entry. */
144
- items?: TypedRef<unknown[]> | {
145
- step: string;
146
- path: string;
147
- } | {
143
+ /**
144
+ * Cluster G (B34): PURE builder lowering — emits `{ type:'mapping', id:'<foreachId>_items', mapConfig:{'': items} }`
145
+ * before the foreach entry. The lowering carries a typed path ref (`init('rows')` / `step(x).path('list')`), an
146
+ * `initData` descriptor (`fromInit('rows')`; `path` optional = the whole input) or a single-step descriptor
147
+ * (`fromStep(x, 'list')`). The slot admits the whole `MapDescriptor` union because that is what every descriptor
148
+ * factory is declared to return (LUA-864) — the members the lowering does not carry (`value` / `template` /
149
+ * `fromRequest` / `rows` / `fromKnowledge`, a fan-in `fromStep([…])`) are `invalid-envelope` at build:
150
+ * `.map({ '': … }, { id })` before the foreach instead.
151
+ */
152
+ items?: TypedRef<unknown[]> | MapDescriptor | {
148
153
  initData: true;
149
154
  path?: string;
150
155
  };
@@ -385,8 +390,16 @@ export declare interface LuaWorkflowConfig {
385
390
  * for how many attempts the run may make.
386
391
  */
387
392
  budget?: Pick<WorkflowDefinitionBudget, 'maxCredits' | 'maxSteps' | 'maxDurationSeconds'>;
388
- /** verbatim LuaJob union (D12) → Job{kind:'workflow'} on publish */
389
- schedule?: JobSchedule;
393
+ /**
394
+ * verbatim LuaJob union (D12) → Job{kind:'workflow'} on publish. `runAs` (LUA-779) governs the copy a
395
+ * marketplace template freezes from this schedule: `'installer'` (the default when absent — every install's
396
+ * fires run as the person who installed, who gets the run card in their inbox) or `'system'` (the frozen copy
397
+ * runs user-less and unwatched — no inbox card for its runs; the install response says so). On this agent the
398
+ * schedule runs as you either way.
399
+ */
400
+ schedule?: JobSchedule & {
401
+ runAs?: 'installer' | 'system';
402
+ };
390
403
  backfillOnEnable?: {
391
404
  maxOccurrences?: number;
392
405
  };
@@ -730,7 +743,7 @@ declare type WorkflowJobHarness_2 = (typeof WORKFLOW_JOB_HARNESSES)[number];
730
743
 
731
744
  declare type WorkflowJobResources = (typeof WORKFLOW_JOB_RESOURCES)[number];
732
745
 
733
- export declare type WorkflowJobToolId = 'shell' | 'read' | 'write' | 'edit' | 'glob' | 'grep' | 'git' | 'gh' | 'fetch';
746
+ export declare type WorkflowJobToolId = 'shell' | 'read' | 'write' | 'edit' | 'glob' | 'grep' | 'git' | 'gh' | 'fetch' | 'ripwire';
734
747
 
735
748
  export declare interface WorkflowMergePolicy {
736
749
  strategy: 'rebase' | 'merge';