@xano/sdk 1.0.2 → 1.0.3
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 +24 -0
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-E6VSDB2M.js → agent-file-refresh-MQKCS7QZ.js} +10 -10
- package/dist/{answer-shape-BOZSUUBR.js → answer-shape-LVV2SVBK.js} +5 -5
- package/dist/{backend-dir-5ER5P65P.js → backend-dir-DGAQL4K5.js} +10 -10
- package/dist/{backend-slot-7EYY7DU5.js → backend-slot-NSCTWCUX.js} +4 -4
- package/dist/bin.js +62 -61
- package/dist/{branch-2W7SCLTJ.js → branch-ONWPJ4V6.js} +9 -9
- package/dist/branch-commands-R4PPN3Z7.js +79 -0
- package/dist/bundle.js +7 -7
- package/dist/{capture-WAXPD7DR.js → capture-3JNUA6C2.js} +5 -5
- package/dist/{chunk-ZNTK4GCI.js → chunk-2CGPQ7IM.js} +6 -6
- package/dist/{chunk-R3X7ECBS.js → chunk-2LVTBPW2.js} +3 -3
- package/dist/{chunk-PCJLL36N.js → chunk-37AHZ7JX.js} +6 -6
- package/dist/{chunk-4PCJEHA4.js → chunk-37FBPMNE.js} +4 -4
- package/dist/{chunk-5JULOSEF.js → chunk-3H3EPMFY.js} +2 -2
- package/dist/{chunk-YP5ME5RT.js → chunk-3HOGFGKG.js} +30 -3
- package/dist/{chunk-ZDPP6RKB.js → chunk-45ZUMF4E.js} +2 -2
- package/dist/{chunk-2YH2I6RA.js → chunk-46TUUNM3.js} +14 -14
- package/dist/{chunk-FEQICT4D.js → chunk-4APOHK7Y.js} +2 -2
- package/dist/{chunk-TTEIYD5P.js → chunk-4DJTQ6W4.js} +1 -1
- package/dist/{chunk-CIMQZRRE.js → chunk-4MIV244X.js} +3 -3
- package/dist/{chunk-G5IW3EYW.js → chunk-4PQHO74B.js} +26 -15
- package/dist/{chunk-MPSVU34E.js → chunk-5T2CTWTB.js} +6 -6
- package/dist/{chunk-IWGNIWQX.js → chunk-5W7DOMIU.js} +13 -13
- package/dist/{chunk-7THLGPVA.js → chunk-5YL5OC2G.js} +12 -12
- package/dist/{chunk-6RIKXG5I.js → chunk-6JAEMMZ7.js} +5 -5
- package/dist/{chunk-PFFXX6YU.js → chunk-6NYLVUSZ.js} +42 -42
- package/dist/{chunk-JGE7CAWB.js → chunk-6R7S775T.js} +2 -2
- package/dist/{chunk-SZOCJRFC.js → chunk-7GX445AE.js} +2 -2
- package/dist/{chunk-ZH4O6RWX.js → chunk-7KGASMCE.js} +7 -7
- package/dist/{chunk-2DH7VTO5.js → chunk-7KLAMYMS.js} +220 -71
- package/dist/{chunk-DBZASBQS.js → chunk-7KPKDHHI.js} +3 -3
- package/dist/{chunk-27GWNP2I.js → chunk-7THDHQ4R.js} +9 -2
- package/dist/{chunk-CALOC47J.js → chunk-7TXBKK5G.js} +7 -7
- package/dist/{chunk-YU4HSQW7.js → chunk-A2AOUBJS.js} +15 -8
- package/dist/{chunk-PGBSDRT4.js → chunk-A4KBHTMK.js} +29 -29
- package/dist/{chunk-JIEZZ5QU.js → chunk-A6QTTJUI.js} +2 -2
- package/dist/{chunk-DPDHBJNI.js → chunk-AMTJ4G32.js} +5 -5
- package/dist/{chunk-5OT4QGGZ.js → chunk-ANHOEBTJ.js} +4 -4
- package/dist/{chunk-GGZILEUD.js → chunk-BEXZ4XRV.js} +2 -2
- package/dist/{chunk-SSK5OWT6.js → chunk-BUECLQXK.js} +4 -4
- package/dist/{chunk-VSL7ET5S.js → chunk-BUJRS7XB.js} +3 -3
- package/dist/{chunk-FAGYIOLE.js → chunk-CBYQ2ZN3.js} +5 -5
- package/dist/{chunk-L3LYWXVE.js → chunk-CFSFBKHP.js} +2 -2
- package/dist/{chunk-5RA4BBJL.js → chunk-CJPLBFFY.js} +8 -8
- package/dist/{chunk-6EJQ4EJ7.js → chunk-CYB7UQA2.js} +2 -2
- package/dist/{chunk-BPJIHLP2.js → chunk-D3XOH7E7.js} +8 -8
- package/dist/{chunk-SZCQ2HVH.js → chunk-D64XUF5Q.js} +2 -2
- package/dist/{chunk-36X3OZKU.js → chunk-DIG3NITC.js} +3 -3
- package/dist/{chunk-VIPK7FHI.js → chunk-DYG5D3FD.js} +2 -2
- package/dist/{chunk-FFDZFVBD.js → chunk-E65QIWOO.js} +4 -4
- package/dist/{chunk-LQCMKAJ7.js → chunk-EESV6NU2.js} +3 -3
- package/dist/{chunk-VVE3C2X6.js → chunk-EOIJ7MVW.js} +3 -3
- package/dist/{chunk-DMD5I36N.js → chunk-ERJNHEFV.js} +3 -3
- package/dist/{chunk-5WGGTU5K.js → chunk-ETAZIGNT.js} +5 -5
- package/dist/{chunk-6X2I2WMV.js → chunk-EWCDPFW5.js} +4 -4
- package/dist/{chunk-HDIISRNY.js → chunk-F5KILDDO.js} +87 -87
- package/dist/{chunk-JWW4KU7T.js → chunk-FMOEVAGT.js} +2 -2
- package/dist/{chunk-Z6LUIVLY.js → chunk-FPBGAT5D.js} +2 -2
- package/dist/{chunk-CNYP6X7Q.js → chunk-FSYVOCS7.js} +5 -5
- package/dist/{chunk-TAHRVKKZ.js → chunk-FURLOAUM.js} +3 -3
- package/dist/{chunk-64AYI7QR.js → chunk-FWXSTFN2.js} +4 -4
- package/dist/{chunk-2Y4X2VLM.js → chunk-GPI3OWRE.js} +8 -3
- package/dist/{chunk-XNHEGBBT.js → chunk-HHFPIJGL.js} +3 -3
- package/dist/{chunk-D2JAPAQL.js → chunk-HHW5AWVD.js} +8 -8
- package/dist/{chunk-DTZSOJ6M.js → chunk-HMLGM2MW.js} +4 -4
- package/dist/{chunk-5KDJCQEU.js → chunk-HSEQYBDO.js} +2 -2
- package/dist/{chunk-GME75QO6.js → chunk-I2BGYNHD.js} +4 -4
- package/dist/{chunk-XVBGLISP.js → chunk-ICK36EGF.js} +2 -2
- package/dist/{chunk-WT7XRC6A.js → chunk-II747OWE.js} +45 -45
- package/dist/{chunk-VTLE2QDY.js → chunk-IRQCV3OT.js} +4 -4
- package/dist/{chunk-AHPEGODA.js → chunk-IVKRT476.js} +2 -2
- package/dist/{chunk-P7MBT4LJ.js → chunk-IXUPUFCG.js} +2 -2
- package/dist/{chunk-ZP6QRKZX.js → chunk-JTM5D7CT.js} +8 -8
- package/dist/{chunk-NSE7BZB6.js → chunk-K3LE5B5E.js} +72 -72
- package/dist/{chunk-QVZYYBVY.js → chunk-KCAL4QYP.js} +4 -4
- package/dist/{chunk-S3SV2BE7.js → chunk-KTGRGWZW.js} +7 -7
- package/dist/{chunk-5G5J5YRO.js → chunk-KUTFFHUM.js} +2 -2
- package/dist/{chunk-CSKYCZMO.js → chunk-KXYW3DRR.js} +7 -7
- package/dist/{chunk-LZZ7HN4L.js → chunk-LAKHO2B7.js} +8 -8
- package/dist/{chunk-NZOWWHU5.js → chunk-LL6ED5IB.js} +2 -2
- package/dist/{chunk-G4PFESPY.js → chunk-LXNQWHZM.js} +3 -3
- package/dist/{chunk-VGV2RF5X.js → chunk-MEE5RZ6G.js} +2 -2
- package/dist/{chunk-PYT3DC4G.js → chunk-MN2PB6WB.js} +2 -2
- package/dist/{chunk-2UN4TGBK.js → chunk-MNVDVR3M.js} +4 -4
- package/dist/{chunk-GSCW6RMU.js → chunk-NPXM6ZQY.js} +4 -4
- package/dist/{chunk-WQCL3AV7.js → chunk-O7QOWS6M.js} +3 -3
- package/dist/{chunk-D3YR6AIZ.js → chunk-OO63ZU46.js} +7 -7
- package/dist/{chunk-6MR5TI5V.js → chunk-OOGXZL7Z.js} +2 -2
- package/dist/{chunk-EDCCKH7Y.js → chunk-OPG4DYX2.js} +90 -48
- package/dist/{chunk-VUVPZYMM.js → chunk-PWIXETG7.js} +4 -4
- package/dist/{chunk-GQ4PMMCQ.js → chunk-QEZL5MPJ.js} +3 -3
- package/dist/{chunk-OJLJA3XM.js → chunk-QV3GXQRE.js} +2 -2
- package/dist/{chunk-TLQE7ZN3.js → chunk-RX3EMQGN.js} +2 -2
- package/dist/{chunk-JZEWT7NY.js → chunk-SBR2WZXG.js} +4 -4
- package/dist/{chunk-MOELGXVV.js → chunk-SEATQLFB.js} +13 -13
- package/dist/{chunk-RJOGX6LA.js → chunk-SEUCZZCP.js} +2 -2
- package/dist/{chunk-IG5QQQSA.js → chunk-TTVAHCWP.js} +2 -2
- package/dist/{chunk-GUKT7QYA.js → chunk-UDE5C2XN.js} +2 -2
- package/dist/{chunk-AKNCFVKZ.js → chunk-UDZX2ZL4.js} +1 -1
- package/dist/{chunk-NWKXM5RD.js → chunk-UI4OPTYR.js} +2 -2
- package/dist/{chunk-EJ3JCML2.js → chunk-UKUIUS3E.js} +4 -4
- package/dist/{chunk-HYAI62TU.js → chunk-UVF45BVU.js} +14 -9
- package/dist/{chunk-DRRJCODW.js → chunk-UWY3R4TS.js} +8 -8
- package/dist/{chunk-P2HAGF6H.js → chunk-VD32O6KZ.js} +3 -3
- package/dist/{chunk-4POWHT2K.js → chunk-VTMTIBKP.js} +8 -7
- package/dist/{chunk-OY4PS6SO.js → chunk-W5ONYLOP.js} +4 -4
- package/dist/{chunk-BTR2EQ4T.js → chunk-WFG67AYS.js} +3 -3
- package/dist/{chunk-FLLBK7EH.js → chunk-WGA25EV5.js} +3 -3
- package/dist/{chunk-JXUBSUQY.js → chunk-WOGJB2F6.js} +66 -18
- package/dist/{chunk-WP4N63FZ.js → chunk-XCPF7BEJ.js} +5 -5
- package/dist/{chunk-FXFV3KU6.js → chunk-XMDDBEEM.js} +10 -6
- package/dist/{chunk-7K6A4O2T.js → chunk-XXZZGXW2.js} +3 -3
- package/dist/{chunk-C3YIYEWR.js → chunk-YTPGQV5C.js} +7 -7
- package/dist/{chunk-JZCR3EQM.js → chunk-Z5UCPWGU.js} +20 -20
- package/dist/{chunk-YZ2UIG2K.js → chunk-ZH5R7NKN.js} +3 -3
- package/dist/{chunk-WPTLUJJR.js → chunk-ZTUNCVAR.js} +50 -50
- package/dist/{chunk-YYLRKWCZ.js → chunk-ZVYN4FXD.js} +14 -14
- package/dist/chunk-ZY55DO5P.js +24 -0
- package/dist/{chunk-P7PYN6HI.js → chunk-ZZEIC5PT.js} +3 -3
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +60 -59
- package/dist/{codegen-command-VO3RQTFX.js → codegen-command-SW2AP7KR.js} +77 -76
- package/dist/codegen.d.ts +5 -3
- package/dist/codegen.js +10 -6
- package/dist/{commands-QZERBFE2.js → commands-CVFYC4GK.js} +3 -3
- package/dist/{completion-6EKRFJJG.js → completion-AUEQC4XJ.js} +3 -3
- package/dist/{config-PZIRRUP6.js → config-JU6OQC77.js} +4 -4
- package/dist/{deploy-command-UGJPAXFQ.js → deploy-command-RD6W7PXN.js} +67 -66
- package/dist/{deploy-source-N6DMS2C5.js → deploy-source-ULSWF2V7.js} +31 -31
- package/dist/{dev-env-sync-EM4DWMN7.js → dev-env-sync-E2GFIVC5.js} +61 -60
- package/dist/{diagnostics-NSTYAWWN.js → diagnostics-LSMGB4TY.js} +2 -2
- package/dist/{display-name-hint-WT4SRTLI.js → display-name-hint-DMORHANO.js} +11 -11
- package/dist/{emit-BWGtkkOK.d.ts → emit-hOFbgzde.d.ts} +19 -15
- package/dist/env-example-refresh-WFKGILLY.js +127 -0
- package/dist/{env-pull-command-OHNICDTL.js → env-pull-command-QYQEOUE3.js} +51 -51
- package/dist/{env-target-5QFU2TR5.js → env-target-KUWQYHZ7.js} +14 -14
- package/dist/{env-var-command-AZCWUGI5.js → env-var-command-2ZAVIPNY.js} +40 -40
- package/dist/{ephemeral-76VMMZOU.js → ephemeral-BMFY55BQ.js} +9 -9
- package/dist/{ephemeral-command-EOAMMY3V.js → ephemeral-command-UKHBT3OW.js} +52 -52
- package/dist/{ephemeral-state-RRGJZBVF.js → ephemeral-state-6TY4JIPA.js} +12 -12
- package/dist/{generate-command-LPX3ATV6.js → generate-command-YN3HZWHG.js} +81 -80
- package/dist/{gitignore-BPYA5H34.js → gitignore-AU5X5F3I.js} +14 -14
- package/dist/{guards-FFQY3XAT.js → guards-EJU2ONAX.js} +17 -14
- package/dist/{impersonate-command-HLL2FKSY.js → impersonate-command-ZKE77GFT.js} +36 -36
- package/dist/{import-BG36DYZI.js → import-TBTOTU52.js} +5 -5
- package/dist/index.d.ts +151 -9
- package/dist/index.js +27 -26
- package/dist/init-command-NPXBMJNG.js +126 -0
- package/dist/{init-modules-AAH2UPHQ.js → init-modules-5TSTLGH5.js} +8 -8
- package/dist/{init-web-YBUM2BD5.js → init-web-Y2PBNJTQ.js} +3 -3
- package/dist/internal.d.ts +5 -5
- package/dist/internal.js +38 -31
- package/dist/{io-RC56QSN5.js → io-ZUKAGFVE.js} +6 -6
- package/dist/{keep-data-merge-DQR6L5FV.js → keep-data-merge-TDSELE5U.js} +39 -38
- package/dist/{landed-753YLJ5H.js → landed-6VO7CX5P.js} +5 -5
- package/dist/{landing-record-HWZTBTTP.js → landing-record-W7VQ4KV4.js} +21 -21
- package/dist/{live-diff-VJGPLS3E.js → live-diff-2S7E3SBZ.js} +15 -15
- package/dist/{local-engine-choice-QDOR72VD.js → local-engine-choice-OXULXWEP.js} +34 -34
- package/dist/{local-engine-command-CJKBG5M4.js → local-engine-command-5MTGZIZ4.js} +39 -39
- package/dist/{local-engine-deploy-ACJTJ7X5.js → local-engine-deploy-TXAOYRGF.js} +12 -12
- package/dist/{local-engine-process-ZJUPJ7VJ.js → local-engine-process-6VZ7JJBP.js} +7 -7
- package/dist/{local-engine-update-check-REGHKVK7.js → local-engine-update-check-R5SPDVEJ.js} +5 -5
- package/dist/{lock-MRRHW5GS.js → lock-TS465GVY.js} +4 -4
- package/dist/{lock-commands-XTMBIWGO.js → lock-commands-OBXAUSZX.js} +67 -66
- package/dist/{login-command-QSNMIG4D.js → login-command-CB3O3UDZ.js} +26 -26
- package/dist/{logout-command-AL54YZDB.js → logout-command-J5CP5HZZ.js} +17 -17
- package/dist/{loop-XLJ7S37B.js → loop-UFHKSOQ4.js} +16 -16
- package/dist/{marketplace-command-UHZXGJMH.js → marketplace-command-A5S25ZHF.js} +28 -28
- package/dist/{marketplace-resolve-4RQQ46LA.js → marketplace-resolve-GRXMK5YD.js} +6 -6
- package/dist/{meta-client-FFNDXZCQ.js → meta-client-FB73643X.js} +15 -15
- package/dist/{module-manifest-TTQAEXPS.js → module-manifest-GIKFNXPE.js} +4 -4
- package/dist/node.d.ts +6 -6
- package/dist/node.js +69 -68
- package/dist/operation-outcome-V4FUJI7V.js +51 -0
- package/dist/{output-target-MVKAEPEI.js → output-target-6HNPK6KC.js} +15 -15
- package/dist/{plan-disclosure-ZDZISUWI.js → plan-disclosure-BHYG7TZ7.js} +29 -29
- package/dist/{plugin-contributions-3O2MOX3B.js → plugin-contributions-X4V22PJQ.js} +5 -5
- package/dist/{plugin-prompt-4ELLDFBD.js → plugin-prompt-DKNQHW6Y.js} +5 -5
- package/dist/{plugin-questions-JTRIFEHW.js → plugin-questions-CQRVOWFK.js} +4 -4
- package/dist/{preflight-command-4FFDUHNT.js → preflight-command-NZ75PSRL.js} +74 -73
- package/dist/{profile-command-XV4JXLIJ.js → profile-command-KIRI4GA4.js} +27 -27
- package/dist/{profile-pointer-RKGBAGY6.js → profile-pointer-UOO7JNFG.js} +4 -4
- package/dist/{project-dependency-X7RULUFH.js → project-dependency-JGCJZ26H.js} +7 -7
- package/dist/{project-sdk-JYV7APT5.js → project-sdk-FOR4IOXL.js} +4 -4
- package/dist/promote-command-IPDH5OBT.js +141 -0
- package/dist/{prompt-SYH2EYXM.js → prompt-5GUQTCSP.js} +4 -4
- package/dist/{publish-command-KZOCPBMT.js → publish-command-74HMEZ7E.js} +70 -69
- package/dist/pull-command-VO5RRGZ5.js +162 -0
- package/dist/{pull-superseded-B7SOPA2M.js → pull-superseded-GGURV5J3.js} +4 -4
- package/dist/{response-HlXahv4K.d.ts → raw-where-EoWl5fqY.d.ts} +27 -5
- package/dist/release-command-ZHM5FA4M.js +147 -0
- package/dist/{release-ns-command-TCPT6N4H.js → release-ns-command-2TL26YOM.js} +95 -94
- package/dist/{retry-command-5PNYSQFN.js → retry-command-Y5YJGOH3.js} +8 -8
- package/dist/{routes-manifest-UPZQIGKC.js → routes-manifest-3BNZIVST.js} +17 -17
- package/dist/{secrets-file-6524YY62.js → secrets-file-NBBR6DYS.js} +14 -14
- package/dist/{secrets-fill-command-VX3TIYHL.js → secrets-fill-command-X3HQ4JYN.js} +64 -63
- package/dist/{seed-HBA6FWRQ.js → seed-GJHJSEUE.js} +13 -12
- package/dist/{source-resolve-ACQV343A.js → source-resolve-NTI3JFO6.js} +22 -22
- package/dist/{static-host-SFDXSHYY.js → static-host-WM24RG25.js} +5 -5
- package/dist/{status-command-X7W7PRWM.js → status-command-RVMOLYPR.js} +37 -37
- package/dist/{store-DVvwC4C4.d.ts → store-CfgPaVPO.d.ts} +116 -8
- package/dist/{store-CW5SHKXC.js → store-MR7IKXKK.js} +6 -6
- package/dist/{sync-contributions-VN2IEVBA.js → sync-contributions-KGCVRH2J.js} +9 -9
- package/dist/{table-K5YSS6MV.js → table-ZBDPKMNH.js} +12 -11
- package/dist/{tables-command-CJ5TF5JO.js → tables-command-GAOXJPMA.js} +40 -39
- package/dist/{tenant-TDTYXUGJ.js → tenant-GKXMOYLK.js} +10 -10
- package/dist/{tenant-command-SJDTSWGV.js → tenant-command-FAJ7WZTH.js} +98 -97
- package/dist/{test-command-4ICR3BPL.js → test-command-53FRDZ32.js} +35 -35
- package/dist/{tests-NQYQJQWY.js → tests-C55M5EQS.js} +6 -6
- package/dist/{token-JMW2GNLV.js → token-44CKLYWD.js} +13 -13
- package/dist/{toolchain-hooks-VUCFFZ7A.js → toolchain-hooks-BGZBDFAT.js} +3 -3
- package/dist/{toolchain-modules-J7FUTUTL.js → toolchain-modules-MPPH633S.js} +5 -5
- package/dist/{tracked-backend-GOVQ4OGJ.js → tracked-backend-AJLHRGLF.js} +33 -33
- package/dist/update-check-Q4HJHHL5.js +137 -0
- package/dist/{upgrade-command-MWP5JE5V.js → upgrade-command-C63HIBVH.js} +65 -64
- package/dist/{whoami-command-URRENPGI.js → whoami-command-WC5EKB4W.js} +16 -16
- package/dist/{workspace-LLYL5FMC.js → workspace-EJVWTIWX.js} +5 -5
- package/dist/{workspace-binding-DJQ5HZKG.js → workspace-binding-BRPPUSWG.js} +15 -15
- package/dist/{workspace-command-LZJPHSVH.js → workspace-command-Y6STVPYO.js} +91 -90
- package/dist/{workspace-env-M5GF3UPN.js → workspace-env-SIINWNMP.js} +11 -11
- package/dist/{workspace-export-ME52ELKP.js → workspace-export-AIGM6LC7.js} +5 -5
- package/dist/{writable-RQGBSRG6.js → writable-FYJBTJOU.js} +4 -4
- package/dist/xano-BSHYVFSE.js +43 -0
- package/dist/{xanosdk-import-PYZC3KWN.js → xanosdk-import-UKEO7R7O.js} +10 -10
- package/dist/{xanosdk-project-TWV27WO2.js → xanosdk-project-MQTZKITV.js} +12 -12
- package/guides/codes.md +2 -1
- package/llms/lambda.md +1 -1
- package/llms/legacy.md +9 -3
- package/llms/statements-data.md +1 -0
- package/llms/statements-runtime.md +1 -0
- package/llms-full.txt +13 -5
- package/llms.txt +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/dist/branch-commands-BNQUXQW2.js +0 -79
- package/dist/env-example-refresh-KJEKKD2S.js +0 -126
- package/dist/init-command-BC77KHUS.js +0 -125
- package/dist/operation-outcome-KMWK4IBN.js +0 -51
- package/dist/promote-command-VES2PITU.js +0 -140
- package/dist/pull-command-5O2JPLXN.js +0 -161
- package/dist/release-command-GJCCSDJF.js +0 -146
- package/dist/update-check-3CPTCQNK.js +0 -136
- package/dist/xano-EIUBBA6W.js +0 -42
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appNamesByGuid,
|
|
3
3
|
lockNameForObject
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OOGXZL7Z.js";
|
|
5
5
|
|
|
6
6
|
// src/validate/kinds.ts
|
|
7
7
|
var ROUND_TRIP_KINDS = [
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
kindIsRunnable,
|
|
107
107
|
identityMatcher
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-UI4OPTYR.js.map
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./chunk-QO6BVGS5.js";
|
|
8
8
|
import {
|
|
9
9
|
unreadableError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3H3EPMFY.js";
|
|
11
11
|
import {
|
|
12
12
|
destinationKey,
|
|
13
13
|
nextLandedRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RX3EMQGN.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureGitignored
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I2BGYNHD.js";
|
|
18
18
|
import {
|
|
19
19
|
atomicWrite
|
|
20
20
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -301,4 +301,4 @@ export {
|
|
|
301
301
|
recordEphemeralLanding,
|
|
302
302
|
clearEphemeralLanding
|
|
303
303
|
};
|
|
304
|
-
//# sourceMappingURL=chunk-
|
|
304
|
+
//# sourceMappingURL=chunk-UKUIUS3E.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
describeEntry,
|
|
10
10
|
protoKeyed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4MIV244X.js";
|
|
12
12
|
import {
|
|
13
13
|
article,
|
|
14
14
|
withArticle
|
|
@@ -1231,19 +1231,23 @@ function assertBody(body, surface, source, skipParse) {
|
|
|
1231
1231
|
);
|
|
1232
1232
|
}
|
|
1233
1233
|
assertNoBundlerHelpers(mask, source);
|
|
1234
|
+
if (!skipParse) {
|
|
1235
|
+
const problem = lambdaBodySyntaxProblem(body, source);
|
|
1236
|
+
if (problem !== void 0) throw new Error(problem);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
function lambdaBodySyntaxProblem(body, source = "s.lambda") {
|
|
1240
|
+
const mask = maskNonCode(decodeIdentifierEscapes(body));
|
|
1234
1241
|
const moduleSyntax = /(^|[;{}\n])\s*(import|export)\b(?![\s]*[.(])/.exec(mask);
|
|
1235
1242
|
if (moduleSyntax) {
|
|
1236
1243
|
const kw = moduleSyntax[2];
|
|
1237
|
-
|
|
1238
|
-
`${source}: a top-level \`${kw}\` is a syntax error in a lambda body \u2014 the body is a function body, not a module, so it must \`return\` its value and cannot declare module syntax. Reach a dependency through the PRELOADED globals, which need no specifier: ${LAMBDA_MODULE_GLOBALS.join(", ")} (plus ${LAMBDA_GLOBALS.join(" / ")}, fetch, Buffer, TextEncoder). A dynamic \`import("...")\` or \`require("...")\` with a literal specifier is NOT portable: on an instance that bundles the body before running it, every literal specifier is resolved ahead of time and none of them exist, so the call comes back as the text \`Could not resolve "..."\` with HTTP 200.`
|
|
1239
|
-
);
|
|
1244
|
+
return `${source}: a top-level \`${kw}\` is a syntax error in a lambda body \u2014 the body is a function body, not a module, so it must \`return\` its value and cannot declare module syntax. Reach a dependency through the PRELOADED globals, which need no specifier: ${LAMBDA_MODULE_GLOBALS.join(", ")} (plus ${LAMBDA_GLOBALS.join(" / ")}, fetch, Buffer, TextEncoder). A dynamic \`import("...")\` or \`require("...")\` with a literal specifier is NOT portable: on an instance that bundles the body before running it, every literal specifier is resolved ahead of time and none of them exist, so the call comes back as the text \`Could not resolve "..."\` with HTTP 200.`;
|
|
1240
1245
|
}
|
|
1241
|
-
const syntax =
|
|
1246
|
+
const syntax = lambdaSyntaxError(body);
|
|
1242
1247
|
if (syntax !== void 0) {
|
|
1243
|
-
|
|
1244
|
-
`${source}: the lambda body does not parse \u2014 ${syntax.message} (body line ${syntax.line}, column ${syntax.column}: \`${syntax.lineText.trim()}\`). A body that does not parse cannot run.`
|
|
1245
|
-
);
|
|
1248
|
+
return `${source}: the lambda body does not parse \u2014 ${syntax.message} (body line ${syntax.line}, column ${syntax.column}: \`${syntax.lineText.trim()}\`). A body that does not parse cannot run.`;
|
|
1246
1249
|
}
|
|
1250
|
+
return void 0;
|
|
1247
1251
|
}
|
|
1248
1252
|
var KNOWN_NAMES = /* @__PURE__ */ new Set([
|
|
1249
1253
|
// keywords and literals
|
|
@@ -1711,6 +1715,7 @@ export {
|
|
|
1711
1715
|
installLambdaFreeReads,
|
|
1712
1716
|
installLambdaSyntaxCheck,
|
|
1713
1717
|
lambdaSyntaxError,
|
|
1718
|
+
lambdaBodySyntaxProblem,
|
|
1714
1719
|
lambdaValue,
|
|
1715
1720
|
lam,
|
|
1716
1721
|
isTaggedValue,
|
|
@@ -1736,4 +1741,4 @@ export {
|
|
|
1736
1741
|
filter,
|
|
1737
1742
|
withFilters
|
|
1738
1743
|
};
|
|
1739
|
-
//# sourceMappingURL=chunk-
|
|
1744
|
+
//# sourceMappingURL=chunk-UVF45BVU.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveProjectEntry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7KGASMCE.js";
|
|
4
4
|
import {
|
|
5
5
|
isUnusablePin,
|
|
6
6
|
readPin,
|
|
7
7
|
writePin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D64XUF5Q.js";
|
|
9
9
|
import {
|
|
10
10
|
ENGINE_RELEASES_URL_ENV,
|
|
11
11
|
EngineReleaseNotFoundError,
|
|
12
12
|
usesCustomReleaseManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CYB7UQA2.js";
|
|
14
14
|
import {
|
|
15
15
|
LOCAL_ENGINE_OVERRIDE_ENV,
|
|
16
16
|
engineOverrideFromEnv,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
} from "./chunk-AM4FKL4J.js";
|
|
20
20
|
import {
|
|
21
21
|
ORIGIN_READ_ONLY_BY_REFRESH
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SEUCZZCP.js";
|
|
23
23
|
import {
|
|
24
24
|
UsageError,
|
|
25
25
|
info,
|
|
26
26
|
warn
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SBR2WZXG.js";
|
|
28
28
|
|
|
29
29
|
// src/emit/local-engine-choice.ts
|
|
30
30
|
function refuseCredentialFlagsForLocal(args, kinds) {
|
|
@@ -87,7 +87,7 @@ async function chooseLocalEngine(flagValue, dir, machineOutput) {
|
|
|
87
87
|
};
|
|
88
88
|
const platform = resolveEnginePlatform();
|
|
89
89
|
if (platform === void 0) return keep;
|
|
90
|
-
const check = await import("./local-engine-update-check-
|
|
90
|
+
const check = await import("./local-engine-update-check-R5SPDVEJ.js");
|
|
91
91
|
const latest = await check.latestKnownVersion({ platform });
|
|
92
92
|
if (latest === void 0) return keep;
|
|
93
93
|
const decision = check.decideUpdate({
|
|
@@ -101,7 +101,7 @@ async function chooseLocalEngine(flagValue, dir, machineOutput) {
|
|
|
101
101
|
info(check.updateNoticeText(pin, latest));
|
|
102
102
|
return keep;
|
|
103
103
|
}
|
|
104
|
-
const { confirm } = await import("./prompt-
|
|
104
|
+
const { confirm } = await import("./prompt-5GUQTCSP.js");
|
|
105
105
|
const yes = await confirm(check.updatePromptText(pin, latest), {
|
|
106
106
|
flag: "`xanosdk local-engine update`",
|
|
107
107
|
refusal: { details: { updated: false }, rerun: "xanosdk local-engine update" }
|
|
@@ -170,4 +170,4 @@ export {
|
|
|
170
170
|
pinAfterAcquire,
|
|
171
171
|
pinWrittenText
|
|
172
172
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
173
|
+
//# sourceMappingURL=chunk-UWY3R4TS.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyLanding,
|
|
3
3
|
withoutPrunedObjects
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RX3EMQGN.js";
|
|
5
5
|
import {
|
|
6
6
|
atomicWrite
|
|
7
7
|
} from "./chunk-LLNZGEFK.js";
|
|
8
8
|
import {
|
|
9
9
|
parseLockReport,
|
|
10
10
|
serializeLock
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OOGXZL7Z.js";
|
|
12
12
|
import {
|
|
13
13
|
tagLockSource
|
|
14
14
|
} from "./chunk-4BW2SG2N.js";
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
recordLandingInLockFile,
|
|
71
71
|
forgetPrunedInLockFile
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-VD32O6KZ.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
statementLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A2AOUBJS.js";
|
|
4
4
|
import {
|
|
5
5
|
PROTO_KEY,
|
|
6
6
|
describeEntry,
|
|
7
7
|
protoKeyed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4MIV244X.js";
|
|
9
9
|
import {
|
|
10
10
|
withArticle
|
|
11
11
|
} from "./chunk-36JUQZVQ.js";
|
|
@@ -167,6 +167,7 @@ function assertNoProtoKeys(owner, def) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// src/kinds/test-mocks.ts
|
|
170
|
+
var STORED_TEST_ID = /^[\da-f]{8}(-?)([\da-f]{4}\1){3}[\da-f]{12}$/;
|
|
170
171
|
function mockBearingItem(node) {
|
|
171
172
|
if (node === null || typeof node !== "object" || Array.isArray(node)) return null;
|
|
172
173
|
const rec = node;
|
|
@@ -183,7 +184,7 @@ function resolveMockKeys(run, tests, ownerKind, ownerName) {
|
|
|
183
184
|
for (const [testName, entry] of Object.entries(item.mocks)) {
|
|
184
185
|
const id = byName.get(testName);
|
|
185
186
|
if (id === void 0) {
|
|
186
|
-
if (
|
|
187
|
+
if (STORED_TEST_ID.test(testName)) {
|
|
187
188
|
resolved[testName] = entry;
|
|
188
189
|
continue;
|
|
189
190
|
}
|
|
@@ -226,7 +227,7 @@ function assertMockKeysResolved(xdo, kindName) {
|
|
|
226
227
|
const item = mockBearingItem(node);
|
|
227
228
|
if (item) {
|
|
228
229
|
for (const key of Object.keys(item.mocks)) {
|
|
229
|
-
if (
|
|
230
|
+
if (STORED_TEST_ID.test(key)) continue;
|
|
230
231
|
const stored = node.name;
|
|
231
232
|
const step = typeof stored === "string" ? `\`${statementLabel(stored)}\`` : "a statement";
|
|
232
233
|
throw new Error(
|
|
@@ -247,9 +248,9 @@ function assertTestIds(xdo, kindName) {
|
|
|
247
248
|
const owner = `${kind} "${String(xdo.name)}"`;
|
|
248
249
|
const byId = /* @__PURE__ */ new Map();
|
|
249
250
|
for (const t of tests) {
|
|
250
|
-
if (typeof t?.id !== "string" ||
|
|
251
|
+
if (typeof t?.id !== "string" || !STORED_TEST_ID.test(t.id)) {
|
|
251
252
|
throw new Error(
|
|
252
|
-
`${owner}: test "${String(t?.name)}" has \`id: ${JSON.stringify(t?.id)}\` \u2014 a test id is 32 lowercase hex characters
|
|
253
|
+
`${owner}: test "${String(t?.name)}" has \`id: ${JSON.stringify(t?.id)}\` \u2014 a test id is 32 lowercase hex characters or a dashed UUID. Omit \`id\` to derive one from the test name, or copy the stored id.`
|
|
253
254
|
);
|
|
254
255
|
}
|
|
255
256
|
if (byId.has(t.id)) {
|
|
@@ -318,4 +319,4 @@ export {
|
|
|
318
319
|
encodeTags,
|
|
319
320
|
defaultHistory
|
|
320
321
|
};
|
|
321
|
-
//# sourceMappingURL=chunk-
|
|
322
|
+
//# sourceMappingURL=chunk-VTMTIBKP.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listTenants
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KCAL4QYP.js";
|
|
4
4
|
import {
|
|
5
5
|
listEphemeral
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BUECLQXK.js";
|
|
7
7
|
import {
|
|
8
8
|
shellWord
|
|
9
9
|
} from "./chunk-FWD7AL6N.js";
|
|
10
10
|
import {
|
|
11
11
|
safeText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SBR2WZXG.js";
|
|
13
13
|
|
|
14
14
|
// src/emit/display-name-hint.ts
|
|
15
15
|
function isShared(owner) {
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
displayNameHint,
|
|
118
118
|
selectorFix
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-W5ONYLOP.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionOrCancel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4APOHK7Y.js";
|
|
4
4
|
import {
|
|
5
5
|
style,
|
|
6
6
|
terminalText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SBR2WZXG.js";
|
|
8
8
|
|
|
9
9
|
// src/emit/plugin-prompt.ts
|
|
10
10
|
import { createInterface } from "readline/promises";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
promptPluginQuestion,
|
|
55
55
|
pluginPrompter
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-WFG67AYS.js.map
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
loadFile,
|
|
13
13
|
moduleKind,
|
|
14
14
|
readInstalledManifestState
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DYG5D3FD.js";
|
|
16
16
|
import {
|
|
17
17
|
UsageError,
|
|
18
18
|
warn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SBR2WZXG.js";
|
|
20
20
|
|
|
21
21
|
// src/emit/toolchain-modules.ts
|
|
22
22
|
var UNKNOWN_MODULE_VERSION = "unknown";
|
|
@@ -189,4 +189,4 @@ export {
|
|
|
189
189
|
sdkPeerSkew,
|
|
190
190
|
discoverToolchainPlugins
|
|
191
191
|
};
|
|
192
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-WGA25EV5.js.map
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-3YW23UFH.js";
|
|
7
7
|
import {
|
|
8
8
|
obj
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7KPKDHHI.js";
|
|
10
10
|
import {
|
|
11
11
|
FILTER_NAMES,
|
|
12
12
|
FILTER_REQUIRED_ARGS,
|
|
13
13
|
fl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BEXZ4XRV.js";
|
|
15
15
|
import {
|
|
16
16
|
WORKSPACE_SECRETS_FILE
|
|
17
17
|
} from "./chunk-3JDU4VRL.js";
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
isDeadResultItem,
|
|
26
26
|
isEmptyCustomize,
|
|
27
27
|
normalize
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3HOGFGKG.js";
|
|
29
29
|
import {
|
|
30
30
|
f,
|
|
31
31
|
input
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-37FBPMNE.js";
|
|
33
33
|
import {
|
|
34
34
|
TAGS,
|
|
35
35
|
auth,
|
|
@@ -47,18 +47,19 @@ import {
|
|
|
47
47
|
sys,
|
|
48
48
|
toolset,
|
|
49
49
|
withFilters
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-UVF45BVU.js";
|
|
51
51
|
import {
|
|
52
52
|
REFERENCEABLE_KIND_PAYLOAD_KEYS
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-LL6ED5IB.js";
|
|
54
54
|
import {
|
|
55
55
|
CATALOG_BY_TYPE,
|
|
56
56
|
COLUMN_CONTEXT,
|
|
57
57
|
INPUT_CONTEXT,
|
|
58
|
+
authoredFieldType,
|
|
58
59
|
defaultNullable,
|
|
59
60
|
encodeField,
|
|
60
61
|
parseMethod
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4DJTQ6W4.js";
|
|
62
63
|
|
|
63
64
|
// src/codegen/report.ts
|
|
64
65
|
var AUDIENCE_ORDER = [
|
|
@@ -656,8 +657,13 @@ function arrow(params, body) {
|
|
|
656
657
|
return { kind: "arrow", params, body };
|
|
657
658
|
}
|
|
658
659
|
var IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
660
|
+
var UNTYPED_KEY = "\0untyped:";
|
|
661
|
+
function untypedKey(name) {
|
|
662
|
+
return UNTYPED_KEY + name;
|
|
663
|
+
}
|
|
659
664
|
var INDENT = " ";
|
|
660
665
|
function key(name) {
|
|
666
|
+
if (name.startsWith(UNTYPED_KEY)) return `[${JSON.stringify(name.slice(UNTYPED_KEY.length))} as never]`;
|
|
661
667
|
if (name === "__proto__") return `[${JSON.stringify(name)}]`;
|
|
662
668
|
return IDENTIFIER.test(name) ? name : JSON.stringify(name);
|
|
663
669
|
}
|
|
@@ -810,7 +816,8 @@ var RefIndex = class _RefIndex {
|
|
|
810
816
|
name,
|
|
811
817
|
position,
|
|
812
818
|
...payloadKey === "dbo" && Array.isArray(object.schema) ? { schema: object.schema } : {},
|
|
813
|
-
...payloadKey === "microservice" ? { ports: servicePorts(object) } : {}
|
|
819
|
+
...payloadKey === "microservice" ? { ports: servicePorts(object) } : {},
|
|
820
|
+
...Array.isArray(object.input) ? { input: object.input } : {}
|
|
814
821
|
});
|
|
815
822
|
});
|
|
816
823
|
}
|
|
@@ -1587,13 +1594,24 @@ function colonForm(name, args) {
|
|
|
1587
1594
|
var ENUMERATED_METHODS = new Set(
|
|
1588
1595
|
Object.values(FIELD_METHODS).flatMap((methods) => Object.keys(methods))
|
|
1589
1596
|
);
|
|
1590
|
-
function
|
|
1597
|
+
function ownMethodNames(stored, context) {
|
|
1598
|
+
if (context === INPUT_CONTEXT && linkedTableOf(stored) !== null) return /* @__PURE__ */ new Set();
|
|
1599
|
+
const own = Object.keys(FIELD_METHODS[stored.type] ?? {});
|
|
1600
|
+
const ref2 = tableRefOf(stored) !== null ? FIELD_METHODS.tableRef ?? {} : null;
|
|
1601
|
+
return new Set(ref2 === null ? own : own.filter((name) => Object.hasOwn(ref2, name)));
|
|
1602
|
+
}
|
|
1603
|
+
function foreignMethodNames(stored, context) {
|
|
1604
|
+
const own = ownMethodNames(stored, context);
|
|
1605
|
+
const names = (stored.methods ?? []).filter((method) => method.name !== "@" && (method.disabled ?? false) === false).map((method) => method.name).filter((name) => !own.has(name));
|
|
1606
|
+
return [...new Set(names)];
|
|
1607
|
+
}
|
|
1608
|
+
function recoverMethods(stored, shorthand = ENUMERATED_METHODS) {
|
|
1591
1609
|
const out2 = [];
|
|
1592
1610
|
for (const method of stored) {
|
|
1593
1611
|
if ((method.disabled ?? false) !== false) return null;
|
|
1594
1612
|
const args = method.arg ?? [];
|
|
1595
|
-
const
|
|
1596
|
-
out2.push(
|
|
1613
|
+
const short = shorthand.has(method.name) ? colonForm(method.name, args) : null;
|
|
1614
|
+
out2.push(short ?? (args.length > 0 ? { name: method.name, arg: [...args] } : { name: method.name }));
|
|
1597
1615
|
}
|
|
1598
1616
|
return out2;
|
|
1599
1617
|
}
|
|
@@ -1654,7 +1672,7 @@ function recoverOptions(stored, context, elide = true) {
|
|
|
1654
1672
|
if (context.includeDescription && stored.description !== void 0 && stored.description !== "") {
|
|
1655
1673
|
options.description = stored.description;
|
|
1656
1674
|
}
|
|
1657
|
-
const methods = recoverMethods(stored.methods ?? []);
|
|
1675
|
+
const methods = recoverMethods(stored.methods ?? [], ownMethodNames(stored, context));
|
|
1658
1676
|
if (methods === null) return null;
|
|
1659
1677
|
if (methods.length > 0) options.methods = methods;
|
|
1660
1678
|
const customize = recoverCustomize(stored.customize);
|
|
@@ -1688,7 +1706,7 @@ function optionsExpr(options, omit = []) {
|
|
|
1688
1706
|
}
|
|
1689
1707
|
return obj2(entries);
|
|
1690
1708
|
}
|
|
1691
|
-
function decodeField(ctx, refs, stored, surface, resolve = {}) {
|
|
1709
|
+
function decodeField(ctx, refs, stored, surface, resolve = {}, primaryKey = false) {
|
|
1692
1710
|
const context = surface === "input" ? INPUT_CONTEXT : COLUMN_CONTEXT;
|
|
1693
1711
|
const { field: stored_, unbound } = unbindLocalCustomizeRefs(stored);
|
|
1694
1712
|
if (unbound.length > 0) {
|
|
@@ -1706,6 +1724,9 @@ function decodeField(ctx, refs, stored, surface, resolve = {}) {
|
|
|
1706
1724
|
);
|
|
1707
1725
|
}
|
|
1708
1726
|
const options = recoverOptions(stored, context);
|
|
1727
|
+
if (primaryKey && options !== null && stored.type === "uuid" && Object.hasOwn(stored, "default") && options.default === void 0) {
|
|
1728
|
+
options.default = "";
|
|
1729
|
+
}
|
|
1709
1730
|
const missing = unrepresentableKeys(stored);
|
|
1710
1731
|
if (missing.length > 0) {
|
|
1711
1732
|
ctx.use(CODEGEN_MODULE, "rawField");
|
|
@@ -1742,6 +1763,26 @@ function decodeField(ctx, refs, stored, surface, resolve = {}) {
|
|
|
1742
1763
|
if (!sameField(reEncoded, stored)) {
|
|
1743
1764
|
return literalBecause(`re-encoding the recovered options ${describeDiff(reEncoded, stored)}`);
|
|
1744
1765
|
}
|
|
1766
|
+
const kind = surface === "input" ? "input" : "column";
|
|
1767
|
+
const typeName = stored.type === "obj" ? "object" : authoredFieldType(stored.type);
|
|
1768
|
+
const foreign = foreignMethodNames(stored, context);
|
|
1769
|
+
if (foreign.length > 0) {
|
|
1770
|
+
const names = foreign.map((name) => `\`${name}\``).join(", ");
|
|
1771
|
+
const one = foreign.length === 1;
|
|
1772
|
+
ctx.problem(
|
|
1773
|
+
"workspace-defect",
|
|
1774
|
+
`${kind} "${stored.name}" (${typeName}) stores the method${one ? "" : "s"} ${names}, which the \`${typeName}\` type does not take \u2014 most likely left over from an earlier type. Decoded in the explicit \`{ name, arg }\` form so the tree compiles and re-deploys the same bytes; remove ${one ? "it" : "them"} upstream`,
|
|
1775
|
+
"foreign method"
|
|
1776
|
+
);
|
|
1777
|
+
}
|
|
1778
|
+
if (stored.type !== "obj" && stored.type !== "json" && storedChildren(stored).length > 0) {
|
|
1779
|
+
ctx.problem(
|
|
1780
|
+
"workspace-defect",
|
|
1781
|
+
`${kind} "${stored.name}" (${typeName}) stores nested children, which only an object or json ${kind} reads \u2014 most likely left over from an earlier type. Emitted as a descriptor literal so the tree compiles and re-deploys the same bytes; remove them upstream`,
|
|
1782
|
+
"stale children"
|
|
1783
|
+
);
|
|
1784
|
+
return descriptorLiteral();
|
|
1785
|
+
}
|
|
1745
1786
|
const ns = ctx.use(SDK_MODULE, surface);
|
|
1746
1787
|
const opts = options;
|
|
1747
1788
|
let lastRejection = "no catalog form was attempted";
|
|
@@ -1887,26 +1928,32 @@ function decodeField(ctx, refs, stored, surface, resolve = {}) {
|
|
|
1887
1928
|
);
|
|
1888
1929
|
return descriptorLiteral();
|
|
1889
1930
|
}
|
|
1890
|
-
function decodeFieldMap(ctx, refs, fields, surface, resolve = {}) {
|
|
1931
|
+
function decodeFieldMap(ctx, refs, fields, surface, resolve = {}, table = false) {
|
|
1891
1932
|
return obj2(
|
|
1892
1933
|
fields.map((field) => [
|
|
1893
1934
|
field.name,
|
|
1894
1935
|
ctx.at(
|
|
1895
1936
|
`${surface === "input" ? "input" : "schema"}.${field.name}`,
|
|
1896
|
-
() => decodeField(ctx, refs, field, surface, resolve).expr
|
|
1937
|
+
() => decodeField(ctx, refs, field, surface, resolve, table && isPrimaryKey(field)).expr
|
|
1897
1938
|
)
|
|
1898
1939
|
])
|
|
1899
1940
|
);
|
|
1900
1941
|
}
|
|
1942
|
+
function isPrimaryKey(field) {
|
|
1943
|
+
return field.name === "id";
|
|
1944
|
+
}
|
|
1901
1945
|
var ARRAY_INDEX_KEY = /^(?:0|[1-9][0-9]{0,9})$/;
|
|
1902
1946
|
function decodeTableSchema(ctx, refs, fields, resolve = {}) {
|
|
1903
1947
|
if (!fields.some((field) => ARRAY_INDEX_KEY.test(field.name) && Number(field.name) < 2 ** 32 - 1)) {
|
|
1904
|
-
return decodeFieldMap(ctx, refs, fields, "f", resolve);
|
|
1948
|
+
return decodeFieldMap(ctx, refs, fields, "f", resolve, true);
|
|
1905
1949
|
}
|
|
1906
1950
|
return arr(
|
|
1907
1951
|
fields.map(
|
|
1908
1952
|
(field) => spread(
|
|
1909
|
-
ctx.at(
|
|
1953
|
+
ctx.at(
|
|
1954
|
+
`schema.${field.name}`,
|
|
1955
|
+
() => decodeField(ctx, refs, field, "f", resolve, isPrimaryKey(field)).expr
|
|
1956
|
+
),
|
|
1910
1957
|
[["name", lit(field.name)]]
|
|
1911
1958
|
)
|
|
1912
1959
|
)
|
|
@@ -1959,6 +2006,7 @@ export {
|
|
|
1959
2006
|
arr,
|
|
1960
2007
|
spread,
|
|
1961
2008
|
arrow,
|
|
2009
|
+
untypedKey,
|
|
1962
2010
|
printExpr,
|
|
1963
2011
|
printModule,
|
|
1964
2012
|
RefIndex,
|
|
@@ -1978,4 +2026,4 @@ export {
|
|
|
1978
2026
|
decodeTableSchema,
|
|
1979
2027
|
decodeResponse
|
|
1980
2028
|
};
|
|
1981
|
-
//# sourceMappingURL=chunk-
|
|
2029
|
+
//# sourceMappingURL=chunk-WOGJB2F6.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectSdkVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KUTFFHUM.js";
|
|
4
4
|
import {
|
|
5
5
|
compareSemver,
|
|
6
6
|
parseSemver
|
|
7
7
|
} from "./chunk-2TFRR6JV.js";
|
|
8
8
|
import {
|
|
9
9
|
readVersion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5KILDDO.js";
|
|
11
11
|
import {
|
|
12
12
|
registerSecret
|
|
13
13
|
} from "./chunk-AWQ7BQTQ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-EUUUMY7J.js";
|
|
17
17
|
import {
|
|
18
18
|
serverMessage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MN2PB6WB.js";
|
|
20
20
|
import {
|
|
21
21
|
atomicWrite
|
|
22
22
|
} from "./chunk-LLNZGEFK.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
noteRunWarning,
|
|
30
30
|
style,
|
|
31
31
|
warn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-SBR2WZXG.js";
|
|
33
33
|
|
|
34
34
|
// src/emit/update-check.ts
|
|
35
35
|
import { existsSync, readFileSync, mkdirSync } from "fs";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
runExitedClean,
|
|
352
352
|
maybeNotifyUpdate
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-XCPF7BEJ.js.map
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rawResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UDZX2ZL4.js";
|
|
4
|
+
import {
|
|
5
|
+
rawWhere
|
|
6
|
+
} from "./chunk-ZY55DO5P.js";
|
|
4
7
|
import {
|
|
5
8
|
RAW_ENVELOPE
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A2AOUBJS.js";
|
|
7
10
|
import {
|
|
8
11
|
RAW_FIELD
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4DJTQ6W4.js";
|
|
10
13
|
import {
|
|
11
14
|
describeEntry
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4MIV244X.js";
|
|
13
16
|
import {
|
|
14
17
|
__export
|
|
15
18
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -20,7 +23,8 @@ __export(codegen_entry_exports, {
|
|
|
20
23
|
raw: () => raw,
|
|
21
24
|
rawField: () => rawField,
|
|
22
25
|
rawResponse: () => rawResponse,
|
|
23
|
-
rawValue: () => rawValue
|
|
26
|
+
rawValue: () => rawValue,
|
|
27
|
+
rawWhere: () => rawWhere
|
|
24
28
|
});
|
|
25
29
|
|
|
26
30
|
// src/statements/special/raw.ts
|
|
@@ -135,4 +139,4 @@ export {
|
|
|
135
139
|
rawField,
|
|
136
140
|
codegen_entry_exports
|
|
137
141
|
};
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-XMDDBEEM.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_DOCUMENTATION,
|
|
3
3
|
LEGACY_REALTIME
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6JAEMMZ7.js";
|
|
5
5
|
import {
|
|
6
6
|
identityNamesByGuid,
|
|
7
7
|
lockNameForObject,
|
|
8
8
|
sdkKindName
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OOGXZL7Z.js";
|
|
10
10
|
|
|
11
11
|
// src/codegen/omissions.ts
|
|
12
12
|
function omissionSeverity(reason) {
|
|
@@ -240,4 +240,4 @@ export {
|
|
|
240
240
|
identityName,
|
|
241
241
|
reportObjectLabel
|
|
242
242
|
};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-XXZZGXW2.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
environmentKey,
|
|
3
3
|
getEnvironment,
|
|
4
4
|
readEphemeralState
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UKUIUS3E.js";
|
|
6
6
|
import {
|
|
7
7
|
andList
|
|
8
8
|
} from "./chunk-622HUCZT.js";
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
credentialFileFlagFor,
|
|
13
13
|
credentialFileOf,
|
|
14
14
|
recordedByEnvCredential
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SEUCZZCP.js";
|
|
16
16
|
import {
|
|
17
17
|
loginCommand,
|
|
18
18
|
profileAddCommand,
|
|
19
19
|
recordedCredentialPath,
|
|
20
20
|
recordedProfileStored
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-I2BGYNHD.js";
|
|
22
22
|
import {
|
|
23
23
|
findPointerFile,
|
|
24
24
|
readPointerFile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FPBGAT5D.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_PROFILE
|
|
28
28
|
} from "./chunk-QXTKSOFI.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
CliError,
|
|
34
34
|
EXIT_SOURCE_UNRESOLVABLE,
|
|
35
35
|
UsageError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SBR2WZXG.js";
|
|
37
37
|
|
|
38
38
|
// src/emit/env-target.ts
|
|
39
39
|
var ENV_CREDENTIAL_NAMES = ["XANO_INSTANCE_URL", "XANO_WORKSPACE_ID", "XANO_META_TOKEN", "XANO_REFRESH_TOKEN", "XANO_CLIENT_ID"];
|
|
@@ -142,7 +142,7 @@ var SENDS_ELSEWHERE = /* @__PURE__ */ new WeakSet();
|
|
|
142
142
|
async function reachableFirst(refusal, auth) {
|
|
143
143
|
if (!(refusal instanceof Error) || !SENDS_ELSEWHERE.has(refusal)) return refusal;
|
|
144
144
|
if (auth === void 0 || !("access_token" in auth)) return refusal;
|
|
145
|
-
const { refuseUnreachableWorkspace } = await import("./workspace-binding-
|
|
145
|
+
const { refuseUnreachableWorkspace } = await import("./workspace-binding-BRPPUSWG.js");
|
|
146
146
|
try {
|
|
147
147
|
await refuseUnreachableWorkspace(auth);
|
|
148
148
|
} catch (unreachable) {
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
otherCredentialRefusal,
|
|
168
168
|
reachableFirst
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-YTPGQV5C.js.map
|