@xano/sdk 1.0.5 → 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 +35 -5
- package/README.md +56 -20
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-KVLR7M5Y.js → agent-file-refresh-DGGSRPJ4.js} +15 -14
- package/dist/agent-skill-command-37DFYS7Q.js +414 -0
- package/dist/{answer-shape-XGR2DGWY.js → answer-shape-RBFDCNZ7.js} +5 -5
- package/dist/{backend-dir-IE4RMUFH.js → backend-dir-KDD43X7K.js} +16 -15
- package/dist/{backend-slot-6HBWG5FN.js → backend-slot-TBOVZXDE.js} +4 -4
- package/dist/bin.js +63 -61
- package/dist/{branch-T2APKPVG.js → branch-7PIKNUD7.js} +12 -11
- package/dist/{branch-commands-HXXTCSOO.js → branch-commands-EGY7ZEZE.js} +32 -32
- package/dist/bundle.js +9 -39
- package/dist/{capture-HBXFXZEW.js → capture-GW5KNKMB.js} +3 -3
- package/dist/{chunk-3BJYQGAZ.js → chunk-26LHXLD3.js} +2 -2
- package/dist/{chunk-N6BWB35H.js → chunk-2ACWDSAQ.js} +3 -3
- package/dist/{chunk-XIABDKFQ.js → chunk-2SD4LA22.js} +2 -2
- package/dist/{chunk-K6PRKPFX.js → chunk-2XWVZRL6.js} +7 -7
- package/dist/{chunk-ES5A66IH.js → chunk-2YER2J47.js} +13 -13
- package/dist/{chunk-G57RYMKB.js → chunk-3FRGNBOC.js} +2 -2
- package/dist/{chunk-BMCZQZMI.js → chunk-46PATL23.js} +13 -9
- package/dist/{chunk-MYLPOVX6.js → chunk-47XT6WQL.js} +8 -8
- package/dist/{chunk-AWQ7BQTQ.js → chunk-4GPIOIAC.js} +6 -1
- package/dist/{chunk-7GX445AE.js → chunk-4XHAT7C5.js} +2 -2
- package/dist/{chunk-QOLOQ35F.js → chunk-567KK6XF.js} +8 -8
- package/dist/{chunk-57HMNJGB.js → chunk-5GIOCDUM.js} +893 -922
- package/dist/{chunk-OKNE3TWU.js → chunk-5KJBWIDZ.js} +83 -5
- package/dist/{chunk-SRX6B544.js → chunk-5QMJOE2K.js} +5 -5
- package/dist/{chunk-AGD7F7YI.js → chunk-5SCPRXFB.js} +4 -4
- package/dist/{chunk-SNGFEESM.js → chunk-5ZG7V2VW.js} +3 -3
- package/dist/{chunk-XJU6UAFV.js → chunk-7FIMUFBP.js} +2 -2
- package/dist/{chunk-AESE434J.js → chunk-7M6JP3FS.js} +2 -2
- package/dist/{chunk-K6CB5TKM.js → chunk-7REDHC4N.js} +2 -2
- package/dist/chunk-7VR4IO5B.js +44 -0
- package/dist/{chunk-57B56I4B.js → chunk-7XXWKTCE.js} +65 -41
- package/dist/{chunk-PL7AIAWS.js → chunk-A4R5CAY4.js} +4 -111
- package/dist/{chunk-QZTJ2556.js → chunk-AKERAUNH.js} +4 -4
- package/dist/{chunk-JZWUAEMO.js → chunk-ARWMVNDJ.js} +6 -3
- package/dist/{chunk-WYS6XVZ3.js → chunk-AVS4WPPY.js} +2 -2
- package/dist/{chunk-KUU7T4ZE.js → chunk-B2URJBC4.js} +18 -18
- package/dist/chunk-B3P25SDP.js +78 -0
- package/dist/chunk-BRANWM4U.js +853 -0
- package/dist/{chunk-BBPAXOU6.js → chunk-BSVQEKHO.js} +6 -6
- package/dist/{chunk-3WHWOKU4.js → chunk-BZ6WTG3E.js} +4 -4
- package/dist/{chunk-XNZURZ7T.js → chunk-CH23ONYG.js} +77 -6
- package/dist/{chunk-SQPIECXD.js → chunk-CJDPSCMX.js} +45 -5
- package/dist/{chunk-M7GJ6YUF.js → chunk-CNZASQPL.js} +16 -2
- package/dist/{chunk-44CWK6YC.js → chunk-CPN6WSBH.js} +4 -4
- package/dist/{chunk-L3BDO2BI.js → chunk-CT3J5JRZ.js} +7 -7
- package/dist/{chunk-3HOGFGKG.js → chunk-D3KEPRRN.js} +2 -2
- package/dist/{chunk-OGUMHW2X.js → chunk-D5OZRJ3T.js} +7 -7
- package/dist/{chunk-S5KQIFKJ.js → chunk-DG3APBUJ.js} +208 -112
- package/dist/chunk-DIWF7L33.js +995 -0
- package/dist/{chunk-WRBKLYSJ.js → chunk-DNBP4GJN.js} +4 -3
- package/dist/{chunk-LZDA6SVD.js → chunk-DXZTL7NA.js} +141 -91
- package/dist/{chunk-XMDDBEEM.js → chunk-E763QI3G.js} +2 -2
- package/dist/{chunk-3VX7VAQT.js → chunk-EF4MHLEW.js} +26 -9
- package/dist/{chunk-AGSCOISO.js → chunk-ELPQTDW6.js} +108 -100
- package/dist/{chunk-Q22BMRPF.js → chunk-EPFDY5JU.js} +2 -2
- package/dist/{chunk-7DBM6XHR.js → chunk-EU32BC5B.js} +8 -8
- package/dist/{chunk-Y76ERHLK.js → chunk-FDTET7FZ.js} +6 -6
- package/dist/{chunk-Z3SNX45M.js → chunk-FENA7K7C.js} +3 -3
- package/dist/{chunk-WOGJB2F6.js → chunk-FNLTFOUD.js} +4 -9
- package/dist/{chunk-FV55SRQU.js → chunk-FQ53GTII.js} +9 -9
- package/dist/{chunk-DEVGLLNZ.js → chunk-GHMLRFRX.js} +8 -8
- package/dist/{chunk-GMVW6ZZK.js → chunk-H2K4GFUS.js} +4 -4
- package/dist/{chunk-NUU76247.js → chunk-HTQWAQRW.js} +3 -3
- package/dist/{chunk-ROY4YAEQ.js → chunk-HU7F56VF.js} +22 -2
- package/dist/{chunk-RXCT3OCU.js → chunk-HZ6ADG3O.js} +47 -8
- package/dist/{chunk-Z2BRSQ6M.js → chunk-I6XRUU6U.js} +91 -64
- package/dist/chunk-IPNN2KRW.js +257 -0
- package/dist/{chunk-SF2B7MZK.js → chunk-IYXL5NYU.js} +259 -31
- package/dist/chunk-JI3BLXWQ.js +107 -0
- package/dist/{chunk-4DJTQ6W4.js → chunk-JIKGT7DO.js} +2 -1
- package/dist/{chunk-OVV2HXJ6.js → chunk-JOOKM7AH.js} +2 -2
- package/dist/{chunk-65SW2BA5.js → chunk-JOWY6HFL.js} +3 -3
- package/dist/{chunk-I5VEROXW.js → chunk-JX6N73H3.js} +2 -2
- package/dist/{chunk-5D6DGF3W.js → chunk-L472YIGG.js} +8 -8
- package/dist/{chunk-HLQH3AXB.js → chunk-L6HZ67P6.js} +2 -2
- package/dist/{chunk-TM5LRSBB.js → chunk-LBJA7IEM.js} +370 -45
- package/dist/chunk-LCOCRJ4K.js +116 -0
- package/dist/{chunk-DGWHAVRG.js → chunk-LJM5CIY4.js} +16 -1
- package/dist/{chunk-5RLAF6RL.js → chunk-M2C54ZBC.js} +4 -4
- package/dist/{chunk-U6DR6464.js → chunk-M3NEK3LT.js} +4 -4
- package/dist/{chunk-5XVBT6CQ.js → chunk-MBL7CXJ7.js} +2 -2
- package/dist/{chunk-5YBNXNKU.js → chunk-MFWF2NZJ.js} +12 -5
- package/dist/{chunk-TEBS7FE6.js → chunk-MYZRMSPM.js} +2 -2
- package/dist/{chunk-YSLMMR2U.js → chunk-N3YFCFCO.js} +14 -14
- package/dist/{chunk-OJPZEUPH.js → chunk-NDJAKSE7.js} +11 -8
- package/dist/{chunk-PIPIA7K7.js → chunk-NV37YGOV.js} +7 -7
- package/dist/{chunk-ZHGWR45B.js → chunk-O56DQKPL.js} +9 -9
- package/dist/{chunk-4QBGE3EO.js → chunk-ORGNLQN6.js} +6 -6
- package/dist/{chunk-NNB7VUCH.js → chunk-PEIBGH2V.js} +55 -31
- package/dist/{chunk-UJ6ZZJDD.js → chunk-PEX4QZVI.js} +2 -2
- package/dist/{chunk-LLS2WO2K.js → chunk-PV25BDCH.js} +5 -5
- package/dist/{chunk-F3557PVM.js → chunk-PY722CHR.js} +2 -2
- package/dist/{chunk-4GDEEY2U.js → chunk-QGIZLFAS.js} +4 -4
- package/dist/{chunk-YI76TURL.js → chunk-QRQ54LUI.js} +16 -14
- package/dist/{chunk-JQOX6HW4.js → chunk-RBU2YX22.js} +3 -3
- package/dist/{chunk-4NEBBKOP.js → chunk-RRMH7WMY.js} +7 -7
- package/dist/{chunk-HOOOOJJP.js → chunk-S46ODQRA.js} +2 -2
- package/dist/{chunk-37FBPMNE.js → chunk-S56YBYMN.js} +5 -2
- package/dist/{chunk-4QFBEKXI.js → chunk-SDGV76HF.js} +2 -2
- package/dist/{chunk-CV54PASI.js → chunk-SGK3PTTM.js} +312 -132
- package/dist/{chunk-S5TEJIGP.js → chunk-SKEG3V2V.js} +2 -2
- package/dist/{chunk-VZ22VUAS.js → chunk-SLGJIWCY.js} +3 -3
- package/dist/{chunk-JSEVKRVJ.js → chunk-T4LJ5UR2.js} +29 -7
- package/dist/{chunk-JXKO6JT7.js → chunk-TWVUYS63.js} +24 -24
- package/dist/{chunk-UIEFE6FU.js → chunk-U5M7T6CI.js} +7 -7
- package/dist/{chunk-Z4VN347O.js → chunk-UYFUIHH3.js} +2 -2
- package/dist/{chunk-Y6NO3DLQ.js → chunk-V7MBRUK6.js} +3 -3
- package/dist/chunk-VAGSKUWC.js +67 -0
- package/dist/{chunk-A4NNCI4O.js → chunk-VIJ5D3RC.js} +3 -3
- package/dist/{chunk-3IYVHVM6.js → chunk-VJFMUJWZ.js} +4 -4
- package/dist/{chunk-V4IBHDIY.js → chunk-VNDR2T35.js} +7 -7
- package/dist/chunk-WAVNUTMT.js +9 -0
- package/dist/{chunk-KQLACS4Q.js → chunk-WNCW2RNB.js} +4 -4
- package/dist/chunk-WUEPP5HD.js +111 -0
- package/dist/{chunk-IV446ZLJ.js → chunk-Y453TW6J.js} +2 -2
- package/dist/{local-engine-command-73NHWD6V.js → chunk-YCUDOF6Q.js} +22 -76
- package/dist/{chunk-CJ76PSJT.js → chunk-YH2JVJAO.js} +12 -12
- package/dist/{chunk-GPI3OWRE.js → chunk-YHB34BN6.js} +2 -1
- package/dist/{chunk-AMBEITWL.js → chunk-ZGLNHA7T.js} +7 -7
- package/dist/{chunk-NGAODDLX.js → chunk-ZJOAWRED.js} +8 -8
- package/dist/{chunk-TUEFTRC2.js → chunk-ZXRDD3Q2.js} +50 -27
- package/dist/cli.d.ts +40 -11
- package/dist/cli.js +60 -56
- package/dist/{codegen-command-L2OO6OTE.js → codegen-command-T7TC7PQO.js} +79 -72
- package/dist/codegen.d.ts +2 -2
- package/dist/codegen.js +2 -2
- package/dist/{commands-2E4JB3DB.js → commands-JDENTDJS.js} +3 -3
- package/dist/{completion-LPJIH5VQ.js → completion-YFD5OVJW.js} +9 -5
- package/dist/{config-QDCRKEWD.js → config-YJFUTRJW.js} +8 -8
- package/dist/{deploy-command-HJZNYCUY.js → deploy-command-OEVEE6UG.js} +65 -63
- package/dist/deploy-source-HYVZEYXV.js +83 -0
- package/dist/{dev-env-sync-GZ4QQJGV.js → dev-env-sync-EFDCJ6KU.js} +63 -61
- package/dist/{diagnostics-LSMGB4TY.js → diagnostics-OMN5Y2AH.js} +2 -2
- package/dist/{display-name-hint-AHCNH6TF.js → display-name-hint-SW3GB3V7.js} +14 -13
- package/dist/{emit-DqG6qddr.d.ts → emit-Dov_92kn.d.ts} +66 -20
- package/dist/env-example-refresh-WNSOH534.js +134 -0
- package/dist/{env-pull-command-Z4RLVEGJ.js → env-pull-command-UYEXMQ3P.js} +53 -52
- package/dist/{env-target-ZHQUS5BO.js → env-target-JBSLBKNX.js} +15 -14
- package/dist/{env-var-command-FKQ4VVQ6.js → env-var-command-BJNRAXNV.js} +51 -49
- package/dist/{ephemeral-L4KUOGEU.js → ephemeral-CEOGMIEA.js} +11 -10
- package/dist/{ephemeral-command-GRPFI3TD.js → ephemeral-command-IPSGBCS5.js} +70 -69
- package/dist/{ephemeral-state-VLYU2BXR.js → ephemeral-state-MTBASPRS.js} +13 -12
- package/dist/{generate-command-XNODJFDQ.js → generate-command-XQXODBS6.js} +96 -86
- package/dist/{gitignore-VWRSZX5F.js → gitignore-RUVCIZO4.js} +21 -20
- package/dist/{guards-OPSGB6LG.js → guards-KYEOCVHN.js} +6 -6
- package/dist/{impersonate-command-AEKIZHHK.js → impersonate-command-MA27O7S5.js} +46 -44
- package/dist/{import-PHSSFFLA.js → import-XKRFHABE.js} +5 -5
- package/dist/index.d.ts +14 -20
- package/dist/index.js +13 -13
- package/dist/init-command-6RDTCMAB.js +143 -0
- package/dist/{init-modules-SGSX7XEY.js → init-modules-DHTBOCQT.js} +10 -9
- package/dist/{init-web-6HX3YLQP.js → init-web-ELBXSXDL.js} +3 -3
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +47 -20
- package/dist/{io-TAF4WXYQ.js → io-PGTCBSIQ.js} +6 -4
- package/dist/{keep-data-merge-GUGF7MVZ.js → keep-data-merge-TDJOIAVT.js} +33 -34
- package/dist/{lambda-config-reconcile-65U6I4KU.js → lambda-config-reconcile-47X5C2E4.js} +6 -5
- package/dist/{landed-QA6PRTV2.js → landed-F7PCHGCK.js} +3 -3
- package/dist/{landing-record-FCAWLCZU.js → landing-record-TPPYFQAS.js} +26 -25
- package/dist/{live-diff-IM4W3ELT.js → live-diff-5E2BQWQ7.js} +9 -8
- package/dist/local-engine-choice-S6VHPJRU.js +81 -0
- 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-Y4OAWL7K.js → local-engine-deploy-FOPNWU7X.js} +18 -16
- 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-6YPJHKYM.js → local-engine-process-XUQPQENQ.js} +12 -9
- package/dist/{local-engine-state-OCW5YDD7.js → local-engine-state-JQPKGB65.js} +4 -3
- package/dist/{local-engine-update-check-X7TZGRFL.js → local-engine-update-check-S7UF6ZF5.js} +7 -6
- package/dist/{lock-WXXC3QHL.js → lock-HDCHD2ON.js} +4 -2
- package/dist/{lock-commands-PKDBNRSD.js → lock-commands-HJ6Y5QVS.js} +66 -64
- package/dist/{login-command-V4U4FA5G.js → login-command-JO55NZAS.js} +34 -33
- package/dist/{logout-command-TV3P545Z.js → logout-command-MPRIRSJA.js} +18 -17
- package/dist/{loop-VKHGQ6MP.js → loop-SUB6C2LK.js} +8 -9
- package/dist/{marketplace-command-LEFOAEAV.js → marketplace-command-BM6G257N.js} +90 -54
- package/dist/{marketplace-resolve-ME7O7JBJ.js → marketplace-resolve-AWH3RG57.js} +7 -6
- package/dist/{meta-client-TEEECA5W.js → meta-client-AOSWODQQ.js} +16 -15
- package/dist/{module-manifest-7YLGIRCY.js → module-manifest-GXI46PEF.js} +7 -4
- package/dist/node.d.ts +5 -5
- package/dist/node.js +68 -67
- package/dist/operation-outcome-4UKPXTNC.js +53 -0
- package/dist/{output-target-5FWX3NGZ.js → output-target-RAZ4KN5J.js} +22 -21
- package/dist/{package-manager-PRAHUSCN.js → package-manager-K762W7XT.js} +2 -2
- package/dist/{plan-disclosure-QGL5UYQR.js → plan-disclosure-JR52DWXN.js} +21 -21
- package/dist/{plugin-contributions-GNFTWDEB.js → plugin-contributions-E6XHLQWK.js} +6 -6
- package/dist/{plugin-prompt-VEQGMZ4T.js → plugin-prompt-IODX5EU6.js} +5 -5
- package/dist/{plugin-questions-BGRL23GO.js → plugin-questions-AAAJ7POP.js} +4 -4
- package/dist/plugin.d.ts +254 -10
- package/dist/{preflight-command-VKJKXRRI.js → preflight-command-7GKJBWOQ.js} +71 -70
- package/dist/{profile-command-P7A3BH26.js → profile-command-CM6J7E2M.js} +35 -34
- package/dist/{profile-pointer-HG7IXE4I.js → profile-pointer-KTYXL6FU.js} +5 -4
- package/dist/{project-dependency-Z4CKOCJI.js → project-dependency-OQ5575QQ.js} +11 -8
- package/dist/{project-sdk-JWZWGXXR.js → project-sdk-2ESHHZVL.js} +4 -4
- package/dist/promote-command-BDRPG6UU.js +147 -0
- package/dist/{prompt-SURZOUUW.js → prompt-MQPGU4ZI.js} +4 -4
- package/dist/{publish-command-HGAB3H4A.js → publish-command-IEMYZ7LF.js} +69 -67
- package/dist/pull-command-S5E2ABZ4.js +169 -0
- package/dist/{pull-superseded-TOT5S4QU.js → pull-superseded-E34BZVLH.js} +4 -4
- package/dist/{raw-where-EoWl5fqY.d.ts → raw-where-ZMLND6AG.d.ts} +20 -3
- package/dist/release-command-7F5TBKO2.js +151 -0
- package/dist/{release-ns-command-WOQE2BDQ.js → release-ns-command-EK2ZQ4CC.js} +101 -100
- package/dist/{retry-command-JRGMZZAC.js → retry-command-GL5HCMVB.js} +10 -9
- package/dist/{routes-manifest-URFMAWJE.js → routes-manifest-YR4ZIMLM.js} +15 -7
- package/dist/routes-manifest-file-LCIKPDAG.js +41 -0
- package/dist/scaffold.js +4 -4
- package/dist/secrets-IV4N5HYI.js +20 -0
- package/dist/{secrets-file-YWZWVJ52.js → secrets-file-LXREYU3M.js} +21 -20
- package/dist/{secrets-fill-command-HIHK3VH2.js → secrets-fill-command-QHZS3KWM.js} +64 -62
- package/dist/{seed-24DTEY5S.js → seed-FRKMDN2Z.js} +9 -9
- package/dist/{source-resolve-OWD3MIEO.js → source-resolve-BBHYTOXI.js} +26 -24
- package/dist/{static-host-UIR2OLPQ.js → static-host-7LC7OZR4.js} +5 -5
- package/dist/{status-command-JKTHH5QE.js → status-command-TY253MJT.js} +54 -52
- package/dist/{store-zxw2go0f.d.ts → store-Boba9OOh.d.ts} +2 -2
- package/dist/{store-5YAQS6KU.js → store-VJ3OS6VO.js} +8 -7
- package/dist/sync-baseline-DOV5AGIO.js +36 -0
- package/dist/{sync-contributions-RBB6JVOL.js → sync-contributions-63542VE4.js} +20 -12
- package/dist/sync-record-RGHK7EAL.js +43 -0
- package/dist/{table-MQFVYA4K.js → table-OAYGFGEN.js} +8 -8
- package/dist/{tables-command-5Q4BSUNO.js → tables-command-PZIVDAH3.js} +45 -43
- package/dist/{tenant-Q3LPVSSM.js → tenant-Y3II4VY3.js} +12 -11
- package/dist/{tenant-command-BFVU2PEX.js → tenant-command-G6XON7CF.js} +113 -107
- package/dist/{test-command-F4VUU4QR.js → test-command-3FZOX7O3.js} +44 -42
- package/dist/{tests-5ZSDFVIJ.js → tests-KF6N6BZ7.js} +6 -6
- package/dist/{token-TERSTNU4.js → token-DJJUW5HY.js} +14 -13
- package/dist/toolchain-hooks-7PWCFLSU.js +46 -0
- package/dist/{toolchain-modules-FD5ANV2U.js → toolchain-modules-OTNSKK52.js} +8 -5
- package/dist/toolchain-peers-KQ7TQ2AR.js +28 -0
- package/dist/tracked-backend-AJCGTO5Y.js +82 -0
- package/dist/{update-check-O4C2LCZH.js → update-check-4E5L6GAW.js} +61 -59
- package/dist/{upgrade-command-NVFWLMTA.js → upgrade-command-BXMSQN4C.js} +68 -64
- package/dist/{whoami-command-YKNTISIV.js → whoami-command-NLCCIEUM.js} +17 -16
- package/dist/{workspace-GGVGE2S5.js → workspace-PNMJOXE4.js} +5 -5
- package/dist/{workspace-binding-OS4ZOX4S.js → workspace-binding-J5GWDFRI.js} +16 -15
- package/dist/{workspace-command-GTUNVN7K.js → workspace-command-MHIIY352.js} +125 -93
- package/dist/{workspace-env-467C5KHM.js → workspace-env-LLRWCHSA.js} +17 -16
- package/dist/{workspace-export-3XTVGQVM.js → workspace-export-BIKAYHWJ.js} +5 -5
- package/dist/{writable-7SSWUQJ3.js → writable-UOTO4WWC.js} +4 -4
- package/dist/{xano-6RS5XQZE.js → xano-LCI7VWPS.js} +8 -8
- package/dist/{xanosdk-import-E3WSIYUE.js → xanosdk-import-S7A3CVBN.js} +8 -8
- package/dist/{xanosdk-project-KH5TZ2KI.js → xanosdk-project-J4VCFRHP.js} +18 -17
- package/guides/README.md +2 -2
- package/guides/cli.md +73 -4
- package/guides/codegen.md +23 -5
- package/guides/codes.md +8 -2
- package/guides/coverage.md +5 -0
- package/guides/deploying.md +80 -0
- package/guides/marketplace.md +21 -0
- package/guides/module-contract.md +80 -4
- package/guides/scaffold.md +61 -10
- package/guides/typed-frontend.md +37 -0
- package/llms/client.md +11 -1
- package/llms/filters.md +4 -0
- package/llms/kinds-core.md +1 -1
- package/llms/statements-data.md +3 -2
- package/llms/toolchain.md +12 -0
- package/llms-full.txt +34 -7
- package/llms.txt +3 -3
- package/manifest.json +63 -5
- package/package.json +5 -2
- package/skills/xano-backend/SKILL.md +119 -0
- package/dist/chunk-F6IKWAIU.js +0 -664
- package/dist/chunk-M6ZFSTIZ.js +0 -630
- package/dist/chunk-MEIJDRHU.js +0 -243
- package/dist/deploy-source-5COWTBOC.js +0 -81
- package/dist/env-example-refresh-DWQIOQYR.js +0 -127
- package/dist/init-command-TI3HCKXZ.js +0 -126
- package/dist/local-engine-choice-FPJAZSSD.js +0 -79
- package/dist/operation-outcome-GNDD35WL.js +0 -51
- package/dist/promote-command-KHTIK44I.js +0 -141
- package/dist/pull-command-EUEWBRXZ.js +0 -162
- package/dist/release-command-WOVQAMUY.js +0 -147
- package/dist/toolchain-hooks-QVUZ6HZ4.js +0 -96
- package/dist/tracked-backend-B4HTME4S.js +0 -80
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
isWorkspaceKeyAtDefault
|
|
4
|
-
} from "./chunk-MEIJDRHU.js";
|
|
5
|
-
import {
|
|
2
|
+
DEFAULT_DOCUMENTATION,
|
|
6
3
|
DEFAULT_PREFERENCES,
|
|
7
|
-
DEFAULT_SETTINGS
|
|
4
|
+
DEFAULT_SETTINGS,
|
|
5
|
+
LEGACY_REALTIME
|
|
8
6
|
} from "./chunk-6JAEMMZ7.js";
|
|
7
|
+
import {
|
|
8
|
+
identityNamesByGuid,
|
|
9
|
+
lockNameForObject,
|
|
10
|
+
sdkKindName
|
|
11
|
+
} from "./chunk-5KJBWIDZ.js";
|
|
9
12
|
import {
|
|
10
13
|
HOSTED_ICON_KINDS,
|
|
11
14
|
isPrivateLibraryRow
|
|
@@ -13,7 +16,228 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
deepEqual,
|
|
15
18
|
normalize
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D3KEPRRN.js";
|
|
20
|
+
|
|
21
|
+
// src/codegen/omissions.ts
|
|
22
|
+
function omissionSeverity(reason) {
|
|
23
|
+
return reason === "unmodeled" ? "warning" : "notice";
|
|
24
|
+
}
|
|
25
|
+
var UNSUPPORTED_SECTIONS = {
|
|
26
|
+
vault: {
|
|
27
|
+
label: "stored files",
|
|
28
|
+
reason: "stored-file",
|
|
29
|
+
detail: 'a file\'s bytes are not carried into the generated tree; to ship one from the project, put it in the repo and point the field at `hostedFile("./<file>", import.meta.url)`'
|
|
30
|
+
},
|
|
31
|
+
// These three were tagged `unmodeled`, which their own detail lines contradict:
|
|
32
|
+
// none of them is an object type the SDK failed to model. They are records of
|
|
33
|
+
// what was done to the workspace, owned by the instance that did it.
|
|
34
|
+
market_item: { label: "marketplace records", reason: "instance-owned", detail: "marketplace provenance is owned by the instance" },
|
|
35
|
+
run_install: { label: "install runs", reason: "instance-owned", detail: "install runs are instance history, not workspace source" },
|
|
36
|
+
action_package_install: {
|
|
37
|
+
label: "action-package installs",
|
|
38
|
+
reason: "instance-owned",
|
|
39
|
+
detail: "action-package installs are owned by the instance"
|
|
40
|
+
},
|
|
41
|
+
service: { label: "services", reason: "unmodeled", detail: "services are not modeled by this SDK" },
|
|
42
|
+
branch: { label: "branches", reason: "server-managed", detail: "branches are instance state, not workspace source" }
|
|
43
|
+
};
|
|
44
|
+
var WORKSPACE_OMITTED_KEYS = {
|
|
45
|
+
// --- private key material ---
|
|
46
|
+
iv: { label: "encryption material", reason: "secret", detail: "instance crypto material" },
|
|
47
|
+
salt: { label: "encryption salt", reason: "secret", detail: "instance crypto material" },
|
|
48
|
+
secret: { label: "encryption secret", reason: "secret", detail: "instance crypto material" },
|
|
49
|
+
crypto: { label: "encryption keys", reason: "secret", detail: "instance crypto material" },
|
|
50
|
+
mesh0: { label: "integration API keys", reason: "secret", detail: "integration API keys" },
|
|
51
|
+
git: { label: "git integration keys", reason: "secret", detail: "integration deploy keys" },
|
|
52
|
+
// --- assigned and owned by the instance ---
|
|
53
|
+
id: { label: "workspace id", reason: "server-managed", detail: "instance-assigned workspace id" },
|
|
54
|
+
guid: {
|
|
55
|
+
label: "workspace guid",
|
|
56
|
+
reason: "server-managed",
|
|
57
|
+
derived: true,
|
|
58
|
+
detail: "instance-assigned workspace guid; the generated tree re-derives its own from the workspace name rather than carrying it"
|
|
59
|
+
},
|
|
60
|
+
checksum: { label: "checksum", reason: "server-managed", detail: "derived by the engine on save" },
|
|
61
|
+
created_at: { label: "created time", reason: "server-managed", detail: "engine timestamp" },
|
|
62
|
+
updated_at: { label: "updated time", reason: "server-managed", detail: "engine timestamp" },
|
|
63
|
+
deleted_at: { label: "deleted time", reason: "server-managed", detail: "engine timestamp" },
|
|
64
|
+
domain_prefix: {
|
|
65
|
+
label: "routing prefix",
|
|
66
|
+
reason: "server-managed",
|
|
67
|
+
detail: "instance-assigned routing prefix; redeploying it to another tenant would claim its hostnames"
|
|
68
|
+
},
|
|
69
|
+
branch: { label: "current branch", reason: "server-managed", detail: "current-branch pointer, instance state" },
|
|
70
|
+
release: { label: "current release", reason: "server-managed", detail: "release pointer, instance state" },
|
|
71
|
+
user: { label: "owning user", reason: "server-managed", detail: "owning-user record" },
|
|
72
|
+
usage: { label: "usage counters", reason: "server-managed", detail: "usage counters, instance state" },
|
|
73
|
+
features: { label: "feature flags", reason: "server-managed", detail: "instance feature flags" },
|
|
74
|
+
installed_services: { label: "installed services", reason: "server-managed", detail: "per-branch installed service ids" },
|
|
75
|
+
provision: { label: "provisioning state", reason: "server-managed", detail: "provisioning progress, instance state" },
|
|
76
|
+
well_known: { label: "well-known records", reason: "server-managed", detail: "well-known hosting records, instance state" },
|
|
77
|
+
tailor_experience: { label: "onboarding answers", reason: "server-managed", detail: "onboarding survey answers" },
|
|
78
|
+
require_setup: { label: "setup state", reason: "server-managed", detail: "onboarding state" },
|
|
79
|
+
disabled: { label: "disable flag", reason: "server-managed", detail: "instance-level workspace disable flag" },
|
|
80
|
+
jumpstart: { label: "starter state", reason: "server-managed", detail: "onboarding state" },
|
|
81
|
+
sql_schema_name: { label: "database schema name", reason: "server-managed", detail: "physical schema name, instance-assigned" },
|
|
82
|
+
connect: { label: "connection state", reason: "server-managed", detail: "third-party connection state" },
|
|
83
|
+
// --- carried elsewhere in the bundle ---
|
|
84
|
+
env: {
|
|
85
|
+
label: "env vars",
|
|
86
|
+
reason: "relocated",
|
|
87
|
+
emptied: true,
|
|
88
|
+
detail: "workspace env vars are carried in the bundle's own env set, where the import reads them; they are verified there"
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var WORKSPACE_DEFAULTED_KEYS = {
|
|
92
|
+
use_custom_names: (v) => v === false,
|
|
93
|
+
// The two blocks the wipe was expressible through. Omitting either emits
|
|
94
|
+
// no key, so both need recognising here for the same reason the four below do:
|
|
95
|
+
// the engine materializes them on save, so a stored default is ten lines
|
|
96
|
+
// nobody wrote — and verification reads this table, so a tree that leaves the
|
|
97
|
+
// default behind compares equal rather than reporting a loss.
|
|
98
|
+
documentation: isDefaultDocumentation,
|
|
99
|
+
realtime: isDefaultLegacyRealtime,
|
|
100
|
+
defaults: (v) => isRecord(v) && Object.keys(v).length === 1 && v.db_primary_key === "int",
|
|
101
|
+
datasources: (v) => Array.isArray(v) && v.length === 0,
|
|
102
|
+
datasource_live: (v) => isRecord(v) && Object.keys(v).length === 2 && v.color === "#008000" && v.show_banner === false,
|
|
103
|
+
middleware: (v) => isRecord(v) && Object.values(v).every((list) => Array.isArray(list) && list.length === 0),
|
|
104
|
+
history: isDefaultWorkspaceHistory
|
|
105
|
+
};
|
|
106
|
+
function isDefaultDocumentation(value) {
|
|
107
|
+
return matchesDefault(value, DEFAULT_DOCUMENTATION, { whitelist: isEmptyWhitelist });
|
|
108
|
+
}
|
|
109
|
+
function isEmptyWhitelist(value) {
|
|
110
|
+
if (Array.isArray(value)) return value.length === 0;
|
|
111
|
+
return isRecord(value) && Object.keys(value).length === 0;
|
|
112
|
+
}
|
|
113
|
+
function isDefaultLegacyRealtime(value) {
|
|
114
|
+
return matchesDefault(value, LEGACY_REALTIME, {
|
|
115
|
+
channels: (v) => Array.isArray(v) && v.length === 0
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function matchesDefault(value, defaults, loose = {}) {
|
|
119
|
+
if (!isRecord(value)) return false;
|
|
120
|
+
return Object.entries(value).every(([key, member]) => {
|
|
121
|
+
if (!Object.hasOwn(defaults, key)) return false;
|
|
122
|
+
const predicate = Object.hasOwn(loose, key) ? loose[key] : void 0;
|
|
123
|
+
return predicate ? predicate(member) : deepEqualDefault(member, defaults[key]);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function deepEqualDefault(a, b) {
|
|
127
|
+
if (a === b) return true;
|
|
128
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
129
|
+
return a.length === b.length && a.every((item, i) => deepEqualDefault(item, b[i]));
|
|
130
|
+
}
|
|
131
|
+
if (!isRecord(a) || !isRecord(b)) return false;
|
|
132
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)]);
|
|
133
|
+
return [...keys].every((k) => deepEqualDefault(a[k], b[k]));
|
|
134
|
+
}
|
|
135
|
+
function isRecord(value) {
|
|
136
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
137
|
+
}
|
|
138
|
+
function subtractDefaults(value, fallback) {
|
|
139
|
+
if (deepEqualDefault(value, fallback)) return void 0;
|
|
140
|
+
if (!isRecord(value) || !isRecord(fallback)) return value;
|
|
141
|
+
const out = {};
|
|
142
|
+
for (const [key, member] of Object.entries(value)) {
|
|
143
|
+
const kept = Object.hasOwn(fallback, key) ? subtractDefaults(member, fallback[key]) : member;
|
|
144
|
+
if (kept !== void 0) out[key] = kept;
|
|
145
|
+
}
|
|
146
|
+
return Object.keys(out).length === 0 ? void 0 : out;
|
|
147
|
+
}
|
|
148
|
+
var HISTORY_DEFAULT_OFF = /* @__PURE__ */ new Set(["function", "middleware", "trigger", "message"]);
|
|
149
|
+
function isDefaultWorkspaceHistory(value) {
|
|
150
|
+
if (!isRecord(value)) return false;
|
|
151
|
+
return Object.entries(value).every(([key, member]) => {
|
|
152
|
+
const enabled = key.endsWith("_enabled");
|
|
153
|
+
if (!enabled && !key.endsWith("_limit")) return false;
|
|
154
|
+
const type = key.slice(0, key.lastIndexOf("_"));
|
|
155
|
+
return enabled ? member === !HISTORY_DEFAULT_OFF.has(type) : member === 100;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function isWorkspaceKeyAtDefault(key, value) {
|
|
159
|
+
const predicate = Object.hasOwn(WORKSPACE_DEFAULTED_KEYS, key) ? WORKSPACE_DEFAULTED_KEYS[key] : void 0;
|
|
160
|
+
return predicate !== void 0 && predicate(value);
|
|
161
|
+
}
|
|
162
|
+
function sectionOmission(key) {
|
|
163
|
+
return Object.hasOwn(UNSUPPORTED_SECTIONS, key) ? UNSUPPORTED_SECTIONS[key] : void 0;
|
|
164
|
+
}
|
|
165
|
+
function workspaceKeyOmission(key) {
|
|
166
|
+
return Object.hasOwn(WORKSPACE_OMITTED_KEYS, key) ? WORKSPACE_OMITTED_KEYS[key] : void 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// src/codegen/labels.ts
|
|
170
|
+
var NOUNS = {
|
|
171
|
+
query: ["query", "queries"],
|
|
172
|
+
env: ["env var", "env vars"],
|
|
173
|
+
knowledge: ["knowledge item", "knowledge items"],
|
|
174
|
+
knowledge_file: ["knowledge file", "knowledge files"],
|
|
175
|
+
addon: ["addon", "addons"]
|
|
176
|
+
};
|
|
177
|
+
function countOf(n, singular, plural = `${singular}s`) {
|
|
178
|
+
return `${n} ${n === 1 ? singular : plural}`;
|
|
179
|
+
}
|
|
180
|
+
function decodedCounts(payload) {
|
|
181
|
+
const out = [];
|
|
182
|
+
for (const [key, section] of Object.entries(payload)) {
|
|
183
|
+
if (!Array.isArray(section) || section.length === 0) continue;
|
|
184
|
+
if (key === "toolset") {
|
|
185
|
+
const agents = section.filter((r) => r?.type === "agent").length;
|
|
186
|
+
if (agents > 0) out.push(["agent", countOf(agents, "agent")]);
|
|
187
|
+
if (section.length - agents > 0) out.push(["mcpServer", countOf(section.length - agents, "mcpServer")]);
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
const policy = sectionOmission(key);
|
|
191
|
+
if (policy !== void 0) {
|
|
192
|
+
out.push([policy.label, `${section.length} ${policy.label}`]);
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
const noun = Object.hasOwn(NOUNS, key) ? NOUNS[key] : void 0;
|
|
196
|
+
const kind = sdkKindName(key);
|
|
197
|
+
out.push([kind, noun !== void 0 ? countOf(section.length, noun[0], noun[1]) : countOf(section.length, kind)]);
|
|
198
|
+
}
|
|
199
|
+
return out.sort((a, b) => a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0).map(([, phrase]) => phrase);
|
|
200
|
+
}
|
|
201
|
+
var repeatedNames = /* @__PURE__ */ new WeakMap();
|
|
202
|
+
function identityName(payload, payloadKey, stored) {
|
|
203
|
+
if (payloadKey === "knowledge_file") return knowledgeFileName(payload, stored);
|
|
204
|
+
const name = String(stored?.name ?? "");
|
|
205
|
+
let repeats = repeatedNames.get(payload);
|
|
206
|
+
if (repeats === void 0) {
|
|
207
|
+
repeats = /* @__PURE__ */ new Map();
|
|
208
|
+
for (const [key, section] of Object.entries(payload)) {
|
|
209
|
+
if (!Array.isArray(section)) continue;
|
|
210
|
+
const seen = /* @__PURE__ */ new Set();
|
|
211
|
+
const twice = /* @__PURE__ */ new Set();
|
|
212
|
+
for (const row of section) {
|
|
213
|
+
const n = String(row?.name ?? "");
|
|
214
|
+
if (seen.has(n)) twice.add(n);
|
|
215
|
+
seen.add(n);
|
|
216
|
+
}
|
|
217
|
+
repeats.set(key, twice);
|
|
218
|
+
}
|
|
219
|
+
repeatedNames.set(payload, repeats);
|
|
220
|
+
}
|
|
221
|
+
if (!repeats.get(payloadKey)?.has(name)) return name;
|
|
222
|
+
return lockNameForObject(payloadKey, stored, identityNamesByGuid(payload));
|
|
223
|
+
}
|
|
224
|
+
function knowledgeFileName(payload, stored) {
|
|
225
|
+
const { path, knowledge } = stored ?? {};
|
|
226
|
+
const items = Array.isArray(payload.knowledge) ? payload.knowledge : [];
|
|
227
|
+
const item = items.find((k) => k?.guid === knowledge?.id);
|
|
228
|
+
const rel = String(path ?? "").replace(/^knowledge-refs\/[^/]+\//, "");
|
|
229
|
+
return item?.name === void 0 ? rel : `${String(item.name)}/${rel}`;
|
|
230
|
+
}
|
|
231
|
+
var WORKSPACE_SETTINGS = "workspace settings";
|
|
232
|
+
function reportObjectLabel(payloadKey, name) {
|
|
233
|
+
if (payloadKey === "workspace") {
|
|
234
|
+
const policy = workspaceKeyOmission(name);
|
|
235
|
+
return `${WORKSPACE_SETTINGS} (${policy?.label ?? name})`;
|
|
236
|
+
}
|
|
237
|
+
const section = sectionOmission(payloadKey);
|
|
238
|
+
if (section !== void 0) return `${section.label}: ${name}`;
|
|
239
|
+
return `${sdkKindName(payloadKey)}:${name}`;
|
|
240
|
+
}
|
|
17
241
|
|
|
18
242
|
// src/deploy/live-diff.ts
|
|
19
243
|
function storedColumnsAfter(outgoing, live, prior, mode) {
|
|
@@ -681,27 +905,22 @@ var AGENT_SETTINGS_DEFAULTS = {
|
|
|
681
905
|
model: isEmptyText,
|
|
682
906
|
telemetry: telemetryOff
|
|
683
907
|
};
|
|
684
|
-
function withoutEngineDefaults(defaults,
|
|
685
|
-
if (defaults === void 0) return
|
|
686
|
-
const
|
|
687
|
-
const b = { ...theirs };
|
|
908
|
+
function withoutEngineDefaults(defaults, row) {
|
|
909
|
+
if (defaults === void 0) return row;
|
|
910
|
+
const out = { ...row };
|
|
688
911
|
for (const [key, isDefault] of Object.entries(defaults)) {
|
|
689
|
-
|
|
690
|
-
if (atDefault(a) && atDefault(b)) {
|
|
691
|
-
delete a[key];
|
|
692
|
-
delete b[key];
|
|
693
|
-
}
|
|
912
|
+
if (!Object.hasOwn(out, key) || isDefault(out[key])) delete out[key];
|
|
694
913
|
}
|
|
695
|
-
if (defaults === ENGINE_FILLED_DEFAULTS.toolset && isPlainObject(
|
|
696
|
-
|
|
914
|
+
if (defaults === ENGINE_FILLED_DEFAULTS.toolset && isPlainObject(out.agent_settings)) {
|
|
915
|
+
out.agent_settings = withoutEngineDefaults(AGENT_SETTINGS_DEFAULTS, out.agent_settings);
|
|
697
916
|
}
|
|
698
|
-
return
|
|
917
|
+
return out;
|
|
699
918
|
}
|
|
700
|
-
function
|
|
919
|
+
function withoutEmptyColumnDefaults(table) {
|
|
701
920
|
const strip = (columns) => Array.isArray(columns) ? columns.map((col) => {
|
|
702
921
|
if (!isPlainObject(col)) return col;
|
|
703
922
|
const { default: d, ...rest } = col;
|
|
704
|
-
const out = d === null ? rest : col;
|
|
923
|
+
const out = d === null || d === "" || col.required === true ? rest : col;
|
|
705
924
|
return Array.isArray(out.children) ? { ...out, children: strip(out.children) } : out;
|
|
706
925
|
}) : columns;
|
|
707
926
|
return Array.isArray(table.schema) ? { ...table, schema: strip(table.schema) } : table;
|
|
@@ -734,18 +953,17 @@ function withHostedIconIdentity(row) {
|
|
|
734
953
|
}
|
|
735
954
|
var INDEX_SET_KEY = "(indexes)";
|
|
736
955
|
function comparable(section, oursIn, theirsIn, pinned) {
|
|
737
|
-
|
|
956
|
+
return [canonicalRow(section, oursIn, pinned), canonicalRow(section, theirsIn, pinned)];
|
|
957
|
+
}
|
|
958
|
+
function canonicalRow(section, rowIn, pinned) {
|
|
959
|
+
let row = withoutEngineDefaults(Object.hasOwn(ENGINE_FILLED_DEFAULTS, section) ? ENGINE_FILLED_DEFAULTS[section] : void 0, rowIn);
|
|
738
960
|
if (section === "dbo") {
|
|
739
|
-
|
|
740
|
-
[ours, theirs] = [{ ...ours, [INDEX_SET_KEY]: indexKeysOf(oursIn) }, { ...theirs, [INDEX_SET_KEY]: indexKeysOf(theirsIn) }];
|
|
741
|
-
}
|
|
742
|
-
if (HOSTED_ICON_KINDS.includes(section)) [ours, theirs] = [withHostedIconIdentity(ours), withHostedIconIdentity(theirs)];
|
|
743
|
-
if (pinned || !("canonical" in ours || "canonical" in theirs)) {
|
|
744
|
-
return [normalize(ours), normalize(theirs)];
|
|
961
|
+
row = { ...withoutEmptyColumnDefaults(row), [INDEX_SET_KEY]: indexKeysOf(rowIn) };
|
|
745
962
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
963
|
+
if (HOSTED_ICON_KINDS.includes(section)) row = withHostedIconIdentity(row);
|
|
964
|
+
if (pinned || !("canonical" in row)) return normalize(row);
|
|
965
|
+
const { canonical: _slug, ...rest } = row;
|
|
966
|
+
return normalize(rest);
|
|
749
967
|
}
|
|
750
968
|
function pinsCanonical(key, record, pinnedKeys) {
|
|
751
969
|
const name = typeof record.name === "string" ? record.name : void 0;
|
|
@@ -839,6 +1057,15 @@ function compareToLive(outgoing, live, pinnedKeys, opts = {}) {
|
|
|
839
1057
|
}
|
|
840
1058
|
|
|
841
1059
|
export {
|
|
1060
|
+
omissionSeverity,
|
|
1061
|
+
UNSUPPORTED_SECTIONS,
|
|
1062
|
+
subtractDefaults,
|
|
1063
|
+
isWorkspaceKeyAtDefault,
|
|
1064
|
+
sectionOmission,
|
|
1065
|
+
workspaceKeyOmission,
|
|
1066
|
+
decodedCounts,
|
|
1067
|
+
identityName,
|
|
1068
|
+
reportObjectLabel,
|
|
842
1069
|
storedColumnsAfter,
|
|
843
1070
|
uniqueIndexLabels,
|
|
844
1071
|
indexKeysOf,
|
|
@@ -857,6 +1084,7 @@ export {
|
|
|
857
1084
|
rowLabeler,
|
|
858
1085
|
declaredLabels,
|
|
859
1086
|
hostedIconIdentity,
|
|
1087
|
+
canonicalRow,
|
|
860
1088
|
compareToLive
|
|
861
1089
|
};
|
|
862
|
-
//# sourceMappingURL=chunk-
|
|
1090
|
+
//# sourceMappingURL=chunk-IYXL5NYU.js.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SETTINGS_LABEL,
|
|
3
|
+
canonicalRow,
|
|
4
|
+
payloadOf,
|
|
5
|
+
rowLabeler,
|
|
6
|
+
sectionKind,
|
|
7
|
+
sectionOmission
|
|
8
|
+
} from "./chunk-IYXL5NYU.js";
|
|
9
|
+
import {
|
|
10
|
+
canonicalJson
|
|
11
|
+
} from "./chunk-7VR4IO5B.js";
|
|
12
|
+
import {
|
|
13
|
+
md5Hex
|
|
14
|
+
} from "./chunk-OHX6MIUZ.js";
|
|
15
|
+
|
|
16
|
+
// src/deploy/sync-baseline.ts
|
|
17
|
+
var DIGEST_SCHEME = 1;
|
|
18
|
+
var SKIPPED_SECTIONS = /* @__PURE__ */ new Set(["env", "metadata", "partial", "workspace"]);
|
|
19
|
+
function digestOf(canonical) {
|
|
20
|
+
return md5Hex(canonicalJson(canonical));
|
|
21
|
+
}
|
|
22
|
+
function objectDigests(bundle, which = "all") {
|
|
23
|
+
const payload = payloadOf(bundle);
|
|
24
|
+
const label = rowLabeler(payload);
|
|
25
|
+
const out = {};
|
|
26
|
+
for (const [key, section] of Object.entries(payload)) {
|
|
27
|
+
if (SKIPPED_SECTIONS.has(key)) continue;
|
|
28
|
+
if (which !== "all" && sectionOmission(key) === void 0 !== (which === "carried")) continue;
|
|
29
|
+
if (!Array.isArray(section)) {
|
|
30
|
+
if (section !== void 0 && section !== null) out[`${sectionKind(key)}:(settings)`] = digestOf(canonicalRow(key, { value: section }, true));
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
for (const row of section) {
|
|
34
|
+
if (row === null || typeof row !== "object") continue;
|
|
35
|
+
const record = row;
|
|
36
|
+
out[label(key, record)] = digestOf(canonicalRow(key, record, false));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
function syncDigests(opts) {
|
|
42
|
+
const objects = {};
|
|
43
|
+
const others = {};
|
|
44
|
+
for (const bundle of opts.others ?? []) Object.assign(others, objectDigests(bundle));
|
|
45
|
+
for (const bundle of opts.held) {
|
|
46
|
+
for (const [label, digest] of Object.entries(objectDigests(bundle, "carried"))) {
|
|
47
|
+
if (opts.heldLabels === void 0 || opts.heldLabels.has(label)) objects[label] = digest;
|
|
48
|
+
else others[label] = digest;
|
|
49
|
+
}
|
|
50
|
+
Object.assign(others, objectDigests(bundle, "uncarried"));
|
|
51
|
+
}
|
|
52
|
+
for (const label of Object.keys(objects)) delete others[label];
|
|
53
|
+
return { scheme: DIGEST_SCHEME, objects, others };
|
|
54
|
+
}
|
|
55
|
+
function syncDirection(local, live, result, baseline) {
|
|
56
|
+
if (baseline === void 0 || baseline.scheme !== DIGEST_SCHEME) {
|
|
57
|
+
return { baseline: null, changedThere: [], changedHere: [], changedBoth: [], unclassified: [] };
|
|
58
|
+
}
|
|
59
|
+
const here = objectDigests(local);
|
|
60
|
+
const there = objectDigests(live);
|
|
61
|
+
const held = baseline.objects;
|
|
62
|
+
const others = baseline.others ?? {};
|
|
63
|
+
const digest = (map, label) => Object.hasOwn(map, label) ? map[label] : void 0;
|
|
64
|
+
const changedThere = [];
|
|
65
|
+
const changedHere = [];
|
|
66
|
+
const changedBoth = [];
|
|
67
|
+
const unclassified = [];
|
|
68
|
+
const file = (label, movedHere, movedThere) => {
|
|
69
|
+
if (movedHere && movedThere) changedBoth.push(label);
|
|
70
|
+
else if (movedHere) changedHere.push(label);
|
|
71
|
+
else if (movedThere) changedThere.push(label);
|
|
72
|
+
else unclassified.push(label);
|
|
73
|
+
};
|
|
74
|
+
for (const label of result.differing) {
|
|
75
|
+
const b = digest(held, label) ?? digest(others, label);
|
|
76
|
+
const h = digest(here, label);
|
|
77
|
+
const t = digest(there, label);
|
|
78
|
+
if (label === SETTINGS_LABEL || b === void 0 || h === void 0 || t === void 0) {
|
|
79
|
+
unclassified.push(label);
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
file(label, h !== b, t !== b);
|
|
83
|
+
}
|
|
84
|
+
for (const label of result.missing) {
|
|
85
|
+
const b = digest(held, label);
|
|
86
|
+
if (b !== void 0) file(label, digest(here, label) !== b, true);
|
|
87
|
+
else if (digest(others, label) !== void 0) file(label, true, true);
|
|
88
|
+
else changedHere.push(label);
|
|
89
|
+
}
|
|
90
|
+
for (const label of result.liveOnly) {
|
|
91
|
+
const b = digest(held, label);
|
|
92
|
+
const other = digest(others, label);
|
|
93
|
+
if (b !== void 0) file(label, true, digest(there, label) !== b);
|
|
94
|
+
else if (other !== void 0) {
|
|
95
|
+
if (digest(there, label) !== other) changedThere.push(label);
|
|
96
|
+
} else if (baseline.complete) changedThere.push(label);
|
|
97
|
+
}
|
|
98
|
+
return { baseline: { at: baseline.at, by: baseline.by }, changedThere, changedHere, changedBoth, unclassified };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
DIGEST_SCHEME,
|
|
103
|
+
objectDigests,
|
|
104
|
+
syncDigests,
|
|
105
|
+
syncDirection
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=chunk-JI3BLXWQ.js.map
|
|
@@ -120,6 +120,7 @@ function authoredFieldType(type) {
|
|
|
120
120
|
|
|
121
121
|
export {
|
|
122
122
|
COLUMN_NULLABLE_TYPES,
|
|
123
|
+
INPUT_NULLABLE_TYPES,
|
|
123
124
|
INPUT_CONTEXT,
|
|
124
125
|
COLUMN_CONTEXT,
|
|
125
126
|
defaultNullable,
|
|
@@ -130,4 +131,4 @@ export {
|
|
|
130
131
|
CATALOG_BY_TYPE,
|
|
131
132
|
authoredFieldType
|
|
132
133
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
134
|
+
//# sourceMappingURL=chunk-JIKGT7DO.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
installedCliAt,
|
|
10
10
|
pathsShownFrom
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CH23ONYG.js";
|
|
12
12
|
|
|
13
13
|
// src/emit/project-sdk.ts
|
|
14
14
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
installedCliCommand,
|
|
88
88
|
skewNote
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-JOOKM7AH.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
listAnswer,
|
|
5
5
|
recordAnswer,
|
|
6
6
|
writeTransportFailure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MYZRMSPM.js";
|
|
8
8
|
import {
|
|
9
9
|
appendSentence,
|
|
10
10
|
fetchOrExplain,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
serverMessage,
|
|
13
13
|
statusLabel,
|
|
14
14
|
transportTarget
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L6HZ67P6.js";
|
|
16
16
|
|
|
17
17
|
// src/deploy/tests.ts
|
|
18
18
|
function labelledMessage(text) {
|
|
@@ -247,4 +247,4 @@ export {
|
|
|
247
247
|
TestRunUnansweredError,
|
|
248
248
|
runTest
|
|
249
249
|
};
|
|
250
|
-
//# sourceMappingURL=chunk-
|
|
250
|
+
//# sourceMappingURL=chunk-JOWY6HFL.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
UsageError,
|
|
3
3
|
flagNames,
|
|
4
4
|
unknownFlag
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CH23ONYG.js";
|
|
6
6
|
|
|
7
7
|
// src/emit/plugin-questions.ts
|
|
8
8
|
function hostLabel(host) {
|
|
@@ -156,4 +156,4 @@ export {
|
|
|
156
156
|
assertNoFlagCollisions,
|
|
157
157
|
resolvePluginAnswers
|
|
158
158
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
159
|
+
//# sourceMappingURL=chunk-JX6N73H3.js.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BranchHttpError,
|
|
3
3
|
BranchTakenError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M2C54ZBC.js";
|
|
5
5
|
import {
|
|
6
6
|
SourceError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TWVUYS63.js";
|
|
8
8
|
import {
|
|
9
9
|
ReleaseHttpError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-26LHXLD3.js";
|
|
11
11
|
import {
|
|
12
12
|
ImportHttpError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MBL7CXJ7.js";
|
|
14
14
|
import {
|
|
15
15
|
TenantHttpError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QGIZLFAS.js";
|
|
17
17
|
import {
|
|
18
18
|
TLS_CERTIFICATE_CODES,
|
|
19
19
|
isTimeoutError,
|
|
20
20
|
writeRefusedBy
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L6HZ67P6.js";
|
|
22
22
|
import {
|
|
23
23
|
UsageError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CH23ONYG.js";
|
|
25
25
|
|
|
26
26
|
// src/emit/operation-outcome.ts
|
|
27
27
|
var SettledWriteFailure = class extends Error {
|
|
@@ -82,4 +82,4 @@ export {
|
|
|
82
82
|
SettledWriteFailure,
|
|
83
83
|
classifyFailure
|
|
84
84
|
};
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-L472YIGG.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-X2NL4KUO.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CH23ONYG.js";
|
|
10
10
|
|
|
11
11
|
// src/util/last-credential.ts
|
|
12
12
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -650,4 +650,4 @@ export {
|
|
|
650
650
|
fetchReadOrExplain,
|
|
651
651
|
retryingFetch
|
|
652
652
|
};
|
|
653
|
-
//# sourceMappingURL=chunk-
|
|
653
|
+
//# sourceMappingURL=chunk-L6HZ67P6.js.map
|