lua-cli 3.34.0 → 3.35.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 +20 -2
- package/dist/api-exports.js +5 -2
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +2 -2
- package/docs/api/LuaWorkflow.md +1 -1
- package/docs/workflows/migrating-runs.md +1 -1
- package/docs/workflows/recovery.md +4 -4
- package/docs/workflows/testing-offline.md +1 -1
- package/package.json +5 -5
- package/template/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35510,7 +35510,11 @@ function createSandbox(options) {
|
|
|
35510
35510
|
channel: options.channel ?? "unknown",
|
|
35511
35511
|
webhook: options.webhookPayload ? {
|
|
35512
35512
|
payload: options.webhookPayload
|
|
35513
|
-
} : void 0
|
|
35513
|
+
} : void 0,
|
|
35514
|
+
runtimeContext: options.runtimeContext,
|
|
35515
|
+
threadId: options.threadId,
|
|
35516
|
+
timezone: options.timezone,
|
|
35517
|
+
agentId: options.agentId
|
|
35514
35518
|
}
|
|
35515
35519
|
},
|
|
35516
35520
|
User: userService,
|
|
@@ -40436,6 +40440,11 @@ function getDeployHint(type) {
|
|
|
40436
40440
|
};
|
|
40437
40441
|
}
|
|
40438
40442
|
__name(getDeployHint, "getDeployHint");
|
|
40443
|
+
function writePersonaServedHint(version) {
|
|
40444
|
+
writeInfo(`\u{1F4A1} Persona v${version} is now served \u2014 the push published it and pointed the agent at it.`);
|
|
40445
|
+
writeInfo(" Roll back with `lua deploy persona` (pick an earlier version) or `lua persona production deploy --persona-version <n>`.");
|
|
40446
|
+
}
|
|
40447
|
+
__name(writePersonaServedHint, "writePersonaServedHint");
|
|
40439
40448
|
async function promptVersionConfirmOrUpdate(currentVersion) {
|
|
40440
40449
|
console.log(`
|
|
40441
40450
|
Current version: ${currentVersion || "(none - first push)"}`);
|
|
@@ -40879,6 +40888,7 @@ Until the backup catches up, \`lua init\` for this agent will restore an older s
|
|
|
40879
40888
|
when: "partial"
|
|
40880
40889
|
});
|
|
40881
40890
|
} else if (selectedType === "backup") {
|
|
40891
|
+
} else if (selectedType === "agent") {
|
|
40882
40892
|
} else if (deployHint) {
|
|
40883
40893
|
writeHintBlock({
|
|
40884
40894
|
headline: "Staged but NOT live yet. To make it active:",
|
|
@@ -41016,7 +41026,7 @@ Model: ${model}`);
|
|
|
41016
41026
|
personaDeployWasAttempted = true;
|
|
41017
41027
|
productionDeployedWithAutoDeploy = await deployPersonaVersionAfterPush(apiKey, agentId, result.persona.version, options.autoDeploy || false);
|
|
41018
41028
|
} else {
|
|
41019
|
-
|
|
41029
|
+
writePersonaServedHint(result.persona.version);
|
|
41020
41030
|
}
|
|
41021
41031
|
}
|
|
41022
41032
|
const personaAutoDeployFailed = Boolean(options.autoDeploy && personaDeployEligible && personaDeployWasAttempted && !productionDeployedWithAutoDeploy);
|
|
@@ -41316,8 +41326,7 @@ ${icon} Pushing ${items.length} ${handler.displayName}(s)...`);
|
|
|
41316
41326
|
};
|
|
41317
41327
|
}
|
|
41318
41328
|
if (personaPushResult && !options.autoDeploy) {
|
|
41319
|
-
|
|
41320
|
-
writeInfo(" Run `lua deploy` or re-push with `--auto-deploy` to activate it.");
|
|
41329
|
+
writePersonaServedHint(personaPushResult.version);
|
|
41321
41330
|
}
|
|
41322
41331
|
if (options.autoDeploy && toDeploy.length > 0) {
|
|
41323
41332
|
writeProgress("\n\u{1F680} Deploying all pushed versions to production...");
|
|
@@ -52614,7 +52623,6 @@ function printRun(run, withSteps) {
|
|
|
52614
52623
|
console.log(run.status === "running" ? "\n\u26A0\uFE0F Needs a decision \u2014 a step is parked on an exception gate (the run continues past it):" : "\n\u26A0\uFE0F Needs a decision \u2014 the run is parked on an exception gate:");
|
|
52615
52624
|
console.log(` lua workflows retry-step ${id} --step <id>`);
|
|
52616
52625
|
console.log(` lua workflows resolve-step ${id} --step <id> --outcome skip|complete|fail [--output <json|@file>]`);
|
|
52617
|
-
console.log(" To start a repair run instead, decide it from the desktop run page.");
|
|
52618
52626
|
} else if (kind === "budget") {
|
|
52619
52627
|
console.log(`
|
|
52620
52628
|
\u23F8\uFE0F Paused \u2014 run budget reached (${budgetCopy(run)}):`);
|
|
@@ -53138,9 +53146,9 @@ async function retryStepCore(ctx, runId, o) {
|
|
|
53138
53146
|
const cap = res.error;
|
|
53139
53147
|
const at = typeof cap?.attempt === "number" && typeof cap?.maxAttempts === "number" ? ` (attempt ${cap.attempt} of ${cap.maxAttempts})` : "";
|
|
53140
53148
|
detail = {
|
|
53141
|
-
message: `step "${o.step}" has reached the retry cap${at} \u2014 resolve it
|
|
53149
|
+
message: `step "${o.step}" has reached the retry cap${at} \u2014 resolve it (skip, complete or fail)`,
|
|
53142
53150
|
hint: `lua workflows resolve-step ${runId} --step ${o.step} --outcome skip|complete|fail
|
|
53143
|
-
|
|
53151
|
+
no repair run exists \u2014 a run is never re-run from its ledger; if the step cannot be resolved, fail it (--outcome fail) and start a new run`
|
|
53144
53152
|
};
|
|
53145
53153
|
}
|
|
53146
53154
|
}
|