@xano/sdk 1.0.2 → 1.0.4

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.
Files changed (247) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/.build-fingerprint +1 -1
  3. package/dist/{agent-file-refresh-E6VSDB2M.js → agent-file-refresh-LB6KIMFY.js} +10 -10
  4. package/dist/{answer-shape-BOZSUUBR.js → answer-shape-LVV2SVBK.js} +5 -5
  5. package/dist/{backend-dir-5ER5P65P.js → backend-dir-WZADOK3L.js} +10 -10
  6. package/dist/{backend-slot-7EYY7DU5.js → backend-slot-NSCTWCUX.js} +4 -4
  7. package/dist/bin.js +62 -61
  8. package/dist/{branch-2W7SCLTJ.js → branch-ONWPJ4V6.js} +9 -9
  9. package/dist/branch-commands-ZT2MJIRS.js +79 -0
  10. package/dist/bundle.js +7 -7
  11. package/dist/{capture-WAXPD7DR.js → capture-3JNUA6C2.js} +5 -5
  12. package/dist/{chunk-2YH2I6RA.js → chunk-2AUV6NXK.js} +14 -14
  13. package/dist/{chunk-PGBSDRT4.js → chunk-2B22WWKL.js} +29 -29
  14. package/dist/{chunk-R3X7ECBS.js → chunk-2LVTBPW2.js} +3 -3
  15. package/dist/{chunk-PCJLL36N.js → chunk-37AHZ7JX.js} +6 -6
  16. package/dist/{chunk-4PCJEHA4.js → chunk-37FBPMNE.js} +4 -4
  17. package/dist/{chunk-CNYP6X7Q.js → chunk-3FN2BIGB.js} +11 -12
  18. package/dist/{chunk-5JULOSEF.js → chunk-3H3EPMFY.js} +2 -2
  19. package/dist/{chunk-YP5ME5RT.js → chunk-3HOGFGKG.js} +30 -3
  20. package/dist/{chunk-C3YIYEWR.js → chunk-3P3HXN76.js} +7 -7
  21. package/dist/{chunk-NSE7BZB6.js → chunk-44B4V2LR.js} +72 -72
  22. package/dist/{chunk-WPTLUJJR.js → chunk-45YPFB7B.js} +50 -50
  23. package/dist/{chunk-ZDPP6RKB.js → chunk-45ZUMF4E.js} +2 -2
  24. package/dist/{chunk-FEQICT4D.js → chunk-4APOHK7Y.js} +2 -2
  25. package/dist/{chunk-TTEIYD5P.js → chunk-4DJTQ6W4.js} +1 -1
  26. package/dist/{chunk-CIMQZRRE.js → chunk-4MIV244X.js} +3 -3
  27. package/dist/{chunk-G5IW3EYW.js → chunk-4PQHO74B.js} +26 -15
  28. package/dist/{chunk-MPSVU34E.js → chunk-5T2CTWTB.js} +6 -6
  29. package/dist/{chunk-IWGNIWQX.js → chunk-5W7DOMIU.js} +13 -13
  30. package/dist/{chunk-FLLBK7EH.js → chunk-5WGVIXMD.js} +3 -3
  31. package/dist/{chunk-7THLGPVA.js → chunk-5YL5OC2G.js} +12 -12
  32. package/dist/{chunk-VTLE2QDY.js → chunk-664LSWE5.js} +4 -4
  33. package/dist/{chunk-6RIKXG5I.js → chunk-6JAEMMZ7.js} +5 -5
  34. package/dist/{chunk-JGE7CAWB.js → chunk-6R7S775T.js} +2 -2
  35. package/dist/{chunk-GQ4PMMCQ.js → chunk-6VBTPV2Y.js} +3 -3
  36. package/dist/{chunk-SZOCJRFC.js → chunk-7GX445AE.js} +2 -2
  37. package/dist/{chunk-DBZASBQS.js → chunk-7KPKDHHI.js} +3 -3
  38. package/dist/{chunk-JZCR3EQM.js → chunk-7PMVIHB3.js} +20 -20
  39. package/dist/{chunk-27GWNP2I.js → chunk-7THDHQ4R.js} +9 -2
  40. package/dist/{chunk-YU4HSQW7.js → chunk-A2AOUBJS.js} +15 -8
  41. package/dist/{chunk-JIEZZ5QU.js → chunk-A6QTTJUI.js} +2 -2
  42. package/dist/{chunk-GGZILEUD.js → chunk-BEXZ4XRV.js} +2 -2
  43. package/dist/{chunk-SSK5OWT6.js → chunk-BUECLQXK.js} +4 -4
  44. package/dist/{chunk-VSL7ET5S.js → chunk-BUJRS7XB.js} +3 -3
  45. package/dist/{chunk-LZZ7HN4L.js → chunk-C4FHQA7R.js} +8 -8
  46. package/dist/{chunk-FAGYIOLE.js → chunk-CBYQ2ZN3.js} +5 -5
  47. package/dist/{chunk-L3LYWXVE.js → chunk-CFSFBKHP.js} +2 -2
  48. package/dist/{chunk-6EJQ4EJ7.js → chunk-CYB7UQA2.js} +2 -2
  49. package/dist/{chunk-PFFXX6YU.js → chunk-D5ZEAF4G.js} +42 -42
  50. package/dist/{chunk-SZCQ2HVH.js → chunk-D64XUF5Q.js} +2 -2
  51. package/dist/{chunk-36X3OZKU.js → chunk-DIG3NITC.js} +3 -3
  52. package/dist/{chunk-VIPK7FHI.js → chunk-DYG5D3FD.js} +2 -2
  53. package/dist/{chunk-FFDZFVBD.js → chunk-E65QIWOO.js} +4 -4
  54. package/dist/{chunk-DMD5I36N.js → chunk-E6H5ZEV3.js} +3 -3
  55. package/dist/{chunk-LQCMKAJ7.js → chunk-EESV6NU2.js} +3 -3
  56. package/dist/{chunk-VVE3C2X6.js → chunk-EOIJ7MVW.js} +3 -3
  57. package/dist/{chunk-2DH7VTO5.js → chunk-ESZ2FF57.js} +220 -71
  58. package/dist/{chunk-BPJIHLP2.js → chunk-ET5DSBAC.js} +8 -8
  59. package/dist/{chunk-5WGGTU5K.js → chunk-ETAZIGNT.js} +5 -5
  60. package/dist/{chunk-6X2I2WMV.js → chunk-EWCDPFW5.js} +4 -4
  61. package/dist/{chunk-YZ2UIG2K.js → chunk-FJWZ5OVV.js} +3 -3
  62. package/dist/{chunk-JWW4KU7T.js → chunk-FMOEVAGT.js} +2 -2
  63. package/dist/{chunk-Z6LUIVLY.js → chunk-FPBGAT5D.js} +2 -2
  64. package/dist/{chunk-2Y4X2VLM.js → chunk-GPI3OWRE.js} +8 -3
  65. package/dist/{chunk-D2JAPAQL.js → chunk-HHW5AWVD.js} +8 -8
  66. package/dist/{chunk-DTZSOJ6M.js → chunk-HMLGM2MW.js} +4 -4
  67. package/dist/{chunk-5KDJCQEU.js → chunk-HSEQYBDO.js} +2 -2
  68. package/dist/{chunk-XNHEGBBT.js → chunk-HUSH7LRI.js} +3 -3
  69. package/dist/{chunk-GME75QO6.js → chunk-I2BGYNHD.js} +4 -4
  70. package/dist/{chunk-XVBGLISP.js → chunk-ICK36EGF.js} +2 -2
  71. package/dist/{chunk-WT7XRC6A.js → chunk-II747OWE.js} +45 -45
  72. package/dist/{chunk-DPDHBJNI.js → chunk-IJ3SXSZM.js} +5 -5
  73. package/dist/{chunk-AHPEGODA.js → chunk-IVKRT476.js} +2 -2
  74. package/dist/{chunk-P7MBT4LJ.js → chunk-IXUPUFCG.js} +2 -2
  75. package/dist/{chunk-P7PYN6HI.js → chunk-JP7M7OU7.js} +3 -3
  76. package/dist/{chunk-QVZYYBVY.js → chunk-KCAL4QYP.js} +4 -4
  77. package/dist/{chunk-S3SV2BE7.js → chunk-KTGRGWZW.js} +7 -7
  78. package/dist/{chunk-5G5J5YRO.js → chunk-KUTFFHUM.js} +2 -2
  79. package/dist/{chunk-DRRJCODW.js → chunk-L2GLOJAO.js} +8 -8
  80. package/dist/{chunk-MOELGXVV.js → chunk-LIVN53UV.js} +13 -13
  81. package/dist/{chunk-NZOWWHU5.js → chunk-LL6ED5IB.js} +2 -2
  82. package/dist/{chunk-5RA4BBJL.js → chunk-LUTMOHOW.js} +8 -8
  83. package/dist/{chunk-G4PFESPY.js → chunk-LXNQWHZM.js} +3 -3
  84. package/dist/{chunk-D3YR6AIZ.js → chunk-MCTIKRMN.js} +7 -7
  85. package/dist/{chunk-VGV2RF5X.js → chunk-MEE5RZ6G.js} +2 -2
  86. package/dist/{chunk-GSCW6RMU.js → chunk-MLGI2SRQ.js} +4 -4
  87. package/dist/{chunk-WP4N63FZ.js → chunk-MLPDSGJQ.js} +5 -5
  88. package/dist/{chunk-PYT3DC4G.js → chunk-MN2PB6WB.js} +2 -2
  89. package/dist/{chunk-2UN4TGBK.js → chunk-MNVDVR3M.js} +4 -4
  90. package/dist/{chunk-ZP6QRKZX.js → chunk-O5V3YH5P.js} +8 -8
  91. package/dist/{chunk-WQCL3AV7.js → chunk-O7QOWS6M.js} +3 -3
  92. package/dist/{chunk-YYLRKWCZ.js → chunk-OGBMUST4.js} +14 -14
  93. package/dist/{chunk-6MR5TI5V.js → chunk-OOGXZL7Z.js} +2 -2
  94. package/dist/{chunk-EDCCKH7Y.js → chunk-OPG4DYX2.js} +90 -48
  95. package/dist/{chunk-TAHRVKKZ.js → chunk-PML67X22.js} +3 -3
  96. package/dist/{chunk-CALOC47J.js → chunk-QAEQGT5I.js} +7 -7
  97. package/dist/{chunk-OJLJA3XM.js → chunk-QV3GXQRE.js} +2 -2
  98. package/dist/{chunk-TLQE7ZN3.js → chunk-RX3EMQGN.js} +2 -2
  99. package/dist/{chunk-5OT4QGGZ.js → chunk-S7E2AHV3.js} +4 -4
  100. package/dist/{chunk-JZEWT7NY.js → chunk-SBR2WZXG.js} +4 -4
  101. package/dist/{chunk-RJOGX6LA.js → chunk-SEUCZZCP.js} +2 -2
  102. package/dist/{chunk-VUVPZYMM.js → chunk-T4DUFQ2S.js} +4 -4
  103. package/dist/{chunk-IG5QQQSA.js → chunk-TTVAHCWP.js} +2 -2
  104. package/dist/{chunk-GUKT7QYA.js → chunk-UDE5C2XN.js} +2 -2
  105. package/dist/{chunk-AKNCFVKZ.js → chunk-UDZX2ZL4.js} +1 -1
  106. package/dist/{chunk-NWKXM5RD.js → chunk-UI4OPTYR.js} +2 -2
  107. package/dist/{chunk-EJ3JCML2.js → chunk-UKUIUS3E.js} +4 -4
  108. package/dist/{chunk-HYAI62TU.js → chunk-UVF45BVU.js} +14 -9
  109. package/dist/{chunk-P2HAGF6H.js → chunk-VD32O6KZ.js} +3 -3
  110. package/dist/{chunk-ZH4O6RWX.js → chunk-VRVKNY4A.js} +7 -7
  111. package/dist/{chunk-4POWHT2K.js → chunk-VTMTIBKP.js} +8 -7
  112. package/dist/{chunk-OY4PS6SO.js → chunk-W5ONYLOP.js} +4 -4
  113. package/dist/{chunk-BTR2EQ4T.js → chunk-WFG67AYS.js} +3 -3
  114. package/dist/{chunk-CSKYCZMO.js → chunk-WFMVKY7I.js} +7 -7
  115. package/dist/{chunk-JXUBSUQY.js → chunk-WOGJB2F6.js} +66 -18
  116. package/dist/{chunk-HDIISRNY.js → chunk-WYEQFD6A.js} +87 -87
  117. package/dist/{chunk-FXFV3KU6.js → chunk-XMDDBEEM.js} +10 -6
  118. package/dist/{chunk-7K6A4O2T.js → chunk-XXZZGXW2.js} +3 -3
  119. package/dist/{chunk-64AYI7QR.js → chunk-Y2ZLKBM6.js} +4 -4
  120. package/dist/{chunk-ZNTK4GCI.js → chunk-ZG7E72VI.js} +6 -6
  121. package/dist/chunk-ZY55DO5P.js +24 -0
  122. package/dist/cli.d.ts +2 -2
  123. package/dist/cli.js +60 -59
  124. package/dist/{codegen-command-VO3RQTFX.js → codegen-command-HTWIW56U.js} +77 -76
  125. package/dist/codegen.d.ts +5 -3
  126. package/dist/codegen.js +10 -6
  127. package/dist/{commands-QZERBFE2.js → commands-CVFYC4GK.js} +3 -3
  128. package/dist/{completion-6EKRFJJG.js → completion-AUEQC4XJ.js} +3 -3
  129. package/dist/{config-PZIRRUP6.js → config-JU6OQC77.js} +4 -4
  130. package/dist/{deploy-command-UGJPAXFQ.js → deploy-command-5WTFHMBT.js} +67 -66
  131. package/dist/{deploy-source-N6DMS2C5.js → deploy-source-5CET3A5D.js} +31 -31
  132. package/dist/{dev-env-sync-EM4DWMN7.js → dev-env-sync-X636HLMK.js} +61 -60
  133. package/dist/{diagnostics-NSTYAWWN.js → diagnostics-LSMGB4TY.js} +2 -2
  134. package/dist/{display-name-hint-WT4SRTLI.js → display-name-hint-DMORHANO.js} +11 -11
  135. package/dist/{emit-BWGtkkOK.d.ts → emit-hOFbgzde.d.ts} +19 -15
  136. package/dist/env-example-refresh-ZO6XAV44.js +127 -0
  137. package/dist/{env-pull-command-OHNICDTL.js → env-pull-command-WZZ7RL2E.js} +51 -51
  138. package/dist/{env-target-5QFU2TR5.js → env-target-PO3MOLH5.js} +14 -14
  139. package/dist/{env-var-command-AZCWUGI5.js → env-var-command-YKTJZFJN.js} +40 -40
  140. package/dist/{ephemeral-76VMMZOU.js → ephemeral-BMFY55BQ.js} +9 -9
  141. package/dist/{ephemeral-command-EOAMMY3V.js → ephemeral-command-VDSQCOYL.js} +52 -52
  142. package/dist/{ephemeral-state-RRGJZBVF.js → ephemeral-state-6TY4JIPA.js} +12 -12
  143. package/dist/{generate-command-LPX3ATV6.js → generate-command-3NTNRQRS.js} +81 -80
  144. package/dist/{gitignore-BPYA5H34.js → gitignore-FWPEDX6C.js} +14 -14
  145. package/dist/{guards-FFQY3XAT.js → guards-EJU2ONAX.js} +17 -14
  146. package/dist/{impersonate-command-HLL2FKSY.js → impersonate-command-QEJA72Q2.js} +36 -36
  147. package/dist/{import-BG36DYZI.js → import-TBTOTU52.js} +5 -5
  148. package/dist/index.d.ts +151 -9
  149. package/dist/index.js +27 -26
  150. package/dist/init-command-27SFBW2F.js +126 -0
  151. package/dist/{init-modules-AAH2UPHQ.js → init-modules-HZRQFRLE.js} +8 -8
  152. package/dist/{init-web-YBUM2BD5.js → init-web-Y2PBNJTQ.js} +3 -3
  153. package/dist/internal.d.ts +5 -5
  154. package/dist/internal.js +38 -31
  155. package/dist/{io-RC56QSN5.js → io-ZUKAGFVE.js} +6 -6
  156. package/dist/{keep-data-merge-DQR6L5FV.js → keep-data-merge-X5LDDCI3.js} +39 -38
  157. package/dist/{landed-753YLJ5H.js → landed-6VO7CX5P.js} +5 -5
  158. package/dist/{landing-record-HWZTBTTP.js → landing-record-QYECWLQ5.js} +21 -21
  159. package/dist/{live-diff-VJGPLS3E.js → live-diff-2S7E3SBZ.js} +15 -15
  160. package/dist/{local-engine-choice-QDOR72VD.js → local-engine-choice-6BSPEG3E.js} +34 -34
  161. package/dist/{local-engine-command-CJKBG5M4.js → local-engine-command-HMTQK7MN.js} +39 -39
  162. package/dist/{local-engine-deploy-ACJTJ7X5.js → local-engine-deploy-TXAOYRGF.js} +12 -12
  163. package/dist/{local-engine-process-ZJUPJ7VJ.js → local-engine-process-6VZ7JJBP.js} +7 -7
  164. package/dist/{local-engine-update-check-REGHKVK7.js → local-engine-update-check-R5SPDVEJ.js} +5 -5
  165. package/dist/{lock-MRRHW5GS.js → lock-TS465GVY.js} +4 -4
  166. package/dist/{lock-commands-XTMBIWGO.js → lock-commands-4VT3L5W5.js} +67 -66
  167. package/dist/{login-command-QSNMIG4D.js → login-command-O6WA4FYL.js} +26 -26
  168. package/dist/{logout-command-AL54YZDB.js → logout-command-6CPWGFY2.js} +17 -17
  169. package/dist/{loop-XLJ7S37B.js → loop-UFHKSOQ4.js} +16 -16
  170. package/dist/{marketplace-command-UHZXGJMH.js → marketplace-command-HKACSYKS.js} +29 -29
  171. package/dist/{marketplace-resolve-4RQQ46LA.js → marketplace-resolve-KLFYVRWS.js} +6 -6
  172. package/dist/{meta-client-FFNDXZCQ.js → meta-client-73PX6UGJ.js} +15 -15
  173. package/dist/{module-manifest-TTQAEXPS.js → module-manifest-GIKFNXPE.js} +4 -4
  174. package/dist/node.d.ts +6 -6
  175. package/dist/node.js +69 -68
  176. package/dist/operation-outcome-2P4BVSEV.js +51 -0
  177. package/dist/{output-target-MVKAEPEI.js → output-target-SZMBNYF4.js} +15 -15
  178. package/dist/{plan-disclosure-ZDZISUWI.js → plan-disclosure-BHYG7TZ7.js} +29 -29
  179. package/dist/{plugin-contributions-3O2MOX3B.js → plugin-contributions-X4V22PJQ.js} +5 -5
  180. package/dist/{plugin-prompt-4ELLDFBD.js → plugin-prompt-DKNQHW6Y.js} +5 -5
  181. package/dist/{plugin-questions-JTRIFEHW.js → plugin-questions-CQRVOWFK.js} +4 -4
  182. package/dist/{preflight-command-4FFDUHNT.js → preflight-command-EBQ6XQF3.js} +74 -73
  183. package/dist/{profile-command-XV4JXLIJ.js → profile-command-NPKBJYPM.js} +27 -27
  184. package/dist/{profile-pointer-RKGBAGY6.js → profile-pointer-UOO7JNFG.js} +4 -4
  185. package/dist/{project-dependency-X7RULUFH.js → project-dependency-RRMTWOPC.js} +7 -7
  186. package/dist/{project-sdk-JYV7APT5.js → project-sdk-FOR4IOXL.js} +4 -4
  187. package/dist/promote-command-4F2NAE6P.js +141 -0
  188. package/dist/{prompt-SYH2EYXM.js → prompt-5GUQTCSP.js} +4 -4
  189. package/dist/{publish-command-KZOCPBMT.js → publish-command-LGLZBOCB.js} +70 -69
  190. package/dist/pull-command-WQFPLITW.js +162 -0
  191. package/dist/{pull-superseded-B7SOPA2M.js → pull-superseded-GGURV5J3.js} +4 -4
  192. package/dist/{response-HlXahv4K.d.ts → raw-where-EoWl5fqY.d.ts} +27 -5
  193. package/dist/release-command-2OTNVMIL.js +147 -0
  194. package/dist/{release-ns-command-TCPT6N4H.js → release-ns-command-EIBN3JVM.js} +95 -94
  195. package/dist/{retry-command-5PNYSQFN.js → retry-command-Y5YJGOH3.js} +8 -8
  196. package/dist/{routes-manifest-UPZQIGKC.js → routes-manifest-3BNZIVST.js} +17 -17
  197. package/dist/{secrets-file-6524YY62.js → secrets-file-FUG7WCES.js} +14 -14
  198. package/dist/{secrets-fill-command-VX3TIYHL.js → secrets-fill-command-QEOCUOAY.js} +64 -63
  199. package/dist/{seed-HBA6FWRQ.js → seed-GJHJSEUE.js} +13 -12
  200. package/dist/{source-resolve-ACQV343A.js → source-resolve-DMDZVPMM.js} +22 -22
  201. package/dist/{static-host-SFDXSHYY.js → static-host-WM24RG25.js} +5 -5
  202. package/dist/{status-command-X7W7PRWM.js → status-command-XUH5OGQX.js} +37 -37
  203. package/dist/{store-DVvwC4C4.d.ts → store-CfgPaVPO.d.ts} +116 -8
  204. package/dist/{store-CW5SHKXC.js → store-MR7IKXKK.js} +6 -6
  205. package/dist/{sync-contributions-VN2IEVBA.js → sync-contributions-DHP7XSTX.js} +9 -9
  206. package/dist/{table-K5YSS6MV.js → table-ZBDPKMNH.js} +12 -11
  207. package/dist/{tables-command-CJ5TF5JO.js → tables-command-X3JK7VSK.js} +40 -39
  208. package/dist/{tenant-TDTYXUGJ.js → tenant-GKXMOYLK.js} +10 -10
  209. package/dist/{tenant-command-SJDTSWGV.js → tenant-command-P27EQHBU.js} +98 -97
  210. package/dist/{test-command-4ICR3BPL.js → test-command-A4G2FP7G.js} +35 -35
  211. package/dist/{tests-NQYQJQWY.js → tests-C55M5EQS.js} +6 -6
  212. package/dist/{token-JMW2GNLV.js → token-CMAB35GD.js} +13 -13
  213. package/dist/{toolchain-hooks-VUCFFZ7A.js → toolchain-hooks-BGZBDFAT.js} +3 -3
  214. package/dist/{toolchain-modules-J7FUTUTL.js → toolchain-modules-3M7QDJBV.js} +5 -5
  215. package/dist/{tracked-backend-GOVQ4OGJ.js → tracked-backend-PZGUWD5J.js} +33 -33
  216. package/dist/update-check-LNNKIMML.js +137 -0
  217. package/dist/{upgrade-command-MWP5JE5V.js → upgrade-command-7EUXML3P.js} +65 -64
  218. package/dist/{whoami-command-URRENPGI.js → whoami-command-KNWFWAX6.js} +16 -16
  219. package/dist/{workspace-LLYL5FMC.js → workspace-TGPYOODG.js} +5 -5
  220. package/dist/{workspace-binding-DJQ5HZKG.js → workspace-binding-2TWZBHQY.js} +15 -15
  221. package/dist/{workspace-command-LZJPHSVH.js → workspace-command-T7Z2BDHD.js} +91 -90
  222. package/dist/{workspace-env-M5GF3UPN.js → workspace-env-VA7XN3UX.js} +11 -11
  223. package/dist/{workspace-export-ME52ELKP.js → workspace-export-AIGM6LC7.js} +5 -5
  224. package/dist/{writable-RQGBSRG6.js → writable-FYJBTJOU.js} +4 -4
  225. package/dist/xano-BSHYVFSE.js +43 -0
  226. package/dist/{xanosdk-import-PYZC3KWN.js → xanosdk-import-J6SRBZHW.js} +10 -10
  227. package/dist/{xanosdk-project-TWV27WO2.js → xanosdk-project-6KTCO47O.js} +12 -12
  228. package/guides/codes.md +2 -1
  229. package/guides/environment.md +1 -1
  230. package/guides/marketplace.md +7 -4
  231. package/llms/lambda.md +1 -1
  232. package/llms/legacy.md +9 -3
  233. package/llms/statements-data.md +1 -0
  234. package/llms/statements-runtime.md +1 -0
  235. package/llms-full.txt +13 -5
  236. package/llms.txt +1 -1
  237. package/manifest.json +1 -1
  238. package/package.json +1 -1
  239. package/dist/branch-commands-BNQUXQW2.js +0 -79
  240. package/dist/env-example-refresh-KJEKKD2S.js +0 -126
  241. package/dist/init-command-BC77KHUS.js +0 -125
  242. package/dist/operation-outcome-KMWK4IBN.js +0 -51
  243. package/dist/promote-command-VES2PITU.js +0 -140
  244. package/dist/pull-command-5O2JPLXN.js +0 -161
  245. package/dist/release-command-GJCCSDJF.js +0 -146
  246. package/dist/update-check-3CPTCQNK.js +0 -136
  247. package/dist/xano-EIUBBA6W.js +0 -42
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  appNamesByGuid,
3
3
  lockNameForObject
4
- } from "./chunk-6MR5TI5V.js";
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-NWKXM5RD.js.map
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-5JULOSEF.js";
10
+ } from "./chunk-3H3EPMFY.js";
11
11
  import {
12
12
  destinationKey,
13
13
  nextLandedRecord
14
- } from "./chunk-TLQE7ZN3.js";
14
+ } from "./chunk-RX3EMQGN.js";
15
15
  import {
16
16
  ensureGitignored
17
- } from "./chunk-GME75QO6.js";
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-EJ3JCML2.js.map
304
+ //# sourceMappingURL=chunk-UKUIUS3E.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  describeEntry,
10
10
  protoKeyed
11
- } from "./chunk-CIMQZRRE.js";
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
- throw new Error(
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 = skipParse ? void 0 : lambdaSyntaxError(body);
1246
+ const syntax = lambdaSyntaxError(body);
1242
1247
  if (syntax !== void 0) {
1243
- throw new Error(
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-HYAI62TU.js.map
1744
+ //# sourceMappingURL=chunk-UVF45BVU.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  applyLanding,
3
3
  withoutPrunedObjects
4
- } from "./chunk-TLQE7ZN3.js";
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-6MR5TI5V.js";
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-P2HAGF6H.js.map
73
+ //# sourceMappingURL=chunk-VD32O6KZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exportWorkspaceBundle
3
- } from "./chunk-OJLJA3XM.js";
3
+ } from "./chunk-QV3GXQRE.js";
4
4
  import {
5
5
  encodeWorkspaceArchive,
6
6
  readArchiveEntries
@@ -10,23 +10,23 @@ import {
10
10
  } from "./chunk-X4DVXBFY.js";
11
11
  import {
12
12
  resolveSource
13
- } from "./chunk-2YH2I6RA.js";
13
+ } from "./chunk-2AUV6NXK.js";
14
14
  import {
15
15
  downloadRelease
16
- } from "./chunk-JIEZZ5QU.js";
16
+ } from "./chunk-A6QTTJUI.js";
17
17
  import {
18
18
  backendDirIn
19
- } from "./chunk-DMD5I36N.js";
19
+ } from "./chunk-E6H5ZEV3.js";
20
20
  import {
21
21
  BARE,
22
22
  UsageError,
23
23
  isKindShaped,
24
24
  parseSource,
25
25
  relForwardSlash
26
- } from "./chunk-JZEWT7NY.js";
26
+ } from "./chunk-SBR2WZXG.js";
27
27
  import {
28
28
  calcSignatureJson
29
- } from "./chunk-LQCMKAJ7.js";
29
+ } from "./chunk-EESV6NU2.js";
30
30
 
31
31
  // src/emit/deploy-source.ts
32
32
  import { existsSync } from "fs";
@@ -144,4 +144,4 @@ export {
144
144
  gatedApiGroups,
145
145
  asWorkspaceArchive
146
146
  };
147
- //# sourceMappingURL=chunk-ZH4O6RWX.js.map
147
+ //# sourceMappingURL=chunk-VRVKNY4A.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  statementLabel
3
- } from "./chunk-YU4HSQW7.js";
3
+ } from "./chunk-A2AOUBJS.js";
4
4
  import {
5
5
  PROTO_KEY,
6
6
  describeEntry,
7
7
  protoKeyed
8
- } from "./chunk-CIMQZRRE.js";
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 (/^[0-9a-f]{32}$/.test(testName)) {
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 (/^[0-9a-f]{32}$/.test(key)) continue;
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" || !/^[0-9a-f]{32}$/.test(t.id)) {
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, the form the engine stores. Omit \`id\` to derive one from the test name, or copy the stored id.`
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-4POWHT2K.js.map
322
+ //# sourceMappingURL=chunk-VTMTIBKP.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  listTenants
3
- } from "./chunk-QVZYYBVY.js";
3
+ } from "./chunk-KCAL4QYP.js";
4
4
  import {
5
5
  listEphemeral
6
- } from "./chunk-SSK5OWT6.js";
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-JZEWT7NY.js";
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-OY4PS6SO.js.map
120
+ //# sourceMappingURL=chunk-W5ONYLOP.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  questionOrCancel
3
- } from "./chunk-FEQICT4D.js";
3
+ } from "./chunk-4APOHK7Y.js";
4
4
  import {
5
5
  style,
6
6
  terminalText
7
- } from "./chunk-JZEWT7NY.js";
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-BTR2EQ4T.js.map
57
+ //# sourceMappingURL=chunk-WFG67AYS.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  confirm
3
- } from "./chunk-FEQICT4D.js";
3
+ } from "./chunk-4APOHK7Y.js";
4
4
  import {
5
5
  ProfileNotFoundError,
6
6
  describeRefreshAnswer,
7
7
  environmentCredentialVars
8
- } from "./chunk-5RA4BBJL.js";
8
+ } from "./chunk-LUTMOHOW.js";
9
9
  import {
10
10
  yesRerun
11
- } from "./chunk-JWW4KU7T.js";
11
+ } from "./chunk-FMOEVAGT.js";
12
12
  import {
13
13
  OpenIdProvider,
14
14
  assertCredentialFileRemovable,
@@ -31,11 +31,11 @@ import {
31
31
  resolveScope,
32
32
  withCredentialLock,
33
33
  writeOrRemoveCredentialFile
34
- } from "./chunk-GME75QO6.js";
34
+ } from "./chunk-I2BGYNHD.js";
35
35
  import {
36
36
  findProjectPointer,
37
37
  resolveProjectProfile
38
- } from "./chunk-Z6LUIVLY.js";
38
+ } from "./chunk-FPBGAT5D.js";
39
39
  import {
40
40
  resolveActiveProfile
41
41
  } from "./chunk-QXTKSOFI.js";
@@ -50,7 +50,7 @@ import {
50
50
  success,
51
51
  warn,
52
52
  writeJson
53
- } from "./chunk-JZEWT7NY.js";
53
+ } from "./chunk-SBR2WZXG.js";
54
54
  import {
55
55
  suggestAll
56
56
  } from "./chunk-UTI5G6OJ.js";
@@ -429,4 +429,4 @@ export {
429
429
  salvageRevocable,
430
430
  signInAgain
431
431
  };
432
- //# sourceMappingURL=chunk-CSKYCZMO.js.map
432
+ //# sourceMappingURL=chunk-WFMVKY7I.js.map
@@ -6,12 +6,12 @@ import {
6
6
  } from "./chunk-3YW23UFH.js";
7
7
  import {
8
8
  obj
9
- } from "./chunk-DBZASBQS.js";
9
+ } from "./chunk-7KPKDHHI.js";
10
10
  import {
11
11
  FILTER_NAMES,
12
12
  FILTER_REQUIRED_ARGS,
13
13
  fl
14
- } from "./chunk-GGZILEUD.js";
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-YP5ME5RT.js";
28
+ } from "./chunk-3HOGFGKG.js";
29
29
  import {
30
30
  f,
31
31
  input
32
- } from "./chunk-4PCJEHA4.js";
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-HYAI62TU.js";
50
+ } from "./chunk-UVF45BVU.js";
51
51
  import {
52
52
  REFERENCEABLE_KIND_PAYLOAD_KEYS
53
- } from "./chunk-NZOWWHU5.js";
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-TTEIYD5P.js";
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 recoverMethods(stored) {
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 shorthand = ENUMERATED_METHODS.has(method.name) ? colonForm(method.name, args) : null;
1596
- out2.push(shorthand ?? { name: method.name, arg: [...args] });
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(`schema.${field.name}`, () => decodeField(ctx, refs, field, "f", resolve).expr),
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-JXUBSUQY.js.map
2029
+ //# sourceMappingURL=chunk-WOGJB2F6.js.map