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.
- package/dist/api-exports.d.ts +91 -18
- package/dist/api-exports.js +1138 -746
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +2117 -1281
- package/dist/index.js.map +1 -1
- package/dist/workflow-builder.d.ts +21 -8
- package/dist/workflow-builder.js +401 -258
- package/dist/workflow-builder.js.map +1 -1
- package/docs/CLI_REFERENCE.md +13 -11
- package/docs/README.md +2 -2
- package/docs/api/AI.md +9 -8
- package/docs/api/LuaAgent.md +5 -5
- package/docs/api/LuaWorkflow.md +16 -16
- package/docs/workflows/artefacts-and-datasets.md +4 -0
- package/docs/workflows/workspaces-and-long-steps.md +2 -2
- package/package.json +4 -3
- package/template/examples/workflows/linear-ready.trigger.ts +20 -9
- package/template/package.json +1 -1
|
@@ -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
|
-
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
/**
|
|
389
|
-
|
|
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';
|