@xano/sdk 1.0.17 → 1.0.19
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 +23 -0
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-QTFMNYPY.js → agent-file-refresh-5IP25UYO.js} +4 -5
- package/dist/{agent-skill-command-XZVBG34H.js → agent-skill-command-BPM4S6C7.js} +13 -18
- package/dist/{backend-dir-DCT3T6HP.js → backend-dir-RLILKCMR.js} +4 -5
- package/dist/bin.js +13 -14
- package/dist/{branch-commands-OEMOFAKC.js → branch-commands-5HKCBRLN.js} +7 -8
- package/dist/bundle.js +2 -2
- package/dist/{chunk-WDN4QIJ4.js → chunk-2HBJU76D.js} +6 -6
- package/dist/{chunk-ES6FBPLY.js → chunk-2NUOFHPX.js} +2 -2
- package/dist/{chunk-QTOW6YXL.js → chunk-3FNEHRJF.js} +2 -2
- package/dist/{chunk-RIT3WBBX.js → chunk-3X4B5GWY.js} +2 -2
- package/dist/{chunk-HXFUCPZO.js → chunk-4HMF5TRB.js} +2 -2
- package/dist/{chunk-RH3NQTGQ.js → chunk-554FJWNH.js} +2 -11
- package/dist/{chunk-H5OM5G3O.js → chunk-5AHHO2QA.js} +55 -55
- package/dist/{chunk-PODT53SQ.js → chunk-5JUWB6XL.js} +2 -2
- package/dist/{chunk-EXJ4Q5F6.js → chunk-6SEPZQYB.js} +2 -2
- package/dist/{chunk-R7Y6S7FF.js → chunk-AJPICYPW.js} +40 -40
- package/dist/{chunk-CNNGNK46.js → chunk-ASUDP4OS.js} +4 -4
- package/dist/{chunk-HMV2VGTU.js → chunk-B6ZHSM2D.js} +28 -28
- package/dist/{chunk-6DSA6W4O.js → chunk-BCN6OZLF.js} +2 -2
- package/dist/{chunk-LXJ72GY2.js → chunk-BT6CJNEO.js} +2 -2
- package/dist/{chunk-SOAZIMWL.js → chunk-CO7US54H.js} +2 -2
- package/dist/{chunk-QYZSNN35.js → chunk-D4N72H35.js} +1 -1
- package/dist/{chunk-Q3CBDXKL.js → chunk-DO5VZIY4.js} +2 -2
- package/dist/{chunk-ZQUBCGGR.js → chunk-E7VF2JVJ.js} +2 -2
- package/dist/{chunk-M2IB6N4V.js → chunk-GTB7JL3M.js} +2 -2
- package/dist/{chunk-J2KY2VNC.js → chunk-HUGNB6UN.js} +19 -19
- package/dist/{chunk-NLWYNVJV.js → chunk-JORPZKBE.js} +2 -2
- package/dist/{chunk-LWGCUB2A.js → chunk-JUCL5MUZ.js} +2 -2
- package/dist/{chunk-GUC73LRA.js → chunk-K23RUXSH.js} +5 -31
- package/dist/{chunk-GBPIFCWL.js → chunk-KG3RDXN5.js} +2 -2
- package/dist/{chunk-GYM22X2X.js → chunk-KVF7YQ2W.js} +2 -2
- package/dist/{chunk-V4466NNS.js → chunk-KYQRIL4V.js} +2 -2
- package/dist/{chunk-ACFBRMCS.js → chunk-L4L6YITX.js} +2 -2
- package/dist/{chunk-7NKC4MBT.js → chunk-LRN6QX44.js} +3 -3
- package/dist/{chunk-3QQFP3AD.js → chunk-NYIFU3BR.js} +7 -7
- package/dist/{chunk-4XGZ325S.js → chunk-OJ6YGRPV.js} +3 -3
- package/dist/{chunk-PCY4IPXK.js → chunk-OTYK2V44.js} +13 -13
- package/dist/{chunk-FIOC7RSU.js → chunk-PKBC7G5H.js} +12 -1
- package/dist/{chunk-C6RBLPFY.js → chunk-PLOBHRGV.js} +16 -16
- package/dist/{chunk-FYPTWYCU.js → chunk-Q45RTKWW.js} +2 -2
- package/dist/{chunk-4LT5AVHF.js → chunk-QETVFGD7.js} +7 -7
- package/dist/{chunk-573RRKNT.js → chunk-QK2WIASY.js} +2 -2
- package/dist/{chunk-CWC6HE66.js → chunk-UJ5HLRYH.js} +16 -16
- package/dist/{chunk-UDW2KAVF.js → chunk-UQNDODRU.js} +2 -2
- package/dist/{chunk-5AVFVC22.js → chunk-WDWIXCGB.js} +3 -3
- package/dist/{chunk-H3R4PAOI.js → chunk-XKHQLKUL.js} +2 -2
- package/dist/{chunk-DNUU4IEM.js → chunk-YP4QTC4F.js} +3 -3
- package/dist/{chunk-ANUBTY3C.js → chunk-YT5UN2F4.js} +2 -2
- package/dist/cli.js +12 -13
- package/dist/{codegen-command-HCHTNHDF.js → codegen-command-OF3TPC66.js} +24 -25
- package/dist/{deploy-command-LYZ76OBA.js → deploy-command-MGYR2TKC.js} +16 -17
- package/dist/{deploy-source-AJESF6J2.js → deploy-source-UHCHCI5Z.js} +7 -8
- package/dist/{dev-env-sync-PZEIRCFC.js → dev-env-sync-XWZVXEI2.js} +13 -14
- package/dist/{env-example-refresh-HLE2HRV4.js → env-example-refresh-FACP4FQE.js} +25 -26
- package/dist/{env-pull-command-OTTZHTLK.js → env-pull-command-SHK4TI6U.js} +15 -16
- package/dist/{env-target-VXOMKCMO.js → env-target-ZQSPPN4A.js} +2 -2
- package/dist/{env-var-command-TDVSO3JY.js → env-var-command-Q2ZHKWAQ.js} +13 -14
- package/dist/{ephemeral-command-AX5TRR23.js → ephemeral-command-FKOSN56R.js} +16 -17
- package/dist/{generate-command-LMSKMR4J.js → generate-command-2JCMZ6CG.js} +28 -29
- package/dist/{gitignore-GKM5G2DJ.js → gitignore-Z5N6DEEV.js} +6 -7
- package/dist/{impersonate-command-QTEOBL5N.js → impersonate-command-R24VBFQA.js} +9 -10
- package/dist/{init-command-OMZVE54Z.js → init-command-UOCNESZK.js} +15 -16
- package/dist/{init-modules-OTISW6LL.js → init-modules-5DYK7V4J.js} +2 -2
- package/dist/internal.js +0 -16
- package/dist/{keep-data-merge-ECLY5DYP.js → keep-data-merge-HLIXZC77.js} +8 -8
- package/dist/{landing-record-RVE5WLFS.js → landing-record-FYKDJIUF.js} +5 -6
- package/dist/{live-diff-KJ2TWWWT.js → live-diff-YOFOJCFX.js} +3 -3
- package/dist/{local-engine-choice-CMG5V7RL.js → local-engine-choice-4ZA2HZXH.js} +8 -9
- package/dist/{local-engine-command-UMY37AZL.js → local-engine-command-WQS4SD6N.js} +9 -10
- package/dist/{local-engine-mcp-command-AV2T3U4B.js → local-engine-mcp-command-SUAVS5UA.js} +9 -10
- package/dist/{lock-commands-PSKHBOKS.js → lock-commands-ZT6YTQYA.js} +13 -14
- package/dist/{login-command-M7RKU3DR.js → login-command-ONGJASKA.js} +9 -10
- package/dist/{logout-command-DAC3XKLT.js → logout-command-PLYGFHBQ.js} +3 -4
- package/dist/{loop-HILLODVH.js → loop-CLLBQSJF.js} +3 -3
- package/dist/{marketplace-command-2M33OTSN.js → marketplace-command-LNNAA7ZK.js} +13 -14
- package/dist/{meta-client-FC4DWPAC.js → meta-client-JND42QEJ.js} +2 -2
- package/dist/node.js +16 -17
- package/dist/{operation-outcome-3V4G7QD3.js → operation-outcome-U6IWKLBK.js} +4 -4
- package/dist/{output-target-LTU4L3IA.js → output-target-QJSHZBVY.js} +7 -8
- package/dist/{plan-disclosure-6MG4YYJV.js → plan-disclosure-XTAEE4BE.js} +5 -5
- package/dist/{preflight-command-724B7Y73.js → preflight-command-ZKUQSIL2.js} +21 -22
- package/dist/{profile-command-REIJ4F3Y.js → profile-command-PJUA5ZMX.js} +10 -11
- package/dist/{promote-command-5FK2NFHG.js → promote-command-NDYP66LD.js} +32 -33
- package/dist/{publish-command-VEDUWLVB.js → publish-command-JSYK6HOW.js} +16 -17
- package/dist/{pull-command-UXNEJSDI.js → pull-command-K5X367MA.js} +26 -27
- package/dist/{release-command-BCKJ4BUN.js → release-command-OC7MT4FV.js} +24 -25
- package/dist/{release-ns-command-VFI4PPSX.js → release-ns-command-EHNEAEDU.js} +33 -34
- package/dist/{routes-manifest-file-R3JLJ5CA.js → routes-manifest-file-A2PW7IQ7.js} +2 -2
- package/dist/{secrets-file-GF46TDY7.js → secrets-file-2RHMJFXQ.js} +5 -6
- package/dist/{secrets-fill-command-HKNROT6W.js → secrets-fill-command-HYMF6EZM.js} +15 -16
- package/dist/{source-resolve-QYSVNJMY.js → source-resolve-PMA7SHZE.js} +3 -3
- package/dist/{status-command-RLXDDCZA.js → status-command-CROHQRPI.js} +13 -39
- package/dist/{sync-baseline-GRS33AB5.js → sync-baseline-LSGKNCKM.js} +5 -5
- package/dist/{sync-contributions-BV7DFWBZ.js → sync-contributions-QDEWZ3IU.js} +2 -2
- package/dist/{tables-command-EXHXLLN6.js → tables-command-BKVDHAGJ.js} +10 -11
- package/dist/{tenant-command-D5H7MR3C.js → tenant-command-Y7VCGDMY.js} +38 -39
- package/dist/{test-command-ORMWZXC3.js → test-command-2RAUNIU5.js} +10 -11
- package/dist/{token-EFSD6WSQ.js → token-4I26OGWH.js} +2 -3
- package/dist/{toolchain-modules-BC37MYYD.js → toolchain-modules-XM4JXHQC.js} +2 -2
- package/dist/{tracked-backend-IPEGNGNI.js → tracked-backend-EZE6H3EZ.js} +9 -10
- package/dist/{update-check-4YTFF7NB.js → update-check-QLB5DV3B.js} +14 -15
- package/dist/{upgrade-command-J4CPYEGO.js → upgrade-command-4DCDBDB5.js} +16 -17
- package/dist/{whoami-command-XGVTKQSL.js → whoami-command-WI4VT3IN.js} +4 -5
- package/dist/{workspace-JGUNVFRE.js → workspace-DIM3SBPV.js} +2 -2
- package/dist/{workspace-binding-MQ2QIWOJ.js → workspace-binding-43PBQEE4.js} +3 -4
- package/dist/{workspace-command-LSEG62RA.js → workspace-command-FWTHIFVI.js} +34 -35
- package/dist/{workspace-env-7U7OLRUO.js → workspace-env-5PJVWQ2O.js} +5 -6
- package/dist/{xanosdk-import-Y5SBF4LP.js → xanosdk-import-VOJEAK5Q.js} +2 -2
- package/dist/{xanosdk-project-5XARMFZ7.js → xanosdk-project-PV3ORVP5.js} +5 -6
- package/guides/coverage.md +9 -12
- package/llms-full.txt +2 -5
- package/llms.txt +2 -5
- package/manifest.json +2 -10
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +2 -4
- package/dist/chunk-VYJYDMY6.js +0 -9
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
sanitizeAppName,
|
|
16
16
|
settleClashes,
|
|
17
17
|
templateVarsFor
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PLOBHRGV.js";
|
|
19
19
|
import {
|
|
20
20
|
renderManifestFile,
|
|
21
21
|
reportModuleFailures
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KG3RDXN5.js";
|
|
23
23
|
import {
|
|
24
24
|
ROUTES_MANIFEST_BASENAME,
|
|
25
25
|
RouteManifestError,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
} from "./chunk-SVQMDVND.js";
|
|
28
28
|
import {
|
|
29
29
|
syncDigests
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OJ6YGRPV.js";
|
|
31
31
|
import {
|
|
32
32
|
archiveSeedContent,
|
|
33
33
|
fetchSourceArchive
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YP4QTC4F.js";
|
|
35
35
|
import {
|
|
36
36
|
confirm
|
|
37
37
|
} from "./chunk-AICWDCLJ.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
spread,
|
|
71
71
|
untypedKey,
|
|
72
72
|
withDeclineContext
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-CO7US54H.js";
|
|
74
74
|
import {
|
|
75
75
|
recordSync,
|
|
76
76
|
syncBranchLabel
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
} from "./chunk-54CJ74BH.js";
|
|
89
89
|
import {
|
|
90
90
|
detectInstallMode
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KVF7YQ2W.js";
|
|
92
92
|
import {
|
|
93
93
|
UNSUPPORTED_SECTIONS,
|
|
94
94
|
decodedCounts,
|
|
@@ -99,29 +99,29 @@ import {
|
|
|
99
99
|
sectionOmission,
|
|
100
100
|
subtractDefaults,
|
|
101
101
|
workspaceKeyOmission
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-3X4B5GWY.js";
|
|
103
103
|
import {
|
|
104
104
|
ensureWorkspaceEnvGitignored,
|
|
105
105
|
requireSecretPathGitignored
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-BT6CJNEO.js";
|
|
107
107
|
import {
|
|
108
108
|
loadDefault,
|
|
109
109
|
readVersion,
|
|
110
110
|
resolveKnowledge
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-5AHHO2QA.js";
|
|
112
112
|
import {
|
|
113
113
|
WORKSPACE_ENV_BASENAME,
|
|
114
114
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
115
115
|
renderWorkspaceEnvExample,
|
|
116
116
|
renderWorkspaceEnvFile
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-WDWIXCGB.js";
|
|
118
118
|
import {
|
|
119
119
|
memoCredential,
|
|
120
120
|
refuseProfileForLocal
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-NYIFU3BR.js";
|
|
122
122
|
import {
|
|
123
123
|
getAccessToken
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-K23RUXSH.js";
|
|
125
125
|
import {
|
|
126
126
|
getEngineRecord
|
|
127
127
|
} from "./chunk-5Y5HWQ2P.js";
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
SECRETS_FILE_VERSION,
|
|
137
137
|
workspaceSecretsPathIn,
|
|
138
138
|
writeSecretsFile
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-5JUWB6XL.js";
|
|
140
140
|
import {
|
|
141
141
|
yesRerun
|
|
142
142
|
} from "./chunk-GJZMKMWO.js";
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
plannedAgentsMd,
|
|
160
160
|
readDecodeRecord,
|
|
161
161
|
scaffoldProject
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-554FJWNH.js";
|
|
163
163
|
import {
|
|
164
164
|
shellWord
|
|
165
165
|
} from "./chunk-FWD7AL6N.js";
|
|
@@ -329,7 +329,7 @@ import {
|
|
|
329
329
|
normalize,
|
|
330
330
|
retiredInputSuccessor,
|
|
331
331
|
retiredInputs
|
|
332
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-PKBC7G5H.js";
|
|
333
333
|
import {
|
|
334
334
|
STATEMENT_SURFACES,
|
|
335
335
|
sPathOf
|
|
@@ -6337,7 +6337,7 @@ async function fetchBundle(args, source) {
|
|
|
6337
6337
|
...branch === void 0 ? {} : { syncTarget: { instance: auth.instance, workspaceId: auth.workspaceId, branch } }
|
|
6338
6338
|
};
|
|
6339
6339
|
}
|
|
6340
|
-
const { projectDirFrom } = await import("./xanosdk-project-
|
|
6340
|
+
const { projectDirFrom } = await import("./xanosdk-project-PV3ORVP5.js");
|
|
6341
6341
|
const cwd = projectDirFrom(process.cwd()) ?? process.cwd();
|
|
6342
6342
|
const raw2 = "name" in source && source.name !== void 0 ? `${source.kind}:${source.name}` : source.kind;
|
|
6343
6343
|
step(`Reading ${raw2}`);
|
|
@@ -6814,7 +6814,7 @@ async function runInitFromCommand(args, source) {
|
|
|
6814
6814
|
for (const line of routesDeferred) warn(line, "routes.not-written");
|
|
6815
6815
|
if (seed !== void 0) reportSeedRows(seed.rows, seed.label, seed.provenance, XANO_DIR, contextFlags(args));
|
|
6816
6816
|
if (replace.lock !== void 0) {
|
|
6817
|
-
const { reconciledLock } = await import("./pull-command-
|
|
6817
|
+
const { reconciledLock } = await import("./pull-command-K5X367MA.js");
|
|
6818
6818
|
writeLockFile(
|
|
6819
6819
|
replace.lock.path,
|
|
6820
6820
|
reconciledLock(replace.lock.model, replace.lock.reconciliation, bundle.payload)
|
|
@@ -6925,7 +6925,7 @@ async function planXanoReplace(out, files, payload, args, label, agentsMd) {
|
|
|
6925
6925
|
if (shell.length > 0 && !await confirmShellOverwrite(out, shell, args, label)) return "cancelled";
|
|
6926
6926
|
return { removals: void 0, removedEdited: [], rewrittenEdited: [], kept: [] };
|
|
6927
6927
|
}
|
|
6928
|
-
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-
|
|
6928
|
+
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-K5X367MA.js");
|
|
6929
6929
|
const prefix = `${XANO_DIR}/`;
|
|
6930
6930
|
const incoming = new Map(
|
|
6931
6931
|
files.filter((f) => f.path.startsWith(prefix)).map((f) => [f.path.slice(prefix.length), f.content])
|
|
@@ -7278,4 +7278,4 @@ export {
|
|
|
7278
7278
|
seedRowsListed,
|
|
7279
7279
|
seedRowsLanding
|
|
7280
7280
|
};
|
|
7281
|
-
//# sourceMappingURL=chunk-
|
|
7281
|
+
//# sourceMappingURL=chunk-HUGNB6UN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XANO_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-554FJWNH.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-JORPZKBE.js.map
|
|
@@ -142,7 +142,7 @@ var SENDS_ELSEWHERE = /* @__PURE__ */ new WeakSet();
|
|
|
142
142
|
async function reachableFirst(refusal, auth) {
|
|
143
143
|
if (!(refusal instanceof Error) || !SENDS_ELSEWHERE.has(refusal)) return refusal;
|
|
144
144
|
if (auth === void 0 || !("access_token" in auth)) return refusal;
|
|
145
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
145
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-43PBQEE4.js");
|
|
146
146
|
try {
|
|
147
147
|
await refuseUnreachableWorkspace(auth);
|
|
148
148
|
} catch (unreachable) {
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
otherCredentialRefusal,
|
|
168
168
|
reachableFirst
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-JUCL5MUZ.js.map
|
|
@@ -60,9 +60,6 @@ import {
|
|
|
60
60
|
registerSecret,
|
|
61
61
|
tokenTextProblem
|
|
62
62
|
} from "./chunk-4GPIOIAC.js";
|
|
63
|
-
import {
|
|
64
|
-
AGENT_SIGNUP_URL
|
|
65
|
-
} from "./chunk-VYJYDMY6.js";
|
|
66
63
|
import {
|
|
67
64
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
68
65
|
UsageError,
|
|
@@ -384,7 +381,7 @@ The refresh token may be expired or already spent \u2014 refresh tokens rotate o
|
|
|
384
381
|
);
|
|
385
382
|
}
|
|
386
383
|
assertHttpsOrigin(instance, "instance");
|
|
387
|
-
const { resolveScopedWorkspaceId } = await import("./workspace-
|
|
384
|
+
const { resolveScopedWorkspaceId } = await import("./workspace-DIM3SBPV.js");
|
|
388
385
|
const workspaceId = await resolveScopedWorkspaceId({ access_token: set.access_token, instance });
|
|
389
386
|
return { access_token: set.access_token, instance, workspaceId, credentialType: "oauth-refresh" };
|
|
390
387
|
}
|
|
@@ -502,7 +499,7 @@ async function warnIfUnpinnedMachineDefault(file, selection, pin, saved, path) {
|
|
|
502
499
|
if (selection.source !== "file-default" && selection.source !== "implicit") return;
|
|
503
500
|
const stored = file === null ? [] : profileNames(file);
|
|
504
501
|
if (stored.length < 2) return;
|
|
505
|
-
const { projectDirFrom } = await import("./xanosdk-project-
|
|
502
|
+
const { projectDirFrom } = await import("./xanosdk-project-PV3ORVP5.js");
|
|
506
503
|
if (projectDirFrom(process.cwd()) === void 0) return;
|
|
507
504
|
const target = targetOf(saved);
|
|
508
505
|
credentialWarning(
|
|
@@ -590,17 +587,10 @@ var NotSignedInError = class extends Error {
|
|
|
590
587
|
* only the default is missing.
|
|
591
588
|
*/
|
|
592
589
|
storedProfiles;
|
|
593
|
-
|
|
594
|
-
* No credential file and no credential variable: nothing has ever signed in
|
|
595
|
-
* on this machine, so the human is likely new to Xano and agentic signup
|
|
596
|
-
* leads the remedy. `status` reports it as `suggest: "signup"`.
|
|
597
|
-
*/
|
|
598
|
-
firstRun;
|
|
599
|
-
constructor(message, missingProfile, storedProfiles = [], firstRun = false) {
|
|
590
|
+
constructor(message, missingProfile, storedProfiles = []) {
|
|
600
591
|
super(message);
|
|
601
592
|
if (missingProfile !== void 0) this.missingProfile = missingProfile;
|
|
602
593
|
this.storedProfiles = storedProfiles;
|
|
603
|
-
this.firstRun = firstRun;
|
|
604
594
|
}
|
|
605
595
|
};
|
|
606
596
|
var ProfileNotFoundError = class extends NotSignedInError {
|
|
@@ -653,19 +643,8 @@ Run ${addProfileHint(selection.name, target)} to add it.`,
|
|
|
653
643
|
);
|
|
654
644
|
}
|
|
655
645
|
if (available.length === 0) {
|
|
656
|
-
const firstRun = !existsSync(path) && !hasCredentialEnv();
|
|
657
|
-
const login = `\`${loginCommand(DEFAULT_PROFILE, target)}\``;
|
|
658
|
-
const signup = `ask for their email and get them a free account; they confirm from an emailed link: ${AGENT_SIGNUP_URL}`;
|
|
659
|
-
const decision = firstRun ? `Nothing has signed in on this machine, so your human is likely new to Xano. Offer a free account: ask for their email and sign them up; they confirm from an emailed link: ${AGENT_SIGNUP_URL}
|
|
660
|
-
If they say they already have a Xano account, they run ${login} instead.` : `Ask your human whether they already have a Xano account. Don't guess from context.
|
|
661
|
-
- Yes: they run ${login}.
|
|
662
|
-
- No: ${signup}`;
|
|
663
646
|
return new NotSignedInError(
|
|
664
|
-
`Not signed in (no credential at ${path}).
|
|
665
|
-
Other ways in: store a meta API token with \`xanosdk profile add <name>${credentialFileFlag(path)} --instance <url> --workspace-id <id>\`, or for CI set XANO_INSTANCE_URL, XANO_WORKSPACE_ID and XANO_META_TOKEN together.`,
|
|
666
|
-
void 0,
|
|
667
|
-
[],
|
|
668
|
-
firstRun
|
|
647
|
+
`Not signed in (no credential at ${path}). Run \`${loginCommand(DEFAULT_PROFILE, target)}\` to sign in, or store a meta API token with \`xanosdk profile add <name>${credentialFileFlag(path)} --instance <url> --workspace-id <id>\`. For CI, set XANO_INSTANCE_URL, XANO_WORKSPACE_ID and XANO_META_TOKEN together.`
|
|
669
648
|
);
|
|
670
649
|
}
|
|
671
650
|
const have = `Stored profiles: ${quotedNames(available)}.`;
|
|
@@ -708,11 +687,6 @@ Run ${addProfileHint(selection.name, target)} to sign in as it, or \`xanosdk pro
|
|
|
708
687
|
if (near !== void 0) Object.defineProperty(err, "suggestion", { value: near, enumerable: true });
|
|
709
688
|
return err;
|
|
710
689
|
}
|
|
711
|
-
function hasCredentialEnv() {
|
|
712
|
-
return ["XANO_INSTANCE_URL", "XANO_WORKSPACE_ID", "XANO_META_TOKEN", "XANO_REFRESH_TOKEN", "XANO_CLIENT_ID"].some(
|
|
713
|
-
(name) => readEnvVar(name) !== void 0
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
690
|
function shadowedInShared(path, name) {
|
|
717
691
|
if (resolvePath(path) !== localAuthFilePath()) return void 0;
|
|
718
692
|
const shared = globalAuthFilePath();
|
|
@@ -888,4 +862,4 @@ export {
|
|
|
888
862
|
notSignedIn,
|
|
889
863
|
assertStoredAuthHost
|
|
890
864
|
};
|
|
891
|
-
//# sourceMappingURL=chunk-
|
|
865
|
+
//# sourceMappingURL=chunk-K23RUXSH.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-XM4JXHQC.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-KG3RDXN5.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-5AHHO2QA.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-KVF7YQ2W.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-GA6HTO3O.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveEphemeralName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JUCL5MUZ.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-KYQRIL4V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveProjectEntry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YP4QTC4F.js";
|
|
4
4
|
import {
|
|
5
5
|
isUnusablePin,
|
|
6
6
|
readPin,
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
pinAfterAcquire,
|
|
171
171
|
pinWrittenText
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-L4L6YITX.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envExampleNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HUGNB6UN.js";
|
|
4
4
|
import {
|
|
5
5
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
6
6
|
renderWorkspaceEnvExample
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WDWIXCGB.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-LRN6QX44.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
LookupFailedError,
|
|
6
6
|
SourceError,
|
|
7
7
|
resolveSource
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KYQRIL4V.js";
|
|
9
9
|
import {
|
|
10
10
|
isProjectDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q45RTKWW.js";
|
|
12
12
|
import {
|
|
13
13
|
NotSignedInError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K23RUXSH.js";
|
|
15
15
|
import {
|
|
16
16
|
otherCredentialRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JUCL5MUZ.js";
|
|
18
18
|
import {
|
|
19
19
|
getEngineRecord
|
|
20
20
|
} from "./chunk-5Y5HWQ2P.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-AJBOGO5U.js";
|
|
48
48
|
import {
|
|
49
49
|
backendDirIn
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-JORPZKBE.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-ZQSPPN4A.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-NYIFU3BR.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
rowLabeler,
|
|
7
7
|
sectionKind,
|
|
8
8
|
sectionOmission
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3X4B5GWY.js";
|
|
10
10
|
import {
|
|
11
11
|
canonicalJson
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6SEPZQYB.js";
|
|
13
13
|
import {
|
|
14
14
|
md5Hex
|
|
15
15
|
} from "./chunk-OHX6MIUZ.js";
|
|
@@ -110,4 +110,4 @@ export {
|
|
|
110
110
|
syncDirection,
|
|
111
111
|
directedComparison
|
|
112
112
|
};
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
113
|
+
//# sourceMappingURL=chunk-OJ6YGRPV.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-RGPHFHJU.js";
|
|
6
6
|
import {
|
|
7
7
|
rerenderEnvExample
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LRN6QX44.js";
|
|
9
9
|
import {
|
|
10
10
|
carriedSeedRows,
|
|
11
11
|
decodeBundle,
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
verifyPulledTree,
|
|
18
18
|
withSourceIdentities,
|
|
19
19
|
writeDocumentationTokens
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HUGNB6UN.js";
|
|
21
21
|
import {
|
|
22
22
|
ROUTES_MANIFEST_BASENAME
|
|
23
23
|
} from "./chunk-SVQMDVND.js";
|
|
24
24
|
import {
|
|
25
25
|
syncDigests
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OJ6YGRPV.js";
|
|
27
27
|
import {
|
|
28
28
|
fetchSourceArchive
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YP4QTC4F.js";
|
|
30
30
|
import {
|
|
31
31
|
confirm
|
|
32
32
|
} from "./chunk-AICWDCLJ.js";
|
|
@@ -40,25 +40,25 @@ import {
|
|
|
40
40
|
} from "./chunk-3DRXWLJ5.js";
|
|
41
41
|
import {
|
|
42
42
|
ensureSecretPathGitignored
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BT6CJNEO.js";
|
|
44
44
|
import {
|
|
45
45
|
readVersion,
|
|
46
46
|
refreshAgentGuidance
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5AHHO2QA.js";
|
|
48
48
|
import {
|
|
49
49
|
WORKSPACE_ENV_BASENAME,
|
|
50
50
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
51
51
|
namesInEnvExample,
|
|
52
52
|
readWorkspaceEnvFile
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WDWIXCGB.js";
|
|
54
54
|
import {
|
|
55
55
|
memoCredential,
|
|
56
56
|
refuseProfileForLocal,
|
|
57
57
|
selectBackend
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-NYIFU3BR.js";
|
|
59
59
|
import {
|
|
60
60
|
getAccessToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-K23RUXSH.js";
|
|
62
62
|
import {
|
|
63
63
|
readLockFile,
|
|
64
64
|
writeLockFile
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
backendDirIn,
|
|
74
74
|
resolveBackendDir
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-JORPZKBE.js";
|
|
76
76
|
import {
|
|
77
77
|
CODEGEN_MARKER,
|
|
78
78
|
DECODE_MARKER,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
readDecodeRecord,
|
|
88
88
|
removeEmptiedDirs,
|
|
89
89
|
removeFiles
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-554FJWNH.js";
|
|
91
91
|
import {
|
|
92
92
|
holdsProjectManifest
|
|
93
93
|
} from "./chunk-HU7F56VF.js";
|
|
@@ -319,7 +319,7 @@ async function runPullCommand(args) {
|
|
|
319
319
|
});
|
|
320
320
|
refuseDuplicateSourceGuids(project);
|
|
321
321
|
const seedRows = carriedSeedRows(fetched.archive, bundle.payload);
|
|
322
|
-
const { discoverManifestModules } = await import("./routes-manifest-file-
|
|
322
|
+
const { discoverManifestModules } = await import("./routes-manifest-file-A2PW7IQ7.js");
|
|
323
323
|
const modules = await discoverManifestModules(cwd, join(cwd, backendDir, ROUTES_MANIFEST_BASENAME), readVersion());
|
|
324
324
|
const placed = placeGeneratedFiles(project, backendDir, void 0, void 0, modules);
|
|
325
325
|
const settings = source.kind === "release" ? keepProjectSettings(placed, backendDir, join(cwd, backendDir)) : { files: placed, kept: false, lost: [], from: WORKSPACE_SETTINGS_FILE };
|
|
@@ -944,4 +944,4 @@ export {
|
|
|
944
944
|
projectWorkspaceName,
|
|
945
945
|
envFillRemedy
|
|
946
946
|
};
|
|
947
|
-
//# sourceMappingURL=chunk-
|
|
947
|
+
//# sourceMappingURL=chunk-OTYK2V44.js.map
|
|
@@ -285,6 +285,13 @@ var DEFAULT_CORS = {
|
|
|
285
285
|
};
|
|
286
286
|
var DEFAULT_DOCUMENTATION = { require_token: false, token: "" };
|
|
287
287
|
var DEFAULT_MIDDLEWARE = { pre: [], post: [], pre_customize: false, post_customize: false };
|
|
288
|
+
function isDefaultMesh0Block(v) {
|
|
289
|
+
if (isEmptyArray(v)) return true;
|
|
290
|
+
if (v === null || typeof v !== "object" || Array.isArray(v)) return false;
|
|
291
|
+
return Object.entries(v).every(
|
|
292
|
+
([member, value]) => member === "inherit" ? value === true : /^(?:[a-z]+_)?logging$/.test(member) && value === "inherit"
|
|
293
|
+
);
|
|
294
|
+
}
|
|
288
295
|
function isRawSqlContext(container) {
|
|
289
296
|
return container !== null && typeof container === "object" && typeof container.code === "string";
|
|
290
297
|
}
|
|
@@ -437,6 +444,10 @@ function isDefaultEnvelopeMember(key, v) {
|
|
|
437
444
|
// customized to run nothing still compares — that is not inheriting.
|
|
438
445
|
case "middleware":
|
|
439
446
|
return isEmptyArray(v) || deepEqual(normalize(v), normalize(DEFAULT_MIDDLEWARE));
|
|
447
|
+
// An object's or container's telemetry block, when it only inherits. See
|
|
448
|
+
// {@link isDefaultMesh0Block}.
|
|
449
|
+
case "mesh0":
|
|
450
|
+
return isDefaultMesh0Block(v);
|
|
440
451
|
// Two unrelated `offset`s, both at a default. An addon's is the response path
|
|
441
452
|
// its rows are spliced into, `""` when spliced at the root. A list context's
|
|
442
453
|
// paging offset is declared to default to 0. Neither carries information at
|
|
@@ -1063,4 +1074,4 @@ export {
|
|
|
1063
1074
|
filledContext,
|
|
1064
1075
|
normalize
|
|
1065
1076
|
};
|
|
1066
|
-
//# sourceMappingURL=chunk-
|
|
1077
|
+
//# sourceMappingURL=chunk-PKBC7G5H.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-AICWDCLJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureWorkspaceEnvGitignored
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BT6CJNEO.js";
|
|
10
10
|
import {
|
|
11
11
|
readVersion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5AHHO2QA.js";
|
|
13
13
|
import {
|
|
14
14
|
WORKSPACE_ENV_EXAMPLE_FILE,
|
|
15
15
|
renderWorkspaceEnvExample
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WDWIXCGB.js";
|
|
17
17
|
import {
|
|
18
18
|
parseSlot,
|
|
19
19
|
requireBackendSlot
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
existingProjectClashes,
|
|
27
27
|
isNonEmptyDir,
|
|
28
28
|
scaffoldProject
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-554FJWNH.js";
|
|
30
30
|
import {
|
|
31
31
|
inProject,
|
|
32
32
|
installModules,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
preflightPackages,
|
|
35
35
|
rebaseLocalSpec,
|
|
36
36
|
renderXanoIndexWithModules
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GTB7JL3M.js";
|
|
38
38
|
import {
|
|
39
39
|
npmViewVersion
|
|
40
40
|
} from "./chunk-ZFDZKNGG.js";
|
|
@@ -725,7 +725,7 @@ async function runInitCommand(args) {
|
|
|
725
725
|
}
|
|
726
726
|
const source = resolveFromSource(args.from);
|
|
727
727
|
if (source.kind === "file") await refuseUnknownProfileFlag(args, resolve(args.positionals[0] ?? "."));
|
|
728
|
-
const { runInitFromCommand } = await import("./codegen-command-
|
|
728
|
+
const { runInitFromCommand } = await import("./codegen-command-OF3TPC66.js");
|
|
729
729
|
return runInitFromCommand(args, source);
|
|
730
730
|
}
|
|
731
731
|
rejectPullOnlyFlags(args);
|
|
@@ -789,7 +789,7 @@ async function runInitCommand(args) {
|
|
|
789
789
|
}
|
|
790
790
|
let scaffolded = false;
|
|
791
791
|
try {
|
|
792
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
792
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-XM4JXHQC.js");
|
|
793
793
|
const toolchain = await discoverToolchainPlugins(targetDir, { frozen: false, configuring: true });
|
|
794
794
|
const preset = flagFrontend !== void 0 ? flagFrontend : await resolveFrontendPreset(args.framework);
|
|
795
795
|
if (preset === null && flagFrontend === void 0) refuseFrontendOnlyFlags(args, "no frontend was chosen");
|
|
@@ -924,7 +924,7 @@ async function runInitCommand(args) {
|
|
|
924
924
|
const { skewedProjectSdk } = await import("./project-sdk-DKZBK5H5.js");
|
|
925
925
|
const installedSdk = skewedProjectSdk(targetDir, readVersion());
|
|
926
926
|
if (installedSdk !== void 0) {
|
|
927
|
-
const { reconcileWithInstalled } = await import("./upgrade-command-
|
|
927
|
+
const { reconcileWithInstalled } = await import("./upgrade-command-4DCDBDB5.js");
|
|
928
928
|
const rendered = reconcileWithInstalled(targetDir);
|
|
929
929
|
if (rendered.length > 0) {
|
|
930
930
|
info(`Rendered ${rendered.join(", ")} with the installed @xano/sdk ${installedSdk.version} (this CLI is ${readVersion()}).`);
|
|
@@ -1068,14 +1068,14 @@ async function writeDerivedFiles(targetDir, renderIndexWithEnv, toolchain) {
|
|
|
1068
1068
|
const { readLockFile, writeLockFile } = await import("./io-47TFRYDB.js");
|
|
1069
1069
|
const { setDiagnosticSink } = await import("./diagnostics-T3RN3372.js");
|
|
1070
1070
|
const { planRouteManifest } = await import("./routes-manifest-N73THJB3.js");
|
|
1071
|
-
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-
|
|
1072
|
-
const { isEnabled } = await import("./toolchain-modules-
|
|
1071
|
+
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-A2PW7IQ7.js");
|
|
1072
|
+
const { isEnabled } = await import("./toolchain-modules-XM4JXHQC.js");
|
|
1073
1073
|
const existing = existsSync(lockPath) ? readLockFile(lockPath) : void 0;
|
|
1074
1074
|
resetLockOverrides();
|
|
1075
1075
|
if (existing !== void 0) seedLockOverrides(existing);
|
|
1076
1076
|
const ctx = createLockContext(existing);
|
|
1077
1077
|
const { envNamesRead } = await import("./guards-LQ7PSXOL.js");
|
|
1078
|
-
const { refreshEnvExample } = await import("./env-example-refresh-
|
|
1078
|
+
const { refreshEnvExample } = await import("./env-example-refresh-FACP4FQE.js");
|
|
1079
1079
|
const def = await loadDefault(join(targetDir, XANO_DIR, "index.ts"));
|
|
1080
1080
|
if (!Xano.isXano(def)) return { written, env: declaredEnv };
|
|
1081
1081
|
const previousSink = setDiagnosticSink(() => {
|
|
@@ -1142,7 +1142,7 @@ async function refuseUnknownProfileFlag(args, targetDir) {
|
|
|
1142
1142
|
const file = readCredentialFile(path);
|
|
1143
1143
|
const stored = file === null ? [] : profileNames(file);
|
|
1144
1144
|
if (stored.includes(name)) return;
|
|
1145
|
-
const { ProfileNotFoundError } = await import("./token-
|
|
1145
|
+
const { ProfileNotFoundError } = await import("./token-4I26OGWH.js");
|
|
1146
1146
|
const have = stored.length === 0 ? "Nothing is signed in on this machine." : `Stored profiles: ${quotedNames(stored)}.`;
|
|
1147
1147
|
throw new ProfileNotFoundError(
|
|
1148
1148
|
`No credential profile "${name}" in ${path} (from ${fromEnv ? `$${ENV_PROFILE}` : "--profile"}), so there is nothing to pin this project to. ${have} Run ${loginHint(name)} to add it, or name a stored one${fromEnv ? ` (or unset ${ENV_PROFILE})` : ""}.`,
|
|
@@ -1151,7 +1151,7 @@ async function refuseUnknownProfileFlag(args, targetDir) {
|
|
|
1151
1151
|
);
|
|
1152
1152
|
}
|
|
1153
1153
|
async function envCredentialSet() {
|
|
1154
|
-
const { envMetaCredentialVarsSet } = await import("./token-
|
|
1154
|
+
const { envMetaCredentialVarsSet } = await import("./token-4I26OGWH.js");
|
|
1155
1155
|
return envMetaCredentialVarsSet().length > 0;
|
|
1156
1156
|
}
|
|
1157
1157
|
function loginNextStep(pin) {
|
|
@@ -1202,7 +1202,7 @@ async function planProfilePin(args, targetDir, opts = {}) {
|
|
|
1202
1202
|
};
|
|
1203
1203
|
}
|
|
1204
1204
|
if (opts.credentialRead === true) {
|
|
1205
|
-
const { environmentCredentialVars } = await import("./token-
|
|
1205
|
+
const { environmentCredentialVars } = await import("./token-4I26OGWH.js");
|
|
1206
1206
|
const env = environmentCredentialVars();
|
|
1207
1207
|
if (env.complete) {
|
|
1208
1208
|
return {
|
|
@@ -1225,7 +1225,7 @@ async function planProfilePin(args, targetDir, opts = {}) {
|
|
|
1225
1225
|
});
|
|
1226
1226
|
const stored = file === null ? [] : profileNames(file);
|
|
1227
1227
|
if (!stored.includes(selection.name)) {
|
|
1228
|
-
const env = stored.length === 0 ? (await import("./token-
|
|
1228
|
+
const env = stored.length === 0 ? (await import("./token-4I26OGWH.js")).environmentCredentialVars() : void 0;
|
|
1229
1229
|
const storeEnv = env?.complete === true ? await storeEnvCredentialCommand(credentialPath, targetDir) : "";
|
|
1230
1230
|
return {
|
|
1231
1231
|
name: null,
|
|
@@ -1317,4 +1317,4 @@ export {
|
|
|
1317
1317
|
runFiles,
|
|
1318
1318
|
planProfilePin
|
|
1319
1319
|
};
|
|
1320
|
-
//# sourceMappingURL=chunk-
|
|
1320
|
+
//# sourceMappingURL=chunk-PLOBHRGV.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-JORPZKBE.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-Q45RTKWW.js.map
|