lua-cli 3.49.0 → 3.49.1
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 +22 -3
- package/dist/api-exports.js +331 -261
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +1086 -811
- package/dist/index.js.map +1 -1
- package/dist/workflow-builder.d.ts +2 -0
- package/dist/workflow-builder.js +25 -0
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +3 -3
- package/docs/api/LuaDecision.md +2 -2
- package/docs/api/LuaWorkflow.md +17 -1
- package/docs/api/Workflows.md +2 -1
- package/package.json +2 -2
- package/template/package.json +1 -1
|
@@ -867,6 +867,8 @@ export declare interface WorkflowGoalEnvelope {
|
|
|
867
867
|
maxRuns: number;
|
|
868
868
|
budget?: LuaWorkflowConfig['budget'];
|
|
869
869
|
maxTotalCredits?: number;
|
|
870
|
+
/** The organisation's budget unit, as reported by the server (read-only; never sent on create). */
|
|
871
|
+
budgetUnit?: 'actions' | 'credits';
|
|
870
872
|
initialState?: Record<string, unknown>;
|
|
871
873
|
}
|
|
872
874
|
|
package/dist/workflow-builder.js
CHANGED
|
@@ -1188,6 +1188,31 @@ var DECISION_PROVIDERS = [
|
|
|
1188
1188
|
"openai"
|
|
1189
1189
|
];
|
|
1190
1190
|
var DECISION_NAME_PATTERN = /^[a-zA-Z0-9_-]{1,64}$/;
|
|
1191
|
+
var DECISION_SANDBOX_TOOL_SEPARATOR = "#";
|
|
1192
|
+
function formatDecisionSandboxPrimitive(name, tool) {
|
|
1193
|
+
return tool ? `${name}${DECISION_SANDBOX_TOOL_SEPARATOR}${tool}` : name;
|
|
1194
|
+
}
|
|
1195
|
+
__name(formatDecisionSandboxPrimitive, "formatDecisionSandboxPrimitive");
|
|
1196
|
+
__name4(formatDecisionSandboxPrimitive, "formatDecisionSandboxPrimitive");
|
|
1197
|
+
function parseDecisionSandboxPrimitive(value3) {
|
|
1198
|
+
const at = value3.indexOf(DECISION_SANDBOX_TOOL_SEPARATOR);
|
|
1199
|
+
const name = at < 0 ? value3 : value3.slice(0, at);
|
|
1200
|
+
const tool = at < 0 ? "" : value3.slice(at + DECISION_SANDBOX_TOOL_SEPARATOR.length);
|
|
1201
|
+
if (name.length === 0) return void 0;
|
|
1202
|
+
return tool.length > 0 ? {
|
|
1203
|
+
name,
|
|
1204
|
+
tool
|
|
1205
|
+
} : {
|
|
1206
|
+
name
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
__name(parseDecisionSandboxPrimitive, "parseDecisionSandboxPrimitive");
|
|
1210
|
+
__name4(parseDecisionSandboxPrimitive, "parseDecisionSandboxPrimitive");
|
|
1211
|
+
function decisionPublishStampKey(agentId2) {
|
|
1212
|
+
return `decisions:stamp:${agentId2}`;
|
|
1213
|
+
}
|
|
1214
|
+
__name(decisionPublishStampKey, "decisionPublishStampKey");
|
|
1215
|
+
__name4(decisionPublishStampKey, "decisionPublishStampKey");
|
|
1191
1216
|
var DECISION_LIMITS = {
|
|
1192
1217
|
maxQuestions: 64,
|
|
1193
1218
|
minOptions: 2,
|