decocms 2.311.1 → 2.311.2

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 (507) hide show
  1. package/dist/client/assets/{AlertCircle-GVxuU95v.js → AlertCircle-DZ5eg3QE.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CZSxj8rY.js → ArrowNarrowLeft-1yI5FVCq.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-C9_9n6RS.js → ArrowUpRight-BHidxwxm.js} +1 -1
  4. package/dist/client/assets/{Check-B7RZVj2P.js → Check-Dw0791ut.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-CpSCTcKF.js → CheckCircle-BpVjAVGG.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-PN1FfGGP.js → ChevronDown-C4G6jLVm.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-B87-4gCD.js → ChevronRight-L-rlViOq.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-DXZ6bMcP.js → ChevronUp-4oGwYYrV.js} +1 -1
  9. package/dist/client/assets/{Container-Bn1bP0Yi.js → Container-1OJhud4n.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-0NEZeBK_.js → DotsVertical-CRhKzL3Z.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-Cl6M9_6y.js → LinkExternal01-CT0C3v5M.js} +1 -1
  12. package/dist/client/assets/{Lock01-BNDVtNp3.js → Lock01-NALqVAd4.js} +1 -1
  13. package/dist/client/assets/{Palette-BgYWS9GS.js → Palette-B49S2k5j.js} +1 -1
  14. package/dist/client/assets/{Play-jAQMD8Zy.js → Play-D2-YC-0X.js} +1 -1
  15. package/dist/client/assets/{Plus-Decn041v.js → Plus-BwRT24yO.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-2tEGwXNO.js → RefreshCcw01-BJA8p2-V.js} +1 -1
  17. package/dist/client/assets/{SearchMd-xzJx66s8.js → SearchMd-8EQr6MDa.js} +1 -1
  18. package/dist/client/assets/{Settings02-I39qsUEU.js → Settings02-BR7-LgkT.js} +1 -1
  19. package/dist/client/assets/{Shield01-DJsSZNak.js → Shield01-CmUy76z8.js} +1 -1
  20. package/dist/client/assets/{Star01-VbAdZ1nM.js → Star01-CrZZMK_h.js} +1 -1
  21. package/dist/client/assets/{Sun-qACU13Q-.js → Sun-BrBo82rN.js} +1 -1
  22. package/dist/client/assets/{Tool01-BqlBf1k7.js → Tool01-CnVLW8Ff.js} +1 -1
  23. package/dist/client/assets/{Trash01-BqSCZqrj.js → Trash01-CqcArs7X.js} +1 -1
  24. package/dist/client/assets/{User01-w8zyOHhj.js → User01-CBWDKiqM.js} +1 -1
  25. package/dist/client/assets/{Users03-n9zzJAad.js → Users03-lMWEL75e.js} +1 -1
  26. package/dist/client/assets/{X-Cwv9W6IH.js → X-Bgn4m6iE.js} +1 -1
  27. package/dist/client/assets/{XCircle-VMAL-xhy.js → XCircle-C7dtAhFo.js} +1 -1
  28. package/dist/client/assets/{XClose-GzEq-HU9.js → XClose-DAS6g7IB.js} +1 -1
  29. package/dist/client/assets/{Zap-D93qKeqm.js → Zap-D4YLhHLH.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-CGJC1mww.js → ZapSquare-DW8WgORO.js} +1 -1
  31. package/dist/client/assets/{accordion-ZNyW-Q9t.js → accordion-w2pr29VL.js} +1 -1
  32. package/dist/client/assets/{agent-icon-zc2fqM1k.js → agent-icon-CoSygmB4.js} +1 -1
  33. package/dist/client/assets/{agents-list-UtLvJq-k.js → agents-list-BmcHuxVe.js} +1 -1
  34. package/dist/client/assets/ai-providers-wvV25hLp.js +1 -0
  35. package/dist/client/assets/{alert-dialog-7vNv5N4P.js → alert-dialog-j_H6Duj2.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-DnPh1GEo.js → auth-catchall-g0qxiTpM.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-Cu-q04m4.js → automation-list-row-BwSlxsKi.js} +1 -1
  38. package/dist/client/assets/{automations-CU2EtM_4.js → automations-CZKFrDcG.js} +1 -1
  39. package/dist/client/assets/{avatar-Dda8SxzC.js → avatar-DH5nI_or.js} +1 -1
  40. package/dist/client/assets/{badge-C_Ey5yTa.js → badge-BITu5EVC.js} +1 -1
  41. package/dist/client/assets/{brand-context-pyqxXmJT.js → brand-context-6Yt9jzFn.js} +1 -1
  42. package/dist/client/assets/{card-BqDVz8rB.js → card-En6r2E_A.js} +1 -1
  43. package/dist/client/assets/{chat-context-B6Fg09sU.js → chat-context-CdP_0Ara.js} +1 -1
  44. package/dist/client/assets/{checkbox-CwdZbdGd.js → checkbox-DfdgwpYz.js} +1 -1
  45. package/dist/client/assets/{collection-detail-WOE1iHbK.js → collection-detail-Cq2qud8Y.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-QyBcFXO8.js → collection-display-button-C9fQJGtX.js} +1 -1
  47. package/dist/client/assets/{collection-search-FuJrX0DL.js → collection-search-DFFtMlUb.js} +1 -1
  48. package/dist/client/assets/{collection-search-BPpIzKqG.js → collection-search-LW_e8pOY.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-k2i9yb0q.js → collection-table-wrapper-B2VGx1DA.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-Bbxi3Lhu.js → collection-tabs-ie4BgKCV.js} +1 -1
  51. package/dist/client/assets/{collections-BXMI7Hvf.js → collections-D8nUEds8.js} +1 -1
  52. package/dist/client/assets/{command-CcKs3phr.js → command-BXrAL_Fp.js} +1 -1
  53. package/dist/client/assets/{connection-card-C9ObrVFa.js → connection-card-B3usJZNT.js} +1 -1
  54. package/dist/client/assets/{connection-detail-DXmyznni.js → connection-detail-BLvhyH8Y.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-CLWU-iGL.js → connection-form-helpers-DJ9jYCyJ.js} +1 -1
  56. package/dist/client/assets/{connections-EFejJy4T.js → connections-JJSt3920.js} +1 -1
  57. package/dist/client/assets/{constants-DNYERMOq.js → constants-C_0Pvn36.js} +1 -1
  58. package/dist/client/assets/{constants-Bad0DdgK.js → constants-xCxa-gM5.js} +1 -1
  59. package/dist/client/assets/{dialog-BcmogFZk.js → dialog-CQJ1jbHU.js} +1 -1
  60. package/dist/client/assets/{domain-settings-QGlFO294.js → domain-settings-KzIawZDz.js} +1 -1
  61. package/dist/client/assets/{drawer-CFDUaOVL.js → drawer-CRXUsV25.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-NvUf9a-j.js → dropdown-menu-B0p6J489.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-CNm9aSBE.js → dynamic-plugin-layout-hX-cElnB.js} +1 -1
  64. package/dist/client/assets/{empty-state-Dg7DOfxH.js → empty-state-CTTNNvC-.js} +1 -1
  65. package/dist/client/assets/{empty-state-CYPi3AWF.js → empty-state-DiIlkZVx.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-Crk93y-a.js → extract-connection-data-D5DCgJwZ.js} +1 -1
  67. package/dist/client/assets/{features-c-yBM4_h.js → features-CcS8M1BD.js} +1 -1
  68. package/dist/client/assets/{form-BbDiaTsN.js → form-D0XM9Oz-.js} +1 -1
  69. package/dist/client/assets/{general-BxBx3E8g.js → general-Ci0gKW7e.js} +1 -1
  70. package/dist/client/assets/{index-D-aGIpWM.js → index-08_qSeNu.js} +1 -1
  71. package/dist/client/assets/{index-DDUZQ_xH.js → index-8ASwCWdl.js} +1 -1
  72. package/dist/client/assets/{index-C3btaY0r.js → index-B2YlGv2D.js} +1 -1
  73. package/dist/client/assets/{index-D5c2Coqp.js → index-BbCoi7Kc.js} +3 -3
  74. package/dist/client/assets/{index-D3w8D7D3.js → index-BkAVJvYj.js} +1 -1
  75. package/dist/client/assets/{index-bUNQ5NEg.js → index-BuupSAqF.js} +1 -1
  76. package/dist/client/assets/{index-CvwiLDhg.js → index-Bzm-pgKW.js} +1 -1
  77. package/dist/client/assets/{index-Dl4CZy6K.js → index-Ce3hTrjw.js} +1 -1
  78. package/dist/client/assets/{index-BEwswwod.js → index-CtORjixM.js} +1 -1
  79. package/dist/client/assets/{index-Bom1zwxj.js → index-DN5Efs9x.js} +1 -1
  80. package/dist/client/assets/{index-rnnpRGp3.js → index-DvT00rVT.js} +1 -1
  81. package/dist/client/assets/{index-DmMHdsYF.js → index-Kg1PzPFs.js} +1 -1
  82. package/dist/client/assets/{index--qrsfEvC.js → index-N3u8642D.js} +1 -1
  83. package/dist/client/assets/{index-BVe-IL8_.js → index-TmBzv9_n.js} +1 -1
  84. package/dist/client/assets/{index-B3GjV7OW.js → index-XtKSdEVT.js} +2 -2
  85. package/dist/client/assets/{index-CLSBe_a4.js → index-gf-c6sSg.js} +1 -1
  86. package/dist/client/assets/{infiniteQueryObserver-RMKX6Nq0.js → infiniteQueryObserver-CGPZBNLK.js} +1 -1
  87. package/dist/client/assets/{input-bkK8ZE7l.js → input-CA3wFziO.js} +1 -1
  88. package/dist/client/assets/{integration-icon-dKiJ5-c6.js → integration-icon-DB1BI0re.js} +1 -1
  89. package/dist/client/assets/{label-DTMz5O44.js → label-CsQ7X2nY.js} +1 -1
  90. package/dist/client/assets/{layout-LMk5O_ZK.js → layout-_eILQ4qX.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-BAnvgszw.js → lean-canvas-recruit-modal-DS3BEBlK.js} +1 -1
  92. package/dist/client/assets/{login-DL4UCCOO.js → login-BlD2FW6R.js} +1 -1
  93. package/dist/client/assets/{members-xgiddo21.js → members-CWZmvp91.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-C2N0lO8-.js → monaco-editor-CoS3uflL.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-B1WEuAdI.js → monitoring-stats-row-CViWaRD_.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-CEDkVwJ-.js → oauth-callback-CU5hLq_2.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-Dg9MI2Au.js → oauth-callback-ai-provider-BeHCFfTz.js} +1 -1
  98. package/dist/client/assets/{onboarding-DkXotH-C.js → onboarding-1sE9lrXr.js} +1 -1
  99. package/dist/client/assets/{org-layout-BZIyzExD.js → org-layout-DjQQV-Zl.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-DMO9tynz.js → org-plugin-layout-DAhuto61.js} +1 -1
  101. package/dist/client/assets/{pair-Cbmyley2.js → pair-2_9kst7n.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-9QQH63Km.js → plugin-empty-state-HCn3LT7f.js} +1 -1
  103. package/dist/client/assets/{plugin-header-Ca6fhiCD.js → plugin-header-BURSuFWr.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-CL9tTgtN.js → plugin-layout-D26XJiuJ.js} +1 -1
  105. package/dist/client/assets/{popover-a3tMurU4.js → popover-DVrNLUGd.js} +1 -1
  106. package/dist/client/assets/{profile-D7pjioBj.js → profile-u4Q_ge8P.js} +1 -1
  107. package/dist/client/assets/{project-app-view-BhV2wKdY.js → project-app-view-TR-LCEsF.js} +1 -1
  108. package/dist/client/assets/registry-9FuEyggS.js +2 -0
  109. package/dist/client/assets/{registry-layout-BaWcD2qA.js → registry-layout-CBmViIei.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-CnaH9rpW.js → required-auth-layout-zpm5EQiY.js} +1 -1
  111. package/dist/client/assets/{reset-password-vwj49aZP.js → reset-password-BBgklwFT.js} +1 -1
  112. package/dist/client/assets/{roles-DphWxHYt.js → roles-BFmJtd_3.js} +1 -1
  113. package/dist/client/assets/{scroll-area-DqbokeCV.js → scroll-area-CTB7VMjJ.js} +1 -1
  114. package/dist/client/assets/{search-input-DAsaTE5l.js → search-input-CDZEhQeH.js} +1 -1
  115. package/dist/client/assets/{select-Dli7sWvO.js → select-Ck5CQAzm.js} +1 -1
  116. package/dist/client/assets/{select-model-BaOTlcuq.js → select-model-WqEqjF0n.js} +1 -1
  117. package/dist/client/assets/{settings-layout-CjXYIm0R.js → settings-layout-OR4Oj5Bz.js} +1 -1
  118. package/dist/client/assets/{settings-section-DBJaYBiY.js → settings-section-hGFEsbcg.js} +1 -1
  119. package/dist/client/assets/{shell-layout-BMRtkmni.js → shell-layout-DgbQScgJ.js} +1 -1
  120. package/dist/client/assets/{skeleton-H0I9mnBy.js → skeleton-15S9YHo5.js} +1 -1
  121. package/dist/client/assets/{sso-DYCaqBsm.js → sso-Clf1UBGT.js} +1 -1
  122. package/dist/client/assets/store-registry-D1p6Sky6.js +2 -0
  123. package/dist/client/assets/{store-uDsU3GrB.js → store-s535k-0R.js} +1 -1
  124. package/dist/client/assets/{switch-BdqZBTdM.js → switch-DZpAuoR4.js} +1 -1
  125. package/dist/client/assets/{table-DK414n0F.js → table-Di3ejdIM.js} +1 -1
  126. package/dist/client/assets/{tabs-CeGpUpHP.js → tabs-CZODVyGB.js} +1 -1
  127. package/dist/client/assets/{task-status-CqDAnW9H.js → task-status-B-brbBsk.js} +1 -1
  128. package/dist/client/assets/{textarea-DYbvm35p.js → textarea-BZSNnTf-.js} +1 -1
  129. package/dist/client/assets/{toggle-group-DXYK5Kmg.js → toggle-group-C6O7_FmI.js} +1 -1
  130. package/dist/client/assets/{tools-list-DQqEXfVG.js → tools-list-E1FCeDba.js} +1 -1
  131. package/dist/client/assets/{tooltip-M7OSSLPB.js → tooltip-DzR2OkiC.js} +1 -1
  132. package/dist/client/assets/{types-aUaKAv-0.js → types-DsXhCCX5.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-CmHinIUs.js → use-ai-providers-CASknL33.js} +1 -1
  134. package/dist/client/assets/{use-collections-Cy_Omosv.js → use-collections-Clg_Ncfr.js} +1 -1
  135. package/dist/client/assets/{use-connection-BTNmhjS_.js → use-connection-CN-YbXIm.js} +1 -1
  136. package/dist/client/assets/{use-copy-CkkAJAvS.js → use-copy-B4Vw-FGS.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-BuaKZJs7.js → use-create-virtual-mcp-DDS948Ec.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-CO57B6nX.js → use-debounced-autosave-DY33egle.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-CQ1IkvCh.js → use-decopilot-events-CDc7_gFj.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-6dZbEpz0.js → use-delete-connection-B_kG1S-Z.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-ZPBLdFp5.js → use-infinite-scroll-C65PuA8D.js} +1 -1
  142. package/dist/client/assets/{use-list-state-C6g9hGA4.js → use-list-state-D0QSC4li.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-BxVuuTSL.js → use-mcp-tools-P1EYh7Ne.js} +1 -1
  144. package/dist/client/assets/{use-members-Bi_cxyIQ.js → use-members-B8Y7w6A6.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-CSPyzm0t.js → use-navigate-to-agent-CdjjjAzp.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-C0e9yR_n.js → use-org-auth-client-DgZS2gPK.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-BBRAkASE.js → use-org-sso-DUuDwVMq.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-C1ELHN87.js → use-organization-roles-COI0teJ2.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-DTcFJGZh.js → use-organization-settings-DFYG1X4S.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-BTwHNugi.js → use-registry-connections-DtGSBXyx.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-DtamCVeq.js → use-status-sounds-Bzo-hQFh.js} +1 -1
  152. package/dist/client/assets/{use-tasks-B6YSkeM5.js → use-tasks-BkEjm0jr.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-BT7njn-W.js → use-view-mode-QyxMfzTw.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-CSMhsIFC.js → use-virtual-mcp-CywGzNw_.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-BnoAFbMi.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-DALOqmfR.js +1 -0
  157. package/dist/client/assets/{user-D3wZendk.js → user-B1nA5pjb.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-DrXoiKTK.js → view-mode-toggle-Cj3KDqTE.js} +1 -1
  159. package/dist/client/assets/{workflow-BfcwUbw-.js → workflow-DHFQknOK.js} +1 -1
  160. package/dist/client/assets/workflow-detail-Dq-mKRWi.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +6 -2
  163. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  164. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  165. package/dist/server/node_modules/{ansi-regex → ansi-styles}/package.json +13 -20
  166. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  167. package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
  168. package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
  169. package/dist/server/node_modules/convert-to-spaces/license +21 -0
  170. package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
  171. package/dist/server/node_modules/convert-to-spaces/readme.md +39 -0
  172. package/dist/server/node_modules/environment/index.d.ts +74 -0
  173. package/dist/server/node_modules/environment/index.js +47 -0
  174. package/dist/server/node_modules/environment/package.json +74 -0
  175. package/dist/server/node_modules/environment/readme.md +94 -0
  176. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  177. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  178. package/dist/server/node_modules/escape-string-regexp/license +9 -0
  179. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  180. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  181. package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
  182. package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
  183. package/dist/server/node_modules/{ink → get-east-asian-width}/license +0 -1
  184. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
  185. package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
  186. package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
  187. package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
  188. package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
  189. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  190. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  191. package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
  192. package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
  193. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  194. package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
  195. package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
  196. package/dist/server/node_modules/is-unicode-supported/license +9 -0
  197. package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
  198. package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
  199. package/dist/server/node_modules/pg-cloudflare/LICENSE +21 -0
  200. package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
  201. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
  202. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
  203. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
  204. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
  205. package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
  206. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
  207. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
  208. package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
  209. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
  210. package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
  211. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
  212. package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
  213. package/dist/server/node_modules/pg-connection-string/README.md +105 -0
  214. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
  215. package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
  216. package/dist/server/node_modules/pg-connection-string/index.js +231 -0
  217. package/dist/server/node_modules/pg-connection-string/package.json +52 -0
  218. package/dist/server/node_modules/pg-pool/LICENSE +21 -0
  219. package/dist/server/node_modules/pg-pool/README.md +357 -0
  220. package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
  221. package/dist/server/node_modules/pg-pool/index.js +517 -0
  222. package/dist/server/node_modules/pg-pool/package.json +51 -0
  223. package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
  224. package/dist/server/node_modules/pg-protocol/README.md +3 -0
  225. package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
  226. package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
  227. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
  228. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
  229. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
  230. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
  231. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
  232. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
  233. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
  234. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
  235. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
  236. package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
  237. package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
  238. package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
  239. package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
  240. package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
  241. package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
  242. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
  243. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
  244. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
  245. package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
  246. package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
  247. package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
  248. package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
  249. package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
  250. package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
  251. package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
  252. package/dist/server/node_modules/pg-protocol/package.json +45 -0
  253. package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
  254. package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
  255. package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
  256. package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
  257. package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
  258. package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
  259. package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
  260. package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
  261. package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
  262. package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
  263. package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
  264. package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
  265. package/dist/server/node_modules/pg-types/.travis.yml +7 -0
  266. package/dist/server/node_modules/pg-types/Makefile +14 -0
  267. package/dist/server/node_modules/pg-types/README.md +75 -0
  268. package/dist/server/node_modules/pg-types/index.d.ts +137 -0
  269. package/dist/server/node_modules/pg-types/index.js +47 -0
  270. package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
  271. package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
  272. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
  273. package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
  274. package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
  275. package/dist/server/node_modules/pg-types/package.json +42 -0
  276. package/dist/server/node_modules/pg-types/test/index.js +24 -0
  277. package/dist/server/node_modules/pg-types/test/types.js +597 -0
  278. package/dist/server/node_modules/pgpass/README.md +74 -0
  279. package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
  280. package/dist/server/node_modules/pgpass/lib/index.js +23 -0
  281. package/dist/server/node_modules/pgpass/package.json +41 -0
  282. package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
  283. package/dist/server/node_modules/restore-cursor/index.js +11 -0
  284. package/dist/server/node_modules/restore-cursor/license +9 -0
  285. package/dist/server/node_modules/restore-cursor/package.json +55 -0
  286. package/dist/server/node_modules/restore-cursor/readme.md +31 -0
  287. package/dist/server/node_modules/string-width/index.d.ts +39 -0
  288. package/dist/server/node_modules/string-width/index.js +82 -0
  289. package/dist/server/node_modules/string-width/license +9 -0
  290. package/dist/server/node_modules/string-width/package.json +64 -0
  291. package/dist/server/node_modules/string-width/readme.md +66 -0
  292. package/dist/server/server.js +5 -1
  293. package/package.json +1 -1
  294. package/dist/client/assets/ai-providers-CfDd4KX1.js +0 -1
  295. package/dist/client/assets/registry-CWfZJmtj.js +0 -2
  296. package/dist/client/assets/store-registry-CBTBvJpl.js +0 -2
  297. package/dist/client/assets/useInfiniteQuery-96c4mtDU.js +0 -1
  298. package/dist/client/assets/useSuspenseInfiniteQuery-HyWQwfY6.js +0 -1
  299. package/dist/client/assets/workflow-detail-C0BgSrtB.js +0 -1
  300. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  301. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  302. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  303. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  304. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  305. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  306. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  307. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  308. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  309. package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +0 -38
  310. package/dist/server/node_modules/ink/build/ansi-tokenizer.js +0 -316
  311. package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +0 -1
  312. package/dist/server/node_modules/ink/build/apply-styles.js +0 -175
  313. package/dist/server/node_modules/ink/build/build-layout.js +0 -77
  314. package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +0 -53
  315. package/dist/server/node_modules/ink/build/colorize.d.ts +0 -3
  316. package/dist/server/node_modules/ink/build/colorize.js +0 -48
  317. package/dist/server/node_modules/ink/build/colorize.js.map +0 -1
  318. package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +0 -3
  319. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +0 -5
  320. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +0 -1
  321. package/dist/server/node_modules/ink/build/components/App.d.ts +0 -18
  322. package/dist/server/node_modules/ink/build/components/App.js +0 -351
  323. package/dist/server/node_modules/ink/build/components/App.js.map +0 -1
  324. package/dist/server/node_modules/ink/build/components/AppContext.d.ts +0 -15
  325. package/dist/server/node_modules/ink/build/components/AppContext.js +0 -11
  326. package/dist/server/node_modules/ink/build/components/AppContext.js.map +0 -1
  327. package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +0 -4
  328. package/dist/server/node_modules/ink/build/components/BackgroundContext.js +0 -3
  329. package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +0 -1
  330. package/dist/server/node_modules/ink/build/components/Box.d.ts +0 -117
  331. package/dist/server/node_modules/ink/build/components/Box.js +0 -34
  332. package/dist/server/node_modules/ink/build/components/Box.js.map +0 -1
  333. package/dist/server/node_modules/ink/build/components/Color.js +0 -62
  334. package/dist/server/node_modules/ink/build/components/Cursor.d.ts +0 -83
  335. package/dist/server/node_modules/ink/build/components/Cursor.js +0 -53
  336. package/dist/server/node_modules/ink/build/components/Cursor.js.map +0 -1
  337. package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +0 -11
  338. package/dist/server/node_modules/ink/build/components/CursorContext.js +0 -8
  339. package/dist/server/node_modules/ink/build/components/CursorContext.js.map +0 -1
  340. package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +0 -18
  341. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +0 -23
  342. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +0 -1
  343. package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +0 -6
  344. package/dist/server/node_modules/ink/build/components/ErrorOverview.js +0 -84
  345. package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +0 -1
  346. package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +0 -16
  347. package/dist/server/node_modules/ink/build/components/FocusContext.js +0 -17
  348. package/dist/server/node_modules/ink/build/components/FocusContext.js.map +0 -1
  349. package/dist/server/node_modules/ink/build/components/Newline.d.ts +0 -13
  350. package/dist/server/node_modules/ink/build/components/Newline.js +0 -8
  351. package/dist/server/node_modules/ink/build/components/Newline.js.map +0 -1
  352. package/dist/server/node_modules/ink/build/components/Spacer.d.ts +0 -7
  353. package/dist/server/node_modules/ink/build/components/Spacer.js +0 -11
  354. package/dist/server/node_modules/ink/build/components/Spacer.js.map +0 -1
  355. package/dist/server/node_modules/ink/build/components/Static.d.ts +0 -24
  356. package/dist/server/node_modules/ink/build/components/Static.js +0 -28
  357. package/dist/server/node_modules/ink/build/components/Static.js.map +0 -1
  358. package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +0 -15
  359. package/dist/server/node_modules/ink/build/components/StderrContext.js +0 -13
  360. package/dist/server/node_modules/ink/build/components/StderrContext.js.map +0 -1
  361. package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +0 -22
  362. package/dist/server/node_modules/ink/build/components/StdinContext.js +0 -19
  363. package/dist/server/node_modules/ink/build/components/StdinContext.js.map +0 -1
  364. package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +0 -15
  365. package/dist/server/node_modules/ink/build/components/StdoutContext.js +0 -13
  366. package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +0 -1
  367. package/dist/server/node_modules/ink/build/components/Text.d.ts +0 -55
  368. package/dist/server/node_modules/ink/build/components/Text.js +0 -50
  369. package/dist/server/node_modules/ink/build/components/Text.js.map +0 -1
  370. package/dist/server/node_modules/ink/build/components/Transform.d.ts +0 -16
  371. package/dist/server/node_modules/ink/build/components/Transform.js +0 -15
  372. package/dist/server/node_modules/ink/build/components/Transform.js.map +0 -1
  373. package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +0 -38
  374. package/dist/server/node_modules/ink/build/cursor-helpers.js +0 -56
  375. package/dist/server/node_modules/ink/build/cursor-helpers.js.map +0 -1
  376. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +0 -65
  377. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +0 -1
  378. package/dist/server/node_modules/ink/build/devtools.d.ts +0 -1
  379. package/dist/server/node_modules/ink/build/devtools.js +0 -11
  380. package/dist/server/node_modules/ink/build/devtools.js.map +0 -1
  381. package/dist/server/node_modules/ink/build/dom.d.ts +0 -56
  382. package/dist/server/node_modules/ink/build/dom.js +0 -124
  383. package/dist/server/node_modules/ink/build/dom.js.map +0 -1
  384. package/dist/server/node_modules/ink/build/experimental/apply-style.js +0 -140
  385. package/dist/server/node_modules/ink/build/experimental/dom.js +0 -123
  386. package/dist/server/node_modules/ink/build/experimental/output.js +0 -91
  387. package/dist/server/node_modules/ink/build/experimental/reconciler.js +0 -141
  388. package/dist/server/node_modules/ink/build/experimental/renderer.js +0 -81
  389. package/dist/server/node_modules/ink/build/get-max-width.d.ts +0 -3
  390. package/dist/server/node_modules/ink/build/get-max-width.js +0 -10
  391. package/dist/server/node_modules/ink/build/get-max-width.js.map +0 -1
  392. package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +0 -5
  393. package/dist/server/node_modules/ink/build/hooks/use-app.js +0 -8
  394. package/dist/server/node_modules/ink/build/hooks/use-app.js.map +0 -1
  395. package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +0 -12
  396. package/dist/server/node_modules/ink/build/hooks/use-cursor.js +0 -29
  397. package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +0 -1
  398. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +0 -28
  399. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +0 -17
  400. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +0 -1
  401. package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +0 -29
  402. package/dist/server/node_modules/ink/build/hooks/use-focus.js +0 -42
  403. package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +0 -1
  404. package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +0 -131
  405. package/dist/server/node_modules/ink/build/hooks/use-input.js +0 -124
  406. package/dist/server/node_modules/ink/build/hooks/use-input.js.map +0 -1
  407. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +0 -5
  408. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +0 -11
  409. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +0 -1
  410. package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +0 -5
  411. package/dist/server/node_modules/ink/build/hooks/use-stderr.js +0 -8
  412. package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +0 -1
  413. package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +0 -5
  414. package/dist/server/node_modules/ink/build/hooks/use-stdin.js +0 -8
  415. package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +0 -1
  416. package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +0 -5
  417. package/dist/server/node_modules/ink/build/hooks/use-stdout.js +0 -8
  418. package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +0 -1
  419. package/dist/server/node_modules/ink/build/hooks/useInput.js +0 -38
  420. package/dist/server/node_modules/ink/build/index.d.ts +0 -34
  421. package/dist/server/node_modules/ink/build/index.js +0 -20
  422. package/dist/server/node_modules/ink/build/index.js.map +0 -1
  423. package/dist/server/node_modules/ink/build/ink.d.ts +0 -90
  424. package/dist/server/node_modules/ink/build/ink.js +0 -637
  425. package/dist/server/node_modules/ink/build/ink.js.map +0 -1
  426. package/dist/server/node_modules/ink/build/input-parser.d.ts +0 -7
  427. package/dist/server/node_modules/ink/build/input-parser.js +0 -154
  428. package/dist/server/node_modules/ink/build/input-parser.js.map +0 -1
  429. package/dist/server/node_modules/ink/build/instance.js +0 -205
  430. package/dist/server/node_modules/ink/build/instances.d.ts +0 -3
  431. package/dist/server/node_modules/ink/build/instances.js +0 -8
  432. package/dist/server/node_modules/ink/build/instances.js.map +0 -1
  433. package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +0 -23
  434. package/dist/server/node_modules/ink/build/kitty-keyboard.js +0 -32
  435. package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +0 -1
  436. package/dist/server/node_modules/ink/build/layout.d.ts +0 -7
  437. package/dist/server/node_modules/ink/build/layout.js +0 -33
  438. package/dist/server/node_modules/ink/build/layout.js.map +0 -1
  439. package/dist/server/node_modules/ink/build/log-update.d.ts +0 -19
  440. package/dist/server/node_modules/ink/build/log-update.js +0 -242
  441. package/dist/server/node_modules/ink/build/log-update.js.map +0 -1
  442. package/dist/server/node_modules/ink/build/measure-element.d.ts +0 -16
  443. package/dist/server/node_modules/ink/build/measure-element.js +0 -9
  444. package/dist/server/node_modules/ink/build/measure-element.js.map +0 -1
  445. package/dist/server/node_modules/ink/build/measure-text.d.ts +0 -6
  446. package/dist/server/node_modules/ink/build/measure-text.js +0 -21
  447. package/dist/server/node_modules/ink/build/measure-text.js.map +0 -1
  448. package/dist/server/node_modules/ink/build/options.d.ts +0 -52
  449. package/dist/server/node_modules/ink/build/options.js +0 -2
  450. package/dist/server/node_modules/ink/build/options.js.map +0 -1
  451. package/dist/server/node_modules/ink/build/output.d.ts +0 -35
  452. package/dist/server/node_modules/ink/build/output.js +0 -183
  453. package/dist/server/node_modules/ink/build/output.js.map +0 -1
  454. package/dist/server/node_modules/ink/build/parse-keypress.d.ts +0 -22
  455. package/dist/server/node_modules/ink/build/parse-keypress.js +0 -493
  456. package/dist/server/node_modules/ink/build/parse-keypress.js.map +0 -1
  457. package/dist/server/node_modules/ink/build/reconciler.d.ts +0 -4
  458. package/dist/server/node_modules/ink/build/reconciler.js +0 -274
  459. package/dist/server/node_modules/ink/build/reconciler.js.map +0 -1
  460. package/dist/server/node_modules/ink/build/render-background.d.ts +0 -4
  461. package/dist/server/node_modules/ink/build/render-background.js +0 -25
  462. package/dist/server/node_modules/ink/build/render-background.js.map +0 -1
  463. package/dist/server/node_modules/ink/build/render-border.d.ts +0 -4
  464. package/dist/server/node_modules/ink/build/render-border.js +0 -73
  465. package/dist/server/node_modules/ink/build/render-border.js.map +0 -1
  466. package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +0 -14
  467. package/dist/server/node_modules/ink/build/render-node-to-output.js +0 -147
  468. package/dist/server/node_modules/ink/build/render-node-to-output.js.map +0 -1
  469. package/dist/server/node_modules/ink/build/render-to-string.d.ts +0 -38
  470. package/dist/server/node_modules/ink/build/render-to-string.js +0 -115
  471. package/dist/server/node_modules/ink/build/render-to-string.js.map +0 -1
  472. package/dist/server/node_modules/ink/build/render.d.ts +0 -121
  473. package/dist/server/node_modules/ink/build/render.js +0 -55
  474. package/dist/server/node_modules/ink/build/render.js.map +0 -1
  475. package/dist/server/node_modules/ink/build/renderer.d.ts +0 -8
  476. package/dist/server/node_modules/ink/build/renderer.js +0 -55
  477. package/dist/server/node_modules/ink/build/renderer.js.map +0 -1
  478. package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +0 -2
  479. package/dist/server/node_modules/ink/build/sanitize-ansi.js +0 -27
  480. package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +0 -1
  481. package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +0 -13
  482. package/dist/server/node_modules/ink/build/screen-reader-update.js +0 -38
  483. package/dist/server/node_modules/ink/build/screen-reader-update.js.map +0 -1
  484. package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +0 -3
  485. package/dist/server/node_modules/ink/build/squash-text-nodes.js +0 -36
  486. package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +0 -1
  487. package/dist/server/node_modules/ink/build/styles.d.ts +0 -240
  488. package/dist/server/node_modules/ink/build/styles.js +0 -232
  489. package/dist/server/node_modules/ink/build/styles.js.map +0 -1
  490. package/dist/server/node_modules/ink/build/utils.d.ts +0 -2
  491. package/dist/server/node_modules/ink/build/utils.js +0 -4
  492. package/dist/server/node_modules/ink/build/utils.js.map +0 -1
  493. package/dist/server/node_modules/ink/build/wrap-text.d.ts +0 -3
  494. package/dist/server/node_modules/ink/build/wrap-text.js +0 -31
  495. package/dist/server/node_modules/ink/build/wrap-text.js.map +0 -1
  496. package/dist/server/node_modules/ink/build/write-synchronized.d.ts +0 -4
  497. package/dist/server/node_modules/ink/build/write-synchronized.js +0 -7
  498. package/dist/server/node_modules/ink/build/write-synchronized.js.map +0 -1
  499. package/dist/server/node_modules/ink/package.json +0 -201
  500. package/dist/server/node_modules/ink/readme.md +0 -2636
  501. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  502. package/dist/server/node_modules/onetime/index.js +0 -44
  503. package/dist/server/node_modules/onetime/package.json +0 -43
  504. package/dist/server/node_modules/onetime/readme.md +0 -94
  505. /package/dist/server/node_modules/{ansi-regex → ansi-styles}/license +0 -0
  506. /package/dist/server/node_modules/{onetime → environment}/license +0 -0
  507. /package/dist/server/node_modules/{ink/build/devtools-window-polyfill.d.ts → pg-protocol/dist/b.d.ts} +0 -0
@@ -0,0 +1,67 @@
1
+ export default class BufferList {
2
+ constructor(public buffers: Buffer[] = []) {}
3
+
4
+ public add(buffer: Buffer, front?: boolean) {
5
+ this.buffers[front ? 'unshift' : 'push'](buffer)
6
+ return this
7
+ }
8
+
9
+ public addInt16(val: number, front?: boolean) {
10
+ return this.add(Buffer.from([val >>> 8, val >>> 0]), front)
11
+ }
12
+
13
+ public getByteLength() {
14
+ return this.buffers.reduce(function (previous, current) {
15
+ return previous + current.length
16
+ }, 0)
17
+ }
18
+
19
+ public addInt32(val: number, first?: boolean) {
20
+ return this.add(
21
+ Buffer.from([(val >>> 24) & 0xff, (val >>> 16) & 0xff, (val >>> 8) & 0xff, (val >>> 0) & 0xff]),
22
+ first
23
+ )
24
+ }
25
+
26
+ public addCString(val: string, front?: boolean) {
27
+ const len = Buffer.byteLength(val)
28
+ const buffer = Buffer.alloc(len + 1)
29
+ buffer.write(val)
30
+ buffer[len] = 0
31
+ return this.add(buffer, front)
32
+ }
33
+
34
+ public addString(val: string, front?: boolean) {
35
+ const len = Buffer.byteLength(val)
36
+ const buffer = Buffer.alloc(len)
37
+ buffer.write(val)
38
+ return this.add(buffer, front)
39
+ }
40
+
41
+ public addChar(char: string, first?: boolean) {
42
+ return this.add(Buffer.from(char, 'utf8'), first)
43
+ }
44
+
45
+ public addByte(byte: number) {
46
+ return this.add(Buffer.from([byte]))
47
+ }
48
+
49
+ public join(appendLength?: boolean, char?: string): Buffer {
50
+ let length = this.getByteLength()
51
+ if (appendLength) {
52
+ this.addInt32(length + 4, true)
53
+ return this.join(false, char)
54
+ }
55
+ if (char) {
56
+ this.addChar(char, true)
57
+ length++
58
+ }
59
+ const result = Buffer.alloc(length)
60
+ let index = 0
61
+ this.buffers.forEach(function (buffer) {
62
+ buffer.copy(result, index, 0)
63
+ index += buffer.length
64
+ })
65
+ return result
66
+ }
67
+ }
@@ -0,0 +1,166 @@
1
+ // https://www.postgresql.org/docs/current/protocol-message-formats.html
2
+ import BufferList from './buffer-list'
3
+
4
+ const buffers = {
5
+ readyForQuery: function () {
6
+ return new BufferList().add(Buffer.from('I')).join(true, 'Z')
7
+ },
8
+
9
+ authenticationOk: function () {
10
+ return new BufferList().addInt32(0).join(true, 'R')
11
+ },
12
+
13
+ authenticationCleartextPassword: function () {
14
+ return new BufferList().addInt32(3).join(true, 'R')
15
+ },
16
+
17
+ authenticationMD5Password: function () {
18
+ return new BufferList()
19
+ .addInt32(5)
20
+ .add(Buffer.from([1, 2, 3, 4]))
21
+ .join(true, 'R')
22
+ },
23
+
24
+ authenticationSASL: function () {
25
+ return new BufferList().addInt32(10).addCString('SCRAM-SHA-256').addCString('').join(true, 'R')
26
+ },
27
+
28
+ authenticationSASLContinue: function () {
29
+ return new BufferList().addInt32(11).addString('data').join(true, 'R')
30
+ },
31
+
32
+ authenticationSASLFinal: function () {
33
+ return new BufferList().addInt32(12).addString('data').join(true, 'R')
34
+ },
35
+
36
+ parameterStatus: function (name: string, value: string) {
37
+ return new BufferList().addCString(name).addCString(value).join(true, 'S')
38
+ },
39
+
40
+ backendKeyData: function (processID: number, secretKey: number) {
41
+ return new BufferList().addInt32(processID).addInt32(secretKey).join(true, 'K')
42
+ },
43
+
44
+ commandComplete: function (string: string) {
45
+ return new BufferList().addCString(string).join(true, 'C')
46
+ },
47
+
48
+ rowDescription: function (fields: any[]) {
49
+ fields = fields || []
50
+ const buf = new BufferList()
51
+ buf.addInt16(fields.length)
52
+ fields.forEach(function (field) {
53
+ buf
54
+ .addCString(field.name)
55
+ .addInt32(field.tableID || 0)
56
+ .addInt16(field.attributeNumber || 0)
57
+ .addInt32(field.dataTypeID || 0)
58
+ .addInt16(field.dataTypeSize || 0)
59
+ .addInt32(field.typeModifier || 0)
60
+ .addInt16(field.formatCode || 0)
61
+ })
62
+ return buf.join(true, 'T')
63
+ },
64
+
65
+ parameterDescription: function (dataTypeIDs: number[]) {
66
+ dataTypeIDs = dataTypeIDs || []
67
+ const buf = new BufferList()
68
+ buf.addInt16(dataTypeIDs.length)
69
+ dataTypeIDs.forEach(function (dataTypeID) {
70
+ buf.addInt32(dataTypeID)
71
+ })
72
+ return buf.join(true, 't')
73
+ },
74
+
75
+ dataRow: function (columns: any[]) {
76
+ columns = columns || []
77
+ const buf = new BufferList()
78
+ buf.addInt16(columns.length)
79
+ columns.forEach(function (col) {
80
+ if (col == null) {
81
+ buf.addInt32(-1)
82
+ } else {
83
+ const strBuf = Buffer.from(col, 'utf8')
84
+ buf.addInt32(strBuf.length)
85
+ buf.add(strBuf)
86
+ }
87
+ })
88
+ return buf.join(true, 'D')
89
+ },
90
+
91
+ error: function (fields: any) {
92
+ return buffers.errorOrNotice(fields).join(true, 'E')
93
+ },
94
+
95
+ notice: function (fields: any) {
96
+ return buffers.errorOrNotice(fields).join(true, 'N')
97
+ },
98
+
99
+ errorOrNotice: function (fields: any) {
100
+ fields = fields || []
101
+ const buf = new BufferList()
102
+ fields.forEach(function (field: any) {
103
+ buf.addChar(field.type)
104
+ buf.addCString(field.value)
105
+ })
106
+ return buf.add(Buffer.from([0])) // terminator
107
+ },
108
+
109
+ parseComplete: function () {
110
+ return new BufferList().join(true, '1')
111
+ },
112
+
113
+ bindComplete: function () {
114
+ return new BufferList().join(true, '2')
115
+ },
116
+
117
+ notification: function (id: number, channel: string, payload: string) {
118
+ return new BufferList().addInt32(id).addCString(channel).addCString(payload).join(true, 'A')
119
+ },
120
+
121
+ emptyQuery: function () {
122
+ return new BufferList().join(true, 'I')
123
+ },
124
+
125
+ portalSuspended: function () {
126
+ return new BufferList().join(true, 's')
127
+ },
128
+
129
+ closeComplete: function () {
130
+ return new BufferList().join(true, '3')
131
+ },
132
+
133
+ copyIn: function (cols: number) {
134
+ const list = new BufferList()
135
+ // text mode
136
+ .addByte(0)
137
+ // column count
138
+ .addInt16(cols)
139
+ for (let i = 0; i < cols; i++) {
140
+ list.addInt16(i)
141
+ }
142
+ return list.join(true, 'G')
143
+ },
144
+
145
+ copyOut: function (cols: number) {
146
+ const list = new BufferList()
147
+ // text mode
148
+ .addByte(0)
149
+ // column count
150
+ .addInt16(cols)
151
+ for (let i = 0; i < cols; i++) {
152
+ list.addInt16(i)
153
+ }
154
+ return list.join(true, 'H')
155
+ },
156
+
157
+ copyData: function (bytes: Buffer) {
158
+ return new BufferList().add(bytes).join(true, 'd')
159
+ },
160
+
161
+ copyDone: function () {
162
+ return new BufferList().join(true, 'c')
163
+ },
164
+ }
165
+
166
+ export default buffers
@@ -0,0 +1 @@
1
+ declare module 'chunky'
@@ -0,0 +1,7 @@
1
+ language: node_js
2
+ node_js:
3
+ - '4'
4
+ - 'lts/*'
5
+ - 'node'
6
+ env:
7
+ - PGUSER=postgres
@@ -0,0 +1,14 @@
1
+ .PHONY: publish-patch test
2
+
3
+ test:
4
+ npm test
5
+
6
+ patch: test
7
+ npm version patch -m "Bump version"
8
+ git push origin master --tags
9
+ npm publish
10
+
11
+ minor: test
12
+ npm version minor -m "Bump version"
13
+ git push origin master --tags
14
+ npm publish
@@ -0,0 +1,75 @@
1
+ # pg-types
2
+
3
+ This is the code that turns all the raw text from postgres into JavaScript types for [node-postgres](https://github.com/brianc/node-postgres.git)
4
+
5
+ ## use
6
+
7
+ This module is consumed and exported from the root `pg` object of node-postgres. To access it, do the following:
8
+
9
+ ```js
10
+ var types = require('pg').types
11
+ ```
12
+
13
+ Generally what you'll want to do is override how a specific data-type is parsed and turned into a JavaScript type. By default the PostgreSQL backend server returns everything as strings. Every data type corresponds to a unique `OID` within the server, and these `OIDs` are sent back with the query response. So, you need to match a particluar `OID` to a function you'd like to use to take the raw text input and produce a valid JavaScript object as a result. `null` values are never parsed.
14
+
15
+ Let's do something I commonly like to do on projects: return 64-bit integers `(int8)` as JavaScript integers. Because JavaScript doesn't have support for 64-bit integers node-postgres cannot confidently parse `int8` data type results as numbers because if you have a _huge_ number it will overflow and the result you'd get back from node-postgres would not be the result in the datbase. That would be a __very bad thing__ so node-postgres just returns `int8` results as strings and leaves the parsing up to you. Let's say that you know you don't and wont ever have numbers greater than `int4` in your database, but you're tired of recieving results from the `COUNT(*)` function as strings (because that function returns `int8`). You would do this:
16
+
17
+ ```js
18
+ var types = require('pg').types
19
+ types.setTypeParser(20, function(val) {
20
+ return parseInt(val)
21
+ })
22
+ ```
23
+
24
+ __boom__: now you get numbers instead of strings.
25
+
26
+ Just as another example -- not saying this is a good idea -- let's say you want to return all dates from your database as [moment](http://momentjs.com/docs/) objects. Okay, do this:
27
+
28
+ ```js
29
+ var types = require('pg').types
30
+ var moment = require('moment')
31
+ var parseFn = function(val) {
32
+ return val === null ? null : moment(val)
33
+ }
34
+ types.setTypeParser(types.builtins.TIMESTAMPTZ, parseFn)
35
+ types.setTypeParser(types.builtins.TIMESTAMP, parseFn)
36
+ ```
37
+ _note: I've never done that with my dates, and I'm not 100% sure moment can parse all the date strings returned from postgres. It's just an example!_
38
+
39
+ If you're thinking "gee, this seems pretty handy, but how can I get a list of all the OIDs in the database and what they correspond to?!?!?!" worry not:
40
+
41
+ ```bash
42
+ $ psql -c "select typname, oid, typarray from pg_type order by oid"
43
+ ```
44
+
45
+ If you want to find out the OID of a specific type:
46
+
47
+ ```bash
48
+ $ psql -c "select typname, oid, typarray from pg_type where typname = 'daterange' order by oid"
49
+ ```
50
+
51
+ :smile:
52
+
53
+ ## license
54
+
55
+ The MIT License (MIT)
56
+
57
+ Copyright (c) 2014 Brian M. Carlson
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy
60
+ of this software and associated documentation files (the "Software"), to deal
61
+ in the Software without restriction, including without limitation the rights
62
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63
+ copies of the Software, and to permit persons to whom the Software is
64
+ furnished to do so, subject to the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included in
67
+ all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
75
+ THE SOFTWARE.
@@ -0,0 +1,137 @@
1
+ export enum TypeId {
2
+ BOOL = 16,
3
+ BYTEA = 17,
4
+ CHAR = 18,
5
+ INT8 = 20,
6
+ INT2 = 21,
7
+ INT4 = 23,
8
+ REGPROC = 24,
9
+ TEXT = 25,
10
+ OID = 26,
11
+ TID = 27,
12
+ XID = 28,
13
+ CID = 29,
14
+ JSON = 114,
15
+ XML = 142,
16
+ PG_NODE_TREE = 194,
17
+ SMGR = 210,
18
+ PATH = 602,
19
+ POLYGON = 604,
20
+ CIDR = 650,
21
+ FLOAT4 = 700,
22
+ FLOAT8 = 701,
23
+ ABSTIME = 702,
24
+ RELTIME = 703,
25
+ TINTERVAL = 704,
26
+ CIRCLE = 718,
27
+ MACADDR8 = 774,
28
+ MONEY = 790,
29
+ MACADDR = 829,
30
+ INET = 869,
31
+ ACLITEM = 1033,
32
+ BPCHAR = 1042,
33
+ VARCHAR = 1043,
34
+ DATE = 1082,
35
+ TIME = 1083,
36
+ TIMESTAMP = 1114,
37
+ TIMESTAMPTZ = 1184,
38
+ INTERVAL = 1186,
39
+ TIMETZ = 1266,
40
+ BIT = 1560,
41
+ VARBIT = 1562,
42
+ NUMERIC = 1700,
43
+ REFCURSOR = 1790,
44
+ REGPROCEDURE = 2202,
45
+ REGOPER = 2203,
46
+ REGOPERATOR = 2204,
47
+ REGCLASS = 2205,
48
+ REGTYPE = 2206,
49
+ UUID = 2950,
50
+ TXID_SNAPSHOT = 2970,
51
+ PG_LSN = 3220,
52
+ PG_NDISTINCT = 3361,
53
+ PG_DEPENDENCIES = 3402,
54
+ TSVECTOR = 3614,
55
+ TSQUERY = 3615,
56
+ GTSVECTOR = 3642,
57
+ REGCONFIG = 3734,
58
+ REGDICTIONARY = 3769,
59
+ JSONB = 3802,
60
+ REGNAMESPACE = 4089,
61
+ REGROLE = 4096
62
+ }
63
+
64
+ export type builtinsTypes =
65
+ 'BOOL' |
66
+ 'BYTEA' |
67
+ 'CHAR' |
68
+ 'INT8' |
69
+ 'INT2' |
70
+ 'INT4' |
71
+ 'REGPROC' |
72
+ 'TEXT' |
73
+ 'OID' |
74
+ 'TID' |
75
+ 'XID' |
76
+ 'CID' |
77
+ 'JSON' |
78
+ 'XML' |
79
+ 'PG_NODE_TREE' |
80
+ 'SMGR' |
81
+ 'PATH' |
82
+ 'POLYGON' |
83
+ 'CIDR' |
84
+ 'FLOAT4' |
85
+ 'FLOAT8' |
86
+ 'ABSTIME' |
87
+ 'RELTIME' |
88
+ 'TINTERVAL' |
89
+ 'CIRCLE' |
90
+ 'MACADDR8' |
91
+ 'MONEY' |
92
+ 'MACADDR' |
93
+ 'INET' |
94
+ 'ACLITEM' |
95
+ 'BPCHAR' |
96
+ 'VARCHAR' |
97
+ 'DATE' |
98
+ 'TIME' |
99
+ 'TIMESTAMP' |
100
+ 'TIMESTAMPTZ' |
101
+ 'INTERVAL' |
102
+ 'TIMETZ' |
103
+ 'BIT' |
104
+ 'VARBIT' |
105
+ 'NUMERIC' |
106
+ 'REFCURSOR' |
107
+ 'REGPROCEDURE' |
108
+ 'REGOPER' |
109
+ 'REGOPERATOR' |
110
+ 'REGCLASS' |
111
+ 'REGTYPE' |
112
+ 'UUID' |
113
+ 'TXID_SNAPSHOT' |
114
+ 'PG_LSN' |
115
+ 'PG_NDISTINCT' |
116
+ 'PG_DEPENDENCIES' |
117
+ 'TSVECTOR' |
118
+ 'TSQUERY' |
119
+ 'GTSVECTOR' |
120
+ 'REGCONFIG' |
121
+ 'REGDICTIONARY' |
122
+ 'JSONB' |
123
+ 'REGNAMESPACE' |
124
+ 'REGROLE';
125
+
126
+ export type TypesBuiltins = {[key in builtinsTypes]: TypeId};
127
+
128
+ export type TypeFormat = 'text' | 'binary';
129
+
130
+ export const builtins: TypesBuiltins;
131
+
132
+ export function setTypeParser (id: TypeId, parseFn: ((value: string) => any)): void;
133
+ export function setTypeParser (id: TypeId, format: TypeFormat, parseFn: (value: string) => any): void;
134
+
135
+ export const getTypeParser: (id: TypeId, format?: TypeFormat) => any
136
+
137
+ export const arrayParser: (source: string, transform: (entry: any) => any) => any[];
@@ -0,0 +1,47 @@
1
+ var textParsers = require('./lib/textParsers');
2
+ var binaryParsers = require('./lib/binaryParsers');
3
+ var arrayParser = require('./lib/arrayParser');
4
+ var builtinTypes = require('./lib/builtins');
5
+
6
+ exports.getTypeParser = getTypeParser;
7
+ exports.setTypeParser = setTypeParser;
8
+ exports.arrayParser = arrayParser;
9
+ exports.builtins = builtinTypes;
10
+
11
+ var typeParsers = {
12
+ text: {},
13
+ binary: {}
14
+ };
15
+
16
+ //the empty parse function
17
+ function noParse (val) {
18
+ return String(val);
19
+ };
20
+
21
+ //returns a function used to convert a specific type (specified by
22
+ //oid) into a result javascript type
23
+ //note: the oid can be obtained via the following sql query:
24
+ //SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE';
25
+ function getTypeParser (oid, format) {
26
+ format = format || 'text';
27
+ if (!typeParsers[format]) {
28
+ return noParse;
29
+ }
30
+ return typeParsers[format][oid] || noParse;
31
+ };
32
+
33
+ function setTypeParser (oid, format, parseFn) {
34
+ if(typeof format == 'function') {
35
+ parseFn = format;
36
+ format = 'text';
37
+ }
38
+ typeParsers[format][oid] = parseFn;
39
+ };
40
+
41
+ textParsers.init(function(oid, converter) {
42
+ typeParsers.text[oid] = converter;
43
+ });
44
+
45
+ binaryParsers.init(function(oid, converter) {
46
+ typeParsers.binary[oid] = converter;
47
+ });
@@ -0,0 +1,21 @@
1
+ import * as types from '.';
2
+ import { expectType } from 'tsd';
3
+
4
+ // builtins
5
+ expectType<types.TypesBuiltins>(types.builtins);
6
+
7
+ // getTypeParser
8
+ const noParse = types.getTypeParser(types.builtins.NUMERIC, 'text');
9
+ const numericParser = types.getTypeParser(types.builtins.NUMERIC, 'binary');
10
+ expectType<string>(noParse('noParse'));
11
+ expectType<number>(numericParser([200, 1, 0, 15]));
12
+
13
+ // getArrayParser
14
+ const value = types.arrayParser('{1,2,3}', (num) => parseInt(num));
15
+ expectType<number[]>(value);
16
+
17
+ //setTypeParser
18
+ types.setTypeParser(types.builtins.INT8, parseInt);
19
+ types.setTypeParser(types.builtins.FLOAT8, parseFloat);
20
+ types.setTypeParser(types.builtins.FLOAT8, 'binary', (data) => data[0]);
21
+ types.setTypeParser(types.builtins.FLOAT8, 'text', parseFloat);
@@ -0,0 +1,11 @@
1
+ var array = require('postgres-array');
2
+
3
+ module.exports = {
4
+ create: function (source, transform) {
5
+ return {
6
+ parse: function() {
7
+ return array.parse(source, transform);
8
+ }
9
+ };
10
+ }
11
+ };