@xano/sdk 1.0.18 → 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.
Files changed (106) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/.build-fingerprint +1 -0
  3. package/dist/{agent-file-refresh-SGM3523M.js → agent-file-refresh-5IP25UYO.js} +4 -5
  4. package/dist/{agent-skill-command-PZXX7LJD.js → agent-skill-command-BPM4S6C7.js} +13 -18
  5. package/dist/{backend-dir-AZIVCH6Y.js → backend-dir-RLILKCMR.js} +4 -5
  6. package/dist/bin.js +13 -14
  7. package/dist/{branch-commands-JE5RDJPH.js → branch-commands-5HKCBRLN.js} +3 -4
  8. package/dist/{chunk-77QKU5H6.js → chunk-2HBJU76D.js} +6 -6
  9. package/dist/{chunk-UIHLO3HJ.js → chunk-2NUOFHPX.js} +2 -2
  10. package/dist/{chunk-ZNHO535R.js → chunk-3FNEHRJF.js} +2 -2
  11. package/dist/{chunk-IFNSUPQL.js → chunk-4HMF5TRB.js} +2 -2
  12. package/dist/{chunk-7B2KH733.js → chunk-554FJWNH.js} +2 -11
  13. package/dist/{chunk-XBCTTJSQ.js → chunk-5AHHO2QA.js} +53 -53
  14. package/dist/{chunk-NEPSEJRV.js → chunk-5JUWB6XL.js} +2 -2
  15. package/dist/{chunk-HERXDPZS.js → chunk-AJPICYPW.js} +39 -39
  16. package/dist/{chunk-VVZFTYQ3.js → chunk-ASUDP4OS.js} +4 -4
  17. package/dist/{chunk-OO2JDYQH.js → chunk-B6ZHSM2D.js} +20 -20
  18. package/dist/{chunk-X2IQOLQD.js → chunk-BCN6OZLF.js} +2 -2
  19. package/dist/{chunk-HFH72FBC.js → chunk-BT6CJNEO.js} +2 -2
  20. package/dist/{chunk-E3OLY3J4.js → chunk-D4N72H35.js} +1 -1
  21. package/dist/{chunk-FCAKYFC6.js → chunk-DO5VZIY4.js} +2 -2
  22. package/dist/{chunk-BWD5H7AW.js → chunk-E7VF2JVJ.js} +2 -2
  23. package/dist/{chunk-JTUMJXFN.js → chunk-GTB7JL3M.js} +2 -2
  24. package/dist/{chunk-NAXUCAOK.js → chunk-HUGNB6UN.js} +15 -15
  25. package/dist/{chunk-Q2KVGISJ.js → chunk-JORPZKBE.js} +2 -2
  26. package/dist/{chunk-S4ZWOBRO.js → chunk-JUCL5MUZ.js} +2 -2
  27. package/dist/{chunk-YQQSFS7S.js → chunk-K23RUXSH.js} +5 -31
  28. package/dist/{chunk-BQMX7PYG.js → chunk-KG3RDXN5.js} +2 -2
  29. package/dist/{chunk-LMCZQLM4.js → chunk-KVF7YQ2W.js} +2 -2
  30. package/dist/{chunk-ID7MIDLG.js → chunk-KYQRIL4V.js} +2 -2
  31. package/dist/{chunk-MCISY4QC.js → chunk-L4L6YITX.js} +2 -2
  32. package/dist/{chunk-SJW6R6P4.js → chunk-LRN6QX44.js} +3 -3
  33. package/dist/{chunk-7SDCWYAQ.js → chunk-NYIFU3BR.js} +7 -7
  34. package/dist/{chunk-H4CS4WPM.js → chunk-OTYK2V44.js} +12 -12
  35. package/dist/{chunk-UBM7L5KL.js → chunk-PLOBHRGV.js} +16 -16
  36. package/dist/{chunk-NJCHWEPU.js → chunk-Q45RTKWW.js} +2 -2
  37. package/dist/{chunk-EXY42CTV.js → chunk-QETVFGD7.js} +5 -5
  38. package/dist/{chunk-CF26RMO5.js → chunk-QK2WIASY.js} +2 -2
  39. package/dist/{chunk-DCD3KJ4B.js → chunk-UJ5HLRYH.js} +12 -12
  40. package/dist/{chunk-X4G7FGHS.js → chunk-WDWIXCGB.js} +3 -3
  41. package/dist/{chunk-LLJL44WF.js → chunk-XKHQLKUL.js} +2 -2
  42. package/dist/{chunk-CRCYD6AK.js → chunk-YP4QTC4F.js} +3 -3
  43. package/dist/{chunk-OJFBI5C6.js → chunk-YT5UN2F4.js} +2 -2
  44. package/dist/cli.js +12 -13
  45. package/dist/{codegen-command-YGGEC2DV.js → codegen-command-OF3TPC66.js} +19 -20
  46. package/dist/{deploy-command-SX4DWRVS.js → deploy-command-MGYR2TKC.js} +16 -17
  47. package/dist/{deploy-source-T6BR3APS.js → deploy-source-UHCHCI5Z.js} +7 -8
  48. package/dist/{dev-env-sync-4XFB63CM.js → dev-env-sync-XWZVXEI2.js} +13 -14
  49. package/dist/{env-example-refresh-N3JPECAZ.js → env-example-refresh-FACP4FQE.js} +20 -21
  50. package/dist/{env-pull-command-EAWIS3IW.js → env-pull-command-SHK4TI6U.js} +13 -14
  51. package/dist/{env-target-RZBM6SOB.js → env-target-ZQSPPN4A.js} +2 -2
  52. package/dist/{env-var-command-K2OASTSZ.js → env-var-command-Q2ZHKWAQ.js} +13 -14
  53. package/dist/{ephemeral-command-FZLJJICY.js → ephemeral-command-FKOSN56R.js} +14 -15
  54. package/dist/{generate-command-IQVETHTK.js → generate-command-2JCMZ6CG.js} +23 -24
  55. package/dist/{gitignore-3REKZPQI.js → gitignore-Z5N6DEEV.js} +6 -7
  56. package/dist/{impersonate-command-K4775AUM.js → impersonate-command-R24VBFQA.js} +9 -10
  57. package/dist/{init-command-SODVHEI6.js → init-command-UOCNESZK.js} +15 -16
  58. package/dist/{init-modules-WJOEK2YW.js → init-modules-5DYK7V4J.js} +2 -2
  59. package/dist/internal.js +0 -6
  60. package/dist/{keep-data-merge-CHOKIJS5.js → keep-data-merge-HLIXZC77.js} +4 -4
  61. package/dist/{landing-record-KJTRWFK6.js → landing-record-FYKDJIUF.js} +5 -6
  62. package/dist/{local-engine-choice-4K5FTSHE.js → local-engine-choice-4ZA2HZXH.js} +8 -9
  63. package/dist/{local-engine-command-CUBWYENJ.js → local-engine-command-WQS4SD6N.js} +9 -10
  64. package/dist/{local-engine-mcp-command-FM4FOZ42.js → local-engine-mcp-command-SUAVS5UA.js} +9 -10
  65. package/dist/{lock-commands-BLCJIVCC.js → lock-commands-ZT6YTQYA.js} +13 -14
  66. package/dist/{login-command-PTYSRF45.js → login-command-ONGJASKA.js} +9 -10
  67. package/dist/{logout-command-BIO63CXY.js → logout-command-PLYGFHBQ.js} +3 -4
  68. package/dist/{marketplace-command-TEUCQBL5.js → marketplace-command-LNNAA7ZK.js} +13 -14
  69. package/dist/{meta-client-JY7JXDU2.js → meta-client-JND42QEJ.js} +2 -2
  70. package/dist/node.js +14 -15
  71. package/dist/{operation-outcome-ATGF6RR4.js → operation-outcome-U6IWKLBK.js} +4 -4
  72. package/dist/{output-target-ZCM4XYQA.js → output-target-QJSHZBVY.js} +7 -8
  73. package/dist/{preflight-command-AXBQADFL.js → preflight-command-ZKUQSIL2.js} +18 -19
  74. package/dist/{profile-command-JZ5PLHJH.js → profile-command-PJUA5ZMX.js} +10 -11
  75. package/dist/{promote-command-25OWDQVE.js → promote-command-NDYP66LD.js} +26 -27
  76. package/dist/{publish-command-VBFNWVEF.js → publish-command-JSYK6HOW.js} +16 -17
  77. package/dist/{pull-command-4YGZSRGU.js → pull-command-K5X367MA.js} +21 -22
  78. package/dist/{release-command-SSRQMIT2.js → release-command-OC7MT4FV.js} +18 -19
  79. package/dist/{release-ns-command-ISFM36YJ.js → release-ns-command-EHNEAEDU.js} +31 -32
  80. package/dist/{routes-manifest-file-ZZS5TNGT.js → routes-manifest-file-A2PW7IQ7.js} +2 -2
  81. package/dist/{secrets-file-JFCORQT7.js → secrets-file-2RHMJFXQ.js} +5 -6
  82. package/dist/{secrets-fill-command-5RJ2HSI5.js → secrets-fill-command-HYMF6EZM.js} +15 -16
  83. package/dist/{source-resolve-LP6MCOQX.js → source-resolve-PMA7SHZE.js} +3 -3
  84. package/dist/{status-command-GXX4MZBC.js → status-command-CROHQRPI.js} +13 -39
  85. package/dist/{sync-contributions-PQTTCY2O.js → sync-contributions-QDEWZ3IU.js} +2 -2
  86. package/dist/{tables-command-5MLGODGI.js → tables-command-BKVDHAGJ.js} +10 -11
  87. package/dist/{tenant-command-UDZUIOTO.js → tenant-command-Y7VCGDMY.js} +32 -33
  88. package/dist/{test-command-7CUROW3U.js → test-command-2RAUNIU5.js} +10 -11
  89. package/dist/{token-DTFJJYQH.js → token-4I26OGWH.js} +2 -3
  90. package/dist/{toolchain-modules-GQIMMMZL.js → toolchain-modules-XM4JXHQC.js} +2 -2
  91. package/dist/{tracked-backend-2MG4D4ZJ.js → tracked-backend-EZE6H3EZ.js} +9 -10
  92. package/dist/{update-check-H774KJVG.js → update-check-QLB5DV3B.js} +14 -15
  93. package/dist/{upgrade-command-MLBXEIKR.js → upgrade-command-4DCDBDB5.js} +16 -17
  94. package/dist/{whoami-command-SYRDCTDK.js → whoami-command-WI4VT3IN.js} +4 -5
  95. package/dist/{workspace-RMSSZKNV.js → workspace-DIM3SBPV.js} +2 -2
  96. package/dist/{workspace-binding-ZQSANRJF.js → workspace-binding-43PBQEE4.js} +3 -4
  97. package/dist/{workspace-command-X3ACS6X4.js → workspace-command-FWTHIFVI.js} +27 -28
  98. package/dist/{workspace-env-XA57JKVH.js → workspace-env-5PJVWQ2O.js} +5 -6
  99. package/dist/{xanosdk-import-562F4G3K.js → xanosdk-import-VOJEAK5Q.js} +2 -2
  100. package/dist/{xanosdk-project-J2JVTSVJ.js → xanosdk-project-PV3ORVP5.js} +5 -6
  101. package/llms-full.txt +1 -4
  102. package/llms.txt +1 -4
  103. package/manifest.json +1 -1
  104. package/package.json +1 -1
  105. package/skills/xano-backend/SKILL.md +2 -4
  106. package/dist/chunk-VYJYDMY6.js +0 -9
@@ -15,11 +15,11 @@ import {
15
15
  sanitizeAppName,
16
16
  settleClashes,
17
17
  templateVarsFor
18
- } from "./chunk-UBM7L5KL.js";
18
+ } from "./chunk-PLOBHRGV.js";
19
19
  import {
20
20
  renderManifestFile,
21
21
  reportModuleFailures
22
- } from "./chunk-BQMX7PYG.js";
22
+ } from "./chunk-KG3RDXN5.js";
23
23
  import {
24
24
  ROUTES_MANIFEST_BASENAME,
25
25
  RouteManifestError,
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  archiveSeedContent,
33
33
  fetchSourceArchive
34
- } from "./chunk-CRCYD6AK.js";
34
+ } from "./chunk-YP4QTC4F.js";
35
35
  import {
36
36
  confirm
37
37
  } from "./chunk-AICWDCLJ.js";
@@ -88,7 +88,7 @@ import {
88
88
  } from "./chunk-54CJ74BH.js";
89
89
  import {
90
90
  detectInstallMode
91
- } from "./chunk-LMCZQLM4.js";
91
+ } from "./chunk-KVF7YQ2W.js";
92
92
  import {
93
93
  UNSUPPORTED_SECTIONS,
94
94
  decodedCounts,
@@ -103,25 +103,25 @@ import {
103
103
  import {
104
104
  ensureWorkspaceEnvGitignored,
105
105
  requireSecretPathGitignored
106
- } from "./chunk-HFH72FBC.js";
106
+ } from "./chunk-BT6CJNEO.js";
107
107
  import {
108
108
  loadDefault,
109
109
  readVersion,
110
110
  resolveKnowledge
111
- } from "./chunk-XBCTTJSQ.js";
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-X4G7FGHS.js";
117
+ } from "./chunk-WDWIXCGB.js";
118
118
  import {
119
119
  memoCredential,
120
120
  refuseProfileForLocal
121
- } from "./chunk-7SDCWYAQ.js";
121
+ } from "./chunk-NYIFU3BR.js";
122
122
  import {
123
123
  getAccessToken
124
- } from "./chunk-YQQSFS7S.js";
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-NEPSEJRV.js";
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-7B2KH733.js";
162
+ } from "./chunk-554FJWNH.js";
163
163
  import {
164
164
  shellWord
165
165
  } from "./chunk-FWD7AL6N.js";
@@ -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-J2JVTSVJ.js");
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-4YGZSRGU.js");
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-4YGZSRGU.js");
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-NAXUCAOK.js.map
7281
+ //# sourceMappingURL=chunk-HUGNB6UN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  XANO_DIR
3
- } from "./chunk-7B2KH733.js";
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-Q2KVGISJ.js.map
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-ZQSANRJF.js");
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-S4ZWOBRO.js.map
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-RMSSZKNV.js");
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-J2JVTSVJ.js");
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}). ${decision}
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-YQQSFS7S.js.map
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-GQIMMMZL.js");
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-BQMX7PYG.js.map
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-XBCTTJSQ.js";
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-LMCZQLM4.js.map
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-S4ZWOBRO.js";
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-ID7MIDLG.js.map
601
+ //# sourceMappingURL=chunk-KYQRIL4V.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveProjectEntry
3
- } from "./chunk-CRCYD6AK.js";
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-MCISY4QC.js.map
173
+ //# sourceMappingURL=chunk-L4L6YITX.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  envExampleNames
3
- } from "./chunk-NAXUCAOK.js";
3
+ } from "./chunk-HUGNB6UN.js";
4
4
  import {
5
5
  WORKSPACE_ENV_EXAMPLE_BASENAME,
6
6
  renderWorkspaceEnvExample
7
- } from "./chunk-X4G7FGHS.js";
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-SJW6R6P4.js.map
57
+ //# sourceMappingURL=chunk-LRN6QX44.js.map
@@ -5,16 +5,16 @@ import {
5
5
  LookupFailedError,
6
6
  SourceError,
7
7
  resolveSource
8
- } from "./chunk-ID7MIDLG.js";
8
+ } from "./chunk-KYQRIL4V.js";
9
9
  import {
10
10
  isProjectDir
11
- } from "./chunk-NJCHWEPU.js";
11
+ } from "./chunk-Q45RTKWW.js";
12
12
  import {
13
13
  NotSignedInError
14
- } from "./chunk-YQQSFS7S.js";
14
+ } from "./chunk-K23RUXSH.js";
15
15
  import {
16
16
  otherCredentialRefusal
17
- } from "./chunk-S4ZWOBRO.js";
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-Q2KVGISJ.js";
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-RZBM6SOB.js");
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-7SDCWYAQ.js.map
371
+ //# sourceMappingURL=chunk-NYIFU3BR.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-RGPHFHJU.js";
6
6
  import {
7
7
  rerenderEnvExample
8
- } from "./chunk-SJW6R6P4.js";
8
+ } from "./chunk-LRN6QX44.js";
9
9
  import {
10
10
  carriedSeedRows,
11
11
  decodeBundle,
@@ -17,7 +17,7 @@ import {
17
17
  verifyPulledTree,
18
18
  withSourceIdentities,
19
19
  writeDocumentationTokens
20
- } from "./chunk-NAXUCAOK.js";
20
+ } from "./chunk-HUGNB6UN.js";
21
21
  import {
22
22
  ROUTES_MANIFEST_BASENAME
23
23
  } from "./chunk-SVQMDVND.js";
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-OJ6YGRPV.js";
27
27
  import {
28
28
  fetchSourceArchive
29
- } from "./chunk-CRCYD6AK.js";
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-HFH72FBC.js";
43
+ } from "./chunk-BT6CJNEO.js";
44
44
  import {
45
45
  readVersion,
46
46
  refreshAgentGuidance
47
- } from "./chunk-XBCTTJSQ.js";
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-X4G7FGHS.js";
53
+ } from "./chunk-WDWIXCGB.js";
54
54
  import {
55
55
  memoCredential,
56
56
  refuseProfileForLocal,
57
57
  selectBackend
58
- } from "./chunk-7SDCWYAQ.js";
58
+ } from "./chunk-NYIFU3BR.js";
59
59
  import {
60
60
  getAccessToken
61
- } from "./chunk-YQQSFS7S.js";
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-Q2KVGISJ.js";
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-7B2KH733.js";
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-ZZS5TNGT.js");
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-H4CS4WPM.js.map
947
+ //# sourceMappingURL=chunk-OTYK2V44.js.map
@@ -6,14 +6,14 @@ import {
6
6
  } from "./chunk-AICWDCLJ.js";
7
7
  import {
8
8
  ensureWorkspaceEnvGitignored
9
- } from "./chunk-HFH72FBC.js";
9
+ } from "./chunk-BT6CJNEO.js";
10
10
  import {
11
11
  readVersion
12
- } from "./chunk-XBCTTJSQ.js";
12
+ } from "./chunk-5AHHO2QA.js";
13
13
  import {
14
14
  WORKSPACE_ENV_EXAMPLE_FILE,
15
15
  renderWorkspaceEnvExample
16
- } from "./chunk-X4G7FGHS.js";
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-7B2KH733.js";
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-JTUMJXFN.js";
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-YGGEC2DV.js");
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-GQIMMMZL.js");
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-MLBXEIKR.js");
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-ZZS5TNGT.js");
1072
- const { isEnabled } = await import("./toolchain-modules-GQIMMMZL.js");
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-N3JPECAZ.js");
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-DTFJJYQH.js");
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-DTFJJYQH.js");
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-DTFJJYQH.js");
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-DTFJJYQH.js")).environmentCredentialVars() : void 0;
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-UBM7L5KL.js.map
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-Q2KVGISJ.js";
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-NJCHWEPU.js.map
157
+ //# sourceMappingURL=chunk-Q45RTKWW.js.map
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-PRSNMSVG.js";
27
27
  import {
28
28
  getAccessToken
29
- } from "./chunk-YQQSFS7S.js";
29
+ } from "./chunk-K23RUXSH.js";
30
30
  import {
31
31
  pipedYes
32
32
  } from "./chunk-GJZMKMWO.js";
@@ -139,7 +139,7 @@ async function runBranchCommand(args) {
139
139
  const workspaceId = auth.workspaceId;
140
140
  const target = { baseUrl: auth.instance, workspaceId };
141
141
  const { branches, unaddressable } = await listBranchListing(auth, target).catch(async (err) => {
142
- const { unansweredRead } = await import("./source-resolve-LP6MCOQX.js");
142
+ const { unansweredRead } = await import("./source-resolve-PMA7SHZE.js");
143
143
  throw unansweredRead(err, `list the branches of workspace ${workspaceId}`, "workspace");
144
144
  });
145
145
  if (verb === "list") {
@@ -161,7 +161,7 @@ async function runBranchCommand(args) {
161
161
  const meant = near.map((n) => `Did you mean "${safeText(n)}"? \`xanosdk workspace branch delete ${shellWord(n)}${again}\` deletes it, after asking to confirm.`);
162
162
  const branchesLine = known !== "" ? [`Its branches: ${known}.`] : [];
163
163
  if (near.length > 0) {
164
- const { SourceError } = await import("./source-resolve-LP6MCOQX.js");
164
+ const { SourceError } = await import("./source-resolve-PMA7SHZE.js");
165
165
  throw new SourceError([missed, ...meant, ...branchesLine].join("\n"), "gone", "workspace", near[0], near.length > 1 ? near : void 0);
166
166
  }
167
167
  warn(missed, "branch.not-found", branchesLine);
@@ -280,7 +280,7 @@ Check what is serving with \`xanosdk workspace branch list${contextFlags()}\`, t
280
280
  }
281
281
  if (args.expectLive !== void 0) {
282
282
  const now = await listBranchListing(auth, target).catch(async (err) => {
283
- const { unansweredRead } = await import("./source-resolve-LP6MCOQX.js");
283
+ const { unansweredRead } = await import("./source-resolve-PMA7SHZE.js");
284
284
  throw unansweredRead(err, `list the branches of workspace ${workspaceId}`, "workspace");
285
285
  });
286
286
  const drift = liveMismatch(now, args.expectLive);
@@ -424,4 +424,4 @@ export {
424
424
  liveBranchMismatch,
425
425
  staleSchemaRefs
426
426
  };
427
- //# sourceMappingURL=chunk-EXY42CTV.js.map
427
+ //# sourceMappingURL=chunk-QETVFGD7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ENV_WORKSPACE
3
- } from "./chunk-YQQSFS7S.js";
3
+ } from "./chunk-K23RUXSH.js";
4
4
  import {
5
5
  credentialFileOf
6
6
  } from "./chunk-ZYZ7GRX3.js";
@@ -162,4 +162,4 @@ export {
162
162
  rerunInWorkspace,
163
163
  heldElsewhereError
164
164
  };
165
- //# sourceMappingURL=chunk-CF26RMO5.js.map
165
+ //# sourceMappingURL=chunk-QK2WIASY.js.map