@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.
- package/CHANGELOG.md +12 -0
- package/dist/{agent-file-refresh-LV5ZBJEW.js → agent-file-refresh-LMBQ2XMZ.js} +4 -4
- package/dist/{agent-skill-command-NPWUUIKI.js → agent-skill-command-ONKMWCTR.js} +14 -14
- package/dist/{ai-models-command-BVOVIC6C.js → ai-models-command-E3XEUUK2.js} +2 -2
- package/dist/{backend-dir-6S23WBVQ.js → backend-dir-KMJ5A4PP.js} +4 -4
- package/dist/bin.js +14 -14
- package/dist/{branch-commands-VZKHIPDP.js → branch-commands-X4YTGSBK.js} +3 -3
- package/dist/{chunk-U27YUJE2.js → chunk-2NIKVE54.js} +3 -3
- package/dist/{chunk-A2YRUMSZ.js → chunk-3RKHFSFI.js} +2 -2
- package/dist/{chunk-GG4KEISG.js → chunk-4DZ3JEHY.js} +2 -2
- package/dist/{chunk-YLHAGHS6.js → chunk-5LBOIAYP.js} +12 -12
- package/dist/{chunk-WHZJWZTF.js → chunk-5RWVIQVF.js} +4 -4
- package/dist/{chunk-4RE636YS.js → chunk-7CZKE2YH.js} +16 -16
- package/dist/{chunk-ILPZJJVY.js → chunk-7N3MTFS6.js} +55 -55
- package/dist/{chunk-RQ7EYCPF.js → chunk-AG4RGKEB.js} +2 -2
- package/dist/{chunk-KSW6PW36.js → chunk-AYJAFMUN.js} +2 -2
- package/dist/{chunk-LJSYTEPF.js → chunk-C3TBVTIR.js} +5 -5
- package/dist/{chunk-AEEZIZ2A.js → chunk-C73SMRAX.js} +3 -3
- package/dist/{chunk-OT3DSWIT.js → chunk-CJEZ7EOY.js} +2 -2
- package/dist/{chunk-A5IFOUCW.js → chunk-CUDLEUL3.js} +1 -1
- package/dist/{chunk-5WCHWKLJ.js → chunk-CWAGXLSY.js} +2 -2
- package/dist/{chunk-L37MTTU4.js → chunk-CWYOFRRW.js} +2 -2
- package/dist/{chunk-F7YI4K7J.js → chunk-DMYMRVDS.js} +7 -7
- package/dist/{chunk-BJFO44A3.js → chunk-EBQAQI4T.js} +2 -2
- package/dist/{chunk-NHGED6BY.js → chunk-F26J67PN.js} +3 -3
- package/dist/{chunk-6JOQSH5G.js → chunk-HGABRHHG.js} +3 -3
- package/dist/{chunk-EU63V7YR.js → chunk-HH77B4GM.js} +2 -2
- package/dist/{chunk-MKZDHVVE.js → chunk-I2FG5RBF.js} +16 -16
- package/dist/{chunk-7GE6FZVU.js → chunk-ITXNY4AE.js} +2 -2
- package/dist/{chunk-QXGRUEU7.js → chunk-JX2CX4KE.js} +2 -2
- package/dist/{chunk-F7YMUAEI.js → chunk-JXU4OGL6.js} +2 -2
- package/dist/{chunk-BISPJIDL.js → chunk-MCHCOGKH.js} +2 -2
- package/dist/{chunk-ATEB3WHX.js → chunk-NK7LJ3LO.js} +20 -20
- package/dist/{chunk-VRDEZVLP.js → chunk-NZS6JXBK.js} +2 -2
- package/dist/{chunk-ED6N6TMS.js → chunk-OR4K35H6.js} +1 -1
- package/dist/{chunk-KYZ6QCR3.js → chunk-QCKBV56A.js} +3 -3
- package/dist/{chunk-EPMDBGJ6.js → chunk-QS5BUFLE.js} +2 -2
- package/dist/{chunk-EAR66AGQ.js → chunk-RSYGYTZ6.js} +2 -2
- package/dist/{chunk-ZCGGTZQY.js → chunk-SEYP4G53.js} +42 -42
- package/dist/{chunk-XJ7SRNW2.js → chunk-TABWRUSM.js} +8 -8
- package/dist/{chunk-ODS5M4Y7.js → chunk-UUUDUZJU.js} +2 -2
- package/dist/{chunk-ATRMTNSR.js → chunk-VDDLQRUF.js} +2 -2
- package/dist/{chunk-BQ7PALBF.js → chunk-VNEVEPTC.js} +12 -12
- package/dist/{chunk-LOXVHC7B.js → chunk-WH44JSCG.js} +3 -3
- package/dist/{chunk-UMQRDEZG.js → chunk-XMFQRPON.js} +2 -2
- package/dist/{chunk-IMU3T4B3.js → chunk-Y7CTKCJZ.js} +2 -2
- package/dist/{chunk-XTDSS57C.js → chunk-ZP7X6N5P.js} +2 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +13 -13
- package/dist/{codegen-command-BLQBH3TH.js → codegen-command-HSGPZKJL.js} +20 -20
- package/dist/{deploy-command-TID6CA7V.js → deploy-command-6WZMJEML.js} +17 -17
- package/dist/{deploy-source-2XGWS4YS.js → deploy-source-HAGBUMHC.js} +7 -7
- package/dist/{dev-env-sync-QJIIUU7R.js → dev-env-sync-5DWLRPJ4.js} +14 -14
- package/dist/{emit-CezfsIMN.d.ts → emit-CQyYvh4T.d.ts} +13 -4
- package/dist/{env-example-refresh-POWYBDLK.js → env-example-refresh-VSVQ2HFM.js} +21 -21
- package/dist/{env-pull-command-7IZ6YGTU.js → env-pull-command-LQMLPXB5.js} +13 -13
- package/dist/{env-target-KAVQVPDO.js → env-target-RIMLJNDT.js} +2 -2
- package/dist/{env-var-command-Q5ZWB7GA.js → env-var-command-2BZAZG3V.js} +13 -13
- package/dist/{ephemeral-command-2P6K6LKO.js → ephemeral-command-XBLLVLFO.js} +14 -14
- package/dist/{generate-command-6EIPQUYK.js → generate-command-EHN2CUPM.js} +24 -24
- package/dist/{gitignore-KNOLQB42.js → gitignore-T3LSDEUZ.js} +6 -6
- package/dist/{impersonate-command-2SZFKFTW.js → impersonate-command-V5IHSGU4.js} +9 -9
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/{init-command-25SUJRAE.js → init-command-XWYT3XOB.js} +16 -16
- package/dist/{init-modules-A73RV2OJ.js → init-modules-SFWCQY77.js} +2 -2
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +3 -4
- package/dist/{keep-data-merge-4QFPEJBN.js → keep-data-merge-BP6MUJ4T.js} +4 -4
- package/dist/{landing-record-4CZTNKZT.js → landing-record-VVOMR2K2.js} +5 -5
- package/dist/{local-engine-ai-6FF34RSX.js → local-engine-ai-OMIXXDLL.js} +3 -3
- package/dist/{local-engine-choice-P3GZBFTE.js → local-engine-choice-6UDFWXZV.js} +11 -11
- package/dist/{local-engine-command-A76ADITM.js → local-engine-command-PLY6BUVY.js} +14 -14
- package/dist/{local-engine-deploy-SEPTWYYD.js → local-engine-deploy-SXPER4IK.js} +2 -2
- package/dist/{local-engine-mcp-command-4OXNZDCM.js → local-engine-mcp-command-2MP4QGCF.js} +14 -14
- package/dist/{lock-commands-CSUAP3CZ.js → lock-commands-EAVJ3B5Z.js} +14 -14
- package/dist/{login-command-TE4CGIEZ.js → login-command-FFANG4I3.js} +9 -9
- package/dist/{logout-command-YR2G5OIN.js → logout-command-LLQB6UNZ.js} +3 -3
- package/dist/{marketplace-command-4N5IIDSA.js → marketplace-command-S2QEW7HB.js} +13 -13
- package/dist/{meta-client-XEMGHUUK.js → meta-client-DK743HIJ.js} +2 -2
- package/dist/node.d.ts +4 -4
- package/dist/node.js +16 -16
- package/dist/{operation-outcome-D5QHO5LT.js → operation-outcome-FMVCJP6S.js} +4 -4
- package/dist/{output-target-CYAPGP3A.js → output-target-B5BSZKN7.js} +7 -7
- package/dist/{preflight-command-WT4RIL5P.js → preflight-command-ZLATKN4D.js} +19 -19
- package/dist/{profile-command-5RXNMDIX.js → profile-command-FWEXWYEO.js} +10 -10
- package/dist/{promote-command-HOW24EMD.js → promote-command-OVNRCQ32.js} +27 -27
- package/dist/{publish-command-E6F5D3FY.js → publish-command-HZOA2U33.js} +17 -17
- package/dist/{pull-command-ZBJJ6MDT.js → pull-command-RZCBW5LT.js} +22 -22
- package/dist/{release-command-65Z3VDBQ.js → release-command-R56APBGY.js} +19 -19
- package/dist/{release-ns-command-CH23BRI3.js → release-ns-command-5HG4J7QK.js} +32 -32
- package/dist/{routes-manifest-file-NAXVFRVN.js → routes-manifest-file-BKJ5YAER.js} +2 -2
- package/dist/{secrets-file-KKGISTCY.js → secrets-file-I7E5E7XH.js} +5 -5
- package/dist/{secrets-fill-command-R3JTP2VN.js → secrets-fill-command-2PGNJIPE.js} +16 -16
- package/dist/{source-resolve-TS2CWDZ6.js → source-resolve-BFIYJSS3.js} +3 -3
- package/dist/{status-command-FWE65NQQ.js → status-command-EPB42W4M.js} +12 -12
- package/dist/{store-CscLDS9B.d.ts → store-BiEwEahS.d.ts} +1 -1
- package/dist/{sync-contributions-MV7UXGUN.js → sync-contributions-DVYKULCI.js} +2 -2
- package/dist/{tables-command-W3KSMKYR.js → tables-command-M26KGK4R.js} +10 -10
- package/dist/{tenant-command-ZPNAY7AM.js → tenant-command-5BEGYEUR.js} +33 -33
- package/dist/{test-command-7Z5F5SKW.js → test-command-IPW5FO2X.js} +10 -10
- package/dist/{token-UPSKG3BH.js → token-5Y4P5LIK.js} +2 -2
- package/dist/{toolchain-modules-V7AOUVZ3.js → toolchain-modules-PUOJ53C3.js} +2 -2
- package/dist/{tracked-backend-CCBFWEJV.js → tracked-backend-4GUFTKTI.js} +9 -9
- package/dist/{update-check-D7EVYWDB.js → update-check-4XYNYP23.js} +15 -15
- package/dist/{upgrade-command-7AJQ265B.js → upgrade-command-YZVH6VG3.js} +17 -17
- package/dist/{whoami-command-LNFEE5XP.js → whoami-command-FCWHX5NZ.js} +4 -4
- package/dist/{workspace-KNMGO3LZ.js → workspace-GHMUZKQI.js} +2 -2
- package/dist/{workspace-binding-CEB7LD2Y.js → workspace-binding-3RRG4CSG.js} +3 -3
- package/dist/{workspace-command-DY5K6A5L.js → workspace-command-JH7KDNRW.js} +28 -28
- package/dist/{workspace-env-VPEHJVRV.js → workspace-env-MNHHZ7LU.js} +5 -5
- package/dist/{xanosdk-import-TC2YGIEJ.js → xanosdk-import-U6MEVOVM.js} +2 -2
- package/dist/{xanosdk-project-J5VAVLCA.js → xanosdk-project-TRPK6LBG.js} +5 -5
- package/guides/object-kinds.md +5 -3
- package/llms/errors.md +0 -1
- package/llms/kinds-agent-mcp.md +1 -1
- package/llms-full.txt +2 -3
- package/llms.txt +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchWorkspaceBundle
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
33
|
-
import "./chunk-
|
|
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-
|
|
40
|
+
} from "./chunk-HH77B4GM.js";
|
|
41
41
|
import {
|
|
42
42
|
secretsCarriedBy
|
|
43
43
|
} from "./chunk-XNXZZU3W.js";
|
|
44
|
-
import "./chunk-
|
|
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-
|
|
51
|
+
} from "./chunk-7N3MTFS6.js";
|
|
52
52
|
import "./chunk-CUVZ3RT5.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-2NIKVE54.js";
|
|
54
|
+
import "./chunk-DMYMRVDS.js";
|
|
55
55
|
import "./chunk-HWD2Z72H.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-JXU4OGL6.js";
|
|
57
57
|
import "./chunk-X7BDJ6WU.js";
|
|
58
58
|
import "./chunk-P3G2Z2L3.js";
|
|
59
|
-
import "./chunk-
|
|
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-
|
|
67
|
-
import "./chunk-
|
|
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-
|
|
76
|
+
import "./chunk-CJEZ7EOY.js";
|
|
77
77
|
import "./chunk-M3DIFMJX.js";
|
|
78
|
-
import "./chunk-
|
|
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-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
566
|
+
//# sourceMappingURL=workspace-command-JH7KDNRW.js.map
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
renderWorkspaceEnvFile,
|
|
18
18
|
valueProblem,
|
|
19
19
|
workspaceEnvPathIn
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
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-
|
|
79
|
+
//# sourceMappingURL=workspace-env-MNHHZ7LU.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resetXanoSdkImportDetection,
|
|
14
14
|
withDefaultBranchPointer,
|
|
15
15
|
xanosdkImport
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
56
|
+
//# sourceMappingURL=xanosdk-import-U6MEVOVM.js.map
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
enterProjectRoot,
|
|
4
4
|
isProjectDir,
|
|
5
5
|
projectDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XMFQRPON.js";
|
|
7
7
|
import "./chunk-EUUUMY7J.js";
|
|
8
8
|
import "./chunk-TANRKGHA.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
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-
|
|
44
|
+
//# sourceMappingURL=xanosdk-project-TRPK6LBG.js.map
|
package/guides/object-kinds.md
CHANGED
|
@@ -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 `
|
|
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-
|
|
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-
|
|
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`.
|
package/llms/kinds-agent-mcp.md
CHANGED
|
@@ -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
|
|
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.
|
|
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
|
|
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
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xano/sdk",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
18
|
-
xanosdk-digest: "sha256:
|
|
17
|
+
xanosdk-version: "1.0.23"
|
|
18
|
+
xanosdk-digest: "sha256:87368f476dd7cb0d9e46695f2acb3ad8097931319053918aa27881f0f66cce03"
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
# Xano backend
|