@xano/sdk 1.0.1 → 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.
Files changed (245) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/.build-fingerprint +1 -1
  3. package/dist/{agent-file-refresh-T7BL3JDV.js → agent-file-refresh-MQKCS7QZ.js} +10 -10
  4. package/dist/{answer-shape-K67TAAPY.js → answer-shape-LVV2SVBK.js} +5 -5
  5. package/dist/{backend-dir-2EYNX36R.js → backend-dir-DGAQL4K5.js} +10 -10
  6. package/dist/{backend-slot-7QXW2QYC.js → backend-slot-NSCTWCUX.js} +4 -4
  7. package/dist/bin.js +62 -61
  8. package/dist/{branch-NCRNWQBQ.js → branch-ONWPJ4V6.js} +9 -9
  9. package/dist/branch-commands-R4PPN3Z7.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-RLHYFD2R.js → chunk-2CGPQ7IM.js} +6 -6
  13. package/dist/{chunk-73IVBKMA.js → chunk-2LVTBPW2.js} +3 -3
  14. package/dist/{chunk-U64O2MXY.js → chunk-37AHZ7JX.js} +6 -6
  15. package/dist/{chunk-N5GKCWE5.js → chunk-37FBPMNE.js} +4 -4
  16. package/dist/{chunk-JZGVVJSI.js → chunk-3H3EPMFY.js} +2 -2
  17. package/dist/{chunk-L5JYN3NM.js → chunk-3HOGFGKG.js} +30 -3
  18. package/dist/{chunk-ZDPP6RKB.js → chunk-45ZUMF4E.js} +2 -2
  19. package/dist/{chunk-ES3TNTLS.js → chunk-46TUUNM3.js} +14 -14
  20. package/dist/{chunk-65HWOMGV.js → chunk-4APOHK7Y.js} +2 -2
  21. package/dist/{chunk-TTEIYD5P.js → chunk-4DJTQ6W4.js} +1 -1
  22. package/dist/{chunk-CIMQZRRE.js → chunk-4MIV244X.js} +3 -3
  23. package/dist/{chunk-HVRUQXGD.js → chunk-4PQHO74B.js} +26 -15
  24. package/dist/{chunk-BWPNT55T.js → chunk-5T2CTWTB.js} +6 -6
  25. package/dist/{chunk-6IUMKYWI.js → chunk-5W7DOMIU.js} +13 -13
  26. package/dist/{chunk-CTMO46PK.js → chunk-5YL5OC2G.js} +12 -12
  27. package/dist/{chunk-2CMJZDCL.js → chunk-6JAEMMZ7.js} +5 -5
  28. package/dist/{chunk-AAX2S6OU.js → chunk-6NYLVUSZ.js} +42 -42
  29. package/dist/{chunk-JGE7CAWB.js → chunk-6R7S775T.js} +2 -2
  30. package/dist/{chunk-G554NZNI.js → chunk-7GX445AE.js} +2 -2
  31. package/dist/{chunk-BU5GWPBO.js → chunk-7KGASMCE.js} +7 -7
  32. package/dist/{chunk-NK2633D7.js → chunk-7KLAMYMS.js} +220 -71
  33. package/dist/{chunk-K5BBGTYZ.js → chunk-7KPKDHHI.js} +3 -3
  34. package/dist/{chunk-27GWNP2I.js → chunk-7THDHQ4R.js} +9 -2
  35. package/dist/{chunk-LCMQNVHL.js → chunk-7TXBKK5G.js} +7 -7
  36. package/dist/{chunk-YU4HSQW7.js → chunk-A2AOUBJS.js} +15 -8
  37. package/dist/{chunk-OIQH34Q5.js → chunk-A4KBHTMK.js} +29 -29
  38. package/dist/{chunk-2ZUEE4EK.js → chunk-A6QTTJUI.js} +2 -2
  39. package/dist/{chunk-ZPSPKPXK.js → chunk-AMTJ4G32.js} +5 -5
  40. package/dist/{chunk-6QXLMMT3.js → chunk-ANHOEBTJ.js} +4 -4
  41. package/dist/{chunk-6HO3NCSJ.js → chunk-BEXZ4XRV.js} +2 -2
  42. package/dist/{chunk-7G3CTU7I.js → chunk-BUECLQXK.js} +4 -4
  43. package/dist/{chunk-MJ4ZVHKN.js → chunk-BUJRS7XB.js} +3 -3
  44. package/dist/{chunk-3KZCLN4Z.js → chunk-CBYQ2ZN3.js} +5 -5
  45. package/dist/{chunk-6PBR37LN.js → chunk-CFSFBKHP.js} +2 -2
  46. package/dist/{chunk-PV7BGEF2.js → chunk-CJPLBFFY.js} +8 -8
  47. package/dist/{chunk-APWXY5SL.js → chunk-CYB7UQA2.js} +2 -2
  48. package/dist/{chunk-TGPYAMVT.js → chunk-D3XOH7E7.js} +8 -8
  49. package/dist/{chunk-6ELFRN3P.js → chunk-D64XUF5Q.js} +2 -2
  50. package/dist/{chunk-ZIY7RNUT.js → chunk-DIG3NITC.js} +3 -3
  51. package/dist/{chunk-3LDULPRE.js → chunk-DYG5D3FD.js} +2 -2
  52. package/dist/{chunk-TRJCALW3.js → chunk-E65QIWOO.js} +4 -4
  53. package/dist/{chunk-LQCMKAJ7.js → chunk-EESV6NU2.js} +3 -3
  54. package/dist/{chunk-IGOLHKWF.js → chunk-EOIJ7MVW.js} +3 -3
  55. package/dist/{chunk-KUI7V576.js → chunk-ERJNHEFV.js} +3 -3
  56. package/dist/{chunk-5V5XU32D.js → chunk-ETAZIGNT.js} +5 -5
  57. package/dist/{chunk-FXRQOWTE.js → chunk-EWCDPFW5.js} +4 -4
  58. package/dist/{chunk-JLUAWKX2.js → chunk-F5KILDDO.js} +87 -87
  59. package/dist/{chunk-T5KELPAR.js → chunk-FMOEVAGT.js} +2 -2
  60. package/dist/{chunk-5FBYXK5P.js → chunk-FPBGAT5D.js} +2 -2
  61. package/dist/{chunk-2GNFDZA2.js → chunk-FSYVOCS7.js} +5 -5
  62. package/dist/{chunk-ZFKZMSM3.js → chunk-FURLOAUM.js} +3 -3
  63. package/dist/{chunk-OFEID2IX.js → chunk-FWXSTFN2.js} +4 -4
  64. package/dist/{chunk-2EZ3ZJZZ.js → chunk-GPI3OWRE.js} +16 -5
  65. package/dist/{chunk-AWMTT5U7.js → chunk-HHFPIJGL.js} +3 -3
  66. package/dist/{chunk-MZ4EQX7X.js → chunk-HHW5AWVD.js} +8 -8
  67. package/dist/{chunk-45UIT5T2.js → chunk-HMLGM2MW.js} +4 -4
  68. package/dist/{chunk-LPECSJ2J.js → chunk-HSEQYBDO.js} +2 -2
  69. package/dist/{chunk-XW6KISBB.js → chunk-I2BGYNHD.js} +4 -4
  70. package/dist/{chunk-XVBGLISP.js → chunk-ICK36EGF.js} +2 -2
  71. package/dist/{chunk-MXHSQOC4.js → chunk-II747OWE.js} +45 -45
  72. package/dist/{chunk-JTGBGL37.js → chunk-IRQCV3OT.js} +4 -4
  73. package/dist/{chunk-D53J55C5.js → chunk-IVKRT476.js} +2 -2
  74. package/dist/{chunk-H5C7MBCR.js → chunk-IXUPUFCG.js} +2 -2
  75. package/dist/{chunk-TPCOHYPG.js → chunk-JTM5D7CT.js} +8 -8
  76. package/dist/{chunk-TLJWHLBK.js → chunk-K3LE5B5E.js} +72 -72
  77. package/dist/{chunk-A3UDOZB6.js → chunk-KCAL4QYP.js} +4 -4
  78. package/dist/{chunk-FQJ2TTHP.js → chunk-KTGRGWZW.js} +7 -7
  79. package/dist/{chunk-D7VGG3WS.js → chunk-KUTFFHUM.js} +2 -2
  80. package/dist/{chunk-VAL32UEI.js → chunk-KXYW3DRR.js} +7 -7
  81. package/dist/{chunk-OFISBMQ6.js → chunk-LAKHO2B7.js} +8 -8
  82. package/dist/{chunk-NZOWWHU5.js → chunk-LL6ED5IB.js} +2 -2
  83. package/dist/{chunk-6ZGJCBZS.js → chunk-LXNQWHZM.js} +3 -3
  84. package/dist/{chunk-AN6BL47T.js → chunk-MEE5RZ6G.js} +2 -2
  85. package/dist/{chunk-YLDALTWZ.js → chunk-MN2PB6WB.js} +2 -2
  86. package/dist/{chunk-C6RIMRU4.js → chunk-MNVDVR3M.js} +4 -4
  87. package/dist/{chunk-HSBVDFU2.js → chunk-NPXM6ZQY.js} +4 -4
  88. package/dist/{chunk-IFSNSRUJ.js → chunk-O7QOWS6M.js} +3 -3
  89. package/dist/{chunk-2KETYQPN.js → chunk-OO63ZU46.js} +7 -7
  90. package/dist/{chunk-6MR5TI5V.js → chunk-OOGXZL7Z.js} +2 -2
  91. package/dist/{chunk-YGZHHAAB.js → chunk-OPG4DYX2.js} +94 -52
  92. package/dist/{chunk-TNM7VE7N.js → chunk-PWIXETG7.js} +4 -4
  93. package/dist/{chunk-DBMN5YLZ.js → chunk-QEZL5MPJ.js} +3 -3
  94. package/dist/{chunk-CJHQKJU4.js → chunk-QV3GXQRE.js} +2 -2
  95. package/dist/{chunk-TLQE7ZN3.js → chunk-RX3EMQGN.js} +2 -2
  96. package/dist/{chunk-PTHVMXZI.js → chunk-SBR2WZXG.js} +4 -4
  97. package/dist/{chunk-SAC4DYYP.js → chunk-SEATQLFB.js} +13 -13
  98. package/dist/{chunk-NAQDMEHV.js → chunk-SEUCZZCP.js} +2 -2
  99. package/dist/{chunk-RTJRZFFY.js → chunk-TTVAHCWP.js} +2 -2
  100. package/dist/{chunk-STSFNCY4.js → chunk-UDE5C2XN.js} +2 -2
  101. package/dist/{chunk-AKNCFVKZ.js → chunk-UDZX2ZL4.js} +1 -1
  102. package/dist/{chunk-NWKXM5RD.js → chunk-UI4OPTYR.js} +2 -2
  103. package/dist/{chunk-5QU2P5CA.js → chunk-UKUIUS3E.js} +4 -4
  104. package/dist/{chunk-OXA6PSZT.js → chunk-UVF45BVU.js} +35 -16
  105. package/dist/{chunk-PA43WZWS.js → chunk-UWY3R4TS.js} +8 -8
  106. package/dist/{chunk-P2HAGF6H.js → chunk-VD32O6KZ.js} +3 -3
  107. package/dist/{chunk-4POWHT2K.js → chunk-VTMTIBKP.js} +8 -7
  108. package/dist/{chunk-UZ6QQWJT.js → chunk-W5ONYLOP.js} +4 -4
  109. package/dist/{chunk-IDOTCMDV.js → chunk-WFG67AYS.js} +3 -3
  110. package/dist/{chunk-IC23IKRU.js → chunk-WGA25EV5.js} +3 -3
  111. package/dist/{chunk-TPHWJ7UG.js → chunk-WOGJB2F6.js} +66 -18
  112. package/dist/{chunk-YY2UY7PZ.js → chunk-XCPF7BEJ.js} +5 -5
  113. package/dist/{chunk-FXFV3KU6.js → chunk-XMDDBEEM.js} +10 -6
  114. package/dist/{chunk-HRVBLCVJ.js → chunk-XXZZGXW2.js} +3 -3
  115. package/dist/{chunk-CHRP4RHP.js → chunk-YTPGQV5C.js} +7 -7
  116. package/dist/{chunk-SKMZGS3L.js → chunk-Z5UCPWGU.js} +20 -20
  117. package/dist/{chunk-UF7TI3BS.js → chunk-ZH5R7NKN.js} +3 -3
  118. package/dist/{chunk-FXGJ7TEQ.js → chunk-ZTUNCVAR.js} +50 -50
  119. package/dist/{chunk-UCZZ6KRR.js → chunk-ZVYN4FXD.js} +14 -14
  120. package/dist/chunk-ZY55DO5P.js +24 -0
  121. package/dist/{chunk-NM2X7SQ3.js → chunk-ZZEIC5PT.js} +3 -3
  122. package/dist/cli.d.ts +2 -2
  123. package/dist/cli.js +60 -59
  124. package/dist/{codegen-command-XEHCGZHH.js → codegen-command-SW2AP7KR.js} +77 -76
  125. package/dist/codegen.d.ts +5 -3
  126. package/dist/codegen.js +10 -6
  127. package/dist/{commands-GJMJ4XYZ.js → commands-CVFYC4GK.js} +3 -3
  128. package/dist/{completion-ZQLO6PB6.js → completion-AUEQC4XJ.js} +3 -3
  129. package/dist/{config-MBYGCAFK.js → config-JU6OQC77.js} +4 -4
  130. package/dist/{deploy-command-V2EMVVK2.js → deploy-command-RD6W7PXN.js} +67 -66
  131. package/dist/{deploy-source-4BRH7JMY.js → deploy-source-ULSWF2V7.js} +31 -31
  132. package/dist/{dev-env-sync-4334IEDW.js → dev-env-sync-E2GFIVC5.js} +61 -60
  133. package/dist/{diagnostics-UEAAHWVF.js → diagnostics-LSMGB4TY.js} +2 -2
  134. package/dist/{display-name-hint-ABBPVQIR.js → display-name-hint-DMORHANO.js} +11 -11
  135. package/dist/{emit-CyhBDxli.d.ts → emit-hOFbgzde.d.ts} +19 -15
  136. package/dist/env-example-refresh-WFKGILLY.js +127 -0
  137. package/dist/{env-pull-command-E6UITJ75.js → env-pull-command-QYQEOUE3.js} +51 -51
  138. package/dist/{env-target-76MVYUD4.js → env-target-KUWQYHZ7.js} +14 -14
  139. package/dist/{env-var-command-J2LKNUEQ.js → env-var-command-2ZAVIPNY.js} +40 -40
  140. package/dist/{ephemeral-P7F3PMAD.js → ephemeral-BMFY55BQ.js} +9 -9
  141. package/dist/{ephemeral-command-YZATIADS.js → ephemeral-command-UKHBT3OW.js} +52 -52
  142. package/dist/{ephemeral-state-PYCBSOGX.js → ephemeral-state-6TY4JIPA.js} +12 -12
  143. package/dist/{generate-command-XSKLN7ST.js → generate-command-YN3HZWHG.js} +81 -80
  144. package/dist/{gitignore-W23MIWX6.js → gitignore-AU5X5F3I.js} +14 -14
  145. package/dist/{guards-4EBNCZDC.js → guards-EJU2ONAX.js} +17 -14
  146. package/dist/{impersonate-command-YZMTA7NW.js → impersonate-command-ZKE77GFT.js} +36 -36
  147. package/dist/{import-EQSFU6JC.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-NPXBMJNG.js +126 -0
  151. package/dist/{init-modules-IAVCXWX3.js → init-modules-5TSTLGH5.js} +8 -8
  152. package/dist/{init-web-M4YZSZK6.js → init-web-Y2PBNJTQ.js} +3 -3
  153. package/dist/internal.d.ts +5 -5
  154. package/dist/internal.js +38 -30
  155. package/dist/{io-RC56QSN5.js → io-ZUKAGFVE.js} +6 -6
  156. package/dist/{keep-data-merge-M4ULDZB6.js → keep-data-merge-TDSELE5U.js} +39 -38
  157. package/dist/{landed-753YLJ5H.js → landed-6VO7CX5P.js} +5 -5
  158. package/dist/{landing-record-JLN6BCQY.js → landing-record-W7VQ4KV4.js} +21 -21
  159. package/dist/{live-diff-YONW2VI3.js → live-diff-2S7E3SBZ.js} +15 -15
  160. package/dist/{local-engine-choice-QOQJZ5P2.js → local-engine-choice-OXULXWEP.js} +34 -34
  161. package/dist/{local-engine-command-YVNO5ETS.js → local-engine-command-5MTGZIZ4.js} +39 -39
  162. package/dist/{local-engine-deploy-AWA65WR2.js → local-engine-deploy-TXAOYRGF.js} +12 -12
  163. package/dist/{local-engine-process-SQLSK3AB.js → local-engine-process-6VZ7JJBP.js} +7 -7
  164. package/dist/{local-engine-update-check-6L645VBL.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-GU3TKPWU.js → lock-commands-OBXAUSZX.js} +67 -66
  167. package/dist/{login-command-FPKDGYUR.js → login-command-CB3O3UDZ.js} +26 -26
  168. package/dist/{logout-command-MQD3L46D.js → logout-command-J5CP5HZZ.js} +17 -17
  169. package/dist/{loop-ALIZLOSX.js → loop-UFHKSOQ4.js} +16 -16
  170. package/dist/{marketplace-command-25ZYWSHI.js → marketplace-command-A5S25ZHF.js} +28 -28
  171. package/dist/{marketplace-resolve-LY32JES5.js → marketplace-resolve-GRXMK5YD.js} +6 -6
  172. package/dist/{meta-client-JPGG2ZHS.js → meta-client-FB73643X.js} +15 -15
  173. package/dist/{module-manifest-JFGHU2TC.js → module-manifest-GIKFNXPE.js} +4 -4
  174. package/dist/node.d.ts +8 -8
  175. package/dist/node.js +69 -68
  176. package/dist/operation-outcome-V4FUJI7V.js +51 -0
  177. package/dist/{output-target-NTJAO4VA.js → output-target-6HNPK6KC.js} +15 -15
  178. package/dist/{plan-disclosure-6G4MLZKD.js → plan-disclosure-BHYG7TZ7.js} +29 -29
  179. package/dist/{plugin-contributions-WRNY5ABG.js → plugin-contributions-X4V22PJQ.js} +5 -5
  180. package/dist/{plugin-prompt-4VA3B4FF.js → plugin-prompt-DKNQHW6Y.js} +5 -5
  181. package/dist/{plugin-questions-JTSYA74Q.js → plugin-questions-CQRVOWFK.js} +4 -4
  182. package/dist/{preflight-command-OPIVTVIJ.js → preflight-command-NZ75PSRL.js} +74 -73
  183. package/dist/{profile-command-RW7LJZWN.js → profile-command-KIRI4GA4.js} +27 -27
  184. package/dist/{profile-pointer-GRWJU3YD.js → profile-pointer-UOO7JNFG.js} +4 -4
  185. package/dist/{project-dependency-KSH63ODT.js → project-dependency-JGCJZ26H.js} +7 -7
  186. package/dist/{project-sdk-REPPOIBD.js → project-sdk-FOR4IOXL.js} +4 -4
  187. package/dist/promote-command-IPDH5OBT.js +141 -0
  188. package/dist/{prompt-II3F3LND.js → prompt-5GUQTCSP.js} +4 -4
  189. package/dist/{publish-command-WIQCLPIU.js → publish-command-74HMEZ7E.js} +70 -69
  190. package/dist/pull-command-VO5RRGZ5.js +162 -0
  191. package/dist/{pull-superseded-GJWLG7XO.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-ZHM5FA4M.js +147 -0
  194. package/dist/{release-ns-command-HGKCE56Y.js → release-ns-command-2TL26YOM.js} +95 -94
  195. package/dist/{retry-command-AS5EVREX.js → retry-command-Y5YJGOH3.js} +8 -8
  196. package/dist/{routes-manifest-SNWUVBT6.js → routes-manifest-3BNZIVST.js} +17 -17
  197. package/dist/{secrets-file-O5GABAHH.js → secrets-file-NBBR6DYS.js} +14 -14
  198. package/dist/{secrets-fill-command-XSONDOOT.js → secrets-fill-command-X3HQ4JYN.js} +64 -63
  199. package/dist/{seed-VU7C3QYS.js → seed-GJHJSEUE.js} +13 -12
  200. package/dist/{source-resolve-UE7DHWYR.js → source-resolve-NTI3JFO6.js} +22 -22
  201. package/dist/{static-host-B2Y6AG3W.js → static-host-WM24RG25.js} +5 -5
  202. package/dist/{status-command-QIC7QCWJ.js → status-command-RVMOLYPR.js} +37 -37
  203. package/dist/{store-DuYfzKlW.d.ts → store-CfgPaVPO.d.ts} +125 -5
  204. package/dist/{store-ARM6VMO5.js → store-MR7IKXKK.js} +6 -6
  205. package/dist/{sync-contributions-WEKCYMP6.js → sync-contributions-KGCVRH2J.js} +9 -9
  206. package/dist/{table-ENAVMITR.js → table-ZBDPKMNH.js} +12 -11
  207. package/dist/{tables-command-VBIAU4HI.js → tables-command-GAOXJPMA.js} +40 -39
  208. package/dist/{tenant-IIHPOHGP.js → tenant-GKXMOYLK.js} +10 -10
  209. package/dist/{tenant-command-JXDHHIZH.js → tenant-command-FAJ7WZTH.js} +98 -97
  210. package/dist/{test-command-ST2BXOEH.js → test-command-53FRDZ32.js} +35 -35
  211. package/dist/{tests-BGGIOK3L.js → tests-C55M5EQS.js} +6 -6
  212. package/dist/{token-OZV2UJQA.js → token-44CKLYWD.js} +13 -13
  213. package/dist/{toolchain-hooks-GHKLUJOH.js → toolchain-hooks-BGZBDFAT.js} +3 -3
  214. package/dist/{toolchain-modules-DCKB4AVK.js → toolchain-modules-MPPH633S.js} +5 -5
  215. package/dist/{tracked-backend-JX2YUXTZ.js → tracked-backend-AJLHRGLF.js} +33 -33
  216. package/dist/update-check-Q4HJHHL5.js +137 -0
  217. package/dist/{upgrade-command-PKZPJKAV.js → upgrade-command-C63HIBVH.js} +65 -64
  218. package/dist/{whoami-command-IN2DJHSI.js → whoami-command-WC5EKB4W.js} +16 -16
  219. package/dist/{workspace-4STTFOPC.js → workspace-EJVWTIWX.js} +5 -5
  220. package/dist/{workspace-binding-T3HVSO4V.js → workspace-binding-BRPPUSWG.js} +15 -15
  221. package/dist/{workspace-command-3NQQRB7E.js → workspace-command-Y6STVPYO.js} +91 -90
  222. package/dist/{workspace-env-MWJFQ6O3.js → workspace-env-SIINWNMP.js} +11 -11
  223. package/dist/{workspace-export-OJSH2HIW.js → workspace-export-AIGM6LC7.js} +5 -5
  224. package/dist/{writable-VA7OISSK.js → writable-FYJBTJOU.js} +4 -4
  225. package/dist/xano-BSHYVFSE.js +43 -0
  226. package/dist/{xanosdk-import-N6OTERC6.js → xanosdk-import-UKEO7R7O.js} +10 -10
  227. package/dist/{xanosdk-project-7RIKS2ZQ.js → xanosdk-project-MQTZKITV.js} +12 -12
  228. package/guides/codes.md +2 -1
  229. package/llms/lambda.md +1 -0
  230. package/llms/legacy.md +9 -3
  231. package/llms/statements-data.md +1 -0
  232. package/llms/statements-runtime.md +1 -0
  233. package/llms-full.txt +13 -4
  234. package/llms.txt +1 -1
  235. package/manifest.json +1 -1
  236. package/package.json +1 -1
  237. package/dist/branch-commands-D7MVAOSY.js +0 -79
  238. package/dist/env-example-refresh-GQKAQDWO.js +0 -126
  239. package/dist/init-command-CEYEFIS2.js +0 -125
  240. package/dist/operation-outcome-QH6IZEV5.js +0 -51
  241. package/dist/promote-command-TYPJDNRW.js +0 -140
  242. package/dist/pull-command-4LVTKE4S.js +0 -161
  243. package/dist/release-command-JJ3QDX3T.js +0 -146
  244. package/dist/update-check-K557PAI7.js +0 -136
  245. package/dist/xano-ICFUSPFR.js +0 -42
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parsePathParams,
3
3
  pathSegment
4
- } from "./chunk-6IUMKYWI.js";
4
+ } from "./chunk-5W7DOMIU.js";
5
5
 
6
6
  // src/emit/routes-manifest.ts
7
7
  var RouteManifestError = class extends Error {
@@ -444,4 +444,4 @@ export {
444
444
  unresolvedCanonicalMessage,
445
445
  renderPlannedManifest
446
446
  };
447
- //# sourceMappingURL=chunk-RTJRZFFY.js.map
447
+ //# sourceMappingURL=chunk-TTVAHCWP.js.map
@@ -7,7 +7,7 @@ import {
7
7
  isKindShaped,
8
8
  parseSource,
9
9
  sourceSpellings
10
- } from "./chunk-PTHVMXZI.js";
10
+ } from "./chunk-SBR2WZXG.js";
11
11
 
12
12
  // src/emit/backend-slot.ts
13
13
  function commandPath(command, subcommand) {
@@ -124,4 +124,4 @@ export {
124
124
  refusedKind,
125
125
  parseSlot
126
126
  };
127
- //# sourceMappingURL=chunk-STSFNCY4.js.map
127
+ //# sourceMappingURL=chunk-UDE5C2XN.js.map
@@ -33,4 +33,4 @@ export {
33
33
  rawResponse,
34
34
  rawResponseItems
35
35
  };
36
- //# sourceMappingURL=chunk-AKNCFVKZ.js.map
36
+ //# sourceMappingURL=chunk-UDZX2ZL4.js.map
@@ -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-JZGVVJSI.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-XW6KISBB.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-5QU2P5CA.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
@@ -856,7 +856,7 @@ function assertLambdaFilterArgs(name, args) {
856
856
  if (site === void 0) return;
857
857
  const code = args[site.slot];
858
858
  if (!isInspectableBody(code) || code.value.trim() === "") return;
859
- assertLambdaBody(code.value, site.surface, `fl.${name}`);
859
+ assertLambdaBody(code.value, site.surface, `fl.${name}`, isUncheckedBody(code));
860
860
  }
861
861
  var LAMBDA_STATEMENTS = {
862
862
  "mvp:lambda": { field: "code", surface: "s.lambda" }
@@ -871,7 +871,7 @@ function assertLambdaStatement(storedName, authored) {
871
871
  if (site === void 0) return;
872
872
  const code = authored[site.field];
873
873
  if (!isInspectableBody(code) || code.value.trim() === "") return;
874
- assertLambdaBody(code.value, site.surface, "s.lambda");
874
+ assertLambdaBody(code.value, site.surface, "s.lambda", isUncheckedBody(code));
875
875
  }
876
876
  function isInspectableBody(code) {
877
877
  return typeof code === "object" && code !== null && code.tag === "const" && typeof code.value === "string" && (code.filters?.length ?? 0) === 0;
@@ -1172,9 +1172,9 @@ function suggestion(token, surface) {
1172
1172
  }
1173
1173
  return void 0;
1174
1174
  }
1175
- function assertLambdaBody(body, surface, source = `${PREFIX}.fn`) {
1175
+ function assertLambdaBody(body, surface, source = `${PREFIX}.fn`, skipParse = false) {
1176
1176
  try {
1177
- assertBody(body, surface, source);
1177
+ assertBody(body, surface, source, skipParse);
1178
1178
  } catch (err) {
1179
1179
  if (collector === null) throw err;
1180
1180
  collector(err instanceof Error ? err.message : String(err));
@@ -1190,6 +1190,14 @@ function collectLambdaBodyProblems(onProblem, fn2) {
1190
1190
  collector = previous;
1191
1191
  }
1192
1192
  }
1193
+ var UNCHECKED_BODIES = /* @__PURE__ */ Symbol.for("xanosdk.lambda.unchecked");
1194
+ function uncheckedBodies() {
1195
+ const slot = globalThis;
1196
+ return slot[UNCHECKED_BODIES] ??= /* @__PURE__ */ new WeakSet();
1197
+ }
1198
+ function isUncheckedBody(code) {
1199
+ return typeof code === "object" && code !== null && uncheckedBodies().has(code);
1200
+ }
1193
1201
  var SYNTAX_CHECK = /* @__PURE__ */ Symbol.for("xanosdk.lambda.syntax-check");
1194
1202
  var FREE_READS = /* @__PURE__ */ Symbol.for("xanosdk.lambda.free-reads");
1195
1203
  function installLambdaFreeReads(reader) {
@@ -1202,7 +1210,7 @@ function lambdaSyntaxError(body) {
1202
1210
  const check = globalThis[SYNTAX_CHECK];
1203
1211
  return typeof check === "function" ? check(body) : void 0;
1204
1212
  }
1205
- function assertBody(body, surface, source) {
1213
+ function assertBody(body, surface, source, skipParse) {
1206
1214
  if (body.trim() === "") {
1207
1215
  throw new Error(
1208
1216
  `${source}: the lambda body is empty. A lambda must return a value \u2014 the engine refuses a statement with no code.`
@@ -1223,19 +1231,23 @@ function assertBody(body, surface, source) {
1223
1231
  );
1224
1232
  }
1225
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));
1226
1241
  const moduleSyntax = /(^|[;{}\n])\s*(import|export)\b(?![\s]*[.(])/.exec(mask);
1227
1242
  if (moduleSyntax) {
1228
1243
  const kw = moduleSyntax[2];
1229
- throw new Error(
1230
- `${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.`
1231
- );
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.`;
1232
1245
  }
1233
1246
  const syntax = lambdaSyntaxError(body);
1234
1247
  if (syntax !== void 0) {
1235
- throw new Error(
1236
- `${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.`
1237
- );
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.`;
1238
1249
  }
1250
+ return void 0;
1239
1251
  }
1240
1252
  var KNOWN_NAMES = /* @__PURE__ */ new Set([
1241
1253
  // keywords and literals
@@ -1648,7 +1660,7 @@ function assertCaptureSupplied(reads, capture, source) {
1648
1660
  `${source}: the body reads \`${missing}\` from its second parameter, but ${how}, so nothing declares it at runtime \u2014 the body reads any global of that name instead, or throws. Supply it with \`${remedy}\`, or declare it inside the body.`
1649
1661
  );
1650
1662
  }
1651
- function lambdaValue(body, opts, source, fromFunction = false, captureReads = []) {
1663
+ function lambdaValue(body, opts, source, fromFunction = false, captureReads = [], skipParse = false) {
1652
1664
  const code = capturePrelude(opts?.capture, source) + body;
1653
1665
  assertCaptureSupplied(captureReads, opts?.capture, source);
1654
1666
  assertCaptureNotRenamed(body, opts?.capture, source);
@@ -1659,7 +1671,7 @@ function lambdaValue(body, opts, source, fromFunction = false, captureReads = []
1659
1671
  `${source}: surface ${JSON.stringify(opts.surface)} is not a lambda surface \u2014 use one of ${Object.keys(LAMBDA_BINDINGS).map((k) => JSON.stringify(k)).join(", ")}.`
1660
1672
  );
1661
1673
  }
1662
- assertLambdaBody(code, opts.surface, source);
1674
+ assertLambdaBody(code, opts.surface, source, skipParse);
1663
1675
  }
1664
1676
  return c.text(code);
1665
1677
  }
@@ -1668,7 +1680,13 @@ function fn(body, opts) {
1668
1680
  return lambdaValue(extracted.body, opts, `${PREFIX}.fn`, true, extracted.captureReads);
1669
1681
  }
1670
1682
  function raw(code, opts) {
1671
- return lambdaValue(code, opts, `${PREFIX}.raw`);
1683
+ const { unchecked, ...rest } = opts ?? {};
1684
+ if (unchecked !== void 0 && typeof unchecked !== "boolean") {
1685
+ throw new Error(`${PREFIX}.raw: \`unchecked\` must be true or false \u2014 got ${JSON.stringify(unchecked)}.`);
1686
+ }
1687
+ const value = lambdaValue(code, rest, `${PREFIX}.raw`, false, [], unchecked === true);
1688
+ if (unchecked === true) uncheckedBodies().add(value);
1689
+ return value;
1672
1690
  }
1673
1691
  function fileOnNodeEntryOnly() {
1674
1692
  throw new Error(
@@ -1697,6 +1715,7 @@ export {
1697
1715
  installLambdaFreeReads,
1698
1716
  installLambdaSyntaxCheck,
1699
1717
  lambdaSyntaxError,
1718
+ lambdaBodySyntaxProblem,
1700
1719
  lambdaValue,
1701
1720
  lam,
1702
1721
  isTaggedValue,
@@ -1722,4 +1741,4 @@ export {
1722
1741
  filter,
1723
1742
  withFilters
1724
1743
  };
1725
- //# sourceMappingURL=chunk-OXA6PSZT.js.map
1744
+ //# sourceMappingURL=chunk-UVF45BVU.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  resolveProjectEntry
3
- } from "./chunk-BU5GWPBO.js";
3
+ } from "./chunk-7KGASMCE.js";
4
4
  import {
5
5
  isUnusablePin,
6
6
  readPin,
7
7
  writePin
8
- } from "./chunk-6ELFRN3P.js";
8
+ } from "./chunk-D64XUF5Q.js";
9
9
  import {
10
10
  ENGINE_RELEASES_URL_ENV,
11
11
  EngineReleaseNotFoundError,
12
12
  usesCustomReleaseManager
13
- } from "./chunk-APWXY5SL.js";
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-NAQDMEHV.js";
22
+ } from "./chunk-SEUCZZCP.js";
23
23
  import {
24
24
  UsageError,
25
25
  info,
26
26
  warn
27
- } from "./chunk-PTHVMXZI.js";
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-6L645VBL.js");
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-II3F3LND.js");
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-PA43WZWS.js.map
173
+ //# sourceMappingURL=chunk-UWY3R4TS.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,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-A3UDOZB6.js";
3
+ } from "./chunk-KCAL4QYP.js";
4
4
  import {
5
5
  listEphemeral
6
- } from "./chunk-7G3CTU7I.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-PTHVMXZI.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-UZ6QQWJT.js.map
120
+ //# sourceMappingURL=chunk-W5ONYLOP.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  questionOrCancel
3
- } from "./chunk-65HWOMGV.js";
3
+ } from "./chunk-4APOHK7Y.js";
4
4
  import {
5
5
  style,
6
6
  terminalText
7
- } from "./chunk-PTHVMXZI.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-IDOTCMDV.js.map
57
+ //# sourceMappingURL=chunk-WFG67AYS.js.map
@@ -12,11 +12,11 @@ import {
12
12
  loadFile,
13
13
  moduleKind,
14
14
  readInstalledManifestState
15
- } from "./chunk-3LDULPRE.js";
15
+ } from "./chunk-DYG5D3FD.js";
16
16
  import {
17
17
  UsageError,
18
18
  warn
19
- } from "./chunk-PTHVMXZI.js";
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-IC23IKRU.js.map
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-K5BBGTYZ.js";
9
+ } from "./chunk-7KPKDHHI.js";
10
10
  import {
11
11
  FILTER_NAMES,
12
12
  FILTER_REQUIRED_ARGS,
13
13
  fl
14
- } from "./chunk-6HO3NCSJ.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-L5JYN3NM.js";
28
+ } from "./chunk-3HOGFGKG.js";
29
29
  import {
30
30
  f,
31
31
  input
32
- } from "./chunk-N5GKCWE5.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-OXA6PSZT.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-TPHWJ7UG.js.map
2029
+ //# sourceMappingURL=chunk-WOGJB2F6.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  projectSdkVersion
3
- } from "./chunk-D7VGG3WS.js";
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-JLUAWKX2.js";
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-YLDALTWZ.js";
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-PTHVMXZI.js";
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-YY2UY7PZ.js.map
354
+ //# sourceMappingURL=chunk-XCPF7BEJ.js.map