@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,26 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
+
backendShellFiles,
|
|
3
|
+
deployNextCommand,
|
|
4
|
+
ephemeralNextStep,
|
|
2
5
|
loginNextStep,
|
|
3
6
|
planProfilePin,
|
|
4
7
|
projectCli,
|
|
5
8
|
projectShellFiles,
|
|
9
|
+
refuseFrontendOnlyFlags,
|
|
6
10
|
reportWorkflowPlacement,
|
|
11
|
+
resolveFrameworkValue,
|
|
7
12
|
resolveFrontendPreset,
|
|
13
|
+
resolveInitFrontend,
|
|
8
14
|
resolveThemeChoice,
|
|
15
|
+
runFiles,
|
|
9
16
|
sanitizeAppName,
|
|
17
|
+
settleClashes,
|
|
10
18
|
templateVarsFor
|
|
11
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SGK3PTTM.js";
|
|
12
20
|
import {
|
|
13
21
|
renderManifestFile,
|
|
14
22
|
reportModuleFailures
|
|
15
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-B3P25SDP.js";
|
|
16
24
|
import {
|
|
17
25
|
ROUTES_MANIFEST_BASENAME,
|
|
18
26
|
RouteManifestError,
|
|
19
27
|
planRouteManifest
|
|
20
28
|
} from "./chunk-LBJA7IEM.js";
|
|
29
|
+
import {
|
|
30
|
+
syncDigests
|
|
31
|
+
} from "./chunk-JI3BLXWQ.js";
|
|
32
|
+
import {
|
|
33
|
+
archiveSeedContent,
|
|
34
|
+
fetchSourceArchive
|
|
35
|
+
} from "./chunk-NV37YGOV.js";
|
|
21
36
|
import {
|
|
22
37
|
confirm
|
|
23
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7M6JP3FS.js";
|
|
24
39
|
import {
|
|
25
40
|
CODEGEN_MODULE,
|
|
26
41
|
DecodeContext,
|
|
@@ -60,28 +75,21 @@ import {
|
|
|
60
75
|
import {
|
|
61
76
|
recordSync,
|
|
62
77
|
syncBranchLabel
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import {
|
|
65
|
-
syncDigests
|
|
66
|
-
} from "./chunk-JI3BLXWQ.js";
|
|
67
|
-
import {
|
|
68
|
-
archiveSeedContent,
|
|
69
|
-
fetchSourceArchive
|
|
70
|
-
} from "./chunk-Z4ZGTCCD.js";
|
|
78
|
+
} from "./chunk-VAGSKUWC.js";
|
|
71
79
|
import {
|
|
72
80
|
assertBranchReadSupported,
|
|
73
81
|
exportWorkspaceBundle
|
|
74
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-2SD4LA22.js";
|
|
75
83
|
import {
|
|
76
84
|
decodeWorkspaceArchive
|
|
77
85
|
} from "./chunk-3DRXWLJ5.js";
|
|
78
86
|
import {
|
|
79
87
|
listBranches,
|
|
80
88
|
requireBranch
|
|
81
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-M2C54ZBC.js";
|
|
82
90
|
import {
|
|
83
91
|
detectInstallMode
|
|
84
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-GHMLRFRX.js";
|
|
85
93
|
import {
|
|
86
94
|
UNSUPPORTED_SECTIONS,
|
|
87
95
|
decodedCounts,
|
|
@@ -96,44 +104,50 @@ import {
|
|
|
96
104
|
import {
|
|
97
105
|
ensureWorkspaceEnvGitignored,
|
|
98
106
|
requireSecretPathGitignored
|
|
99
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-BZ6WTG3E.js";
|
|
100
108
|
import {
|
|
101
109
|
loadDefault,
|
|
102
110
|
readVersion,
|
|
103
111
|
resolveKnowledge
|
|
104
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-DG3APBUJ.js";
|
|
105
113
|
import {
|
|
106
114
|
WORKSPACE_ENV_BASENAME,
|
|
107
115
|
WORKSPACE_ENV_EXAMPLE_BASENAME,
|
|
108
116
|
renderWorkspaceEnvExample,
|
|
109
117
|
renderWorkspaceEnvFile,
|
|
110
118
|
valueProblem
|
|
111
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-PV25BDCH.js";
|
|
112
120
|
import {
|
|
113
121
|
memoCredential,
|
|
114
122
|
refuseProfileForLocal
|
|
115
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-B2URJBC4.js";
|
|
116
124
|
import {
|
|
117
125
|
getAccessToken
|
|
118
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-YH2JVJAO.js";
|
|
119
127
|
import {
|
|
120
128
|
getEngineRecord
|
|
121
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-EPFDY5JU.js";
|
|
130
|
+
import {
|
|
131
|
+
readLockFile,
|
|
132
|
+
writeLockFile
|
|
133
|
+
} from "./chunk-CJDPSCMX.js";
|
|
122
134
|
import {
|
|
123
135
|
requireBackendSlot
|
|
124
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-PY722CHR.js";
|
|
125
137
|
import {
|
|
126
138
|
SECRETS_FILE_VERSION,
|
|
127
139
|
workspaceSecretsPathIn,
|
|
128
140
|
writeSecretsFile
|
|
129
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-ZGLNHA7T.js";
|
|
130
142
|
import {
|
|
131
143
|
yesRerun
|
|
132
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-UYFUIHH3.js";
|
|
133
145
|
import {
|
|
134
146
|
contextFlags
|
|
135
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-3FRGNBOC.js";
|
|
136
148
|
import {
|
|
149
|
+
CODEGEN_MARKER,
|
|
150
|
+
MERGED_IN_EXISTING,
|
|
137
151
|
PRESERVED_ON_REFRESH,
|
|
138
152
|
SHELL_FILES_IN_BACKEND,
|
|
139
153
|
XANO_DIR,
|
|
@@ -147,20 +161,20 @@ import {
|
|
|
147
161
|
plannedAgentsMd,
|
|
148
162
|
readDecodeRecord,
|
|
149
163
|
scaffoldProject
|
|
150
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-DIWF7L33.js";
|
|
151
165
|
import {
|
|
152
166
|
shellWord
|
|
153
167
|
} from "./chunk-FWD7AL6N.js";
|
|
154
168
|
import {
|
|
155
169
|
seedRowsByTableGuid
|
|
156
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-FDTET7FZ.js";
|
|
157
171
|
import {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
} from "./chunk-
|
|
172
|
+
detectPackageManager,
|
|
173
|
+
installCommandFor
|
|
174
|
+
} from "./chunk-DNBP4GJN.js";
|
|
161
175
|
import {
|
|
162
176
|
readInstalledManifest
|
|
163
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-CNZASQPL.js";
|
|
164
178
|
import {
|
|
165
179
|
atomicWrite
|
|
166
180
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -173,11 +187,12 @@ import {
|
|
|
173
187
|
raw
|
|
174
188
|
} from "./chunk-E763QI3G.js";
|
|
175
189
|
import {
|
|
190
|
+
BACKEND_TSCONFIG_PATH,
|
|
176
191
|
codegenLanding,
|
|
177
192
|
describeOrigin,
|
|
178
193
|
renderCodegenMarker,
|
|
179
194
|
renderCodegenReadme
|
|
180
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-5GIOCDUM.js";
|
|
181
196
|
import {
|
|
182
197
|
SUPERSEDED_STATEMENTS,
|
|
183
198
|
supersededBy
|
|
@@ -198,7 +213,7 @@ import {
|
|
|
198
213
|
terminalText,
|
|
199
214
|
warn,
|
|
200
215
|
writeJson
|
|
201
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-CH23ONYG.js";
|
|
202
217
|
import {
|
|
203
218
|
TOOL_ANNOTATION_WIRE,
|
|
204
219
|
agentTrigger,
|
|
@@ -6288,7 +6303,7 @@ async function fetchBundle(args, source) {
|
|
|
6288
6303
|
...branch === void 0 ? {} : { syncTarget: { instance: auth.instance, workspaceId: auth.workspaceId, branch } }
|
|
6289
6304
|
};
|
|
6290
6305
|
}
|
|
6291
|
-
const { projectDirFrom } = await import("./xanosdk-project-
|
|
6306
|
+
const { projectDirFrom } = await import("./xanosdk-project-J4VCFRHP.js");
|
|
6292
6307
|
const cwd = projectDirFrom(process.cwd()) ?? process.cwd();
|
|
6293
6308
|
const raw2 = "name" in source && source.name !== void 0 ? `${source.kind}:${source.name}` : source.kind;
|
|
6294
6309
|
step(`Reading ${raw2}`);
|
|
@@ -6656,11 +6671,28 @@ async function runInitFromCommand(args, source) {
|
|
|
6656
6671
|
const pathArg = args.positionals[0] ?? ".";
|
|
6657
6672
|
assertBranchMatchesSource(args, source);
|
|
6658
6673
|
const target = resolve(pathArg);
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6674
|
+
const isRefresh = isNonEmptyDir(target) && existsSync(join(target, CODEGEN_MARKER));
|
|
6675
|
+
const existing = isNonEmptyDir(target) && !isRefresh;
|
|
6676
|
+
const refreshedBackend = isRefresh && !existsSync(join(target, "frontend")) && existsSync(join(target, BACKEND_TSCONFIG_PATH)) ? existsSync(join(target, XANO_DIR, ".gitattributes")) ? "existing" : "new" : void 0;
|
|
6677
|
+
if (refreshedBackend !== void 0) {
|
|
6678
|
+
if (args.framework !== void 0 && resolveFrameworkValue(args.framework) !== null) {
|
|
6679
|
+
throw new UsageError(
|
|
6680
|
+
`\`--framework ${args.framework}\` writes a new frontend, and ${target} is a project with no frontend: re-running init refreshes its backend only. Drop --framework, or run init in an empty directory for a full app.`,
|
|
6681
|
+
{ helpFor: { command: "init" } }
|
|
6682
|
+
);
|
|
6683
|
+
}
|
|
6684
|
+
refuseFrontendOnlyFlags(args, `${target} has no frontend, so re-running init refreshes its backend only`);
|
|
6685
|
+
}
|
|
6686
|
+
let overrideScripts = [];
|
|
6687
|
+
if (existing) {
|
|
6688
|
+
await resolveInitFrontend(args, target, "existing");
|
|
6689
|
+
const settled = await settleClashes(
|
|
6690
|
+
target,
|
|
6691
|
+
backendShellFiles(templateVarsFor(sanitizeAppName(args.name ?? basename(target)), target), { kind: "existing", dir: target }),
|
|
6692
|
+
args
|
|
6663
6693
|
);
|
|
6694
|
+
if (settled === "cancelled") return;
|
|
6695
|
+
overrideScripts = settled;
|
|
6664
6696
|
}
|
|
6665
6697
|
const { bundle, origin, credentialRead, seed, syncTarget } = source.kind === "file" ? {
|
|
6666
6698
|
bundle: readBundleFile(source.path),
|
|
@@ -6673,7 +6705,8 @@ async function runInitFromCommand(args, source) {
|
|
|
6673
6705
|
const out = resolve(pathArg);
|
|
6674
6706
|
const appName = sanitizeAppName(args.name ?? basename(out));
|
|
6675
6707
|
const vars = templateVarsFor(appName, out);
|
|
6676
|
-
const preset = await resolveFrontendPreset(args.framework);
|
|
6708
|
+
const preset = existing || refreshedBackend !== void 0 ? null : await resolveFrontendPreset(args.framework);
|
|
6709
|
+
if (preset === null && !existing && refreshedBackend === void 0) refuseFrontendOnlyFlags(args, "`--framework none` writes none");
|
|
6677
6710
|
const choice = await resolveThemeChoice(args);
|
|
6678
6711
|
const installMode = detectInstallMode();
|
|
6679
6712
|
const ws = bundle.payload?.workspace;
|
|
@@ -6688,16 +6721,9 @@ async function runInitFromCommand(args, source) {
|
|
|
6688
6721
|
entry: shellWord(isAbsolute(cwdEntry) || cwdEntry.startsWith(".") ? cwdEntry : `./${cwdEntry}`),
|
|
6689
6722
|
deferred: routesDeferred
|
|
6690
6723
|
});
|
|
6724
|
+
const readme2 = renderCodegenReadme(vars, origin, Object.keys(project.env), preset);
|
|
6691
6725
|
const files = [
|
|
6692
|
-
...projectShellFiles(
|
|
6693
|
-
vars,
|
|
6694
|
-
preset,
|
|
6695
|
-
{
|
|
6696
|
-
readme: renderCodegenReadme(vars, origin, Object.keys(project.env), preset),
|
|
6697
|
-
landing: codegenLanding(vars, origin)
|
|
6698
|
-
},
|
|
6699
|
-
choice
|
|
6700
|
-
),
|
|
6726
|
+
...existing || refreshedBackend === "existing" ? backendShellFiles(vars, { kind: "existing", dir: out }) : preset === null ? backendShellFiles(vars, { kind: "new", readme: readme2 }) : projectShellFiles(vars, preset, { readme: readme2, landing: codegenLanding(vars, origin) }, choice),
|
|
6701
6727
|
...generated,
|
|
6702
6728
|
{
|
|
6703
6729
|
path: `${XANO_DIR}/${CODEGEN_MARKER_BASENAME}`,
|
|
@@ -6723,11 +6749,12 @@ async function runInitFromCommand(args, source) {
|
|
|
6723
6749
|
});
|
|
6724
6750
|
const replace = await planXanoReplace(
|
|
6725
6751
|
out,
|
|
6726
|
-
files
|
|
6752
|
+
// An existing project's merged files are not overwrites: only the backend's own are listed.
|
|
6753
|
+
existing ? files.filter((f) => !MERGED_IN_EXISTING.has(f.path)) : files,
|
|
6727
6754
|
bundle.payload,
|
|
6728
6755
|
args,
|
|
6729
6756
|
describeOrigin(origin),
|
|
6730
|
-
agentsMd
|
|
6757
|
+
existing ? void 0 : agentsMd
|
|
6731
6758
|
);
|
|
6732
6759
|
if (replace === "cancelled") {
|
|
6733
6760
|
info("Cancelled. Nothing was written.");
|
|
@@ -6747,13 +6774,16 @@ async function runInitFromCommand(args, source) {
|
|
|
6747
6774
|
sdkVersion: readVersion(),
|
|
6748
6775
|
frontend: preset,
|
|
6749
6776
|
theme: choice,
|
|
6750
|
-
...replace.removals === void 0 ? {} : { xanoRemovals: replace.removals }
|
|
6777
|
+
...replace.removals === void 0 ? {} : { xanoRemovals: replace.removals },
|
|
6778
|
+
// An existing project's clashes were settled before the read, and its
|
|
6779
|
+
// manifest is merged into with the project winning.
|
|
6780
|
+
...existing ? { overwrite: "full", mergePackageJson: "project", overrideScripts } : {}
|
|
6751
6781
|
});
|
|
6752
6782
|
reportXanoReplace(replace);
|
|
6753
6783
|
for (const line of routesDeferred) warn(line, "routes.not-written");
|
|
6754
6784
|
if (seed !== void 0) reportSeedRows(seed.rows, seed.label, seed.provenance, XANO_DIR, contextFlags(args));
|
|
6755
6785
|
if (replace.lock !== void 0) {
|
|
6756
|
-
const { reconciledLock } = await import("./pull-command-
|
|
6786
|
+
const { reconciledLock } = await import("./pull-command-S5E2ABZ4.js");
|
|
6757
6787
|
writeLockFile(
|
|
6758
6788
|
replace.lock.path,
|
|
6759
6789
|
reconciledLock(replace.lock.model, replace.lock.reconciliation, bundle.payload)
|
|
@@ -6816,10 +6846,17 @@ async function runInitFromCommand(args, source) {
|
|
|
6816
6846
|
summarize(args, project, verified, out, origin, scaffold.install, mode, {
|
|
6817
6847
|
dir: out,
|
|
6818
6848
|
name: appName,
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6849
|
+
mode: existing || isRefresh ? "existing" : "new",
|
|
6850
|
+
framework: preset?.id ?? "none",
|
|
6851
|
+
theme: preset === null ? null : choice.theme.id,
|
|
6852
|
+
dark: preset === null ? null : choice.dark,
|
|
6822
6853
|
install: scaffold.install,
|
|
6854
|
+
files: runFiles(scaffold.written, lock === null ? [] : [relative(out, lock).split(sep).join("/")]),
|
|
6855
|
+
next: deployNextCommand(
|
|
6856
|
+
out === process.cwd() ? null : pathArg,
|
|
6857
|
+
scaffold.install === "installed" || existsSync(join(out, "node_modules", "@xano", "sdk")) ? null : installCommandFor(out),
|
|
6858
|
+
detectPackageManager(out)
|
|
6859
|
+
),
|
|
6823
6860
|
pinnedProfile,
|
|
6824
6861
|
lock,
|
|
6825
6862
|
// What `pull --json` reports for the same refresh: the files kept because
|
|
@@ -6857,7 +6894,7 @@ async function planXanoReplace(out, files, payload, args, label, agentsMd) {
|
|
|
6857
6894
|
if (shell.length > 0 && !await confirmShellOverwrite(out, shell, args, label)) return "cancelled";
|
|
6858
6895
|
return { removals: void 0, removedEdited: [], rewrittenEdited: [], kept: [] };
|
|
6859
6896
|
}
|
|
6860
|
-
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-
|
|
6897
|
+
const { backendDirCleanliness, noneOfTheIdentities, pulledIdentities, reconcileLock } = await import("./pull-command-S5E2ABZ4.js");
|
|
6861
6898
|
const prefix = `${XANO_DIR}/`;
|
|
6862
6899
|
const incoming = new Map(
|
|
6863
6900
|
files.filter((f) => f.path.startsWith(prefix)).map((f) => [f.path.slice(prefix.length), f.content])
|
|
@@ -6905,7 +6942,7 @@ async function planXanoReplace(out, files, payload, args, label, agentsMd) {
|
|
|
6905
6942
|
list(lock.reconciliation.dropped.map((key) => displayLockKey(key)), "")
|
|
6906
6943
|
);
|
|
6907
6944
|
}
|
|
6908
|
-
const { keptDuplicates, replacedRegistrations, reportSuperseded } = await import("./pull-superseded-
|
|
6945
|
+
const { keptDuplicates, replacedRegistrations, reportSuperseded } = await import("./pull-superseded-E34BZVLH.js");
|
|
6909
6946
|
const shown = relative(process.cwd(), xanoDir).split(sep).join("/") || XANO_DIR;
|
|
6910
6947
|
reportSuperseded(
|
|
6911
6948
|
keptDuplicates(xanoDir, incoming, kept, shown),
|
|
@@ -7127,7 +7164,7 @@ function summarize(args, project, verified, out, origin, install, mode, scaffold
|
|
|
7127
7164
|
`) + // An unverified tree: the check the warning above asks for is a step.
|
|
7128
7165
|
(verified === null ? ` npm run xano:check # confirm the tree compiles and the lock agrees
|
|
7129
7166
|
` : ``) + ` npm run xano:deploy # run it on the Xano Engine, on this machine
|
|
7130
|
-
` + loginNextStep(pin, out) +
|
|
7167
|
+
` + loginNextStep(pin, out) + ephemeralNextStep(scaffolded.framework !== "none");
|
|
7131
7168
|
detail(`Next steps:
|
|
7132
7169
|
` + steps.replace(/^ {2}/gm, " "));
|
|
7133
7170
|
for (const line of [
|
|
@@ -7210,4 +7247,4 @@ export {
|
|
|
7210
7247
|
seedRowsListed,
|
|
7211
7248
|
seedRowsLanding
|
|
7212
7249
|
};
|
|
7213
|
-
//# sourceMappingURL=chunk-
|
|
7250
|
+
//# sourceMappingURL=chunk-DXZTL7NA.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-FWD7AL6N.js";
|
|
9
9
|
import {
|
|
10
10
|
isLocalSpecifier
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-47XT6WQL.js";
|
|
12
12
|
import {
|
|
13
13
|
trackLocalWrite
|
|
14
14
|
} from "./chunk-4KHEMC32.js";
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
localPathOf,
|
|
25
25
|
packageNameOf,
|
|
26
26
|
readInstalledManifestState
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CNZASQPL.js";
|
|
28
28
|
import {
|
|
29
29
|
UsageError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CH23ONYG.js";
|
|
31
31
|
|
|
32
32
|
// src/emit/project-dependency.ts
|
|
33
33
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -169,4 +169,4 @@ export {
|
|
|
169
169
|
removeDependency,
|
|
170
170
|
recordedDependency
|
|
171
171
|
};
|
|
172
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-EF4MHLEW.js.map
|