@xano/sdk 1.0.22 → 1.0.23

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 (121) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{agent-file-refresh-LV5ZBJEW.js → agent-file-refresh-LMBQ2XMZ.js} +4 -4
  3. package/dist/{agent-skill-command-NPWUUIKI.js → agent-skill-command-ONKMWCTR.js} +14 -14
  4. package/dist/{ai-models-command-BVOVIC6C.js → ai-models-command-E3XEUUK2.js} +2 -2
  5. package/dist/{backend-dir-6S23WBVQ.js → backend-dir-KMJ5A4PP.js} +4 -4
  6. package/dist/bin.js +14 -14
  7. package/dist/{branch-commands-VZKHIPDP.js → branch-commands-X4YTGSBK.js} +3 -3
  8. package/dist/{chunk-U27YUJE2.js → chunk-2NIKVE54.js} +3 -3
  9. package/dist/{chunk-A2YRUMSZ.js → chunk-3RKHFSFI.js} +2 -2
  10. package/dist/{chunk-GG4KEISG.js → chunk-4DZ3JEHY.js} +2 -2
  11. package/dist/{chunk-YLHAGHS6.js → chunk-5LBOIAYP.js} +12 -12
  12. package/dist/{chunk-WHZJWZTF.js → chunk-5RWVIQVF.js} +4 -4
  13. package/dist/{chunk-4RE636YS.js → chunk-7CZKE2YH.js} +16 -16
  14. package/dist/{chunk-ILPZJJVY.js → chunk-7N3MTFS6.js} +55 -55
  15. package/dist/{chunk-RQ7EYCPF.js → chunk-AG4RGKEB.js} +2 -2
  16. package/dist/{chunk-KSW6PW36.js → chunk-AYJAFMUN.js} +2 -2
  17. package/dist/{chunk-LJSYTEPF.js → chunk-C3TBVTIR.js} +5 -5
  18. package/dist/{chunk-AEEZIZ2A.js → chunk-C73SMRAX.js} +3 -3
  19. package/dist/{chunk-OT3DSWIT.js → chunk-CJEZ7EOY.js} +2 -2
  20. package/dist/{chunk-A5IFOUCW.js → chunk-CUDLEUL3.js} +1 -1
  21. package/dist/{chunk-5WCHWKLJ.js → chunk-CWAGXLSY.js} +2 -2
  22. package/dist/{chunk-L37MTTU4.js → chunk-CWYOFRRW.js} +2 -2
  23. package/dist/{chunk-F7YI4K7J.js → chunk-DMYMRVDS.js} +7 -7
  24. package/dist/{chunk-BJFO44A3.js → chunk-EBQAQI4T.js} +2 -2
  25. package/dist/{chunk-NHGED6BY.js → chunk-F26J67PN.js} +3 -3
  26. package/dist/{chunk-6JOQSH5G.js → chunk-HGABRHHG.js} +3 -3
  27. package/dist/{chunk-EU63V7YR.js → chunk-HH77B4GM.js} +2 -2
  28. package/dist/{chunk-MKZDHVVE.js → chunk-I2FG5RBF.js} +16 -16
  29. package/dist/{chunk-7GE6FZVU.js → chunk-ITXNY4AE.js} +2 -2
  30. package/dist/{chunk-QXGRUEU7.js → chunk-JX2CX4KE.js} +2 -2
  31. package/dist/{chunk-F7YMUAEI.js → chunk-JXU4OGL6.js} +2 -2
  32. package/dist/{chunk-BISPJIDL.js → chunk-MCHCOGKH.js} +2 -2
  33. package/dist/{chunk-ATEB3WHX.js → chunk-NK7LJ3LO.js} +20 -20
  34. package/dist/{chunk-VRDEZVLP.js → chunk-NZS6JXBK.js} +2 -2
  35. package/dist/{chunk-ED6N6TMS.js → chunk-OR4K35H6.js} +1 -1
  36. package/dist/{chunk-KYZ6QCR3.js → chunk-QCKBV56A.js} +3 -3
  37. package/dist/{chunk-EPMDBGJ6.js → chunk-QS5BUFLE.js} +2 -2
  38. package/dist/{chunk-EAR66AGQ.js → chunk-RSYGYTZ6.js} +2 -2
  39. package/dist/{chunk-ZCGGTZQY.js → chunk-SEYP4G53.js} +42 -42
  40. package/dist/{chunk-XJ7SRNW2.js → chunk-TABWRUSM.js} +8 -8
  41. package/dist/{chunk-ODS5M4Y7.js → chunk-UUUDUZJU.js} +2 -2
  42. package/dist/{chunk-ATRMTNSR.js → chunk-VDDLQRUF.js} +2 -2
  43. package/dist/{chunk-BQ7PALBF.js → chunk-VNEVEPTC.js} +12 -12
  44. package/dist/{chunk-LOXVHC7B.js → chunk-WH44JSCG.js} +3 -3
  45. package/dist/{chunk-UMQRDEZG.js → chunk-XMFQRPON.js} +2 -2
  46. package/dist/{chunk-IMU3T4B3.js → chunk-Y7CTKCJZ.js} +2 -2
  47. package/dist/{chunk-XTDSS57C.js → chunk-ZP7X6N5P.js} +2 -2
  48. package/dist/cli.d.ts +1 -1
  49. package/dist/cli.js +13 -13
  50. package/dist/{codegen-command-BLQBH3TH.js → codegen-command-HSGPZKJL.js} +20 -20
  51. package/dist/{deploy-command-TID6CA7V.js → deploy-command-6WZMJEML.js} +17 -17
  52. package/dist/{deploy-source-2XGWS4YS.js → deploy-source-HAGBUMHC.js} +7 -7
  53. package/dist/{dev-env-sync-QJIIUU7R.js → dev-env-sync-5DWLRPJ4.js} +14 -14
  54. package/dist/{emit-CezfsIMN.d.ts → emit-CQyYvh4T.d.ts} +13 -4
  55. package/dist/{env-example-refresh-POWYBDLK.js → env-example-refresh-VSVQ2HFM.js} +21 -21
  56. package/dist/{env-pull-command-7IZ6YGTU.js → env-pull-command-LQMLPXB5.js} +13 -13
  57. package/dist/{env-target-KAVQVPDO.js → env-target-RIMLJNDT.js} +2 -2
  58. package/dist/{env-var-command-Q5ZWB7GA.js → env-var-command-2BZAZG3V.js} +13 -13
  59. package/dist/{ephemeral-command-2P6K6LKO.js → ephemeral-command-XBLLVLFO.js} +14 -14
  60. package/dist/{generate-command-6EIPQUYK.js → generate-command-EHN2CUPM.js} +24 -24
  61. package/dist/{gitignore-KNOLQB42.js → gitignore-T3LSDEUZ.js} +6 -6
  62. package/dist/{impersonate-command-2SZFKFTW.js → impersonate-command-V5IHSGU4.js} +9 -9
  63. package/dist/index.d.ts +6 -6
  64. package/dist/index.js +2 -2
  65. package/dist/{init-command-25SUJRAE.js → init-command-XWYT3XOB.js} +16 -16
  66. package/dist/{init-modules-A73RV2OJ.js → init-modules-SFWCQY77.js} +2 -2
  67. package/dist/internal.d.ts +4 -4
  68. package/dist/internal.js +3 -4
  69. package/dist/{keep-data-merge-4QFPEJBN.js → keep-data-merge-BP6MUJ4T.js} +4 -4
  70. package/dist/{landing-record-4CZTNKZT.js → landing-record-VVOMR2K2.js} +5 -5
  71. package/dist/{local-engine-ai-6FF34RSX.js → local-engine-ai-OMIXXDLL.js} +3 -3
  72. package/dist/{local-engine-choice-P3GZBFTE.js → local-engine-choice-6UDFWXZV.js} +11 -11
  73. package/dist/{local-engine-command-A76ADITM.js → local-engine-command-PLY6BUVY.js} +14 -14
  74. package/dist/{local-engine-deploy-SEPTWYYD.js → local-engine-deploy-SXPER4IK.js} +2 -2
  75. package/dist/{local-engine-mcp-command-4OXNZDCM.js → local-engine-mcp-command-2MP4QGCF.js} +14 -14
  76. package/dist/{lock-commands-CSUAP3CZ.js → lock-commands-EAVJ3B5Z.js} +14 -14
  77. package/dist/{login-command-TE4CGIEZ.js → login-command-FFANG4I3.js} +9 -9
  78. package/dist/{logout-command-YR2G5OIN.js → logout-command-LLQB6UNZ.js} +3 -3
  79. package/dist/{marketplace-command-4N5IIDSA.js → marketplace-command-S2QEW7HB.js} +13 -13
  80. package/dist/{meta-client-XEMGHUUK.js → meta-client-DK743HIJ.js} +2 -2
  81. package/dist/node.d.ts +4 -4
  82. package/dist/node.js +16 -16
  83. package/dist/{operation-outcome-D5QHO5LT.js → operation-outcome-FMVCJP6S.js} +4 -4
  84. package/dist/{output-target-CYAPGP3A.js → output-target-B5BSZKN7.js} +7 -7
  85. package/dist/{preflight-command-WT4RIL5P.js → preflight-command-ZLATKN4D.js} +19 -19
  86. package/dist/{profile-command-5RXNMDIX.js → profile-command-FWEXWYEO.js} +10 -10
  87. package/dist/{promote-command-HOW24EMD.js → promote-command-OVNRCQ32.js} +27 -27
  88. package/dist/{publish-command-E6F5D3FY.js → publish-command-HZOA2U33.js} +17 -17
  89. package/dist/{pull-command-ZBJJ6MDT.js → pull-command-RZCBW5LT.js} +22 -22
  90. package/dist/{release-command-65Z3VDBQ.js → release-command-R56APBGY.js} +19 -19
  91. package/dist/{release-ns-command-CH23BRI3.js → release-ns-command-5HG4J7QK.js} +32 -32
  92. package/dist/{routes-manifest-file-NAXVFRVN.js → routes-manifest-file-BKJ5YAER.js} +2 -2
  93. package/dist/{secrets-file-KKGISTCY.js → secrets-file-I7E5E7XH.js} +5 -5
  94. package/dist/{secrets-fill-command-R3JTP2VN.js → secrets-fill-command-2PGNJIPE.js} +16 -16
  95. package/dist/{source-resolve-TS2CWDZ6.js → source-resolve-BFIYJSS3.js} +3 -3
  96. package/dist/{status-command-FWE65NQQ.js → status-command-EPB42W4M.js} +12 -12
  97. package/dist/{store-CscLDS9B.d.ts → store-BiEwEahS.d.ts} +1 -1
  98. package/dist/{sync-contributions-MV7UXGUN.js → sync-contributions-DVYKULCI.js} +2 -2
  99. package/dist/{tables-command-W3KSMKYR.js → tables-command-M26KGK4R.js} +10 -10
  100. package/dist/{tenant-command-ZPNAY7AM.js → tenant-command-5BEGYEUR.js} +33 -33
  101. package/dist/{test-command-7Z5F5SKW.js → test-command-IPW5FO2X.js} +10 -10
  102. package/dist/{token-UPSKG3BH.js → token-5Y4P5LIK.js} +2 -2
  103. package/dist/{toolchain-modules-V7AOUVZ3.js → toolchain-modules-PUOJ53C3.js} +2 -2
  104. package/dist/{tracked-backend-CCBFWEJV.js → tracked-backend-4GUFTKTI.js} +9 -9
  105. package/dist/{update-check-D7EVYWDB.js → update-check-4XYNYP23.js} +15 -15
  106. package/dist/{upgrade-command-7AJQ265B.js → upgrade-command-YZVH6VG3.js} +17 -17
  107. package/dist/{whoami-command-LNFEE5XP.js → whoami-command-FCWHX5NZ.js} +4 -4
  108. package/dist/{workspace-KNMGO3LZ.js → workspace-GHMUZKQI.js} +2 -2
  109. package/dist/{workspace-binding-CEB7LD2Y.js → workspace-binding-3RRG4CSG.js} +3 -3
  110. package/dist/{workspace-command-DY5K6A5L.js → workspace-command-JH7KDNRW.js} +28 -28
  111. package/dist/{workspace-env-VPEHJVRV.js → workspace-env-MNHHZ7LU.js} +5 -5
  112. package/dist/{xanosdk-import-TC2YGIEJ.js → xanosdk-import-U6MEVOVM.js} +2 -2
  113. package/dist/{xanosdk-project-J5VAVLCA.js → xanosdk-project-TRPK6LBG.js} +5 -5
  114. package/guides/object-kinds.md +5 -3
  115. package/llms/errors.md +0 -1
  116. package/llms/kinds-agent-mcp.md +1 -1
  117. package/llms-full.txt +2 -3
  118. package/llms.txt +1 -1
  119. package/manifest.json +1 -1
  120. package/package.json +1 -1
  121. package/skills/xano-backend/SKILL.md +2 -2
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  fetchWorkspaceBundle
3
- } from "./chunk-4RE636YS.js";
4
- import "./chunk-MKZDHVVE.js";
5
- import "./chunk-ODS5M4Y7.js";
3
+ } from "./chunk-7CZKE2YH.js";
4
+ import "./chunk-I2FG5RBF.js";
5
+ import "./chunk-UUUDUZJU.js";
6
6
  import {
7
7
  printMicroserviceSection,
8
8
  readMicroservices
@@ -11,7 +11,7 @@ import "./chunk-FIVLDAIK.js";
11
11
  import "./chunk-CZISUZJ6.js";
12
12
  import "./chunk-XXVP7E62.js";
13
13
  import "./chunk-WAUIPPMF.js";
14
- import "./chunk-KYZ6QCR3.js";
14
+ import "./chunk-QCKBV56A.js";
15
15
  import "./chunk-FWGPIQMW.js";
16
16
  import {
17
17
  confirm
@@ -29,42 +29,42 @@ import {
29
29
  reachableWorkspaces,
30
30
  refuseUnreachableWorkspace,
31
31
  unreachableWorkspaceMessage
32
- } from "./chunk-EAR66AGQ.js";
33
- import "./chunk-GG4KEISG.js";
32
+ } from "./chunk-RSYGYTZ6.js";
33
+ import "./chunk-4DZ3JEHY.js";
34
34
  import "./chunk-VRHJTYBO.js";
35
35
  import "./chunk-2TFRR6JV.js";
36
36
  import {
37
37
  resolveOutputTarget,
38
38
  secretsPhrase,
39
39
  writeExportFile
40
- } from "./chunk-EU63V7YR.js";
40
+ } from "./chunk-HH77B4GM.js";
41
41
  import {
42
42
  secretsCarriedBy
43
43
  } from "./chunk-XNXZZU3W.js";
44
- import "./chunk-EPMDBGJ6.js";
44
+ import "./chunk-QS5BUFLE.js";
45
45
  import {
46
46
  assertBundleFile,
47
47
  assertBundleInput,
48
48
  assertEntryFile,
49
49
  assertValueFiles,
50
50
  loadBundleText
51
- } from "./chunk-ILPZJJVY.js";
51
+ } from "./chunk-7N3MTFS6.js";
52
52
  import "./chunk-CUVZ3RT5.js";
53
- import "./chunk-U27YUJE2.js";
54
- import "./chunk-F7YI4K7J.js";
53
+ import "./chunk-2NIKVE54.js";
54
+ import "./chunk-DMYMRVDS.js";
55
55
  import "./chunk-HWD2Z72H.js";
56
- import "./chunk-F7YMUAEI.js";
56
+ import "./chunk-JXU4OGL6.js";
57
57
  import "./chunk-X7BDJ6WU.js";
58
58
  import "./chunk-P3G2Z2L3.js";
59
- import "./chunk-UMQRDEZG.js";
59
+ import "./chunk-XMFQRPON.js";
60
60
  import "./chunk-YDGBFJUA.js";
61
61
  import "./chunk-2MNLRIOX.js";
62
62
  import "./chunk-WNDTIUTA.js";
63
63
  import "./chunk-ZBAINZJB.js";
64
64
  import {
65
65
  getAccessToken
66
- } from "./chunk-LOXVHC7B.js";
67
- import "./chunk-A2YRUMSZ.js";
66
+ } from "./chunk-WH44JSCG.js";
67
+ import "./chunk-3RKHFSFI.js";
68
68
  import "./chunk-4EFBDSVU.js";
69
69
  import "./chunk-Y7TZZ6NW.js";
70
70
  import "./chunk-ZYJP6BOO.js";
@@ -73,9 +73,9 @@ import "./chunk-RQGSZ7AR.js";
73
73
  import "./chunk-NRFE7KLI.js";
74
74
  import "./chunk-7ZVQIKNL.js";
75
75
  import "./chunk-2H5BQRHF.js";
76
- import "./chunk-OT3DSWIT.js";
76
+ import "./chunk-CJEZ7EOY.js";
77
77
  import "./chunk-M3DIFMJX.js";
78
- import "./chunk-ATRMTNSR.js";
78
+ import "./chunk-VDDLQRUF.js";
79
79
  import "./chunk-QO6BVGS5.js";
80
80
  import "./chunk-EFP5WRUV.js";
81
81
  import {
@@ -91,9 +91,9 @@ import "./chunk-TANRKGHA.js";
91
91
  import {
92
92
  writeData
93
93
  } from "./chunk-4GPIOIAC.js";
94
- import "./chunk-BISPJIDL.js";
95
- import "./chunk-6JOQSH5G.js";
96
- import "./chunk-L37MTTU4.js";
94
+ import "./chunk-MCHCOGKH.js";
95
+ import "./chunk-HGABRHHG.js";
96
+ import "./chunk-CWYOFRRW.js";
97
97
  import "./chunk-HU7F56VF.js";
98
98
  import "./chunk-U66T5MAB.js";
99
99
  import "./chunk-ZFDZKNGG.js";
@@ -145,7 +145,7 @@ import {
145
145
  writeJson,
146
146
  writeTargetPayload
147
147
  } from "./chunk-VZIGBEF4.js";
148
- import "./chunk-ED6N6TMS.js";
148
+ import "./chunk-OR4K35H6.js";
149
149
  import "./chunk-WYOQNVM2.js";
150
150
  import "./chunk-Q25OESFL.js";
151
151
  import "./chunk-XGNYUZLW.js";
@@ -206,7 +206,7 @@ async function runWorkspaceCommand(args) {
206
206
  case "reset-tables":
207
207
  return runResetTables(args);
208
208
  case "branch": {
209
- const { runBranchCommand } = await import("./branch-commands-VZKHIPDP.js");
209
+ const { runBranchCommand } = await import("./branch-commands-X4YTGSBK.js");
210
210
  return runBranchCommand(args);
211
211
  }
212
212
  default:
@@ -235,7 +235,7 @@ async function runDetails(args) {
235
235
  const auth = await getAccessToken(args);
236
236
  const workspaceId = auth.workspaceId;
237
237
  const all = await fetchWorkspaces(auth).catch(async (err) => {
238
- const { unansweredRead } = await import("./source-resolve-TS2CWDZ6.js");
238
+ const { unansweredRead } = await import("./source-resolve-BFIYJSS3.js");
239
239
  throw unansweredRead(err, "read the workspace list", "workspace");
240
240
  });
241
241
  const match = all.find((w) => w.id === workspaceId);
@@ -295,7 +295,7 @@ async function runExport(args) {
295
295
  var EXIT_DIFF_MISMATCH = 2;
296
296
  async function runDiff(args) {
297
297
  if (args.file === void 0 && args.bundle === void 0) {
298
- const { resolveProjectEntry } = await import("./deploy-source-2XGWS4YS.js");
298
+ const { resolveProjectEntry } = await import("./deploy-source-HAGBUMHC.js");
299
299
  const entry = resolveProjectEntry(process.cwd());
300
300
  if (entry !== void 0) args = { ...args, file: entry };
301
301
  }
@@ -308,11 +308,11 @@ async function runDiff(args) {
308
308
  try {
309
309
  live = await fetchWorkspaceBundle(auth, args.branch);
310
310
  } catch (err) {
311
- const { unansweredRead } = await import("./source-resolve-TS2CWDZ6.js");
311
+ const { unansweredRead } = await import("./source-resolve-BFIYJSS3.js");
312
312
  throw unansweredRead(err, "read the workspace to compare", "workspace");
313
313
  }
314
314
  const { SETTINGS_LABEL } = await import("./live-diff-CPFDW6T4.js");
315
- const { codePinnedCanonicals, releaseCanonicalLock } = await import("./release-command-65Z3VDBQ.js");
315
+ const { codePinnedCanonicals, releaseCanonicalLock } = await import("./release-command-R56APBGY.js");
316
316
  const pinned = codePinnedCanonicals(local.bundle, releaseCanonicalLock(args), args.file !== void 0);
317
317
  const listed = await listBranches(auth, { baseUrl: auth.instance, workspaceId: auth.workspaceId }).catch(
318
318
  () => void 0
@@ -320,7 +320,7 @@ async function runDiff(args) {
320
320
  const liveLabel = listed?.find((b) => b.live)?.label;
321
321
  const comparedLabel = args.branch ?? liveLabel;
322
322
  const comparedIsLive = args.branch === void 0 ? true : liveLabel === void 0 ? null : args.branch === liveLabel;
323
- const { landingLockPath } = await import("./landing-record-4CZTNKZT.js");
323
+ const { landingLockPath } = await import("./landing-record-VVOMR2K2.js");
324
324
  const { readSyncBaseline, storedBranchLabel } = await import("./sync-record-ASVPKPKZ.js");
325
325
  const { directedComparison } = await import("./sync-baseline-6J7SQUPN.js");
326
326
  const syncLabel = storedBranchLabel(listed, args.branch);
@@ -563,4 +563,4 @@ export {
563
563
  EXIT_DIFF_MISMATCH,
564
564
  runWorkspaceCommand
565
565
  };
566
- //# sourceMappingURL=workspace-command-DY5K6A5L.js.map
566
+ //# sourceMappingURL=workspace-command-JH7KDNRW.js.map
@@ -17,10 +17,10 @@ import {
17
17
  renderWorkspaceEnvFile,
18
18
  valueProblem,
19
19
  workspaceEnvPathIn
20
- } from "./chunk-U27YUJE2.js";
21
- import "./chunk-BISPJIDL.js";
22
- import "./chunk-6JOQSH5G.js";
23
- import "./chunk-L37MTTU4.js";
20
+ } from "./chunk-2NIKVE54.js";
21
+ import "./chunk-MCHCOGKH.js";
22
+ import "./chunk-HGABRHHG.js";
23
+ import "./chunk-CWYOFRRW.js";
24
24
  import {
25
25
  projectRootFrom
26
26
  } from "./chunk-HU7F56VF.js";
@@ -76,4 +76,4 @@ export {
76
76
  valueProblem,
77
77
  workspaceEnvPathIn
78
78
  };
79
- //# sourceMappingURL=workspace-env-VPEHJVRV.js.map
79
+ //# sourceMappingURL=workspace-env-MNHHZ7LU.js.map
@@ -13,7 +13,7 @@ import {
13
13
  resetXanoSdkImportDetection,
14
14
  withDefaultBranchPointer,
15
15
  xanosdkImport
16
- } from "./chunk-7GE6FZVU.js";
16
+ } from "./chunk-ITXNY4AE.js";
17
17
  import "./chunk-3DRXWLJ5.js";
18
18
  import "./chunk-X4DVXBFY.js";
19
19
  import "./chunk-ZBAINZJB.js";
@@ -53,4 +53,4 @@ export {
53
53
  withDefaultBranchPointer,
54
54
  xanosdkImport
55
55
  };
56
- //# sourceMappingURL=xanosdk-import-TC2YGIEJ.js.map
56
+ //# sourceMappingURL=xanosdk-import-U6MEVOVM.js.map
@@ -3,12 +3,12 @@ import {
3
3
  enterProjectRoot,
4
4
  isProjectDir,
5
5
  projectDirFrom
6
- } from "./chunk-UMQRDEZG.js";
6
+ } from "./chunk-XMFQRPON.js";
7
7
  import "./chunk-EUUUMY7J.js";
8
8
  import "./chunk-TANRKGHA.js";
9
- import "./chunk-BISPJIDL.js";
10
- import "./chunk-6JOQSH5G.js";
11
- import "./chunk-L37MTTU4.js";
9
+ import "./chunk-MCHCOGKH.js";
10
+ import "./chunk-HGABRHHG.js";
11
+ import "./chunk-CWYOFRRW.js";
12
12
  import "./chunk-HU7F56VF.js";
13
13
  import "./chunk-U66T5MAB.js";
14
14
  import "./chunk-ZFDZKNGG.js";
@@ -41,4 +41,4 @@ export {
41
41
  isProjectDir,
42
42
  projectDirFrom
43
43
  };
44
- //# sourceMappingURL=xanosdk-project-J5VAVLCA.js.map
44
+ //# sourceMappingURL=xanosdk-project-TRPK6LBG.js.map
@@ -90,7 +90,8 @@ workflowTest({
90
90
  ```
91
91
 
92
92
  **Saved unit tests are a different thing, and they hang off the object.** A `query`,
93
- `defineFunction` or `middleware` takes a `tests` array — the tests the Xano editor shows.
93
+ `defineFunction`, `middleware`, `tool`, `prompt` or `resource` takes a `tests` array — the
94
+ tests the Xano editor shows.
94
95
  Each is a named set of inputs run against *that* object, asserted with the top-level
95
96
  `expect.*` helpers. (`s.expect.*` — see [Authoring reference](authoring.md) — builds a
96
97
  *statement* for a workflow-test stack;
@@ -240,7 +241,7 @@ mcpServer({ name: "books", tools: [{ tool: searchTool, auth: users }] });
240
241
 
241
242
  const assistant = agent({
242
243
  name: "assistant",
243
- llm: { type: "xano-free", systemPrompt: "Be helpful.", prompt: "Answer the question." },
244
+ llm: { type: "xano-ai", systemPrompt: "Be helpful.", prompt: "Answer the question." },
244
245
  // Pass the handles directly; the `{ tool, enabled?, auth? }` wrapper (above)
245
246
  // is only for per-tool auth or `enabled: false`.
246
247
  tools: [searchTool],
@@ -259,7 +260,8 @@ query({
259
260
  — `ref("answer")` is the whole metadata object (`finishReason`, `steps`, …). Both are
260
261
  typed, so `InferResponse` reflects either.
261
262
  - **`llm` is a provider-discriminated union** — `anthropic` / `openai` / `google-genai` /
262
- `xano-free` (which needs no API key) — each with its provider's typed fields.
263
+ `xano-ai` (which Xano bills, so it needs no API key) — each with its provider's typed
264
+ fields. `xano-free` is deprecated: it runs as `xano-ai`.
263
265
  - **Structured output types the call site.** Author `output: { schema: { … } }` on the agent
264
266
  with the `input.*` catalog and `.result` is typed from it wherever the handle is passed —
265
267
  no second witness. The type-only `resultShape` is only for overriding that, or for an
package/llms/errors.md CHANGED
@@ -25,7 +25,6 @@
25
25
  - A lambda returns error TEXT with HTTP 200 (`Could not resolve "node:crypto"`, an undefined-binding message) — the body threw; use the preloaded globals, the surface's bindings, and `capture`. `llms/lambda.md`.
26
26
  - `Unable to locate request.` (404) on an endpoint that deployed — a lowercase verb, a `.` in the name, or a CORS `mode` typo that dropped the whole API group. `llms/kinds-core.md`.
27
27
  - A browser call fails on a missing `access-control-allow-origin` while deploy looks fine — CORS `mode: "custom"` with `"*"` or an unmatched origin. `llms/kinds-core.md`.
28
- - `ERROR_FATAL` `The free model is not available in this process.` — an `xano-free` agent run on a Xano Engine; it runs only on Xano's cloud. `llms/kinds-agent-mcp.md`.
29
28
  - `Not supported. Please upgrade your Xano instance.` (HTTP 403) — a capability the instance lacks; on the Xano Engine on this machine, every `s.storage.sign_private_url` answers it. Test it with `deploy --ephemeral`. `llms/fields.md`.
30
29
  - An MCP `tools/call` answers `isError: true` with `Unable to get successful response from executing tool` — the tool's run failed without a usable `{code, message}`, and the authored message is dropped. Common cause: a tool reading `auth()` behind an entry naming no auth table (`export()` warns `toolset.tool-reads-auth-ungated`); wrap it `{ tool: <handle>, auth: <auth table> }`. `llms/kinds-agent-mcp.md`.
31
30
  - A websocket is closed right after the handshake — a refused `connect` gate: an empty/falsy return, a crash, or a gating trigger with no `response`. `llms/triggers.md`.
@@ -26,7 +26,7 @@
26
26
  - `s.mcp.oauth.revoke({ mcp_server, user_id? | grant_id? | all?, as? })` — end hosted sign-ins on a server: EXACTLY ONE of `user_id`, `grant_id`, `all: c.bool(true)`, else `export()` fails (`mcp.oauth-revoke-target`). Binds `{ revoked }`.
27
27
  - `agent({ name, guid?, description?, docs?, enabled?, canonical?, tags?, history?, llm, tools?, output? })` — an LLM orchestrator. No top-level `instructions`/`prompt`/`spec` — the prompt lives under `llm`. Invoke from a stack with `s.ai.agent.run({ agent, args })`.
28
28
  - `llm` (REQUIRED): typed provider settings, a discriminated union on `type` (`"xano-free" | "xano-ai" | "anthropic" | "openai" | "google-genai"`). Shared fields: `systemPrompt?`, `maxSteps?` (default `5`), and `prompt?` XOR `messages?` (mutually exclusive; both is a type error and throws); plus provider fields (`apiKey?`, `model?`, `temperature?`, `reasoningEffort?`, …). String fields accept Twig placeholders — `{{ $args.x }}` for run inputs (the `args` of `s.ai.agent.run`), `{{ $env.NAME }}` for env vars.
29
- - `xano-free` runs only on Xano's cloud: on the Xano Engine on this machine a run fails `ERROR_FATAL` `The free model is not available in this process.` — use a keyed provider there.
29
+ - `xano-free` is deprecated and runs as `xano-ai` (default model, workspace location, billed as Xano AI), on the Xano Engine on this machine too; a `model`/`location` stored under it is ignored. Author `xano-ai` for a new agent.
30
30
  - `xano-ai` on the Xano Engine on this machine: each `deploy` (and the restart `local update` makes) gives the engine a Xano AI credential from the `xanosdk login` sign-in — the profile the project pins, `XANO_PROFILE`, or the default. It lasts as long as the engine runs, A DAY AT MOST, and the next deploy renews it with no restart. Billed to the signed-in user; `--ai-billing instance`, or `"aiBilling": "instance"` under `"xanosdk"."@xano/sdk"` in package.json, bills the owner of the instance signed in to (the flag wins). Without a usable sign-in (none, a pasted meta token, one without Xano AI access) the deploy still succeeds and prints why Xano AI is off and the fix; `--json` carries `ai: { status, billing, expiresAt?, reason? }`. An engine started by an SDK before this needs `xanosdk local stop <name>`, then a deploy.
31
31
  - `xano-ai` runs Xano AI models, with no `apiKey`: `model?` must be a literal name (a `{{ … }}` or expression THROWS, since the run would use the default model), and `location?` is `"" | "us" | "global" | "eu"` (or a `{{ … }}` template), set on the agent, not per run (which location wins: `llms/statements-ai.md`). ⚠ A literal `model` the gateway does not list for agents (`agent.models` in `ai models`) runs the default model instead, with no error.
32
32
  - `tools?`: same `ToolsetToolEntry[]` as `mcpServer` — bare `tool()` handles, or a `{ tool, enabled?, auth? }` wrapper when one needs `enabled`/`auth`. A tool reading `auth()` needs the wrapper naming its auth table (see `mcpServer`'s `tools?`).
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # xanosdk v1.0.22
1
+ # xanosdk v1.0.23
2
2
 
3
3
  > TypeScript SDK that compiles a typed Xano workspace into the importable packageExport JSON bundle.
4
4
 
@@ -780,7 +780,6 @@ core sections still refresh; under `routes --emit --strict` it is fatal. `@xano-
780
780
  - A lambda returns error TEXT with HTTP 200 (`Could not resolve "node:crypto"`, an undefined-binding message) — the body threw; use the preloaded globals, the surface's bindings, and `capture`. `llms/lambda.md`.
781
781
  - `Unable to locate request.` (404) on an endpoint that deployed — a lowercase verb, a `.` in the name, or a CORS `mode` typo that dropped the whole API group. `llms/kinds-core.md`.
782
782
  - A browser call fails on a missing `access-control-allow-origin` while deploy looks fine — CORS `mode: "custom"` with `"*"` or an unmatched origin. `llms/kinds-core.md`.
783
- - `ERROR_FATAL` `The free model is not available in this process.` — an `xano-free` agent run on a Xano Engine; it runs only on Xano's cloud. `llms/kinds-agent-mcp.md`.
784
783
  - `Not supported. Please upgrade your Xano instance.` (HTTP 403) — a capability the instance lacks; on the Xano Engine on this machine, every `s.storage.sign_private_url` answers it. Test it with `deploy --ephemeral`. `llms/fields.md`.
785
784
  - An MCP `tools/call` answers `isError: true` with `Unable to get successful response from executing tool` — the tool's run failed without a usable `{code, message}`, and the authored message is dropped. Common cause: a tool reading `auth()` behind an entry naming no auth table (`export()` warns `toolset.tool-reads-auth-ungated`); wrap it `{ tool: <handle>, auth: <auth table> }`. `llms/kinds-agent-mcp.md`.
786
785
  - A websocket is closed right after the handshake — a refused `connect` gate: an empty/falsy return, a crash, or a gating trigger with no `response`. `llms/triggers.md`.
@@ -934,7 +933,7 @@ Isolation rules; each fails a correct test with a misleading message.
934
933
  - `s.mcp.oauth.revoke({ mcp_server, user_id? | grant_id? | all?, as? })` — end hosted sign-ins on a server: EXACTLY ONE of `user_id`, `grant_id`, `all: c.bool(true)`, else `export()` fails (`mcp.oauth-revoke-target`). Binds `{ revoked }`.
935
934
  - `agent({ name, guid?, description?, docs?, enabled?, canonical?, tags?, history?, llm, tools?, output? })` — an LLM orchestrator. No top-level `instructions`/`prompt`/`spec` — the prompt lives under `llm`. Invoke from a stack with `s.ai.agent.run({ agent, args })`.
936
935
  - `llm` (REQUIRED): typed provider settings, a discriminated union on `type` (`"xano-free" | "xano-ai" | "anthropic" | "openai" | "google-genai"`). Shared fields: `systemPrompt?`, `maxSteps?` (default `5`), and `prompt?` XOR `messages?` (mutually exclusive; both is a type error and throws); plus provider fields (`apiKey?`, `model?`, `temperature?`, `reasoningEffort?`, …). String fields accept Twig placeholders — `{{ $args.x }}` for run inputs (the `args` of `s.ai.agent.run`), `{{ $env.NAME }}` for env vars.
937
- - `xano-free` runs only on Xano's cloud: on the Xano Engine on this machine a run fails `ERROR_FATAL` `The free model is not available in this process.` — use a keyed provider there.
936
+ - `xano-free` is deprecated and runs as `xano-ai` (default model, workspace location, billed as Xano AI), on the Xano Engine on this machine too; a `model`/`location` stored under it is ignored. Author `xano-ai` for a new agent.
938
937
  - `xano-ai` on the Xano Engine on this machine: each `deploy` (and the restart `local update` makes) gives the engine a Xano AI credential from the `xanosdk login` sign-in — the profile the project pins, `XANO_PROFILE`, or the default. It lasts as long as the engine runs, A DAY AT MOST, and the next deploy renews it with no restart. Billed to the signed-in user; `--ai-billing instance`, or `"aiBilling": "instance"` under `"xanosdk"."@xano/sdk"` in package.json, bills the owner of the instance signed in to (the flag wins). Without a usable sign-in (none, a pasted meta token, one without Xano AI access) the deploy still succeeds and prints why Xano AI is off and the fix; `--json` carries `ai: { status, billing, expiresAt?, reason? }`. An engine started by an SDK before this needs `xanosdk local stop <name>`, then a deploy.
939
938
  - `xano-ai` runs Xano AI models, with no `apiKey`: `model?` must be a literal name (a `{{ … }}` or expression THROWS, since the run would use the default model), and `location?` is `"" | "us" | "global" | "eu"` (or a `{{ … }}` template), set on the agent, not per run (which location wins: `llms/statements-ai.md`). ⚠ A literal `model` the gateway does not list for agents (`agent.models` in `ai models`) runs the default model instead, with no error.
940
939
  - `tools?`: same `ToolsetToolEntry[]` as `mcpServer` — bare `tool()` handles, or a `{ tool, enabled?, auth? }` wrapper when one needs `enabled`/`auth`. A tool reading `auth()` needs the wrapper naming its auth table (see `mcpServer`'s `tools?`).
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # xanosdk v1.0.22
1
+ # xanosdk v1.0.23
2
2
 
3
3
  > TypeScript SDK that compiles a typed Xano workspace into the importable packageExport JSON bundle.
4
4
 
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xanosdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "TypeScript SDK that compiles a typed Xano workspace into the importable packageExport JSON bundle.",
5
5
  "coverage": {
6
6
  "objectKinds": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "The official TypeScript SDK for Xano, one platform to build, run and govern AI-built software. Your coding agent writes the backend in TypeScript, you run it on the Xano Engine on your machine, then deploy it to Xano.",
5
5
  "keywords": [
6
6
  "xanosdk",
@@ -14,8 +14,8 @@ description: >-
14
14
  FastAPI) unless the user asks for Xano.
15
15
  license: MIT
16
16
  metadata:
17
- xanosdk-version: "1.0.22"
18
- xanosdk-digest: "sha256:61bedc91a3772125238639ae7d4f82003edd6b6fe8b106c3886c61f094cd27c9"
17
+ xanosdk-version: "1.0.23"
18
+ xanosdk-digest: "sha256:87368f476dd7cb0d9e46695f2acb3ad8097931319053918aa27881f0f66cce03"
19
19
  ---
20
20
 
21
21
  # Xano backend