@pome-sh/cli 0.20.0 → 0.21.0

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 (2782) hide show
  1. package/README.md +6 -4
  2. package/dist/agent-Q2UTRJYL.js +408 -0
  3. package/dist/build-info.json +3 -3
  4. package/dist/checks-C63QWUOI.js +290 -0
  5. package/dist/chunk-2Q7AYEUA.js +1207 -0
  6. package/dist/chunk-APAS34RJ.js +6614 -0
  7. package/dist/chunk-BSKITCXD.js +116 -0
  8. package/dist/chunk-CBFKZZBR.js +96 -0
  9. package/dist/chunk-D3GRORLQ.js +1614 -0
  10. package/dist/chunk-GEAGPLZZ.js +57 -0
  11. package/dist/chunk-IY6G5NWT.js +330 -0
  12. package/dist/chunk-LZIPGCQJ.js +1512 -0
  13. package/dist/chunk-NW7HGA2K.js +1 -0
  14. package/dist/chunk-NY55QTVQ.js +120 -0
  15. package/dist/chunk-OHKJGCWS.js +186 -0
  16. package/dist/chunk-OKDJRKJV.js +4390 -0
  17. package/dist/chunk-PPJUFV6S.js +1179 -0
  18. package/dist/chunk-RGZBC7NF.js +90 -0
  19. package/dist/chunk-SG6ZTIMT.js +145 -0
  20. package/dist/chunk-VBATFCWR.js +442 -0
  21. package/dist/chunk-W5EJAOWD.js +462 -0
  22. package/dist/chunk-WVWV7DLA.js +6061 -0
  23. package/dist/chunk-XDU6TD4O.js +20 -0
  24. package/dist/chunk-ZX4WNSZ5.js +71 -0
  25. package/dist/egress-4V6DVJZ7.js +1 -0
  26. package/dist/install-A2PSSNW6.js +19 -0
  27. package/dist/render-ZQQ4UMNO.js +40 -0
  28. package/dist/run-CFA4LZWQ.js +203 -0
  29. package/dist/runDemo-VWKBJRSL.js +327 -0
  30. package/dist/runTrialGroup-NCD4Q2QU.js +277 -0
  31. package/dist/server-Y52EIWDP.js +3 -0
  32. package/dist/src/cli/main.js +5381 -1079
  33. package/dist/src-4SVLX7UK.js +4398 -0
  34. package/dist/src-GGRWNJTK.js +2869 -0
  35. package/dist/src-JGOW5WYI.js +5 -0
  36. package/dist/src-KIHABGI5.js +5 -0
  37. package/dist/src-TUX5L2RC.js +4 -0
  38. package/dist/twinHarness-IZC72UQN.js +5 -0
  39. package/dist/twinStart-S2CCEZWQ.js +111 -0
  40. package/package.json +17 -27
  41. package/dist/examples/agents/llm-refund-agent.d.ts +0 -1
  42. package/dist/examples/agents/llm-refund-agent.js +0 -140
  43. package/dist/examples/agents/llm-triage-agent.d.ts +0 -1
  44. package/dist/examples/agents/llm-triage-agent.js +0 -136
  45. package/dist/examples/agents/mcp-loop-agent.d.ts +0 -1
  46. package/dist/examples/agents/mcp-loop-agent.js +0 -61
  47. package/dist/examples/agents/scripted-pr-reviewer-agent.d.ts +0 -1
  48. package/dist/examples/agents/scripted-pr-reviewer-agent.js +0 -77
  49. package/dist/examples/agents/scripted-triage-agent.d.ts +0 -1
  50. package/dist/examples/agents/scripted-triage-agent.js +0 -92
  51. package/dist/src/capture-server/egress.d.ts +0 -19
  52. package/dist/src/capture-server/egress.js +0 -152
  53. package/dist/src/capture-server/index.d.ts +0 -12
  54. package/dist/src/capture-server/index.js +0 -198
  55. package/dist/src/capture-server/run.d.ts +0 -7
  56. package/dist/src/capture-server/run.js +0 -26
  57. package/dist/src/cli/agent-identity.d.ts +0 -20
  58. package/dist/src/cli/agent-identity.js +0 -64
  59. package/dist/src/cli/agent-resolver.d.ts +0 -29
  60. package/dist/src/cli/agent-resolver.js +0 -131
  61. package/dist/src/cli/checks-add.d.ts +0 -27
  62. package/dist/src/cli/checks-add.js +0 -238
  63. package/dist/src/cli/checks-lint.d.ts +0 -1
  64. package/dist/src/cli/checks-lint.js +0 -59
  65. package/dist/src/cli/checks.d.ts +0 -36
  66. package/dist/src/cli/checks.js +0 -197
  67. package/dist/src/cli/compile-seeds.d.ts +0 -7
  68. package/dist/src/cli/compile-seeds.js +0 -260
  69. package/dist/src/cli/credentials.d.ts +0 -32
  70. package/dist/src/cli/credentials.js +0 -121
  71. package/dist/src/cli/criterion-binding.d.ts +0 -41
  72. package/dist/src/cli/criterion-binding.js +0 -111
  73. package/dist/src/cli/default-task.d.ts +0 -38
  74. package/dist/src/cli/default-task.js +0 -141
  75. package/dist/src/cli/defaults.d.ts +0 -4
  76. package/dist/src/cli/defaults.js +0 -5
  77. package/dist/src/cli/docs-topics.d.ts +0 -13
  78. package/dist/src/cli/docs-topics.js +0 -157
  79. package/dist/src/cli/docs.d.ts +0 -7
  80. package/dist/src/cli/docs.js +0 -178
  81. package/dist/src/cli/eval.d.ts +0 -83
  82. package/dist/src/cli/eval.js +0 -443
  83. package/dist/src/cli/frameworks.d.ts +0 -12
  84. package/dist/src/cli/frameworks.js +0 -62
  85. package/dist/src/cli/init-sdk.d.ts +0 -12
  86. package/dist/src/cli/init-sdk.js +0 -140
  87. package/dist/src/cli/install.d.ts +0 -4
  88. package/dist/src/cli/install.js +0 -36
  89. package/dist/src/cli/keychain.d.ts +0 -5
  90. package/dist/src/cli/keychain.js +0 -80
  91. package/dist/src/cli/link-cache.d.ts +0 -23
  92. package/dist/src/cli/link-cache.js +0 -91
  93. package/dist/src/cli/login.d.ts +0 -6
  94. package/dist/src/cli/login.js +0 -195
  95. package/dist/src/cli/main.d.ts +0 -3
  96. package/dist/src/cli/project-config.d.ts +0 -37
  97. package/dist/src/cli/project-config.js +0 -145
  98. package/dist/src/cli/register.d.ts +0 -33
  99. package/dist/src/cli/register.js +0 -194
  100. package/dist/src/cli/resolve-package-root.d.ts +0 -2
  101. package/dist/src/cli/resolve-package-root.js +0 -20
  102. package/dist/src/cli/session.d.ts +0 -35
  103. package/dist/src/cli/session.js +0 -294
  104. package/dist/src/cli/tasks-catalog.d.ts +0 -25
  105. package/dist/src/cli/tasks-catalog.js +0 -196
  106. package/dist/src/cli/tasks.d.ts +0 -13
  107. package/dist/src/cli/tasks.js +0 -144
  108. package/dist/src/cli/vocabulary-skew.d.ts +0 -64
  109. package/dist/src/cli/vocabulary-skew.js +0 -187
  110. package/dist/src/demo/agent.d.ts +0 -30
  111. package/dist/src/demo/agent.js +0 -231
  112. package/dist/src/demo/capacity.d.ts +0 -18
  113. package/dist/src/demo/capacity.js +0 -94
  114. package/dist/src/demo/gateway.d.ts +0 -66
  115. package/dist/src/demo/gateway.js +0 -76
  116. package/dist/src/demo/ids.d.ts +0 -4
  117. package/dist/src/demo/ids.js +0 -28
  118. package/dist/src/demo/mint.d.ts +0 -17
  119. package/dist/src/demo/mint.js +0 -78
  120. package/dist/src/demo/proxyRequest.d.ts +0 -21
  121. package/dist/src/demo/proxyRequest.js +0 -156
  122. package/dist/src/demo/render.d.ts +0 -32
  123. package/dist/src/demo/render.js +0 -96
  124. package/dist/src/demo/runDemo.d.ts +0 -33
  125. package/dist/src/demo/runDemo.js +0 -314
  126. package/dist/src/demo/task.d.ts +0 -10
  127. package/dist/src/demo/task.js +0 -32
  128. package/dist/src/doctor/checks.d.ts +0 -19
  129. package/dist/src/doctor/checks.js +0 -208
  130. package/dist/src/doctor/render.d.ts +0 -17
  131. package/dist/src/doctor/render.js +0 -39
  132. package/dist/src/doctor/scan.d.ts +0 -16
  133. package/dist/src/doctor/scan.js +0 -127
  134. package/dist/src/fix-prompt/index.d.ts +0 -20
  135. package/dist/src/fix-prompt/index.js +0 -31
  136. package/dist/src/fix-prompt/prompt.d.ts +0 -32
  137. package/dist/src/fix-prompt/prompt.js +0 -240
  138. package/dist/src/hosted/client.d.ts +0 -209
  139. package/dist/src/hosted/client.js +0 -722
  140. package/dist/src/hosted/errors.d.ts +0 -60
  141. package/dist/src/hosted/errors.js +0 -120
  142. package/dist/src/hosted/evalResultCache.d.ts +0 -71
  143. package/dist/src/hosted/evalResultCache.js +0 -219
  144. package/dist/src/hosted/evalResultView.d.ts +0 -40
  145. package/dist/src/hosted/evalResultView.js +0 -103
  146. package/dist/src/hosted/uploadAndFinalize.d.ts +0 -85
  147. package/dist/src/hosted/uploadAndFinalize.js +0 -238
  148. package/dist/src/recorder/artifacts.d.ts +0 -34
  149. package/dist/src/recorder/artifacts.js +0 -153
  150. package/dist/src/recorder/inspect.d.ts +0 -37
  151. package/dist/src/recorder/inspect.js +0 -195
  152. package/dist/src/recorder/recorder.d.ts +0 -14
  153. package/dist/src/recorder/recorder.js +0 -16
  154. package/dist/src/recorder/redaction.d.ts +0 -1
  155. package/dist/src/recorder/redaction.js +0 -2
  156. package/dist/src/recorder/specMeta.d.ts +0 -8
  157. package/dist/src/recorder/specMeta.js +0 -79
  158. package/dist/src/runner/agentRunner.d.ts +0 -12
  159. package/dist/src/runner/agentRunner.js +0 -163
  160. package/dist/src/runner/captureServerChild.d.ts +0 -16
  161. package/dist/src/runner/captureServerChild.js +0 -148
  162. package/dist/src/runner/groupRender.d.ts +0 -65
  163. package/dist/src/runner/groupRender.js +0 -144
  164. package/dist/src/runner/mergeAdapterSignals.d.ts +0 -27
  165. package/dist/src/runner/mergeAdapterSignals.js +0 -137
  166. package/dist/src/runner/ports.d.ts +0 -1
  167. package/dist/src/runner/ports.js +0 -21
  168. package/dist/src/runner/runTask.d.ts +0 -831
  169. package/dist/src/runner/runTask.js +0 -275
  170. package/dist/src/runner/runTaskCore.d.ts +0 -21
  171. package/dist/src/runner/runTaskCore.js +0 -26
  172. package/dist/src/runner/runTaskHosted.d.ts +0 -97
  173. package/dist/src/runner/runTaskHosted.js +0 -660
  174. package/dist/src/runner/runTrialGroup.d.ts +0 -49
  175. package/dist/src/runner/runTrialGroup.js +0 -264
  176. package/dist/src/runner/trialCount.d.ts +0 -8
  177. package/dist/src/runner/trialCount.js +0 -32
  178. package/dist/src/scaffolds/mcp-loop/loop.d.ts +0 -47
  179. package/dist/src/scaffolds/mcp-loop/loop.js +0 -331
  180. package/dist/src/scaffolds/mcp-loop/providers.d.ts +0 -29
  181. package/dist/src/scaffolds/mcp-loop/providers.js +0 -142
  182. package/dist/src/task/githubSeedCompat.d.ts +0 -3
  183. package/dist/src/task/githubSeedCompat.js +0 -48
  184. package/dist/src/task/insertCriterion.d.ts +0 -15
  185. package/dist/src/task/insertCriterion.js +0 -67
  186. package/dist/src/task/parseTask.d.ts +0 -35
  187. package/dist/src/task/parseTask.js +0 -398
  188. package/dist/src/task/seed-compiler-hosted.d.ts +0 -8
  189. package/dist/src/task/seed-compiler-hosted.js +0 -122
  190. package/dist/src/task/seed-compiler.d.ts +0 -11
  191. package/dist/src/task/seed-compiler.js +0 -61
  192. package/dist/src/task/seed-verifier.d.ts +0 -1
  193. package/dist/src/task/seed-verifier.js +0 -23
  194. package/dist/src/task/taskSchema.d.ts +0 -1978
  195. package/dist/src/task/taskSchema.js +0 -106
  196. package/dist/src/twin/githubCloneAdapter.d.ts +0 -70
  197. package/dist/src/twin/githubCloneAdapter.js +0 -19
  198. package/dist/src/twin/twinHarness.d.ts +0 -52
  199. package/dist/src/twin/twinHarness.js +0 -186
  200. package/dist/src/twin/twinStart.d.ts +0 -21
  201. package/dist/src/twin/twinStart.js +0 -174
  202. package/dist/src/types/shared.d.ts +0 -1
  203. package/dist/src/types/shared.js +0 -2
  204. package/node_modules/@hono/node-server/LICENSE +0 -21
  205. package/node_modules/@hono/node-server/README.md +0 -437
  206. package/node_modules/@hono/node-server/dist/conninfo.cjs +0 -22
  207. package/node_modules/@hono/node-server/dist/conninfo.d.cts +0 -11
  208. package/node_modules/@hono/node-server/dist/conninfo.d.mts +0 -11
  209. package/node_modules/@hono/node-server/dist/conninfo.mjs +0 -20
  210. package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +0 -5
  211. package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +0 -11
  212. package/node_modules/@hono/node-server/dist/early-hints.cjs +0 -35
  213. package/node_modules/@hono/node-server/dist/early-hints.d.cts +0 -16
  214. package/node_modules/@hono/node-server/dist/early-hints.d.mts +0 -16
  215. package/node_modules/@hono/node-server/dist/early-hints.mjs +0 -33
  216. package/node_modules/@hono/node-server/dist/index.cjs +0 -1176
  217. package/node_modules/@hono/node-server/dist/index.d.cts +0 -101
  218. package/node_modules/@hono/node-server/dist/index.d.mts +0 -101
  219. package/node_modules/@hono/node-server/dist/index.mjs +0 -1171
  220. package/node_modules/@hono/node-server/dist/serve-static.cjs +0 -151
  221. package/node_modules/@hono/node-server/dist/serve-static.d.cts +0 -18
  222. package/node_modules/@hono/node-server/dist/serve-static.d.mts +0 -18
  223. package/node_modules/@hono/node-server/dist/serve-static.mjs +0 -150
  224. package/node_modules/@hono/node-server/dist/utils/response.cjs +0 -8
  225. package/node_modules/@hono/node-server/dist/utils/response.d.cts +0 -4
  226. package/node_modules/@hono/node-server/dist/utils/response.d.mts +0 -4
  227. package/node_modules/@hono/node-server/dist/utils/response.mjs +0 -7
  228. package/node_modules/@hono/node-server/dist/utils/stream.cjs +0 -65
  229. package/node_modules/@hono/node-server/dist/utils/stream.d.cts +0 -6
  230. package/node_modules/@hono/node-server/dist/utils/stream.d.mts +0 -6
  231. package/node_modules/@hono/node-server/dist/utils/stream.mjs +0 -64
  232. package/node_modules/@hono/node-server/package.json +0 -127
  233. package/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +0 -35
  234. package/node_modules/@pome-sh/sdk/dist/admin-gate.js +0 -103
  235. package/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +0 -1
  236. package/node_modules/@pome-sh/sdk/dist/auth.d.ts +0 -100
  237. package/node_modules/@pome-sh/sdk/dist/auth.js +0 -262
  238. package/node_modules/@pome-sh/sdk/dist/auth.js.map +0 -1
  239. package/node_modules/@pome-sh/sdk/dist/build-info.d.ts +0 -7
  240. package/node_modules/@pome-sh/sdk/dist/build-info.js +0 -14
  241. package/node_modules/@pome-sh/sdk/dist/build-info.js.map +0 -1
  242. package/node_modules/@pome-sh/sdk/dist/check-discrimination.d.ts +0 -7
  243. package/node_modules/@pome-sh/sdk/dist/check-discrimination.js +0 -81
  244. package/node_modules/@pome-sh/sdk/dist/check-discrimination.js.map +0 -1
  245. package/node_modules/@pome-sh/sdk/dist/check-state-path.d.ts +0 -71
  246. package/node_modules/@pome-sh/sdk/dist/check-state-path.js +0 -200
  247. package/node_modules/@pome-sh/sdk/dist/check-state-path.js.map +0 -1
  248. package/node_modules/@pome-sh/sdk/dist/checks.d.ts +0 -93
  249. package/node_modules/@pome-sh/sdk/dist/checks.js +0 -218
  250. package/node_modules/@pome-sh/sdk/dist/checks.js.map +0 -1
  251. package/node_modules/@pome-sh/sdk/dist/db.d.ts +0 -44
  252. package/node_modules/@pome-sh/sdk/dist/db.js +0 -113
  253. package/node_modules/@pome-sh/sdk/dist/db.js.map +0 -1
  254. package/node_modules/@pome-sh/sdk/dist/errors.d.ts +0 -24
  255. package/node_modules/@pome-sh/sdk/dist/errors.js +0 -61
  256. package/node_modules/@pome-sh/sdk/dist/errors.js.map +0 -1
  257. package/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +0 -43
  258. package/node_modules/@pome-sh/sdk/dist/failure-injection.js +0 -167
  259. package/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +0 -1
  260. package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +0 -121
  261. package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +0 -204
  262. package/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +0 -1
  263. package/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +0 -8
  264. package/node_modules/@pome-sh/sdk/dist/fidelity.js +0 -39
  265. package/node_modules/@pome-sh/sdk/dist/fidelity.js.map +0 -1
  266. package/node_modules/@pome-sh/sdk/dist/index.d.ts +0 -380
  267. package/node_modules/@pome-sh/sdk/dist/index.js +0 -140
  268. package/node_modules/@pome-sh/sdk/dist/index.js.map +0 -1
  269. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +0 -10
  270. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +0 -231
  271. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +0 -1
  272. package/node_modules/@pome-sh/sdk/dist/parity.d.ts +0 -61
  273. package/node_modules/@pome-sh/sdk/dist/parity.js +0 -123
  274. package/node_modules/@pome-sh/sdk/dist/parity.js.map +0 -1
  275. package/node_modules/@pome-sh/sdk/dist/recorder.d.ts +0 -129
  276. package/node_modules/@pome-sh/sdk/dist/recorder.js +0 -381
  277. package/node_modules/@pome-sh/sdk/dist/recorder.js.map +0 -1
  278. package/node_modules/@pome-sh/sdk/dist/redaction.d.ts +0 -1
  279. package/node_modules/@pome-sh/sdk/dist/redaction.js +0 -3
  280. package/node_modules/@pome-sh/sdk/dist/redaction.js.map +0 -1
  281. package/node_modules/@pome-sh/sdk/dist/request-capture.d.ts +0 -31
  282. package/node_modules/@pome-sh/sdk/dist/request-capture.js +0 -59
  283. package/node_modules/@pome-sh/sdk/dist/request-capture.js.map +0 -1
  284. package/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +0 -54
  285. package/node_modules/@pome-sh/sdk/dist/server-helpers.js +0 -181
  286. package/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +0 -1
  287. package/node_modules/@pome-sh/sdk/dist/server.d.ts +0 -47
  288. package/node_modules/@pome-sh/sdk/dist/server.js +0 -407
  289. package/node_modules/@pome-sh/sdk/dist/server.js.map +0 -1
  290. package/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +0 -8
  291. package/node_modules/@pome-sh/sdk/dist/tool-context.js +0 -22
  292. package/node_modules/@pome-sh/sdk/dist/tool-context.js.map +0 -1
  293. package/node_modules/@pome-sh/sdk/package.json +0 -58
  294. package/node_modules/@pome-sh/shared-types/dist/errors.d.ts +0 -39
  295. package/node_modules/@pome-sh/shared-types/dist/errors.js +0 -33
  296. package/node_modules/@pome-sh/shared-types/dist/errors.js.map +0 -1
  297. package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +0 -254
  298. package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +0 -122
  299. package/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +0 -1
  300. package/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +0 -175
  301. package/node_modules/@pome-sh/shared-types/dist/github-access-control.js +0 -182
  302. package/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +0 -1
  303. package/node_modules/@pome-sh/shared-types/dist/identity.d.ts +0 -90
  304. package/node_modules/@pome-sh/shared-types/dist/identity.js +0 -72
  305. package/node_modules/@pome-sh/shared-types/dist/identity.js.map +0 -1
  306. package/node_modules/@pome-sh/shared-types/dist/index.d.ts +0 -28
  307. package/node_modules/@pome-sh/shared-types/dist/index.js +0 -35
  308. package/node_modules/@pome-sh/shared-types/dist/index.js.map +0 -1
  309. package/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +0 -31
  310. package/node_modules/@pome-sh/shared-types/dist/manifest.js +0 -76
  311. package/node_modules/@pome-sh/shared-types/dist/manifest.js.map +0 -1
  312. package/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +0 -424
  313. package/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +0 -33
  314. package/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +0 -1
  315. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +0 -65
  316. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +0 -455
  317. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +0 -1
  318. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +0 -39
  319. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +0 -47
  320. package/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +0 -1
  321. package/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +0 -25
  322. package/node_modules/@pome-sh/shared-types/dist/otel/index.js +0 -27
  323. package/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +0 -1
  324. package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +0 -105
  325. package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +0 -198
  326. package/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +0 -1
  327. package/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +0 -64
  328. package/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +0 -112
  329. package/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +0 -1
  330. package/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +0 -26
  331. package/node_modules/@pome-sh/shared-types/dist/otel/nano.js +0 -61
  332. package/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +0 -1
  333. package/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +0 -42
  334. package/node_modules/@pome-sh/shared-types/dist/otel/project.js +0 -104
  335. package/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +0 -1
  336. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +0 -57
  337. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +0 -102
  338. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +0 -1
  339. package/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +0 -198
  340. package/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +0 -166
  341. package/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +0 -1
  342. package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +0 -526
  343. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +0 -381
  344. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +0 -1
  345. package/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +0 -2
  346. package/node_modules/@pome-sh/shared-types/dist/redaction.js +0 -152
  347. package/node_modules/@pome-sh/shared-types/dist/redaction.js.map +0 -1
  348. package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +0 -259
  349. package/node_modules/@pome-sh/shared-types/dist/rest.js +0 -346
  350. package/node_modules/@pome-sh/shared-types/dist/rest.js.map +0 -1
  351. package/node_modules/@pome-sh/shared-types/dist/run.d.ts +0 -208
  352. package/node_modules/@pome-sh/shared-types/dist/run.js +0 -170
  353. package/node_modules/@pome-sh/shared-types/dist/run.js.map +0 -1
  354. package/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +0 -14
  355. package/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +0 -46
  356. package/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +0 -1
  357. package/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +0 -1506
  358. package/node_modules/@pome-sh/shared-types/dist/seed-state.js +0 -462
  359. package/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +0 -1
  360. package/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +0 -53
  361. package/node_modules/@pome-sh/shared-types/dist/sessions.js +0 -51
  362. package/node_modules/@pome-sh/shared-types/dist/sessions.js.map +0 -1
  363. package/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +0 -80
  364. package/node_modules/@pome-sh/shared-types/dist/task-vocab.js +0 -98
  365. package/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +0 -1
  366. package/node_modules/@pome-sh/shared-types/dist/task.d.ts +0 -1193
  367. package/node_modules/@pome-sh/shared-types/dist/task.js +0 -60
  368. package/node_modules/@pome-sh/shared-types/dist/task.js.map +0 -1
  369. package/node_modules/@pome-sh/shared-types/manifest-schema.json +0 -68
  370. package/node_modules/@pome-sh/shared-types/package.json +0 -55
  371. package/node_modules/@pome-sh/shared-types/trace-contract.json +0 -89
  372. package/node_modules/@pome-sh/twin-github/FIDELITY.md +0 -395
  373. package/node_modules/@pome-sh/twin-github/README.md +0 -254
  374. package/node_modules/@pome-sh/twin-github/dist/examples/claude-github-agent.d.ts +0 -1
  375. package/node_modules/@pome-sh/twin-github/dist/examples/claude-github-agent.js +0 -222
  376. package/node_modules/@pome-sh/twin-github/dist/examples/claude-github-agent.js.map +0 -1
  377. package/node_modules/@pome-sh/twin-github/dist/examples/mcp-node.d.ts +0 -1
  378. package/node_modules/@pome-sh/twin-github/dist/examples/mcp-node.js +0 -15
  379. package/node_modules/@pome-sh/twin-github/dist/examples/mcp-node.js.map +0 -1
  380. package/node_modules/@pome-sh/twin-github/dist/examples/mini-bot-flow.d.ts +0 -1
  381. package/node_modules/@pome-sh/twin-github/dist/examples/mini-bot-flow.js +0 -39
  382. package/node_modules/@pome-sh/twin-github/dist/examples/mini-bot-flow.js.map +0 -1
  383. package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +0 -32
  384. package/node_modules/@pome-sh/twin-github/dist/src/access-control.js +0 -20
  385. package/node_modules/@pome-sh/twin-github/dist/src/access-control.js.map +0 -1
  386. package/node_modules/@pome-sh/twin-github/dist/src/check-issues.d.ts +0 -30
  387. package/node_modules/@pome-sh/twin-github/dist/src/check-issues.js +0 -268
  388. package/node_modules/@pome-sh/twin-github/dist/src/check-issues.js.map +0 -1
  389. package/node_modules/@pome-sh/twin-github/dist/src/check-kind.d.ts +0 -3
  390. package/node_modules/@pome-sh/twin-github/dist/src/check-kind.js +0 -10
  391. package/node_modules/@pome-sh/twin-github/dist/src/check-kind.js.map +0 -1
  392. package/node_modules/@pome-sh/twin-github/dist/src/check-params.d.ts +0 -13
  393. package/node_modules/@pome-sh/twin-github/dist/src/check-params.js +0 -116
  394. package/node_modules/@pome-sh/twin-github/dist/src/check-params.js.map +0 -1
  395. package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.d.ts +0 -15
  396. package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.js +0 -237
  397. package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.js.map +0 -1
  398. package/node_modules/@pome-sh/twin-github/dist/src/check-repos.d.ts +0 -16
  399. package/node_modules/@pome-sh/twin-github/dist/src/check-repos.js +0 -256
  400. package/node_modules/@pome-sh/twin-github/dist/src/check-repos.js.map +0 -1
  401. package/node_modules/@pome-sh/twin-github/dist/src/check-state.d.ts +0 -77
  402. package/node_modules/@pome-sh/twin-github/dist/src/check-state.js +0 -147
  403. package/node_modules/@pome-sh/twin-github/dist/src/check-state.js.map +0 -1
  404. package/node_modules/@pome-sh/twin-github/dist/src/check-tape.d.ts +0 -5
  405. package/node_modules/@pome-sh/twin-github/dist/src/check-tape.js +0 -182
  406. package/node_modules/@pome-sh/twin-github/dist/src/check-tape.js.map +0 -1
  407. package/node_modules/@pome-sh/twin-github/dist/src/check-worlds.d.ts +0 -13
  408. package/node_modules/@pome-sh/twin-github/dist/src/check-worlds.js +0 -33
  409. package/node_modules/@pome-sh/twin-github/dist/src/check-worlds.js.map +0 -1
  410. package/node_modules/@pome-sh/twin-github/dist/src/checks.d.ts +0 -50
  411. package/node_modules/@pome-sh/twin-github/dist/src/checks.js +0 -79
  412. package/node_modules/@pome-sh/twin-github/dist/src/checks.js.map +0 -1
  413. package/node_modules/@pome-sh/twin-github/dist/src/db.d.ts +0 -4
  414. package/node_modules/@pome-sh/twin-github/dist/src/db.js +0 -443
  415. package/node_modules/@pome-sh/twin-github/dist/src/db.js.map +0 -1
  416. package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.d.ts +0 -153
  417. package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.js +0 -66
  418. package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.js.map +0 -1
  419. package/node_modules/@pome-sh/twin-github/dist/src/domain/git.d.ts +0 -567
  420. package/node_modules/@pome-sh/twin-github/dist/src/domain/git.js +0 -198
  421. package/node_modules/@pome-sh/twin-github/dist/src/domain/git.js.map +0 -1
  422. package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.d.ts +0 -3106
  423. package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.js +0 -842
  424. package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.js.map +0 -1
  425. package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.d.ts +0 -5
  426. package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.js +0 -15
  427. package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.js.map +0 -1
  428. package/node_modules/@pome-sh/twin-github/dist/src/domain/index.d.ts +0 -2
  429. package/node_modules/@pome-sh/twin-github/dist/src/domain/index.js +0 -5
  430. package/node_modules/@pome-sh/twin-github/dist/src/domain/index.js.map +0 -1
  431. package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.d.ts +0 -545
  432. package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.js +0 -282
  433. package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.js.map +0 -1
  434. package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.d.ts +0 -816
  435. package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.js +0 -256
  436. package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.js.map +0 -1
  437. package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.d.ts +0 -160
  438. package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.js +0 -63
  439. package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.js.map +0 -1
  440. package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.d.ts +0 -219
  441. package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.js +0 -131
  442. package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.js.map +0 -1
  443. package/node_modules/@pome-sh/twin-github/dist/src/domain/search.d.ts +0 -252
  444. package/node_modules/@pome-sh/twin-github/dist/src/domain/search.js +0 -83
  445. package/node_modules/@pome-sh/twin-github/dist/src/domain/search.js.map +0 -1
  446. package/node_modules/@pome-sh/twin-github/dist/src/domain/types.d.ts +0 -15
  447. package/node_modules/@pome-sh/twin-github/dist/src/domain/types.js +0 -2
  448. package/node_modules/@pome-sh/twin-github/dist/src/domain/types.js.map +0 -1
  449. package/node_modules/@pome-sh/twin-github/dist/src/errors.d.ts +0 -14
  450. package/node_modules/@pome-sh/twin-github/dist/src/errors.js +0 -35
  451. package/node_modules/@pome-sh/twin-github/dist/src/errors.js.map +0 -1
  452. package/node_modules/@pome-sh/twin-github/dist/src/index.d.ts +0 -9
  453. package/node_modules/@pome-sh/twin-github/dist/src/index.js +0 -7
  454. package/node_modules/@pome-sh/twin-github/dist/src/index.js.map +0 -1
  455. package/node_modules/@pome-sh/twin-github/dist/src/routes.d.ts +0 -4
  456. package/node_modules/@pome-sh/twin-github/dist/src/routes.js +0 -372
  457. package/node_modules/@pome-sh/twin-github/dist/src/routes.js.map +0 -1
  458. package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +0 -84
  459. package/node_modules/@pome-sh/twin-github/dist/src/seed.js +0 -170
  460. package/node_modules/@pome-sh/twin-github/dist/src/seed.js.map +0 -1
  461. package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +0 -926
  462. package/node_modules/@pome-sh/twin-github/dist/src/serializers.js +0 -685
  463. package/node_modules/@pome-sh/twin-github/dist/src/serializers.js.map +0 -1
  464. package/node_modules/@pome-sh/twin-github/dist/src/server.d.ts +0 -2
  465. package/node_modules/@pome-sh/twin-github/dist/src/server.js +0 -43
  466. package/node_modules/@pome-sh/twin-github/dist/src/server.js.map +0 -1
  467. package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +0 -2815
  468. package/node_modules/@pome-sh/twin-github/dist/src/tools.js +0 -621
  469. package/node_modules/@pome-sh/twin-github/dist/src/tools.js.map +0 -1
  470. package/node_modules/@pome-sh/twin-github/dist/src/twin.d.ts +0 -15
  471. package/node_modules/@pome-sh/twin-github/dist/src/twin.js +0 -193
  472. package/node_modules/@pome-sh/twin-github/dist/src/twin.js.map +0 -1
  473. package/node_modules/@pome-sh/twin-github/dist/src/types.d.ts +0 -244
  474. package/node_modules/@pome-sh/twin-github/dist/src/types.js +0 -2
  475. package/node_modules/@pome-sh/twin-github/dist/src/types.js.map +0 -1
  476. package/node_modules/@pome-sh/twin-github/dist/src/unsupported-envelope.d.ts +0 -10
  477. package/node_modules/@pome-sh/twin-github/dist/src/unsupported-envelope.js +0 -27
  478. package/node_modules/@pome-sh/twin-github/dist/src/unsupported-envelope.js.map +0 -1
  479. package/node_modules/@pome-sh/twin-github/dist/src/upstream-types.d.ts +0 -30
  480. package/node_modules/@pome-sh/twin-github/dist/src/upstream-types.js +0 -2
  481. package/node_modules/@pome-sh/twin-github/dist/src/upstream-types.js.map +0 -1
  482. package/node_modules/@pome-sh/twin-github/dist/src/util.d.ts +0 -12
  483. package/node_modules/@pome-sh/twin-github/dist/src/util.js +0 -63
  484. package/node_modules/@pome-sh/twin-github/dist/src/util.js.map +0 -1
  485. package/node_modules/@pome-sh/twin-github/fidelity.inventory.json +0 -773
  486. package/node_modules/@pome-sh/twin-github/package.json +0 -63
  487. package/node_modules/@pome-sh/twin-gmail/CHANGELOG.md +0 -126
  488. package/node_modules/@pome-sh/twin-gmail/HOSTED.md +0 -45
  489. package/node_modules/@pome-sh/twin-gmail/LIMITS.md +0 -51
  490. package/node_modules/@pome-sh/twin-gmail/README.md +0 -150
  491. package/node_modules/@pome-sh/twin-gmail/REFERENCE-DIVERGENCES.md +0 -42
  492. package/node_modules/@pome-sh/twin-gmail/dist/fixtures/mcp-tools-list.canonical.json +0 -1209
  493. package/node_modules/@pome-sh/twin-gmail/dist/src/check-drafts.d.ts +0 -7
  494. package/node_modules/@pome-sh/twin-gmail/dist/src/check-drafts.js +0 -153
  495. package/node_modules/@pome-sh/twin-gmail/dist/src/check-drafts.js.map +0 -1
  496. package/node_modules/@pome-sh/twin-gmail/dist/src/check-kind.d.ts +0 -3
  497. package/node_modules/@pome-sh/twin-gmail/dist/src/check-kind.js +0 -9
  498. package/node_modules/@pome-sh/twin-gmail/dist/src/check-kind.js.map +0 -1
  499. package/node_modules/@pome-sh/twin-gmail/dist/src/check-labels.d.ts +0 -4
  500. package/node_modules/@pome-sh/twin-gmail/dist/src/check-labels.js +0 -67
  501. package/node_modules/@pome-sh/twin-gmail/dist/src/check-labels.js.map +0 -1
  502. package/node_modules/@pome-sh/twin-gmail/dist/src/check-messages.d.ts +0 -14
  503. package/node_modules/@pome-sh/twin-gmail/dist/src/check-messages.js +0 -223
  504. package/node_modules/@pome-sh/twin-gmail/dist/src/check-messages.js.map +0 -1
  505. package/node_modules/@pome-sh/twin-gmail/dist/src/check-params.d.ts +0 -10
  506. package/node_modules/@pome-sh/twin-gmail/dist/src/check-params.js +0 -96
  507. package/node_modules/@pome-sh/twin-gmail/dist/src/check-params.js.map +0 -1
  508. package/node_modules/@pome-sh/twin-gmail/dist/src/check-state.d.ts +0 -138
  509. package/node_modules/@pome-sh/twin-gmail/dist/src/check-state.js +0 -181
  510. package/node_modules/@pome-sh/twin-gmail/dist/src/check-state.js.map +0 -1
  511. package/node_modules/@pome-sh/twin-gmail/dist/src/check-tape.d.ts +0 -2
  512. package/node_modules/@pome-sh/twin-gmail/dist/src/check-tape.js +0 -103
  513. package/node_modules/@pome-sh/twin-gmail/dist/src/check-tape.js.map +0 -1
  514. package/node_modules/@pome-sh/twin-gmail/dist/src/check-worlds.d.ts +0 -17
  515. package/node_modules/@pome-sh/twin-gmail/dist/src/check-worlds.js +0 -62
  516. package/node_modules/@pome-sh/twin-gmail/dist/src/check-worlds.js.map +0 -1
  517. package/node_modules/@pome-sh/twin-gmail/dist/src/checks.d.ts +0 -19
  518. package/node_modules/@pome-sh/twin-gmail/dist/src/checks.js +0 -42
  519. package/node_modules/@pome-sh/twin-gmail/dist/src/checks.js.map +0 -1
  520. package/node_modules/@pome-sh/twin-gmail/dist/src/db.d.ts +0 -4
  521. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js +0 -212
  522. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js.map +0 -1
  523. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/drafts.d.ts +0 -41
  524. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/drafts.js +0 -138
  525. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/drafts.js.map +0 -1
  526. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/filters.d.ts +0 -10
  527. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/filters.js +0 -105
  528. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/filters.js.map +0 -1
  529. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/gmail-domain.d.ts +0 -121
  530. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/gmail-domain.js +0 -174
  531. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/gmail-domain.js.map +0 -1
  532. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/hydrate.d.ts +0 -8
  533. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/hydrate.js +0 -122
  534. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/hydrate.js.map +0 -1
  535. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/index.d.ts +0 -4
  536. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/index.js +0 -5
  537. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/index.js.map +0 -1
  538. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/labels.d.ts +0 -40
  539. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/labels.js +0 -122
  540. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/labels.js.map +0 -1
  541. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/messages.d.ts +0 -49
  542. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/messages.js +0 -276
  543. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/messages.js.map +0 -1
  544. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/search-sql.d.ts +0 -19
  545. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/search-sql.js +0 -179
  546. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/search-sql.js.map +0 -1
  547. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/settings.d.ts +0 -27
  548. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/settings.js +0 -98
  549. package/node_modules/@pome-sh/twin-gmail/dist/src/domain/settings.js.map +0 -1
  550. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.d.ts +0 -12
  551. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js +0 -117
  552. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js.map +0 -1
  553. package/node_modules/@pome-sh/twin-gmail/dist/src/faults.d.ts +0 -21
  554. package/node_modules/@pome-sh/twin-gmail/dist/src/faults.js +0 -52
  555. package/node_modules/@pome-sh/twin-gmail/dist/src/faults.js.map +0 -1
  556. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.d.ts +0 -5
  557. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js +0 -18
  558. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js.map +0 -1
  559. package/node_modules/@pome-sh/twin-gmail/dist/src/index.d.ts +0 -15
  560. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js +0 -17
  561. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js.map +0 -1
  562. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.d.ts +0 -224
  563. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js +0 -185
  564. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js.map +0 -1
  565. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.d.ts +0 -3
  566. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js +0 -306
  567. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js.map +0 -1
  568. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.d.ts +0 -49
  569. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js +0 -315
  570. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js.map +0 -1
  571. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.d.ts +0 -11
  572. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js +0 -70
  573. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js.map +0 -1
  574. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.d.ts +0 -6
  575. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js +0 -74
  576. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js.map +0 -1
  577. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.d.ts +0 -28
  578. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js +0 -120
  579. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js.map +0 -1
  580. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.d.ts +0 -3
  581. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js +0 -84
  582. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js.map +0 -1
  583. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.d.ts +0 -18
  584. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js +0 -52
  585. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js.map +0 -1
  586. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.d.ts +0 -3
  587. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js +0 -143
  588. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js.map +0 -1
  589. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.d.ts +0 -3
  590. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js +0 -203
  591. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js.map +0 -1
  592. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.d.ts +0 -4
  593. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js +0 -11
  594. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js.map +0 -1
  595. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.d.ts +0 -16
  596. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js +0 -151
  597. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js.map +0 -1
  598. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.d.ts +0 -12
  599. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js +0 -127
  600. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js.map +0 -1
  601. package/node_modules/@pome-sh/twin-gmail/dist/src/search-match.d.ts +0 -4
  602. package/node_modules/@pome-sh/twin-gmail/dist/src/search-match.js +0 -179
  603. package/node_modules/@pome-sh/twin-gmail/dist/src/search-match.js.map +0 -1
  604. package/node_modules/@pome-sh/twin-gmail/dist/src/search-parse.d.ts +0 -61
  605. package/node_modules/@pome-sh/twin-gmail/dist/src/search-parse.js +0 -318
  606. package/node_modules/@pome-sh/twin-gmail/dist/src/search-parse.js.map +0 -1
  607. package/node_modules/@pome-sh/twin-gmail/dist/src/search.d.ts +0 -3
  608. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js +0 -3
  609. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js.map +0 -1
  610. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.d.ts +0 -239
  611. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js +0 -271
  612. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js.map +0 -1
  613. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.d.ts +0 -3
  614. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js +0 -89
  615. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js.map +0 -1
  616. package/node_modules/@pome-sh/twin-gmail/dist/src/server.d.ts +0 -2
  617. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js +0 -21
  618. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js.map +0 -1
  619. package/node_modules/@pome-sh/twin-gmail/dist/src/state.d.ts +0 -55
  620. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js +0 -225
  621. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js.map +0 -1
  622. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.d.ts +0 -20
  623. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js +0 -171
  624. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js.map +0 -1
  625. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.d.ts +0 -16
  626. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js +0 -96
  627. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js.map +0 -1
  628. package/node_modules/@pome-sh/twin-gmail/dist/src/types.d.ts +0 -150
  629. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js +0 -2
  630. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js.map +0 -1
  631. package/node_modules/@pome-sh/twin-gmail/fidelity.inventory.json +0 -565
  632. package/node_modules/@pome-sh/twin-gmail/fixtures/README.md +0 -28
  633. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.meta.json +0 -6
  634. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.raw.json +0 -4510
  635. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.meta.json +0 -8
  636. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.raw.json +0 -1
  637. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call-unauth-error.raw.json +0 -1
  638. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call.representative.json +0 -508
  639. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.canonical.json +0 -1209
  640. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.meta.json +0 -29
  641. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.raw.json +0 -1
  642. package/node_modules/@pome-sh/twin-gmail/fixtures/rest-surface.json +0 -3502
  643. package/node_modules/@pome-sh/twin-gmail/package.json +0 -76
  644. package/node_modules/@pome-sh/twin-linear/CHANGELOG.md +0 -204
  645. package/node_modules/@pome-sh/twin-linear/FIDELITY.md +0 -62
  646. package/node_modules/@pome-sh/twin-linear/HOSTED.md +0 -46
  647. package/node_modules/@pome-sh/twin-linear/LIMITS.md +0 -54
  648. package/node_modules/@pome-sh/twin-linear/README.md +0 -151
  649. package/node_modules/@pome-sh/twin-linear/REFERENCE-DIVERGENCES.md +0 -50
  650. package/node_modules/@pome-sh/twin-linear/dist/fixtures/mcp-tools-list.canonical.json +0 -353
  651. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.d.ts +0 -8
  652. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js +0 -55
  653. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js.map +0 -1
  654. package/node_modules/@pome-sh/twin-linear/dist/src/check-comments.d.ts +0 -10
  655. package/node_modules/@pome-sh/twin-linear/dist/src/check-comments.js +0 -129
  656. package/node_modules/@pome-sh/twin-linear/dist/src/check-comments.js.map +0 -1
  657. package/node_modules/@pome-sh/twin-linear/dist/src/check-issues.d.ts +0 -25
  658. package/node_modules/@pome-sh/twin-linear/dist/src/check-issues.js +0 -238
  659. package/node_modules/@pome-sh/twin-linear/dist/src/check-issues.js.map +0 -1
  660. package/node_modules/@pome-sh/twin-linear/dist/src/check-kind.d.ts +0 -3
  661. package/node_modules/@pome-sh/twin-linear/dist/src/check-kind.js +0 -9
  662. package/node_modules/@pome-sh/twin-linear/dist/src/check-kind.js.map +0 -1
  663. package/node_modules/@pome-sh/twin-linear/dist/src/check-params.d.ts +0 -8
  664. package/node_modules/@pome-sh/twin-linear/dist/src/check-params.js +0 -94
  665. package/node_modules/@pome-sh/twin-linear/dist/src/check-params.js.map +0 -1
  666. package/node_modules/@pome-sh/twin-linear/dist/src/check-state.d.ts +0 -123
  667. package/node_modules/@pome-sh/twin-linear/dist/src/check-state.js +0 -184
  668. package/node_modules/@pome-sh/twin-linear/dist/src/check-state.js.map +0 -1
  669. package/node_modules/@pome-sh/twin-linear/dist/src/check-tape.d.ts +0 -2
  670. package/node_modules/@pome-sh/twin-linear/dist/src/check-tape.js +0 -100
  671. package/node_modules/@pome-sh/twin-linear/dist/src/check-tape.js.map +0 -1
  672. package/node_modules/@pome-sh/twin-linear/dist/src/check-worlds.d.ts +0 -44
  673. package/node_modules/@pome-sh/twin-linear/dist/src/check-worlds.js +0 -93
  674. package/node_modules/@pome-sh/twin-linear/dist/src/check-worlds.js.map +0 -1
  675. package/node_modules/@pome-sh/twin-linear/dist/src/checks.d.ts +0 -29
  676. package/node_modules/@pome-sh/twin-linear/dist/src/checks.js +0 -52
  677. package/node_modules/@pome-sh/twin-linear/dist/src/checks.js.map +0 -1
  678. package/node_modules/@pome-sh/twin-linear/dist/src/db.d.ts +0 -10
  679. package/node_modules/@pome-sh/twin-linear/dist/src/db.js +0 -382
  680. package/node_modules/@pome-sh/twin-linear/dist/src/db.js.map +0 -1
  681. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.d.ts +0 -32
  682. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js +0 -107
  683. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js.map +0 -1
  684. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.d.ts +0 -9
  685. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js +0 -41
  686. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js.map +0 -1
  687. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.d.ts +0 -13
  688. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js +0 -108
  689. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js.map +0 -1
  690. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.d.ts +0 -31
  691. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js +0 -113
  692. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js.map +0 -1
  693. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.d.ts +0 -4
  694. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js +0 -6
  695. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js.map +0 -1
  696. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.d.ts +0 -13
  697. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js +0 -60
  698. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js.map +0 -1
  699. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.d.ts +0 -57
  700. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js +0 -359
  701. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js.map +0 -1
  702. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.d.ts +0 -18
  703. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js +0 -117
  704. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js.map +0 -1
  705. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.d.ts +0 -177
  706. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js +0 -315
  707. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js.map +0 -1
  708. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.d.ts +0 -18
  709. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js +0 -84
  710. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js.map +0 -1
  711. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.d.ts +0 -55
  712. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js +0 -127
  713. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js.map +0 -1
  714. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.d.ts +0 -17
  715. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js +0 -51
  716. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js.map +0 -1
  717. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.d.ts +0 -211
  718. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js +0 -217
  719. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js.map +0 -1
  720. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.d.ts +0 -5
  721. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js +0 -12
  722. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js.map +0 -1
  723. package/node_modules/@pome-sh/twin-linear/dist/src/errors.d.ts +0 -26
  724. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js +0 -128
  725. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js.map +0 -1
  726. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.d.ts +0 -27
  727. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js +0 -261
  728. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js.map +0 -1
  729. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.d.ts +0 -5
  730. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js +0 -122
  731. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js.map +0 -1
  732. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.d.ts +0 -170
  733. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js +0 -260
  734. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js.map +0 -1
  735. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.d.ts +0 -6
  736. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js +0 -169
  737. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js.map +0 -1
  738. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.d.ts +0 -6
  739. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js +0 -176
  740. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js.map +0 -1
  741. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.d.ts +0 -3
  742. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js +0 -522
  743. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js.map +0 -1
  744. package/node_modules/@pome-sh/twin-linear/dist/src/identity.d.ts +0 -7
  745. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js +0 -14
  746. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js.map +0 -1
  747. package/node_modules/@pome-sh/twin-linear/dist/src/ids.d.ts +0 -5
  748. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js +0 -28
  749. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js.map +0 -1
  750. package/node_modules/@pome-sh/twin-linear/dist/src/index.d.ts +0 -18
  751. package/node_modules/@pome-sh/twin-linear/dist/src/index.js +0 -21
  752. package/node_modules/@pome-sh/twin-linear/dist/src/index.js.map +0 -1
  753. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.d.ts +0 -121
  754. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js +0 -126
  755. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js.map +0 -1
  756. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.d.ts +0 -4
  757. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js +0 -430
  758. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js.map +0 -1
  759. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.d.ts +0 -5
  760. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js +0 -340
  761. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js.map +0 -1
  762. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.d.ts +0 -29
  763. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js +0 -101
  764. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js.map +0 -1
  765. package/node_modules/@pome-sh/twin-linear/dist/src/recording.d.ts +0 -2
  766. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js +0 -46
  767. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js.map +0 -1
  768. package/node_modules/@pome-sh/twin-linear/dist/src/routes.d.ts +0 -9
  769. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js +0 -10
  770. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js.map +0 -1
  771. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.d.ts +0 -4
  772. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js +0 -186
  773. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js.map +0 -1
  774. package/node_modules/@pome-sh/twin-linear/dist/src/seed.d.ts +0 -158
  775. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js +0 -541
  776. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js.map +0 -1
  777. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.d.ts +0 -29
  778. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js +0 -47
  779. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js.map +0 -1
  780. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.d.ts +0 -15
  781. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js +0 -17
  782. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js.map +0 -1
  783. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.d.ts +0 -3
  784. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js +0 -5
  785. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js.map +0 -1
  786. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.d.ts +0 -86
  787. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js +0 -102
  788. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js.map +0 -1
  789. package/node_modules/@pome-sh/twin-linear/dist/src/server.d.ts +0 -2
  790. package/node_modules/@pome-sh/twin-linear/dist/src/server.js +0 -41
  791. package/node_modules/@pome-sh/twin-linear/dist/src/server.js.map +0 -1
  792. package/node_modules/@pome-sh/twin-linear/dist/src/state.d.ts +0 -51
  793. package/node_modules/@pome-sh/twin-linear/dist/src/state.js +0 -211
  794. package/node_modules/@pome-sh/twin-linear/dist/src/state.js.map +0 -1
  795. package/node_modules/@pome-sh/twin-linear/dist/src/twin.d.ts +0 -21
  796. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js +0 -107
  797. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js.map +0 -1
  798. package/node_modules/@pome-sh/twin-linear/dist/src/types.d.ts +0 -366
  799. package/node_modules/@pome-sh/twin-linear/dist/src/types.js +0 -19
  800. package/node_modules/@pome-sh/twin-linear/dist/src/types.js.map +0 -1
  801. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.d.ts +0 -27
  802. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js +0 -107
  803. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js.map +0 -1
  804. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.d.ts +0 -3
  805. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js +0 -26
  806. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js.map +0 -1
  807. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.d.ts +0 -30
  808. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js +0 -93
  809. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js.map +0 -1
  810. package/node_modules/@pome-sh/twin-linear/fidelity.inventory.json +0 -249
  811. package/node_modules/@pome-sh/twin-linear/fixtures/README.md +0 -11
  812. package/node_modules/@pome-sh/twin-linear/fixtures/graphql-surface.json +0 -59
  813. package/node_modules/@pome-sh/twin-linear/fixtures/linear-introspection.json +0 -66
  814. package/node_modules/@pome-sh/twin-linear/fixtures/mcp-tools-list.canonical.json +0 -353
  815. package/node_modules/@pome-sh/twin-linear/package.json +0 -72
  816. package/node_modules/@pome-sh/twin-slack/FIDELITY.md +0 -346
  817. package/node_modules/@pome-sh/twin-slack/README.md +0 -211
  818. package/node_modules/@pome-sh/twin-slack/dist/examples/claude-slack-agent.d.ts +0 -1
  819. package/node_modules/@pome-sh/twin-slack/dist/examples/claude-slack-agent.js +0 -105
  820. package/node_modules/@pome-sh/twin-slack/dist/examples/claude-slack-agent.js.map +0 -1
  821. package/node_modules/@pome-sh/twin-slack/dist/examples/mcp-node.d.ts +0 -1
  822. package/node_modules/@pome-sh/twin-slack/dist/examples/mcp-node.js +0 -20
  823. package/node_modules/@pome-sh/twin-slack/dist/examples/mcp-node.js.map +0 -1
  824. package/node_modules/@pome-sh/twin-slack/dist/examples/mini-bot-flow.d.ts +0 -1
  825. package/node_modules/@pome-sh/twin-slack/dist/examples/mini-bot-flow.js +0 -61
  826. package/node_modules/@pome-sh/twin-slack/dist/examples/mini-bot-flow.js.map +0 -1
  827. package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.d.ts +0 -1
  828. package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.js +0 -92
  829. package/node_modules/@pome-sh/twin-slack/dist/scripts/fidelity-parity.js.map +0 -1
  830. package/node_modules/@pome-sh/twin-slack/dist/scripts/seed.d.ts +0 -1
  831. package/node_modules/@pome-sh/twin-slack/dist/scripts/seed.js +0 -9
  832. package/node_modules/@pome-sh/twin-slack/dist/scripts/seed.js.map +0 -1
  833. package/node_modules/@pome-sh/twin-slack/dist/scripts/smoke.d.ts +0 -1
  834. package/node_modules/@pome-sh/twin-slack/dist/scripts/smoke.js +0 -209
  835. package/node_modules/@pome-sh/twin-slack/dist/scripts/smoke.js.map +0 -1
  836. package/node_modules/@pome-sh/twin-slack/dist/scripts/validate-mcp.d.ts +0 -1
  837. package/node_modules/@pome-sh/twin-slack/dist/scripts/validate-mcp.js +0 -116
  838. package/node_modules/@pome-sh/twin-slack/dist/scripts/validate-mcp.js.map +0 -1
  839. package/node_modules/@pome-sh/twin-slack/dist/scripts/verify-cloud-token.d.ts +0 -1
  840. package/node_modules/@pome-sh/twin-slack/dist/scripts/verify-cloud-token.js +0 -45
  841. package/node_modules/@pome-sh/twin-slack/dist/scripts/verify-cloud-token.js.map +0 -1
  842. package/node_modules/@pome-sh/twin-slack/dist/src/check-kind.d.ts +0 -3
  843. package/node_modules/@pome-sh/twin-slack/dist/src/check-kind.js +0 -9
  844. package/node_modules/@pome-sh/twin-slack/dist/src/check-kind.js.map +0 -1
  845. package/node_modules/@pome-sh/twin-slack/dist/src/check-messages.d.ts +0 -16
  846. package/node_modules/@pome-sh/twin-slack/dist/src/check-messages.js +0 -207
  847. package/node_modules/@pome-sh/twin-slack/dist/src/check-messages.js.map +0 -1
  848. package/node_modules/@pome-sh/twin-slack/dist/src/check-params.d.ts +0 -5
  849. package/node_modules/@pome-sh/twin-slack/dist/src/check-params.js +0 -56
  850. package/node_modules/@pome-sh/twin-slack/dist/src/check-params.js.map +0 -1
  851. package/node_modules/@pome-sh/twin-slack/dist/src/check-secrets.d.ts +0 -2
  852. package/node_modules/@pome-sh/twin-slack/dist/src/check-secrets.js +0 -138
  853. package/node_modules/@pome-sh/twin-slack/dist/src/check-secrets.js.map +0 -1
  854. package/node_modules/@pome-sh/twin-slack/dist/src/check-state.d.ts +0 -107
  855. package/node_modules/@pome-sh/twin-slack/dist/src/check-state.js +0 -128
  856. package/node_modules/@pome-sh/twin-slack/dist/src/check-state.js.map +0 -1
  857. package/node_modules/@pome-sh/twin-slack/dist/src/check-worlds.d.ts +0 -7
  858. package/node_modules/@pome-sh/twin-slack/dist/src/check-worlds.js +0 -37
  859. package/node_modules/@pome-sh/twin-slack/dist/src/check-worlds.js.map +0 -1
  860. package/node_modules/@pome-sh/twin-slack/dist/src/checks.d.ts +0 -14
  861. package/node_modules/@pome-sh/twin-slack/dist/src/checks.js +0 -39
  862. package/node_modules/@pome-sh/twin-slack/dist/src/checks.js.map +0 -1
  863. package/node_modules/@pome-sh/twin-slack/dist/src/db.d.ts +0 -4
  864. package/node_modules/@pome-sh/twin-slack/dist/src/db.js +0 -231
  865. package/node_modules/@pome-sh/twin-slack/dist/src/db.js.map +0 -1
  866. package/node_modules/@pome-sh/twin-slack/dist/src/domain/bookmarks.d.ts +0 -16
  867. package/node_modules/@pome-sh/twin-slack/dist/src/domain/bookmarks.js +0 -49
  868. package/node_modules/@pome-sh/twin-slack/dist/src/domain/bookmarks.js.map +0 -1
  869. package/node_modules/@pome-sh/twin-slack/dist/src/domain/canvases.d.ts +0 -37
  870. package/node_modules/@pome-sh/twin-slack/dist/src/domain/canvases.js +0 -182
  871. package/node_modules/@pome-sh/twin-slack/dist/src/domain/canvases.js.map +0 -1
  872. package/node_modules/@pome-sh/twin-slack/dist/src/domain/chat.d.ts +0 -40
  873. package/node_modules/@pome-sh/twin-slack/dist/src/domain/chat.js +0 -167
  874. package/node_modules/@pome-sh/twin-slack/dist/src/domain/chat.js.map +0 -1
  875. package/node_modules/@pome-sh/twin-slack/dist/src/domain/conversations.d.ts +0 -61
  876. package/node_modules/@pome-sh/twin-slack/dist/src/domain/conversations.js +0 -360
  877. package/node_modules/@pome-sh/twin-slack/dist/src/domain/conversations.js.map +0 -1
  878. package/node_modules/@pome-sh/twin-slack/dist/src/domain/emoji.d.ts +0 -13
  879. package/node_modules/@pome-sh/twin-slack/dist/src/domain/emoji.js +0 -31
  880. package/node_modules/@pome-sh/twin-slack/dist/src/domain/emoji.js.map +0 -1
  881. package/node_modules/@pome-sh/twin-slack/dist/src/domain/files.d.ts +0 -24
  882. package/node_modules/@pome-sh/twin-slack/dist/src/domain/files.js +0 -101
  883. package/node_modules/@pome-sh/twin-slack/dist/src/domain/files.js.map +0 -1
  884. package/node_modules/@pome-sh/twin-slack/dist/src/domain/helpers.d.ts +0 -5
  885. package/node_modules/@pome-sh/twin-slack/dist/src/domain/helpers.js +0 -42
  886. package/node_modules/@pome-sh/twin-slack/dist/src/domain/helpers.js.map +0 -1
  887. package/node_modules/@pome-sh/twin-slack/dist/src/domain/index.d.ts +0 -2
  888. package/node_modules/@pome-sh/twin-slack/dist/src/domain/index.js +0 -5
  889. package/node_modules/@pome-sh/twin-slack/dist/src/domain/index.js.map +0 -1
  890. package/node_modules/@pome-sh/twin-slack/dist/src/domain/pins.d.ts +0 -12
  891. package/node_modules/@pome-sh/twin-slack/dist/src/domain/pins.js +0 -63
  892. package/node_modules/@pome-sh/twin-slack/dist/src/domain/pins.js.map +0 -1
  893. package/node_modules/@pome-sh/twin-slack/dist/src/domain/reactions.d.ts +0 -16
  894. package/node_modules/@pome-sh/twin-slack/dist/src/domain/reactions.js +0 -73
  895. package/node_modules/@pome-sh/twin-slack/dist/src/domain/reactions.js.map +0 -1
  896. package/node_modules/@pome-sh/twin-slack/dist/src/domain/search.d.ts +0 -9
  897. package/node_modules/@pome-sh/twin-slack/dist/src/domain/search.js +0 -68
  898. package/node_modules/@pome-sh/twin-slack/dist/src/domain/search.js.map +0 -1
  899. package/node_modules/@pome-sh/twin-slack/dist/src/domain/slack-domain.d.ts +0 -258
  900. package/node_modules/@pome-sh/twin-slack/dist/src/domain/slack-domain.js +0 -510
  901. package/node_modules/@pome-sh/twin-slack/dist/src/domain/slack-domain.js.map +0 -1
  902. package/node_modules/@pome-sh/twin-slack/dist/src/domain/team.d.ts +0 -5
  903. package/node_modules/@pome-sh/twin-slack/dist/src/domain/team.js +0 -25
  904. package/node_modules/@pome-sh/twin-slack/dist/src/domain/team.js.map +0 -1
  905. package/node_modules/@pome-sh/twin-slack/dist/src/domain/topic.d.ts +0 -19
  906. package/node_modules/@pome-sh/twin-slack/dist/src/domain/topic.js +0 -43
  907. package/node_modules/@pome-sh/twin-slack/dist/src/domain/topic.js.map +0 -1
  908. package/node_modules/@pome-sh/twin-slack/dist/src/domain/users.d.ts +0 -24
  909. package/node_modules/@pome-sh/twin-slack/dist/src/domain/users.js +0 -82
  910. package/node_modules/@pome-sh/twin-slack/dist/src/domain/users.js.map +0 -1
  911. package/node_modules/@pome-sh/twin-slack/dist/src/errors.d.ts +0 -16
  912. package/node_modules/@pome-sh/twin-slack/dist/src/errors.js +0 -61
  913. package/node_modules/@pome-sh/twin-slack/dist/src/errors.js.map +0 -1
  914. package/node_modules/@pome-sh/twin-slack/dist/src/index.d.ts +0 -8
  915. package/node_modules/@pome-sh/twin-slack/dist/src/index.js +0 -8
  916. package/node_modules/@pome-sh/twin-slack/dist/src/index.js.map +0 -1
  917. package/node_modules/@pome-sh/twin-slack/dist/src/routes.d.ts +0 -4
  918. package/node_modules/@pome-sh/twin-slack/dist/src/routes.js +0 -211
  919. package/node_modules/@pome-sh/twin-slack/dist/src/routes.js.map +0 -1
  920. package/node_modules/@pome-sh/twin-slack/dist/src/seed.d.ts +0 -54
  921. package/node_modules/@pome-sh/twin-slack/dist/src/seed.js +0 -152
  922. package/node_modules/@pome-sh/twin-slack/dist/src/seed.js.map +0 -1
  923. package/node_modules/@pome-sh/twin-slack/dist/src/serializers.d.ts +0 -141
  924. package/node_modules/@pome-sh/twin-slack/dist/src/serializers.js +0 -378
  925. package/node_modules/@pome-sh/twin-slack/dist/src/serializers.js.map +0 -1
  926. package/node_modules/@pome-sh/twin-slack/dist/src/server.d.ts +0 -2
  927. package/node_modules/@pome-sh/twin-slack/dist/src/server.js +0 -42
  928. package/node_modules/@pome-sh/twin-slack/dist/src/server.js.map +0 -1
  929. package/node_modules/@pome-sh/twin-slack/dist/src/tools.d.ts +0 -123
  930. package/node_modules/@pome-sh/twin-slack/dist/src/tools.js +0 -219
  931. package/node_modules/@pome-sh/twin-slack/dist/src/tools.js.map +0 -1
  932. package/node_modules/@pome-sh/twin-slack/dist/src/twin.d.ts +0 -22
  933. package/node_modules/@pome-sh/twin-slack/dist/src/twin.js +0 -179
  934. package/node_modules/@pome-sh/twin-slack/dist/src/twin.js.map +0 -1
  935. package/node_modules/@pome-sh/twin-slack/dist/src/types.d.ts +0 -182
  936. package/node_modules/@pome-sh/twin-slack/dist/src/types.js +0 -2
  937. package/node_modules/@pome-sh/twin-slack/dist/src/types.js.map +0 -1
  938. package/node_modules/@pome-sh/twin-slack/dist/src/unsupported-envelope.d.ts +0 -12
  939. package/node_modules/@pome-sh/twin-slack/dist/src/unsupported-envelope.js +0 -68
  940. package/node_modules/@pome-sh/twin-slack/dist/src/unsupported-envelope.js.map +0 -1
  941. package/node_modules/@pome-sh/twin-slack/dist/src/upstream-types.d.ts +0 -16
  942. package/node_modules/@pome-sh/twin-slack/dist/src/upstream-types.js +0 -2
  943. package/node_modules/@pome-sh/twin-slack/dist/src/upstream-types.js.map +0 -1
  944. package/node_modules/@pome-sh/twin-slack/dist/src/util.d.ts +0 -30
  945. package/node_modules/@pome-sh/twin-slack/dist/src/util.js +0 -132
  946. package/node_modules/@pome-sh/twin-slack/dist/src/util.js.map +0 -1
  947. package/node_modules/@pome-sh/twin-slack/fidelity.inventory.json +0 -377
  948. package/node_modules/@pome-sh/twin-slack/package.json +0 -63
  949. package/node_modules/@pome-sh/twin-stripe/FIDELITY.md +0 -380
  950. package/node_modules/@pome-sh/twin-stripe/README.md +0 -280
  951. package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.d.ts +0 -1
  952. package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.js +0 -186
  953. package/node_modules/@pome-sh/twin-stripe/dist/scripts/fidelity-parity.js.map +0 -1
  954. package/node_modules/@pome-sh/twin-stripe/dist/scripts/seed.d.ts +0 -1
  955. package/node_modules/@pome-sh/twin-stripe/dist/scripts/seed.js +0 -9
  956. package/node_modules/@pome-sh/twin-stripe/dist/scripts/seed.js.map +0 -1
  957. package/node_modules/@pome-sh/twin-stripe/dist/scripts/smoke.d.ts +0 -1
  958. package/node_modules/@pome-sh/twin-stripe/dist/scripts/smoke.js +0 -224
  959. package/node_modules/@pome-sh/twin-stripe/dist/scripts/smoke.js.map +0 -1
  960. package/node_modules/@pome-sh/twin-stripe/dist/src/api-keys.d.ts +0 -27
  961. package/node_modules/@pome-sh/twin-stripe/dist/src/api-keys.js +0 -49
  962. package/node_modules/@pome-sh/twin-stripe/dist/src/api-keys.js.map +0 -1
  963. package/node_modules/@pome-sh/twin-stripe/dist/src/check-kind.d.ts +0 -3
  964. package/node_modules/@pome-sh/twin-stripe/dist/src/check-kind.js +0 -9
  965. package/node_modules/@pome-sh/twin-stripe/dist/src/check-kind.js.map +0 -1
  966. package/node_modules/@pome-sh/twin-stripe/dist/src/check-params.d.ts +0 -8
  967. package/node_modules/@pome-sh/twin-stripe/dist/src/check-params.js +0 -123
  968. package/node_modules/@pome-sh/twin-stripe/dist/src/check-params.js.map +0 -1
  969. package/node_modules/@pome-sh/twin-stripe/dist/src/check-payments.d.ts +0 -18
  970. package/node_modules/@pome-sh/twin-stripe/dist/src/check-payments.js +0 -280
  971. package/node_modules/@pome-sh/twin-stripe/dist/src/check-payments.js.map +0 -1
  972. package/node_modules/@pome-sh/twin-stripe/dist/src/check-refunds.d.ts +0 -8
  973. package/node_modules/@pome-sh/twin-stripe/dist/src/check-refunds.js +0 -130
  974. package/node_modules/@pome-sh/twin-stripe/dist/src/check-refunds.js.map +0 -1
  975. package/node_modules/@pome-sh/twin-stripe/dist/src/check-state.d.ts +0 -107
  976. package/node_modules/@pome-sh/twin-stripe/dist/src/check-state.js +0 -123
  977. package/node_modules/@pome-sh/twin-stripe/dist/src/check-state.js.map +0 -1
  978. package/node_modules/@pome-sh/twin-stripe/dist/src/check-tape.d.ts +0 -9
  979. package/node_modules/@pome-sh/twin-stripe/dist/src/check-tape.js +0 -338
  980. package/node_modules/@pome-sh/twin-stripe/dist/src/check-tape.js.map +0 -1
  981. package/node_modules/@pome-sh/twin-stripe/dist/src/check-worlds.d.ts +0 -24
  982. package/node_modules/@pome-sh/twin-stripe/dist/src/check-worlds.js +0 -131
  983. package/node_modules/@pome-sh/twin-stripe/dist/src/check-worlds.js.map +0 -1
  984. package/node_modules/@pome-sh/twin-stripe/dist/src/checks.d.ts +0 -22
  985. package/node_modules/@pome-sh/twin-stripe/dist/src/checks.js +0 -97
  986. package/node_modules/@pome-sh/twin-stripe/dist/src/checks.js.map +0 -1
  987. package/node_modules/@pome-sh/twin-stripe/dist/src/db.d.ts +0 -4
  988. package/node_modules/@pome-sh/twin-stripe/dist/src/db.js +0 -167
  989. package/node_modules/@pome-sh/twin-stripe/dist/src/db.js.map +0 -1
  990. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/balance.d.ts +0 -53
  991. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/balance.js +0 -77
  992. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/balance.js.map +0 -1
  993. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.d.ts +0 -101
  994. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.js +0 -195
  995. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/billing.js.map +0 -1
  996. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.d.ts +0 -45
  997. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.js +0 -59
  998. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/charges.js.map +0 -1
  999. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/constants.d.ts +0 -25
  1000. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/constants.js +0 -26
  1001. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/constants.js.map +0 -1
  1002. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.d.ts +0 -47
  1003. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.js +0 -103
  1004. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/customers.js.map +0 -1
  1005. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/events.d.ts +0 -27
  1006. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/events.js +0 -45
  1007. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/events.js.map +0 -1
  1008. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.d.ts +0 -18
  1009. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.js +0 -16
  1010. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/index.js.map +0 -1
  1011. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.d.ts +0 -150
  1012. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.js +0 -449
  1013. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-intents.js.map +0 -1
  1014. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.d.ts +0 -45
  1015. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.js +0 -159
  1016. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/payment-methods.js.map +0 -1
  1017. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.d.ts +0 -48
  1018. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.js +0 -111
  1019. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/refunds.js.map +0 -1
  1020. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.d.ts +0 -9
  1021. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.js +0 -275
  1022. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/schema.js.map +0 -1
  1023. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.d.ts +0 -779
  1024. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.js +0 -670
  1025. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.js.map +0 -1
  1026. package/node_modules/@pome-sh/twin-stripe/dist/src/errors.d.ts +0 -76
  1027. package/node_modules/@pome-sh/twin-stripe/dist/src/errors.js +0 -99
  1028. package/node_modules/@pome-sh/twin-stripe/dist/src/errors.js.map +0 -1
  1029. package/node_modules/@pome-sh/twin-stripe/dist/src/idempotency.d.ts +0 -25
  1030. package/node_modules/@pome-sh/twin-stripe/dist/src/idempotency.js +0 -235
  1031. package/node_modules/@pome-sh/twin-stripe/dist/src/idempotency.js.map +0 -1
  1032. package/node_modules/@pome-sh/twin-stripe/dist/src/ids.d.ts +0 -30
  1033. package/node_modules/@pome-sh/twin-stripe/dist/src/ids.js +0 -58
  1034. package/node_modules/@pome-sh/twin-stripe/dist/src/ids.js.map +0 -1
  1035. package/node_modules/@pome-sh/twin-stripe/dist/src/index.d.ts +0 -11
  1036. package/node_modules/@pome-sh/twin-stripe/dist/src/index.js +0 -16
  1037. package/node_modules/@pome-sh/twin-stripe/dist/src/index.js.map +0 -1
  1038. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.d.ts +0 -37
  1039. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.js +0 -264
  1040. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/_helpers.js.map +0 -1
  1041. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/balance.d.ts +0 -4
  1042. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/balance.js +0 -14
  1043. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/balance.js.map +0 -1
  1044. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.d.ts +0 -4
  1045. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.js +0 -117
  1046. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/billing.js.map +0 -1
  1047. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/charges.d.ts +0 -4
  1048. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/charges.js +0 -15
  1049. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/charges.js.map +0 -1
  1050. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.d.ts +0 -4
  1051. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.js +0 -47
  1052. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/customers.js.map +0 -1
  1053. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/events.d.ts +0 -4
  1054. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/events.js +0 -14
  1055. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/events.js.map +0 -1
  1056. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/index.d.ts +0 -4
  1057. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/index.js +0 -36
  1058. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/index.js.map +0 -1
  1059. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-intents.d.ts +0 -4
  1060. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-intents.js +0 -81
  1061. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-intents.js.map +0 -1
  1062. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.d.ts +0 -4
  1063. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.js +0 -33
  1064. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/payment-methods.js.map +0 -1
  1065. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/refunds.d.ts +0 -4
  1066. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/refunds.js +0 -63
  1067. package/node_modules/@pome-sh/twin-stripe/dist/src/routes/refunds.js.map +0 -1
  1068. package/node_modules/@pome-sh/twin-stripe/dist/src/seed.d.ts +0 -205
  1069. package/node_modules/@pome-sh/twin-stripe/dist/src/seed.js +0 -226
  1070. package/node_modules/@pome-sh/twin-stripe/dist/src/seed.js.map +0 -1
  1071. package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.d.ts +0 -347
  1072. package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.js +0 -483
  1073. package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.js.map +0 -1
  1074. package/node_modules/@pome-sh/twin-stripe/dist/src/server.d.ts +0 -2
  1075. package/node_modules/@pome-sh/twin-stripe/dist/src/server.js +0 -53
  1076. package/node_modules/@pome-sh/twin-stripe/dist/src/server.js.map +0 -1
  1077. package/node_modules/@pome-sh/twin-stripe/dist/src/session.d.ts +0 -8
  1078. package/node_modules/@pome-sh/twin-stripe/dist/src/session.js +0 -113
  1079. package/node_modules/@pome-sh/twin-stripe/dist/src/session.js.map +0 -1
  1080. package/node_modules/@pome-sh/twin-stripe/dist/src/tools.d.ts +0 -254
  1081. package/node_modules/@pome-sh/twin-stripe/dist/src/tools.js +0 -375
  1082. package/node_modules/@pome-sh/twin-stripe/dist/src/tools.js.map +0 -1
  1083. package/node_modules/@pome-sh/twin-stripe/dist/src/twin.d.ts +0 -42
  1084. package/node_modules/@pome-sh/twin-stripe/dist/src/twin.js +0 -286
  1085. package/node_modules/@pome-sh/twin-stripe/dist/src/twin.js.map +0 -1
  1086. package/node_modules/@pome-sh/twin-stripe/dist/src/types.d.ts +0 -252
  1087. package/node_modules/@pome-sh/twin-stripe/dist/src/types.js +0 -2
  1088. package/node_modules/@pome-sh/twin-stripe/dist/src/types.js.map +0 -1
  1089. package/node_modules/@pome-sh/twin-stripe/dist/src/upstream-types.d.ts +0 -22
  1090. package/node_modules/@pome-sh/twin-stripe/dist/src/upstream-types.js +0 -2
  1091. package/node_modules/@pome-sh/twin-stripe/dist/src/upstream-types.js.map +0 -1
  1092. package/node_modules/@pome-sh/twin-stripe/dist/src/util.d.ts +0 -3
  1093. package/node_modules/@pome-sh/twin-stripe/dist/src/util.js +0 -12
  1094. package/node_modules/@pome-sh/twin-stripe/dist/src/util.js.map +0 -1
  1095. package/node_modules/@pome-sh/twin-stripe/dist/src/x402.d.ts +0 -162
  1096. package/node_modules/@pome-sh/twin-stripe/dist/src/x402.js +0 -506
  1097. package/node_modules/@pome-sh/twin-stripe/dist/src/x402.js.map +0 -1
  1098. package/node_modules/@pome-sh/twin-stripe/fidelity.inventory.json +0 -425
  1099. package/node_modules/@pome-sh/twin-stripe/package.json +0 -64
  1100. package/node_modules/graphql/LICENSE +0 -21
  1101. package/node_modules/graphql/NotSupportedTSVersion.d.ts +0 -1
  1102. package/node_modules/graphql/README.md +0 -203
  1103. package/node_modules/graphql/error/GraphQLError.d.ts +0 -288
  1104. package/node_modules/graphql/error/GraphQLError.js +0 -398
  1105. package/node_modules/graphql/error/GraphQLError.mjs +0 -384
  1106. package/node_modules/graphql/error/index.d.ts +0 -15
  1107. package/node_modules/graphql/error/index.js +0 -41
  1108. package/node_modules/graphql/error/index.mjs +0 -9
  1109. package/node_modules/graphql/error/locatedError.d.ts +0 -33
  1110. package/node_modules/graphql/error/locatedError.js +0 -61
  1111. package/node_modules/graphql/error/locatedError.mjs +0 -52
  1112. package/node_modules/graphql/error/syntaxError.d.ts +0 -26
  1113. package/node_modules/graphql/error/syntaxError.js +0 -35
  1114. package/node_modules/graphql/error/syntaxError.mjs +0 -27
  1115. package/node_modules/graphql/execution/collectFields.d.ts +0 -45
  1116. package/node_modules/graphql/execution/collectFields.js +0 -235
  1117. package/node_modules/graphql/execution/collectFields.mjs +0 -219
  1118. package/node_modules/graphql/execution/execute.d.ts +0 -402
  1119. package/node_modules/graphql/execution/execute.js +0 -1295
  1120. package/node_modules/graphql/execution/execute.mjs +0 -1266
  1121. package/node_modules/graphql/execution/index.d.ts +0 -24
  1122. package/node_modules/graphql/execution/index.js +0 -73
  1123. package/node_modules/graphql/execution/index.mjs +0 -19
  1124. package/node_modules/graphql/execution/mapAsyncIterator.d.ts +0 -11
  1125. package/node_modules/graphql/execution/mapAsyncIterator.js +0 -70
  1126. package/node_modules/graphql/execution/mapAsyncIterator.mjs +0 -63
  1127. package/node_modules/graphql/execution/subscribe.d.ts +0 -262
  1128. package/node_modules/graphql/execution/subscribe.js +0 -388
  1129. package/node_modules/graphql/execution/subscribe.mjs +0 -366
  1130. package/node_modules/graphql/execution/values.d.ts +0 -236
  1131. package/node_modules/graphql/execution/values.js +0 -444
  1132. package/node_modules/graphql/execution/values.mjs +0 -406
  1133. package/node_modules/graphql/graphql.d.ts +0 -189
  1134. package/node_modules/graphql/graphql.js +0 -218
  1135. package/node_modules/graphql/graphql.mjs +0 -212
  1136. package/node_modules/graphql/index.d.ts +0 -423
  1137. package/node_modules/graphql/index.js +0 -1311
  1138. package/node_modules/graphql/index.mjs +0 -256
  1139. package/node_modules/graphql/jsutils/Maybe.d.ts +0 -6
  1140. package/node_modules/graphql/jsutils/Maybe.js +0 -5
  1141. package/node_modules/graphql/jsutils/Maybe.mjs +0 -1
  1142. package/node_modules/graphql/jsutils/ObjMap.d.ts +0 -20
  1143. package/node_modules/graphql/jsutils/ObjMap.js +0 -5
  1144. package/node_modules/graphql/jsutils/ObjMap.mjs +0 -1
  1145. package/node_modules/graphql/jsutils/Path.d.ts +0 -50
  1146. package/node_modules/graphql/jsutils/Path.js +0 -62
  1147. package/node_modules/graphql/jsutils/Path.mjs +0 -54
  1148. package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +0 -2
  1149. package/node_modules/graphql/jsutils/PromiseOrValue.js +0 -5
  1150. package/node_modules/graphql/jsutils/PromiseOrValue.mjs +0 -1
  1151. package/node_modules/graphql/jsutils/devAssert.d.ts +0 -2
  1152. package/node_modules/graphql/jsutils/devAssert.js +0 -15
  1153. package/node_modules/graphql/jsutils/devAssert.mjs +0 -8
  1154. package/node_modules/graphql/jsutils/didYouMean.d.ts +0 -11
  1155. package/node_modules/graphql/jsutils/didYouMean.js +0 -41
  1156. package/node_modules/graphql/jsutils/didYouMean.mjs +0 -35
  1157. package/node_modules/graphql/jsutils/groupBy.d.ts +0 -9
  1158. package/node_modules/graphql/jsutils/groupBy.js +0 -28
  1159. package/node_modules/graphql/jsutils/groupBy.mjs +0 -21
  1160. package/node_modules/graphql/jsutils/identityFunc.d.ts +0 -6
  1161. package/node_modules/graphql/jsutils/identityFunc.js +0 -15
  1162. package/node_modules/graphql/jsutils/identityFunc.mjs +0 -8
  1163. package/node_modules/graphql/jsutils/inspect.d.ts +0 -6
  1164. package/node_modules/graphql/jsutils/inspect.js +0 -123
  1165. package/node_modules/graphql/jsutils/inspect.mjs +0 -117
  1166. package/node_modules/graphql/jsutils/instanceOf.d.ts +0 -18
  1167. package/node_modules/graphql/jsutils/instanceOf.js +0 -67
  1168. package/node_modules/graphql/jsutils/instanceOf.mjs +0 -59
  1169. package/node_modules/graphql/jsutils/invariant.d.ts +0 -5
  1170. package/node_modules/graphql/jsutils/invariant.js +0 -17
  1171. package/node_modules/graphql/jsutils/invariant.mjs +0 -10
  1172. package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +0 -9
  1173. package/node_modules/graphql/jsutils/isAsyncIterable.js +0 -20
  1174. package/node_modules/graphql/jsutils/isAsyncIterable.mjs +0 -13
  1175. package/node_modules/graphql/jsutils/isIterableObject.d.ts +0 -21
  1176. package/node_modules/graphql/jsutils/isIterableObject.js +0 -33
  1177. package/node_modules/graphql/jsutils/isIterableObject.mjs +0 -26
  1178. package/node_modules/graphql/jsutils/isObjectLike.d.ts +0 -9
  1179. package/node_modules/graphql/jsutils/isObjectLike.js +0 -16
  1180. package/node_modules/graphql/jsutils/isObjectLike.mjs +0 -9
  1181. package/node_modules/graphql/jsutils/isPromise.d.ts +0 -7
  1182. package/node_modules/graphql/jsutils/isPromise.js +0 -19
  1183. package/node_modules/graphql/jsutils/isPromise.mjs +0 -12
  1184. package/node_modules/graphql/jsutils/keyMap.d.ts +0 -25
  1185. package/node_modules/graphql/jsutils/keyMap.js +0 -36
  1186. package/node_modules/graphql/jsutils/keyMap.mjs +0 -29
  1187. package/node_modules/graphql/jsutils/keyValMap.d.ts +0 -26
  1188. package/node_modules/graphql/jsutils/keyValMap.js +0 -36
  1189. package/node_modules/graphql/jsutils/keyValMap.mjs +0 -29
  1190. package/node_modules/graphql/jsutils/mapValue.d.ts +0 -11
  1191. package/node_modules/graphql/jsutils/mapValue.js +0 -22
  1192. package/node_modules/graphql/jsutils/mapValue.mjs +0 -15
  1193. package/node_modules/graphql/jsutils/memoize3.d.ts +0 -11
  1194. package/node_modules/graphql/jsutils/memoize3.js +0 -43
  1195. package/node_modules/graphql/jsutils/memoize3.mjs +0 -36
  1196. package/node_modules/graphql/jsutils/naturalCompare.d.ts +0 -10
  1197. package/node_modules/graphql/jsutils/naturalCompare.js +0 -71
  1198. package/node_modules/graphql/jsutils/naturalCompare.mjs +0 -63
  1199. package/node_modules/graphql/jsutils/printPathArray.d.ts +0 -8
  1200. package/node_modules/graphql/jsutils/printPathArray.js +0 -19
  1201. package/node_modules/graphql/jsutils/printPathArray.mjs +0 -12
  1202. package/node_modules/graphql/jsutils/promiseForObject.d.ts +0 -13
  1203. package/node_modules/graphql/jsutils/promiseForObject.js +0 -27
  1204. package/node_modules/graphql/jsutils/promiseForObject.mjs +0 -20
  1205. package/node_modules/graphql/jsutils/promiseReduce.d.ts +0 -15
  1206. package/node_modules/graphql/jsutils/promiseReduce.js +0 -29
  1207. package/node_modules/graphql/jsutils/promiseReduce.mjs +0 -22
  1208. package/node_modules/graphql/jsutils/suggestionList.d.ts +0 -10
  1209. package/node_modules/graphql/jsutils/suggestionList.js +0 -143
  1210. package/node_modules/graphql/jsutils/suggestionList.mjs +0 -134
  1211. package/node_modules/graphql/jsutils/toError.d.ts +0 -6
  1212. package/node_modules/graphql/jsutils/toError.js +0 -27
  1213. package/node_modules/graphql/jsutils/toError.mjs +0 -20
  1214. package/node_modules/graphql/jsutils/toObjMap.d.ts +0 -6
  1215. package/node_modules/graphql/jsutils/toObjMap.js +0 -25
  1216. package/node_modules/graphql/jsutils/toObjMap.mjs +0 -18
  1217. package/node_modules/graphql/language/ast.d.ts +0 -949
  1218. package/node_modules/graphql/language/ast.js +0 -301
  1219. package/node_modules/graphql/language/ast.mjs +0 -285
  1220. package/node_modules/graphql/language/blockString.d.ts +0 -26
  1221. package/node_modules/graphql/language/blockString.js +0 -193
  1222. package/node_modules/graphql/language/blockString.mjs +0 -176
  1223. package/node_modules/graphql/language/characterClasses.d.ts +0 -47
  1224. package/node_modules/graphql/language/characterClasses.js +0 -75
  1225. package/node_modules/graphql/language/characterClasses.mjs +0 -64
  1226. package/node_modules/graphql/language/directiveLocation.d.ts +0 -54
  1227. package/node_modules/graphql/language/directiveLocation.js +0 -43
  1228. package/node_modules/graphql/language/directiveLocation.mjs +0 -37
  1229. package/node_modules/graphql/language/index.d.ts +0 -117
  1230. package/node_modules/graphql/language/index.js +0 -227
  1231. package/node_modules/graphql/language/index.mjs +0 -42
  1232. package/node_modules/graphql/language/kinds.d.ts +0 -112
  1233. package/node_modules/graphql/language/kinds.js +0 -72
  1234. package/node_modules/graphql/language/kinds.mjs +0 -66
  1235. package/node_modules/graphql/language/lexer.d.ts +0 -129
  1236. package/node_modules/graphql/language/lexer.js +0 -1074
  1237. package/node_modules/graphql/language/lexer.mjs +0 -972
  1238. package/node_modules/graphql/language/location.d.ts +0 -29
  1239. package/node_modules/graphql/language/location.js +0 -49
  1240. package/node_modules/graphql/language/location.mjs +0 -41
  1241. package/node_modules/graphql/language/parser.d.ts +0 -829
  1242. package/node_modules/graphql/language/parser.js +0 -1949
  1243. package/node_modules/graphql/language/parser.mjs +0 -1899
  1244. package/node_modules/graphql/language/predicates.d.ts +0 -206
  1245. package/node_modules/graphql/language/predicates.js +0 -292
  1246. package/node_modules/graphql/language/predicates.mjs +0 -274
  1247. package/node_modules/graphql/language/printLocation.d.ts +0 -42
  1248. package/node_modules/graphql/language/printLocation.js +0 -103
  1249. package/node_modules/graphql/language/printLocation.mjs +0 -94
  1250. package/node_modules/graphql/language/printString.d.ts +0 -7
  1251. package/node_modules/graphql/language/printString.js +0 -187
  1252. package/node_modules/graphql/language/printString.mjs +0 -180
  1253. package/node_modules/graphql/language/printer.d.ts +0 -18
  1254. package/node_modules/graphql/language/printer.js +0 -411
  1255. package/node_modules/graphql/language/printer.mjs +0 -398
  1256. package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +0 -45
  1257. package/node_modules/graphql/language/schemaCoordinateLexer.js +0 -175
  1258. package/node_modules/graphql/language/schemaCoordinateLexer.mjs +0 -126
  1259. package/node_modules/graphql/language/source.d.ts +0 -53
  1260. package/node_modules/graphql/language/source.js +0 -97
  1261. package/node_modules/graphql/language/source.mjs +0 -81
  1262. package/node_modules/graphql/language/tokenKind.d.ts +0 -63
  1263. package/node_modules/graphql/language/tokenKind.js +0 -49
  1264. package/node_modules/graphql/language/tokenKind.mjs +0 -43
  1265. package/node_modules/graphql/language/visitor.d.ts +0 -322
  1266. package/node_modules/graphql/language/visitor.js +0 -446
  1267. package/node_modules/graphql/language/visitor.mjs +0 -426
  1268. package/node_modules/graphql/package.json +0 -39
  1269. package/node_modules/graphql/subscription/index.d.ts +0 -25
  1270. package/node_modules/graphql/subscription/index.js +0 -19
  1271. package/node_modules/graphql/subscription/index.mjs +0 -25
  1272. package/node_modules/graphql/type/assertName.d.ts +0 -27
  1273. package/node_modules/graphql/type/assertName.js +0 -77
  1274. package/node_modules/graphql/type/assertName.mjs +0 -61
  1275. package/node_modules/graphql/type/definition.d.ts +0 -3387
  1276. package/node_modules/graphql/type/definition.js +0 -3515
  1277. package/node_modules/graphql/type/definition.mjs +0 -3378
  1278. package/node_modules/graphql/type/directives.d.ts +0 -273
  1279. package/node_modules/graphql/type/directives.js +0 -424
  1280. package/node_modules/graphql/type/directives.mjs +0 -388
  1281. package/node_modules/graphql/type/index.d.ts +0 -157
  1282. package/node_modules/graphql/type/index.js +0 -553
  1283. package/node_modules/graphql/type/index.mjs +0 -110
  1284. package/node_modules/graphql/type/introspection.d.ts +0 -66
  1285. package/node_modules/graphql/type/introspection.js +0 -681
  1286. package/node_modules/graphql/type/introspection.mjs +0 -623
  1287. package/node_modules/graphql/type/scalars.d.ts +0 -46
  1288. package/node_modules/graphql/type/scalars.js +0 -404
  1289. package/node_modules/graphql/type/scalars.mjs +0 -343
  1290. package/node_modules/graphql/type/schema.d.ts +0 -632
  1291. package/node_modules/graphql/type/schema.js +0 -860
  1292. package/node_modules/graphql/type/schema.mjs +0 -839
  1293. package/node_modules/graphql/type/validate.d.ts +0 -48
  1294. package/node_modules/graphql/type/validate.js +0 -738
  1295. package/node_modules/graphql/type/validate.mjs +0 -712
  1296. package/node_modules/graphql/utilities/TypeInfo.d.ts +0 -507
  1297. package/node_modules/graphql/utilities/TypeInfo.js +0 -861
  1298. package/node_modules/graphql/utilities/TypeInfo.mjs +0 -837
  1299. package/node_modules/graphql/utilities/assertValidName.d.ts +0 -38
  1300. package/node_modules/graphql/utilities/assertValidName.js +0 -77
  1301. package/node_modules/graphql/utilities/assertValidName.mjs +0 -65
  1302. package/node_modules/graphql/utilities/astFromValue.d.ts +0 -58
  1303. package/node_modules/graphql/utilities/astFromValue.js +0 -223
  1304. package/node_modules/graphql/utilities/astFromValue.mjs +0 -209
  1305. package/node_modules/graphql/utilities/buildASTSchema.d.ts +0 -94
  1306. package/node_modules/graphql/utilities/buildASTSchema.js +0 -178
  1307. package/node_modules/graphql/utilities/buildASTSchema.mjs +0 -160
  1308. package/node_modules/graphql/utilities/buildClientSchema.d.ts +0 -34
  1309. package/node_modules/graphql/utilities/buildClientSchema.js +0 -404
  1310. package/node_modules/graphql/utilities/buildClientSchema.mjs +0 -380
  1311. package/node_modules/graphql/utilities/coerceInputValue.d.ts +0 -62
  1312. package/node_modules/graphql/utilities/coerceInputValue.js +0 -264
  1313. package/node_modules/graphql/utilities/coerceInputValue.mjs +0 -238
  1314. package/node_modules/graphql/utilities/concatAST.d.ts +0 -21
  1315. package/node_modules/graphql/utilities/concatAST.js +0 -39
  1316. package/node_modules/graphql/utilities/concatAST.mjs +0 -31
  1317. package/node_modules/graphql/utilities/extendSchema.d.ts +0 -93
  1318. package/node_modules/graphql/utilities/extendSchema.js +0 -923
  1319. package/node_modules/graphql/utilities/extendSchema.mjs +0 -912
  1320. package/node_modules/graphql/utilities/findBreakingChanges.d.ts +0 -148
  1321. package/node_modules/graphql/utilities/findBreakingChanges.js +0 -615
  1322. package/node_modules/graphql/utilities/findBreakingChanges.mjs +0 -589
  1323. package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +0 -336
  1324. package/node_modules/graphql/utilities/getIntrospectionQuery.js +0 -179
  1325. package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +0 -172
  1326. package/node_modules/graphql/utilities/getOperationAST.d.ts +0 -26
  1327. package/node_modules/graphql/utilities/getOperationAST.js +0 -59
  1328. package/node_modules/graphql/utilities/getOperationAST.mjs +0 -51
  1329. package/node_modules/graphql/utilities/getOperationRootType.d.ts +0 -32
  1330. package/node_modules/graphql/utilities/getOperationRootType.js +0 -85
  1331. package/node_modules/graphql/utilities/getOperationRootType.mjs +0 -71
  1332. package/node_modules/graphql/utilities/index.d.ts +0 -73
  1333. package/node_modules/graphql/utilities/index.js +0 -247
  1334. package/node_modules/graphql/utilities/index.mjs +0 -67
  1335. package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +0 -72
  1336. package/node_modules/graphql/utilities/introspectionFromSchema.js +0 -99
  1337. package/node_modules/graphql/utilities/introspectionFromSchema.mjs +0 -86
  1338. package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +0 -44
  1339. package/node_modules/graphql/utilities/lexicographicSortSchema.js +0 -213
  1340. package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +0 -207
  1341. package/node_modules/graphql/utilities/printSchema.d.ts +0 -68
  1342. package/node_modules/graphql/utilities/printSchema.js +0 -405
  1343. package/node_modules/graphql/utilities/printSchema.mjs +0 -382
  1344. package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +0 -142
  1345. package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +0 -324
  1346. package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +0 -306
  1347. package/node_modules/graphql/utilities/separateOperations.d.ts +0 -41
  1348. package/node_modules/graphql/utilities/separateOperations.js +0 -119
  1349. package/node_modules/graphql/utilities/separateOperations.mjs +0 -110
  1350. package/node_modules/graphql/utilities/sortValueNode.d.ts +0 -9
  1351. package/node_modules/graphql/utilities/sortValueNode.js +0 -47
  1352. package/node_modules/graphql/utilities/sortValueNode.mjs +0 -39
  1353. package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +0 -69
  1354. package/node_modules/graphql/utilities/stripIgnoredCharacters.js +0 -131
  1355. package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +0 -113
  1356. package/node_modules/graphql/utilities/typeComparators.d.ts +0 -116
  1357. package/node_modules/graphql/utilities/typeComparators.js +0 -201
  1358. package/node_modules/graphql/utilities/typeComparators.mjs +0 -190
  1359. package/node_modules/graphql/utilities/typeFromAST.d.ts +0 -118
  1360. package/node_modules/graphql/utilities/typeFromAST.js +0 -30
  1361. package/node_modules/graphql/utilities/typeFromAST.mjs +0 -21
  1362. package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +0 -26
  1363. package/node_modules/graphql/utilities/typedQueryDocumentNode.js +0 -5
  1364. package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +0 -1
  1365. package/node_modules/graphql/utilities/valueFromAST.d.ts +0 -67
  1366. package/node_modules/graphql/utilities/valueFromAST.js +0 -246
  1367. package/node_modules/graphql/utilities/valueFromAST.mjs +0 -232
  1368. package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +0 -36
  1369. package/node_modules/graphql/utilities/valueFromASTUntyped.js +0 -75
  1370. package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +0 -66
  1371. package/node_modules/graphql/validation/ValidationContext.d.ts +0 -495
  1372. package/node_modules/graphql/validation/ValidationContext.js +0 -633
  1373. package/node_modules/graphql/validation/ValidationContext.mjs +0 -614
  1374. package/node_modules/graphql/validation/index.d.ts +0 -47
  1375. package/node_modules/graphql/validation/index.js +0 -331
  1376. package/node_modules/graphql/validation/index.mjs +0 -75
  1377. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +0 -41
  1378. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +0 -75
  1379. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +0 -62
  1380. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +0 -41
  1381. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +0 -178
  1382. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +0 -159
  1383. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +0 -42
  1384. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +0 -98
  1385. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +0 -81
  1386. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +0 -49
  1387. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +0 -147
  1388. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +0 -128
  1389. package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +0 -44
  1390. package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +0 -200
  1391. package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +0 -182
  1392. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +0 -41
  1393. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +0 -65
  1394. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +0 -54
  1395. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +0 -44
  1396. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +0 -118
  1397. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +0 -105
  1398. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +0 -41
  1399. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +0 -71
  1400. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +0 -62
  1401. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +0 -31
  1402. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +0 -89
  1403. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +0 -78
  1404. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +0 -36
  1405. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +0 -123
  1406. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +0 -111
  1407. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +0 -41
  1408. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +0 -114
  1409. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +0 -106
  1410. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +0 -41
  1411. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +0 -81
  1412. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +0 -73
  1413. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +0 -41
  1414. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +0 -90
  1415. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +0 -79
  1416. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +0 -42
  1417. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +0 -87
  1418. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +0 -79
  1419. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +0 -47
  1420. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +0 -907
  1421. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +0 -892
  1422. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +0 -48
  1423. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +0 -132
  1424. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +0 -109
  1425. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +0 -31
  1426. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +0 -193
  1427. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +0 -169
  1428. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +0 -46
  1429. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +0 -189
  1430. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +0 -168
  1431. package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +0 -37
  1432. package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +0 -95
  1433. package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +0 -85
  1434. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +0 -46
  1435. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +0 -120
  1436. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +0 -110
  1437. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +0 -32
  1438. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +0 -114
  1439. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +0 -102
  1440. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +0 -41
  1441. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +0 -84
  1442. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +0 -72
  1443. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +0 -31
  1444. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +0 -76
  1445. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +0 -68
  1446. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +0 -44
  1447. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +0 -136
  1448. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +0 -125
  1449. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +0 -31
  1450. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +0 -97
  1451. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +0 -85
  1452. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +0 -31
  1453. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +0 -109
  1454. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +0 -100
  1455. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +0 -40
  1456. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +0 -70
  1457. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +0 -62
  1458. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +0 -45
  1459. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +0 -87
  1460. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +0 -78
  1461. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +0 -40
  1462. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +0 -75
  1463. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +0 -67
  1464. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +0 -31
  1465. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +0 -93
  1466. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +0 -85
  1467. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +0 -31
  1468. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +0 -79
  1469. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +0 -68
  1470. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +0 -38
  1471. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +0 -78
  1472. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +0 -69
  1473. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +0 -41
  1474. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +0 -271
  1475. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +0 -247
  1476. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +0 -45
  1477. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +0 -79
  1478. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +0 -65
  1479. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +0 -40
  1480. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +0 -165
  1481. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +0 -149
  1482. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +0 -56
  1483. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +0 -173
  1484. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +0 -158
  1485. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +0 -43
  1486. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +0 -70
  1487. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +0 -60
  1488. package/node_modules/graphql/validation/specifiedRules.d.ts +0 -17
  1489. package/node_modules/graphql/validation/specifiedRules.js +0 -175
  1490. package/node_modules/graphql/validation/specifiedRules.mjs +0 -131
  1491. package/node_modules/graphql/validation/validate.d.ts +0 -122
  1492. package/node_modules/graphql/validation/validate.js +0 -219
  1493. package/node_modules/graphql/validation/validate.mjs +0 -200
  1494. package/node_modules/graphql/version.d.ts +0 -10
  1495. package/node_modules/graphql/version.js +0 -23
  1496. package/node_modules/graphql/version.mjs +0 -14
  1497. package/node_modules/hono/LICENSE +0 -21
  1498. package/node_modules/hono/README.md +0 -85
  1499. package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +0 -24
  1500. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +0 -364
  1501. package/node_modules/hono/dist/adapter/aws-lambda/index.js +0 -9
  1502. package/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
  1503. package/node_modules/hono/dist/adapter/bun/conninfo.js +0 -27
  1504. package/node_modules/hono/dist/adapter/bun/index.js +0 -16
  1505. package/node_modules/hono/dist/adapter/bun/serve-static.js +0 -30
  1506. package/node_modules/hono/dist/adapter/bun/server.js +0 -5
  1507. package/node_modules/hono/dist/adapter/bun/ssg.js +0 -17
  1508. package/node_modules/hono/dist/adapter/bun/websocket.js +0 -73
  1509. package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +0 -9
  1510. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +0 -67
  1511. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +0 -9
  1512. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +0 -9
  1513. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +0 -9
  1514. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +0 -8
  1515. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +0 -22
  1516. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +0 -35
  1517. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +0 -41
  1518. package/node_modules/hono/dist/adapter/deno/conninfo.js +0 -14
  1519. package/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
  1520. package/node_modules/hono/dist/adapter/deno/index.js +0 -12
  1521. package/node_modules/hono/dist/adapter/deno/serve-static.js +0 -40
  1522. package/node_modules/hono/dist/adapter/deno/ssg.js +0 -18
  1523. package/node_modules/hono/dist/adapter/deno/websocket.js +0 -32
  1524. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +0 -9
  1525. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +0 -96
  1526. package/node_modules/hono/dist/adapter/lambda-edge/index.js +0 -7
  1527. package/node_modules/hono/dist/adapter/netlify/conninfo.js +0 -9
  1528. package/node_modules/hono/dist/adapter/netlify/handler.js +0 -9
  1529. package/node_modules/hono/dist/adapter/netlify/index.js +0 -2
  1530. package/node_modules/hono/dist/adapter/netlify/mod.js +0 -7
  1531. package/node_modules/hono/dist/adapter/service-worker/handler.js +0 -20
  1532. package/node_modules/hono/dist/adapter/service-worker/index.js +0 -9
  1533. package/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
  1534. package/node_modules/hono/dist/adapter/vercel/conninfo.js +0 -10
  1535. package/node_modules/hono/dist/adapter/vercel/handler.js +0 -7
  1536. package/node_modules/hono/dist/adapter/vercel/index.js +0 -7
  1537. package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +0 -46
  1538. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +0 -395
  1539. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +0 -34
  1540. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
  1541. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +0 -49
  1542. package/node_modules/hono/dist/cjs/adapter/bun/index.js +0 -45
  1543. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +0 -52
  1544. package/node_modules/hono/dist/cjs/adapter/bun/server.js +0 -27
  1545. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +0 -40
  1546. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +0 -98
  1547. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +0 -31
  1548. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +0 -91
  1549. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +0 -34
  1550. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +0 -31
  1551. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +0 -33
  1552. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +0 -30
  1553. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +0 -44
  1554. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +0 -57
  1555. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +0 -63
  1556. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +0 -36
  1557. package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
  1558. package/node_modules/hono/dist/cjs/adapter/deno/index.js +0 -38
  1559. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +0 -62
  1560. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +0 -41
  1561. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +0 -54
  1562. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +0 -31
  1563. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +0 -130
  1564. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +0 -30
  1565. package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +0 -31
  1566. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +0 -31
  1567. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +0 -21
  1568. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +0 -30
  1569. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +0 -42
  1570. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +0 -32
  1571. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
  1572. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +0 -32
  1573. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +0 -29
  1574. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +0 -30
  1575. package/node_modules/hono/dist/cjs/client/client.js +0 -204
  1576. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +0 -85
  1577. package/node_modules/hono/dist/cjs/client/index.js +0 -32
  1578. package/node_modules/hono/dist/cjs/client/types.js +0 -15
  1579. package/node_modules/hono/dist/cjs/client/utils.js +0 -105
  1580. package/node_modules/hono/dist/cjs/compose.js +0 -68
  1581. package/node_modules/hono/dist/cjs/context.js +0 -450
  1582. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +0 -43
  1583. package/node_modules/hono/dist/cjs/helper/accepts/index.js +0 -27
  1584. package/node_modules/hono/dist/cjs/helper/adapter/index.js +0 -81
  1585. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
  1586. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
  1587. package/node_modules/hono/dist/cjs/helper/cookie/index.js +0 -130
  1588. package/node_modules/hono/dist/cjs/helper/css/common.js +0 -273
  1589. package/node_modules/hono/dist/cjs/helper/css/index.js +0 -157
  1590. package/node_modules/hono/dist/cjs/helper/dev/index.js +0 -79
  1591. package/node_modules/hono/dist/cjs/helper/factory/index.js +0 -54
  1592. package/node_modules/hono/dist/cjs/helper/html/index.js +0 -64
  1593. package/node_modules/hono/dist/cjs/helper/proxy/index.js +0 -115
  1594. package/node_modules/hono/dist/cjs/helper/route/index.js +0 -71
  1595. package/node_modules/hono/dist/cjs/helper/ssg/index.js +0 -43
  1596. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +0 -73
  1597. package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +0 -70
  1598. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +0 -320
  1599. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +0 -93
  1600. package/node_modules/hono/dist/cjs/helper/streaming/index.js +0 -35
  1601. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +0 -91
  1602. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +0 -56
  1603. package/node_modules/hono/dist/cjs/helper/streaming/text.js +0 -34
  1604. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +0 -35
  1605. package/node_modules/hono/dist/cjs/helper/testing/index.js +0 -33
  1606. package/node_modules/hono/dist/cjs/helper/websocket/index.js +0 -81
  1607. package/node_modules/hono/dist/cjs/hono-base.js +0 -406
  1608. package/node_modules/hono/dist/cjs/hono.js +0 -43
  1609. package/node_modules/hono/dist/cjs/http-exception.js +0 -57
  1610. package/node_modules/hono/dist/cjs/index.js +0 -30
  1611. package/node_modules/hono/dist/cjs/jsx/base.js +0 -378
  1612. package/node_modules/hono/dist/cjs/jsx/children.js +0 -44
  1613. package/node_modules/hono/dist/cjs/jsx/components.js +0 -221
  1614. package/node_modules/hono/dist/cjs/jsx/constants.js +0 -42
  1615. package/node_modules/hono/dist/cjs/jsx/context.js +0 -188
  1616. package/node_modules/hono/dist/cjs/jsx/dom/client.js +0 -76
  1617. package/node_modules/hono/dist/cjs/jsx/dom/components.js +0 -55
  1618. package/node_modules/hono/dist/cjs/jsx/dom/context.js +0 -71
  1619. package/node_modules/hono/dist/cjs/jsx/dom/css.js +0 -168
  1620. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +0 -74
  1621. package/node_modules/hono/dist/cjs/jsx/dom/index.js +0 -181
  1622. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +0 -399
  1623. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +0 -52
  1624. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +0 -32
  1625. package/node_modules/hono/dist/cjs/jsx/dom/render.js +0 -641
  1626. package/node_modules/hono/dist/cjs/jsx/dom/server.js +0 -67
  1627. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +0 -32
  1628. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +0 -373
  1629. package/node_modules/hono/dist/cjs/jsx/index.js +0 -138
  1630. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +0 -50
  1631. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +0 -189
  1632. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
  1633. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +0 -41
  1634. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +0 -71
  1635. package/node_modules/hono/dist/cjs/jsx/streaming.js +0 -179
  1636. package/node_modules/hono/dist/cjs/jsx/types.js +0 -15
  1637. package/node_modules/hono/dist/cjs/jsx/utils.js +0 -200
  1638. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +0 -88
  1639. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +0 -114
  1640. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +0 -75
  1641. package/node_modules/hono/dist/cjs/middleware/cache/index.js +0 -219
  1642. package/node_modules/hono/dist/cjs/middleware/combine/index.js +0 -101
  1643. package/node_modules/hono/dist/cjs/middleware/compress/index.js +0 -97
  1644. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +0 -47
  1645. package/node_modules/hono/dist/cjs/middleware/cors/index.js +0 -106
  1646. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +0 -77
  1647. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +0 -55
  1648. package/node_modules/hono/dist/cjs/middleware/etag/index.js +0 -96
  1649. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +0 -176
  1650. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +0 -82
  1651. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +0 -27
  1652. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +0 -139
  1653. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +0 -38
  1654. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +0 -145
  1655. package/node_modules/hono/dist/cjs/middleware/language/index.js +0 -35
  1656. package/node_modules/hono/dist/cjs/middleware/language/language.js +0 -203
  1657. package/node_modules/hono/dist/cjs/middleware/logger/index.js +0 -72
  1658. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +0 -90
  1659. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +0 -106
  1660. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +0 -32
  1661. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +0 -37
  1662. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +0 -27
  1663. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +0 -43
  1664. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +0 -29
  1665. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
  1666. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +0 -195
  1667. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +0 -99
  1668. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +0 -40
  1669. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +0 -47
  1670. package/node_modules/hono/dist/cjs/middleware/timing/index.js +0 -35
  1671. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +0 -130
  1672. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +0 -62
  1673. package/node_modules/hono/dist/cjs/package.json +0 -3
  1674. package/node_modules/hono/dist/cjs/preset/quick.js +0 -38
  1675. package/node_modules/hono/dist/cjs/preset/tiny.js +0 -34
  1676. package/node_modules/hono/dist/cjs/request/constants.js +0 -27
  1677. package/node_modules/hono/dist/cjs/request.js +0 -342
  1678. package/node_modules/hono/dist/cjs/router/linear-router/index.js +0 -27
  1679. package/node_modules/hono/dist/cjs/router/linear-router/router.js +0 -140
  1680. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +0 -27
  1681. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +0 -70
  1682. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +0 -34
  1683. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +0 -48
  1684. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +0 -133
  1685. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +0 -166
  1686. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +0 -187
  1687. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +0 -89
  1688. package/node_modules/hono/dist/cjs/router/smart-router/index.js +0 -27
  1689. package/node_modules/hono/dist/cjs/router/smart-router/router.js +0 -80
  1690. package/node_modules/hono/dist/cjs/router/trie-router/index.js +0 -27
  1691. package/node_modules/hono/dist/cjs/router/trie-router/node.js +0 -210
  1692. package/node_modules/hono/dist/cjs/router/trie-router/router.js +0 -48
  1693. package/node_modules/hono/dist/cjs/router.js +0 -40
  1694. package/node_modules/hono/dist/cjs/types.js +0 -28
  1695. package/node_modules/hono/dist/cjs/utils/accept.js +0 -245
  1696. package/node_modules/hono/dist/cjs/utils/basic-auth.js +0 -45
  1697. package/node_modules/hono/dist/cjs/utils/body.js +0 -111
  1698. package/node_modules/hono/dist/cjs/utils/buffer.js +0 -103
  1699. package/node_modules/hono/dist/cjs/utils/color.js +0 -48
  1700. package/node_modules/hono/dist/cjs/utils/compress.js +0 -27
  1701. package/node_modules/hono/dist/cjs/utils/concurrent.js +0 -61
  1702. package/node_modules/hono/dist/cjs/utils/constants.js +0 -27
  1703. package/node_modules/hono/dist/cjs/utils/cookie.js +0 -199
  1704. package/node_modules/hono/dist/cjs/utils/crypto.js +0 -69
  1705. package/node_modules/hono/dist/cjs/utils/encode.js +0 -54
  1706. package/node_modules/hono/dist/cjs/utils/filepath.js +0 -58
  1707. package/node_modules/hono/dist/cjs/utils/handler.js +0 -36
  1708. package/node_modules/hono/dist/cjs/utils/headers.js +0 -15
  1709. package/node_modules/hono/dist/cjs/utils/html.js +0 -150
  1710. package/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
  1711. package/node_modules/hono/dist/cjs/utils/ipaddr.js +0 -318
  1712. package/node_modules/hono/dist/cjs/utils/jwt/index.js +0 -28
  1713. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +0 -42
  1714. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +0 -215
  1715. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +0 -219
  1716. package/node_modules/hono/dist/cjs/utils/jwt/types.js +0 -161
  1717. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +0 -30
  1718. package/node_modules/hono/dist/cjs/utils/mime.js +0 -106
  1719. package/node_modules/hono/dist/cjs/utils/stream.js +0 -103
  1720. package/node_modules/hono/dist/cjs/utils/types.js +0 -15
  1721. package/node_modules/hono/dist/cjs/utils/url.js +0 -256
  1722. package/node_modules/hono/dist/cjs/validator/index.js +0 -27
  1723. package/node_modules/hono/dist/cjs/validator/utils.js +0 -15
  1724. package/node_modules/hono/dist/cjs/validator/validator.js +0 -108
  1725. package/node_modules/hono/dist/client/client.js +0 -189
  1726. package/node_modules/hono/dist/client/fetch-result-please.js +0 -62
  1727. package/node_modules/hono/dist/client/index.js +0 -8
  1728. package/node_modules/hono/dist/client/types.js +0 -0
  1729. package/node_modules/hono/dist/client/utils.js +0 -76
  1730. package/node_modules/hono/dist/compose.js +0 -46
  1731. package/node_modules/hono/dist/context.js +0 -427
  1732. package/node_modules/hono/dist/helper/accepts/accepts.js +0 -20
  1733. package/node_modules/hono/dist/helper/accepts/index.js +0 -5
  1734. package/node_modules/hono/dist/helper/adapter/index.js +0 -56
  1735. package/node_modules/hono/dist/helper/conninfo/index.js +0 -0
  1736. package/node_modules/hono/dist/helper/conninfo/types.js +0 -0
  1737. package/node_modules/hono/dist/helper/cookie/index.js +0 -102
  1738. package/node_modules/hono/dist/helper/css/common.js +0 -236
  1739. package/node_modules/hono/dist/helper/css/index.js +0 -140
  1740. package/node_modules/hono/dist/helper/dev/index.js +0 -55
  1741. package/node_modules/hono/dist/helper/factory/index.js +0 -30
  1742. package/node_modules/hono/dist/helper/html/index.js +0 -41
  1743. package/node_modules/hono/dist/helper/proxy/index.js +0 -93
  1744. package/node_modules/hono/dist/helper/route/index.js +0 -46
  1745. package/node_modules/hono/dist/helper/ssg/index.js +0 -19
  1746. package/node_modules/hono/dist/helper/ssg/middleware.js +0 -45
  1747. package/node_modules/hono/dist/helper/ssg/plugins.js +0 -47
  1748. package/node_modules/hono/dist/helper/ssg/ssg.js +0 -297
  1749. package/node_modules/hono/dist/helper/ssg/utils.js +0 -67
  1750. package/node_modules/hono/dist/helper/streaming/index.js +0 -10
  1751. package/node_modules/hono/dist/helper/streaming/sse.js +0 -68
  1752. package/node_modules/hono/dist/helper/streaming/stream.js +0 -34
  1753. package/node_modules/hono/dist/helper/streaming/text.js +0 -12
  1754. package/node_modules/hono/dist/helper/streaming/utils.js +0 -13
  1755. package/node_modules/hono/dist/helper/testing/index.js +0 -11
  1756. package/node_modules/hono/dist/helper/websocket/index.js +0 -57
  1757. package/node_modules/hono/dist/hono-base.js +0 -384
  1758. package/node_modules/hono/dist/hono.js +0 -21
  1759. package/node_modules/hono/dist/http-exception.js +0 -35
  1760. package/node_modules/hono/dist/index.js +0 -7
  1761. package/node_modules/hono/dist/jsx/base.js +0 -346
  1762. package/node_modules/hono/dist/jsx/children.js +0 -21
  1763. package/node_modules/hono/dist/jsx/components.js +0 -198
  1764. package/node_modules/hono/dist/jsx/constants.js +0 -15
  1765. package/node_modules/hono/dist/jsx/context.js +0 -162
  1766. package/node_modules/hono/dist/jsx/dom/client.js +0 -53
  1767. package/node_modules/hono/dist/jsx/dom/components.js +0 -32
  1768. package/node_modules/hono/dist/jsx/dom/context.js +0 -48
  1769. package/node_modules/hono/dist/jsx/dom/css.js +0 -150
  1770. package/node_modules/hono/dist/jsx/dom/hooks/index.js +0 -48
  1771. package/node_modules/hono/dist/jsx/dom/index.js +0 -142
  1772. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +0 -374
  1773. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +0 -19
  1774. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +0 -8
  1775. package/node_modules/hono/dist/jsx/dom/render.js +0 -617
  1776. package/node_modules/hono/dist/jsx/dom/server.js +0 -33
  1777. package/node_modules/hono/dist/jsx/dom/utils.js +0 -10
  1778. package/node_modules/hono/dist/jsx/hooks/index.js +0 -331
  1779. package/node_modules/hono/dist/jsx/index.js +0 -103
  1780. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +0 -24
  1781. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +0 -165
  1782. package/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
  1783. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +0 -18
  1784. package/node_modules/hono/dist/jsx/jsx-runtime.js +0 -44
  1785. package/node_modules/hono/dist/jsx/streaming.js +0 -155
  1786. package/node_modules/hono/dist/jsx/types.js +0 -0
  1787. package/node_modules/hono/dist/jsx/utils.js +0 -175
  1788. package/node_modules/hono/dist/middleware/basic-auth/index.js +0 -66
  1789. package/node_modules/hono/dist/middleware/bearer-auth/index.js +0 -92
  1790. package/node_modules/hono/dist/middleware/body-limit/index.js +0 -53
  1791. package/node_modules/hono/dist/middleware/cache/index.js +0 -197
  1792. package/node_modules/hono/dist/middleware/combine/index.js +0 -77
  1793. package/node_modules/hono/dist/middleware/compress/index.js +0 -74
  1794. package/node_modules/hono/dist/middleware/context-storage/index.js +0 -23
  1795. package/node_modules/hono/dist/middleware/cors/index.js +0 -84
  1796. package/node_modules/hono/dist/middleware/csrf/index.js +0 -55
  1797. package/node_modules/hono/dist/middleware/etag/digest.js +0 -33
  1798. package/node_modules/hono/dist/middleware/etag/index.js +0 -73
  1799. package/node_modules/hono/dist/middleware/ip-restriction/index.js +0 -162
  1800. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +0 -58
  1801. package/node_modules/hono/dist/middleware/jwk/index.js +0 -5
  1802. package/node_modules/hono/dist/middleware/jwk/jwk.js +0 -117
  1803. package/node_modules/hono/dist/middleware/jwt/index.js +0 -11
  1804. package/node_modules/hono/dist/middleware/jwt/jwt.js +0 -119
  1805. package/node_modules/hono/dist/middleware/language/index.js +0 -15
  1806. package/node_modules/hono/dist/middleware/language/language.js +0 -172
  1807. package/node_modules/hono/dist/middleware/logger/index.js +0 -44
  1808. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +0 -68
  1809. package/node_modules/hono/dist/middleware/method-override/index.js +0 -84
  1810. package/node_modules/hono/dist/middleware/powered-by/index.js +0 -10
  1811. package/node_modules/hono/dist/middleware/pretty-json/index.js +0 -15
  1812. package/node_modules/hono/dist/middleware/request-id/index.js +0 -5
  1813. package/node_modules/hono/dist/middleware/request-id/request-id.js +0 -21
  1814. package/node_modules/hono/dist/middleware/secure-headers/index.js +0 -6
  1815. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
  1816. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +0 -172
  1817. package/node_modules/hono/dist/middleware/serve-static/index.js +0 -77
  1818. package/node_modules/hono/dist/middleware/serve-static/path.js +0 -18
  1819. package/node_modules/hono/dist/middleware/timeout/index.js +0 -25
  1820. package/node_modules/hono/dist/middleware/timing/index.js +0 -9
  1821. package/node_modules/hono/dist/middleware/timing/timing.js +0 -104
  1822. package/node_modules/hono/dist/middleware/trailing-slash/index.js +0 -39
  1823. package/node_modules/hono/dist/preset/quick.js +0 -16
  1824. package/node_modules/hono/dist/preset/tiny.js +0 -12
  1825. package/node_modules/hono/dist/request/constants.js +0 -5
  1826. package/node_modules/hono/dist/request.js +0 -319
  1827. package/node_modules/hono/dist/router/linear-router/index.js +0 -5
  1828. package/node_modules/hono/dist/router/linear-router/router.js +0 -118
  1829. package/node_modules/hono/dist/router/pattern-router/index.js +0 -5
  1830. package/node_modules/hono/dist/router/pattern-router/router.js +0 -48
  1831. package/node_modules/hono/dist/router/reg-exp-router/index.js +0 -9
  1832. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +0 -25
  1833. package/node_modules/hono/dist/router/reg-exp-router/node.js +0 -110
  1834. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +0 -142
  1835. package/node_modules/hono/dist/router/reg-exp-router/router.js +0 -169
  1836. package/node_modules/hono/dist/router/reg-exp-router/trie.js +0 -67
  1837. package/node_modules/hono/dist/router/smart-router/index.js +0 -5
  1838. package/node_modules/hono/dist/router/smart-router/router.js +0 -58
  1839. package/node_modules/hono/dist/router/trie-router/index.js +0 -5
  1840. package/node_modules/hono/dist/router/trie-router/node.js +0 -188
  1841. package/node_modules/hono/dist/router/trie-router/router.js +0 -26
  1842. package/node_modules/hono/dist/router.js +0 -14
  1843. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +0 -27
  1844. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +0 -184
  1845. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +0 -8
  1846. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +0 -153
  1847. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +0 -7
  1848. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +0 -10
  1849. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +0 -3
  1850. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +0 -12
  1851. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +0 -13
  1852. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +0 -39
  1853. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +0 -21
  1854. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +0 -33
  1855. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +0 -7
  1856. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +0 -2
  1857. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +0 -7
  1858. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +0 -4
  1859. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +0 -16
  1860. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +0 -5
  1861. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +0 -2
  1862. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +0 -7
  1863. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +0 -8
  1864. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +0 -3
  1865. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +0 -13
  1866. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +0 -2
  1867. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +0 -2
  1868. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +0 -87
  1869. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +0 -7
  1870. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +0 -21
  1871. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +0 -2
  1872. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +0 -5
  1873. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +0 -2
  1874. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +0 -16
  1875. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +0 -28
  1876. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +0 -12
  1877. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +0 -2
  1878. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +0 -2
  1879. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +0 -6
  1880. package/node_modules/hono/dist/types/client/client.d.ts +0 -4
  1881. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +0 -35
  1882. package/node_modules/hono/dist/types/client/index.d.ts +0 -7
  1883. package/node_modules/hono/dist/types/client/types.d.ts +0 -229
  1884. package/node_modules/hono/dist/types/client/utils.d.ts +0 -18
  1885. package/node_modules/hono/dist/types/compose.d.ts +0 -14
  1886. package/node_modules/hono/dist/types/context.d.ts +0 -455
  1887. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +0 -30
  1888. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +0 -5
  1889. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +0 -12
  1890. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +0 -5
  1891. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +0 -36
  1892. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +0 -24
  1893. package/node_modules/hono/dist/types/helper/css/common.d.ts +0 -59
  1894. package/node_modules/hono/dist/types/helper/css/index.d.ts +0 -80
  1895. package/node_modules/hono/dist/types/helper/dev/index.d.ts +0 -20
  1896. package/node_modules/hono/dist/types/helper/factory/index.d.ts +0 -82
  1897. package/node_modules/hono/dist/types/helper/html/index.d.ts +0 -8
  1898. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +0 -72
  1899. package/node_modules/hono/dist/types/helper/route/index.d.ts +0 -75
  1900. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +0 -7
  1901. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +0 -44
  1902. package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +0 -27
  1903. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +0 -91
  1904. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +0 -16
  1905. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +0 -8
  1906. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +0 -13
  1907. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +0 -3
  1908. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +0 -3
  1909. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +0 -1
  1910. package/node_modules/hono/dist/types/helper/testing/index.d.ts +0 -12
  1911. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +0 -69
  1912. package/node_modules/hono/dist/types/hono-base.d.ts +0 -221
  1913. package/node_modules/hono/dist/types/hono.d.ts +0 -19
  1914. package/node_modules/hono/dist/types/http-exception.d.ts +0 -59
  1915. package/node_modules/hono/dist/types/index.d.ts +0 -37
  1916. package/node_modules/hono/dist/types/jsx/base.d.ts +0 -58
  1917. package/node_modules/hono/dist/types/jsx/children.d.ts +0 -9
  1918. package/node_modules/hono/dist/types/jsx/components.d.ts +0 -15
  1919. package/node_modules/hono/dist/types/jsx/constants.d.ts +0 -6
  1920. package/node_modules/hono/dist/types/jsx/context.d.ts +0 -51
  1921. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +0 -31
  1922. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +0 -10
  1923. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +0 -3
  1924. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +0 -83
  1925. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +0 -39
  1926. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +0 -88
  1927. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +0 -16
  1928. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +0 -8
  1929. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +0 -7
  1930. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +0 -73
  1931. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +0 -106
  1932. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +0 -1
  1933. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +0 -47
  1934. package/node_modules/hono/dist/types/jsx/index.d.ts +0 -75
  1935. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +0 -6
  1936. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +0 -13
  1937. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +0 -722
  1938. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +0 -8
  1939. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +0 -12
  1940. package/node_modules/hono/dist/types/jsx/streaming.d.ts +0 -36
  1941. package/node_modules/hono/dist/types/jsx/types.d.ts +0 -35
  1942. package/node_modules/hono/dist/types/jsx/utils.d.ts +0 -4
  1943. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +0 -75
  1944. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +0 -92
  1945. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +0 -45
  1946. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +0 -45
  1947. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +0 -85
  1948. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +0 -40
  1949. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +0 -40
  1950. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +0 -55
  1951. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +0 -78
  1952. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +0 -1
  1953. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +0 -42
  1954. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +0 -67
  1955. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +0 -77
  1956. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +0 -1
  1957. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +0 -56
  1958. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +0 -8
  1959. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +0 -69
  1960. package/node_modules/hono/dist/types/middleware/language/index.d.ts +0 -7
  1961. package/node_modules/hono/dist/types/middleware/language/language.d.ts +0 -120
  1962. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +0 -24
  1963. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +0 -49
  1964. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +0 -48
  1965. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +0 -29
  1966. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +0 -42
  1967. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +0 -7
  1968. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +0 -37
  1969. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +0 -8
  1970. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +0 -14
  1971. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +0 -109
  1972. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +0 -31
  1973. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +0 -5
  1974. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +0 -31
  1975. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +0 -7
  1976. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +0 -129
  1977. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +0 -94
  1978. package/node_modules/hono/dist/types/package.json +0 -3
  1979. package/node_modules/hono/dist/types/preset/quick.d.ts +0 -10
  1980. package/node_modules/hono/dist/types/preset/tiny.d.ts +0 -10
  1981. package/node_modules/hono/dist/types/request/constants.d.ts +0 -1
  1982. package/node_modules/hono/dist/types/request.d.ts +0 -324
  1983. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +0 -5
  1984. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +0 -7
  1985. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +0 -5
  1986. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +0 -7
  1987. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +0 -6
  1988. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +0 -7
  1989. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +0 -10
  1990. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +0 -17
  1991. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +0 -11
  1992. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +0 -8
  1993. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +0 -5
  1994. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +0 -11
  1995. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +0 -5
  1996. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +0 -7
  1997. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +0 -8
  1998. package/node_modules/hono/dist/types/router.d.ts +0 -97
  1999. package/node_modules/hono/dist/types/types.d.ts +0 -573
  2000. package/node_modules/hono/dist/types/utils/accept.d.ts +0 -6
  2001. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +0 -5
  2002. package/node_modules/hono/dist/types/utils/body.d.ts +0 -79
  2003. package/node_modules/hono/dist/types/utils/buffer.d.ts +0 -17
  2004. package/node_modules/hono/dist/types/utils/color.d.ts +0 -21
  2005. package/node_modules/hono/dist/types/utils/compress.d.ts +0 -8
  2006. package/node_modules/hono/dist/types/utils/concurrent.d.ts +0 -11
  2007. package/node_modules/hono/dist/types/utils/constants.d.ts +0 -4
  2008. package/node_modules/hono/dist/types/utils/cookie.d.ts +0 -40
  2009. package/node_modules/hono/dist/types/utils/crypto.d.ts +0 -15
  2010. package/node_modules/hono/dist/types/utils/encode.d.ts +0 -8
  2011. package/node_modules/hono/dist/types/utils/filepath.d.ts +0 -12
  2012. package/node_modules/hono/dist/types/utils/handler.d.ts +0 -6
  2013. package/node_modules/hono/dist/types/utils/headers.d.ts +0 -8
  2014. package/node_modules/hono/dist/types/utils/html.d.ts +0 -44
  2015. package/node_modules/hono/dist/types/utils/http-status.d.ts +0 -32
  2016. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +0 -56
  2017. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +0 -18
  2018. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +0 -23
  2019. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +0 -12
  2020. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +0 -43
  2021. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +0 -86
  2022. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +0 -6
  2023. package/node_modules/hono/dist/types/utils/mime.d.ts +0 -70
  2024. package/node_modules/hono/dist/types/utils/stream.d.ts +0 -31
  2025. package/node_modules/hono/dist/types/utils/types.d.ts +0 -74
  2026. package/node_modules/hono/dist/types/utils/url.d.ts +0 -40
  2027. package/node_modules/hono/dist/types/validator/index.d.ts +0 -7
  2028. package/node_modules/hono/dist/types/validator/utils.d.ts +0 -29
  2029. package/node_modules/hono/dist/types/validator/validator.d.ts +0 -16
  2030. package/node_modules/hono/dist/types.js +0 -6
  2031. package/node_modules/hono/dist/utils/accept.js +0 -223
  2032. package/node_modules/hono/dist/utils/basic-auth.js +0 -23
  2033. package/node_modules/hono/dist/utils/body.js +0 -89
  2034. package/node_modules/hono/dist/utils/buffer.js +0 -78
  2035. package/node_modules/hono/dist/utils/color.js +0 -25
  2036. package/node_modules/hono/dist/utils/compress.js +0 -5
  2037. package/node_modules/hono/dist/utils/concurrent.js +0 -39
  2038. package/node_modules/hono/dist/utils/constants.js +0 -5
  2039. package/node_modules/hono/dist/utils/cookie.js +0 -174
  2040. package/node_modules/hono/dist/utils/crypto.js +0 -44
  2041. package/node_modules/hono/dist/utils/encode.js +0 -29
  2042. package/node_modules/hono/dist/utils/filepath.js +0 -35
  2043. package/node_modules/hono/dist/utils/handler.js +0 -13
  2044. package/node_modules/hono/dist/utils/headers.js +0 -0
  2045. package/node_modules/hono/dist/utils/html.js +0 -123
  2046. package/node_modules/hono/dist/utils/http-status.js +0 -0
  2047. package/node_modules/hono/dist/utils/ipaddr.js +0 -288
  2048. package/node_modules/hono/dist/utils/jwt/index.js +0 -6
  2049. package/node_modules/hono/dist/utils/jwt/jwa.js +0 -20
  2050. package/node_modules/hono/dist/utils/jwt/jws.js +0 -192
  2051. package/node_modules/hono/dist/utils/jwt/jwt.js +0 -207
  2052. package/node_modules/hono/dist/utils/jwt/types.js +0 -124
  2053. package/node_modules/hono/dist/utils/jwt/utf8.js +0 -7
  2054. package/node_modules/hono/dist/utils/mime.js +0 -82
  2055. package/node_modules/hono/dist/utils/stream.js +0 -81
  2056. package/node_modules/hono/dist/utils/types.js +0 -0
  2057. package/node_modules/hono/dist/utils/url.js +0 -221
  2058. package/node_modules/hono/dist/validator/index.js +0 -5
  2059. package/node_modules/hono/dist/validator/utils.js +0 -0
  2060. package/node_modules/hono/dist/validator/validator.js +0 -86
  2061. package/node_modules/hono/package.json +0 -706
  2062. package/node_modules/zod/LICENSE +0 -21
  2063. package/node_modules/zod/README.md +0 -191
  2064. package/node_modules/zod/index.cjs +0 -33
  2065. package/node_modules/zod/index.d.cts +0 -4
  2066. package/node_modules/zod/index.d.ts +0 -4
  2067. package/node_modules/zod/index.js +0 -4
  2068. package/node_modules/zod/locales/index.cjs +0 -17
  2069. package/node_modules/zod/locales/index.d.cts +0 -1
  2070. package/node_modules/zod/locales/index.d.ts +0 -1
  2071. package/node_modules/zod/locales/index.js +0 -1
  2072. package/node_modules/zod/locales/package.json +0 -7
  2073. package/node_modules/zod/mini/index.cjs +0 -32
  2074. package/node_modules/zod/mini/index.d.cts +0 -3
  2075. package/node_modules/zod/mini/index.d.ts +0 -3
  2076. package/node_modules/zod/mini/index.js +0 -3
  2077. package/node_modules/zod/mini/package.json +0 -7
  2078. package/node_modules/zod/package.json +0 -135
  2079. package/node_modules/zod/src/index.ts +0 -4
  2080. package/node_modules/zod/src/locales/index.ts +0 -1
  2081. package/node_modules/zod/src/mini/index.ts +0 -3
  2082. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  2083. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  2084. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  2085. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  2086. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  2087. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  2088. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  2089. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  2090. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  2091. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  2092. package/node_modules/zod/src/v3/errors.ts +0 -13
  2093. package/node_modules/zod/src/v3/external.ts +0 -6
  2094. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  2095. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  2096. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  2097. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  2098. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  2099. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  2100. package/node_modules/zod/src/v3/index.ts +0 -4
  2101. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  2102. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  2103. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  2104. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  2105. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  2106. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  2107. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  2108. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  2109. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  2110. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  2111. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  2112. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  2113. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  2114. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  2115. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  2116. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  2117. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  2118. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  2119. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  2120. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  2121. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  2122. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  2123. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  2124. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  2125. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  2126. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  2127. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  2128. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  2129. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  2130. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  2131. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  2132. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  2133. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  2134. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  2135. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  2136. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  2137. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  2138. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  2139. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  2140. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  2141. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  2142. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  2143. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  2144. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  2145. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  2146. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  2147. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  2148. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  2149. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  2150. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  2151. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  2152. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  2153. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  2154. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  2155. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  2156. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  2157. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  2158. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  2159. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  2160. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  2161. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  2162. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  2163. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  2164. package/node_modules/zod/src/v3/types.ts +0 -5138
  2165. package/node_modules/zod/src/v4/classic/checks.ts +0 -32
  2166. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  2167. package/node_modules/zod/src/v4/classic/compat.ts +0 -70
  2168. package/node_modules/zod/src/v4/classic/errors.ts +0 -82
  2169. package/node_modules/zod/src/v4/classic/external.ts +0 -52
  2170. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  2171. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  2172. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  2173. package/node_modules/zod/src/v4/classic/parse.ts +0 -82
  2174. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  2175. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  2176. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  2177. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  2178. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  2179. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  2180. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  2181. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  2182. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  2183. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  2184. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  2185. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  2186. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  2187. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  2188. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  2189. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  2190. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  2191. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  2192. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  2193. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  2194. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  2195. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  2196. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  2197. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  2198. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  2199. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  2200. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  2201. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  2202. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  2203. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  2204. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  2205. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  2206. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  2207. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  2208. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  2209. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  2210. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  2211. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  2212. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  2213. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  2214. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  2215. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  2216. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  2217. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  2218. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  2219. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  2220. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  2221. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  2222. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  2223. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  2224. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  2225. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  2226. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  2227. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  2228. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  2229. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  2230. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  2231. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  2232. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  2233. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  2234. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  2235. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  2236. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  2237. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  2238. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  2239. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  2240. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  2241. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  2242. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  2243. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  2244. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  2245. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  2246. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  2247. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  2248. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  2249. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  2250. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  2251. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  2252. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  2253. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  2254. package/node_modules/zod/src/v4/core/api.ts +0 -1823
  2255. package/node_modules/zod/src/v4/core/checks.ts +0 -1293
  2256. package/node_modules/zod/src/v4/core/config.ts +0 -15
  2257. package/node_modules/zod/src/v4/core/core.ts +0 -153
  2258. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  2259. package/node_modules/zod/src/v4/core/errors.ts +0 -455
  2260. package/node_modules/zod/src/v4/core/index.ts +0 -16
  2261. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  2262. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  2263. package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  2264. package/node_modules/zod/src/v4/core/parse.ts +0 -195
  2265. package/node_modules/zod/src/v4/core/regexes.ts +0 -190
  2266. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  2267. package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  2268. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  2269. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  2270. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  2271. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  2272. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  2273. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  2274. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  2275. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  2276. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  2277. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  2278. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  2279. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  2280. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  2281. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  2282. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  2283. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  2284. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  2285. package/node_modules/zod/src/v4/core/util.ts +0 -983
  2286. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  2287. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  2288. package/node_modules/zod/src/v4/index.ts +0 -4
  2289. package/node_modules/zod/src/v4/locales/ar.ts +0 -115
  2290. package/node_modules/zod/src/v4/locales/az.ts +0 -111
  2291. package/node_modules/zod/src/v4/locales/be.ts +0 -176
  2292. package/node_modules/zod/src/v4/locales/bg.ts +0 -128
  2293. package/node_modules/zod/src/v4/locales/ca.ts +0 -116
  2294. package/node_modules/zod/src/v4/locales/cs.ts +0 -118
  2295. package/node_modules/zod/src/v4/locales/da.ts +0 -123
  2296. package/node_modules/zod/src/v4/locales/de.ts +0 -116
  2297. package/node_modules/zod/src/v4/locales/el.ts +0 -121
  2298. package/node_modules/zod/src/v4/locales/en.ts +0 -123
  2299. package/node_modules/zod/src/v4/locales/eo.ts +0 -118
  2300. package/node_modules/zod/src/v4/locales/es.ts +0 -141
  2301. package/node_modules/zod/src/v4/locales/fa.ts +0 -126
  2302. package/node_modules/zod/src/v4/locales/fi.ts +0 -121
  2303. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  2304. package/node_modules/zod/src/v4/locales/fr.ts +0 -132
  2305. package/node_modules/zod/src/v4/locales/he.ts +0 -246
  2306. package/node_modules/zod/src/v4/locales/hr.ts +0 -131
  2307. package/node_modules/zod/src/v4/locales/hu.ts +0 -117
  2308. package/node_modules/zod/src/v4/locales/hy.ts +0 -164
  2309. package/node_modules/zod/src/v4/locales/id.ts +0 -115
  2310. package/node_modules/zod/src/v4/locales/index.ts +0 -52
  2311. package/node_modules/zod/src/v4/locales/is.ts +0 -119
  2312. package/node_modules/zod/src/v4/locales/it.ts +0 -116
  2313. package/node_modules/zod/src/v4/locales/ja.ts +0 -114
  2314. package/node_modules/zod/src/v4/locales/ka.ts +0 -123
  2315. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  2316. package/node_modules/zod/src/v4/locales/km.ts +0 -119
  2317. package/node_modules/zod/src/v4/locales/ko.ts +0 -121
  2318. package/node_modules/zod/src/v4/locales/lt.ts +0 -239
  2319. package/node_modules/zod/src/v4/locales/mk.ts +0 -118
  2320. package/node_modules/zod/src/v4/locales/ms.ts +0 -115
  2321. package/node_modules/zod/src/v4/locales/nl.ts +0 -121
  2322. package/node_modules/zod/src/v4/locales/no.ts +0 -116
  2323. package/node_modules/zod/src/v4/locales/ota.ts +0 -117
  2324. package/node_modules/zod/src/v4/locales/pl.ts +0 -118
  2325. package/node_modules/zod/src/v4/locales/ps.ts +0 -126
  2326. package/node_modules/zod/src/v4/locales/pt.ts +0 -116
  2327. package/node_modules/zod/src/v4/locales/ro.ts +0 -129
  2328. package/node_modules/zod/src/v4/locales/ru.ts +0 -176
  2329. package/node_modules/zod/src/v4/locales/sl.ts +0 -118
  2330. package/node_modules/zod/src/v4/locales/sv.ts +0 -119
  2331. package/node_modules/zod/src/v4/locales/ta.ts +0 -118
  2332. package/node_modules/zod/src/v4/locales/th.ts +0 -119
  2333. package/node_modules/zod/src/v4/locales/tr.ts +0 -111
  2334. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  2335. package/node_modules/zod/src/v4/locales/uk.ts +0 -117
  2336. package/node_modules/zod/src/v4/locales/ur.ts +0 -119
  2337. package/node_modules/zod/src/v4/locales/uz.ts +0 -117
  2338. package/node_modules/zod/src/v4/locales/vi.ts +0 -117
  2339. package/node_modules/zod/src/v4/locales/yo.ts +0 -124
  2340. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  2341. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  2342. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  2343. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  2344. package/node_modules/zod/src/v4/mini/external.ts +0 -41
  2345. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  2346. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  2347. package/node_modules/zod/src/v4/mini/parse.ts +0 -14
  2348. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  2349. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  2350. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  2351. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  2352. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  2353. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  2354. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  2355. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  2356. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  2357. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  2358. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  2359. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  2360. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  2361. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  2362. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  2363. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  2364. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  2365. package/node_modules/zod/v3/ZodError.cjs +0 -138
  2366. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  2367. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  2368. package/node_modules/zod/v3/ZodError.js +0 -133
  2369. package/node_modules/zod/v3/errors.cjs +0 -17
  2370. package/node_modules/zod/v3/errors.d.cts +0 -5
  2371. package/node_modules/zod/v3/errors.d.ts +0 -5
  2372. package/node_modules/zod/v3/errors.js +0 -9
  2373. package/node_modules/zod/v3/external.cjs +0 -22
  2374. package/node_modules/zod/v3/external.d.cts +0 -6
  2375. package/node_modules/zod/v3/external.d.ts +0 -6
  2376. package/node_modules/zod/v3/external.js +0 -6
  2377. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  2378. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  2379. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  2380. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  2381. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  2382. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  2383. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  2384. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  2385. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  2386. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  2387. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  2388. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  2389. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  2390. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  2391. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  2392. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  2393. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  2394. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  2395. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  2396. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  2397. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  2398. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  2399. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  2400. package/node_modules/zod/v3/helpers/util.js +0 -133
  2401. package/node_modules/zod/v3/index.cjs +0 -33
  2402. package/node_modules/zod/v3/index.d.cts +0 -4
  2403. package/node_modules/zod/v3/index.d.ts +0 -4
  2404. package/node_modules/zod/v3/index.js +0 -4
  2405. package/node_modules/zod/v3/locales/en.cjs +0 -112
  2406. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  2407. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  2408. package/node_modules/zod/v3/locales/en.js +0 -109
  2409. package/node_modules/zod/v3/package.json +0 -7
  2410. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  2411. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  2412. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  2413. package/node_modules/zod/v3/standard-schema.js +0 -1
  2414. package/node_modules/zod/v3/types.cjs +0 -3777
  2415. package/node_modules/zod/v3/types.d.cts +0 -1034
  2416. package/node_modules/zod/v3/types.d.ts +0 -1034
  2417. package/node_modules/zod/v3/types.js +0 -3695
  2418. package/node_modules/zod/v4/classic/checks.cjs +0 -33
  2419. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  2420. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  2421. package/node_modules/zod/v4/classic/checks.js +0 -1
  2422. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  2423. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  2424. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  2425. package/node_modules/zod/v4/classic/coerce.js +0 -17
  2426. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  2427. package/node_modules/zod/v4/classic/compat.d.cts +0 -50
  2428. package/node_modules/zod/v4/classic/compat.d.ts +0 -50
  2429. package/node_modules/zod/v4/classic/compat.js +0 -31
  2430. package/node_modules/zod/v4/classic/errors.cjs +0 -74
  2431. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  2432. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  2433. package/node_modules/zod/v4/classic/errors.js +0 -48
  2434. package/node_modules/zod/v4/classic/external.cjs +0 -73
  2435. package/node_modules/zod/v4/classic/external.d.cts +0 -16
  2436. package/node_modules/zod/v4/classic/external.d.ts +0 -16
  2437. package/node_modules/zod/v4/classic/external.js +0 -20
  2438. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
  2439. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  2440. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  2441. package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  2442. package/node_modules/zod/v4/classic/index.cjs +0 -33
  2443. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  2444. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  2445. package/node_modules/zod/v4/classic/index.js +0 -4
  2446. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  2447. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  2448. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  2449. package/node_modules/zod/v4/classic/iso.js +0 -30
  2450. package/node_modules/zod/v4/classic/package.json +0 -7
  2451. package/node_modules/zod/v4/classic/parse.cjs +0 -41
  2452. package/node_modules/zod/v4/classic/parse.d.cts +0 -31
  2453. package/node_modules/zod/v4/classic/parse.d.ts +0 -31
  2454. package/node_modules/zod/v4/classic/parse.js +0 -15
  2455. package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
  2456. package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
  2457. package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
  2458. package/node_modules/zod/v4/classic/schemas.js +0 -1395
  2459. package/node_modules/zod/v4/core/api.cjs +0 -1227
  2460. package/node_modules/zod/v4/core/api.d.cts +0 -325
  2461. package/node_modules/zod/v4/core/api.d.ts +0 -325
  2462. package/node_modules/zod/v4/core/api.js +0 -1087
  2463. package/node_modules/zod/v4/core/checks.cjs +0 -601
  2464. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  2465. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  2466. package/node_modules/zod/v4/core/checks.js +0 -575
  2467. package/node_modules/zod/v4/core/core.cjs +0 -85
  2468. package/node_modules/zod/v4/core/core.d.cts +0 -70
  2469. package/node_modules/zod/v4/core/core.d.ts +0 -70
  2470. package/node_modules/zod/v4/core/core.js +0 -78
  2471. package/node_modules/zod/v4/core/doc.cjs +0 -39
  2472. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  2473. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  2474. package/node_modules/zod/v4/core/doc.js +0 -35
  2475. package/node_modules/zod/v4/core/errors.cjs +0 -216
  2476. package/node_modules/zod/v4/core/errors.d.cts +0 -221
  2477. package/node_modules/zod/v4/core/errors.d.ts +0 -221
  2478. package/node_modules/zod/v4/core/errors.js +0 -185
  2479. package/node_modules/zod/v4/core/index.cjs +0 -47
  2480. package/node_modules/zod/v4/core/index.d.cts +0 -16
  2481. package/node_modules/zod/v4/core/index.d.ts +0 -16
  2482. package/node_modules/zod/v4/core/index.js +0 -16
  2483. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  2484. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  2485. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  2486. package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  2487. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
  2488. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  2489. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  2490. package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  2491. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  2492. package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  2493. package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  2494. package/node_modules/zod/v4/core/json-schema.js +0 -1
  2495. package/node_modules/zod/v4/core/package.json +0 -7
  2496. package/node_modules/zod/v4/core/parse.cjs +0 -131
  2497. package/node_modules/zod/v4/core/parse.d.cts +0 -49
  2498. package/node_modules/zod/v4/core/parse.d.ts +0 -49
  2499. package/node_modules/zod/v4/core/parse.js +0 -93
  2500. package/node_modules/zod/v4/core/regexes.cjs +0 -172
  2501. package/node_modules/zod/v4/core/regexes.d.cts +0 -85
  2502. package/node_modules/zod/v4/core/regexes.d.ts +0 -85
  2503. package/node_modules/zod/v4/core/regexes.js +0 -139
  2504. package/node_modules/zod/v4/core/registries.cjs +0 -56
  2505. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  2506. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  2507. package/node_modules/zod/v4/core/registries.js +0 -51
  2508. package/node_modules/zod/v4/core/schemas.cjs +0 -2270
  2509. package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
  2510. package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
  2511. package/node_modules/zod/v4/core/schemas.js +0 -2239
  2512. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  2513. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  2514. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  2515. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  2516. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
  2517. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  2518. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  2519. package/node_modules/zod/v4/core/to-json-schema.js +0 -448
  2520. package/node_modules/zod/v4/core/util.cjs +0 -734
  2521. package/node_modules/zod/v4/core/util.d.cts +0 -200
  2522. package/node_modules/zod/v4/core/util.d.ts +0 -200
  2523. package/node_modules/zod/v4/core/util.js +0 -674
  2524. package/node_modules/zod/v4/core/versions.cjs +0 -8
  2525. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  2526. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  2527. package/node_modules/zod/v4/core/versions.js +0 -5
  2528. package/node_modules/zod/v4/index.cjs +0 -22
  2529. package/node_modules/zod/v4/index.d.cts +0 -3
  2530. package/node_modules/zod/v4/index.d.ts +0 -3
  2531. package/node_modules/zod/v4/index.js +0 -3
  2532. package/node_modules/zod/v4/locales/ar.cjs +0 -133
  2533. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  2534. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  2535. package/node_modules/zod/v4/locales/ar.js +0 -106
  2536. package/node_modules/zod/v4/locales/az.cjs +0 -132
  2537. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  2538. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  2539. package/node_modules/zod/v4/locales/az.js +0 -105
  2540. package/node_modules/zod/v4/locales/be.cjs +0 -183
  2541. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  2542. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  2543. package/node_modules/zod/v4/locales/be.js +0 -156
  2544. package/node_modules/zod/v4/locales/bg.cjs +0 -147
  2545. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  2546. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  2547. package/node_modules/zod/v4/locales/bg.js +0 -120
  2548. package/node_modules/zod/v4/locales/ca.cjs +0 -134
  2549. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  2550. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  2551. package/node_modules/zod/v4/locales/ca.js +0 -107
  2552. package/node_modules/zod/v4/locales/cs.cjs +0 -138
  2553. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  2554. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  2555. package/node_modules/zod/v4/locales/cs.js +0 -111
  2556. package/node_modules/zod/v4/locales/da.cjs +0 -142
  2557. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  2558. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  2559. package/node_modules/zod/v4/locales/da.js +0 -115
  2560. package/node_modules/zod/v4/locales/de.cjs +0 -135
  2561. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  2562. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  2563. package/node_modules/zod/v4/locales/de.js +0 -108
  2564. package/node_modules/zod/v4/locales/el.cjs +0 -136
  2565. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  2566. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  2567. package/node_modules/zod/v4/locales/el.js +0 -109
  2568. package/node_modules/zod/v4/locales/en.cjs +0 -140
  2569. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  2570. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  2571. package/node_modules/zod/v4/locales/en.js +0 -113
  2572. package/node_modules/zod/v4/locales/eo.cjs +0 -136
  2573. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  2574. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  2575. package/node_modules/zod/v4/locales/eo.js +0 -109
  2576. package/node_modules/zod/v4/locales/es.cjs +0 -159
  2577. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  2578. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  2579. package/node_modules/zod/v4/locales/es.js +0 -132
  2580. package/node_modules/zod/v4/locales/fa.cjs +0 -141
  2581. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  2582. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  2583. package/node_modules/zod/v4/locales/fa.js +0 -114
  2584. package/node_modules/zod/v4/locales/fi.cjs +0 -139
  2585. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  2586. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  2587. package/node_modules/zod/v4/locales/fi.js +0 -112
  2588. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  2589. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  2590. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  2591. package/node_modules/zod/v4/locales/fr-CA.js +0 -107
  2592. package/node_modules/zod/v4/locales/fr.cjs +0 -152
  2593. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  2594. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  2595. package/node_modules/zod/v4/locales/fr.js +0 -125
  2596. package/node_modules/zod/v4/locales/he.cjs +0 -241
  2597. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  2598. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  2599. package/node_modules/zod/v4/locales/he.js +0 -214
  2600. package/node_modules/zod/v4/locales/hr.cjs +0 -149
  2601. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  2602. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  2603. package/node_modules/zod/v4/locales/hr.js +0 -122
  2604. package/node_modules/zod/v4/locales/hu.cjs +0 -135
  2605. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  2606. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  2607. package/node_modules/zod/v4/locales/hu.js +0 -108
  2608. package/node_modules/zod/v4/locales/hy.cjs +0 -174
  2609. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  2610. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  2611. package/node_modules/zod/v4/locales/hy.js +0 -147
  2612. package/node_modules/zod/v4/locales/id.cjs +0 -133
  2613. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  2614. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  2615. package/node_modules/zod/v4/locales/id.js +0 -106
  2616. package/node_modules/zod/v4/locales/index.cjs +0 -111
  2617. package/node_modules/zod/v4/locales/index.d.cts +0 -52
  2618. package/node_modules/zod/v4/locales/index.d.ts +0 -52
  2619. package/node_modules/zod/v4/locales/index.js +0 -52
  2620. package/node_modules/zod/v4/locales/is.cjs +0 -136
  2621. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  2622. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  2623. package/node_modules/zod/v4/locales/is.js +0 -109
  2624. package/node_modules/zod/v4/locales/it.cjs +0 -135
  2625. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  2626. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  2627. package/node_modules/zod/v4/locales/it.js +0 -108
  2628. package/node_modules/zod/v4/locales/ja.cjs +0 -134
  2629. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  2630. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  2631. package/node_modules/zod/v4/locales/ja.js +0 -107
  2632. package/node_modules/zod/v4/locales/ka.cjs +0 -139
  2633. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  2634. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  2635. package/node_modules/zod/v4/locales/ka.js +0 -112
  2636. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  2637. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  2638. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  2639. package/node_modules/zod/v4/locales/kh.js +0 -5
  2640. package/node_modules/zod/v4/locales/km.cjs +0 -137
  2641. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  2642. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  2643. package/node_modules/zod/v4/locales/km.js +0 -110
  2644. package/node_modules/zod/v4/locales/ko.cjs +0 -138
  2645. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  2646. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  2647. package/node_modules/zod/v4/locales/ko.js +0 -111
  2648. package/node_modules/zod/v4/locales/lt.cjs +0 -230
  2649. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  2650. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  2651. package/node_modules/zod/v4/locales/lt.js +0 -203
  2652. package/node_modules/zod/v4/locales/mk.cjs +0 -136
  2653. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  2654. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  2655. package/node_modules/zod/v4/locales/mk.js +0 -109
  2656. package/node_modules/zod/v4/locales/ms.cjs +0 -134
  2657. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  2658. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  2659. package/node_modules/zod/v4/locales/ms.js +0 -107
  2660. package/node_modules/zod/v4/locales/nl.cjs +0 -137
  2661. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  2662. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  2663. package/node_modules/zod/v4/locales/nl.js +0 -110
  2664. package/node_modules/zod/v4/locales/no.cjs +0 -135
  2665. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  2666. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  2667. package/node_modules/zod/v4/locales/no.js +0 -108
  2668. package/node_modules/zod/v4/locales/ota.cjs +0 -136
  2669. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  2670. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  2671. package/node_modules/zod/v4/locales/ota.js +0 -109
  2672. package/node_modules/zod/v4/locales/package.json +0 -7
  2673. package/node_modules/zod/v4/locales/pl.cjs +0 -136
  2674. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  2675. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  2676. package/node_modules/zod/v4/locales/pl.js +0 -109
  2677. package/node_modules/zod/v4/locales/ps.cjs +0 -141
  2678. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  2679. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  2680. package/node_modules/zod/v4/locales/ps.js +0 -114
  2681. package/node_modules/zod/v4/locales/pt.cjs +0 -135
  2682. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  2683. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  2684. package/node_modules/zod/v4/locales/pt.js +0 -108
  2685. package/node_modules/zod/v4/locales/ro.cjs +0 -146
  2686. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  2687. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  2688. package/node_modules/zod/v4/locales/ro.js +0 -119
  2689. package/node_modules/zod/v4/locales/ru.cjs +0 -183
  2690. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  2691. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  2692. package/node_modules/zod/v4/locales/ru.js +0 -156
  2693. package/node_modules/zod/v4/locales/sl.cjs +0 -136
  2694. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  2695. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  2696. package/node_modules/zod/v4/locales/sl.js +0 -109
  2697. package/node_modules/zod/v4/locales/sv.cjs +0 -137
  2698. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  2699. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  2700. package/node_modules/zod/v4/locales/sv.js +0 -110
  2701. package/node_modules/zod/v4/locales/ta.cjs +0 -137
  2702. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  2703. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  2704. package/node_modules/zod/v4/locales/ta.js +0 -110
  2705. package/node_modules/zod/v4/locales/th.cjs +0 -137
  2706. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  2707. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  2708. package/node_modules/zod/v4/locales/th.js +0 -110
  2709. package/node_modules/zod/v4/locales/tr.cjs +0 -132
  2710. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  2711. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  2712. package/node_modules/zod/v4/locales/tr.js +0 -105
  2713. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  2714. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  2715. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  2716. package/node_modules/zod/v4/locales/ua.js +0 -5
  2717. package/node_modules/zod/v4/locales/uk.cjs +0 -135
  2718. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  2719. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  2720. package/node_modules/zod/v4/locales/uk.js +0 -108
  2721. package/node_modules/zod/v4/locales/ur.cjs +0 -137
  2722. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  2723. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  2724. package/node_modules/zod/v4/locales/ur.js +0 -110
  2725. package/node_modules/zod/v4/locales/uz.cjs +0 -137
  2726. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  2727. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  2728. package/node_modules/zod/v4/locales/uz.js +0 -110
  2729. package/node_modules/zod/v4/locales/vi.cjs +0 -135
  2730. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  2731. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  2732. package/node_modules/zod/v4/locales/vi.js +0 -108
  2733. package/node_modules/zod/v4/locales/yo.cjs +0 -134
  2734. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  2735. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  2736. package/node_modules/zod/v4/locales/yo.js +0 -107
  2737. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  2738. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  2739. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  2740. package/node_modules/zod/v4/locales/zh-CN.js +0 -109
  2741. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  2742. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  2743. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  2744. package/node_modules/zod/v4/locales/zh-TW.js +0 -107
  2745. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  2746. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  2747. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  2748. package/node_modules/zod/v4/mini/checks.js +0 -1
  2749. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  2750. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  2751. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  2752. package/node_modules/zod/v4/mini/coerce.js +0 -22
  2753. package/node_modules/zod/v4/mini/external.cjs +0 -63
  2754. package/node_modules/zod/v4/mini/external.d.cts +0 -13
  2755. package/node_modules/zod/v4/mini/external.d.ts +0 -13
  2756. package/node_modules/zod/v4/mini/external.js +0 -14
  2757. package/node_modules/zod/v4/mini/index.cjs +0 -32
  2758. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  2759. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  2760. package/node_modules/zod/v4/mini/index.js +0 -3
  2761. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  2762. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  2763. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  2764. package/node_modules/zod/v4/mini/iso.js +0 -34
  2765. package/node_modules/zod/v4/mini/package.json +0 -7
  2766. package/node_modules/zod/v4/mini/parse.cjs +0 -16
  2767. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  2768. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  2769. package/node_modules/zod/v4/mini/parse.js +0 -1
  2770. package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
  2771. package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
  2772. package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
  2773. package/node_modules/zod/v4/mini/schemas.js +0 -961
  2774. package/node_modules/zod/v4/package.json +0 -7
  2775. package/node_modules/zod/v4-mini/index.cjs +0 -32
  2776. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  2777. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  2778. package/node_modules/zod/v4-mini/index.js +0 -3
  2779. package/node_modules/zod/v4-mini/package.json +0 -7
  2780. /package/{dist/src → assets}/demo/first-run-demo.md +0 -0
  2781. /package/{dist/src → assets}/demo/first-run-demo.seed.json +0 -0
  2782. /package/{dist/src → assets}/fix-prompt/prompts/fix-prompt-v1.md +0 -0
@@ -0,0 +1,2869 @@
1
+ export { SLACK_CHECKS } from './chunk-IY6G5NWT.js';
2
+ import './chunk-NY55QTVQ.js';
3
+ import { defineTwin, queryTokenResolver, formTokenResolver, UnknownToolError, openTwinDatabase, createApp } from './chunk-LZIPGCQJ.js';
4
+ import './chunk-VBATFCWR.js';
5
+ import './chunk-SG6ZTIMT.js';
6
+ import { z, ZodError } from 'zod';
7
+
8
+ // ../packages/twin-slack/dist/src/db.js
9
+ var MIGRATION_SQL = `
10
+ CREATE TABLE IF NOT EXISTS workspaces (
11
+ id TEXT PRIMARY KEY,
12
+ name TEXT NOT NULL,
13
+ domain TEXT NOT NULL,
14
+ url TEXT NOT NULL,
15
+ enterprise_id TEXT,
16
+ created_at TEXT NOT NULL,
17
+ entity_counter INTEGER NOT NULL DEFAULT 0
18
+ );
19
+
20
+ CREATE TABLE IF NOT EXISTS users (
21
+ id TEXT PRIMARY KEY,
22
+ team_id TEXT NOT NULL,
23
+ name TEXT NOT NULL,
24
+ real_name TEXT NOT NULL DEFAULT '',
25
+ display_name TEXT NOT NULL DEFAULT '',
26
+ email TEXT,
27
+ is_bot INTEGER NOT NULL DEFAULT 0,
28
+ is_admin INTEGER NOT NULL DEFAULT 0,
29
+ deleted INTEGER NOT NULL DEFAULT 0,
30
+ tz TEXT NOT NULL DEFAULT 'America/Los_Angeles',
31
+ profile_json TEXT NOT NULL DEFAULT '{}',
32
+ created_at TEXT NOT NULL,
33
+ updated_at TEXT NOT NULL,
34
+ FOREIGN KEY (team_id) REFERENCES workspaces(id) ON DELETE CASCADE
35
+ );
36
+
37
+ CREATE UNIQUE INDEX IF NOT EXISTS users_email_idx
38
+ ON users(team_id, email) WHERE email IS NOT NULL;
39
+
40
+ CREATE TABLE IF NOT EXISTS channels (
41
+ id TEXT PRIMARY KEY,
42
+ team_id TEXT NOT NULL,
43
+ name TEXT NOT NULL DEFAULT '',
44
+ is_channel INTEGER NOT NULL DEFAULT 1,
45
+ is_group INTEGER NOT NULL DEFAULT 0,
46
+ is_im INTEGER NOT NULL DEFAULT 0,
47
+ is_mpim INTEGER NOT NULL DEFAULT 0,
48
+ is_private INTEGER NOT NULL DEFAULT 0,
49
+ is_archived INTEGER NOT NULL DEFAULT 0,
50
+ topic TEXT NOT NULL DEFAULT '',
51
+ purpose TEXT NOT NULL DEFAULT '',
52
+ creator TEXT NOT NULL,
53
+ created_at TEXT NOT NULL,
54
+ ts_counter INTEGER NOT NULL DEFAULT 0,
55
+ dm_signature TEXT,
56
+ FOREIGN KEY (team_id) REFERENCES workspaces(id) ON DELETE CASCADE
57
+ );
58
+
59
+ CREATE UNIQUE INDEX IF NOT EXISTS channels_name_idx
60
+ ON channels(team_id, name) WHERE name <> '';
61
+
62
+ -- Deterministic DM / MPIM dedup: dm_signature is the sorted member-id list
63
+ -- joined with a pipe character. NULL on public channels and private groups.
64
+ CREATE UNIQUE INDEX IF NOT EXISTS channels_dm_signature_idx
65
+ ON channels(team_id, dm_signature) WHERE dm_signature IS NOT NULL;
66
+
67
+ CREATE TABLE IF NOT EXISTS channel_members (
68
+ channel_id TEXT NOT NULL,
69
+ user_id TEXT NOT NULL,
70
+ joined_at TEXT NOT NULL,
71
+ last_read TEXT NOT NULL DEFAULT '0000000000.000000',
72
+ PRIMARY KEY (channel_id, user_id),
73
+ FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE,
74
+ FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
75
+ );
76
+
77
+ CREATE TABLE IF NOT EXISTS messages (
78
+ channel_id TEXT NOT NULL,
79
+ ts TEXT NOT NULL,
80
+ user_id TEXT NOT NULL,
81
+ text TEXT NOT NULL,
82
+ subtype TEXT,
83
+ thread_ts TEXT,
84
+ reply_count INTEGER NOT NULL DEFAULT 0,
85
+ reply_users_count INTEGER NOT NULL DEFAULT 0,
86
+ latest_reply TEXT,
87
+ edited_user_id TEXT,
88
+ edited_ts TEXT,
89
+ blocks_json TEXT NOT NULL DEFAULT '[]',
90
+ attachments_json TEXT NOT NULL DEFAULT '[]',
91
+ bot_id TEXT,
92
+ app_id TEXT,
93
+ username TEXT,
94
+ icon_url TEXT,
95
+ icon_emoji TEXT,
96
+ PRIMARY KEY (channel_id, ts),
97
+ FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE
98
+ );
99
+
100
+ CREATE INDEX IF NOT EXISTS messages_history_idx ON messages(channel_id, ts DESC);
101
+ CREATE INDEX IF NOT EXISTS messages_thread_idx ON messages(channel_id, thread_ts, ts);
102
+
103
+ CREATE TABLE IF NOT EXISTS reactions (
104
+ channel_id TEXT NOT NULL,
105
+ message_ts TEXT NOT NULL,
106
+ name TEXT NOT NULL,
107
+ user_id TEXT NOT NULL,
108
+ added_at TEXT NOT NULL,
109
+ PRIMARY KEY (channel_id, message_ts, name, user_id),
110
+ FOREIGN KEY (channel_id, message_ts) REFERENCES messages(channel_id, ts) ON DELETE CASCADE
111
+ );
112
+
113
+ CREATE INDEX IF NOT EXISTS reactions_by_msg_idx ON reactions(channel_id, message_ts);
114
+
115
+ CREATE TABLE IF NOT EXISTS pins (
116
+ channel_id TEXT NOT NULL,
117
+ message_ts TEXT NOT NULL,
118
+ pinned_by TEXT NOT NULL,
119
+ pinned_at TEXT NOT NULL,
120
+ PRIMARY KEY (channel_id, message_ts),
121
+ FOREIGN KEY (channel_id, message_ts) REFERENCES messages(channel_id, ts) ON DELETE CASCADE
122
+ );
123
+
124
+ CREATE TABLE IF NOT EXISTS files (
125
+ id TEXT PRIMARY KEY,
126
+ team_id TEXT NOT NULL,
127
+ user_id TEXT NOT NULL,
128
+ name TEXT NOT NULL,
129
+ title TEXT NOT NULL DEFAULT '',
130
+ mimetype TEXT NOT NULL DEFAULT 'text/plain',
131
+ filetype TEXT NOT NULL DEFAULT 'text',
132
+ size INTEGER NOT NULL DEFAULT 0,
133
+ url_private TEXT NOT NULL DEFAULT '',
134
+ channels_json TEXT NOT NULL DEFAULT '[]',
135
+ deleted INTEGER NOT NULL DEFAULT 0,
136
+ content TEXT,
137
+ created_at TEXT NOT NULL,
138
+ FOREIGN KEY (team_id) REFERENCES workspaces(id) ON DELETE CASCADE
139
+ );
140
+
141
+ CREATE TABLE IF NOT EXISTS bookmarks (
142
+ id TEXT PRIMARY KEY,
143
+ channel_id TEXT NOT NULL,
144
+ title TEXT NOT NULL,
145
+ link TEXT NOT NULL,
146
+ emoji TEXT,
147
+ type TEXT NOT NULL DEFAULT 'link',
148
+ created_by TEXT NOT NULL,
149
+ created_at TEXT NOT NULL,
150
+ FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE
151
+ );
152
+
153
+ CREATE TABLE IF NOT EXISTS scheduled_messages (
154
+ id TEXT PRIMARY KEY,
155
+ channel_id TEXT NOT NULL,
156
+ user_id TEXT NOT NULL,
157
+ text TEXT NOT NULL,
158
+ thread_ts TEXT,
159
+ post_at INTEGER NOT NULL,
160
+ date_created INTEGER NOT NULL,
161
+ blocks_json TEXT NOT NULL DEFAULT '[]',
162
+ FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE CASCADE
163
+ );
164
+
165
+ CREATE TABLE IF NOT EXISTS canvases (
166
+ id TEXT PRIMARY KEY,
167
+ team_id TEXT NOT NULL,
168
+ title TEXT NOT NULL DEFAULT '',
169
+ markdown TEXT NOT NULL DEFAULT '',
170
+ channel_id TEXT,
171
+ created_by TEXT NOT NULL,
172
+ created_at TEXT NOT NULL,
173
+ updated_at TEXT NOT NULL,
174
+ FOREIGN KEY (team_id) REFERENCES workspaces(id) ON DELETE CASCADE,
175
+ FOREIGN KEY (channel_id) REFERENCES channels(id) ON DELETE SET NULL
176
+ );
177
+
178
+ CREATE TABLE IF NOT EXISTS emoji (
179
+ team_id TEXT NOT NULL,
180
+ name TEXT NOT NULL,
181
+ value TEXT NOT NULL,
182
+ PRIMARY KEY (team_id, name),
183
+ FOREIGN KEY (team_id) REFERENCES workspaces(id) ON DELETE CASCADE
184
+ );
185
+
186
+ CREATE INDEX IF NOT EXISTS messages_text_idx ON messages(text);
187
+ `;
188
+ var RESET_SQL = `
189
+ DELETE FROM emoji;
190
+ DELETE FROM canvases;
191
+ DELETE FROM scheduled_messages;
192
+ DELETE FROM bookmarks;
193
+ DELETE FROM files;
194
+ DELETE FROM pins;
195
+ DELETE FROM reactions;
196
+ DELETE FROM messages;
197
+ DELETE FROM channel_members;
198
+ DELETE FROM channels;
199
+ DELETE FROM users;
200
+ DELETE FROM workspaces;
201
+ `;
202
+ function openSlackTwinDatabase(path = process.env.SLACK_CLONE_DB ?? ":memory:") {
203
+ return openTwinDatabase(path, { migrate });
204
+ }
205
+ function migrate(db) {
206
+ db.exec(MIGRATION_SQL);
207
+ ensureColumn(db, "workspaces", "entity_counter", "INTEGER NOT NULL DEFAULT 0");
208
+ ensureColumn(db, "workspaces", "ts_counter", "INTEGER NOT NULL DEFAULT 0");
209
+ ensureColumn(db, "channels", "ts_counter", "INTEGER NOT NULL DEFAULT 0");
210
+ ensureColumn(db, "channels", "dm_signature", "TEXT");
211
+ db.exec(`UPDATE workspaces SET ts_counter = COALESCE(
212
+ (SELECT MAX(ts_counter) FROM channels WHERE team_id = workspaces.id),
213
+ ts_counter
214
+ ) WHERE ts_counter = 0`);
215
+ ensureColumn(db, "messages", "bot_id", "TEXT");
216
+ ensureColumn(db, "messages", "app_id", "TEXT");
217
+ ensureColumn(db, "messages", "username", "TEXT");
218
+ ensureColumn(db, "messages", "icon_url", "TEXT");
219
+ ensureColumn(db, "messages", "icon_emoji", "TEXT");
220
+ }
221
+ function resetDatabase(db) {
222
+ db.exec(RESET_SQL);
223
+ }
224
+ function ensureColumn(db, table, column, definition) {
225
+ const columns = db.prepare(`PRAGMA table_info(${table})`).all();
226
+ if (!columns.some((row) => row.name === column)) {
227
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
228
+ }
229
+ }
230
+
231
+ // ../packages/twin-slack/dist/src/errors.js
232
+ var TwinError = class extends Error {
233
+ status;
234
+ code;
235
+ extra;
236
+ constructor(message, status, code, extra) {
237
+ super(message);
238
+ this.status = status;
239
+ this.code = code;
240
+ this.extra = extra;
241
+ }
242
+ };
243
+ function slackError(code, status = 400, extra) {
244
+ throw new TwinError(code, status, code, extra);
245
+ }
246
+ function notFound(code = "not_found") {
247
+ throw new TwinError(code, 404, code);
248
+ }
249
+ function isSqliteConstraintError(err) {
250
+ if (!err || typeof err !== "object")
251
+ return false;
252
+ const code = err.code ?? "";
253
+ return code.startsWith("SQLITE_CONSTRAINT");
254
+ }
255
+ function twinErrorFromSqliteConstraint(method, err) {
256
+ if (!isSqliteConstraintError(err))
257
+ return null;
258
+ const message = err instanceof Error ? err.message : String(err);
259
+ if (message.includes("channels_name_idx")) {
260
+ return new TwinError("name_taken", 409, "name_taken");
261
+ }
262
+ if (method.startsWith("reactions.") || message.includes("reactions")) {
263
+ return new TwinError("already_reacted", 400, "already_reacted");
264
+ }
265
+ if (method.startsWith("pins.") || message.includes("pins")) {
266
+ return new TwinError("already_pinned", 400, "already_pinned");
267
+ }
268
+ return new TwinError("internal_error", 500, "internal_error", { warning: message });
269
+ }
270
+
271
+ // ../packages/twin-slack/dist/src/util.js
272
+ function nowIso() {
273
+ return (/* @__PURE__ */ new Date()).toISOString();
274
+ }
275
+ function nowUnix() {
276
+ return Math.floor(Date.now() / 1e3);
277
+ }
278
+ async function parseFormOrJson(c) {
279
+ const contentType = (c.req.header("content-type") ?? "").toLowerCase();
280
+ if (contentType.includes("application/json")) {
281
+ try {
282
+ const body = await c.req.json();
283
+ if (body && typeof body === "object" && !Array.isArray(body)) {
284
+ return body;
285
+ }
286
+ return {};
287
+ } catch {
288
+ return {};
289
+ }
290
+ }
291
+ if (contentType.includes("application/x-www-form-urlencoded") || contentType.includes("multipart/form-data")) {
292
+ try {
293
+ const body = await c.req.parseBody();
294
+ return coerceFormValues(body);
295
+ } catch {
296
+ return {};
297
+ }
298
+ }
299
+ return {};
300
+ }
301
+ function coerceFormValues(raw) {
302
+ const out = {};
303
+ for (const [key, value] of Object.entries(raw)) {
304
+ out[key] = value;
305
+ }
306
+ return out;
307
+ }
308
+ function asString(value, fallback = "") {
309
+ if (typeof value === "string")
310
+ return value;
311
+ if (value === void 0 || value === null)
312
+ return fallback;
313
+ return String(value);
314
+ }
315
+ function asOptionalString(value) {
316
+ if (typeof value !== "string")
317
+ return void 0;
318
+ if (value.length === 0)
319
+ return void 0;
320
+ return value;
321
+ }
322
+ function asNumber(value, fallback) {
323
+ if (typeof value === "number" && Number.isFinite(value))
324
+ return value;
325
+ if (typeof value === "string" && value.length > 0) {
326
+ const parsed = Number(value);
327
+ if (Number.isFinite(parsed))
328
+ return parsed;
329
+ }
330
+ return fallback;
331
+ }
332
+ function asBool(value, fallback = false) {
333
+ if (typeof value === "boolean")
334
+ return value;
335
+ if (typeof value === "string") {
336
+ const v = value.toLowerCase().trim();
337
+ if (v === "1" || v === "true" || v === "yes")
338
+ return true;
339
+ if (v === "0" || v === "false" || v === "no")
340
+ return false;
341
+ }
342
+ if (typeof value === "number")
343
+ return value !== 0;
344
+ return fallback;
345
+ }
346
+ function cursorEncode(payload) {
347
+ return Buffer.from(JSON.stringify(payload), "utf8").toString("base64url");
348
+ }
349
+ function cursorDecode(cursor) {
350
+ if (!cursor)
351
+ return null;
352
+ try {
353
+ const decoded = Buffer.from(cursor, "base64url").toString("utf8");
354
+ const parsed = JSON.parse(decoded);
355
+ if (parsed && typeof parsed === "object" && Number.isInteger(parsed.offset) && parsed.offset >= 0) {
356
+ return { offset: parsed.offset };
357
+ }
358
+ } catch {
359
+ }
360
+ return null;
361
+ }
362
+ var DETERMINISTIC_TS_BASE_SECONDS = 1735689600;
363
+ function tsBaseSeconds() {
364
+ if (process.env.SLACK_DETERMINISTIC_TS === "1")
365
+ return DETERMINISTIC_TS_BASE_SECONDS;
366
+ return Math.floor(Date.now() / 1e3);
367
+ }
368
+ function padTsCounter(counter) {
369
+ return String(counter).padStart(6, "0");
370
+ }
371
+
372
+ // ../packages/twin-slack/dist/src/domain/canvases.js
373
+ var NOOP = () => {
374
+ };
375
+ function canvasesCreate(host, args, onDelta = NOOP) {
376
+ const content = coerceDocumentContent(args.document_content);
377
+ if (args.document_content !== void 0 && !content) {
378
+ slackError("canvas_creation_failed", 400, { detail: "invalid document_content" });
379
+ }
380
+ if (content && content.type !== "markdown") {
381
+ slackError("canvas_creation_failed", 400, { detail: `unsupported content type: ${content.type}` });
382
+ }
383
+ if (args.channel_id) {
384
+ assertChannelAccess(host, args.channel_id);
385
+ }
386
+ const id = host.allocId("F");
387
+ const now = nowIso();
388
+ const title = args.title ?? "";
389
+ const markdown = content?.markdown ?? "";
390
+ const out = host.db.transaction(() => {
391
+ host.db.prepare(`INSERT INTO canvases (id, team_id, title, markdown, channel_id, created_by, created_at, updated_at)
392
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?)`).run(id, host.workspaceId, title, markdown, args.channel_id ?? null, host.actor.id, now, now);
393
+ const after = host.db.prepare(`SELECT * FROM canvases WHERE id = ?`).get(id);
394
+ onDelta({ before: null, after });
395
+ return { canvas_id: id };
396
+ })();
397
+ return out;
398
+ }
399
+ function canvasesEdit(host, args, onDelta = NOOP) {
400
+ if (!args.canvas_id)
401
+ slackError("invalid_arguments", 400);
402
+ const before = host.db.prepare(`SELECT * FROM canvases WHERE id = ?`).get(args.canvas_id);
403
+ if (!before)
404
+ slackError("canvas_not_found", 404);
405
+ assertCanvasAccess(host, before);
406
+ const changes = coerceChanges(args.changes);
407
+ if (!changes || changes.length === 0)
408
+ slackError("invalid_arguments", 400);
409
+ const change = changes[0];
410
+ const next = applyChange(before, change);
411
+ const now = nowIso();
412
+ const out = host.db.transaction(() => {
413
+ host.db.prepare(`UPDATE canvases SET title = ?, markdown = ?, updated_at = ? WHERE id = ?`).run(next.title, next.markdown, now, before.id);
414
+ const after = host.db.prepare(`SELECT * FROM canvases WHERE id = ?`).get(before.id);
415
+ onDelta({ before, after });
416
+ return {};
417
+ })();
418
+ return out;
419
+ }
420
+ function canvasesDelete(host, args, onDelta = NOOP) {
421
+ if (!args.canvas_id)
422
+ slackError("invalid_arguments", 400);
423
+ const before = host.db.prepare(`SELECT * FROM canvases WHERE id = ?`).get(args.canvas_id);
424
+ if (!before)
425
+ slackError("canvas_not_found", 404);
426
+ assertCanvasAccess(host, before);
427
+ const out = host.db.transaction(() => {
428
+ host.db.prepare(`DELETE FROM canvases WHERE id = ?`).run(before.id);
429
+ onDelta({ before, after: null });
430
+ return {};
431
+ })();
432
+ return out;
433
+ }
434
+ function assertChannelAccess(host, channelRef) {
435
+ const channel = host.requireChannel ? host.requireChannel(channelRef) : host.db.prepare(`SELECT * FROM channels WHERE id = ?`).get(channelRef);
436
+ if (!channel)
437
+ slackError("channel_not_found", 404);
438
+ const member = host.db.prepare(`SELECT 1 FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, host.actor.id);
439
+ if (!member)
440
+ slackError("not_in_channel", 400);
441
+ }
442
+ function assertCanvasAccess(host, canvas) {
443
+ if (canvas.channel_id) {
444
+ assertChannelAccess(host, canvas.channel_id);
445
+ return;
446
+ }
447
+ if (canvas.created_by !== host.actor.id)
448
+ slackError("restricted_action", 403);
449
+ }
450
+ function applyChange(row, change) {
451
+ const op = change.operation;
452
+ if (op === "rename") {
453
+ const title = change.title_content?.markdown;
454
+ if (title === void 0)
455
+ slackError("invalid_arguments", 400);
456
+ return { title, markdown: row.markdown };
457
+ }
458
+ const doc = change.document_content;
459
+ if (op === "insert_at_start") {
460
+ if (!doc)
461
+ slackError("invalid_arguments", 400);
462
+ const markdown = doc.markdown + (row.markdown ? `
463
+ ${row.markdown}` : "");
464
+ return { title: row.title, markdown };
465
+ }
466
+ if (op === "insert_at_end" || op === "insert_after" || op === "insert_before") {
467
+ if (!doc)
468
+ slackError("invalid_arguments", 400);
469
+ if ((op === "insert_after" || op === "insert_before") && !change.section_id) {
470
+ slackError("invalid_arguments", 400);
471
+ }
472
+ const markdown = row.markdown ? `${row.markdown}
473
+ ${doc.markdown}` : doc.markdown;
474
+ return { title: row.title, markdown };
475
+ }
476
+ if (op === "replace") {
477
+ if (!doc)
478
+ slackError("invalid_arguments", 400);
479
+ return { title: row.title, markdown: doc.markdown };
480
+ }
481
+ if (op === "delete") {
482
+ if (!change.section_id)
483
+ slackError("invalid_arguments", 400);
484
+ return { title: row.title, markdown: row.markdown };
485
+ }
486
+ slackError("canvas_editing_failed", 400, { detail: `unsupported operation: ${op}` });
487
+ }
488
+ function coerceDocumentContent(raw) {
489
+ if (raw === void 0 || raw === null)
490
+ return void 0;
491
+ let value = raw;
492
+ if (typeof raw === "string") {
493
+ try {
494
+ value = JSON.parse(raw);
495
+ } catch {
496
+ return void 0;
497
+ }
498
+ }
499
+ if (typeof value !== "object" || value === null || Array.isArray(value))
500
+ return void 0;
501
+ const obj = value;
502
+ if (typeof obj.markdown !== "string")
503
+ return void 0;
504
+ return {
505
+ type: typeof obj.type === "string" ? obj.type : "markdown",
506
+ markdown: obj.markdown
507
+ };
508
+ }
509
+ function coerceChanges(raw) {
510
+ let value = raw;
511
+ if (typeof raw === "string") {
512
+ try {
513
+ value = JSON.parse(raw);
514
+ } catch {
515
+ return void 0;
516
+ }
517
+ }
518
+ if (!Array.isArray(value))
519
+ return void 0;
520
+ const out = [];
521
+ for (const item of value) {
522
+ if (typeof item !== "object" || item === null || Array.isArray(item))
523
+ return void 0;
524
+ const obj = item;
525
+ if (typeof obj.operation !== "string")
526
+ return void 0;
527
+ out.push({
528
+ operation: obj.operation,
529
+ document_content: coerceDocumentContent(obj.document_content),
530
+ title_content: coerceDocumentContent(obj.title_content),
531
+ section_id: typeof obj.section_id === "string" ? obj.section_id : void 0
532
+ });
533
+ }
534
+ return out;
535
+ }
536
+
537
+ // ../packages/twin-slack/dist/src/serializers.js
538
+ var SLACK_TWIN_HOST = "https://pome-twin.slack.com";
539
+ var SLACK_TWIN_FILE_HOST = "https://pome-twin-files.slack.com";
540
+ function slackOk(payload) {
541
+ return { ok: true, ...payload };
542
+ }
543
+ function slackError2(code, extra = {}) {
544
+ return { ok: false, error: code, ...extra };
545
+ }
546
+ function serializeWorkspace(row) {
547
+ return {
548
+ id: row.id,
549
+ name: row.name,
550
+ domain: row.domain,
551
+ email_domain: row.domain.includes(".") ? row.domain : `${row.domain}.slack.com`,
552
+ icon: {
553
+ image_default: true,
554
+ image_34: `${SLACK_TWIN_HOST}/team_default_v2_0034.png`,
555
+ image_44: `${SLACK_TWIN_HOST}/team_default_v2_0044.png`,
556
+ image_68: `${SLACK_TWIN_HOST}/team_default_v2_0068.png`,
557
+ image_88: `${SLACK_TWIN_HOST}/team_default_v2_0088.png`,
558
+ image_102: `${SLACK_TWIN_HOST}/team_default_v2_0102.png`,
559
+ image_132: `${SLACK_TWIN_HOST}/team_default_v2_0132.png`,
560
+ image_230: `${SLACK_TWIN_HOST}/team_default_v2_0230.png`
561
+ },
562
+ enterprise_id: row.enterprise_id ?? void 0,
563
+ url: row.url
564
+ };
565
+ }
566
+ function serializeUserProfile(row, opts = {}) {
567
+ const profile = safeJson(row.profile_json);
568
+ const base = {
569
+ avatar_hash: "g000000000",
570
+ status_text: profile.status_text ?? "",
571
+ status_emoji: profile.status_emoji ?? "",
572
+ status_expiration: profile.status_expiration ?? 0,
573
+ real_name: row.real_name,
574
+ display_name: row.display_name || row.real_name || row.name,
575
+ real_name_normalized: row.real_name,
576
+ display_name_normalized: row.display_name || row.real_name || row.name,
577
+ image_24: `${SLACK_TWIN_HOST}/avatars/${row.id}_24.png`,
578
+ image_32: `${SLACK_TWIN_HOST}/avatars/${row.id}_32.png`,
579
+ image_48: `${SLACK_TWIN_HOST}/avatars/${row.id}_48.png`,
580
+ image_72: `${SLACK_TWIN_HOST}/avatars/${row.id}_72.png`,
581
+ image_192: `${SLACK_TWIN_HOST}/avatars/${row.id}_192.png`,
582
+ image_512: `${SLACK_TWIN_HOST}/avatars/${row.id}_512.png`
583
+ };
584
+ const out = {
585
+ ...base,
586
+ ...profile
587
+ };
588
+ if (opts.omitEmail) {
589
+ delete out.email;
590
+ } else if (row.email != null && out.email === void 0) {
591
+ out.email = row.email;
592
+ }
593
+ if (opts.omitTeam) {
594
+ delete out.team;
595
+ } else if (out.team === void 0) {
596
+ out.team = row.team_id;
597
+ }
598
+ return out;
599
+ }
600
+ function serializeUser(row, opts = {}) {
601
+ return {
602
+ id: row.id,
603
+ team_id: row.team_id,
604
+ name: row.name,
605
+ deleted: Boolean(row.deleted),
606
+ color: "9f69e7",
607
+ real_name: row.real_name,
608
+ tz: row.tz,
609
+ tz_label: row.tz.replace(/_/g, " "),
610
+ tz_offset: 0,
611
+ // The embedded profile carries `team` (both users.list and users.info) but
612
+ // OMITS `email` on users.list — real Slack only returns the email on the
613
+ // single-user reads (users.info / lookupByEmail), not in the list envelope
614
+ // (FDRS-473 Kind B). `omitProfileEmail` is set by the users.list caller.
615
+ // serializeUserProfile returns Record<string, unknown> (its own `...profile`
616
+ // spread is an open record); cast to the upstream Profile shape so the parent
617
+ // `satisfies` stays exact without re-anchoring the nested record here.
618
+ profile: serializeUserProfile(row, { omitEmail: opts.omitProfileEmail }),
619
+ is_admin: Boolean(row.is_admin),
620
+ is_owner: Boolean(row.is_admin),
621
+ is_primary_owner: row.id === "U_PRIMARY",
622
+ is_restricted: false,
623
+ is_ultra_restricted: false,
624
+ is_bot: Boolean(row.is_bot),
625
+ is_app_user: false,
626
+ updated: tsToUnix(row.updated_at),
627
+ is_email_confirmed: Boolean(row.email),
628
+ who_can_share_contact_card: "EVERYONE",
629
+ ...opts.include_locale ? { locale: "en-US" } : {}
630
+ };
631
+ }
632
+ function serializeChannel(row, opts = {}) {
633
+ const created = tsToUnix(row.created_at);
634
+ const isIm = Boolean(row.is_im);
635
+ const isMpim = Boolean(row.is_mpim);
636
+ const isPrivate = Boolean(row.is_private || row.is_group);
637
+ const out = {
638
+ id: row.id,
639
+ name: row.name,
640
+ name_normalized: row.name,
641
+ is_channel: Boolean(row.is_channel) && !isIm && !isMpim,
642
+ is_group: Boolean(row.is_group) || isPrivate && !isIm && !isMpim,
643
+ is_im: isIm,
644
+ is_mpim: isMpim,
645
+ is_private: isPrivate,
646
+ is_archived: Boolean(row.is_archived),
647
+ is_general: row.name === "general",
648
+ is_shared: false,
649
+ is_org_shared: false,
650
+ is_pending_ext_shared: false,
651
+ pending_shared: [],
652
+ context_team_id: row.team_id,
653
+ creator: row.creator,
654
+ created,
655
+ unlinked: 0,
656
+ topic: {
657
+ value: row.topic,
658
+ creator: row.creator,
659
+ last_set: created
660
+ },
661
+ purpose: {
662
+ value: row.purpose,
663
+ creator: row.creator,
664
+ last_set: created
665
+ }
666
+ };
667
+ out.parent_conversation = null;
668
+ if (opts.num_members !== void 0)
669
+ out.num_members = opts.num_members;
670
+ if (opts.is_member !== void 0)
671
+ out.is_member = opts.is_member;
672
+ if (opts.last_read !== void 0)
673
+ out.last_read = opts.last_read;
674
+ if (opts.include_members)
675
+ out.members = opts.include_members;
676
+ return out;
677
+ }
678
+ function serializeMessage(row, opts = {}) {
679
+ const botId = row.bot_id ?? (row.user_id.startsWith("B") ? row.user_id : null);
680
+ const blocks = safeJsonArray(row.blocks_json);
681
+ const attachments = safeJsonArray(row.attachments_json);
682
+ const out = {
683
+ type: "message",
684
+ user: row.user_id,
685
+ text: row.text,
686
+ ts: row.ts,
687
+ ...row.subtype ? { subtype: row.subtype } : {},
688
+ ...row.thread_ts ? {
689
+ thread_ts: row.thread_ts,
690
+ // parent_user_id is the THREAD PARENT's author, not this row's author.
691
+ ...opts.parent_user_id ? { parent_user_id: opts.parent_user_id } : {}
692
+ } : {},
693
+ ...row.reply_count > 0 ? {
694
+ reply_count: row.reply_count,
695
+ reply_users_count: row.reply_users_count,
696
+ // row.latest_reply is `string | null`; upstream is `string | undefined`.
697
+ // Cast to the upstream field type — runtime value is unchanged.
698
+ latest_reply: row.latest_reply,
699
+ subscribed: false
700
+ } : {},
701
+ ...row.edited_user_id && row.edited_ts ? { edited: { user: row.edited_user_id, ts: row.edited_ts } } : {},
702
+ // safeJsonArray returns unknown[]; cast to the upstream field types so the
703
+ // anchor stays exact (mirrors twin-github `as Upstream["field"]`).
704
+ ...blocks.length > 0 ? { blocks } : {},
705
+ ...attachments.length > 0 ? { attachments } : {},
706
+ ...opts.reactions && opts.reactions.length > 0 ? { reactions: groupReactions(opts.reactions) } : {},
707
+ ...opts.include_team ? { team: opts.include_team } : {},
708
+ ...botId ? {
709
+ bot_id: botId,
710
+ ...row.app_id ? { app_id: row.app_id } : {},
711
+ bot_profile: {
712
+ id: botId,
713
+ deleted: false,
714
+ name: row.username ?? botId,
715
+ updated: tsToUnix(row.ts),
716
+ app_id: row.app_id ?? "A_POME",
717
+ icons: row.icon_url ? { image_36: row.icon_url, image_48: row.icon_url, image_72: row.icon_url } : {
718
+ image_36: `${SLACK_TWIN_HOST}/avatars/${botId}_36.png`,
719
+ image_48: `${SLACK_TWIN_HOST}/avatars/${botId}_48.png`,
720
+ image_72: `${SLACK_TWIN_HOST}/avatars/${botId}_72.png`
721
+ },
722
+ team_id: opts.include_team ?? ""
723
+ }
724
+ } : {},
725
+ ...row.username ? { username: row.username } : {}
726
+ };
727
+ if (opts.permalink)
728
+ out.permalink = opts.permalink;
729
+ if (row.icon_emoji)
730
+ out.icons = { ...out.icons ?? {}, emoji: row.icon_emoji };
731
+ if (row.icon_url)
732
+ out.icons = { ...out.icons ?? {}, image_64: row.icon_url };
733
+ return out;
734
+ }
735
+ function groupReactions(rows) {
736
+ const grouped = /* @__PURE__ */ new Map();
737
+ for (const row of rows) {
738
+ const existing = grouped.get(row.name);
739
+ if (existing) {
740
+ existing.count += 1;
741
+ existing.users.push(row.user_id);
742
+ } else {
743
+ grouped.set(row.name, {
744
+ name: row.name,
745
+ count: 1,
746
+ users: [row.user_id]
747
+ });
748
+ }
749
+ }
750
+ return [...grouped.values()];
751
+ }
752
+ function serializeFile(row) {
753
+ return {
754
+ id: row.id,
755
+ created: tsToUnix(row.created_at),
756
+ timestamp: tsToUnix(row.created_at),
757
+ name: row.name,
758
+ title: row.title,
759
+ mimetype: row.mimetype,
760
+ filetype: row.filetype,
761
+ pretty_type: prettyFiletype(row.filetype),
762
+ user: row.user_id,
763
+ user_team: row.team_id,
764
+ editable: row.filetype === "text" || row.filetype === "markdown",
765
+ size: row.size,
766
+ mode: "hosted",
767
+ is_external: false,
768
+ external_type: "",
769
+ is_public: false,
770
+ public_url_shared: false,
771
+ display_as_bot: false,
772
+ username: "",
773
+ url_private: row.url_private || `${SLACK_TWIN_FILE_HOST}/files-pri/${row.team_id}-${row.id}/${row.name}`,
774
+ url_private_download: `${SLACK_TWIN_FILE_HOST}/files-pri/${row.team_id}-${row.id}/download/${row.name}`,
775
+ permalink: `${SLACK_TWIN_HOST}/files/${row.user_id}/${row.id}/${row.name}`,
776
+ permalink_public: `${SLACK_TWIN_FILE_HOST}/${row.team_id}-${row.id}-public/${row.name}`,
777
+ // safeJsonArray returns unknown[]; upstream File.channels is string[]. Cast
778
+ // to the upstream field type (mirrors twin-github `as Upstream["field"]`).
779
+ channels: safeJsonArray(row.channels_json),
780
+ groups: [],
781
+ ims: [],
782
+ comments_count: 0
783
+ };
784
+ }
785
+ function serializeBookmark(row) {
786
+ return {
787
+ id: row.id,
788
+ channel_id: row.channel_id,
789
+ title: row.title,
790
+ link: row.link,
791
+ emoji: row.emoji ?? "",
792
+ icon_url: "",
793
+ type: row.type,
794
+ entity_id: "",
795
+ date_created: tsToUnix(row.created_at),
796
+ date_updated: tsToUnix(row.created_at),
797
+ rank: "",
798
+ last_updated_by_user_id: row.created_by,
799
+ last_updated_by_team_id: "",
800
+ shortcut_id: "",
801
+ app_id: "",
802
+ app_action_id: ""
803
+ };
804
+ }
805
+ function serializePin(pin, message) {
806
+ return {
807
+ type: "message",
808
+ created: tsToUnix(pin.pinned_at),
809
+ created_by: pin.pinned_by,
810
+ channel: pin.channel_id,
811
+ message
812
+ };
813
+ }
814
+ function safeJson(raw) {
815
+ try {
816
+ return JSON.parse(raw);
817
+ } catch {
818
+ return {};
819
+ }
820
+ }
821
+ function safeJsonArray(raw) {
822
+ try {
823
+ const parsed = JSON.parse(raw);
824
+ if (Array.isArray(parsed))
825
+ return parsed;
826
+ return [];
827
+ } catch {
828
+ return [];
829
+ }
830
+ }
831
+ function tsToUnix(iso) {
832
+ const ms = Date.parse(iso);
833
+ if (Number.isNaN(ms))
834
+ return 0;
835
+ return Math.floor(ms / 1e3);
836
+ }
837
+ function prettyFiletype(filetype) {
838
+ const mapping = {
839
+ text: "Plain Text",
840
+ markdown: "Markdown",
841
+ pdf: "PDF",
842
+ gif: "GIF",
843
+ png: "PNG",
844
+ jpg: "JPEG",
845
+ jpeg: "JPEG",
846
+ binary: "Binary"
847
+ };
848
+ return mapping[filetype] ?? filetype.toUpperCase();
849
+ }
850
+
851
+ // ../packages/twin-slack/dist/src/domain/emoji.js
852
+ function emojiList(host) {
853
+ const rows = host.db.prepare(`SELECT name, value FROM emoji WHERE team_id = ? ORDER BY name`).all(host.workspaceId);
854
+ const emoji = {};
855
+ for (const row of rows) {
856
+ emoji[row.name] = row.value;
857
+ }
858
+ return { emoji };
859
+ }
860
+ function emojiImageUrl(name) {
861
+ return `${SLACK_TWIN_HOST}/emoji/${encodeURIComponent(name)}/1.png`;
862
+ }
863
+ function seedEmojiRows(db, teamId, entries) {
864
+ const insert = db.prepare(`INSERT OR REPLACE INTO emoji (team_id, name, value) VALUES (?, ?, ?)`);
865
+ for (const entry of entries) {
866
+ const value = entry.alias !== void 0 && entry.alias.length > 0 ? `alias:${entry.alias}` : entry.url && entry.url.length > 0 ? entry.url : emojiImageUrl(entry.name);
867
+ insert.run(teamId, entry.name, value);
868
+ }
869
+ }
870
+
871
+ // ../packages/twin-slack/dist/src/domain/topic.js
872
+ var NOOP2 = () => {
873
+ };
874
+ var MAX_TOPIC_PURPOSE = 250;
875
+ function conversationsSetTopic(host, args, onDelta = NOOP2) {
876
+ return setChannelText(host, args.channel, "topic", args.topic, onDelta);
877
+ }
878
+ function conversationsSetPurpose(host, args, onDelta = NOOP2) {
879
+ return setChannelText(host, args.channel, "purpose", args.purpose, onDelta);
880
+ }
881
+ function setChannelText(host, channelRef, field, value, onDelta) {
882
+ if (value === void 0 || value === null) {
883
+ slackError("invalid_arguments", 400, {
884
+ response_metadata: { messages: [`[ERROR] missing required field: ${field}`] }
885
+ });
886
+ }
887
+ if (value.length > MAX_TOPIC_PURPOSE)
888
+ slackError("too_long", 400);
889
+ const channel = host.requireChannel(channelRef);
890
+ if (channel.is_im || channel.is_mpim)
891
+ slackError("method_not_supported_for_channel_type", 400);
892
+ if (channel.is_archived)
893
+ slackError("is_archived", 400);
894
+ const member = host.db.prepare(`SELECT 1 FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, host.actor.id);
895
+ if (!member)
896
+ slackError("not_in_channel", 400);
897
+ const before = channel;
898
+ const out = host.db.transaction(() => {
899
+ host.db.prepare(`UPDATE channels SET ${field} = ? WHERE id = ?`).run(value, channel.id);
900
+ const after = host.db.prepare(`SELECT * FROM channels WHERE id = ?`).get(channel.id);
901
+ onDelta({ before, after });
902
+ return { channel: serializeChannel(after) };
903
+ })();
904
+ return out;
905
+ }
906
+ var seedSchema = z.object({
907
+ team: z.object({
908
+ id: z.string().regex(/^T[A-Z0-9_]+$/).optional(),
909
+ name: z.string().default("Pome Twin Workspace"),
910
+ domain: z.string().default("pome-twin")
911
+ }).prefault({}),
912
+ users: z.array(z.object({
913
+ id: z.string().regex(/^[UB][A-Z0-9_]+$/).optional(),
914
+ name: z.string().min(1),
915
+ real_name: z.string().default(""),
916
+ email: z.string().email().optional(),
917
+ is_bot: z.boolean().default(false),
918
+ is_admin: z.boolean().default(false),
919
+ tz: z.string().default("America/Los_Angeles"),
920
+ profile: z.record(z.string(), z.unknown()).default({})
921
+ })).default([]),
922
+ channels: z.array(z.object({
923
+ id: z.string().regex(/^[CGDM][A-Z0-9_]+$/).optional(),
924
+ name: z.string().regex(/^[a-z0-9_-]{1,80}$/),
925
+ is_private: z.boolean().default(false),
926
+ topic: z.string().default(""),
927
+ purpose: z.string().default(""),
928
+ creator: z.string().optional(),
929
+ members: z.array(z.string()).default([]),
930
+ messages: z.array(z.object({
931
+ ts: z.string().optional(),
932
+ user: z.string(),
933
+ text: z.string(),
934
+ thread_ts: z.string().optional(),
935
+ reactions: z.array(z.object({ name: z.string(), user: z.string() })).default([])
936
+ })).default([])
937
+ })).default([]),
938
+ emoji: z.array(z.object({
939
+ name: z.string().regex(/^[a-z0-9_+-]{1,100}$/),
940
+ url: z.string().url().optional(),
941
+ alias: z.string().regex(/^[a-z0-9_+-]{1,100}$/).optional()
942
+ })).default([])
943
+ });
944
+ function parseSeed(input) {
945
+ return seedSchema.parse(input);
946
+ }
947
+ function loadSeedFromEnv(env = process.env) {
948
+ const raw = env.POME_SEED_JSON;
949
+ if (raw === void 0 || raw === "") {
950
+ return defaultSeedState();
951
+ }
952
+ let parsed;
953
+ try {
954
+ parsed = JSON.parse(raw);
955
+ } catch (err) {
956
+ throw new Error(`POME_SEED_JSON is not valid JSON: ${err.message}`);
957
+ }
958
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
959
+ const obj = parsed;
960
+ if (obj.slack && typeof obj.slack === "object" && obj.slack !== null) {
961
+ const slack = obj.slack;
962
+ if ("seed" in slack) {
963
+ return parseSeed(slack.seed);
964
+ }
965
+ }
966
+ }
967
+ return parseSeed(parsed);
968
+ }
969
+ function defaultSeedState() {
970
+ return {
971
+ team: {
972
+ id: "T_POME",
973
+ name: "Pome Twin Workspace",
974
+ domain: "pome-twin"
975
+ },
976
+ users: [
977
+ {
978
+ id: "U_PRIMARY",
979
+ name: "pome-agent",
980
+ real_name: "Pome Agent",
981
+ email: "pome-agent@pome-twin.slack.com",
982
+ is_bot: false,
983
+ is_admin: true
984
+ },
985
+ {
986
+ id: "U_ALICE",
987
+ name: "alice",
988
+ real_name: "Alice",
989
+ email: "alice@pome-twin.slack.com"
990
+ },
991
+ {
992
+ id: "U_BOB",
993
+ name: "bob",
994
+ real_name: "Bob",
995
+ email: "bob@pome-twin.slack.com"
996
+ }
997
+ ],
998
+ channels: [
999
+ {
1000
+ id: "C_GENERAL",
1001
+ name: "general",
1002
+ is_private: false,
1003
+ topic: "Company-wide announcements and chatter.",
1004
+ purpose: "This channel is for company-wide communication.",
1005
+ creator: "U_PRIMARY",
1006
+ members: ["U_PRIMARY", "U_ALICE", "U_BOB"],
1007
+ messages: [
1008
+ { user: "U_ALICE", text: "morning team" },
1009
+ { user: "U_BOB", text: "morning :wave:" }
1010
+ ]
1011
+ },
1012
+ {
1013
+ id: "C_RANDOM",
1014
+ name: "random",
1015
+ is_private: false,
1016
+ topic: "Non-work chatter and water cooler talk.",
1017
+ purpose: "A place for non-work-related flimflam.",
1018
+ creator: "U_PRIMARY",
1019
+ members: [],
1020
+ messages: []
1021
+ }
1022
+ ],
1023
+ emoji: [
1024
+ { name: "shipit", alias: "squirrel" },
1025
+ { name: "squirrel" },
1026
+ { name: "bowtie" }
1027
+ ]
1028
+ };
1029
+ }
1030
+
1031
+ // ../packages/twin-slack/dist/src/domain/bookmarks.js
1032
+ function bookmarksAdd(domain, args, actor, onDelta = NOOP3) {
1033
+ const channel = domain.requireChannel(args.channel_id);
1034
+ if (!args.title)
1035
+ slackError("invalid_arguments", 400);
1036
+ if (!args.link && (!args.type || args.type === "link"))
1037
+ slackError("invalid_arguments", 400);
1038
+ const acting = domain.resolveActorUser(actor);
1039
+ const id = domain.allocId(domain.requireWorkspace().id, "Bk");
1040
+ const out = domain.db.transaction(() => {
1041
+ domain.db.prepare(`INSERT INTO bookmarks (id, channel_id, title, link, emoji, type, created_by, created_at)
1042
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?)`).run(id, channel.id, args.title, args.link ?? "", args.emoji ?? null, args.type ?? "link", acting.id, nowIso());
1043
+ const after = domain.db.prepare(`SELECT * FROM bookmarks WHERE id = ?`).get(id);
1044
+ onDelta({ before: null, after });
1045
+ return { bookmark: serializeBookmark(after) };
1046
+ })();
1047
+ return out;
1048
+ }
1049
+ function bookmarksRemove(domain, args, actor, onDelta = NOOP3) {
1050
+ const channel = domain.requireChannel(args.channel_id);
1051
+ const before = domain.db.prepare(`SELECT * FROM bookmarks WHERE id = ? AND channel_id = ?`).get(args.bookmark_id, channel.id);
1052
+ if (!before)
1053
+ slackError("no_bookmark_found", 404);
1054
+ const out = domain.db.transaction(() => {
1055
+ domain.db.prepare(`DELETE FROM bookmarks WHERE id = ?`).run(before.id);
1056
+ onDelta({ before, after: null });
1057
+ return {};
1058
+ })();
1059
+ return out;
1060
+ }
1061
+ function bookmarksList(domain, args) {
1062
+ const channel = domain.requireChannel(args.channel_id);
1063
+ const rows = domain.db.prepare(`SELECT * FROM bookmarks WHERE channel_id = ? ORDER BY created_at`).all(channel.id);
1064
+ return { bookmarks: rows.map((row) => serializeBookmark(row)) };
1065
+ }
1066
+
1067
+ // ../packages/twin-slack/dist/src/domain/helpers.js
1068
+ function clampLimit(value, max, fallback) {
1069
+ if (!Number.isFinite(value) || value === void 0)
1070
+ return fallback;
1071
+ return Math.min(max, Math.max(1, Math.floor(value)));
1072
+ }
1073
+ function safeParseJson(raw) {
1074
+ if (!raw)
1075
+ return {};
1076
+ try {
1077
+ return JSON.parse(raw);
1078
+ } catch {
1079
+ return {};
1080
+ }
1081
+ }
1082
+ function sanitizeJsonString(raw, fallback) {
1083
+ try {
1084
+ const parsed = JSON.parse(raw);
1085
+ return JSON.stringify(parsed);
1086
+ } catch {
1087
+ return fallback;
1088
+ }
1089
+ }
1090
+ function normalizeReactionName(raw) {
1091
+ return raw.trim().replace(/^:|:$/g, "");
1092
+ }
1093
+ function filetypeMimetype(filetype) {
1094
+ const mapping = {
1095
+ text: "text/plain",
1096
+ markdown: "text/markdown",
1097
+ json: "application/json",
1098
+ pdf: "application/pdf",
1099
+ png: "image/png",
1100
+ jpg: "image/jpeg",
1101
+ jpeg: "image/jpeg",
1102
+ gif: "image/gif"
1103
+ };
1104
+ return mapping[filetype] ?? "application/octet-stream";
1105
+ }
1106
+
1107
+ // ../packages/twin-slack/dist/src/domain/chat.js
1108
+ function chatPostMessage(domain, args, actor, onDelta = NOOP3) {
1109
+ const channel = domain.requireChannel(args.channel);
1110
+ if (channel.is_archived)
1111
+ slackError("is_archived", 400);
1112
+ if (!args.text && !args.blocks && !args.attachments)
1113
+ slackError("no_text", 400);
1114
+ if (args.thread_ts) {
1115
+ const parent = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.thread_ts);
1116
+ if (!parent)
1117
+ slackError("thread_not_found", 404);
1118
+ }
1119
+ const author = domain.resolveActorUser(actor);
1120
+ if (channel.is_private || channel.is_im || channel.is_mpim) {
1121
+ const member = domain.db.prepare(`SELECT 1 FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, author.id);
1122
+ if (!member)
1123
+ slackError("not_in_channel", 400);
1124
+ }
1125
+ const ts = domain.allocMessageTs(channel.id);
1126
+ const blocks = args.blocks ? sanitizeJsonString(args.blocks, "[]") : "[]";
1127
+ const attachments = args.attachments ? sanitizeJsonString(args.attachments, "[]") : "[]";
1128
+ const subtype = author.is_bot ? "bot_message" : null;
1129
+ const botId = author.is_bot ? author.id : null;
1130
+ const appId = author.is_bot ? "A_POME" : null;
1131
+ const username = typeof args.username === "string" && args.username.length > 0 ? args.username : null;
1132
+ const iconUrl = typeof args.icon_url === "string" && args.icon_url.length > 0 ? args.icon_url : null;
1133
+ const iconEmoji = typeof args.icon_emoji === "string" && args.icon_emoji.length > 0 ? args.icon_emoji : null;
1134
+ const out = domain.db.transaction(() => {
1135
+ domain.db.prepare(`INSERT INTO messages (channel_id, ts, user_id, text, subtype, thread_ts, blocks_json, attachments_json,
1136
+ bot_id, app_id, username, icon_url, icon_emoji)
1137
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(channel.id, ts, author.id, args.text ?? "", subtype, args.thread_ts ?? null, blocks, attachments, botId, appId, username, iconUrl, iconEmoji);
1138
+ if (args.thread_ts) {
1139
+ domain.db.prepare(`UPDATE messages SET reply_count = reply_count + 1, latest_reply = ?,
1140
+ reply_users_count = (
1141
+ SELECT COUNT(DISTINCT user_id) FROM messages WHERE channel_id = ? AND thread_ts = ?
1142
+ )
1143
+ WHERE channel_id = ? AND ts = ?`).run(ts, channel.id, args.thread_ts, channel.id, args.thread_ts);
1144
+ }
1145
+ const row = domain.requireMessageRow(channel.id, ts);
1146
+ onDelta({ before: null, after: row });
1147
+ const workspaceId = domain.requireWorkspace().id;
1148
+ return { channel: channel.id, ts, message: serializeMessage(row, { include_team: workspaceId }) };
1149
+ })();
1150
+ return out;
1151
+ }
1152
+ function chatUpdate(domain, args, actor, onDelta = NOOP3) {
1153
+ const channel = domain.requireChannel(args.channel);
1154
+ if (channel.is_archived)
1155
+ slackError("is_archived", 400);
1156
+ const acting = domain.resolveActorUser(actor);
1157
+ const before = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.ts);
1158
+ if (!before)
1159
+ slackError("message_not_found", 404);
1160
+ if (before.user_id !== acting.id)
1161
+ slackError("cant_update_message", 403);
1162
+ const out = domain.db.transaction(() => {
1163
+ const updatedTs = domain.allocMessageTs(channel.id);
1164
+ const newText = args.text ?? before.text;
1165
+ const newBlocks = args.blocks ? sanitizeJsonString(args.blocks, before.blocks_json) : before.blocks_json;
1166
+ const newAttachments = args.attachments ? sanitizeJsonString(args.attachments, before.attachments_json) : before.attachments_json;
1167
+ domain.db.prepare(`UPDATE messages SET text = ?, blocks_json = ?, attachments_json = ?, edited_user_id = ?, edited_ts = ? WHERE channel_id = ? AND ts = ?`).run(newText, newBlocks, newAttachments, acting.id, updatedTs, channel.id, args.ts);
1168
+ const after = domain.requireMessageRow(channel.id, args.ts);
1169
+ onDelta({ before, after });
1170
+ return { channel: channel.id, ts: args.ts, text: after.text, message: serializeMessage(after) };
1171
+ })();
1172
+ return out;
1173
+ }
1174
+ function chatDelete(domain, args, actor, onDelta = NOOP3) {
1175
+ const channel = domain.requireChannel(args.channel);
1176
+ const acting = domain.resolveActorUser(actor);
1177
+ const before = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.ts);
1178
+ if (!before)
1179
+ slackError("message_not_found", 404);
1180
+ if (before.user_id !== acting.id)
1181
+ slackError("cant_delete_message", 403);
1182
+ const out = domain.db.transaction(() => {
1183
+ domain.db.prepare(`DELETE FROM messages WHERE channel_id = ? AND ts = ?`).run(channel.id, args.ts);
1184
+ if (before.thread_ts) {
1185
+ domain.db.prepare(`UPDATE messages SET reply_count = MAX(reply_count - 1, 0),
1186
+ reply_users_count = (
1187
+ SELECT COUNT(DISTINCT user_id) FROM messages WHERE channel_id = ? AND thread_ts = ?
1188
+ ),
1189
+ latest_reply = (
1190
+ SELECT ts FROM messages WHERE channel_id = ? AND thread_ts = ? ORDER BY ts DESC LIMIT 1
1191
+ )
1192
+ WHERE channel_id = ? AND ts = ?`).run(channel.id, before.thread_ts, channel.id, before.thread_ts, channel.id, before.thread_ts);
1193
+ }
1194
+ onDelta({ before, after: null });
1195
+ return { channel: channel.id, ts: args.ts };
1196
+ })();
1197
+ return out;
1198
+ }
1199
+ function chatScheduleMessage(domain, args, actor, onDelta = NOOP3) {
1200
+ const channel = domain.requireChannel(args.channel);
1201
+ if (channel.is_archived)
1202
+ slackError("is_archived", 400);
1203
+ if (!args.text)
1204
+ slackError("no_text", 400);
1205
+ if (!args.post_at || args.post_at <= nowUnix())
1206
+ slackError("time_in_past", 400);
1207
+ const acting = domain.resolveActorUser(actor);
1208
+ const id = domain.allocId(domain.requireWorkspace().id, "Q");
1209
+ const now = nowUnix();
1210
+ const out = domain.db.transaction(() => {
1211
+ domain.db.prepare(`INSERT INTO scheduled_messages (id, channel_id, user_id, text, thread_ts, post_at, date_created, blocks_json)
1212
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?)`).run(id, channel.id, acting.id, args.text, args.thread_ts ?? null, args.post_at, now, args.blocks ? sanitizeJsonString(args.blocks, "[]") : "[]");
1213
+ const row = domain.requireScheduledMessage(id);
1214
+ onDelta({ before: null, after: row });
1215
+ return {
1216
+ channel: channel.id,
1217
+ scheduled_message_id: id,
1218
+ post_at: args.post_at,
1219
+ message: { text: args.text, type: "delayed_message" }
1220
+ };
1221
+ })();
1222
+ return out;
1223
+ }
1224
+ function chatDeleteScheduledMessage(domain, args, actor, onDelta = NOOP3) {
1225
+ const channel = domain.requireChannel(args.channel);
1226
+ const row = domain.db.prepare(`SELECT * FROM scheduled_messages WHERE id = ? AND channel_id = ?`).get(args.scheduled_message_id, channel.id);
1227
+ if (!row)
1228
+ slackError("scheduled_message_not_found", 404);
1229
+ const out = domain.db.transaction(() => {
1230
+ domain.db.prepare(`DELETE FROM scheduled_messages WHERE id = ?`).run(row.id);
1231
+ onDelta({ before: row, after: null });
1232
+ return {};
1233
+ })();
1234
+ return out;
1235
+ }
1236
+
1237
+ // ../packages/twin-slack/dist/src/domain/conversations.js
1238
+ function conversationsList(domain, args) {
1239
+ const requested = (args.types ?? "public_channel").split(",").map((t) => t.trim()).filter(Boolean);
1240
+ const typeFilters = [];
1241
+ if (requested.includes("public_channel"))
1242
+ typeFilters.push(`(is_private = 0 AND is_im = 0 AND is_mpim = 0)`);
1243
+ if (requested.includes("private_channel"))
1244
+ typeFilters.push(`(is_private = 1 AND is_im = 0 AND is_mpim = 0)`);
1245
+ if (requested.includes("mpim"))
1246
+ typeFilters.push(`is_mpim = 1`);
1247
+ if (requested.includes("im"))
1248
+ typeFilters.push(`is_im = 1`);
1249
+ const where = [];
1250
+ if (typeFilters.length > 0)
1251
+ where.push(`(${typeFilters.join(" OR ")})`);
1252
+ if (args.exclude_archived)
1253
+ where.push(`is_archived = 0`);
1254
+ const offset = cursorDecode(args.cursor ?? null)?.offset ?? 0;
1255
+ const limit = clampLimit(args.limit, 1e3, 100);
1256
+ const stmt = `SELECT * FROM channels${where.length ? ` WHERE ${where.join(" AND ")}` : ""} ORDER BY created_at, id LIMIT ? OFFSET ?`;
1257
+ const rows = domain.db.prepare(stmt).all(limit + 1, offset);
1258
+ const hasMore = rows.length > limit;
1259
+ const slice = rows.slice(0, limit);
1260
+ const channels = slice.map((row) => {
1261
+ const numMembers = domain.db.prepare(`SELECT COUNT(*) AS c FROM channel_members WHERE channel_id = ?`).get(row.id).c;
1262
+ return serializeChannel(row, { num_members: numMembers });
1263
+ });
1264
+ return {
1265
+ channels,
1266
+ response_metadata: {
1267
+ next_cursor: hasMore ? cursorEncode({ offset: offset + slice.length }) : ""
1268
+ }
1269
+ };
1270
+ }
1271
+ function conversationsInfo(domain, args, actor = {}) {
1272
+ const channel = domain.requireChannel(args.channel);
1273
+ domain.assertChannelMemberForActor(channel, actor);
1274
+ const numMembers = domain.db.prepare(`SELECT COUNT(*) AS c FROM channel_members WHERE channel_id = ?`).get(channel.id).c;
1275
+ return { channel: serializeChannel(channel, { num_members: numMembers }) };
1276
+ }
1277
+ function conversationsCreate(domain, args, actor, onDelta = NOOP3) {
1278
+ if (!args.name)
1279
+ slackError("invalid_name_required", 400);
1280
+ if (args.name.length > 80)
1281
+ slackError("invalid_name_maxlength", 400);
1282
+ if (/[A-Z]/.test(args.name) || /[^a-z0-9_-]/.test(args.name)) {
1283
+ slackError("invalid_name_specials", 400);
1284
+ }
1285
+ if (/^[-_]/.test(args.name) || /^\d+$/.test(args.name)) {
1286
+ slackError("invalid_name_punctuation", 400);
1287
+ }
1288
+ const workspace = domain.requireWorkspace();
1289
+ const creator = domain.resolveActorUser(actor).id;
1290
+ const channelId = domain.allocId(workspace.id, args.is_private ? "G" : "C");
1291
+ const now = nowIso();
1292
+ const out = domain.db.transaction(() => {
1293
+ const existing = domain.db.prepare(`SELECT id FROM channels WHERE team_id = ? AND name = ?`).get(workspace.id, args.name);
1294
+ if (existing)
1295
+ slackError("name_taken", 409);
1296
+ domain.db.prepare(`INSERT INTO channels (id, team_id, name, is_channel, is_group, is_im, is_mpim, is_private, is_archived, topic, purpose, creator, created_at, ts_counter)
1297
+ VALUES (?, ?, ?, ?, ?, 0, 0, ?, 0, '', '', ?, ?, 0)`).run(channelId, workspace.id, args.name, args.is_private ? 0 : 1, args.is_private ? 1 : 0, args.is_private ? 1 : 0, creator, now);
1298
+ domain.db.prepare(`INSERT OR IGNORE INTO channel_members (channel_id, user_id, joined_at) VALUES (?, ?, ?)`).run(channelId, creator, now);
1299
+ const row = domain.requireChannelRow(channelId);
1300
+ onDelta({ before: null, after: row });
1301
+ return serializeChannel(row, { num_members: 1, is_member: true });
1302
+ })();
1303
+ return { channel: out };
1304
+ }
1305
+ function conversationsArchive(domain, args, actor, onDelta = NOOP3) {
1306
+ const channel = domain.requireChannel(args.channel);
1307
+ if (channel.is_archived)
1308
+ slackError("already_archived", 400);
1309
+ if (channel.name === "general")
1310
+ slackError("cant_archive_general", 400);
1311
+ const acting = domain.resolveActorUser(actor);
1312
+ if (!acting.is_admin)
1313
+ domain.assertChannelMember(channel, acting.id);
1314
+ const out = domain.db.transaction(() => {
1315
+ const before = domain.requireChannelRow(channel.id);
1316
+ domain.db.prepare(`UPDATE channels SET is_archived = 1 WHERE id = ?`).run(channel.id);
1317
+ const after = domain.requireChannelRow(channel.id);
1318
+ onDelta({ before, after });
1319
+ return { ok: true };
1320
+ })();
1321
+ return out;
1322
+ }
1323
+ function conversationsInvite(domain, args, actor, onDelta = NOOP3) {
1324
+ const channel = domain.requireChannel(args.channel);
1325
+ if (channel.is_archived)
1326
+ slackError("is_archived", 400);
1327
+ const acting = domain.resolveActorUser(actor);
1328
+ if (!acting.is_admin)
1329
+ domain.assertChannelMember(channel, acting.id);
1330
+ const userIds = (args.users ?? "").split(",").map((s) => s.trim()).filter(Boolean);
1331
+ if (userIds.length === 0)
1332
+ slackError("no_user", 400);
1333
+ const now = nowIso();
1334
+ const out = domain.db.transaction(() => {
1335
+ const beforeMembers = domain.channelMemberIds(channel.id);
1336
+ for (const userRef of userIds) {
1337
+ const user = domain.resolveUser(userRef);
1338
+ if (!user)
1339
+ slackError("user_not_found", 404);
1340
+ const exists = domain.db.prepare(`SELECT 1 FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, user.id);
1341
+ if (exists)
1342
+ slackError("already_in_channel", 400);
1343
+ domain.db.prepare(`INSERT INTO channel_members (channel_id, user_id, joined_at) VALUES (?, ?, ?)`).run(channel.id, user.id, now);
1344
+ }
1345
+ const afterMembers = domain.channelMemberIds(channel.id);
1346
+ onDelta({
1347
+ before: { channel_id: channel.id, members: beforeMembers },
1348
+ after: { channel_id: channel.id, members: afterMembers }
1349
+ });
1350
+ return { channel: serializeChannel(channel, { num_members: afterMembers.length }) };
1351
+ })();
1352
+ return out;
1353
+ }
1354
+ function conversationsJoin(domain, args, actor, onDelta = NOOP3) {
1355
+ const channel = domain.requireChannel(args.channel);
1356
+ if (channel.is_archived)
1357
+ slackError("is_archived", 400);
1358
+ if (channel.is_private)
1359
+ slackError("channel_not_found", 404);
1360
+ const userId = domain.resolveActorUser(actor).id;
1361
+ const now = nowIso();
1362
+ const out = domain.db.transaction(() => {
1363
+ const existing = domain.db.prepare(`SELECT * FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, userId);
1364
+ if (existing) {
1365
+ return { channel: serializeChannel(channel, { is_member: true }), already_in_channel: true, warning: "already_in_channel" };
1366
+ }
1367
+ domain.db.prepare(`INSERT INTO channel_members (channel_id, user_id, joined_at) VALUES (?, ?, ?)`).run(channel.id, userId, now);
1368
+ const after = domain.db.prepare(`SELECT * FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, userId);
1369
+ onDelta({ before: null, after });
1370
+ return { channel: serializeChannel(channel, { is_member: true }) };
1371
+ })();
1372
+ return out;
1373
+ }
1374
+ function conversationsLeave(domain, args, actor, onDelta = NOOP3) {
1375
+ const channel = domain.requireChannel(args.channel);
1376
+ if (channel.name === "general")
1377
+ slackError("cant_leave_general", 400);
1378
+ const userId = domain.resolveActorUser(actor).id;
1379
+ const out = domain.db.transaction(() => {
1380
+ const existing = domain.db.prepare(`SELECT * FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, userId);
1381
+ if (!existing)
1382
+ slackError("not_in_channel", 400);
1383
+ domain.db.prepare(`DELETE FROM channel_members WHERE channel_id = ? AND user_id = ?`).run(channel.id, userId);
1384
+ onDelta({ before: existing, after: null });
1385
+ return { not_in_channel: false };
1386
+ })();
1387
+ return out;
1388
+ }
1389
+ function conversationsKick(domain, args, actor, onDelta = NOOP3) {
1390
+ const channel = domain.requireChannel(args.channel);
1391
+ if (channel.name === "general")
1392
+ slackError("cant_kick_from_general", 400);
1393
+ const acting = domain.resolveActorUser(actor);
1394
+ const target = domain.resolveUser(args.user);
1395
+ if (!target)
1396
+ slackError("user_not_found", 404);
1397
+ if (target.id === acting.id)
1398
+ slackError("cant_kick_self", 400);
1399
+ const out = domain.db.transaction(() => {
1400
+ const existing = domain.db.prepare(`SELECT * FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, target.id);
1401
+ if (!existing)
1402
+ slackError("not_in_channel", 400);
1403
+ domain.db.prepare(`DELETE FROM channel_members WHERE channel_id = ? AND user_id = ?`).run(channel.id, target.id);
1404
+ onDelta({ before: existing, after: null });
1405
+ return {};
1406
+ })();
1407
+ return out;
1408
+ }
1409
+ function conversationsMembers(domain, args, actor = {}) {
1410
+ const channel = domain.requireChannel(args.channel);
1411
+ domain.assertChannelMemberForActor(channel, actor);
1412
+ const offset = cursorDecode(args.cursor ?? null)?.offset ?? 0;
1413
+ const limit = clampLimit(args.limit, 1e3, 100);
1414
+ const rows = domain.db.prepare(`SELECT user_id FROM channel_members WHERE channel_id = ? ORDER BY joined_at, user_id LIMIT ? OFFSET ?`).all(channel.id, limit + 1, offset);
1415
+ const hasMore = rows.length > limit;
1416
+ const slice = rows.slice(0, limit);
1417
+ return {
1418
+ members: slice.map((row) => row.user_id),
1419
+ response_metadata: {
1420
+ next_cursor: hasMore ? cursorEncode({ offset: offset + slice.length }) : ""
1421
+ }
1422
+ };
1423
+ }
1424
+ function conversationsHistory(domain, args, actor = {}) {
1425
+ const channel = domain.requireChannel(args.channel);
1426
+ domain.assertChannelMemberForActor(channel, actor);
1427
+ const offset = cursorDecode(args.cursor ?? null)?.offset ?? 0;
1428
+ const limit = clampLimit(args.limit, 1e3, 100);
1429
+ const params = [channel.id];
1430
+ const where = [`channel_id = ?`, `(thread_ts IS NULL OR ts = thread_ts)`];
1431
+ if (args.oldest) {
1432
+ where.push(args.inclusive ? `ts >= ?` : `ts > ?`);
1433
+ params.push(args.oldest);
1434
+ }
1435
+ if (args.latest) {
1436
+ where.push(args.inclusive ? `ts <= ?` : `ts < ?`);
1437
+ params.push(args.latest);
1438
+ }
1439
+ const sql = `SELECT * FROM messages WHERE ${where.join(" AND ")} ORDER BY ts DESC LIMIT ? OFFSET ?`;
1440
+ params.push(limit + 1, offset);
1441
+ const rows = domain.db.prepare(sql).all(...params);
1442
+ const hasMore = rows.length > limit;
1443
+ const slice = rows.slice(0, limit);
1444
+ const workspaceId = domain.requireWorkspace().id;
1445
+ return {
1446
+ messages: slice.map((row) => serializeMessage(row, { reactions: domain.reactionsFor(row.channel_id, row.ts), include_team: workspaceId })),
1447
+ has_more: hasMore,
1448
+ pin_count: domain.db.prepare(`SELECT COUNT(*) AS c FROM pins WHERE channel_id = ?`).get(channel.id).c,
1449
+ channel_actions_ts: null,
1450
+ channel_actions_count: 0,
1451
+ // Real Slack OMITS `response_metadata` on conversations.history when there is
1452
+ // no next page (it only carries the pagination cursor when hasMore); it does
1453
+ // NOT return an empty-cursor envelope here the way conversations.list does
1454
+ // (FDRS-473 Kind B — conditional pagination matched per endpoint).
1455
+ ...hasMore ? { response_metadata: { next_cursor: cursorEncode({ offset: offset + slice.length }) } } : {}
1456
+ };
1457
+ }
1458
+ function conversationsReplies(domain, args, actor = {}) {
1459
+ if (!args.ts)
1460
+ slackError("invalid_arguments", 400);
1461
+ const channel = domain.requireChannel(args.channel);
1462
+ domain.assertChannelMemberForActor(channel, actor);
1463
+ const parent = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.ts);
1464
+ if (!parent)
1465
+ slackError("thread_not_found", 404);
1466
+ const offset = cursorDecode(args.cursor ?? null)?.offset ?? 0;
1467
+ const limit = clampLimit(args.limit, 1e3, 100);
1468
+ const rows = domain.db.prepare(`SELECT * FROM messages
1469
+ WHERE channel_id = ? AND (ts = ? OR thread_ts = ?)
1470
+ ORDER BY ts ASC LIMIT ? OFFSET ?`).all(channel.id, args.ts, args.ts, limit + 1, offset);
1471
+ const hasMore = rows.length > limit;
1472
+ const slice = rows.slice(0, limit);
1473
+ const workspaceId = domain.requireWorkspace().id;
1474
+ const parentAuthor = parent.user_id;
1475
+ const parentTs = parent.ts;
1476
+ return {
1477
+ messages: slice.map((row) => {
1478
+ const isParent = row.ts === parentTs && !row.thread_ts;
1479
+ const serialized = serializeMessage(row, {
1480
+ reactions: domain.reactionsFor(row.channel_id, row.ts),
1481
+ include_team: workspaceId,
1482
+ parent_user_id: row.thread_ts ? parentAuthor : void 0
1483
+ });
1484
+ if (isParent) {
1485
+ serialized.thread_ts = parentTs;
1486
+ serialized.subscribed = false;
1487
+ serialized.is_locked = false;
1488
+ }
1489
+ return serialized;
1490
+ }),
1491
+ has_more: hasMore,
1492
+ // Real Slack OMITS `response_metadata` on conversations.replies when there is
1493
+ // no next page (cursor present only when hasMore) — FDRS-473 Kind B.
1494
+ ...hasMore ? { response_metadata: { next_cursor: cursorEncode({ offset: offset + slice.length }) } } : {}
1495
+ };
1496
+ }
1497
+ function conversationsOpen(domain, args, actor, onDelta = NOOP3) {
1498
+ const workspace = domain.requireWorkspace();
1499
+ const acting = domain.resolveActorUser(actor);
1500
+ if (args.channel) {
1501
+ const existing = domain.requireChannel(args.channel);
1502
+ onDelta({ before: existing, after: existing });
1503
+ return { no_op: true, already_open: true, channel: serializeChannel(existing, { is_member: true }) };
1504
+ }
1505
+ if (!args.users)
1506
+ slackError("users_list_not_supplied", 400);
1507
+ const targetIds = args.users.split(",").map((s) => s.trim()).filter(Boolean).map((u) => {
1508
+ const found = domain.resolveUser(u);
1509
+ if (!found)
1510
+ slackError("user_not_found", 404);
1511
+ return found.id;
1512
+ });
1513
+ const allIds = [.../* @__PURE__ */ new Set([acting.id, ...targetIds])].sort();
1514
+ const isMpim = allIds.length > 2;
1515
+ const lookupName = isMpim ? `mpdm-${allIds.join("--")}` : "";
1516
+ const dmSignature = allIds.join("|");
1517
+ const out = domain.db.transaction(() => {
1518
+ const existingChannel = domain.findDirectChannelBySignature(workspace.id, dmSignature);
1519
+ if (existingChannel) {
1520
+ onDelta({ before: existingChannel, after: existingChannel });
1521
+ return { no_op: true, already_open: true, channel: serializeChannel(existingChannel, { is_member: true }) };
1522
+ }
1523
+ const channelId = domain.allocId(workspace.id, isMpim ? "M" : "D");
1524
+ const now = nowIso();
1525
+ domain.db.prepare(`INSERT INTO channels (id, team_id, name, is_channel, is_group, is_im, is_mpim, is_private, is_archived, topic, purpose, creator, created_at, ts_counter, dm_signature)
1526
+ VALUES (?, ?, ?, 0, 0, ?, ?, 1, 0, '', '', ?, ?, 0, ?)`).run(channelId, workspace.id, lookupName, isMpim ? 0 : 1, isMpim ? 1 : 0, acting.id, now, dmSignature);
1527
+ for (const id of allIds) {
1528
+ domain.db.prepare(`INSERT OR IGNORE INTO channel_members (channel_id, user_id, joined_at) VALUES (?, ?, ?)`).run(channelId, id, now);
1529
+ }
1530
+ const created = domain.requireChannelRow(channelId);
1531
+ onDelta({ before: null, after: created });
1532
+ return { channel: serializeChannel(created, { is_member: true, num_members: allIds.length }) };
1533
+ })();
1534
+ return out;
1535
+ }
1536
+
1537
+ // ../packages/twin-slack/dist/src/domain/files.js
1538
+ function filesUpload(domain, args, actor, onDelta = NOOP3) {
1539
+ const workspace = domain.requireWorkspace();
1540
+ const acting = domain.resolveActorUser(actor);
1541
+ const channelsRaw = args.channels ?? args.channel ?? "";
1542
+ const channelIds = channelsRaw.split(",").map((s) => s.trim()).filter(Boolean).map((ref) => domain.requireChannel(ref).id);
1543
+ const id = domain.allocId(workspace.id, "F");
1544
+ const name = args.filename ?? `untitled-${id}.txt`;
1545
+ const title = args.title ?? name;
1546
+ const filetype = args.filetype ?? "text";
1547
+ const content = args.content ?? null;
1548
+ const size = content ? Buffer.byteLength(content, "utf8") : 0;
1549
+ const out = domain.db.transaction(() => {
1550
+ domain.db.prepare(`INSERT INTO files (id, team_id, user_id, name, title, mimetype, filetype, size, url_private, channels_json, deleted, content, created_at)
1551
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, '', ?, 0, ?, ?)`).run(id, workspace.id, acting.id, name, title, filetypeMimetype(filetype), filetype, size, JSON.stringify(channelIds), content, nowIso());
1552
+ const after = domain.db.prepare(`SELECT * FROM files WHERE id = ?`).get(id);
1553
+ if (args.initial_comment && channelIds.length > 0) {
1554
+ const ts = domain.allocMessageTs(channelIds[0]);
1555
+ domain.db.prepare(`INSERT INTO messages (channel_id, ts, user_id, text, subtype, thread_ts, blocks_json, attachments_json)
1556
+ VALUES (?, ?, ?, ?, ?, ?, '[]', ?)`).run(channelIds[0], ts, acting.id, args.initial_comment, "file_share", args.thread_ts ?? null, JSON.stringify([{ id: 1, file_id: id, title }]));
1557
+ }
1558
+ onDelta({ before: null, after });
1559
+ return { file: serializeFile(after) };
1560
+ })();
1561
+ return out;
1562
+ }
1563
+ function filesInfo(domain, args) {
1564
+ const file = domain.db.prepare(`SELECT * FROM files WHERE id = ?`).get(args.file);
1565
+ if (!file)
1566
+ slackError("file_not_found", 404);
1567
+ return {
1568
+ file: serializeFile(file),
1569
+ comments: [],
1570
+ response_metadata: { next_cursor: "" }
1571
+ };
1572
+ }
1573
+ function filesList(domain, args) {
1574
+ const count = clampLimit(args.count, 1e3, 100);
1575
+ const page = Math.max(1, Math.floor(args.page ?? 1));
1576
+ const offset = (page - 1) * count;
1577
+ const params = [];
1578
+ const where = [`deleted = 0`];
1579
+ if (args.user) {
1580
+ const user = domain.resolveUser(args.user);
1581
+ if (!user)
1582
+ slackError("user_not_found", 404);
1583
+ where.push(`user_id = ?`);
1584
+ params.push(user.id);
1585
+ }
1586
+ let sql = `SELECT * FROM files WHERE ${where.join(" AND ")} ORDER BY created_at DESC LIMIT ? OFFSET ?`;
1587
+ params.push(count, offset);
1588
+ let rows = domain.db.prepare(sql).all(...params);
1589
+ if (args.channel) {
1590
+ const channelId = domain.requireChannel(args.channel).id;
1591
+ rows = rows.filter((row) => JSON.parse(row.channels_json).includes(channelId));
1592
+ }
1593
+ const total = domain.db.prepare(`SELECT COUNT(*) AS c FROM files WHERE deleted = 0`).get().c;
1594
+ return {
1595
+ files: rows.map((row) => serializeFile(row)),
1596
+ paging: {
1597
+ count,
1598
+ total,
1599
+ page,
1600
+ pages: total === 0 ? 0 : Math.ceil(total / count)
1601
+ }
1602
+ // files.list paginates via `paging` (page/pages), not a cursor. Real Slack
1603
+ // does NOT return a `response_metadata.next_cursor` envelope on files.list,
1604
+ // so the twin omits it rather than emitting an empty-cursor stub that diffs
1605
+ // as a twin-only field (FDRS-473 Kind B).
1606
+ };
1607
+ }
1608
+ function filesDelete(domain, args, actor, onDelta = NOOP3) {
1609
+ const before = domain.db.prepare(`SELECT * FROM files WHERE id = ?`).get(args.file);
1610
+ if (!before)
1611
+ slackError("file_not_found", 404);
1612
+ const out = domain.db.transaction(() => {
1613
+ domain.db.prepare(`UPDATE files SET deleted = 1 WHERE id = ?`).run(args.file);
1614
+ const after = domain.db.prepare(`SELECT * FROM files WHERE id = ?`).get(args.file);
1615
+ onDelta({ before, after });
1616
+ return {};
1617
+ })();
1618
+ return out;
1619
+ }
1620
+
1621
+ // ../packages/twin-slack/dist/src/domain/pins.js
1622
+ function pinsAdd(domain, args, actor, onDelta = NOOP3) {
1623
+ const channel = domain.requireChannel(args.channel);
1624
+ const message = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.timestamp);
1625
+ if (!message)
1626
+ slackError("message_not_found", 404);
1627
+ const acting = domain.resolveActorUser(actor);
1628
+ const out = domain.db.transaction(() => {
1629
+ const existing = domain.db.prepare(`SELECT * FROM pins WHERE channel_id = ? AND message_ts = ?`).get(channel.id, args.timestamp);
1630
+ if (existing)
1631
+ slackError("already_pinned", 400);
1632
+ domain.db.prepare(`INSERT INTO pins (channel_id, message_ts, pinned_by, pinned_at) VALUES (?, ?, ?, ?)`).run(channel.id, args.timestamp, acting.id, nowIso());
1633
+ const after = domain.db.prepare(`SELECT * FROM pins WHERE channel_id = ? AND message_ts = ?`).get(channel.id, args.timestamp);
1634
+ onDelta({ before: null, after });
1635
+ return {};
1636
+ })();
1637
+ return out;
1638
+ }
1639
+ function pinsRemove(domain, args, actor, onDelta = NOOP3) {
1640
+ const channel = domain.requireChannel(args.channel);
1641
+ const before = domain.db.prepare(`SELECT * FROM pins WHERE channel_id = ? AND message_ts = ?`).get(channel.id, args.timestamp);
1642
+ if (!before)
1643
+ slackError("no_pin", 404);
1644
+ const out = domain.db.transaction(() => {
1645
+ domain.db.prepare(`DELETE FROM pins WHERE channel_id = ? AND message_ts = ?`).run(channel.id, args.timestamp);
1646
+ onDelta({ before, after: null });
1647
+ return {};
1648
+ })();
1649
+ return out;
1650
+ }
1651
+ function pinsList(domain, args, actor = {}) {
1652
+ const channel = domain.requireChannel(args.channel);
1653
+ domain.assertChannelMemberForActor(channel, actor);
1654
+ const pins = domain.db.prepare(`SELECT * FROM pins WHERE channel_id = ? ORDER BY pinned_at`).all(channel.id);
1655
+ const items = pins.map((pin) => {
1656
+ const message = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(pin.channel_id, pin.message_ts);
1657
+ const serializedMessage = message ? serializeMessage(message, { reactions: domain.reactionsFor(pin.channel_id, pin.message_ts) }) : { ts: pin.message_ts };
1658
+ return serializePin(pin, serializedMessage);
1659
+ });
1660
+ return { items };
1661
+ }
1662
+
1663
+ // ../packages/twin-slack/dist/src/domain/reactions.js
1664
+ function reactionsAdd(domain, args, actor, onDelta = NOOP3) {
1665
+ if (!args.name)
1666
+ slackError("no_reaction", 400);
1667
+ const channel = domain.requireChannel(args.channel);
1668
+ const message = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.timestamp);
1669
+ if (!message)
1670
+ slackError("message_not_found", 404);
1671
+ const acting = domain.resolveActorUser(actor);
1672
+ const reaction = normalizeReactionName(args.name);
1673
+ const out = domain.db.transaction(() => {
1674
+ const existing = domain.db.prepare(`SELECT * FROM reactions WHERE channel_id = ? AND message_ts = ? AND name = ? AND user_id = ?`).get(channel.id, args.timestamp, reaction, acting.id);
1675
+ if (existing)
1676
+ slackError("already_reacted", 400);
1677
+ const now = nowIso();
1678
+ domain.db.prepare(`INSERT INTO reactions (channel_id, message_ts, name, user_id, added_at) VALUES (?, ?, ?, ?, ?)`).run(channel.id, args.timestamp, reaction, acting.id, now);
1679
+ const after = domain.db.prepare(`SELECT * FROM reactions WHERE channel_id = ? AND message_ts = ? AND name = ? AND user_id = ?`).get(channel.id, args.timestamp, reaction, acting.id);
1680
+ onDelta({ before: null, after });
1681
+ return {};
1682
+ })();
1683
+ return out;
1684
+ }
1685
+ function reactionsRemove(domain, args, actor, onDelta = NOOP3) {
1686
+ if (!args.name)
1687
+ slackError("no_reaction", 400);
1688
+ const channel = domain.requireChannel(args.channel);
1689
+ const acting = domain.resolveActorUser(actor);
1690
+ const reaction = normalizeReactionName(args.name);
1691
+ const before = domain.db.prepare(`SELECT * FROM reactions WHERE channel_id = ? AND message_ts = ? AND name = ? AND user_id = ?`).get(channel.id, args.timestamp, reaction, acting.id);
1692
+ if (!before)
1693
+ slackError("no_reaction", 404);
1694
+ const out = domain.db.transaction(() => {
1695
+ domain.db.prepare(`DELETE FROM reactions WHERE channel_id = ? AND message_ts = ? AND name = ? AND user_id = ?`).run(channel.id, args.timestamp, reaction, acting.id);
1696
+ onDelta({ before, after: null });
1697
+ return {};
1698
+ })();
1699
+ return out;
1700
+ }
1701
+ function reactionsGet(domain, args, actor = {}) {
1702
+ const channel = domain.requireChannel(args.channel);
1703
+ domain.assertChannelMemberForActor(channel, actor);
1704
+ const message = domain.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channel.id, args.timestamp);
1705
+ if (!message)
1706
+ slackError("message_not_found", 404);
1707
+ const reactions = domain.reactionsFor(channel.id, args.timestamp);
1708
+ return {
1709
+ type: "message",
1710
+ channel: channel.id,
1711
+ message: { ...serializeMessage(message, { reactions }) }
1712
+ };
1713
+ }
1714
+
1715
+ // ../packages/twin-slack/dist/src/domain/search.js
1716
+ function searchMessages(domain, args, actor = {}) {
1717
+ if (!args.query || args.query.trim() === "")
1718
+ slackError("no_query", 400);
1719
+ const acting = domain.resolveActorUser(actor);
1720
+ const count = clampLimit(args.count, 100, 20);
1721
+ const page = Math.max(1, Math.floor(args.page ?? 1));
1722
+ const offset = (page - 1) * count;
1723
+ const sortDir = (args.sort_dir ?? "desc").toLowerCase() === "asc" ? "ASC" : "DESC";
1724
+ const like = `%${args.query.replace(/[%_]/g, (m) => `\\${m}`)}%`;
1725
+ const visibilityClause = `(
1726
+ channel_id IN (SELECT id FROM channels WHERE is_private = 0 AND is_im = 0 AND is_mpim = 0)
1727
+ OR channel_id IN (SELECT channel_id FROM channel_members WHERE user_id = ?)
1728
+ )`;
1729
+ const total = domain.db.prepare(`SELECT COUNT(*) AS c FROM messages WHERE text LIKE ? ESCAPE '\\' AND ${visibilityClause}`).get(like, acting.id).c;
1730
+ const rows = domain.db.prepare(`SELECT * FROM messages
1731
+ WHERE text LIKE ? ESCAPE '\\' AND ${visibilityClause}
1732
+ ORDER BY ts ${sortDir}
1733
+ LIMIT ? OFFSET ?`).all(like, acting.id, count, offset);
1734
+ const matches = rows.map((row) => {
1735
+ const channel = domain.db.prepare(`SELECT * FROM channels WHERE id = ?`).get(row.channel_id);
1736
+ return {
1737
+ iid: `${row.channel_id}-${row.ts}`,
1738
+ type: "message",
1739
+ user: row.user_id,
1740
+ username: domain.userNameOf(row.user_id),
1741
+ ts: row.ts,
1742
+ text: row.text,
1743
+ permalink: `${SLACK_TWIN_HOST}/archives/${row.channel_id}/p${row.ts.replace(".", "")}`,
1744
+ team: domain.requireWorkspace().id,
1745
+ channel: channel ? { id: channel.id, name: channel.name, is_private: Boolean(channel.is_private) } : { id: row.channel_id, name: "", is_private: false }
1746
+ };
1747
+ });
1748
+ return {
1749
+ query: args.query,
1750
+ messages: {
1751
+ total,
1752
+ pagination: {
1753
+ page,
1754
+ page_count: total === 0 ? 0 : Math.ceil(total / count),
1755
+ per_page: count,
1756
+ total_count: total,
1757
+ first: offset + 1,
1758
+ last: offset + matches.length
1759
+ },
1760
+ paging: {
1761
+ count,
1762
+ total,
1763
+ page,
1764
+ pages: total === 0 ? 0 : Math.ceil(total / count)
1765
+ },
1766
+ matches
1767
+ }
1768
+ };
1769
+ }
1770
+
1771
+ // ../packages/twin-slack/dist/src/domain/team.js
1772
+ function authTest(domain, actor) {
1773
+ const workspace = domain.requireWorkspace();
1774
+ const userRow = domain.resolveActorUser(actor);
1775
+ return {
1776
+ url: `${SLACK_TWIN_HOST}/`,
1777
+ team: workspace.name,
1778
+ user: userRow.name,
1779
+ team_id: workspace.id,
1780
+ user_id: userRow.id,
1781
+ bot_id: userRow.is_bot ? userRow.id : null,
1782
+ is_enterprise_install: false
1783
+ };
1784
+ }
1785
+ function teamInfo(domain, args) {
1786
+ return { team: serializeWorkspace(domain.requireWorkspace()) };
1787
+ }
1788
+
1789
+ // ../packages/twin-slack/dist/src/domain/users.js
1790
+ function usersList(domain, args) {
1791
+ const workspace = domain.requireWorkspace();
1792
+ const offset = cursorDecode(args.cursor ?? null)?.offset ?? 0;
1793
+ const limit = clampLimit(args.limit, 1e3, 100);
1794
+ const rows = domain.db.prepare(`SELECT * FROM users WHERE team_id = ? ORDER BY id LIMIT ? OFFSET ?`).all(workspace.id, limit + 1, offset);
1795
+ const hasMore = rows.length > limit;
1796
+ const slice = rows.slice(0, limit);
1797
+ return {
1798
+ // users.list embeds each user's profile WITHOUT `email` — real Slack only
1799
+ // returns the email on the single-user reads (FDRS-473 Kind B).
1800
+ members: slice.map((row) => serializeUser(row, { include_locale: args.include_locale, omitProfileEmail: true })),
1801
+ cache_ts: nowUnix(),
1802
+ response_metadata: {
1803
+ next_cursor: hasMore ? cursorEncode({ offset: offset + slice.length }) : ""
1804
+ }
1805
+ };
1806
+ }
1807
+ function usersInfo(domain, args) {
1808
+ const user = domain.resolveUser(args.user);
1809
+ if (!user)
1810
+ slackError("user_not_found", 404);
1811
+ return { user: serializeUser(user, { include_locale: args.include_locale }) };
1812
+ }
1813
+ function usersLookupByEmail(domain, args) {
1814
+ if (!args.email)
1815
+ slackError("users_not_found", 400);
1816
+ const workspace = domain.requireWorkspace();
1817
+ const user = domain.db.prepare(`SELECT * FROM users WHERE team_id = ? AND email = ?`).get(workspace.id, args.email);
1818
+ if (!user)
1819
+ slackError("users_not_found", 404);
1820
+ return { user: serializeUser(user) };
1821
+ }
1822
+ function usersProfileGet(domain, args, actor) {
1823
+ const target = args.user ? domain.resolveUser(args.user) : domain.resolveActorUser(actor);
1824
+ if (!target)
1825
+ slackError("user_not_found", 404);
1826
+ return { profile: serializeUserProfile(target, { omitTeam: true }) };
1827
+ }
1828
+ function usersProfileSet(domain, args, actor, onDelta = NOOP3) {
1829
+ const target = args.user ? domain.resolveUser(args.user) : domain.resolveActorUser(actor);
1830
+ if (!target)
1831
+ slackError("user_not_found", 404);
1832
+ const acting = domain.resolveActorUser(actor);
1833
+ if (target.id !== acting.id && !acting.is_admin)
1834
+ slackError("cant_set_profile_for_other_user", 403);
1835
+ const out = domain.db.transaction(() => {
1836
+ const before = domain.db.prepare(`SELECT * FROM users WHERE id = ?`).get(target.id);
1837
+ let profile = safeParseJson(before.profile_json);
1838
+ if (args.profile) {
1839
+ const incoming = safeParseJson(args.profile);
1840
+ profile = { ...profile, ...incoming };
1841
+ } else if (args.name) {
1842
+ profile = { ...profile, [args.name]: args.value ?? "" };
1843
+ }
1844
+ domain.db.prepare(`UPDATE users SET profile_json = ?, real_name = COALESCE((SELECT json_extract(?, '$.real_name')), real_name), updated_at = ? WHERE id = ?`).run(JSON.stringify(profile), JSON.stringify(profile), nowIso(), target.id);
1845
+ const after = domain.db.prepare(`SELECT * FROM users WHERE id = ?`).get(target.id);
1846
+ onDelta({ before, after });
1847
+ return { profile: serializeUserProfile(after, { omitTeam: true }) };
1848
+ })();
1849
+ return out;
1850
+ }
1851
+
1852
+ // ../packages/twin-slack/dist/src/domain/slack-domain.js
1853
+ var NOOP3 = () => {
1854
+ };
1855
+ var DEFAULT_BOT_USER = "U_PRIMARY";
1856
+ var DEFAULT_TEAM_ID = "T_POME";
1857
+ var SlackDomain = class {
1858
+ db;
1859
+ constructor(db) {
1860
+ this.db = db;
1861
+ }
1862
+ // ───────────────────────────────────────────────────────────────────────────
1863
+ // Lifecycle
1864
+ // ───────────────────────────────────────────────────────────────────────────
1865
+ seed(state) {
1866
+ resetDatabase(this.db);
1867
+ const team = state.team ?? {};
1868
+ const teamId = team.id ?? DEFAULT_TEAM_ID;
1869
+ const teamName = team.name ?? "Pome Twin Workspace";
1870
+ const teamDomain = team.domain ?? "pome-twin";
1871
+ const now = nowIso();
1872
+ this.db.transaction(() => {
1873
+ this.db.prepare(`INSERT INTO workspaces (id, name, domain, url, enterprise_id, created_at, entity_counter)
1874
+ VALUES (?, ?, ?, ?, NULL, ?, 0)`).run(teamId, teamName, teamDomain, `${SLACK_TWIN_HOST}/`, now);
1875
+ const userIdByHandle = /* @__PURE__ */ new Map();
1876
+ const seedUsers = state.users ?? [];
1877
+ for (const u of seedUsers) {
1878
+ const id = u.id ?? this.allocId(teamId, u.is_bot ? "B" : "U");
1879
+ const handle = u.name;
1880
+ userIdByHandle.set(handle, id);
1881
+ userIdByHandle.set(id, id);
1882
+ this.db.prepare(`INSERT INTO users (id, team_id, name, real_name, display_name, email, is_bot, is_admin, deleted, tz, profile_json, created_at, updated_at)
1883
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, 0, ?, ?, ?, ?)`).run(id, teamId, handle, u.real_name ?? "", "", u.email ?? null, u.is_bot ? 1 : 0, u.is_admin ? 1 : 0, u.tz ?? "America/Los_Angeles", JSON.stringify(u.profile ?? {}), now, now);
1884
+ }
1885
+ if (!userIdByHandle.has("pome-agent") && !userIdByHandle.has(DEFAULT_BOT_USER)) {
1886
+ const id = DEFAULT_BOT_USER;
1887
+ userIdByHandle.set("pome-agent", id);
1888
+ userIdByHandle.set(id, id);
1889
+ this.db.prepare(`INSERT INTO users (id, team_id, name, real_name, display_name, email, is_bot, is_admin, deleted, tz, profile_json, created_at, updated_at)
1890
+ VALUES (?, ?, 'pome-agent', 'Pome Agent', '', 'pome-agent@pome-twin.slack.com', 0, 1, 0, 'America/Los_Angeles', '{}', ?, ?)`).run(id, teamId, now, now);
1891
+ }
1892
+ const seedChannels = state.channels ?? [];
1893
+ for (const ch of seedChannels) {
1894
+ const channelId = ch.id ?? this.allocId(teamId, ch.is_private ? "G" : "C");
1895
+ const creator = this.resolveSeedUserId(ch.creator, userIdByHandle) ?? DEFAULT_BOT_USER;
1896
+ this.db.prepare(`INSERT INTO channels (id, team_id, name, is_channel, is_group, is_im, is_mpim, is_private, is_archived, topic, purpose, creator, created_at, ts_counter)
1897
+ VALUES (?, ?, ?, ?, ?, 0, 0, ?, 0, ?, ?, ?, ?, 0)`).run(channelId, teamId, ch.name, ch.is_private ? 0 : 1, ch.is_private ? 1 : 0, ch.is_private ? 1 : 0, ch.topic ?? "", ch.purpose ?? "", creator, now);
1898
+ for (const member of ch.members ?? []) {
1899
+ const memberId = this.resolveSeedUserId(member, userIdByHandle);
1900
+ if (!memberId)
1901
+ continue;
1902
+ this.db.prepare(`INSERT OR IGNORE INTO channel_members (channel_id, user_id, joined_at) VALUES (?, ?, ?)`).run(channelId, memberId, now);
1903
+ }
1904
+ const seededTsByOriginalTs = /* @__PURE__ */ new Map();
1905
+ for (const m of ch.messages ?? []) {
1906
+ const ts = m.ts ?? this.allocMessageTs(channelId);
1907
+ if (m.ts)
1908
+ seededTsByOriginalTs.set(m.ts, ts);
1909
+ const userId = this.resolveSeedUserId(m.user, userIdByHandle) ?? DEFAULT_BOT_USER;
1910
+ const threadTs = m.thread_ts ? seededTsByOriginalTs.get(m.thread_ts) ?? m.thread_ts : null;
1911
+ this.db.prepare(`INSERT INTO messages (channel_id, ts, user_id, text, subtype, thread_ts, reply_count, reply_users_count, latest_reply, edited_user_id, edited_ts, blocks_json, attachments_json)
1912
+ VALUES (?, ?, ?, ?, NULL, ?, 0, 0, NULL, NULL, NULL, '[]', '[]')`).run(channelId, ts, userId, m.text, threadTs);
1913
+ if (threadTs) {
1914
+ this.db.prepare(`UPDATE messages SET reply_count = reply_count + 1, latest_reply = ?,
1915
+ reply_users_count = (
1916
+ SELECT COUNT(DISTINCT user_id) FROM messages WHERE channel_id = ? AND thread_ts = ?
1917
+ )
1918
+ WHERE channel_id = ? AND ts = ?`).run(ts, channelId, threadTs, channelId, threadTs);
1919
+ }
1920
+ for (const r of m.reactions ?? []) {
1921
+ const reactorId = this.resolveSeedUserId(r.user, userIdByHandle);
1922
+ if (!reactorId)
1923
+ continue;
1924
+ this.db.prepare(`INSERT OR IGNORE INTO reactions (channel_id, message_ts, name, user_id, added_at) VALUES (?, ?, ?, ?, ?)`).run(channelId, ts, r.name, reactorId, now);
1925
+ }
1926
+ }
1927
+ }
1928
+ const seedEmoji = state.emoji ?? [];
1929
+ if (seedEmoji.length > 0) {
1930
+ seedEmojiRows(this.db, teamId, seedEmoji);
1931
+ }
1932
+ })();
1933
+ }
1934
+ resetToDefault(seedFn, onDelta = NOOP3) {
1935
+ const beforeSummary = this.summarizeState();
1936
+ this.seed(seedFn());
1937
+ const afterSummary = this.summarizeState();
1938
+ onDelta({ before: beforeSummary, after: afterSummary });
1939
+ return { ok: true };
1940
+ }
1941
+ applySeed(input, onDelta = NOOP3) {
1942
+ const beforeSummary = this.summarizeState();
1943
+ const next = parseSeed(input);
1944
+ this.seed(next);
1945
+ const afterSummary = this.summarizeState();
1946
+ onDelta({ before: beforeSummary, after: afterSummary });
1947
+ return { ok: true };
1948
+ }
1949
+ exportState() {
1950
+ const workspace = this.firstWorkspace();
1951
+ if (!workspace)
1952
+ return { workspace: null };
1953
+ return {
1954
+ workspace: {
1955
+ id: workspace.id,
1956
+ name: workspace.name,
1957
+ domain: workspace.domain
1958
+ },
1959
+ users: this.db.prepare(`SELECT * FROM users WHERE team_id = ? ORDER BY id`).all(workspace.id),
1960
+ channels: this.allChannels().map((channel) => ({
1961
+ ...channel,
1962
+ members: this.db.prepare(`SELECT user_id FROM channel_members WHERE channel_id = ? ORDER BY user_id`).all(channel.id).map((row) => row.user_id),
1963
+ messages: this.db.prepare(`SELECT * FROM messages WHERE channel_id = ? ORDER BY ts`).all(channel.id)
1964
+ })),
1965
+ reactions: this.db.prepare(`SELECT * FROM reactions ORDER BY channel_id, message_ts, name, user_id`).all(),
1966
+ pins: this.db.prepare(`SELECT * FROM pins ORDER BY channel_id, message_ts`).all(),
1967
+ files: this.db.prepare(`SELECT * FROM files ORDER BY id`).all(),
1968
+ bookmarks: this.db.prepare(`SELECT * FROM bookmarks ORDER BY id`).all(),
1969
+ scheduled_messages: this.db.prepare(`SELECT * FROM scheduled_messages ORDER BY id`).all(),
1970
+ canvases: this.db.prepare(`SELECT * FROM canvases ORDER BY id`).all(),
1971
+ emoji: this.db.prepare(`SELECT * FROM emoji ORDER BY team_id, name`).all()
1972
+ };
1973
+ }
1974
+ summarizeState() {
1975
+ const get = (sql) => this.db.prepare(sql).get().c;
1976
+ return {
1977
+ users: get(`SELECT COUNT(*) AS c FROM users`),
1978
+ channels: get(`SELECT COUNT(*) AS c FROM channels`),
1979
+ messages: get(`SELECT COUNT(*) AS c FROM messages`),
1980
+ reactions: get(`SELECT COUNT(*) AS c FROM reactions`),
1981
+ pins: get(`SELECT COUNT(*) AS c FROM pins`),
1982
+ files: get(`SELECT COUNT(*) AS c FROM files`),
1983
+ bookmarks: get(`SELECT COUNT(*) AS c FROM bookmarks`),
1984
+ scheduled_messages: get(`SELECT COUNT(*) AS c FROM scheduled_messages`),
1985
+ canvases: get(`SELECT COUNT(*) AS c FROM canvases`),
1986
+ emoji: get(`SELECT COUNT(*) AS c FROM emoji`)
1987
+ };
1988
+ }
1989
+ authTest(actor) {
1990
+ return authTest(this, actor);
1991
+ }
1992
+ conversationsList(args) {
1993
+ return conversationsList(this, args);
1994
+ }
1995
+ conversationsInfo(args, actor = {}) {
1996
+ return conversationsInfo(this, args, actor);
1997
+ }
1998
+ conversationsCreate(args, actor, onDelta = NOOP3) {
1999
+ return conversationsCreate(this, args, actor, onDelta);
2000
+ }
2001
+ conversationsArchive(args, actor, onDelta = NOOP3) {
2002
+ return conversationsArchive(this, args, actor, onDelta);
2003
+ }
2004
+ conversationsInvite(args, actor, onDelta = NOOP3) {
2005
+ return conversationsInvite(this, args, actor, onDelta);
2006
+ }
2007
+ conversationsJoin(args, actor, onDelta = NOOP3) {
2008
+ return conversationsJoin(this, args, actor, onDelta);
2009
+ }
2010
+ conversationsLeave(args, actor, onDelta = NOOP3) {
2011
+ return conversationsLeave(this, args, actor, onDelta);
2012
+ }
2013
+ conversationsKick(args, actor, onDelta = NOOP3) {
2014
+ return conversationsKick(this, args, actor, onDelta);
2015
+ }
2016
+ conversationsMembers(args, actor = {}) {
2017
+ return conversationsMembers(this, args, actor);
2018
+ }
2019
+ conversationsHistory(args, actor = {}) {
2020
+ return conversationsHistory(this, args, actor);
2021
+ }
2022
+ conversationsReplies(args, actor = {}) {
2023
+ return conversationsReplies(this, args, actor);
2024
+ }
2025
+ conversationsOpen(args, actor, onDelta = NOOP3) {
2026
+ return conversationsOpen(this, args, actor, onDelta);
2027
+ }
2028
+ chatPostMessage(args, actor, onDelta = NOOP3) {
2029
+ return chatPostMessage(this, args, actor, onDelta);
2030
+ }
2031
+ chatUpdate(args, actor, onDelta = NOOP3) {
2032
+ return chatUpdate(this, args, actor, onDelta);
2033
+ }
2034
+ chatDelete(args, actor, onDelta = NOOP3) {
2035
+ return chatDelete(this, args, actor, onDelta);
2036
+ }
2037
+ chatScheduleMessage(args, actor, onDelta = NOOP3) {
2038
+ return chatScheduleMessage(this, args, actor, onDelta);
2039
+ }
2040
+ chatDeleteScheduledMessage(args, actor, onDelta = NOOP3) {
2041
+ return chatDeleteScheduledMessage(this, args, actor, onDelta);
2042
+ }
2043
+ reactionsAdd(args, actor, onDelta = NOOP3) {
2044
+ return reactionsAdd(this, args, actor, onDelta);
2045
+ }
2046
+ reactionsRemove(args, actor, onDelta = NOOP3) {
2047
+ return reactionsRemove(this, args, actor, onDelta);
2048
+ }
2049
+ reactionsGet(args, actor = {}) {
2050
+ return reactionsGet(this, args, actor);
2051
+ }
2052
+ usersList(args) {
2053
+ return usersList(this, args);
2054
+ }
2055
+ usersInfo(args) {
2056
+ return usersInfo(this, args);
2057
+ }
2058
+ usersLookupByEmail(args) {
2059
+ return usersLookupByEmail(this, args);
2060
+ }
2061
+ usersProfileGet(args, actor) {
2062
+ return usersProfileGet(this, args, actor);
2063
+ }
2064
+ usersProfileSet(args, actor, onDelta = NOOP3) {
2065
+ return usersProfileSet(this, args, actor, onDelta);
2066
+ }
2067
+ pinsAdd(args, actor, onDelta = NOOP3) {
2068
+ return pinsAdd(this, args, actor, onDelta);
2069
+ }
2070
+ pinsRemove(args, actor, onDelta = NOOP3) {
2071
+ return pinsRemove(this, args, actor, onDelta);
2072
+ }
2073
+ pinsList(args, actor = {}) {
2074
+ return pinsList(this, args, actor);
2075
+ }
2076
+ searchMessages(args, actor = {}) {
2077
+ return searchMessages(this, args, actor);
2078
+ }
2079
+ filesUpload(args, actor, onDelta = NOOP3) {
2080
+ return filesUpload(this, args, actor, onDelta);
2081
+ }
2082
+ filesInfo(args) {
2083
+ return filesInfo(this, args);
2084
+ }
2085
+ filesList(args) {
2086
+ return filesList(this, args);
2087
+ }
2088
+ filesDelete(args, actor, onDelta = NOOP3) {
2089
+ return filesDelete(this, args, actor, onDelta);
2090
+ }
2091
+ bookmarksAdd(args, actor, onDelta = NOOP3) {
2092
+ return bookmarksAdd(this, args, actor, onDelta);
2093
+ }
2094
+ bookmarksRemove(args, actor, onDelta = NOOP3) {
2095
+ return bookmarksRemove(this, args, actor, onDelta);
2096
+ }
2097
+ bookmarksList(args) {
2098
+ return bookmarksList(this, args);
2099
+ }
2100
+ teamInfo(args) {
2101
+ return teamInfo(this);
2102
+ }
2103
+ // ───────────────────────────────────────────────────────────────────────────
2104
+ // Conversations topic / purpose (Wave 3)
2105
+ // ───────────────────────────────────────────────────────────────────────────
2106
+ conversationsSetTopic(args, actor, onDelta = NOOP3) {
2107
+ return conversationsSetTopic({
2108
+ db: this.db,
2109
+ requireChannel: (ref) => this.requireChannel(ref),
2110
+ actor: this.resolveActorUser(actor)
2111
+ }, args, onDelta);
2112
+ }
2113
+ conversationsSetPurpose(args, actor, onDelta = NOOP3) {
2114
+ return conversationsSetPurpose({
2115
+ db: this.db,
2116
+ requireChannel: (ref) => this.requireChannel(ref),
2117
+ actor: this.resolveActorUser(actor)
2118
+ }, args, onDelta);
2119
+ }
2120
+ // ───────────────────────────────────────────────────────────────────────────
2121
+ // Canvases (Wave 3)
2122
+ // ───────────────────────────────────────────────────────────────────────────
2123
+ canvasesCreate(args, actor, onDelta = NOOP3) {
2124
+ const workspace = this.requireWorkspace();
2125
+ return canvasesCreate({
2126
+ db: this.db,
2127
+ workspaceId: workspace.id,
2128
+ actor: this.resolveActorUser(actor),
2129
+ allocId: (prefix) => this.allocId(workspace.id, prefix),
2130
+ requireChannel: (ref) => this.requireChannel(ref)
2131
+ }, args, onDelta);
2132
+ }
2133
+ canvasesEdit(args, actor, onDelta = NOOP3) {
2134
+ const workspace = this.requireWorkspace();
2135
+ return canvasesEdit({
2136
+ db: this.db,
2137
+ workspaceId: workspace.id,
2138
+ actor: this.resolveActorUser(actor),
2139
+ allocId: (prefix) => this.allocId(workspace.id, prefix),
2140
+ requireChannel: (ref) => this.requireChannel(ref)
2141
+ }, args, onDelta);
2142
+ }
2143
+ canvasesDelete(args, actor, onDelta = NOOP3) {
2144
+ const workspace = this.requireWorkspace();
2145
+ return canvasesDelete({
2146
+ db: this.db,
2147
+ workspaceId: workspace.id,
2148
+ actor: this.resolveActorUser(actor),
2149
+ allocId: (prefix) => this.allocId(workspace.id, prefix),
2150
+ requireChannel: (ref) => this.requireChannel(ref)
2151
+ }, args, onDelta);
2152
+ }
2153
+ // ───────────────────────────────────────────────────────────────────────────
2154
+ // Emoji (Wave 3)
2155
+ // ───────────────────────────────────────────────────────────────────────────
2156
+ emojiList(_args = {}) {
2157
+ return emojiList({ db: this.db, workspaceId: this.requireWorkspace().id });
2158
+ }
2159
+ // ----- shared helpers (used by domain/* modules) -----
2160
+ // ───────────────────────────────────────────────────────────────────────────
2161
+ // Private helpers
2162
+ // ───────────────────────────────────────────────────────────────────────────
2163
+ firstWorkspace() {
2164
+ return this.db.prepare(`SELECT * FROM workspaces LIMIT 1`).get();
2165
+ }
2166
+ requireWorkspace() {
2167
+ const w = this.firstWorkspace();
2168
+ if (!w)
2169
+ slackError("team_not_found", 404);
2170
+ return w;
2171
+ }
2172
+ allChannels() {
2173
+ return this.db.prepare(`SELECT * FROM channels ORDER BY rowid`).all();
2174
+ }
2175
+ allocId(workspaceId, prefix) {
2176
+ const row = this.db.prepare(`UPDATE workspaces SET entity_counter = entity_counter + 1 WHERE id = ? RETURNING entity_counter`).get(workspaceId);
2177
+ if (!row)
2178
+ throw new Error(`workspace ${workspaceId} not found for id allocation`);
2179
+ return `${prefix}${String(row.entity_counter).padStart(6, "0")}`;
2180
+ }
2181
+ allocMessageTs(channelId) {
2182
+ const channel = this.db.prepare(`SELECT team_id FROM channels WHERE id = ?`).get(channelId);
2183
+ if (!channel)
2184
+ throw new Error(`channel ${channelId} not found for ts allocation`);
2185
+ const row = this.db.prepare(`UPDATE workspaces SET ts_counter = ts_counter + 1 WHERE id = ? RETURNING ts_counter`).get(channel.team_id);
2186
+ if (!row)
2187
+ throw new Error(`workspace ${channel.team_id} not found for ts allocation`);
2188
+ return `${tsBaseSeconds()}.${padTsCounter(row.ts_counter)}`;
2189
+ }
2190
+ resolveSeedUserId(ref, map) {
2191
+ if (!ref)
2192
+ return void 0;
2193
+ return map.get(ref) ?? ref;
2194
+ }
2195
+ resolveUser(ref) {
2196
+ if (!ref)
2197
+ return void 0;
2198
+ const byId = this.db.prepare(`SELECT * FROM users WHERE id = ?`).get(ref);
2199
+ if (byId)
2200
+ return byId;
2201
+ const workspace = this.firstWorkspace();
2202
+ if (!workspace)
2203
+ return void 0;
2204
+ const byName = this.db.prepare(`SELECT * FROM users WHERE team_id = ? AND name = ?`).get(workspace.id, ref);
2205
+ if (byName)
2206
+ return byName;
2207
+ if (ref.includes("@")) {
2208
+ const byEmail = this.db.prepare(`SELECT * FROM users WHERE team_id = ? AND email = ?`).get(workspace.id, ref);
2209
+ if (byEmail)
2210
+ return byEmail;
2211
+ }
2212
+ return void 0;
2213
+ }
2214
+ resolveActorUser(actor) {
2215
+ if (actor.login) {
2216
+ const user = this.resolveUser(actor.login);
2217
+ if (!user)
2218
+ slackError("user_not_found", 404);
2219
+ return user;
2220
+ }
2221
+ const defaultUser = this.resolveUser("pome-agent");
2222
+ if (defaultUser)
2223
+ return defaultUser;
2224
+ const fallback = this.db.prepare(`SELECT * FROM users WHERE id = ?`).get(DEFAULT_BOT_USER);
2225
+ if (fallback)
2226
+ return fallback;
2227
+ slackError("user_not_found", 404);
2228
+ }
2229
+ channelRequiresMembership(channel) {
2230
+ return Boolean(channel.is_private) || Boolean(channel.is_im) || Boolean(channel.is_mpim);
2231
+ }
2232
+ assertChannelMember(channel, userId) {
2233
+ if (!this.channelRequiresMembership(channel))
2234
+ return;
2235
+ const member = this.db.prepare(`SELECT 1 FROM channel_members WHERE channel_id = ? AND user_id = ?`).get(channel.id, userId);
2236
+ if (!member)
2237
+ slackError("not_in_channel", 400);
2238
+ }
2239
+ assertChannelMemberForActor(channel, actor) {
2240
+ this.assertChannelMember(channel, this.resolveActorUser(actor).id);
2241
+ }
2242
+ requireChannel(ref) {
2243
+ const byId = this.db.prepare(`SELECT * FROM channels WHERE id = ?`).get(ref);
2244
+ if (byId)
2245
+ return byId;
2246
+ const workspace = this.firstWorkspace();
2247
+ if (workspace) {
2248
+ const cleaned = ref.startsWith("#") ? ref.slice(1) : ref;
2249
+ const byName = this.db.prepare(`SELECT * FROM channels WHERE team_id = ? AND name = ?`).get(workspace.id, cleaned);
2250
+ if (byName)
2251
+ return byName;
2252
+ }
2253
+ notFound("channel_not_found");
2254
+ }
2255
+ requireChannelRow(id) {
2256
+ const row = this.db.prepare(`SELECT * FROM channels WHERE id = ?`).get(id);
2257
+ if (!row)
2258
+ slackError("channel_not_found", 404);
2259
+ return row;
2260
+ }
2261
+ requireMessageRow(channelId, ts) {
2262
+ const row = this.db.prepare(`SELECT * FROM messages WHERE channel_id = ? AND ts = ?`).get(channelId, ts);
2263
+ if (!row)
2264
+ slackError("message_not_found", 404);
2265
+ return row;
2266
+ }
2267
+ requireScheduledMessage(id) {
2268
+ const row = this.db.prepare(`SELECT * FROM scheduled_messages WHERE id = ?`).get(id);
2269
+ if (!row)
2270
+ slackError("scheduled_message_not_found", 404);
2271
+ return row;
2272
+ }
2273
+ channelMemberIds(channelId) {
2274
+ return this.db.prepare(`SELECT user_id FROM channel_members WHERE channel_id = ? ORDER BY joined_at, user_id`).all(channelId).map((r) => r.user_id);
2275
+ }
2276
+ reactionsFor(channelId, ts) {
2277
+ return this.db.prepare(`SELECT * FROM reactions WHERE channel_id = ? AND message_ts = ? ORDER BY added_at, name, user_id`).all(channelId, ts);
2278
+ }
2279
+ findDirectChannelBySignature(teamId, dmSignature) {
2280
+ const row = this.db.prepare(`SELECT * FROM channels WHERE team_id = ? AND dm_signature = ?`).get(teamId, dmSignature);
2281
+ return row;
2282
+ }
2283
+ userNameOf(id) {
2284
+ const row = this.db.prepare(`SELECT name FROM users WHERE id = ?`).get(id);
2285
+ return row?.name ?? id;
2286
+ }
2287
+ };
2288
+
2289
+ // ../packages/twin-slack/dist/src/routes.js
2290
+ async function readArgs(c) {
2291
+ const method = c.req.method.toUpperCase();
2292
+ if (method === "GET" || method === "HEAD") {
2293
+ return { ...c.req.query() };
2294
+ }
2295
+ const body = await parseFormOrJson(c);
2296
+ return { ...c.req.query(), ...body };
2297
+ }
2298
+ function actorFrom(c) {
2299
+ const session = c.get("session");
2300
+ return { login: typeof session?.login === "string" ? session.login : void 0 };
2301
+ }
2302
+ var optNum = (value, fallback) => value === void 0 ? void 0 : asNumber(value, fallback);
2303
+ function registerSlackRoutes(app, { domain, recorder }) {
2304
+ const read = (path, call) => {
2305
+ const handler = recorder.handle({ mutation: false }, async (c) => ({
2306
+ status: 200,
2307
+ body: slackOk(call(await readArgs(c), actorFrom(c)))
2308
+ }));
2309
+ app.get(path, handler);
2310
+ app.post(path, handler);
2311
+ };
2312
+ const write = (path, call, mutated = () => true) => {
2313
+ app.post(path, recorder.handle({ mutation: true }, async (c) => {
2314
+ let delta = null;
2315
+ const result = call(await readArgs(c), actorFrom(c), (d) => {
2316
+ delta = d;
2317
+ });
2318
+ return { status: 200, body: slackOk(result), delta, mutation: mutated(result) };
2319
+ }));
2320
+ };
2321
+ read("/auth.test", (_args, actor) => domain.authTest(actor));
2322
+ read("/conversations.list", (args) => domain.conversationsList({
2323
+ types: asOptionalString(args.types),
2324
+ exclude_archived: asBool(args.exclude_archived, false),
2325
+ limit: optNum(args.limit, 100),
2326
+ cursor: asOptionalString(args.cursor),
2327
+ team_id: asOptionalString(args.team_id)
2328
+ }));
2329
+ read("/conversations.info", (args, actor) => {
2330
+ const channel = asOptionalString(args.channel);
2331
+ if (!channel)
2332
+ throw new TwinError("channel_not_found", 400, "channel_not_found");
2333
+ return domain.conversationsInfo({ channel, include_num_members: asBool(args.include_num_members, false) }, actor);
2334
+ });
2335
+ write("/conversations.create", (args, actor, delta) => domain.conversationsCreate({
2336
+ name: asString(args.name),
2337
+ is_private: asBool(args.is_private, false),
2338
+ team_id: asOptionalString(args.team_id)
2339
+ }, actor, delta));
2340
+ write("/conversations.archive", (args, actor, delta) => domain.conversationsArchive({ channel: asString(args.channel) }, actor, delta));
2341
+ write("/conversations.invite", (args, actor, delta) => domain.conversationsInvite({ channel: asString(args.channel), users: asString(args.users) }, actor, delta));
2342
+ write("/conversations.join", (args, actor, delta) => domain.conversationsJoin({ channel: asString(args.channel) }, actor, delta));
2343
+ write("/conversations.leave", (args, actor, delta) => domain.conversationsLeave({ channel: asString(args.channel) }, actor, delta));
2344
+ write("/conversations.kick", (args, actor, delta) => domain.conversationsKick({ channel: asString(args.channel), user: asString(args.user) }, actor, delta));
2345
+ read("/conversations.members", (args, actor) => domain.conversationsMembers({
2346
+ channel: asString(args.channel),
2347
+ limit: optNum(args.limit, 100),
2348
+ cursor: asOptionalString(args.cursor)
2349
+ }, actor));
2350
+ read("/conversations.history", (args, actor) => domain.conversationsHistory({
2351
+ channel: asString(args.channel),
2352
+ cursor: asOptionalString(args.cursor),
2353
+ inclusive: asBool(args.inclusive, false),
2354
+ latest: asOptionalString(args.latest),
2355
+ limit: optNum(args.limit, 100),
2356
+ oldest: asOptionalString(args.oldest)
2357
+ }, actor));
2358
+ read("/conversations.replies", (args, actor) => domain.conversationsReplies({
2359
+ channel: asString(args.channel),
2360
+ ts: asString(args.ts),
2361
+ cursor: asOptionalString(args.cursor),
2362
+ inclusive: asBool(args.inclusive, false),
2363
+ latest: asOptionalString(args.latest),
2364
+ limit: optNum(args.limit, 100),
2365
+ oldest: asOptionalString(args.oldest)
2366
+ }, actor));
2367
+ write("/conversations.open", (args, actor, delta) => domain.conversationsOpen({
2368
+ users: asOptionalString(args.users),
2369
+ channel: asOptionalString(args.channel),
2370
+ return_im: asBool(args.return_im, false)
2371
+ }, actor, delta), (result) => !result.already_open);
2372
+ write("/conversations.setTopic", (args, actor, delta) => domain.conversationsSetTopic({ channel: asString(args.channel), topic: asString(args.topic) }, actor, delta));
2373
+ write("/conversations.setPurpose", (args, actor, delta) => domain.conversationsSetPurpose({ channel: asString(args.channel), purpose: asString(args.purpose) }, actor, delta));
2374
+ write("/chat.postMessage", (args, actor, delta) => domain.chatPostMessage({
2375
+ channel: asString(args.channel),
2376
+ text: asOptionalString(args.text),
2377
+ blocks: asOptionalString(args.blocks),
2378
+ attachments: asOptionalString(args.attachments),
2379
+ thread_ts: asOptionalString(args.thread_ts),
2380
+ reply_broadcast: asBool(args.reply_broadcast, false),
2381
+ icon_emoji: asOptionalString(args.icon_emoji),
2382
+ icon_url: asOptionalString(args.icon_url),
2383
+ username: asOptionalString(args.username),
2384
+ as_user: asBool(args.as_user, false)
2385
+ }, actor, delta));
2386
+ write("/chat.update", (args, actor, delta) => domain.chatUpdate({
2387
+ channel: asString(args.channel),
2388
+ ts: asString(args.ts),
2389
+ text: asOptionalString(args.text),
2390
+ blocks: asOptionalString(args.blocks),
2391
+ attachments: asOptionalString(args.attachments)
2392
+ }, actor, delta));
2393
+ write("/chat.delete", (args, actor, delta) => domain.chatDelete({ channel: asString(args.channel), ts: asString(args.ts) }, actor, delta));
2394
+ write("/chat.scheduleMessage", (args, actor, delta) => domain.chatScheduleMessage({
2395
+ channel: asString(args.channel),
2396
+ text: asString(args.text),
2397
+ post_at: asNumber(args.post_at, 0),
2398
+ thread_ts: asOptionalString(args.thread_ts),
2399
+ blocks: asOptionalString(args.blocks)
2400
+ }, actor, delta));
2401
+ write("/chat.deleteScheduledMessage", (args, actor, delta) => domain.chatDeleteScheduledMessage({ channel: asString(args.channel), scheduled_message_id: asString(args.scheduled_message_id) }, actor, delta));
2402
+ write("/reactions.add", (args, actor, delta) => domain.reactionsAdd({ channel: asString(args.channel), timestamp: asString(args.timestamp), name: asString(args.name) }, actor, delta));
2403
+ write("/reactions.remove", (args, actor, delta) => domain.reactionsRemove({ channel: asString(args.channel), timestamp: asString(args.timestamp), name: asString(args.name) }, actor, delta));
2404
+ read("/reactions.get", (args, actor) => domain.reactionsGet({
2405
+ channel: asString(args.channel),
2406
+ timestamp: asString(args.timestamp),
2407
+ full: asBool(args.full, false)
2408
+ }, actor));
2409
+ read("/users.list", (args) => domain.usersList({
2410
+ cursor: asOptionalString(args.cursor),
2411
+ limit: optNum(args.limit, 100),
2412
+ include_locale: asBool(args.include_locale, false),
2413
+ team_id: asOptionalString(args.team_id)
2414
+ }));
2415
+ read("/users.info", (args) => domain.usersInfo({ user: asString(args.user), include_locale: asBool(args.include_locale, false) }));
2416
+ read("/users.lookupByEmail", (args) => domain.usersLookupByEmail({ email: asString(args.email) }));
2417
+ read("/users.profile.get", (args, actor) => domain.usersProfileGet({ user: asOptionalString(args.user), include_labels: asBool(args.include_labels, false) }, actor));
2418
+ write("/users.profile.set", (args, actor, delta) => domain.usersProfileSet({
2419
+ user: asOptionalString(args.user),
2420
+ profile: asOptionalString(args.profile),
2421
+ name: asOptionalString(args.name),
2422
+ value: asOptionalString(args.value)
2423
+ }, actor, delta));
2424
+ write("/pins.add", (args, actor, delta) => domain.pinsAdd({ channel: asString(args.channel), timestamp: asString(args.timestamp) }, actor, delta));
2425
+ write("/pins.remove", (args, actor, delta) => domain.pinsRemove({ channel: asString(args.channel), timestamp: asString(args.timestamp) }, actor, delta));
2426
+ read("/pins.list", (args, actor) => domain.pinsList({ channel: asString(args.channel) }, actor));
2427
+ read("/search.messages", (args, actor) => domain.searchMessages({
2428
+ query: asString(args.query),
2429
+ count: optNum(args.count, 20),
2430
+ page: optNum(args.page, 1),
2431
+ sort: asOptionalString(args.sort),
2432
+ sort_dir: asOptionalString(args.sort_dir),
2433
+ highlight: asBool(args.highlight, false)
2434
+ }, actor));
2435
+ write("/files.upload", (args, actor, delta) => domain.filesUpload({
2436
+ channels: asOptionalString(args.channels),
2437
+ channel: asOptionalString(args.channel),
2438
+ filename: asOptionalString(args.filename),
2439
+ title: asOptionalString(args.title),
2440
+ filetype: asOptionalString(args.filetype),
2441
+ content: asOptionalString(args.content),
2442
+ initial_comment: asOptionalString(args.initial_comment),
2443
+ thread_ts: asOptionalString(args.thread_ts)
2444
+ }, actor, delta));
2445
+ read("/files.info", (args) => domain.filesInfo({ file: asString(args.file) }));
2446
+ read("/files.list", (args) => domain.filesList({
2447
+ channel: asOptionalString(args.channel),
2448
+ user: asOptionalString(args.user),
2449
+ count: optNum(args.count, 100),
2450
+ page: optNum(args.page, 1),
2451
+ types: asOptionalString(args.types)
2452
+ }));
2453
+ write("/files.delete", (args, actor, delta) => domain.filesDelete({ file: asString(args.file) }, actor, delta));
2454
+ write("/bookmarks.add", (args, actor, delta) => domain.bookmarksAdd({
2455
+ channel_id: asString(args.channel_id),
2456
+ title: asString(args.title),
2457
+ type: asOptionalString(args.type),
2458
+ link: asOptionalString(args.link),
2459
+ emoji: asOptionalString(args.emoji),
2460
+ entity_id: asOptionalString(args.entity_id)
2461
+ }, actor, delta));
2462
+ write("/bookmarks.remove", (args, actor, delta) => domain.bookmarksRemove({ channel_id: asString(args.channel_id), bookmark_id: asString(args.bookmark_id) }, actor, delta));
2463
+ read("/bookmarks.list", (args) => domain.bookmarksList({ channel_id: asString(args.channel_id) }));
2464
+ read("/team.info", (args) => domain.teamInfo({ team: asOptionalString(args.team) }));
2465
+ write("/canvases.create", (args, actor, delta) => domain.canvasesCreate({
2466
+ title: asOptionalString(args.title),
2467
+ document_content: args.document_content,
2468
+ channel_id: asOptionalString(args.channel_id)
2469
+ }, actor, delta));
2470
+ write("/canvases.edit", (args, actor, delta) => domain.canvasesEdit({ canvas_id: asString(args.canvas_id), changes: args.changes }, actor, delta));
2471
+ write("/canvases.delete", (args, actor, delta) => domain.canvasesDelete({ canvas_id: asString(args.canvas_id) }, actor, delta));
2472
+ read("/emoji.list", (args) => domain.emojiList(args));
2473
+ }
2474
+ var toolDefinitions = [
2475
+ {
2476
+ name: "slack_post_message",
2477
+ description: "Post a new message to a Slack channel",
2478
+ readOnly: false,
2479
+ schema: z.strictObject({
2480
+ channel_id: z.string(),
2481
+ text: z.string()
2482
+ }).strict()
2483
+ },
2484
+ {
2485
+ name: "slack_reply_to_thread",
2486
+ description: "Reply to a specific message thread in Slack",
2487
+ readOnly: false,
2488
+ schema: z.strictObject({
2489
+ channel_id: z.string(),
2490
+ thread_ts: z.string(),
2491
+ text: z.string()
2492
+ }).strict()
2493
+ },
2494
+ {
2495
+ name: "slack_add_reaction",
2496
+ description: "Add a reaction emoji to a message",
2497
+ readOnly: false,
2498
+ schema: z.strictObject({
2499
+ channel_id: z.string(),
2500
+ timestamp: z.string(),
2501
+ reaction: z.string()
2502
+ }).strict()
2503
+ },
2504
+ {
2505
+ name: "slack_get_channel_history",
2506
+ description: "Get recent messages from a channel",
2507
+ readOnly: true,
2508
+ schema: z.strictObject({
2509
+ channel_id: z.string(),
2510
+ limit: z.number().optional()
2511
+ }).strict()
2512
+ },
2513
+ {
2514
+ name: "slack_get_thread_replies",
2515
+ description: "Get all replies in a message thread",
2516
+ readOnly: true,
2517
+ schema: z.strictObject({
2518
+ channel_id: z.string(),
2519
+ thread_ts: z.string()
2520
+ }).strict()
2521
+ },
2522
+ {
2523
+ name: "slack_list_channels",
2524
+ description: "List public or pre-defined channels in the workspace with pagination",
2525
+ readOnly: true,
2526
+ schema: z.strictObject({
2527
+ limit: z.number().optional(),
2528
+ cursor: z.string().optional()
2529
+ }).strict()
2530
+ },
2531
+ {
2532
+ name: "slack_get_users",
2533
+ description: "Get a list of all users in the workspace with their basic profile information",
2534
+ readOnly: true,
2535
+ schema: z.strictObject({
2536
+ cursor: z.string().optional(),
2537
+ limit: z.number().optional()
2538
+ }).strict()
2539
+ },
2540
+ {
2541
+ name: "slack_get_user_profile",
2542
+ description: "Get detailed profile information for a specific user",
2543
+ readOnly: true,
2544
+ schema: z.strictObject({
2545
+ user_id: z.string()
2546
+ }).strict()
2547
+ },
2548
+ {
2549
+ name: "slack_search_messages",
2550
+ description: "Search messages in the workspace by text query",
2551
+ readOnly: true,
2552
+ schema: z.strictObject({
2553
+ query: z.string(),
2554
+ count: z.number().optional(),
2555
+ page: z.number().optional()
2556
+ }).strict()
2557
+ },
2558
+ {
2559
+ name: "slack_get_reactions",
2560
+ description: "Get all reactions on a specific message",
2561
+ readOnly: true,
2562
+ schema: z.strictObject({
2563
+ channel_id: z.string(),
2564
+ timestamp: z.string()
2565
+ }).strict()
2566
+ },
2567
+ {
2568
+ name: "slack_list_channel_members",
2569
+ description: "List the member user IDs of a channel with pagination",
2570
+ readOnly: true,
2571
+ schema: z.strictObject({
2572
+ channel_id: z.string(),
2573
+ limit: z.number().optional(),
2574
+ cursor: z.string().optional()
2575
+ }).strict()
2576
+ }
2577
+ ];
2578
+ var MUTATING_TOOL_NAMES = /* @__PURE__ */ new Set([
2579
+ "slack_post_message",
2580
+ "slack_reply_to_thread",
2581
+ "slack_add_reaction"
2582
+ ]);
2583
+ function isMutatingTool(name) {
2584
+ return MUTATING_TOOL_NAMES.has(name);
2585
+ }
2586
+ function toJsonSchema(schema) {
2587
+ const json = z.toJSONSchema(schema, { target: "draft-7" });
2588
+ return {
2589
+ type: "object",
2590
+ properties: json.properties ?? {},
2591
+ required: json.required ?? [],
2592
+ additionalProperties: false
2593
+ };
2594
+ }
2595
+ function listTools() {
2596
+ return toolDefinitions.map((tool) => ({
2597
+ name: tool.name,
2598
+ description: tool.description,
2599
+ input_schema: toJsonSchema(tool.schema),
2600
+ ...tool.readOnly ? { annotations: { readOnlyHint: true } } : {}
2601
+ }));
2602
+ }
2603
+ function listToolsForMcp() {
2604
+ return toolDefinitions.map((tool) => ({
2605
+ name: tool.name,
2606
+ description: tool.description,
2607
+ inputSchema: toJsonSchema(tool.schema),
2608
+ ...tool.readOnly ? { annotations: { readOnlyHint: true } } : {}
2609
+ }));
2610
+ }
2611
+ function executeTool(domain, name, args, onDelta, actor = {}) {
2612
+ const def = toolDefinitions.find((t) => t.name === name);
2613
+ if (!def)
2614
+ throw new Error(`Unknown tool: ${name}`);
2615
+ const parsed = def.schema.parse(args);
2616
+ const delta = (d) => onDelta?.(d);
2617
+ switch (name) {
2618
+ case "slack_post_message": {
2619
+ const p = parsed;
2620
+ return domain.chatPostMessage({ channel: p.channel_id, text: p.text }, actor, delta);
2621
+ }
2622
+ case "slack_reply_to_thread": {
2623
+ const p = parsed;
2624
+ return domain.chatPostMessage({ channel: p.channel_id, thread_ts: p.thread_ts, text: p.text }, actor, delta);
2625
+ }
2626
+ case "slack_add_reaction": {
2627
+ const p = parsed;
2628
+ return domain.reactionsAdd({ channel: p.channel_id, timestamp: p.timestamp, name: p.reaction }, actor, delta);
2629
+ }
2630
+ case "slack_get_channel_history": {
2631
+ const p = parsed;
2632
+ return domain.conversationsHistory({ channel: p.channel_id, limit: p.limit }, actor);
2633
+ }
2634
+ case "slack_get_thread_replies": {
2635
+ const p = parsed;
2636
+ return domain.conversationsReplies({ channel: p.channel_id, ts: p.thread_ts }, actor);
2637
+ }
2638
+ case "slack_list_channels": {
2639
+ const p = parsed;
2640
+ return domain.conversationsList({ limit: p.limit, cursor: p.cursor });
2641
+ }
2642
+ case "slack_get_users": {
2643
+ const p = parsed;
2644
+ return domain.usersList({ cursor: p.cursor, limit: p.limit });
2645
+ }
2646
+ case "slack_get_user_profile": {
2647
+ const p = parsed;
2648
+ return domain.usersProfileGet({ user: p.user_id }, actor);
2649
+ }
2650
+ case "slack_search_messages": {
2651
+ const p = parsed;
2652
+ return domain.searchMessages({ query: p.query, count: p.count, page: p.page }, actor);
2653
+ }
2654
+ case "slack_get_reactions": {
2655
+ const p = parsed;
2656
+ return domain.reactionsGet({ channel: p.channel_id, timestamp: p.timestamp }, actor);
2657
+ }
2658
+ case "slack_list_channel_members": {
2659
+ const p = parsed;
2660
+ return domain.conversationsMembers({ channel: p.channel_id, limit: p.limit, cursor: p.cursor }, actor);
2661
+ }
2662
+ default:
2663
+ throw new Error(`Unknown tool: ${name}`);
2664
+ }
2665
+ }
2666
+
2667
+ // ../packages/twin-slack/dist/src/unsupported-envelope.js
2668
+ var SUPPORTED_SURFACES = [
2669
+ "auth.test",
2670
+ "conversations.list",
2671
+ "conversations.info",
2672
+ "conversations.create",
2673
+ "conversations.archive",
2674
+ "conversations.invite",
2675
+ "conversations.join",
2676
+ "conversations.leave",
2677
+ "conversations.kick",
2678
+ "conversations.members",
2679
+ "conversations.history",
2680
+ "conversations.replies",
2681
+ "conversations.open",
2682
+ "conversations.setTopic",
2683
+ "conversations.setPurpose",
2684
+ "chat.postMessage",
2685
+ "chat.update",
2686
+ "chat.delete",
2687
+ "chat.scheduleMessage",
2688
+ "chat.deleteScheduledMessage",
2689
+ "reactions.add",
2690
+ "reactions.remove",
2691
+ "reactions.get",
2692
+ "users.list",
2693
+ "users.info",
2694
+ "users.lookupByEmail",
2695
+ "users.profile.get",
2696
+ "users.profile.set",
2697
+ "pins.add",
2698
+ "pins.remove",
2699
+ "pins.list",
2700
+ "search.messages",
2701
+ "files.upload",
2702
+ "files.info",
2703
+ "files.list",
2704
+ "files.delete",
2705
+ "bookmarks.add",
2706
+ "bookmarks.remove",
2707
+ "bookmarks.list",
2708
+ "team.info",
2709
+ "canvases.create",
2710
+ "canvases.edit",
2711
+ "canvases.delete",
2712
+ "emoji.list"
2713
+ ];
2714
+ var unsupportedEnvelope = {
2715
+ status: 501,
2716
+ body: {
2717
+ ok: false,
2718
+ error: "unsupported_endpoint",
2719
+ _twin: {
2720
+ fidelity: "unsupported",
2721
+ supported_surfaces: SUPPORTED_SURFACES
2722
+ }
2723
+ }
2724
+ };
2725
+
2726
+ // ../packages/twin-slack/dist/src/twin.js
2727
+ var tolerantSeedSchema = z.preprocess((value) => value && typeof value === "object" && !Array.isArray(value) ? value : {}, z.record(z.string(), z.unknown()));
2728
+ function actorFromSession(session) {
2729
+ return { login: typeof session?.login === "string" ? session.login : void 0 };
2730
+ }
2731
+ function wrapSlackOk(value) {
2732
+ if (value && typeof value === "object" && !Array.isArray(value)) {
2733
+ const obj = value;
2734
+ if ("ok" in obj)
2735
+ return obj;
2736
+ return { ok: true, ...obj };
2737
+ }
2738
+ return { ok: true, result: value };
2739
+ }
2740
+ function zodIssues(err) {
2741
+ if (err instanceof ZodError)
2742
+ return err.issues;
2743
+ if (err instanceof Error && err.name === "ZodError" && Array.isArray(err.issues)) {
2744
+ return err.issues;
2745
+ }
2746
+ return void 0;
2747
+ }
2748
+ function slackErrorEnvelope(err) {
2749
+ if (err instanceof UnknownToolError)
2750
+ return { status: 404, body: slackError2("unknown_tool") };
2751
+ if (err instanceof TwinError) {
2752
+ return { status: 200, body: { ok: false, error: err.code, ...err.extra ?? {} } };
2753
+ }
2754
+ const issues = zodIssues(err);
2755
+ if (issues) {
2756
+ return {
2757
+ status: 200,
2758
+ body: {
2759
+ ok: false,
2760
+ error: "invalid_arguments",
2761
+ response_metadata: {
2762
+ messages: issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`)
2763
+ }
2764
+ }
2765
+ };
2766
+ }
2767
+ const mapped = twinErrorFromSqliteConstraint("", err);
2768
+ if (mapped)
2769
+ return { status: 200, body: { ok: false, error: mapped.code, ...mapped.extra ?? {} } };
2770
+ return {
2771
+ status: 500,
2772
+ body: { ok: false, error: "internal_error", warning: err instanceof Error ? err.message : "internal_error" }
2773
+ };
2774
+ }
2775
+ var toolListing = new Map(listTools().map((tool) => [tool.name, tool]));
2776
+ var slackTwinDefinition = defineTwin({
2777
+ id: "slack",
2778
+ version: process.env.POME_TWIN_VERSION ?? "0.1.0",
2779
+ implementation: "slack_clone",
2780
+ packageName: "@pome-sh/twin-slack",
2781
+ fidelity: { default: "semantic" },
2782
+ seed: tolerantSeedSchema,
2783
+ domain: ({ db, seed }) => {
2784
+ const domain = new SlackDomain(db ?? openSlackTwinDatabase(":memory:"));
2785
+ if (seed !== void 0)
2786
+ domain.seed(seed);
2787
+ return domain;
2788
+ },
2789
+ routes: registerSlackRoutes,
2790
+ // Frozen slack body parsing (F-683 review pin): form-or-JSON on every
2791
+ // engine-owned surface — official Slack SDKs default to
2792
+ // application/x-www-form-urlencoded — and malformed JSON collapses to {}.
2793
+ bodyReader: (c) => parseFormOrJson(c),
2794
+ // Frozen legacy /mcp/call surface: {name}/{params} alias keys; a body
2795
+ // naming no tool answers 400 {ok:false, error:"invalid_arguments"}.
2796
+ legacyMcp: {
2797
+ aliases: true,
2798
+ missingTool: () => ({ status: 400, body: slackError2("invalid_arguments") })
2799
+ },
2800
+ // Frozen /_pome/health shape: exactly {ok, twin} — no extras.
2801
+ pomeHealth: () => ({}),
2802
+ state: ({ domain }) => domain.exportState(),
2803
+ admin: {
2804
+ reset: ({ domain }) => {
2805
+ domain.resetToDefault(defaultSeedState);
2806
+ return { ok: true };
2807
+ },
2808
+ seed: ({ domain, seed }) => {
2809
+ domain.applySeed(seed.seed ?? seed);
2810
+ return { ok: true };
2811
+ },
2812
+ // Frozen pre-port admin surface: EVERY thrown error (zod seed rejection
2813
+ // included) answers 500 {ok:false, error:"internal_error", warning} —
2814
+ // the session envelope's 200 {ok:false} projection never applied here.
2815
+ // Probed on the 3cd86eb baseline (form body "seed=whatever" → 500).
2816
+ errorEnvelope: (err) => ({
2817
+ status: 500,
2818
+ body: {
2819
+ ok: false,
2820
+ error: "internal_error",
2821
+ warning: err instanceof Error ? err.message : "internal_error"
2822
+ }
2823
+ }),
2824
+ // Frozen slack admin-gate 403 body.
2825
+ forbidden: () => ({ status: 403, body: slackError2("restricted_action") })
2826
+ },
2827
+ tools: toolDefinitions.map((def) => {
2828
+ const listed = toolListing.get(def.name);
2829
+ return {
2830
+ name: def.name,
2831
+ description: def.description,
2832
+ schema: def.schema,
2833
+ mutation: isMutatingTool(def.name),
2834
+ inputSchema: listed?.input_schema,
2835
+ ..."annotations" in (listed ?? {}) ? { annotations: listed.annotations } : {},
2836
+ handler: (domain, args, ctx) => wrapSlackOk(executeTool(domain, def.name, args, ctx.reportDelta, actorFromSession(ctx.session)))
2837
+ };
2838
+ }),
2839
+ // Frozen healthz shape: {ok, twin, implementation, tools, runtime} — no
2840
+ // version/fidelity extras (slack never carried them).
2841
+ healthz: () => ({}),
2842
+ unsupported: () => unsupportedEnvelope,
2843
+ errorEnvelope: slackErrorEnvelope,
2844
+ auth: {
2845
+ // F-712 pins: Bearer header + ?token= + form-body token; raw bearer
2846
+ // rejected (allowRawBearer default false); sid mismatch → 401
2847
+ // invalid_auth; expired vs invalid classified by the engine and
2848
+ // rendered through the envelope hook.
2849
+ providerToken: { provider: "slack", prefixes: ["xoxb-pome-", "xoxp-pome-"] },
2850
+ providerSession: () => ({ login: "pome-agent" }),
2851
+ tokenResolvers: [queryTokenResolver("token"), formTokenResolver("token")],
2852
+ unauthorized: (kind) => ({
2853
+ status: 401,
2854
+ body: slackError2(kind === "no_token" ? "not_authed" : kind === "expired" ? "token_expired" : "invalid_auth")
2855
+ }),
2856
+ sidMismatch: () => ({ status: 401, body: slackError2("invalid_auth") }),
2857
+ sessionExtras: (claims) => typeof claims.login === "string" && claims.login.length > 0 ? { login: claims.login } : {}
2858
+ }
2859
+ });
2860
+ function createSlackTwinApp(opts = {}) {
2861
+ return createApp(slackTwinDefinition, {
2862
+ db: opts.db ?? openSlackTwinDatabase(":memory:"),
2863
+ recorder: opts.recorder,
2864
+ runId: opts.runId ?? "spawn",
2865
+ seed: opts.seed
2866
+ });
2867
+ }
2868
+
2869
+ export { MUTATING_TOOL_NAMES, SlackDomain, createSlackTwinApp, defaultSeedState, executeTool, isMutatingTool, listTools, listToolsForMcp, loadSeedFromEnv, migrate, openSlackTwinDatabase, parseSeed, resetDatabase, seedSchema, slackTwinDefinition, toolDefinitions };