@xano/sdk 1.0.9 → 1.0.10
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/CHANGELOG.md +12 -0
- package/README.md +85 -86
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-XXCQOTWN.js → agent-file-refresh-VOGTQ3JE.js} +6 -6
- package/dist/{agent-skill-command-VDSMXH4M.js → agent-skill-command-LDT5JXIO.js} +15 -15
- package/dist/{backend-dir-G44PETFO.js → backend-dir-UNUO7TNL.js} +5 -5
- package/dist/bin.js +15 -15
- package/dist/{branch-commands-Q6E66PMM.js → branch-commands-IJ7SK5AM.js} +3 -3
- package/dist/{chunk-2VWSUG2B.js → chunk-2ND7WS3E.js} +2 -2
- package/dist/{chunk-HBFXR4OJ.js → chunk-3IFRZXHN.js} +2 -2
- package/dist/{chunk-BUTGFWWA.js → chunk-3TTR4BHW.js} +2 -2
- package/dist/{chunk-YVXUYDHC.js → chunk-3TWQDGQY.js} +2 -2
- package/dist/{chunk-SSOTLVOJ.js → chunk-436AOVZS.js} +2 -2
- package/dist/{chunk-U7XSQXOA.js → chunk-45A3AF2B.js} +53 -53
- package/dist/{chunk-GHPC52TD.js → chunk-5DLDRUCQ.js} +3 -3
- package/dist/{chunk-WKCA66SH.js → chunk-6BIOLAJ4.js} +5 -5
- package/dist/{chunk-QGDT52FA.js → chunk-6NXIRULE.js} +12 -12
- package/dist/{chunk-6IOQRBRX.js → chunk-77IFWJ53.js} +2 -2
- package/dist/{chunk-XTUYIX5H.js → chunk-BYYVOX2P.js} +16 -16
- package/dist/{chunk-BRANWM4U.js → chunk-C2SAVXAB.js} +2 -2
- package/dist/{chunk-IFCQCM2Q.js → chunk-CTKBGPM6.js} +3 -3
- package/dist/{chunk-OYRQLU66.js → chunk-DHU3EGGF.js} +2 -2
- package/dist/{chunk-HVSIS47X.js → chunk-DW47JVXI.js} +18 -18
- package/dist/{chunk-WLFANUXE.js → chunk-ECGRCTVI.js} +2 -2
- package/dist/{chunk-3XSTC3TM.js → chunk-FDZ2ANSS.js} +2 -2
- package/dist/{chunk-CXWCWYX3.js → chunk-FZGK4VM5.js} +2 -2
- package/dist/{chunk-NI56XX5Z.js → chunk-GDAWYDHY.js} +4 -4
- package/dist/{chunk-Y3FM4BSZ.js → chunk-HDKSHL4Z.js} +1 -1
- package/dist/{chunk-YMVCKGY2.js → chunk-HMFEWTI7.js} +39 -39
- package/dist/{chunk-INAM6KR6.js → chunk-HU6D6PYT.js} +2 -2
- package/dist/{chunk-HETQSTGG.js → chunk-IIAF7VKN.js} +2 -2
- package/dist/{chunk-S5RZYUP2.js → chunk-IW6E3LES.js} +2 -2
- package/dist/{chunk-5GIOCDUM.js → chunk-IZI3SYXH.js} +3 -3
- package/dist/{chunk-SGYDFEXD.js → chunk-JE7BL5IF.js} +7 -7
- package/dist/{chunk-KDS4PDFD.js → chunk-JSPFDMTV.js} +5 -5
- package/dist/{chunk-ZYPEH64F.js → chunk-KA3JN4SH.js} +2 -2
- package/dist/{chunk-ADKC3EII.js → chunk-KCCZGDQG.js} +3 -3
- package/dist/{chunk-GAU2FCT7.js → chunk-KSGITXNE.js} +2 -2
- package/dist/{chunk-5VOGPS5O.js → chunk-NIANORYB.js} +2 -2
- package/dist/{chunk-UZUY6VPB.js → chunk-PPI647YF.js} +20 -20
- package/dist/{chunk-XPLBTV77.js → chunk-THGELNPV.js} +4 -4
- package/dist/{chunk-XLQT3CCF.js → chunk-TWBENPZR.js} +13 -13
- package/dist/{chunk-5BEK7YKY.js → chunk-U4JD5NMP.js} +2 -2
- package/dist/{chunk-FFB3YCUO.js → chunk-V5RXO5AK.js} +2 -2
- package/dist/{chunk-Y2LKSXFK.js → chunk-XUSL2Z5C.js} +3 -3
- package/dist/{chunk-DDUOMOIP.js → chunk-Z52FKP34.js} +6 -6
- package/dist/cli.js +14 -14
- package/dist/{codegen-command-KZJ7LYHW.js → codegen-command-A7M5JLLY.js} +21 -21
- package/dist/{deploy-command-RXPJAM7M.js → deploy-command-RP7Q4XBE.js} +18 -18
- package/dist/{deploy-source-TD77W4SA.js → deploy-source-ITSAHJW7.js} +8 -8
- package/dist/{dev-env-sync-2UCNSIJL.js → dev-env-sync-SN6TL22O.js} +15 -15
- package/dist/{env-example-refresh-QKZI26F2.js → env-example-refresh-USAGYVJ2.js} +22 -22
- package/dist/{env-pull-command-72PQOMKW.js → env-pull-command-6KEESNVU.js} +14 -14
- package/dist/{env-target-AZJ4JXT7.js → env-target-HOGLLJN5.js} +2 -2
- package/dist/{env-var-command-ALJITZDL.js → env-var-command-VOAINMHX.js} +14 -14
- package/dist/{ephemeral-command-T276HQBO.js → ephemeral-command-I7VPCBVQ.js} +15 -15
- package/dist/{generate-command-M6LAT4XU.js → generate-command-G7EJ7GW4.js} +25 -25
- package/dist/{gitignore-V6QHYKIR.js → gitignore-WFZ2BTMS.js} +7 -7
- package/dist/{impersonate-command-S6PYDMHQ.js → impersonate-command-ZJDK7ZYO.js} +10 -10
- package/dist/{init-command-ENAZKPZA.js → init-command-CTWDNYAZ.js} +17 -17
- package/dist/{init-modules-AIKWWTVQ.js → init-modules-FJITJ6IB.js} +2 -2
- package/dist/internal.js +6 -5
- package/dist/{keep-data-merge-3WPUPPTY.js → keep-data-merge-KLNLVBYK.js} +4 -4
- package/dist/{lambda-config-reconcile-47X5C2E4.js → lambda-config-reconcile-FXPDH2U5.js} +3 -3
- package/dist/{landing-record-SJ5HG7T5.js → landing-record-ZB4OJQF2.js} +6 -6
- package/dist/{local-engine-choice-BD5O7SAU.js → local-engine-choice-FO7LABXX.js} +9 -9
- package/dist/{local-engine-command-MXQUXXAA.js → local-engine-command-LI7HUH5Y.js} +10 -10
- package/dist/{local-engine-mcp-command-6G3TDWDI.js → local-engine-mcp-command-EVYRLPE7.js} +10 -10
- package/dist/{lock-commands-SUPQOEVU.js → lock-commands-I4RARW5F.js} +15 -15
- package/dist/{login-command-LTYO3EK7.js → login-command-MJT5CCXL.js} +10 -10
- package/dist/{logout-command-QRRT36DY.js → logout-command-GSQ2R3XL.js} +3 -3
- package/dist/{marketplace-command-POQH5GVT.js → marketplace-command-GK4F5ZZ2.js} +14 -14
- package/dist/{meta-client-PDUP4EOW.js → meta-client-2A7LYGUQ.js} +2 -2
- package/dist/node.js +16 -16
- package/dist/{operation-outcome-IXMC5SBN.js → operation-outcome-UK5ALWRE.js} +4 -4
- package/dist/{output-target-4XN43WIB.js → output-target-GFPSLLEJ.js} +8 -8
- package/dist/{preflight-command-QWZL4O2N.js → preflight-command-LP5D6UOD.js} +20 -20
- package/dist/{profile-command-V6WFDYZW.js → profile-command-R7XLNTY6.js} +11 -11
- package/dist/{promote-command-B3QODJNT.js → promote-command-TEVVCM77.js} +28 -28
- package/dist/{publish-command-JOL6LXH6.js → publish-command-WTVINN5E.js} +18 -18
- package/dist/{pull-command-RPGL6LXP.js → pull-command-KFHHW2BA.js} +23 -23
- package/dist/{release-command-USZAWVXO.js → release-command-QUKHOKIY.js} +20 -20
- package/dist/{release-ns-command-3XDRQKJD.js → release-ns-command-T4R3VODA.js} +33 -33
- package/dist/{routes-manifest-file-V5JJVIPH.js → routes-manifest-file-QFPNFJMZ.js} +2 -2
- package/dist/scaffold.js +2 -2
- package/dist/{secrets-file-ZA6K4J6W.js → secrets-file-J4KFYNFP.js} +6 -6
- package/dist/{secrets-fill-command-MH53XR45.js → secrets-fill-command-YIU6ESFN.js} +17 -17
- package/dist/{source-resolve-I55GN6ZC.js → source-resolve-WHXNMVJT.js} +3 -3
- package/dist/{status-command-I6S2TVAY.js → status-command-DIDOS3JC.js} +13 -13
- package/dist/{sync-contributions-4HHBUGJ4.js → sync-contributions-VAGROOWY.js} +2 -2
- package/dist/{tables-command-L4JRA7JF.js → tables-command-UJLYYMME.js} +11 -11
- package/dist/{tenant-command-IZ3R4BDG.js → tenant-command-NGKJD3AX.js} +34 -34
- package/dist/{test-command-GCKZRRSL.js → test-command-JOPQCHJA.js} +11 -11
- package/dist/{token-XQCIFX7R.js → token-NJ5XPGGM.js} +2 -2
- package/dist/{toolchain-modules-C53NXT3S.js → toolchain-modules-4KS3SSJW.js} +2 -2
- package/dist/{tracked-backend-UHKPD2JU.js → tracked-backend-3U4T6ZA7.js} +10 -10
- package/dist/{update-check-KMAC4VEJ.js → update-check-5KCA4TE6.js} +16 -16
- package/dist/{upgrade-command-HQBSUFNE.js → upgrade-command-MNP6G752.js} +19 -19
- package/dist/{whoami-command-23UXAC6F.js → whoami-command-E5CSF3E6.js} +4 -4
- package/dist/{workspace-TZMAJ7NF.js → workspace-WZMBLK4P.js} +2 -2
- package/dist/{workspace-binding-RBU22BBX.js → workspace-binding-JT4EK4HU.js} +3 -3
- package/dist/{workspace-command-N4BTEHSW.js → workspace-command-Z7BUA6A5.js} +29 -29
- package/dist/{workspace-env-O3RK26FR.js → workspace-env-KFWW2G7G.js} +6 -6
- package/dist/{xanosdk-import-WPCHIVP6.js → xanosdk-import-FUS3ZGGQ.js} +2 -2
- package/dist/{xanosdk-project-TEAXYQZW.js → xanosdk-project-NM2J5YFK.js} +6 -6
- package/llms-full.txt +7 -6
- package/llms.txt +7 -6
- package/manifest.json +1 -1
- package/package.json +2 -2
- package/skills/xano-backend/SKILL.md +2 -2
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
passwordHashesWarning,
|
|
6
6
|
passwordOrigin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5RXO5AK.js";
|
|
8
8
|
import {
|
|
9
9
|
isAwaited,
|
|
10
10
|
microserviceLine,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ImportNotSentError,
|
|
32
32
|
XanoSdkImportRefusal,
|
|
33
33
|
xanosdkImport
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FDZ2ANSS.js";
|
|
35
35
|
import {
|
|
36
36
|
archiveHostedFiles,
|
|
37
37
|
decodeWorkspaceArchive,
|
|
@@ -48,19 +48,19 @@ import {
|
|
|
48
48
|
missingLockDir,
|
|
49
49
|
refuseCompileValueFlags,
|
|
50
50
|
refuseValueFlagsBesideBundle
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-45A3AF2B.js";
|
|
52
52
|
import {
|
|
53
53
|
recordDeployed
|
|
54
54
|
} from "./chunk-PBK257CI.js";
|
|
55
55
|
import {
|
|
56
56
|
lookupEphemeral
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HU6D6PYT.js";
|
|
58
58
|
import {
|
|
59
59
|
getAccessToken
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CTKBGPM6.js";
|
|
61
61
|
import {
|
|
62
62
|
otherCredentialRefusal
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2ND7WS3E.js";
|
|
64
64
|
import {
|
|
65
65
|
engineNameForProject,
|
|
66
66
|
getEngineRecord
|
|
@@ -266,7 +266,7 @@ async function runDeployedTests(auth, summary, args) {
|
|
|
266
266
|
try {
|
|
267
267
|
return await runTestsOrThrow(auth, summary, args, settled, notRun);
|
|
268
268
|
} catch (err) {
|
|
269
|
-
const { isSuiteUnreachable, suiteUnreachableCheck } = await import("./test-command-
|
|
269
|
+
const { isSuiteUnreachable, suiteUnreachableCheck } = await import("./test-command-JOPQCHJA.js");
|
|
270
270
|
const message = err instanceof Error ? err.message : String(err);
|
|
271
271
|
const reason = isSuiteUnreachable(err) ? `${message.split("\n")[0] ?? message}
|
|
272
272
|
${suiteUnreachableCheck(
|
|
@@ -291,11 +291,11 @@ function testRunAllCommand(summary, args) {
|
|
|
291
291
|
return `xanosdk test run-all --on ${on}${kind}${concurrency}${flags}`;
|
|
292
292
|
}
|
|
293
293
|
async function testSummaryOf(outcomes, notRun = []) {
|
|
294
|
-
const { suiteCounts, testRow } = await import("./test-command-
|
|
294
|
+
const { suiteCounts, testRow } = await import("./test-command-JOPQCHJA.js");
|
|
295
295
|
return { ...suiteCounts(outcomes, notRun), tests: outcomes.map(testRow) };
|
|
296
296
|
}
|
|
297
297
|
async function runTestsOrThrow(auth, summary, args, settled, notRun) {
|
|
298
|
-
const { runSuite, printTally, noTestsFound, EXIT_TESTS_FAILED } = await import("./test-command-
|
|
298
|
+
const { runSuite, printTally, noTestsFound, EXIT_TESTS_FAILED } = await import("./test-command-JOPQCHJA.js");
|
|
299
299
|
const { qualifiedName } = await import("./tests-CLDZWLKF.js");
|
|
300
300
|
if (summary.url === void 0) {
|
|
301
301
|
warn("Skipped --test: the ephemeral reported no base URL to run against.", "deploy.tests-not-run");
|
|
@@ -339,15 +339,15 @@ async function ignoreBackendSecretFilesRead(args) {
|
|
|
339
339
|
if (args.bundle !== void 0 || args.file === void 0) return;
|
|
340
340
|
const paths = [];
|
|
341
341
|
if (args.envFile === void 0) {
|
|
342
|
-
const { defaultWorkspaceEnvPath } = await import("./workspace-env-
|
|
342
|
+
const { defaultWorkspaceEnvPath } = await import("./workspace-env-KFWW2G7G.js");
|
|
343
343
|
paths.push(defaultWorkspaceEnvPath(args.file));
|
|
344
344
|
}
|
|
345
345
|
if (args.secretsFile === void 0) {
|
|
346
|
-
const { defaultWorkspaceSecretsPath } = await import("./secrets-file-
|
|
346
|
+
const { defaultWorkspaceSecretsPath } = await import("./secrets-file-J4KFYNFP.js");
|
|
347
347
|
paths.push(defaultWorkspaceSecretsPath(args.file));
|
|
348
348
|
}
|
|
349
349
|
const { gitSaysIgnored } = await import("./store-YFNDD6GZ.js");
|
|
350
|
-
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-
|
|
350
|
+
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-WFZ2BTMS.js");
|
|
351
351
|
for (const path of paths) {
|
|
352
352
|
if (!existsSync(path)) continue;
|
|
353
353
|
if (gitSaysIgnored(path) !== false) continue;
|
|
@@ -422,8 +422,8 @@ async function soleTrackedEphemeral() {
|
|
|
422
422
|
}
|
|
423
423
|
async function runDeployToDestination(args, to) {
|
|
424
424
|
const { requireBackendSlot, parseSlot } = await import("./backend-slot-TTRNOQF5.js");
|
|
425
|
-
const { resolveSource, describeBackend } = await import("./source-resolve-
|
|
426
|
-
const { looksLikeSource, resolveProjectEntry } = await import("./deploy-source-
|
|
425
|
+
const { resolveSource, describeBackend } = await import("./source-resolve-WHXNMVJT.js");
|
|
426
|
+
const { looksLikeSource, resolveProjectEntry } = await import("./deploy-source-ITSAHJW7.js");
|
|
427
427
|
const dest = parseSlot(requireBackendSlot("deploy", void 0, "to"), to, to.trim() === "ephemeral" ? await soleTrackedEphemeral() : void 0);
|
|
428
428
|
if (dest.kind !== "workspace" && dest.kind !== "tenant") {
|
|
429
429
|
throw new Error(`Internal: \`deploy --to\` parsed ${withArticle(dest.kind)}, which its slot does not accept.`);
|
|
@@ -498,7 +498,7 @@ async function runDeployToDestination(args, to) {
|
|
|
498
498
|
)
|
|
499
499
|
);
|
|
500
500
|
};
|
|
501
|
-
const { runReleaseCommand } = await import("./release-command-
|
|
501
|
+
const { runReleaseCommand } = await import("./release-command-QUKHOKIY.js");
|
|
502
502
|
return runReleaseCommand(args, {
|
|
503
503
|
base: resolved.target.base,
|
|
504
504
|
workspaceId: resolved.target.workspaceId,
|
|
@@ -639,9 +639,9 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
639
639
|
const { startedAt } = ctx;
|
|
640
640
|
const dir = process.cwd();
|
|
641
641
|
const fetchedSource = sourceCredential !== void 0 && args.file !== void 0 ? { credential: sourceCredential, spec: args.file } : void 0;
|
|
642
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
642
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-4KS3SSJW.js");
|
|
643
643
|
const toolchain = await discoverToolchainPlugins(dir, { frozen: args.frozenLock === true });
|
|
644
|
-
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-
|
|
644
|
+
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-ITSAHJW7.js").then(async (m) => {
|
|
645
645
|
const f = await m.fetchSourceArchive(fetchedSource.credential, fetchedSource.spec, dir);
|
|
646
646
|
const decoded = decodeWorkspaceArchive(f.archive);
|
|
647
647
|
noteReleaseCarriesNoEnv(fetchedSource.spec, m.gatedApiGroups(decoded));
|
|
@@ -702,7 +702,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
702
702
|
"; nothing was deployed"
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
|
-
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-
|
|
705
|
+
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-FO7LABXX.js");
|
|
706
706
|
const choice = await chooseLocalEngine(dest.downloadUrl, dir, isMachineOutput(args));
|
|
707
707
|
const { ensureProjectEngine } = await import("./local-engine-deploy-ID4JJXB5.js");
|
|
708
708
|
const pin = pinAfterAcquire(choice, dir);
|
|
@@ -753,7 +753,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
753
753
|
};
|
|
754
754
|
try {
|
|
755
755
|
if (arm.arm === "merge") {
|
|
756
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
756
|
+
const { mergeKeepingData } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
757
757
|
merged = await mergeKeepingData({
|
|
758
758
|
auth: bearer,
|
|
759
759
|
baseUrl: engine.url,
|
|
@@ -795,7 +795,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
795
795
|
}
|
|
796
796
|
} catch (err) {
|
|
797
797
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
798
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
798
|
+
const { importInProgressError } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
799
799
|
throw importInProgressError(`Xano Engine ${engine.name}`, rerunOf(args), err);
|
|
800
800
|
}
|
|
801
801
|
const { explainUnsupportedEngineImport } = await import("./local-engine-deploy-ID4JJXB5.js");
|
|
@@ -1118,15 +1118,15 @@ async function runDeploy(args) {
|
|
|
1118
1118
|
if (args.reset && !args.keepData) {
|
|
1119
1119
|
info("`--reset` changes nothing here: it only overrides `--keep-data`, and without it a deploy already replaces the environment.");
|
|
1120
1120
|
}
|
|
1121
|
-
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-
|
|
1121
|
+
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-ITSAHJW7.js");
|
|
1122
1122
|
const fetching = args.file !== void 0 && looksLikeSource(args.file);
|
|
1123
1123
|
const sourceSpec = fetching ? await parseDeploySource(args.file) : void 0;
|
|
1124
1124
|
if (sourceSpec !== void 0) refuseValueFlagsForSource(args, args.file, sourceSpec);
|
|
1125
1125
|
if (destination.kind === "local") {
|
|
1126
1126
|
refuseSameEngine(sourceSpec, process.cwd());
|
|
1127
|
-
const { refuseProfileForLocal } = await import("./tracked-backend-
|
|
1127
|
+
const { refuseProfileForLocal } = await import("./tracked-backend-3U4T6ZA7.js");
|
|
1128
1128
|
refuseProfileForLocal(args.profile, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind], void 0, {});
|
|
1129
|
-
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-
|
|
1129
|
+
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-FO7LABXX.js");
|
|
1130
1130
|
refuseCredentialFlagsForLocal(args, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind]);
|
|
1131
1131
|
}
|
|
1132
1132
|
if (!fetching) {
|
|
@@ -1142,7 +1142,7 @@ async function runDeploy(args) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
refuseMissingStaticDir(args);
|
|
1144
1144
|
if (destination.kind === "local") {
|
|
1145
|
-
const { memoCredential } = await import("./tracked-backend-
|
|
1145
|
+
const { memoCredential } = await import("./tracked-backend-3U4T6ZA7.js");
|
|
1146
1146
|
return deployToLocalEngine(
|
|
1147
1147
|
args,
|
|
1148
1148
|
destination,
|
|
@@ -1154,7 +1154,7 @@ async function runDeploy(args) {
|
|
|
1154
1154
|
const auth = await getAccessToken(args);
|
|
1155
1155
|
refuseSameEphemeral(sourceSpec, auth, process.cwd(), contextFlags(args), args.keepData && !args.reset);
|
|
1156
1156
|
await noteRunScopeFor(auth);
|
|
1157
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
1157
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-4KS3SSJW.js");
|
|
1158
1158
|
const toolchain = await discoverToolchainPlugins(process.cwd(), {
|
|
1159
1159
|
frozen: args.frozenLock === true
|
|
1160
1160
|
});
|
|
@@ -1288,7 +1288,7 @@ async function runDeploy(args) {
|
|
|
1288
1288
|
}).finally(() => noteLanded(void 0));
|
|
1289
1289
|
if (staticSummary !== void 0) summary.static = staticSummary;
|
|
1290
1290
|
if (summary.ephemeral !== void 0) {
|
|
1291
|
-
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-
|
|
1291
|
+
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-ZB4OJQF2.js");
|
|
1292
1292
|
const dest = { kind: "ephemeral", name: summary.ephemeral.name };
|
|
1293
1293
|
const { storedColumnsAfter } = await import("./live-diff-CGTGOH3S.js");
|
|
1294
1294
|
const sent = JSON.parse(bundle);
|
|
@@ -1352,7 +1352,7 @@ async function runDeploy(args) {
|
|
|
1352
1352
|
async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts = {}) {
|
|
1353
1353
|
if (args.noDevEnv || summary.url === void 0) return;
|
|
1354
1354
|
if (opts.staticServing === true || summary.static !== void 0 && summary.static.error === void 0) {
|
|
1355
|
-
const { staleDevEnv } = await import("./dev-env-sync-
|
|
1355
|
+
const { staleDevEnv } = await import("./dev-env-sync-SN6TL22O.js");
|
|
1356
1356
|
let stale;
|
|
1357
1357
|
try {
|
|
1358
1358
|
stale = staleDevEnv(cwd, summary.url);
|
|
@@ -1366,7 +1366,7 @@ async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts =
|
|
|
1366
1366
|
}
|
|
1367
1367
|
return;
|
|
1368
1368
|
}
|
|
1369
|
-
const { syncDevEnv } = await import("./dev-env-sync-
|
|
1369
|
+
const { syncDevEnv } = await import("./dev-env-sync-SN6TL22O.js");
|
|
1370
1370
|
try {
|
|
1371
1371
|
const written = syncDevEnv(cwd, summary.url);
|
|
1372
1372
|
if (written === void 0) return;
|
|
@@ -1476,7 +1476,7 @@ async function latestEngineRelease(err) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
async function mergeGuards(args, lock, outgoing) {
|
|
1478
1478
|
const interactive = process.stdin.isTTY === true && !isMachineOutput(args);
|
|
1479
|
-
const pinned = outgoing === void 0 ? [] : (await import("./release-command-
|
|
1479
|
+
const pinned = outgoing === void 0 ? [] : (await import("./release-command-QUKHOKIY.js")).pinnedCanonicalGuids(outgoing.bundle, lock, outgoing.compiled);
|
|
1480
1480
|
const guards = {
|
|
1481
1481
|
...pinned.length > 0 ? { pinned } : {},
|
|
1482
1482
|
allowForeignDeletes: args.yes === true,
|
|
@@ -1497,7 +1497,7 @@ async function mergeGuards(args, lock, outgoing) {
|
|
|
1497
1497
|
for (const guid of e.replaced ?? []) replaced.set(guid, key.slice("dbo:".length));
|
|
1498
1498
|
}
|
|
1499
1499
|
const { orphanFixUps, resolveLockPath, composedChildren } = await import("./cli.js");
|
|
1500
|
-
const { clearReplacedCommand } = await import("./keep-data-merge-
|
|
1500
|
+
const { clearReplacedCommand } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
1501
1501
|
const lockPath = resolveLockPath(args, entry);
|
|
1502
1502
|
const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
|
|
1503
1503
|
const keys = Object.keys(lock.objects);
|
|
@@ -1738,7 +1738,7 @@ Re-run as \`${rerun}\` to answer yes without being asked.${note}`,
|
|
|
1738
1738
|
}
|
|
1739
1739
|
const { confirm } = await import("./prompt-ZZUYWFQX.js");
|
|
1740
1740
|
if (await confirm(question, { flag: "--yes", refusal: { details, rerun, note } })) return;
|
|
1741
|
-
const { KeepDataDeclined } = await import("./keep-data-merge-
|
|
1741
|
+
const { KeepDataDeclined } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
1742
1742
|
throw new KeepDataDeclined(label, "deployed");
|
|
1743
1743
|
}
|
|
1744
1744
|
function recordedEntry(file) {
|
|
@@ -1773,7 +1773,7 @@ async function refuseOtherProfileEphemeral(state, auth) {
|
|
|
1773
1773
|
{ hintFor: { command: "deploy" } }
|
|
1774
1774
|
);
|
|
1775
1775
|
if (refusal === void 0) return;
|
|
1776
|
-
const { reachableFirst } = await import("./env-target-
|
|
1776
|
+
const { reachableFirst } = await import("./env-target-HOGLLJN5.js");
|
|
1777
1777
|
throw await reachableFirst(refusal, auth);
|
|
1778
1778
|
}
|
|
1779
1779
|
async function refuseKeepDataElsewhere(state, auth) {
|
|
@@ -1787,7 +1787,7 @@ async function refuseKeepDataElsewhere(state, auth) {
|
|
|
1787
1787
|
{ hintFor: { command: "deploy" } }
|
|
1788
1788
|
);
|
|
1789
1789
|
if (refusal === void 0) return;
|
|
1790
|
-
const { reachableFirst } = await import("./env-target-
|
|
1790
|
+
const { reachableFirst } = await import("./env-target-HOGLLJN5.js");
|
|
1791
1791
|
throw await reachableFirst(refusal, auth);
|
|
1792
1792
|
}
|
|
1793
1793
|
async function reconcileRename(err, auth, name, display) {
|
|
@@ -1899,7 +1899,7 @@ async function deployEphemeralGuarded(auth, ctx, createGuard) {
|
|
|
1899
1899
|
}).finally(() => creating?.clear()).catch(async (err) => {
|
|
1900
1900
|
if (isEphemeralDisabled(err)) throw ephemeralDisabledError(source);
|
|
1901
1901
|
if (err.status === 404) {
|
|
1902
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
1902
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-JT4EK4HU.js");
|
|
1903
1903
|
await refuseUnreachableWorkspace(auth);
|
|
1904
1904
|
}
|
|
1905
1905
|
throw unknownCreateOutcome(err, display, flags, retryCommand(args, { creates: true }));
|
|
@@ -1967,7 +1967,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
1967
1967
|
if (arm.arm === "replace") refuseStaticHostAReplaceClears(args, true);
|
|
1968
1968
|
else await assertStaticHostExists(args, auth, { baseUrl, workspaceId: 1 });
|
|
1969
1969
|
if (arm.arm === "replace") {
|
|
1970
|
-
const { gateForeignReplace } = await import("./keep-data-merge-
|
|
1970
|
+
const { gateForeignReplace } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
1971
1971
|
const { allowForeignDeletes, confirm } = await mergeGuards(args, void 0);
|
|
1972
1972
|
await gateForeignReplace({
|
|
1973
1973
|
auth,
|
|
@@ -2039,7 +2039,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2039
2039
|
let merged;
|
|
2040
2040
|
try {
|
|
2041
2041
|
if (arm.arm === "merge") {
|
|
2042
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
2042
|
+
const { mergeKeepingData } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
2043
2043
|
merged = await mergeKeepingData({
|
|
2044
2044
|
auth,
|
|
2045
2045
|
baseUrl,
|
|
@@ -2093,11 +2093,11 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2093
2093
|
if (!lockCommitted) ctx.warnOrphansUncommitted?.();
|
|
2094
2094
|
if (err instanceof Error && err.name === "KeepDataDeclined") throw err;
|
|
2095
2095
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
2096
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
2096
|
+
const { importInProgressError } = await import("./keep-data-merge-KLNLVBYK.js");
|
|
2097
2097
|
const retry = retryCommand(args);
|
|
2098
2098
|
throw importInProgressError(namedEphemeral(target), { command: retry.command, note: withheldNote(retry.withheld) }, err);
|
|
2099
2099
|
}
|
|
2100
|
-
const { withSignatureHint } = await import("./release-command-
|
|
2100
|
+
const { withSignatureHint } = await import("./release-command-QUKHOKIY.js");
|
|
2101
2101
|
importFailure = withSignatureHint(err, args.bundle);
|
|
2102
2102
|
}
|
|
2103
2103
|
if (arm.arm === "merge" && renamedTo !== void 0) target = { ...target, display: renamedTo };
|
|
@@ -2391,4 +2391,4 @@ export {
|
|
|
2391
2391
|
unknownCreateOutcome,
|
|
2392
2392
|
deployStaticTo
|
|
2393
2393
|
};
|
|
2394
|
-
//# sourceMappingURL=chunk-
|
|
2394
|
+
//# sourceMappingURL=chunk-HMFEWTI7.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-VJTTTIIB.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveEphemeralName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2ND7WS3E.js";
|
|
11
11
|
import {
|
|
12
12
|
clearEngineRecordsNamed,
|
|
13
13
|
getEngineRecord,
|
|
@@ -598,4 +598,4 @@ export {
|
|
|
598
598
|
releaseNames,
|
|
599
599
|
resolveSource
|
|
600
600
|
};
|
|
601
|
-
//# sourceMappingURL=chunk-
|
|
601
|
+
//# sourceMappingURL=chunk-HU6D6PYT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
workspaceEnvPathIn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XUSL2Z5C.js";
|
|
4
4
|
import {
|
|
5
5
|
addGitignoreRule,
|
|
6
6
|
ensureGitignored,
|
|
@@ -183,4 +183,4 @@ export {
|
|
|
183
183
|
secretPathLabel,
|
|
184
184
|
refuseIfTracked
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-IIAF7VKN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureExportGitignored
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IIAF7VKN.js";
|
|
4
4
|
import {
|
|
5
5
|
andList
|
|
6
6
|
} from "./chunk-622HUCZT.js";
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
secretsPhrase,
|
|
126
126
|
assertWritableTarget
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-IW6E3LES.js.map
|
|
@@ -777,7 +777,7 @@ starting with the walkthrough in [\`xano/EXAMPLE.md\`](xano/EXAMPLE.md), and rer
|
|
|
777
777
|
|
|
778
778
|
The Xano Engine is Xano running on your machine. \`npm run xano:deploy\` typechecks the
|
|
779
779
|
backend and deploys it to the engine: no sign-in, and no network round-trip.
|
|
780
|
-
It prints the backend URL, a link that opens Xano
|
|
780
|
+
It prints the backend URL, a link that opens the Xano editor on the engine, and
|
|
781
781
|
points \`npm run dev\` at it through \`.env.local\` (restart the dev server if it was already
|
|
782
782
|
running).
|
|
783
783
|
|
|
@@ -873,7 +873,7 @@ starting with the walkthrough in [\`xano/EXAMPLE.md\`](xano/EXAMPLE.md), and rer
|
|
|
873
873
|
|
|
874
874
|
The Xano Engine is Xano running on your machine. \`npm run xano:deploy\` typechecks the
|
|
875
875
|
backend and deploys it to the engine: no sign-in, and no network round-trip.
|
|
876
|
-
It prints the backend URL and a link that opens Xano
|
|
876
|
+
It prints the backend URL and a link that opens the Xano editor on the engine.
|
|
877
877
|
|
|
878
878
|
${README_ENGINE_BULLETS}
|
|
879
879
|
|
|
@@ -2002,4 +2002,4 @@ export {
|
|
|
2002
2002
|
renderCnUtil,
|
|
2003
2003
|
renderApiTs
|
|
2004
2004
|
};
|
|
2005
|
-
//# sourceMappingURL=chunk-
|
|
2005
|
+
//# sourceMappingURL=chunk-IZI3SYXH.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
LookupFailedError,
|
|
6
6
|
SourceError,
|
|
7
7
|
resolveSource
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HU6D6PYT.js";
|
|
9
9
|
import {
|
|
10
10
|
isProjectDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NIANORYB.js";
|
|
12
12
|
import {
|
|
13
13
|
NotSignedInError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CTKBGPM6.js";
|
|
15
15
|
import {
|
|
16
16
|
otherCredentialRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2ND7WS3E.js";
|
|
18
18
|
import {
|
|
19
19
|
getEngineRecord
|
|
20
20
|
} from "./chunk-5Y5HWQ2P.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-IB6SKACE.js";
|
|
48
48
|
import {
|
|
49
49
|
backendDirIn
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-77IFWJ53.js";
|
|
51
51
|
import {
|
|
52
52
|
UsageError,
|
|
53
53
|
displayPath,
|
|
@@ -86,7 +86,7 @@ async function selectBackend(slot, raw, ctx) {
|
|
|
86
86
|
}
|
|
87
87
|
const decided = decide({ cwd, pointer, state, scope, engineRecorded: getEngineRecord(cwd, env) !== void 0 }, slot);
|
|
88
88
|
if ("refusal" in decided) {
|
|
89
|
-
const { reachableFirst } = await import("./env-target-
|
|
89
|
+
const { reachableFirst } = await import("./env-target-HOGLLJN5.js");
|
|
90
90
|
throw await reachableFirst(decided.refusal, scope);
|
|
91
91
|
}
|
|
92
92
|
refuseUnservable(slot, decided.kind);
|
|
@@ -368,4 +368,4 @@ export {
|
|
|
368
368
|
NothingTrackedError,
|
|
369
369
|
nestedBackendEntries
|
|
370
370
|
};
|
|
371
|
-
//# sourceMappingURL=chunk-
|
|
371
|
+
//# sourceMappingURL=chunk-JE7BL5IF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyNpmFailure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U4JD5NMP.js";
|
|
4
4
|
import {
|
|
5
5
|
condenseNpmError,
|
|
6
6
|
runNpmQuiet,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isSorted,
|
|
16
16
|
reactPreset,
|
|
17
17
|
sortedKeys
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IZI3SYXH.js";
|
|
19
19
|
import {
|
|
20
20
|
blockVersion,
|
|
21
21
|
composeBlock,
|
|
@@ -123,7 +123,7 @@ npm run dev # the frontend, pointed at the engine through .env.local
|
|
|
123
123
|
- \`npm run xano:deploy\` is the backend loop: no Xano account and no network. The first run
|
|
124
124
|
downloads the engine and pins its version in \`package.json\` \u2014 commit that. It passes
|
|
125
125
|
\`--keep-data\`, so rows survive redeploys (\`npm run xano:deploy -- --reset\` re-seeds). It
|
|
126
|
-
prints the backend URL and a link to Xano
|
|
126
|
+
prints the backend URL and a link to the Xano editor on the engine, and writes
|
|
127
127
|
\`VITE_XANO_HOST\` to \`.env.local\` (restart \`npm run dev\` if it was already running). Run
|
|
128
128
|
it after every backend change.
|
|
129
129
|
- \`npm run typecheck\` / \`npm run build\` \u2014 both halves of the project; must stay green.
|
|
@@ -180,7 +180,7 @@ npm run xano:deploy # typecheck, then deploy the backend to the Xano Engine o
|
|
|
180
180
|
- \`npm run xano:deploy\` is the backend loop: no Xano account and no network. The first run
|
|
181
181
|
downloads the engine and pins its version in \`package.json\` \u2014 commit that. It passes
|
|
182
182
|
\`--keep-data\`, so rows survive redeploys (\`npm run xano:deploy -- --reset\` re-seeds). It
|
|
183
|
-
prints the backend URL and a link to Xano
|
|
183
|
+
prints the backend URL and a link to the Xano editor on the engine. Run it after
|
|
184
184
|
every backend change.
|
|
185
185
|
- \`npm run xano:typecheck\` \u2014 \`xano/\` and its lambdas; must stay green.
|
|
186
186
|
- Adding the first lambda where the root \`tsconfig.json\` includes \`xano/\`: add
|
|
@@ -992,4 +992,4 @@ export {
|
|
|
992
992
|
changedOnDisk,
|
|
993
993
|
scaffoldProject
|
|
994
994
|
};
|
|
995
|
-
//# sourceMappingURL=chunk-
|
|
995
|
+
//# sourceMappingURL=chunk-JSPFDMTV.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-6S263KTM.js";
|
|
16
16
|
import {
|
|
17
17
|
backendDirIn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-77IFWJ53.js";
|
|
19
19
|
import {
|
|
20
20
|
destinationKey,
|
|
21
21
|
isEphemeralDestinationKey,
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
holdsLanding,
|
|
261
261
|
forgetLanding
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-KA3JN4SH.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BYYVOX2P.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XUSL2Z5C.js";
|
|
8
8
|
import {
|
|
9
9
|
atomicWrite
|
|
10
10
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
refreshEnvExample,
|
|
55
55
|
bundleEnvNames
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-KCCZGDQG.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
// src/emit/routes-manifest-file.ts
|
|
16
16
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
17
17
|
async function discoverManifestModules(projectDir, manifestPath, sdkVersion) {
|
|
18
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
18
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-4KS3SSJW.js");
|
|
19
19
|
const { loaded, skipped } = await discoverToolchainPlugins(projectDir, { frozen: false, peerSkew: "skip" });
|
|
20
20
|
return {
|
|
21
21
|
loaded,
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
renderManifestFile,
|
|
76
76
|
reportModuleFailures
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-KSGITXNE.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-EUUUMY7J.js";
|
|
4
4
|
import {
|
|
5
5
|
backendDirIn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-77IFWJ53.js";
|
|
7
7
|
import {
|
|
8
8
|
shellWord
|
|
9
9
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
RELATIVE_PATH_ARGS,
|
|
155
155
|
enterProjectRoot
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
157
|
+
//# sourceMappingURL=chunk-NIANORYB.js.map
|