lua-cli 3.55.0 → 3.56.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 +70 -20
- package/dist/api-exports.js +5 -1
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +18 -18
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +3 -3
- package/docs/api/PreProcessor.md +66 -56
- package/docs/api/Threads.md +14 -0
- package/package.json +1 -1
- package/template/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50374,7 +50374,11 @@ function createOfflineThreadsApi() {
|
|
|
50374
50374
|
}, "open"),
|
|
50375
50375
|
followUp: /* @__PURE__ */ __name(async () => {
|
|
50376
50376
|
throw unavailable("followUp");
|
|
50377
|
-
}, "followUp")
|
|
50377
|
+
}, "followUp"),
|
|
50378
|
+
resetContext: /* @__PURE__ */ __name(async () => ({
|
|
50379
|
+
status: "skipped",
|
|
50380
|
+
reason: "unavailable"
|
|
50381
|
+
}), "resetContext")
|
|
50378
50382
|
};
|
|
50379
50383
|
}
|
|
50380
50384
|
__name(createOfflineThreadsApi, "createOfflineThreadsApi");
|
|
@@ -54017,6 +54021,23 @@ function appClientThemeWarning(pagesDir) {
|
|
|
54017
54021
|
return `The pages rely on ${APP_CLIENT_PACKAGE} \u2265 0.1 to apply light/dark and the accent, but ${installed} is installed: run npm install in ${path23.basename(pagesDir)}/.`;
|
|
54018
54022
|
}
|
|
54019
54023
|
__name(appClientThemeWarning, "appClientThemeWarning");
|
|
54024
|
+
var CURRENT_DESIGN_UI_VERSION = "0.3.0";
|
|
54025
|
+
function uiDesignWarning(pagesDir, appName) {
|
|
54026
|
+
const installed = resolvedUiVersion(pagesDir);
|
|
54027
|
+
if (!installed || compareSemver(installed, CURRENT_DESIGN_UI_VERSION) >= 0) return void 0;
|
|
54028
|
+
const name = appName !== void 0 && WEB_APP_NAME_PATTERN.test(appName) ? appName : "<name>";
|
|
54029
|
+
const majorMinor = /^(\d+)\.(\d+)/.exec(CURRENT_DESIGN_UI_VERSION);
|
|
54030
|
+
const current = majorMinor ? `${majorMinor[1]}.${majorMinor[2]}` : CURRENT_DESIGN_UI_VERSION;
|
|
54031
|
+
return `The pages are built with ${UI_PACKAGE} ${installed}, the design before Lua Workspace's current one. Run lua apps upgrade ${name} to move them to ui ${current} (the gateway restyles older apps in the meantime).`;
|
|
54032
|
+
}
|
|
54033
|
+
__name(uiDesignWarning, "uiDesignWarning");
|
|
54034
|
+
function pageWarnings(pagesDir, appName) {
|
|
54035
|
+
return [
|
|
54036
|
+
appClientThemeWarning(pagesDir),
|
|
54037
|
+
uiDesignWarning(pagesDir, appName)
|
|
54038
|
+
].filter((w) => w !== void 0);
|
|
54039
|
+
}
|
|
54040
|
+
__name(pageWarnings, "pageWarnings");
|
|
54020
54041
|
function compareSemver(a, b) {
|
|
54021
54042
|
const parts = /* @__PURE__ */ __name((v) => v.split("+")[0].split("-")[0].split(".").map(Number), "parts");
|
|
54022
54043
|
const isPrerelease = /* @__PURE__ */ __name((v) => v.split("+")[0].includes("-"), "isPrerelease");
|
|
@@ -54210,8 +54231,7 @@ var WebAppHandler = class extends BaseVersionedHandler {
|
|
|
54210
54231
|
if (pages.skipped.length > 0) {
|
|
54211
54232
|
writeInfo(`\u26A0\uFE0F Not served (outside assets/): ${pages.skipped.slice(0, 10).join(", ")}${pages.skipped.length > 10 ? ", \u2026" : ""}. Import files from your source so Vite emits them under assets/.`);
|
|
54212
54233
|
}
|
|
54213
|
-
const
|
|
54214
|
-
if (themeWarning) writeInfo(`\u26A0\uFE0F ${themeWarning}`);
|
|
54234
|
+
for (const warning of pageWarnings(pagesDir, name)) writeInfo(`\u26A0\uFE0F ${warning}`);
|
|
54215
54235
|
const compiler = pushData.compiler ?? {};
|
|
54216
54236
|
return {
|
|
54217
54237
|
...pushData,
|
|
@@ -91184,8 +91204,7 @@ async function appsDevCommand(name, opts = {}) {
|
|
|
91184
91204
|
const bundlesPane = pagesBundleAgentPane(pagesDir);
|
|
91185
91205
|
writeSuccess(`
|
|
91186
91206
|
\u2705 ${name} is running`);
|
|
91187
|
-
const
|
|
91188
|
-
if (themeWarning) writeInfo(`\u26A0\uFE0F ${themeWarning}`);
|
|
91207
|
+
for (const warning of pageWarnings(pagesDir, name)) writeInfo(`\u26A0\uFE0F ${warning}`);
|
|
91189
91208
|
writeHintBlock({
|
|
91190
91209
|
headline: "Lua apps dev:",
|
|
91191
91210
|
lines: [
|