@xano/sdk 1.0.6 → 1.0.7
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 +20 -5
- package/README.md +30 -4
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-67QIX45H.js → agent-file-refresh-DGGSRPJ4.js} +12 -12
- package/dist/agent-skill-command-37DFYS7Q.js +414 -0
- package/dist/{answer-shape-UCDUKPAN.js → answer-shape-RBFDCNZ7.js} +4 -4
- package/dist/{backend-dir-3LIL6SCT.js → backend-dir-KDD43X7K.js} +14 -14
- package/dist/{backend-slot-JREP27UD.js → backend-slot-TBOVZXDE.js} +3 -3
- package/dist/bin.js +48 -47
- package/dist/{branch-2IPHOAYS.js → branch-7PIKNUD7.js} +11 -10
- package/dist/{branch-commands-KTKAXBAN.js → branch-commands-EGY7ZEZE.js} +23 -22
- package/dist/bundle.js +4 -4
- package/dist/{chunk-GWTFI3GA.js → chunk-26LHXLD3.js} +2 -2
- package/dist/{chunk-ENMBEXOP.js → chunk-2ACWDSAQ.js} +3 -3
- package/dist/{chunk-GOLFAEUV.js → chunk-2SD4LA22.js} +2 -2
- package/dist/{chunk-GZHLCUZ6.js → chunk-2XWVZRL6.js} +7 -7
- package/dist/{chunk-IF4PEGVD.js → chunk-2YER2J47.js} +11 -11
- package/dist/{chunk-N5I37JFB.js → chunk-3FRGNBOC.js} +2 -2
- package/dist/{chunk-YKP4ZKVO.js → chunk-46PATL23.js} +3 -3
- package/dist/{chunk-QJM5XZ4K.js → chunk-47XT6WQL.js} +8 -8
- package/dist/{chunk-AWQ7BQTQ.js → chunk-4GPIOIAC.js} +6 -1
- package/dist/{chunk-ND43ZOS3.js → chunk-567KK6XF.js} +7 -7
- package/dist/{chunk-EQFYOOO6.js → chunk-5GIOCDUM.js} +829 -893
- package/dist/{chunk-TTEIDD5Q.js → chunk-5SCPRXFB.js} +4 -4
- package/dist/{chunk-LAOMN6QQ.js → chunk-5ZG7V2VW.js} +3 -3
- package/dist/{chunk-JXVJGF3Y.js → chunk-7M6JP3FS.js} +2 -2
- package/dist/{chunk-JFBRXRJD.js → chunk-7XXWKTCE.js} +36 -36
- package/dist/{chunk-PL7AIAWS.js → chunk-A4R5CAY4.js} +4 -111
- package/dist/{chunk-SPKA2LV6.js → chunk-AKERAUNH.js} +4 -4
- package/dist/{chunk-26MOFAJT.js → chunk-ARWMVNDJ.js} +6 -3
- package/dist/{chunk-I3VHW6XM.js → chunk-B2URJBC4.js} +18 -18
- package/dist/{chunk-A7MRZ4GF.js → chunk-B3P25SDP.js} +4 -4
- package/dist/chunk-BRANWM4U.js +853 -0
- package/dist/{chunk-CHINR7WD.js → chunk-BSVQEKHO.js} +4 -4
- package/dist/{chunk-UD2Z7K6W.js → chunk-BZ6WTG3E.js} +4 -4
- package/dist/{chunk-D7BUMOKU.js → chunk-CH23ONYG.js} +76 -5
- package/dist/{chunk-763M6LX3.js → chunk-CNZASQPL.js} +2 -2
- package/dist/{chunk-TECTL2NU.js → chunk-CPN6WSBH.js} +4 -4
- package/dist/{chunk-5YQV35C2.js → chunk-CT3J5JRZ.js} +7 -7
- package/dist/{chunk-YYC2DZMG.js → chunk-D5OZRJ3T.js} +6 -6
- package/dist/{chunk-XFBGXB7X.js → chunk-DG3APBUJ.js} +149 -97
- package/dist/chunk-DIWF7L33.js +995 -0
- package/dist/{chunk-RIN4YY34.js → chunk-DXZTL7NA.js} +95 -58
- package/dist/{chunk-PMMHSX4H.js → chunk-EF4MHLEW.js} +4 -4
- package/dist/{chunk-ZDP6GDAB.js → chunk-ELPQTDW6.js} +101 -93
- package/dist/{chunk-Q22BMRPF.js → chunk-EPFDY5JU.js} +2 -2
- package/dist/{chunk-ZJSTUD6D.js → chunk-EU32BC5B.js} +8 -8
- package/dist/{chunk-3BBIDW3Y.js → chunk-FDTET7FZ.js} +3 -3
- package/dist/{chunk-YYLUBYXM.js → chunk-FENA7K7C.js} +3 -3
- package/dist/{chunk-QZEAANWP.js → chunk-GHMLRFRX.js} +8 -8
- package/dist/{chunk-MBDFH7XB.js → chunk-H2K4GFUS.js} +3 -3
- package/dist/{chunk-U35MTOXQ.js → chunk-HTQWAQRW.js} +3 -3
- package/dist/{chunk-ROY4YAEQ.js → chunk-HU7F56VF.js} +22 -2
- package/dist/{chunk-2FLIJGBZ.js → chunk-HZ6ADG3O.js} +47 -8
- package/dist/{chunk-GLY552SI.js → chunk-I6XRUU6U.js} +54 -54
- package/dist/{chunk-KPFS3RGM.js → chunk-IPNN2KRW.js} +3 -3
- package/dist/{chunk-LD6ARK3A.js → chunk-JOOKM7AH.js} +2 -2
- package/dist/{chunk-6X6BJN6Y.js → chunk-JOWY6HFL.js} +3 -3
- package/dist/{chunk-UIVMR7UK.js → chunk-JX6N73H3.js} +2 -2
- package/dist/{chunk-JRVQ7M7W.js → chunk-L472YIGG.js} +8 -8
- package/dist/{chunk-YR2I5HGE.js → chunk-L6HZ67P6.js} +2 -2
- package/dist/chunk-LCOCRJ4K.js +116 -0
- package/dist/{chunk-3EDSPMXN.js → chunk-LJM5CIY4.js} +5 -1
- package/dist/{chunk-NPODGBVJ.js → chunk-M2C54ZBC.js} +4 -4
- package/dist/{chunk-QXYMDARD.js → chunk-M3NEK3LT.js} +4 -4
- package/dist/{chunk-BL3AZ3AP.js → chunk-MBL7CXJ7.js} +2 -2
- package/dist/{chunk-7GAIJW62.js → chunk-MYZRMSPM.js} +2 -2
- package/dist/{chunk-GHQ4BVI4.js → chunk-N3YFCFCO.js} +13 -13
- package/dist/{chunk-M5CSVB23.js → chunk-NDJAKSE7.js} +11 -8
- package/dist/{chunk-Z4ZGTCCD.js → chunk-NV37YGOV.js} +6 -6
- package/dist/{chunk-GW5RHGOB.js → chunk-O56DQKPL.js} +9 -9
- package/dist/{chunk-U6MTGB46.js → chunk-ORGNLQN6.js} +5 -5
- package/dist/{chunk-I3H3HCPY.js → chunk-PEIBGH2V.js} +33 -30
- package/dist/{chunk-5TVFLG3C.js → chunk-PEX4QZVI.js} +2 -2
- package/dist/{chunk-HCG7NDIL.js → chunk-PV25BDCH.js} +5 -5
- package/dist/{chunk-VDHA5SSQ.js → chunk-PY722CHR.js} +2 -2
- package/dist/{chunk-VW4CWVYX.js → chunk-QGIZLFAS.js} +4 -4
- package/dist/{chunk-SSITMX7I.js → chunk-QRQ54LUI.js} +16 -14
- package/dist/{chunk-OIKLDDYC.js → chunk-RBU2YX22.js} +3 -3
- package/dist/{chunk-EADVVTDK.js → chunk-RRMH7WMY.js} +7 -7
- package/dist/{chunk-WZHLMU6T.js → chunk-S46ODQRA.js} +2 -2
- package/dist/{chunk-SPITRSOF.js → chunk-SDGV76HF.js} +2 -2
- package/dist/{chunk-ATJ2W7DC.js → chunk-SGK3PTTM.js} +281 -121
- package/dist/{chunk-3II44CUJ.js → chunk-TWVUYS63.js} +24 -24
- package/dist/{chunk-2WBH5HUY.js → chunk-U5M7T6CI.js} +7 -7
- package/dist/{chunk-6X3MY2JP.js → chunk-UYFUIHH3.js} +2 -2
- package/dist/{chunk-IMELQ2I6.js → chunk-V7MBRUK6.js} +3 -3
- package/dist/{chunk-NDWVJ2QZ.js → chunk-VAGSKUWC.js} +3 -3
- package/dist/{chunk-WBH4KJWM.js → chunk-VIJ5D3RC.js} +3 -3
- package/dist/{chunk-ITC2R2OT.js → chunk-VNDR2T35.js} +7 -7
- package/dist/{chunk-IXFJORNH.js → chunk-WNCW2RNB.js} +4 -4
- package/dist/{chunk-BTVUYHWV.js → chunk-WUEPP5HD.js} +4 -4
- package/dist/{local-engine-command-RYLGMQ2O.js → chunk-YCUDOF6Q.js} +22 -77
- package/dist/{chunk-YGLMRH5U.js → chunk-YH2JVJAO.js} +12 -12
- package/dist/{chunk-PFBXSVZF.js → chunk-ZGLNHA7T.js} +7 -7
- package/dist/{chunk-CCU5CCRX.js → chunk-ZJOAWRED.js} +8 -8
- package/dist/{chunk-FU3VCE5A.js → chunk-ZXRDD3Q2.js} +13 -9
- package/dist/cli.d.ts +25 -4
- package/dist/cli.js +45 -42
- package/dist/{codegen-command-R5IASBFC.js → codegen-command-T7TC7PQO.js} +58 -57
- package/dist/{commands-H7CPMMHH.js → commands-JDENTDJS.js} +2 -2
- package/dist/{completion-W5ZAI6TN.js → completion-YFD5OVJW.js} +8 -4
- package/dist/{config-MZ5KG4EP.js → config-YJFUTRJW.js} +7 -7
- package/dist/{deploy-command-34T2LKQ5.js → deploy-command-OEVEE6UG.js} +50 -49
- package/dist/{deploy-source-YLQ7WMYR.js → deploy-source-HYVZEYXV.js} +33 -32
- package/dist/{dev-env-sync-TMJTNU3U.js → dev-env-sync-EFDCJ6KU.js} +48 -47
- package/dist/{display-name-hint-ZJGFNJKQ.js → display-name-hint-SW3GB3V7.js} +13 -12
- package/dist/{emit-D125xxty.d.ts → emit-Dov_92kn.d.ts} +1 -1
- package/dist/{env-example-refresh-CQP3ZMKM.js → env-example-refresh-WNSOH534.js} +59 -58
- package/dist/{env-pull-command-UTG6IC2K.js → env-pull-command-UYEXMQ3P.js} +43 -42
- package/dist/{env-target-FZROWYFS.js → env-target-JBSLBKNX.js} +12 -11
- package/dist/{env-var-command-VYDBQJJW.js → env-var-command-BJNRAXNV.js} +49 -48
- package/dist/{ephemeral-BIE6FMJV.js → ephemeral-CEOGMIEA.js} +10 -9
- package/dist/{ephemeral-command-OZ26RGXF.js → ephemeral-command-IPSGBCS5.js} +61 -60
- package/dist/{ephemeral-state-SNZOX2YK.js → ephemeral-state-MTBASPRS.js} +10 -9
- package/dist/{generate-command-4HR7MR36.js → generate-command-XQXODBS6.js} +73 -71
- package/dist/{gitignore-EWQBXNX2.js → gitignore-RUVCIZO4.js} +18 -18
- package/dist/{impersonate-command-WC7OGKUM.js → impersonate-command-MA27O7S5.js} +41 -40
- package/dist/{import-7Z4GCCPO.js → import-XKRFHABE.js} +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/{init-command-HAO3WXH3.js → init-command-6RDTCMAB.js} +61 -46
- package/dist/{init-modules-NSKD4ASY.js → init-modules-DHTBOCQT.js} +7 -7
- package/dist/{init-web-MKFFOQUU.js → init-web-ELBXSXDL.js} +2 -2
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +1 -1
- package/dist/{keep-data-merge-QR2TMKEO.js → keep-data-merge-TDJOIAVT.js} +23 -23
- package/dist/{lambda-config-reconcile-7FJXXV6V.js → lambda-config-reconcile-47X5C2E4.js} +6 -5
- package/dist/{landing-record-MWXFIRCP.js → landing-record-TPPYFQAS.js} +21 -21
- package/dist/{local-engine-choice-VD5LNXJU.js → local-engine-choice-S6VHPJRU.js} +36 -35
- package/dist/local-engine-command-4EZCGZ6M.js +85 -0
- package/dist/{local-engine-config-W3KB7RWM.js → local-engine-config-2EBL3QKA.js} +3 -2
- package/dist/{local-engine-deploy-6O7NKZCA.js → local-engine-deploy-FOPNWU7X.js} +17 -15
- package/dist/local-engine-lookup-GM3E3NPP.js +43 -0
- package/dist/local-engine-mcp-bridge-QKZHUGW3.js +423 -0
- package/dist/local-engine-mcp-command-BFQVLXZC.js +181 -0
- package/dist/{local-engine-process-ZLLZEIRF.js → local-engine-process-XUQPQENQ.js} +11 -8
- package/dist/{local-engine-state-OCW5YDD7.js → local-engine-state-JQPKGB65.js} +4 -3
- package/dist/{local-engine-update-check-LVX4HBBI.js → local-engine-update-check-S7UF6ZF5.js} +6 -5
- package/dist/{lock-commands-X2OECR4R.js → lock-commands-HJ6Y5QVS.js} +51 -50
- package/dist/{login-command-RLLKD565.js → login-command-JO55NZAS.js} +32 -32
- package/dist/{logout-command-XDMSXCDO.js → logout-command-MPRIRSJA.js} +15 -14
- package/dist/{marketplace-command-2NHHY2X3.js → marketplace-command-BM6G257N.js} +33 -33
- package/dist/{marketplace-resolve-OTZYT4FG.js → marketplace-resolve-AWH3RG57.js} +5 -5
- package/dist/{meta-client-TMHVBZFY.js → meta-client-AOSWODQQ.js} +13 -12
- package/dist/{module-manifest-FNMW23IX.js → module-manifest-GXI46PEF.js} +3 -3
- package/dist/node.d.ts +4 -4
- package/dist/node.js +50 -49
- package/dist/{operation-outcome-RN62735X.js → operation-outcome-4UKPXTNC.js} +25 -23
- package/dist/{output-target-MOLCTPBP.js → output-target-RAZ4KN5J.js} +19 -19
- package/dist/{plan-disclosure-CY7AF6KP.js → plan-disclosure-JR52DWXN.js} +13 -12
- package/dist/{plugin-contributions-WR26U7NT.js → plugin-contributions-E6XHLQWK.js} +5 -5
- package/dist/{plugin-prompt-ZUYQQIX4.js → plugin-prompt-IODX5EU6.js} +4 -4
- package/dist/{plugin-questions-HAZOQ67R.js → plugin-questions-AAAJ7POP.js} +3 -3
- package/dist/{preflight-command-OHJXYND3.js → preflight-command-7GKJBWOQ.js} +52 -51
- package/dist/{profile-command-6JWT2BTL.js → profile-command-CM6J7E2M.js} +33 -33
- package/dist/{profile-pointer-PDA5XBIB.js → profile-pointer-KTYXL6FU.js} +4 -3
- package/dist/{project-dependency-GZWWGWEW.js → project-dependency-OQ5575QQ.js} +6 -6
- package/dist/{project-sdk-3W72H5QO.js → project-sdk-2ESHHZVL.js} +3 -3
- package/dist/{promote-command-UYAMUXKB.js → promote-command-BDRPG6UU.js} +68 -67
- package/dist/{prompt-U37K5RPQ.js → prompt-MQPGU4ZI.js} +3 -3
- package/dist/{publish-command-BUS27HGB.js → publish-command-IEMYZ7LF.js} +55 -54
- package/dist/{pull-command-ZGUNP27P.js → pull-command-S5E2ABZ4.js} +61 -60
- package/dist/{pull-superseded-EZBGYRZF.js → pull-superseded-E34BZVLH.js} +3 -3
- package/dist/{release-command-BQ6OHS3P.js → release-command-7F5TBKO2.js} +58 -57
- package/dist/{release-ns-command-ATGVBVIU.js → release-ns-command-EK2ZQ4CC.js} +84 -83
- package/dist/{retry-command-QJ57WVW7.js → retry-command-GL5HCMVB.js} +9 -8
- package/dist/{routes-manifest-file-UALYSZLY.js → routes-manifest-file-LCIKPDAG.js} +5 -5
- package/dist/scaffold.js +4 -4
- package/dist/secrets-IV4N5HYI.js +20 -0
- package/dist/{secrets-file-LMS7KX3E.js → secrets-file-LXREYU3M.js} +18 -18
- package/dist/{secrets-fill-command-QNBDGCGM.js → secrets-fill-command-QHZS3KWM.js} +49 -48
- package/dist/{seed-SZ6OS5DQ.js → seed-FRKMDN2Z.js} +4 -4
- package/dist/{source-resolve-MKLNYFWG.js → source-resolve-BBHYTOXI.js} +23 -21
- package/dist/{static-host-ONEHA4LI.js → static-host-7LC7OZR4.js} +4 -4
- package/dist/{status-command-XKIFKBGM.js → status-command-TY253MJT.js} +52 -51
- package/dist/{store-Bg4Na6Sm.d.ts → store-Boba9OOh.d.ts} +1 -1
- package/dist/{store-X6ZH7EC3.js → store-VJ3OS6VO.js} +7 -6
- package/dist/{sync-contributions-HNVHDIQW.js → sync-contributions-63542VE4.js} +9 -9
- package/dist/{sync-record-PRXHLK4S.js → sync-record-RGHK7EAL.js} +13 -12
- package/dist/{table-DC36QA4Y.js → table-OAYGFGEN.js} +5 -5
- package/dist/{tables-command-UQLKTELN.js → tables-command-PZIVDAH3.js} +38 -37
- package/dist/{tenant-EKNQGG5A.js → tenant-Y3II4VY3.js} +11 -10
- package/dist/{tenant-command-2LWP2MPB.js → tenant-command-G6XON7CF.js} +86 -85
- package/dist/{test-command-IU5MBBXY.js → test-command-3FZOX7O3.js} +41 -40
- package/dist/{tests-RG2Y5EQ4.js → tests-KF6N6BZ7.js} +5 -5
- package/dist/{token-7AWSJLKO.js → token-DJJUW5HY.js} +11 -10
- package/dist/{toolchain-hooks-4ZMQLBPQ.js → toolchain-hooks-7PWCFLSU.js} +4 -4
- package/dist/{toolchain-modules-VU7SURVJ.js → toolchain-modules-OTNSKK52.js} +4 -4
- package/dist/{toolchain-peers-CIDNEEQV.js → toolchain-peers-KQ7TQ2AR.js} +7 -7
- package/dist/{tracked-backend-4BHSV7NC.js → tracked-backend-AJCGTO5Y.js} +36 -35
- package/dist/{update-check-A7FXIINW.js → update-check-4E5L6GAW.js} +46 -45
- package/dist/{upgrade-command-C5KBITFI.js → upgrade-command-BXMSQN4C.js} +52 -49
- package/dist/{whoami-command-7WQII2H4.js → whoami-command-NLCCIEUM.js} +14 -13
- package/dist/{workspace-Z46PUZNI.js → workspace-PNMJOXE4.js} +4 -4
- package/dist/{workspace-binding-JE6YNDZJ.js → workspace-binding-J5GWDFRI.js} +13 -12
- package/dist/{workspace-command-FC4IMLAE.js → workspace-command-MHIIY352.js} +79 -78
- package/dist/{workspace-env-N4ZPFT6A.js → workspace-env-LLRWCHSA.js} +15 -15
- package/dist/{workspace-export-3A5BZTPS.js → workspace-export-BIKAYHWJ.js} +4 -4
- package/dist/{writable-D7KCZI5N.js → writable-UOTO4WWC.js} +3 -3
- package/dist/{xanosdk-import-P2A2KSXM.js → xanosdk-import-S7A3CVBN.js} +5 -5
- package/dist/{xanosdk-project-6AGMW2SL.js → xanosdk-project-J4VCFRHP.js} +15 -15
- package/guides/README.md +2 -2
- package/guides/cli.md +69 -0
- package/guides/codegen.md +23 -5
- package/guides/codes.md +1 -0
- package/guides/coverage.md +5 -0
- package/guides/deploying.md +28 -0
- package/guides/scaffold.md +61 -10
- package/llms-full.txt +1 -1
- package/llms.txt +1 -1
- package/manifest.json +63 -5
- package/package.json +5 -2
- package/skills/xano-backend/SKILL.md +119 -0
- package/dist/chunk-LL7SGTRC.js +0 -663
- package/dist/chunk-M6ZFSTIZ.js +0 -630
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertOneName,
|
|
3
3
|
noteRunArgs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VIJ5D3RC.js";
|
|
5
5
|
import {
|
|
6
6
|
WORKSPACE_ENV_FILE,
|
|
7
7
|
classifyEnv,
|
|
@@ -10,40 +10,53 @@ import {
|
|
|
10
10
|
namesInEnvExample,
|
|
11
11
|
parseEnvFile,
|
|
12
12
|
readWorkspaceEnvFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PV25BDCH.js";
|
|
14
14
|
import {
|
|
15
15
|
readTrackedBackend
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B2URJBC4.js";
|
|
17
|
+
import {
|
|
18
|
+
isExpired
|
|
19
|
+
} from "./chunk-AKERAUNH.js";
|
|
20
|
+
import {
|
|
21
|
+
readLockFile,
|
|
22
|
+
readLockFileReport,
|
|
23
|
+
writeLockFile
|
|
24
|
+
} from "./chunk-CJDPSCMX.js";
|
|
17
25
|
import {
|
|
18
26
|
isCI
|
|
19
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZXRDD3Q2.js";
|
|
20
28
|
import {
|
|
21
29
|
backendSlotForFlag,
|
|
22
30
|
slotValueMissing
|
|
23
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PY722CHR.js";
|
|
24
32
|
import {
|
|
25
33
|
defaultWorkspaceSecretsPath,
|
|
26
34
|
readSecretsFile
|
|
27
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZGLNHA7T.js";
|
|
28
36
|
import {
|
|
29
37
|
allLandings,
|
|
30
38
|
getEnvironment,
|
|
31
39
|
readEphemeralState
|
|
32
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ORGNLQN6.js";
|
|
33
41
|
import {
|
|
34
42
|
isUnwritableError,
|
|
35
43
|
unwritableError
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
isExpired
|
|
39
|
-
} from "./chunk-SPKA2LV6.js";
|
|
44
|
+
} from "./chunk-PEX4QZVI.js";
|
|
40
45
|
import {
|
|
41
46
|
contextFlags,
|
|
42
47
|
setHintContext
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3FRGNBOC.js";
|
|
49
|
+
import {
|
|
50
|
+
expandHome
|
|
51
|
+
} from "./chunk-EUUUMY7J.js";
|
|
44
52
|
import {
|
|
45
53
|
shellWord
|
|
46
54
|
} from "./chunk-FWD7AL6N.js";
|
|
55
|
+
import {
|
|
56
|
+
inCredentialScope,
|
|
57
|
+
lastResolvedAuth,
|
|
58
|
+
pinnedWorkspaceMissed
|
|
59
|
+
} from "./chunk-L6HZ67P6.js";
|
|
47
60
|
import {
|
|
48
61
|
buildSeedContentFiles,
|
|
49
62
|
collectNonPublicSeedValues,
|
|
@@ -51,32 +64,20 @@ import {
|
|
|
51
64
|
hostedFileResolver,
|
|
52
65
|
isMissingFile,
|
|
53
66
|
registerSeedHostedFiles
|
|
54
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FDTET7FZ.js";
|
|
55
68
|
import {
|
|
69
|
+
holdsProjectManifest,
|
|
56
70
|
projectRootFrom
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import {
|
|
59
|
-
readLockFile,
|
|
60
|
-
readLockFileReport,
|
|
61
|
-
writeLockFile
|
|
62
|
-
} from "./chunk-CJDPSCMX.js";
|
|
63
|
-
import {
|
|
64
|
-
writeData
|
|
65
|
-
} from "./chunk-AWQ7BQTQ.js";
|
|
66
|
-
import {
|
|
67
|
-
expandHome
|
|
68
|
-
} from "./chunk-EUUUMY7J.js";
|
|
69
|
-
import {
|
|
70
|
-
inCredentialScope,
|
|
71
|
-
lastResolvedAuth,
|
|
72
|
-
pinnedWorkspaceMissed
|
|
73
|
-
} from "./chunk-YR2I5HGE.js";
|
|
71
|
+
} from "./chunk-HU7F56VF.js";
|
|
74
72
|
import {
|
|
75
73
|
assertValidProfileName
|
|
76
74
|
} from "./chunk-MF4W6FHU.js";
|
|
77
75
|
import {
|
|
78
76
|
readEnvVar
|
|
79
77
|
} from "./chunk-X2NL4KUO.js";
|
|
78
|
+
import {
|
|
79
|
+
writeData
|
|
80
|
+
} from "./chunk-4GPIOIAC.js";
|
|
80
81
|
import {
|
|
81
82
|
bundleCapabilities
|
|
82
83
|
} from "./chunk-7REDHC4N.js";
|
|
@@ -134,7 +135,7 @@ import {
|
|
|
134
135
|
warn,
|
|
135
136
|
withCliPrefix,
|
|
136
137
|
writeJson
|
|
137
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-CH23ONYG.js";
|
|
138
139
|
import {
|
|
139
140
|
KNOWLEDGE_DIR,
|
|
140
141
|
KNOWLEDGE_FILE,
|
|
@@ -1333,7 +1334,8 @@ var NOUN_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
1333
1334
|
"marketplace",
|
|
1334
1335
|
"test",
|
|
1335
1336
|
"release",
|
|
1336
|
-
"tenant"
|
|
1337
|
+
"tenant",
|
|
1338
|
+
"agent-skill"
|
|
1337
1339
|
]);
|
|
1338
1340
|
function helpTargetFor(command, subcommand) {
|
|
1339
1341
|
if (command === void 0 || !isCommand(command)) return void 0;
|
|
@@ -1475,6 +1477,8 @@ function parseArgs(argv) {
|
|
|
1475
1477
|
let paste = false;
|
|
1476
1478
|
let allWorkspaces = false;
|
|
1477
1479
|
let guest = false;
|
|
1480
|
+
let stdio = false;
|
|
1481
|
+
let project;
|
|
1478
1482
|
let urlOnly = false;
|
|
1479
1483
|
let prompt = false;
|
|
1480
1484
|
let port;
|
|
@@ -1509,6 +1513,7 @@ function parseArgs(argv) {
|
|
|
1509
1513
|
let report;
|
|
1510
1514
|
let noDevEnv = false;
|
|
1511
1515
|
let dryRun = false;
|
|
1516
|
+
const agent = [];
|
|
1512
1517
|
let prune = false;
|
|
1513
1518
|
let resetData = false;
|
|
1514
1519
|
let seed = false;
|
|
@@ -1784,6 +1789,12 @@ function parseArgs(argv) {
|
|
|
1784
1789
|
engineVersion = value;
|
|
1785
1790
|
} else if (arg === "--all") {
|
|
1786
1791
|
all = true;
|
|
1792
|
+
} else if (arg === "--stdio") {
|
|
1793
|
+
stdio = true;
|
|
1794
|
+
} else if (arg === "--project") {
|
|
1795
|
+
project = requireValue(arg);
|
|
1796
|
+
} else if (arg.startsWith("--project=")) {
|
|
1797
|
+
project = attachedValue(arg, "--project=");
|
|
1787
1798
|
} else if (arg === "--all-workspaces") {
|
|
1788
1799
|
allWorkspaces = true;
|
|
1789
1800
|
} else if (arg === "--guest" || arg === "-g") {
|
|
@@ -1900,6 +1911,8 @@ function parseArgs(argv) {
|
|
|
1900
1911
|
requireMicroservices = true;
|
|
1901
1912
|
} else if (arg === "--dry-run") {
|
|
1902
1913
|
dryRun = true;
|
|
1914
|
+
} else if (arg === "--agent" || arg.startsWith("--agent=")) {
|
|
1915
|
+
agent.push(arg === "--agent" ? requireValue(arg) : attachedValue(arg, "--agent="));
|
|
1903
1916
|
} else if (arg === "--prune") {
|
|
1904
1917
|
prune = true;
|
|
1905
1918
|
} else if (arg === "--reset-data") {
|
|
@@ -2119,6 +2132,26 @@ function parseArgs(argv) {
|
|
|
2119
2132
|
"it takes no engine version. `xanosdk --version` (as the first argument) prints the CLI's own."
|
|
2120
2133
|
);
|
|
2121
2134
|
}
|
|
2135
|
+
if (stdio) {
|
|
2136
|
+
refuseUnlessDeclared(
|
|
2137
|
+
"stdio",
|
|
2138
|
+
"--stdio",
|
|
2139
|
+
"only `xanosdk local mcp --stdio` runs as an MCP server, the one a coding agent launches."
|
|
2140
|
+
);
|
|
2141
|
+
if (json) {
|
|
2142
|
+
throw new UsageError(
|
|
2143
|
+
"`--stdio` and `--json` ask for different things on stdout: `--stdio` speaks MCP to a coding agent, `--json` prints the connection details once. Drop one.",
|
|
2144
|
+
{ helpFor: helpTargetFor(command, subcommand) }
|
|
2145
|
+
);
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
if (project !== void 0) {
|
|
2149
|
+
refuseUnlessDeclared(
|
|
2150
|
+
"project",
|
|
2151
|
+
"--project",
|
|
2152
|
+
"only `xanosdk local mcp` takes it, for an agent that launches the bridge outside the project."
|
|
2153
|
+
);
|
|
2154
|
+
}
|
|
2122
2155
|
if (all) {
|
|
2123
2156
|
refuseUnlessDeclared(
|
|
2124
2157
|
"all",
|
|
@@ -2301,6 +2334,8 @@ function parseArgs(argv) {
|
|
|
2301
2334
|
paste,
|
|
2302
2335
|
allWorkspaces,
|
|
2303
2336
|
guest,
|
|
2337
|
+
stdio,
|
|
2338
|
+
project,
|
|
2304
2339
|
urlOnly,
|
|
2305
2340
|
prompt,
|
|
2306
2341
|
port,
|
|
@@ -2333,6 +2368,7 @@ function parseArgs(argv) {
|
|
|
2333
2368
|
report,
|
|
2334
2369
|
noDevEnv,
|
|
2335
2370
|
dryRun,
|
|
2371
|
+
agent,
|
|
2336
2372
|
prune,
|
|
2337
2373
|
resetData,
|
|
2338
2374
|
seed,
|
|
@@ -2414,13 +2450,24 @@ function parseExpiresHours(raw) {
|
|
|
2414
2450
|
}
|
|
2415
2451
|
async function importTsxApi(file) {
|
|
2416
2452
|
try {
|
|
2417
|
-
const
|
|
2418
|
-
const apiPath = requireFromEntry.resolve("tsx/esm/api");
|
|
2453
|
+
const apiPath = tsxEsmApiPath(pathToFileURL2(resolve2(file)).href);
|
|
2419
2454
|
return await import(pathToFileURL2(apiPath).href);
|
|
2420
2455
|
} catch {
|
|
2421
2456
|
return await import("tsx/esm/api");
|
|
2422
2457
|
}
|
|
2423
2458
|
}
|
|
2459
|
+
function tsxEsmApiPath(from) {
|
|
2460
|
+
const req = createRequire2(from);
|
|
2461
|
+
const manifest = req.resolve("tsx/package.json");
|
|
2462
|
+
try {
|
|
2463
|
+
const pkg = JSON.parse(readFileSync3(manifest, "utf8"));
|
|
2464
|
+
const api = pkg.exports?.["./esm/api"];
|
|
2465
|
+
const entry = typeof api?.import === "string" ? api.import : api?.import?.default;
|
|
2466
|
+
if (typeof entry === "string") return join2(dirname2(manifest), entry);
|
|
2467
|
+
} catch {
|
|
2468
|
+
}
|
|
2469
|
+
return req.resolve("tsx/esm/api");
|
|
2470
|
+
}
|
|
2424
2471
|
async function tryImportTsxApi(file) {
|
|
2425
2472
|
try {
|
|
2426
2473
|
return await importTsxApi(file);
|
|
@@ -2489,7 +2536,7 @@ async function tsxRemedy(file) {
|
|
|
2489
2536
|
const fallback = `Install it in your project (\`npm i -D tsx\`) or precompile the file to .js first.`;
|
|
2490
2537
|
for (let dir = dirname2(resolve2(file)); ; dir = dirname2(dir)) {
|
|
2491
2538
|
const manifest = join2(dir, "package.json");
|
|
2492
|
-
if (
|
|
2539
|
+
if (holdsProjectManifest(dir)) {
|
|
2493
2540
|
let pkg;
|
|
2494
2541
|
try {
|
|
2495
2542
|
pkg = JSON.parse(readFileSync3(manifest, "utf8"));
|
|
@@ -2501,7 +2548,7 @@ async function tsxRemedy(file) {
|
|
|
2501
2548
|
);
|
|
2502
2549
|
if (!declared) return fallback;
|
|
2503
2550
|
const { detectPackageManager } = await import("./package-manager-K762W7XT.js");
|
|
2504
|
-
const { inProject } = await import("./init-modules-
|
|
2551
|
+
const { inProject } = await import("./init-modules-DHTBOCQT.js");
|
|
2505
2552
|
return `This project's package.json declares it, but its dependencies are not installed \u2014 run \`${inProject(dir)}${detectPackageManager(dir)} install\` first.`;
|
|
2506
2553
|
}
|
|
2507
2554
|
if (dirname2(dir) === dir) return fallback;
|
|
@@ -2510,7 +2557,7 @@ async function tsxRemedy(file) {
|
|
|
2510
2557
|
function hasPackageJsonAbove(file) {
|
|
2511
2558
|
let dir = dirname2(resolve2(file));
|
|
2512
2559
|
for (; ; ) {
|
|
2513
|
-
if (
|
|
2560
|
+
if (holdsProjectManifest(dir)) return true;
|
|
2514
2561
|
const parent = dirname2(dir);
|
|
2515
2562
|
if (parent === dir) return false;
|
|
2516
2563
|
dir = parent;
|
|
@@ -3122,7 +3169,7 @@ async function explainUnreachableWorkspace(err) {
|
|
|
3122
3169
|
let verdict = unreachableVerdicts.get(auth);
|
|
3123
3170
|
if (verdict === void 0) {
|
|
3124
3171
|
verdict = (async () => {
|
|
3125
|
-
const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-
|
|
3172
|
+
const { readReachableWorkspaces, unreachableWorkspaceMessage } = await import("./workspace-binding-J5GWDFRI.js");
|
|
3126
3173
|
const all = await readReachableWorkspaces(auth, 15e3);
|
|
3127
3174
|
if (all === void 0 || all.length === 0 || all.some((w) => w.id === auth.workspaceId)) return void 0;
|
|
3128
3175
|
return new UsageError(unreachableWorkspaceMessage(auth, all));
|
|
@@ -3136,7 +3183,7 @@ async function explainRejectedCredential(err) {
|
|
|
3136
3183
|
if (!(err instanceof Error) || resolved === void 0) return err;
|
|
3137
3184
|
const [first = "", ...rest] = err.message.split("\n");
|
|
3138
3185
|
if (!/\(401\b[^)]*\)|\banswered (HTTP )?401\b/.test(first) || /\brejected\b/.test(err.message)) return err;
|
|
3139
|
-
const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-
|
|
3186
|
+
const { asRejectedCredential, rejectedRemedy } = await import("./whoami-command-NLCCIEUM.js");
|
|
3140
3187
|
const { auth, args } = resolved;
|
|
3141
3188
|
err.message = [first, rejectedRemedy(auth, args), ...rest].join("\n");
|
|
3142
3189
|
if (failureCode(err) === "SDK_ERROR") asRejectedCredential(err, auth, args);
|
|
@@ -3174,10 +3221,10 @@ function withoutSecretValue(args) {
|
|
|
3174
3221
|
}
|
|
3175
3222
|
async function nameLookupRerun(failure) {
|
|
3176
3223
|
if (!(failure instanceof Error) || runArgs?.argv === void 0) return failure;
|
|
3177
|
-
const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-
|
|
3224
|
+
const { LookupFailedError, rateLimitedFailure } = await import("./source-resolve-BBHYTOXI.js");
|
|
3178
3225
|
const err = rateLimitedFailure(failure);
|
|
3179
3226
|
if (!(err instanceof LookupFailedError)) return err;
|
|
3180
|
-
const { retryCommand, withheldNote } = await import("./deploy-command-
|
|
3227
|
+
const { retryCommand, withheldNote } = await import("./deploy-command-OEVEE6UG.js");
|
|
3181
3228
|
if (runArgs.command === "env" && runArgs.subcommand === "set") {
|
|
3182
3229
|
const retry2 = retryCommand(withoutSecretValue(runArgs));
|
|
3183
3230
|
return err.withRerun(
|
|
@@ -3223,7 +3270,7 @@ var PATHLESS_VERBS = {
|
|
|
3223
3270
|
ephemeral: /* @__PURE__ */ new Set(["list", "get", "delete"]),
|
|
3224
3271
|
tenant: /* @__PURE__ */ new Set(["list", "get", "delete", "details"]),
|
|
3225
3272
|
release: /* @__PURE__ */ new Set(["list", "show", "delete"]),
|
|
3226
|
-
"local": /* @__PURE__ */ new Set(["token", "stop"]),
|
|
3273
|
+
"local": /* @__PURE__ */ new Set(["token", "stop", "mcp"]),
|
|
3227
3274
|
test: /* @__PURE__ */ new Set(["list", "run", "run-all"])
|
|
3228
3275
|
};
|
|
3229
3276
|
var PATHLESS_COMMANDS = /* @__PURE__ */ new Set(["tables", "impersonate"]);
|
|
@@ -3232,7 +3279,7 @@ function isPathlessRun(args) {
|
|
|
3232
3279
|
return PATHLESS_COMMANDS.has(command) || PATHLESS_VERBS[command]?.has(args.subcommand ?? "") === true;
|
|
3233
3280
|
}
|
|
3234
3281
|
async function atProjectRoot(args, command, positional) {
|
|
3235
|
-
const { enterProjectRoot } = await import("./xanosdk-project-
|
|
3282
|
+
const { enterProjectRoot } = await import("./xanosdk-project-J4VCFRHP.js");
|
|
3236
3283
|
const entered = enterProjectRoot(args, process.cwd(), positional);
|
|
3237
3284
|
if (entered === void 0) return command(args);
|
|
3238
3285
|
if (isPathlessRun(args)) {
|
|
@@ -3333,7 +3380,7 @@ async function dispatch(rawArgv) {
|
|
|
3333
3380
|
if (typed[0] === "init") {
|
|
3334
3381
|
const web = typed.indexOf("--web", 1);
|
|
3335
3382
|
if (web !== -1) {
|
|
3336
|
-
const { runInitWebCommand } = await import("./init-web-
|
|
3383
|
+
const { runInitWebCommand } = await import("./init-web-ELBXSXDL.js");
|
|
3337
3384
|
return runInitWebCommand([...typed.slice(1, web), ...typed.slice(web + 1)]);
|
|
3338
3385
|
}
|
|
3339
3386
|
}
|
|
@@ -3351,7 +3398,7 @@ async function dispatch(rawArgv) {
|
|
|
3351
3398
|
throw unknownSubcommand(helpRequest.command, helpRequest.unknownSubcommand, helpRequest.positionals ?? []);
|
|
3352
3399
|
}
|
|
3353
3400
|
if (argv.includes("--json")) {
|
|
3354
|
-
const { helpDocument } = await import("./commands-
|
|
3401
|
+
const { helpDocument } = await import("./commands-JDENTDJS.js");
|
|
3355
3402
|
writeJson({ version: readVersion(), ...helpDocument(helpRequest) });
|
|
3356
3403
|
return;
|
|
3357
3404
|
}
|
|
@@ -3372,7 +3419,7 @@ async function dispatch(rawArgv) {
|
|
|
3372
3419
|
setHintContext(args);
|
|
3373
3420
|
runArgs = args;
|
|
3374
3421
|
noteRunArgs(args);
|
|
3375
|
-
if (isMachineOutput(args)) (await import("./update-check-
|
|
3422
|
+
if (isMachineOutput(args)) (await import("./update-check-4E5L6GAW.js")).routeUpdateNoticeToDocument();
|
|
3376
3423
|
const { command } = args;
|
|
3377
3424
|
const out = args.out === "-" ? void 0 : args.out;
|
|
3378
3425
|
if (command === void 0) {
|
|
@@ -3393,11 +3440,11 @@ async function dispatch(rawArgv) {
|
|
|
3393
3440
|
return;
|
|
3394
3441
|
}
|
|
3395
3442
|
if (command === "init") {
|
|
3396
|
-
const { runInitCommand } = await import("./init-command-
|
|
3443
|
+
const { runInitCommand } = await import("./init-command-6RDTCMAB.js");
|
|
3397
3444
|
return runInitCommand(args);
|
|
3398
3445
|
}
|
|
3399
3446
|
if (command === "completion") {
|
|
3400
|
-
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-
|
|
3447
|
+
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS, UNSUPPORTED_SHELLS } = await import("./completion-YFD5OVJW.js");
|
|
3401
3448
|
const shell = args.positionals[0];
|
|
3402
3449
|
if (shell === void 0) throw missingArgument("shell", { command: "completion" });
|
|
3403
3450
|
if (!isCompletionShell(shell)) {
|
|
@@ -3415,112 +3462,116 @@ async function dispatch(rawArgv) {
|
|
|
3415
3462
|
}
|
|
3416
3463
|
return runCompletionCommand(shell);
|
|
3417
3464
|
}
|
|
3465
|
+
if (command === "agent-skill") {
|
|
3466
|
+
const { runAgentSkillCommand } = await import("./agent-skill-command-37DFYS7Q.js");
|
|
3467
|
+
return runAgentSkillCommand(args);
|
|
3468
|
+
}
|
|
3418
3469
|
if (command === "upgrade") {
|
|
3419
|
-
const { runUpgradeCommand } = await import("./upgrade-command-
|
|
3470
|
+
const { runUpgradeCommand } = await import("./upgrade-command-BXMSQN4C.js");
|
|
3420
3471
|
return runUpgradeCommand(args);
|
|
3421
3472
|
}
|
|
3422
3473
|
if (command === "lock") {
|
|
3423
|
-
const { runLockCommand } = await import("./lock-commands-
|
|
3474
|
+
const { runLockCommand } = await import("./lock-commands-HJ6Y5QVS.js");
|
|
3424
3475
|
const verb = args.positionals[0];
|
|
3425
|
-
const { isProjectDir } = await import("./xanosdk-project-
|
|
3476
|
+
const { isProjectDir } = await import("./xanosdk-project-J4VCFRHP.js");
|
|
3426
3477
|
const here = verb !== "prune" && args.lockPath === void 0 && args.entryPath === void 0 && existsSync2("xano.lock") && !isProjectDir(process.cwd()) ? { ...args, lockPath: "xano.lock" } : args;
|
|
3427
3478
|
return atProjectRoot(here, runLockCommand, verb === "prune" || verb === "import" ? "verb-path" : void 0);
|
|
3428
3479
|
}
|
|
3429
3480
|
if (command === "login") {
|
|
3430
|
-
const { runLoginCommand } = await import("./login-command-
|
|
3481
|
+
const { runLoginCommand } = await import("./login-command-JO55NZAS.js");
|
|
3431
3482
|
return runLoginCommand(args);
|
|
3432
3483
|
}
|
|
3433
3484
|
if (command === "logout") {
|
|
3434
|
-
const { runLogoutCommand } = await import("./logout-command-
|
|
3485
|
+
const { runLogoutCommand } = await import("./logout-command-MPRIRSJA.js");
|
|
3435
3486
|
return runLogoutCommand(args);
|
|
3436
3487
|
}
|
|
3437
3488
|
if (command === "deploy") {
|
|
3438
|
-
const { runDeployCommand } = await import("./deploy-command-
|
|
3489
|
+
const { runDeployCommand } = await import("./deploy-command-OEVEE6UG.js");
|
|
3439
3490
|
return atProjectRoot(args, runDeployCommand, entryPositional(args));
|
|
3440
3491
|
}
|
|
3441
3492
|
if (command === "ephemeral") {
|
|
3442
|
-
const { runEphemeralCommand } = await import("./ephemeral-command-
|
|
3493
|
+
const { runEphemeralCommand } = await import("./ephemeral-command-IPSGBCS5.js");
|
|
3443
3494
|
return atProjectRoot(args, runEphemeralCommand);
|
|
3444
3495
|
}
|
|
3445
3496
|
if (command === "local") {
|
|
3446
|
-
const { runLocalEngineCommand } = await import("./local-engine-command-
|
|
3447
|
-
const
|
|
3448
|
-
return
|
|
3497
|
+
const { runLocalEngineCommand } = await import("./local-engine-command-4EZCGZ6M.js");
|
|
3498
|
+
const readsProject = ["token", "stop", "update", "mcp"].includes(args.subcommand ?? "");
|
|
3499
|
+
return readsProject ? atProjectRoot(args, runLocalEngineCommand) : runLocalEngineCommand(args);
|
|
3449
3500
|
}
|
|
3450
3501
|
if (command === "env") {
|
|
3451
3502
|
if (args.subcommand === "set" || args.subcommand === "unset") {
|
|
3452
|
-
const { runEnvVarCommand } = await import("./env-var-command-
|
|
3503
|
+
const { runEnvVarCommand } = await import("./env-var-command-BJNRAXNV.js");
|
|
3453
3504
|
return atProjectRoot(args, (a) => runEnvVarCommand(a, args.subcommand));
|
|
3454
3505
|
}
|
|
3455
3506
|
if (args.subcommand !== "pull") throw unknownSubcommand("env", args.subcommand);
|
|
3456
|
-
const { runEnvPullCommand } = await import("./env-pull-command-
|
|
3507
|
+
const { runEnvPullCommand } = await import("./env-pull-command-UYEXMQ3P.js");
|
|
3457
3508
|
return atProjectRoot(args, runEnvPullCommand);
|
|
3458
3509
|
}
|
|
3459
3510
|
if (command === "secrets") {
|
|
3460
3511
|
if (args.subcommand !== "fill") throw unknownSubcommand("secrets", args.subcommand);
|
|
3461
|
-
const { runSecretsFillCommand } = await import("./secrets-fill-command-
|
|
3512
|
+
const { runSecretsFillCommand } = await import("./secrets-fill-command-QHZS3KWM.js");
|
|
3462
3513
|
return atProjectRoot(args, runSecretsFillCommand, entryPositional(args));
|
|
3463
3514
|
}
|
|
3464
3515
|
if (command === "release") {
|
|
3465
|
-
const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-
|
|
3516
|
+
const { runReleaseCommand: runReleaseNs } = await import("./release-ns-command-EK2ZQ4CC.js");
|
|
3466
3517
|
return atProjectRoot(args, runReleaseNs);
|
|
3467
3518
|
}
|
|
3468
3519
|
if (command === "pull") {
|
|
3469
|
-
const { runPullCommand } = await import("./pull-command-
|
|
3520
|
+
const { runPullCommand } = await import("./pull-command-S5E2ABZ4.js");
|
|
3470
3521
|
const first = args.positionals[0];
|
|
3471
3522
|
const file = first !== void 0 && !isKindShaped(first) && (/\.json$/i.test(first) || /[\\/]/.test(first));
|
|
3472
3523
|
return file ? runPullCommand(args) : atProjectRoot(args, runPullCommand);
|
|
3473
3524
|
}
|
|
3474
3525
|
if (command === "generate") {
|
|
3475
|
-
const { runGenerateCommand } = await import("./generate-command-
|
|
3526
|
+
const { runGenerateCommand } = await import("./generate-command-XQXODBS6.js");
|
|
3476
3527
|
return runGenerateCommand(args);
|
|
3477
3528
|
}
|
|
3478
3529
|
if (command === "tables") {
|
|
3479
|
-
const { runTablesCommand } = await import("./tables-command-
|
|
3530
|
+
const { runTablesCommand } = await import("./tables-command-PZIVDAH3.js");
|
|
3480
3531
|
return atProjectRoot(args, runTablesCommand);
|
|
3481
3532
|
}
|
|
3482
3533
|
if (command === "impersonate") {
|
|
3483
|
-
const { runImpersonateCommand } = await import("./impersonate-command-
|
|
3534
|
+
const { runImpersonateCommand } = await import("./impersonate-command-MA27O7S5.js");
|
|
3484
3535
|
return atProjectRoot(args, runImpersonateCommand);
|
|
3485
3536
|
}
|
|
3486
3537
|
if (command === "promote") {
|
|
3487
|
-
const { runPromoteCommand } = await import("./promote-command-
|
|
3538
|
+
const { runPromoteCommand } = await import("./promote-command-BDRPG6UU.js");
|
|
3488
3539
|
return atProjectRoot(args, runPromoteCommand);
|
|
3489
3540
|
}
|
|
3490
3541
|
if (command === "publish") {
|
|
3491
|
-
const { runPublishCommand } = await import("./publish-command-
|
|
3542
|
+
const { runPublishCommand } = await import("./publish-command-IEMYZ7LF.js");
|
|
3492
3543
|
return atProjectRoot(args, runPublishCommand, "path");
|
|
3493
3544
|
}
|
|
3494
3545
|
if (command === "tenant") {
|
|
3495
|
-
const { runTenantCommand } = await import("./tenant-command-
|
|
3546
|
+
const { runTenantCommand } = await import("./tenant-command-G6XON7CF.js");
|
|
3496
3547
|
return atProjectRoot(args, runTenantCommand);
|
|
3497
3548
|
}
|
|
3498
3549
|
if (command === "test") {
|
|
3499
|
-
const { runTestCommand } = await import("./test-command-
|
|
3550
|
+
const { runTestCommand } = await import("./test-command-3FZOX7O3.js");
|
|
3500
3551
|
return atProjectRoot(args, runTestCommand);
|
|
3501
3552
|
}
|
|
3502
3553
|
if (command === "workspace") {
|
|
3503
|
-
const { runWorkspaceCommand } = await import("./workspace-command-
|
|
3554
|
+
const { runWorkspaceCommand } = await import("./workspace-command-MHIIY352.js");
|
|
3504
3555
|
return runWorkspaceCommand(args);
|
|
3505
3556
|
}
|
|
3506
3557
|
if (command === "status") {
|
|
3507
|
-
const { runStatusCommand } = await import("./status-command-
|
|
3558
|
+
const { runStatusCommand } = await import("./status-command-TY253MJT.js");
|
|
3508
3559
|
return runStatusCommand(args);
|
|
3509
3560
|
}
|
|
3510
3561
|
if (command === "whoami") {
|
|
3511
|
-
const { runWhoamiCommand } = await import("./whoami-command-
|
|
3562
|
+
const { runWhoamiCommand } = await import("./whoami-command-NLCCIEUM.js");
|
|
3512
3563
|
return runWhoamiCommand(args);
|
|
3513
3564
|
}
|
|
3514
3565
|
if (command === "profile") {
|
|
3515
|
-
const { runProfileCommand } = await import("./profile-command-
|
|
3566
|
+
const { runProfileCommand } = await import("./profile-command-CM6J7E2M.js");
|
|
3516
3567
|
return runProfileCommand(args);
|
|
3517
3568
|
}
|
|
3518
3569
|
if (command === "marketplace") {
|
|
3519
3570
|
if (!["list", "search", "details", "install", "reinstall", "remove"].includes(args.subcommand ?? "")) {
|
|
3520
3571
|
throw unknownSubcommand("marketplace", args.subcommand);
|
|
3521
3572
|
}
|
|
3522
|
-
const marketplace = await import("./marketplace-command-
|
|
3523
|
-
const { withCatalogueRerun } = await import("./marketplace-resolve-
|
|
3573
|
+
const marketplace = await import("./marketplace-command-BM6G257N.js");
|
|
3574
|
+
const { withCatalogueRerun } = await import("./marketplace-resolve-AWH3RG57.js");
|
|
3524
3575
|
try {
|
|
3525
3576
|
if (args.subcommand === "list") return await marketplace.runMarketplaceListCommand(args);
|
|
3526
3577
|
if (args.subcommand === "search") return await marketplace.runMarketplaceSearchCommand(args);
|
|
@@ -3533,7 +3584,7 @@ async function dispatch(rawArgv) {
|
|
|
3533
3584
|
}
|
|
3534
3585
|
}
|
|
3535
3586
|
if (command === "preflight") {
|
|
3536
|
-
const { runPreflightCommand } = await import("./preflight-command-
|
|
3587
|
+
const { runPreflightCommand } = await import("./preflight-command-7GKJBWOQ.js");
|
|
3537
3588
|
return runPreflightCommand(args);
|
|
3538
3589
|
}
|
|
3539
3590
|
if (command !== "compile" && command !== "export" && command !== "paths" && command !== "routes") {
|
|
@@ -3548,12 +3599,12 @@ async function dispatch(rawArgv) {
|
|
|
3548
3599
|
if (command === "paths" || command === "routes") {
|
|
3549
3600
|
return runPaths(args);
|
|
3550
3601
|
}
|
|
3551
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
3602
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-OTNSKK52.js");
|
|
3552
3603
|
const toolchain = await discoverToolchainPlugins(process.cwd(), {
|
|
3553
3604
|
frozen: args.frozenLock === true || args.check === true
|
|
3554
3605
|
});
|
|
3555
3606
|
if (out && !args.check) {
|
|
3556
|
-
const { assertWritableTarget } = await import("./output-target-
|
|
3607
|
+
const { assertWritableTarget } = await import("./output-target-RAZ4KN5J.js");
|
|
3557
3608
|
assertWritableTarget(out, "--out");
|
|
3558
3609
|
}
|
|
3559
3610
|
const { bundle: json, bundleObject, omittedSeedTables, lock: lockOutcome, declaredEnvNames } = await compileBundle(args);
|
|
@@ -3571,7 +3622,7 @@ async function dispatch(rawArgv) {
|
|
|
3571
3622
|
"export.hosted-files-omitted"
|
|
3572
3623
|
);
|
|
3573
3624
|
}
|
|
3574
|
-
const { runBundleHooks } = await import("./toolchain-hooks-
|
|
3625
|
+
const { runBundleHooks } = await import("./toolchain-hooks-7PWCFLSU.js");
|
|
3575
3626
|
await runBundleHooks(
|
|
3576
3627
|
toolchain.loaded,
|
|
3577
3628
|
{
|
|
@@ -3584,15 +3635,15 @@ async function dispatch(rawArgv) {
|
|
|
3584
3635
|
},
|
|
3585
3636
|
""
|
|
3586
3637
|
);
|
|
3587
|
-
const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-
|
|
3588
|
-
const { backendDirFor } = await import("./backend-dir-
|
|
3638
|
+
const { refreshEnvExample, bundleEnvNames: bundleEnvNames2 } = await import("./env-example-refresh-WNSOH534.js");
|
|
3639
|
+
const { backendDirFor } = await import("./backend-dir-KDD43X7K.js");
|
|
3589
3640
|
const declaredSet = new Set(declaredEnvNames);
|
|
3590
3641
|
const templateDir = backendDirFor(args.file);
|
|
3591
3642
|
const ownsTemplate = isWithin(resolve2(args.file), templateDir) && (dirname2(resolve2(args.file)) === templateDir || !existsSync2(join2(templateDir, "index.ts")));
|
|
3592
3643
|
const templateEnv = Object.fromEntries(
|
|
3593
3644
|
Object.entries(bundleEnvNames2(bundleObject)).filter(([name]) => declaredSet.has(name))
|
|
3594
3645
|
);
|
|
3595
|
-
const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
3646
|
+
const { skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-2ESHHZVL.js");
|
|
3596
3647
|
const projectSdk = skewedProjectSdk(dirname2(resolve2(args.file)), readVersion());
|
|
3597
3648
|
const regenerate = projectSdk === void 0 ? `xanosdk export ${shellWord(pastePath(args.file))} --out ${NULL_DEVICE}` : installedCliCommand(projectSdk.root, (path) => `export ${path(args.file)} --out ${NULL_DEVICE}`);
|
|
3598
3649
|
if (args.check) {
|
|
@@ -3644,14 +3695,14 @@ async function dispatch(rawArgv) {
|
|
|
3644
3695
|
}
|
|
3645
3696
|
if (out) {
|
|
3646
3697
|
const { secretsCarriedBy } = await import("./live-diff-5E2BQWQ7.js");
|
|
3647
|
-
const { writeExportFile } = await import("./output-target-
|
|
3698
|
+
const { writeExportFile } = await import("./output-target-RAZ4KN5J.js");
|
|
3648
3699
|
const written = lockOutcome?.changed ? `Only ${lockOutcome.path} was written` : void 0;
|
|
3649
3700
|
writeExportFile(out, json + "\n", secretsCarriedBy(bundleObject), "--out", written);
|
|
3650
3701
|
reportWrote(args, out, lockOutcome);
|
|
3651
3702
|
} else {
|
|
3652
3703
|
process.stdout.write(json + "\n");
|
|
3653
3704
|
const { secretsCarriedBy } = await import("./live-diff-5E2BQWQ7.js");
|
|
3654
|
-
const { secretsPhrase } = await import("./output-target-
|
|
3705
|
+
const { secretsPhrase } = await import("./output-target-RAZ4KN5J.js");
|
|
3655
3706
|
const secrets = secretsCarriedBy(bundleObject);
|
|
3656
3707
|
if (secrets.length > 0) {
|
|
3657
3708
|
warn(
|
|
@@ -3670,11 +3721,11 @@ async function refreshAgentGuidance(args) {
|
|
|
3670
3721
|
if (args.noRefresh) return;
|
|
3671
3722
|
if (args.check || args.frozenLock || args.dryRun) return;
|
|
3672
3723
|
try {
|
|
3673
|
-
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
3724
|
+
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-2ESHHZVL.js");
|
|
3674
3725
|
const entryProject = args.file === void 0 ? void 0 : installedSdk(dirname2(resolve2(args.file)))?.root;
|
|
3675
3726
|
const projectDir = existsSync2(join2(process.cwd(), "AGENTS.md")) || entryProject === void 0 ? process.cwd() : entryProject;
|
|
3676
3727
|
const projectSdk = skewedProjectSdk(projectDir, readVersion());
|
|
3677
|
-
const { refreshAgentFiles } = await import("./agent-file-refresh-
|
|
3728
|
+
const { refreshAgentFiles } = await import("./agent-file-refresh-DGGSRPJ4.js");
|
|
3678
3729
|
if (projectSdk !== void 0) {
|
|
3679
3730
|
const stale = refreshAgentFiles({ projectDir, sdkVersion: readVersion(), write: false });
|
|
3680
3731
|
const file = args.file;
|
|
@@ -3702,7 +3753,7 @@ function nearestLockPath(file) {
|
|
|
3702
3753
|
for (; ; ) {
|
|
3703
3754
|
const candidate = join2(dir, "xano.lock");
|
|
3704
3755
|
if (existsSync2(candidate)) return candidate;
|
|
3705
|
-
if (
|
|
3756
|
+
if (holdsProjectManifest(dir)) return join2(start, "xano.lock");
|
|
3706
3757
|
const parent = dirname2(dir);
|
|
3707
3758
|
if (parent === dir) return join2(start, "xano.lock");
|
|
3708
3759
|
dir = parent;
|
|
@@ -3893,7 +3944,7 @@ function withPinnedGuid(artifact, def) {
|
|
|
3893
3944
|
function emitProjectDir(emit2, entry) {
|
|
3894
3945
|
if (emit2 !== "-") {
|
|
3895
3946
|
const root = projectRootFrom(dirname2(resolve2(emit2)));
|
|
3896
|
-
if (
|
|
3947
|
+
if (holdsProjectManifest(root)) return root;
|
|
3897
3948
|
}
|
|
3898
3949
|
return projectRootFrom(dirname2(resolve2(entry)));
|
|
3899
3950
|
}
|
|
@@ -3908,7 +3959,7 @@ async function runPaths(args) {
|
|
|
3908
3959
|
const lockPath = resolveLockPath(args, file);
|
|
3909
3960
|
resetLockOverrides();
|
|
3910
3961
|
const lockModel = existsSync2(lockPath) ? readLockFile(lockPath) : void 0;
|
|
3911
|
-
const toolchain = args.emit !== void 0 ? await (await import("./toolchain-modules-
|
|
3962
|
+
const toolchain = args.emit !== void 0 ? await (await import("./toolchain-modules-OTNSKK52.js")).discoverToolchainPlugins(emitProjectDir(args.emit, file), {
|
|
3912
3963
|
frozen: args.strict === true,
|
|
3913
3964
|
// A module outside its SDK peer range keeps its block and is named,
|
|
3914
3965
|
// as any other skip is; it does not abort every `dev` and `build`.
|
|
@@ -3966,7 +4017,7 @@ async function runPaths(args) {
|
|
|
3966
4017
|
if (machine && args.emit !== "-") writeJson({ emit: resolve2(args.emit), written: false, routes: 0, channels: 0 });
|
|
3967
4018
|
return;
|
|
3968
4019
|
}
|
|
3969
|
-
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-
|
|
4020
|
+
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-LCIKPDAG.js");
|
|
3970
4021
|
const loaded = toolchain?.loaded ?? [];
|
|
3971
4022
|
const skipped = toolchain?.skipped ?? [];
|
|
3972
4023
|
const rendered = renderManifestFile(
|
|
@@ -3990,7 +4041,7 @@ async function runPaths(args) {
|
|
|
3990
4041
|
writeData(process.stdout, source);
|
|
3991
4042
|
return;
|
|
3992
4043
|
}
|
|
3993
|
-
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-
|
|
4044
|
+
const { installedSdk, skewedProjectSdk, skewNote, installedCliCommand } = await import("./project-sdk-2ESHHZVL.js");
|
|
3994
4045
|
const emitDir = dirname2(resolve2(args.emit));
|
|
3995
4046
|
const projectSdk = skewedProjectSdk(installedSdk(emitDir) !== void 0 ? emitDir : dirname2(resolve2(file)), readVersion());
|
|
3996
4047
|
if (projectSdk !== void 0 && existsSync2(args.emit) && readFileSync3(args.emit, "utf8") !== source) {
|
|
@@ -4071,7 +4122,7 @@ async function refreshRouteManifest(entry, emit2, projectDir) {
|
|
|
4071
4122
|
resetLockOverrides();
|
|
4072
4123
|
const lockPath = join2(dirname2(resolve2(entry)), "xano.lock");
|
|
4073
4124
|
const lockModel = existsSync2(lockPath) ? readLockFile(lockPath) : void 0;
|
|
4074
|
-
const { discoverToolchainPlugins } = await import("./toolchain-modules-
|
|
4125
|
+
const { discoverToolchainPlugins } = await import("./toolchain-modules-OTNSKK52.js");
|
|
4075
4126
|
const toolchain = existsSync2(emit2) ? await discoverToolchainPlugins(projectDir, { frozen: false, configuring: true, peerSkew: "skip" }) : void 0;
|
|
4076
4127
|
const def = await loadDefault(entry);
|
|
4077
4128
|
if (!Xano.isXano(def)) return { manifest: "absent", lockOrphans: 0 };
|
|
@@ -4083,12 +4134,12 @@ async function refreshRouteManifest(entry, emit2, projectDir) {
|
|
|
4083
4134
|
} finally {
|
|
4084
4135
|
setDiagnosticSink(previousSink);
|
|
4085
4136
|
}
|
|
4086
|
-
const { pulledIdentities } = await import("./pull-command-
|
|
4137
|
+
const { pulledIdentities } = await import("./pull-command-S5E2ABZ4.js");
|
|
4087
4138
|
const live = pulledIdentities(payload);
|
|
4088
4139
|
const lockOrphans = lockModel === void 0 ? 0 : Object.keys(lockModel.objects).filter((k) => k !== WORKSPACE_KEY && !live.has(k)).length;
|
|
4089
4140
|
if (!existsSync2(emit2)) return { manifest: "absent", lockOrphans };
|
|
4090
4141
|
const { planRouteManifest, RouteManifestError } = await import("./routes-manifest-YR4ZIMLM.js");
|
|
4091
|
-
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-
|
|
4142
|
+
const { renderManifestFile, reportModuleFailures } = await import("./routes-manifest-file-LCIKPDAG.js");
|
|
4092
4143
|
const plan = planRouteManifest(payload, (kind, name) => lockModel?.objects[lockKey(kind, name)]?.canonical);
|
|
4093
4144
|
if (plan.unresolved.length > 0) return { manifest: "skipped", lockOrphans };
|
|
4094
4145
|
const current = readFileSync3(emit2, "utf8");
|
|
@@ -4612,7 +4663,7 @@ async function refineGonePullHint(err) {
|
|
|
4612
4663
|
if (offer === void 0 || auth === void 0 || !(err instanceof Error) || !err.message.includes(offer.clause)) return;
|
|
4613
4664
|
let gone;
|
|
4614
4665
|
try {
|
|
4615
|
-
const { lookupEphemeral } = await import("./source-resolve-
|
|
4666
|
+
const { lookupEphemeral } = await import("./source-resolve-BBHYTOXI.js");
|
|
4616
4667
|
gone = await lookupEphemeral(auth, offer.name) === null;
|
|
4617
4668
|
} catch {
|
|
4618
4669
|
return;
|
|
@@ -4784,6 +4835,7 @@ export {
|
|
|
4784
4835
|
envNameRule,
|
|
4785
4836
|
parseArgs,
|
|
4786
4837
|
resolveHelpRequest,
|
|
4838
|
+
tsxEsmApiPath,
|
|
4787
4839
|
loadDefault,
|
|
4788
4840
|
tsxRemedy,
|
|
4789
4841
|
assertEntryExists,
|
|
@@ -4815,4 +4867,4 @@ export {
|
|
|
4815
4867
|
docTokenRefusalIfReplaced,
|
|
4816
4868
|
envRefusalIfReplaced
|
|
4817
4869
|
};
|
|
4818
|
-
//# sourceMappingURL=chunk-
|
|
4870
|
+
//# sourceMappingURL=chunk-DG3APBUJ.js.map
|