@xano/sdk 1.0.20 → 1.0.21
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 +28 -0
- package/dist/{agent-file-refresh-MOEDX5OL.js → agent-file-refresh-5R5ALFEV.js} +4 -4
- package/dist/{agent-skill-command-A4QEVNTP.js → agent-skill-command-JBX7Z6AK.js} +13 -13
- package/dist/{ai-models-command-SN2UKVC5.js → ai-models-command-I3FU6GYP.js} +2 -2
- package/dist/{backend-dir-66VVLCUF.js → backend-dir-VOMHDVFP.js} +4 -4
- package/dist/bin.js +15 -13
- package/dist/{branch-commands-KUEGS6XL.js → branch-commands-JOSHDOXH.js} +3 -3
- package/dist/{chunk-C6ERQFEB.js → chunk-4TVHSC4V.js} +2 -2
- package/dist/{chunk-TEZKQQDT.js → chunk-64F6ET45.js} +3 -3
- package/dist/{chunk-2SWJ3267.js → chunk-7SGMHGLI.js} +8 -8
- package/dist/{chunk-OAWBNCME.js → chunk-ANCNHQCH.js} +12 -12
- package/dist/{chunk-UN73LNM5.js → chunk-FJS5I6V4.js} +3 -3
- package/dist/{chunk-HUXMRYUX.js → chunk-FLM6TN7Q.js} +2 -2
- package/dist/{chunk-EJXJE2H3.js → chunk-GODAKJ3L.js} +16 -16
- package/dist/{chunk-MAAQ4ZSN.js → chunk-HXVNBJVA.js} +20 -20
- package/dist/{chunk-HGUQIBYY.js → chunk-IA4FMPJ3.js} +4 -4
- package/dist/{chunk-5BLBX2Q5.js → chunk-IWFKPEWJ.js} +3 -3
- package/dist/{chunk-BFM2P47R.js → chunk-J564PMKW.js} +3 -3
- package/dist/{chunk-SWQA6SZI.js → chunk-JVMAWMO3.js} +42 -42
- package/dist/{chunk-QBSSSKIC.js → chunk-KL4PGJ2G.js} +3 -3
- package/dist/{chunk-TN7ZBZRW.js → chunk-KU4HLYWT.js} +2 -2
- package/dist/{chunk-7Z43XRBL.js → chunk-LYR6W5LV.js} +2 -2
- package/dist/{chunk-4PHCBKJI.js → chunk-M42Y53Z4.js} +2 -2
- package/dist/{chunk-G3ZUGFIS.js → chunk-MJA5BP2M.js} +2 -2
- package/dist/{chunk-X3LYWTZ5.js → chunk-N2JZU6VR.js} +2 -2
- package/dist/{chunk-3H765RXT.js → chunk-N3LPULRE.js} +2 -2
- package/dist/{chunk-CBACTYIC.js → chunk-OF5YFPSK.js} +2 -2
- package/dist/{chunk-CPR2F3WN.js → chunk-OFKFZSHS.js} +1 -1
- package/dist/{chunk-T6GI2AFJ.js → chunk-OTUPQ7M3.js} +5 -5
- package/dist/{chunk-4GI22VPJ.js → chunk-OZVZ3KCH.js} +2 -2
- package/dist/{chunk-CP7OSHLK.js → chunk-PAWLPNBA.js} +2 -2
- package/dist/{chunk-34OZQNKR.js → chunk-Q77C32ZB.js} +2 -2
- package/dist/{chunk-RVBDZMCC.js → chunk-QHNSBURP.js} +2 -2
- package/dist/{chunk-YRLSJBSY.js → chunk-QLXGLHK3.js} +15 -15
- package/dist/{chunk-CJIXD67B.js → chunk-QZXSPUNS.js} +2 -2
- package/dist/{chunk-EQ2KB5YF.js → chunk-T2LFOMOP.js} +2 -2
- package/dist/{chunk-KNLPGIRY.js → chunk-T4HTNHXR.js} +2 -2
- package/dist/{chunk-LLG33KGY.js → chunk-VJCUFHTQ.js} +2 -2
- package/dist/{chunk-RSWPVU6X.js → chunk-VV7FVGOX.js} +2 -2
- package/dist/{chunk-E7YXNU57.js → chunk-WXY24GKO.js} +2 -2
- package/dist/{chunk-52VELHIH.js → chunk-X7EK5PTK.js} +2 -2
- package/dist/{chunk-AD7YILOU.js → chunk-XD5FOBMZ.js} +2 -2
- package/dist/{chunk-KMXXOJL2.js → chunk-XWEDFVJ6.js} +7 -7
- package/dist/{chunk-2VHEZDZZ.js → chunk-YF7PDN6T.js} +12 -12
- package/dist/{chunk-3OR2RCXJ.js → chunk-ZNGUETV7.js} +99 -57
- package/dist/cli.js +12 -12
- package/dist/{codegen-command-GGGU6YAP.js → codegen-command-ZXABRPVP.js} +19 -19
- package/dist/{deploy-command-WOHYD22D.js → deploy-command-KO5FATR6.js} +16 -16
- package/dist/{deploy-source-QK7Y4Y3V.js → deploy-source-7GCMMZKV.js} +7 -7
- package/dist/{dev-env-sync-AMFPULCP.js → dev-env-sync-LZ22CSKD.js} +13 -13
- package/dist/{env-example-refresh-F5RTDVJ5.js → env-example-refresh-DWGV4DFX.js} +20 -20
- package/dist/{env-pull-command-J2ARE33T.js → env-pull-command-5N5AUKJK.js} +13 -13
- package/dist/{env-target-WA4BR6GW.js → env-target-CXZXMK3W.js} +2 -2
- package/dist/{env-var-command-WEC22FI5.js → env-var-command-4RGQALIH.js} +13 -13
- package/dist/{ephemeral-command-EJLS42VJ.js → ephemeral-command-GIB63YX3.js} +14 -14
- package/dist/{generate-command-2WHFL4CB.js → generate-command-GW42CN4I.js} +23 -23
- package/dist/{gitignore-OKB3X335.js → gitignore-RDEUQHHG.js} +6 -6
- package/dist/{impersonate-command-EIWI3FBD.js → impersonate-command-H72JM5IF.js} +9 -9
- package/dist/{init-command-POIWZKZ4.js → init-command-ERRMSKPB.js} +15 -15
- package/dist/{init-modules-S7BR4NIJ.js → init-modules-UH7PPQTB.js} +2 -2
- package/dist/{keep-data-merge-NXP77QML.js → keep-data-merge-BNX3HEHM.js} +4 -4
- package/dist/{landing-record-MK44WCRY.js → landing-record-ZY4O7OLQ.js} +5 -5
- package/dist/{local-engine-ai-3XLJLOBP.js → local-engine-ai-YWAMTHME.js} +3 -3
- package/dist/{local-engine-choice-7QBML5XF.js → local-engine-choice-PCM45R3A.js} +11 -11
- package/dist/{local-engine-command-N7VDPABW.js → local-engine-command-ACJ6YUP7.js} +14 -14
- package/dist/{local-engine-deploy-RYZZYEDQ.js → local-engine-deploy-IUHWB43Q.js} +2 -2
- package/dist/{local-engine-mcp-command-A257D3WK.js → local-engine-mcp-command-EODMA3X5.js} +14 -14
- package/dist/{lock-commands-KMWLIGT2.js → lock-commands-YBBTZB6M.js} +13 -13
- package/dist/{login-command-E2KMN6DV.js → login-command-DJCCEN5O.js} +9 -9
- package/dist/{logout-command-AIB446AQ.js → logout-command-6FQLSD5H.js} +3 -3
- package/dist/{marketplace-command-YLBFUBHL.js → marketplace-command-2JZERTJW.js} +13 -13
- package/dist/{meta-client-AOPF5IQN.js → meta-client-KDTBLP6X.js} +2 -2
- package/dist/node.js +14 -14
- package/dist/{operation-outcome-GBSISFAP.js → operation-outcome-POYID3M6.js} +4 -4
- package/dist/{output-target-NHJLT4YI.js → output-target-55RSDDTO.js} +7 -7
- package/dist/{preflight-command-O52GLYGA.js → preflight-command-ZP7VVE5T.js} +18 -18
- package/dist/{profile-command-NOKUVV3M.js → profile-command-EP7N7LNQ.js} +10 -10
- package/dist/{promote-command-2NMTINVS.js → promote-command-LX5UWQYG.js} +26 -26
- package/dist/{publish-command-LB2XULJA.js → publish-command-DW5VLFJN.js} +16 -16
- package/dist/{pull-command-UVNPFY2E.js → pull-command-ZUDJRRXV.js} +21 -21
- package/dist/{release-command-BGSDY3BE.js → release-command-Z3HXXLLO.js} +18 -18
- package/dist/{release-ns-command-IVXK7HEG.js → release-ns-command-JS3OUEFQ.js} +31 -31
- package/dist/{routes-manifest-file-3MDX3JB3.js → routes-manifest-file-PIKQ3BIJ.js} +2 -2
- package/dist/{secrets-file-NFNUKRGZ.js → secrets-file-QLVCR2JD.js} +5 -5
- package/dist/{secrets-fill-command-U5L7IKUO.js → secrets-fill-command-BK7NVKPY.js} +15 -15
- package/dist/{source-resolve-MAMVIHDF.js → source-resolve-GGRHO6NW.js} +3 -3
- package/dist/{status-command-VXIN37ET.js → status-command-3DISBMGH.js} +12 -12
- package/dist/{sync-contributions-PGMYJKLG.js → sync-contributions-GAV6PZEY.js} +2 -2
- package/dist/{tables-command-FNBHVJG3.js → tables-command-D7DSJAXI.js} +10 -10
- package/dist/{tenant-command-PHNX3PXS.js → tenant-command-6S5RU4PP.js} +32 -32
- package/dist/{test-command-DMMF3RMK.js → test-command-FSRARFF7.js} +10 -10
- package/dist/{token-IHOPB74T.js → token-XTU3C2DI.js} +2 -2
- package/dist/{toolchain-modules-V56JXU2E.js → toolchain-modules-YSM6DMDB.js} +2 -2
- package/dist/{tracked-backend-VKWZKKBG.js → tracked-backend-7XW4KPIR.js} +9 -9
- package/dist/{update-check-DZ4YVDNS.js → update-check-KKDYZG3X.js} +14 -14
- package/dist/{upgrade-command-EP5WQWFA.js → upgrade-command-LRJ7V3UW.js} +16 -16
- package/dist/{whoami-command-UV6EEDBY.js → whoami-command-FBRWLX5Q.js} +4 -4
- package/dist/{workspace-6LVJ3LZE.js → workspace-DTM3ZNTM.js} +2 -2
- package/dist/{workspace-binding-AUZIERMF.js → workspace-binding-M7XSJIWC.js} +3 -3
- package/dist/{workspace-command-VXOY6KPE.js → workspace-command-3T6CT7UA.js} +27 -27
- package/dist/{workspace-env-ZNGE3DFN.js → workspace-env-RIKENQFC.js} +5 -5
- package/dist/{xanosdk-import-FENZ7XMW.js → xanosdk-import-L3ZZIT6I.js} +2 -2
- package/dist/{xanosdk-project-K4RKLLNO.js → xanosdk-project-YVLCGM3Y.js} +5 -5
- package/llms-full.txt +1 -1
- package/llms.txt +1 -1
- package/manifest.json +1 -1
- package/package.json +2 -39
- package/skills/xano-backend/SKILL.md +2 -2
- package/dist/.build-fingerprint +0 -1
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
} from "./chunk-YAZEB255.js";
|
|
20
20
|
import {
|
|
21
21
|
archiveSeedContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J564PMKW.js";
|
|
23
23
|
import {
|
|
24
24
|
shownLabel
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OTUPQ7M3.js";
|
|
26
26
|
import {
|
|
27
27
|
confirm,
|
|
28
28
|
needsConfirmation
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
landingLockPath,
|
|
44
44
|
recordForeignLanding,
|
|
45
45
|
recordLanding
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-LYR6W5LV.js";
|
|
47
47
|
import {
|
|
48
48
|
DEFAULT_BRANCH_LABEL,
|
|
49
49
|
assertBranchAbsent,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
XANOSDK_IMPORT_UNIQUENESS_CODE,
|
|
60
60
|
XanoSdkImportRefusal,
|
|
61
61
|
xanosdkImport
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-M42Y53Z4.js";
|
|
63
63
|
import {
|
|
64
64
|
encodeWorkspaceArchive
|
|
65
65
|
} from "./chunk-3DRXWLJ5.js";
|
|
@@ -79,18 +79,18 @@ import {
|
|
|
79
79
|
assertBundleInput,
|
|
80
80
|
loadBundleText,
|
|
81
81
|
resolveLockPath
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-ZNGUETV7.js";
|
|
83
83
|
import {
|
|
84
84
|
LookupFailedError,
|
|
85
85
|
isUnansweredLookup,
|
|
86
86
|
unansweredCause
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-VJCUFHTQ.js";
|
|
88
88
|
import {
|
|
89
89
|
isSignatureRefusal
|
|
90
90
|
} from "./chunk-EBSJUSID.js";
|
|
91
91
|
import {
|
|
92
92
|
getAccessToken
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-64F6ET45.js";
|
|
94
94
|
import {
|
|
95
95
|
ephemeralLandedOn
|
|
96
96
|
} from "./chunk-DAXFWXSV.js";
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
} from "./chunk-4DVP42ZC.js";
|
|
120
120
|
import {
|
|
121
121
|
backendDirIn
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-N2JZU6VR.js";
|
|
123
123
|
import {
|
|
124
124
|
shellWord
|
|
125
125
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -793,7 +793,7 @@ function markUnchanged(presented, unchanged, noun) {
|
|
|
793
793
|
}
|
|
794
794
|
var REPLACE_DROPS = "which deletes every table's rows there (only seed rows come back)";
|
|
795
795
|
async function replaceCommandHint(args) {
|
|
796
|
-
const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-
|
|
796
|
+
const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./deploy-command-KO5FATR6.js");
|
|
797
797
|
const valued = /* @__PURE__ */ new Set(["--branch", "--backup-branch", "--expect-live"]);
|
|
798
798
|
const dropped = /* @__PURE__ */ new Set(["--prune", "--reset-data", "--seed", "--set-live", "--dry-run", "--replace", "--yes", "-y"]);
|
|
799
799
|
const argv = [];
|
|
@@ -1609,7 +1609,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
|
|
|
1609
1609
|
const held = guidsOf(live);
|
|
1610
1610
|
const codePinned = codePinnedTables(outgoingDoc, lock, classified);
|
|
1611
1611
|
const { orphanFixUps } = await import("./cli.js");
|
|
1612
|
-
const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-
|
|
1612
|
+
const { setGuidRemedy, clearReplacedCommand } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1613
1613
|
const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
|
|
1614
1614
|
const out = [];
|
|
1615
1615
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -1653,7 +1653,7 @@ async function unrecordedTableRenames(args, bundle, live, plan, classified) {
|
|
|
1653
1653
|
return out;
|
|
1654
1654
|
}
|
|
1655
1655
|
async function pendingRenameRefusal(frame, pending, prune, branch) {
|
|
1656
|
-
const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-
|
|
1656
|
+
const { pendingRenameLines, pendingRenameFollowUp, pendingRenameDetail, sameNameRepin } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1657
1657
|
const one = pending.length === 1;
|
|
1658
1658
|
const lines = pending.flatMap(
|
|
1659
1659
|
(p) => pendingRenameLines(
|
|
@@ -2109,7 +2109,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
|
|
|
2109
2109
|
assertBundleFile(args, { command: "deploy" });
|
|
2110
2110
|
const auth = opts.auth ?? await getAccessToken(args);
|
|
2111
2111
|
const withSeed = req.mode === "replace" || req.records === true;
|
|
2112
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
2112
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
2113
2113
|
const toolchain = await discoverToolchainPlugins(process.cwd(), { frozen: args.frozenLock === true });
|
|
2114
2114
|
const loaded = await loadBundleText(
|
|
2115
2115
|
args.dryRun ? { ...args, lockReadOnly: true } : args,
|
|
@@ -2135,11 +2135,11 @@ async function runReleaseCommand(args, dest, opts = {}) {
|
|
|
2135
2135
|
});
|
|
2136
2136
|
};
|
|
2137
2137
|
if (!args.dryRun && args.file !== void 0) {
|
|
2138
|
-
const { ignoreBackendSecretFilesRead } = await import("./deploy-command-
|
|
2138
|
+
const { ignoreBackendSecretFilesRead } = await import("./deploy-command-KO5FATR6.js");
|
|
2139
2139
|
await ignoreBackendSecretFilesRead(args);
|
|
2140
2140
|
}
|
|
2141
2141
|
if (args.static !== void 0) {
|
|
2142
|
-
const { assertNoSeedLeaks } = await import("./deploy-command-
|
|
2142
|
+
const { assertNoSeedLeaks } = await import("./deploy-command-KO5FATR6.js");
|
|
2143
2143
|
await assertNoSeedLeaks(args.static, nonPublicSeedValues);
|
|
2144
2144
|
}
|
|
2145
2145
|
{
|
|
@@ -2249,7 +2249,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
|
|
|
2249
2249
|
pinned: pinned.map((p) => p.guid).filter((g) => g !== void 0)
|
|
2250
2250
|
}).catch(async (err) => {
|
|
2251
2251
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
2252
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
2252
|
+
const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2253
2253
|
const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
|
|
2254
2254
|
const retry = retryCommand2(args);
|
|
2255
2255
|
throw importInProgressError(
|
|
@@ -2384,7 +2384,7 @@ async function runReleaseCommand(args, dest, opts = {}) {
|
|
|
2384
2384
|
});
|
|
2385
2385
|
})() : [];
|
|
2386
2386
|
if (req.mode === "merge" && destIsTenant && live !== void 0 && !dryRunUpToDate) {
|
|
2387
|
-
const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-
|
|
2387
|
+
const { liveTableTriggers, tableTriggerMergeError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2388
2388
|
const triggers = liveTableTriggers(live);
|
|
2389
2389
|
if (triggers.length > 0) {
|
|
2390
2390
|
const { retryCommand: retryCommand2, withheldNote: withheldNote2 } = await import("./retry-command-HG4IFE65.js");
|
|
@@ -2767,7 +2767,7 @@ Retry, or drop \`--backup-branch\` to deploy without one.`,
|
|
|
2767
2767
|
if (isMachineOutput(args)) writeJson(summary);
|
|
2768
2768
|
assertStaticMatchesServedUrls(servedDifferences, planContext);
|
|
2769
2769
|
}
|
|
2770
|
-
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-
|
|
2770
|
+
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-KO5FATR6.js");
|
|
2771
2771
|
const env = buildStaticEnv(destBase, args.staticEnv);
|
|
2772
2772
|
const explicit = Object.keys(args.staticEnv).length > 0;
|
|
2773
2773
|
const to = dest?.kind === "tenant" ? `${dest.type === "ephemeral" ? "ephemeral" : "tenant"}:${dest.name ?? ""}` : "workspace";
|
|
@@ -2819,14 +2819,14 @@ function setLiveRollback(previous, args) {
|
|
|
2819
2819
|
async function assertReleaseIdentitiesFree(args, auth, opts) {
|
|
2820
2820
|
const tenant = opts.tenant;
|
|
2821
2821
|
const target = tenant === void 0 ? { baseUrl: auth.instance, workspaceId: auth.workspaceId } : { baseUrl: tenant.base, workspaceId: tenant.workspaceId };
|
|
2822
|
-
const { detectXanoSdkImportRoute } = await import("./xanosdk-import-
|
|
2822
|
+
const { detectXanoSdkImportRoute } = await import("./xanosdk-import-L3ZZIT6I.js");
|
|
2823
2823
|
let capable;
|
|
2824
2824
|
try {
|
|
2825
2825
|
capable = await detectXanoSdkImportRoute(auth, target);
|
|
2826
2826
|
} catch (err) {
|
|
2827
2827
|
if (err?.status === 501) capable = false;
|
|
2828
2828
|
else {
|
|
2829
|
-
const { unreachableProbeError } = await import("./keep-data-merge-
|
|
2829
|
+
const { unreachableProbeError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2830
2830
|
const retry = retryCommand(args, {
|
|
2831
2831
|
add: pipedYes(args) === "" ? [] : ["--yes"],
|
|
2832
2832
|
command: [opts.verb, ...args.positionals.map(shellWord)].join(" ")
|
|
@@ -2915,4 +2915,4 @@ export {
|
|
|
2915
2915
|
setLiveRollback,
|
|
2916
2916
|
assertReleaseIdentitiesFree
|
|
2917
2917
|
};
|
|
2918
|
-
//# sourceMappingURL=chunk-
|
|
2918
|
+
//# sourceMappingURL=chunk-HXVNBJVA.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
reachableLines,
|
|
4
4
|
readReachableWorkspaces,
|
|
5
5
|
workspaceIdFix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N3LPULRE.js";
|
|
7
7
|
import {
|
|
8
8
|
credentialRejected,
|
|
9
9
|
getAccessToken
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-64F6ET45.js";
|
|
11
11
|
import {
|
|
12
12
|
CREDENTIAL_FILE_VERSION,
|
|
13
13
|
DEFAULT_AUTH_HOST,
|
|
@@ -183,7 +183,7 @@ function prettyProfile(p) {
|
|
|
183
183
|
}
|
|
184
184
|
async function runWhoamiCommand(args) {
|
|
185
185
|
const profile = await fetchProfile(args).catch(async (err) => {
|
|
186
|
-
const { unansweredRead } = await import("./source-resolve-
|
|
186
|
+
const { unansweredRead } = await import("./source-resolve-GGRHO6NW.js");
|
|
187
187
|
throw unansweredRead(err, "read the signed-in user", "workspace");
|
|
188
188
|
});
|
|
189
189
|
if (isMachineOutput(args)) {
|
|
@@ -203,4 +203,4 @@ export {
|
|
|
203
203
|
profileValue,
|
|
204
204
|
runWhoamiCommand
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-IA4FMPJ3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveProjectEntry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J564PMKW.js";
|
|
4
4
|
import {
|
|
5
5
|
isUnusablePin,
|
|
6
6
|
readPin,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-FVBJKM6N.js";
|
|
14
14
|
import {
|
|
15
15
|
LOCAL_DEPLOY_CREDENTIAL
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XWEDFVJ6.js";
|
|
17
17
|
import {
|
|
18
18
|
LOCAL_ENGINE_OVERRIDE_ENV,
|
|
19
19
|
engineOverrideFromEnv,
|
|
@@ -173,4 +173,4 @@ export {
|
|
|
173
173
|
pinAfterAcquire,
|
|
174
174
|
pinWrittenText
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
176
|
+
//# sourceMappingURL=chunk-IWFKPEWJ.js.map
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-X4DVXBFY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSource
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VJCUFHTQ.js";
|
|
14
14
|
import {
|
|
15
15
|
downloadRelease
|
|
16
16
|
} from "./chunk-JXX2QXPP.js";
|
|
17
17
|
import {
|
|
18
18
|
backendDirIn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N2JZU6VR.js";
|
|
20
20
|
import {
|
|
21
21
|
BARE,
|
|
22
22
|
UsageError,
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
gatedApiGroups,
|
|
145
145
|
asWorkspaceArchive
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-J564PMKW.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
passwordHashesWarning,
|
|
12
12
|
passwordOrigin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VV7FVGOX.js";
|
|
14
14
|
import {
|
|
15
15
|
EXIT_STATIC_FAILED,
|
|
16
16
|
assertStaticHostExists,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ImportNotSentError,
|
|
32
32
|
XanoSdkImportRefusal,
|
|
33
33
|
xanosdkImport
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-M42Y53Z4.js";
|
|
35
35
|
import {
|
|
36
36
|
archiveHostedFiles,
|
|
37
37
|
decodeWorkspaceArchive,
|
|
@@ -48,13 +48,13 @@ import {
|
|
|
48
48
|
missingLockDir,
|
|
49
49
|
refuseCompileValueFlags,
|
|
50
50
|
refuseValueFlagsBesideBundle
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZNGUETV7.js";
|
|
52
52
|
import {
|
|
53
53
|
recordDeployed
|
|
54
54
|
} from "./chunk-5Z4WQQHC.js";
|
|
55
55
|
import {
|
|
56
56
|
lookupEphemeral
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-VJCUFHTQ.js";
|
|
58
58
|
import {
|
|
59
59
|
createEphemeral,
|
|
60
60
|
getEphemeral,
|
|
@@ -68,10 +68,10 @@ import {
|
|
|
68
68
|
} from "./chunk-745NOWB7.js";
|
|
69
69
|
import {
|
|
70
70
|
getAccessToken
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-64F6ET45.js";
|
|
72
72
|
import {
|
|
73
73
|
otherCredentialRefusal
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-PAWLPNBA.js";
|
|
75
75
|
import {
|
|
76
76
|
environmentKey,
|
|
77
77
|
ephemeralLandedOn,
|
|
@@ -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-FSRARFF7.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-FSRARFF7.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-FSRARFF7.js");
|
|
299
299
|
const { qualifiedName } = await import("./tests-ZFQWDWS2.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-RIKENQFC.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-QLVCR2JD.js");
|
|
347
347
|
paths.push(defaultWorkspaceSecretsPath(args.file));
|
|
348
348
|
}
|
|
349
349
|
const { gitSaysIgnored } = await import("./store-ZWQFSXH5.js");
|
|
350
|
-
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-
|
|
350
|
+
const { ensureSecretPathGitignored, refuseIfTracked, secretPathLabel } = await import("./gitignore-RDEUQHHG.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-WSWAHL2W.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-GGRHO6NW.js");
|
|
426
|
+
const { looksLikeSource, resolveProjectEntry } = await import("./deploy-source-7GCMMZKV.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-Z3HXXLLO.js");
|
|
502
502
|
return runReleaseCommand(args, {
|
|
503
503
|
base: resolved.target.base,
|
|
504
504
|
workspaceId: resolved.target.workspaceId,
|
|
@@ -641,9 +641,9 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
641
641
|
const { resolveAiBilling } = await import("./project-config-SGRYMHBT.js");
|
|
642
642
|
const aiBilling = resolveAiBilling(args.aiBilling, dir);
|
|
643
643
|
const fetchedSource = sourceCredential !== void 0 && args.file !== void 0 ? { credential: sourceCredential, spec: args.file } : void 0;
|
|
644
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
644
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
645
645
|
const toolchain = await discoverToolchainPlugins(dir, { frozen: args.frozenLock === true });
|
|
646
|
-
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-
|
|
646
|
+
const { archive, shownSource, bundleObject, bundleText, content, passwordColumns, classifiedLock, commitLock, nonPublicSeedValues } = fetchedSource ? await import("./deploy-source-7GCMMZKV.js").then(async (m) => {
|
|
647
647
|
const f = await m.fetchSourceArchive(fetchedSource.credential, fetchedSource.spec, dir);
|
|
648
648
|
const decoded = decodeWorkspaceArchive(f.archive);
|
|
649
649
|
noteReleaseCarriesNoEnv(fetchedSource.spec, m.gatedApiGroups(decoded));
|
|
@@ -704,9 +704,9 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
704
704
|
"; nothing was deployed"
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
|
-
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-
|
|
707
|
+
const { chooseLocalEngine, explainOverrideFailure, pinAfterAcquire } = await import("./local-engine-choice-PCM45R3A.js");
|
|
708
708
|
const choice = await chooseLocalEngine(dest.downloadUrl, dir, isMachineOutput(args));
|
|
709
|
-
const { ensureProjectEngine } = await import("./local-engine-deploy-
|
|
709
|
+
const { ensureProjectEngine } = await import("./local-engine-deploy-IUHWB43Q.js");
|
|
710
710
|
const { ENGINE_LICENSE_NOTICE } = await import("./local-engine-release-OK6GKULS.js");
|
|
711
711
|
const pin = pinAfterAcquire(choice, dir);
|
|
712
712
|
let downloadedEngine = false;
|
|
@@ -739,7 +739,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
739
739
|
`Replaced Xano Engine ${replaced.name} (${replaced.from ?? "an unrecorded version"} \u2192 ${replaced.to ?? "the resolved engine"}). It starts empty, so this deploy seeds it.`
|
|
740
740
|
);
|
|
741
741
|
}
|
|
742
|
-
const { aiOutcomeDocument, aiOutcomeLine } = await import("./local-engine-ai-
|
|
742
|
+
const { aiOutcomeDocument, aiOutcomeLine } = await import("./local-engine-ai-YWAMTHME.js");
|
|
743
743
|
if (ai !== void 0) info(aiOutcomeLine(ai));
|
|
744
744
|
const arm = selectDeployArm({
|
|
745
745
|
...flags,
|
|
@@ -765,7 +765,7 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
765
765
|
};
|
|
766
766
|
try {
|
|
767
767
|
if (arm.arm === "merge") {
|
|
768
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
768
|
+
const { mergeKeepingData } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
769
769
|
merged = await mergeKeepingData({
|
|
770
770
|
auth: bearer,
|
|
771
771
|
baseUrl: engine.url,
|
|
@@ -807,10 +807,10 @@ async function deployToLocalEngine(args, dest, sourceCredential, ctx) {
|
|
|
807
807
|
}
|
|
808
808
|
} catch (err) {
|
|
809
809
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
810
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
810
|
+
const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
811
811
|
throw importInProgressError(`Xano Engine ${engine.name}`, rerunOf(args), err);
|
|
812
812
|
}
|
|
813
|
-
const { explainUnsupportedEngineImport } = await import("./local-engine-deploy-
|
|
813
|
+
const { explainUnsupportedEngineImport } = await import("./local-engine-deploy-IUHWB43Q.js");
|
|
814
814
|
const unsupported = explainUnsupportedEngineImport(err, engineVersion, {
|
|
815
815
|
latest: await latestEngineRelease(err),
|
|
816
816
|
resetRerun: arm.arm === "merge" ? `${rerunOf(args).command} --reset` : void 0
|
|
@@ -1137,15 +1137,15 @@ async function runDeploy(args) {
|
|
|
1137
1137
|
if (args.reset && !args.keepData) {
|
|
1138
1138
|
info("`--reset` changes nothing here: it only overrides `--keep-data`, and without it a deploy already replaces the environment.");
|
|
1139
1139
|
}
|
|
1140
|
-
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-
|
|
1140
|
+
const { looksLikeSource, resolveProjectEntry, fetchSourceArchive, passwordSeedColumns, archiveSeedContent, gatedApiGroups } = await import("./deploy-source-7GCMMZKV.js");
|
|
1141
1141
|
const fetching = args.file !== void 0 && looksLikeSource(args.file);
|
|
1142
1142
|
const sourceSpec = fetching ? await parseDeploySource(args.file) : void 0;
|
|
1143
1143
|
if (sourceSpec !== void 0) refuseValueFlagsForSource(args, args.file, sourceSpec);
|
|
1144
1144
|
if (destination.kind === "local") {
|
|
1145
1145
|
refuseSameEngine(sourceSpec, process.cwd());
|
|
1146
|
-
const { refuseProfileForLocal } = await import("./tracked-backend-
|
|
1146
|
+
const { refuseProfileForLocal } = await import("./tracked-backend-7XW4KPIR.js");
|
|
1147
1147
|
refuseProfileForLocal(args.profile, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind], void 0, {});
|
|
1148
|
-
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-
|
|
1148
|
+
const { refuseCredentialFlagsForLocal } = await import("./local-engine-choice-PCM45R3A.js");
|
|
1149
1149
|
refuseCredentialFlagsForLocal(args, sourceSpec === void 0 ? ["local"] : ["local", sourceSpec.kind]);
|
|
1150
1150
|
}
|
|
1151
1151
|
if (!fetching) {
|
|
@@ -1161,7 +1161,7 @@ async function runDeploy(args) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
refuseMissingStaticDir(args);
|
|
1163
1163
|
if (destination.kind === "local") {
|
|
1164
|
-
const { memoCredential } = await import("./tracked-backend-
|
|
1164
|
+
const { memoCredential } = await import("./tracked-backend-7XW4KPIR.js");
|
|
1165
1165
|
return deployToLocalEngine(
|
|
1166
1166
|
args,
|
|
1167
1167
|
destination,
|
|
@@ -1173,7 +1173,7 @@ async function runDeploy(args) {
|
|
|
1173
1173
|
const auth = await getAccessToken(args);
|
|
1174
1174
|
refuseSameEphemeral(sourceSpec, auth, process.cwd(), contextFlags(args), args.keepData && !args.reset);
|
|
1175
1175
|
await noteRunScopeFor(auth);
|
|
1176
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
1176
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-YSM6DMDB.js");
|
|
1177
1177
|
const toolchain = await discoverToolchainPlugins(process.cwd(), {
|
|
1178
1178
|
frozen: args.frozenLock === true
|
|
1179
1179
|
});
|
|
@@ -1307,7 +1307,7 @@ async function runDeploy(args) {
|
|
|
1307
1307
|
}).finally(() => noteLanded(void 0));
|
|
1308
1308
|
if (staticSummary !== void 0) summary.static = staticSummary;
|
|
1309
1309
|
if (summary.ephemeral !== void 0) {
|
|
1310
|
-
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-
|
|
1310
|
+
const { landingLockPath, recordLanding, recordForeignLanding } = await import("./landing-record-ZY4O7OLQ.js");
|
|
1311
1311
|
const dest = { kind: "ephemeral", name: summary.ephemeral.name };
|
|
1312
1312
|
const { storedColumnsAfter } = await import("./live-diff-GZ6JUNP6.js");
|
|
1313
1313
|
const sent = JSON.parse(bundle);
|
|
@@ -1371,7 +1371,7 @@ async function runDeploy(args) {
|
|
|
1371
1371
|
async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts = {}) {
|
|
1372
1372
|
if (args.noDevEnv || summary.url === void 0) return;
|
|
1373
1373
|
if (opts.staticServing === true || summary.static !== void 0 && summary.static.error === void 0) {
|
|
1374
|
-
const { staleDevEnv } = await import("./dev-env-sync-
|
|
1374
|
+
const { staleDevEnv } = await import("./dev-env-sync-LZ22CSKD.js");
|
|
1375
1375
|
let stale;
|
|
1376
1376
|
try {
|
|
1377
1377
|
stale = staleDevEnv(cwd, summary.url);
|
|
@@ -1385,7 +1385,7 @@ async function syncDevEnvAfterDeploy(args, summary, cwd = process.cwd(), opts =
|
|
|
1385
1385
|
}
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
|
-
const { syncDevEnv } = await import("./dev-env-sync-
|
|
1388
|
+
const { syncDevEnv } = await import("./dev-env-sync-LZ22CSKD.js");
|
|
1389
1389
|
try {
|
|
1390
1390
|
const written = syncDevEnv(cwd, summary.url);
|
|
1391
1391
|
if (written === void 0) return;
|
|
@@ -1495,7 +1495,7 @@ async function latestEngineRelease(err) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
async function mergeGuards(args, lock, outgoing) {
|
|
1497
1497
|
const interactive = process.stdin.isTTY === true && !isMachineOutput(args);
|
|
1498
|
-
const pinned = outgoing === void 0 ? [] : (await import("./release-command-
|
|
1498
|
+
const pinned = outgoing === void 0 ? [] : (await import("./release-command-Z3HXXLLO.js")).pinnedCanonicalGuids(outgoing.bundle, lock, outgoing.compiled);
|
|
1499
1499
|
const guards = {
|
|
1500
1500
|
...pinned.length > 0 ? { pinned } : {},
|
|
1501
1501
|
allowForeignDeletes: args.yes === true,
|
|
@@ -1516,7 +1516,7 @@ async function mergeGuards(args, lock, outgoing) {
|
|
|
1516
1516
|
for (const guid of e.replaced ?? []) replaced.set(guid, key.slice("dbo:".length));
|
|
1517
1517
|
}
|
|
1518
1518
|
const { orphanFixUps, resolveLockPath, composedChildren } = await import("./cli.js");
|
|
1519
|
-
const { clearReplacedCommand } = await import("./keep-data-merge-
|
|
1519
|
+
const { clearReplacedCommand } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1520
1520
|
const lockPath = resolveLockPath(args, entry);
|
|
1521
1521
|
const run = (line) => (line ?? "").replace(/^(renamed|deleted)\? run: /, "");
|
|
1522
1522
|
const keys = Object.keys(lock.objects);
|
|
@@ -1757,7 +1757,7 @@ Re-run as \`${rerun}\` to answer yes without being asked.${note}`,
|
|
|
1757
1757
|
}
|
|
1758
1758
|
const { confirm } = await import("./prompt-JVYQH4OR.js");
|
|
1759
1759
|
if (await confirm(question, { flag: "--yes", refusal: { details, rerun, note } })) return;
|
|
1760
|
-
const { KeepDataDeclined } = await import("./keep-data-merge-
|
|
1760
|
+
const { KeepDataDeclined } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1761
1761
|
throw new KeepDataDeclined(label, "deployed");
|
|
1762
1762
|
}
|
|
1763
1763
|
function recordedEntry(file) {
|
|
@@ -1792,7 +1792,7 @@ async function refuseOtherProfileEphemeral(state, auth) {
|
|
|
1792
1792
|
{ hintFor: { command: "deploy" } }
|
|
1793
1793
|
);
|
|
1794
1794
|
if (refusal === void 0) return;
|
|
1795
|
-
const { reachableFirst } = await import("./env-target-
|
|
1795
|
+
const { reachableFirst } = await import("./env-target-CXZXMK3W.js");
|
|
1796
1796
|
throw await reachableFirst(refusal, auth);
|
|
1797
1797
|
}
|
|
1798
1798
|
async function refuseKeepDataElsewhere(state, auth) {
|
|
@@ -1806,7 +1806,7 @@ async function refuseKeepDataElsewhere(state, auth) {
|
|
|
1806
1806
|
{ hintFor: { command: "deploy" } }
|
|
1807
1807
|
);
|
|
1808
1808
|
if (refusal === void 0) return;
|
|
1809
|
-
const { reachableFirst } = await import("./env-target-
|
|
1809
|
+
const { reachableFirst } = await import("./env-target-CXZXMK3W.js");
|
|
1810
1810
|
throw await reachableFirst(refusal, auth);
|
|
1811
1811
|
}
|
|
1812
1812
|
async function reconcileRename(err, auth, name, display) {
|
|
@@ -1918,7 +1918,7 @@ async function deployEphemeralGuarded(auth, ctx, createGuard) {
|
|
|
1918
1918
|
}).finally(() => creating?.clear()).catch(async (err) => {
|
|
1919
1919
|
if (isEphemeralDisabled(err)) throw ephemeralDisabledError(source);
|
|
1920
1920
|
if (err.status === 404) {
|
|
1921
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
1921
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-M7XSJIWC.js");
|
|
1922
1922
|
await refuseUnreachableWorkspace(auth);
|
|
1923
1923
|
}
|
|
1924
1924
|
throw unknownCreateOutcome(err, display, flags, retryCommand(args, { creates: true }));
|
|
@@ -1986,7 +1986,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
1986
1986
|
if (arm.arm === "replace") refuseStaticHostAReplaceClears(args, true);
|
|
1987
1987
|
else await assertStaticHostExists(args, auth, { baseUrl, workspaceId: 1 });
|
|
1988
1988
|
if (arm.arm === "replace") {
|
|
1989
|
-
const { gateForeignReplace } = await import("./keep-data-merge-
|
|
1989
|
+
const { gateForeignReplace } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
1990
1990
|
const { allowForeignDeletes, confirm } = await mergeGuards(args, void 0);
|
|
1991
1991
|
await gateForeignReplace({
|
|
1992
1992
|
auth,
|
|
@@ -2058,7 +2058,7 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2058
2058
|
let merged;
|
|
2059
2059
|
try {
|
|
2060
2060
|
if (arm.arm === "merge") {
|
|
2061
|
-
const { mergeKeepingData } = await import("./keep-data-merge-
|
|
2061
|
+
const { mergeKeepingData } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2062
2062
|
merged = await mergeKeepingData({
|
|
2063
2063
|
auth,
|
|
2064
2064
|
baseUrl,
|
|
@@ -2112,11 +2112,11 @@ ${createdButFailedNote(fresh.name, false, args, false, { untracked: true })}`);
|
|
|
2112
2112
|
if (!lockCommitted) ctx.warnOrphansUncommitted?.();
|
|
2113
2113
|
if (err instanceof Error && err.name === "KeepDataDeclined") throw err;
|
|
2114
2114
|
if (err instanceof XanoSdkImportRefusal && err.retryable) {
|
|
2115
|
-
const { importInProgressError } = await import("./keep-data-merge-
|
|
2115
|
+
const { importInProgressError } = await import("./keep-data-merge-BNX3HEHM.js");
|
|
2116
2116
|
const retry = retryCommand(args);
|
|
2117
2117
|
throw importInProgressError(namedEphemeral(target), { command: retry.command, note: withheldNote(retry.withheld) }, err);
|
|
2118
2118
|
}
|
|
2119
|
-
const { withSignatureHint } = await import("./release-command-
|
|
2119
|
+
const { withSignatureHint } = await import("./release-command-Z3HXXLLO.js");
|
|
2120
2120
|
importFailure = withSignatureHint(err, args.bundle);
|
|
2121
2121
|
}
|
|
2122
2122
|
if (arm.arm === "merge" && renamedTo !== void 0) target = { ...target, display: renamedTo };
|
|
@@ -2410,4 +2410,4 @@ export {
|
|
|
2410
2410
|
unknownCreateOutcome,
|
|
2411
2411
|
deployStaticTo
|
|
2412
2412
|
};
|
|
2413
|
-
//# sourceMappingURL=chunk-
|
|
2413
|
+
//# sourceMappingURL=chunk-JVMAWMO3.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLXGLHK3.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJS5I6V4.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-KL4PGJ2G.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyFailure
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XD5FOBMZ.js";
|
|
4
4
|
import {
|
|
5
5
|
describeWrite
|
|
6
6
|
} from "./chunk-4KHEMC32.js";
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
OperationError,
|
|
254
254
|
runOperation
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-KU4HLYWT.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-4DVP42ZC.js";
|
|
24
24
|
import {
|
|
25
25
|
backendDirIn
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N2JZU6VR.js";
|
|
27
27
|
import {
|
|
28
28
|
displayPath,
|
|
29
29
|
info,
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
holdsLanding,
|
|
261
261
|
forgetLanding
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-LYR6W5LV.js.map
|
|
@@ -461,7 +461,7 @@ async function post(auth, url, opts, action) {
|
|
|
461
461
|
const aftermath = !writes ? `A dry run writes nothing, so ${target} is untouched. Retry when the instance is reachable.` : opts.mode === "replace" ? `The request did not complete, so the import may or may not have landed, in whole or in part. A replace rewrites all of ${target}, so it is safe to run again once the instance is reachable.` : `The request did not complete, so the import may or may not have landed, in whole or in part.` + (opts.stateCheck !== void 0 ? ` ${opts.stateCheck}` : "");
|
|
462
462
|
const where = `${transportTarget(url)}${opts.label !== void 0 ? ` (${opts.label})` : ""}`;
|
|
463
463
|
if (res === void 0) {
|
|
464
|
-
const { classifyFailure } = await import("./operation-outcome-
|
|
464
|
+
const { classifyFailure } = await import("./operation-outcome-POYID3M6.js");
|
|
465
465
|
if (writes && !isTimeoutError(failure) && classifyFailure(failure, { writeSent: true }) === "no") {
|
|
466
466
|
const untrusted = certificateFailureCode(failure) !== void 0;
|
|
467
467
|
throw new ImportNotSentError(
|
|
@@ -557,4 +557,4 @@ export {
|
|
|
557
557
|
withDefaultBranchPointer,
|
|
558
558
|
xanosdkImport
|
|
559
559
|
};
|
|
560
|
-
//# sourceMappingURL=chunk-
|
|
560
|
+
//# sourceMappingURL=chunk-M42Y53Z4.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-2TFRR6JV.js";
|
|
8
8
|
import {
|
|
9
9
|
readVersion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZNGUETV7.js";
|
|
11
11
|
import {
|
|
12
12
|
readPathEnvVar
|
|
13
13
|
} from "./chunk-EUUUMY7J.js";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
runExitedClean,
|
|
352
352
|
maybeNotifyUpdate
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-MJA5BP2M.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XANO_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T2LFOMOP.js";
|
|
4
4
|
import {
|
|
5
5
|
projectRootFrom
|
|
6
6
|
} from "./chunk-HU7F56VF.js";
|
|
@@ -67,4 +67,4 @@ export {
|
|
|
67
67
|
backendDirIn,
|
|
68
68
|
resolveBackendDir
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-N2JZU6VR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ENV_WORKSPACE
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-64F6ET45.js";
|
|
4
4
|
import {
|
|
5
5
|
credentialFileOf
|
|
6
6
|
} from "./chunk-4DVP42ZC.js";
|
|
@@ -162,4 +162,4 @@ export {
|
|
|
162
162
|
rerunInWorkspace,
|
|
163
163
|
heldElsewhereError
|
|
164
164
|
};
|
|
165
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-N3LPULRE.js.map
|