@growthub/cli 0.3.12 → 0.3.13

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 (1699) hide show
  1. package/dist/index.js +186 -183
  2. package/dist/index.js.map +3 -3
  3. package/package.json +1 -7
  4. package/dist/runtime/server/dist/adapters/codex-models.d.ts +0 -4
  5. package/dist/runtime/server/dist/adapters/codex-models.d.ts.map +0 -1
  6. package/dist/runtime/server/dist/adapters/codex-models.js +0 -98
  7. package/dist/runtime/server/dist/adapters/codex-models.js.map +0 -1
  8. package/dist/runtime/server/dist/adapters/cursor-models.d.ts +0 -13
  9. package/dist/runtime/server/dist/adapters/cursor-models.d.ts.map +0 -1
  10. package/dist/runtime/server/dist/adapters/cursor-models.js +0 -148
  11. package/dist/runtime/server/dist/adapters/cursor-models.js.map +0 -1
  12. package/dist/runtime/server/dist/adapters/http/execute.d.ts +0 -3
  13. package/dist/runtime/server/dist/adapters/http/execute.d.ts.map +0 -1
  14. package/dist/runtime/server/dist/adapters/http/execute.js +0 -39
  15. package/dist/runtime/server/dist/adapters/http/execute.js.map +0 -1
  16. package/dist/runtime/server/dist/adapters/http/index.d.ts +0 -3
  17. package/dist/runtime/server/dist/adapters/http/index.d.ts.map +0 -1
  18. package/dist/runtime/server/dist/adapters/http/index.js +0 -20
  19. package/dist/runtime/server/dist/adapters/http/index.js.map +0 -1
  20. package/dist/runtime/server/dist/adapters/http/test.d.ts +0 -3
  21. package/dist/runtime/server/dist/adapters/http/test.d.ts.map +0 -1
  22. package/dist/runtime/server/dist/adapters/http/test.js +0 -106
  23. package/dist/runtime/server/dist/adapters/http/test.js.map +0 -1
  24. package/dist/runtime/server/dist/adapters/index.d.ts +0 -4
  25. package/dist/runtime/server/dist/adapters/index.d.ts.map +0 -1
  26. package/dist/runtime/server/dist/adapters/index.js +0 -3
  27. package/dist/runtime/server/dist/adapters/index.js.map +0 -1
  28. package/dist/runtime/server/dist/adapters/process/execute.d.ts +0 -3
  29. package/dist/runtime/server/dist/adapters/process/execute.d.ts.map +0 -1
  30. package/dist/runtime/server/dist/adapters/process/execute.js +0 -63
  31. package/dist/runtime/server/dist/adapters/process/execute.js.map +0 -1
  32. package/dist/runtime/server/dist/adapters/process/index.d.ts +0 -3
  33. package/dist/runtime/server/dist/adapters/process/index.d.ts.map +0 -1
  34. package/dist/runtime/server/dist/adapters/process/index.js +0 -23
  35. package/dist/runtime/server/dist/adapters/process/index.js.map +0 -1
  36. package/dist/runtime/server/dist/adapters/process/test.d.ts +0 -3
  37. package/dist/runtime/server/dist/adapters/process/test.d.ts.map +0 -1
  38. package/dist/runtime/server/dist/adapters/process/test.js +0 -77
  39. package/dist/runtime/server/dist/adapters/process/test.js.map +0 -1
  40. package/dist/runtime/server/dist/adapters/registry.d.ts +0 -9
  41. package/dist/runtime/server/dist/adapters/registry.d.ts.map +0 -1
  42. package/dist/runtime/server/dist/adapters/registry.js +0 -142
  43. package/dist/runtime/server/dist/adapters/registry.js.map +0 -1
  44. package/dist/runtime/server/dist/adapters/types.d.ts +0 -2
  45. package/dist/runtime/server/dist/adapters/types.d.ts.map +0 -1
  46. package/dist/runtime/server/dist/adapters/types.js +0 -2
  47. package/dist/runtime/server/dist/adapters/types.js.map +0 -1
  48. package/dist/runtime/server/dist/adapters/utils.d.ts +0 -10
  49. package/dist/runtime/server/dist/adapters/utils.d.ts.map +0 -1
  50. package/dist/runtime/server/dist/adapters/utils.js +0 -14
  51. package/dist/runtime/server/dist/adapters/utils.js.map +0 -1
  52. package/dist/runtime/server/dist/agent-auth-jwt.d.ts +0 -14
  53. package/dist/runtime/server/dist/agent-auth-jwt.d.ts.map +0 -1
  54. package/dist/runtime/server/dist/agent-auth-jwt.js +0 -117
  55. package/dist/runtime/server/dist/agent-auth-jwt.js.map +0 -1
  56. package/dist/runtime/server/dist/app.d.ts +0 -26
  57. package/dist/runtime/server/dist/app.d.ts.map +0 -1
  58. package/dist/runtime/server/dist/app.js +0 -310
  59. package/dist/runtime/server/dist/app.js.map +0 -1
  60. package/dist/runtime/server/dist/attachment-types.d.ts +0 -33
  61. package/dist/runtime/server/dist/attachment-types.d.ts.map +0 -1
  62. package/dist/runtime/server/dist/attachment-types.js +0 -67
  63. package/dist/runtime/server/dist/attachment-types.js.map +0 -1
  64. package/dist/runtime/server/dist/auth/better-auth.d.ts +0 -24
  65. package/dist/runtime/server/dist/auth/better-auth.d.ts.map +0 -1
  66. package/dist/runtime/server/dist/auth/better-auth.js +0 -108
  67. package/dist/runtime/server/dist/auth/better-auth.js.map +0 -1
  68. package/dist/runtime/server/dist/board-claim.d.ts +0 -23
  69. package/dist/runtime/server/dist/board-claim.d.ts.map +0 -1
  70. package/dist/runtime/server/dist/board-claim.js +0 -115
  71. package/dist/runtime/server/dist/board-claim.js.map +0 -1
  72. package/dist/runtime/server/dist/config-file.d.ts +0 -4
  73. package/dist/runtime/server/dist/config-file.d.ts.map +0 -1
  74. package/dist/runtime/server/dist/config-file.js +0 -25
  75. package/dist/runtime/server/dist/config-file.js.map +0 -1
  76. package/dist/runtime/server/dist/config.d.ts +0 -39
  77. package/dist/runtime/server/dist/config.d.ts.map +0 -1
  78. package/dist/runtime/server/dist/config.js +0 -164
  79. package/dist/runtime/server/dist/config.js.map +0 -1
  80. package/dist/runtime/server/dist/errors.d.ts +0 -12
  81. package/dist/runtime/server/dist/errors.d.ts.map +0 -1
  82. package/dist/runtime/server/dist/errors.js +0 -28
  83. package/dist/runtime/server/dist/errors.js.map +0 -1
  84. package/dist/runtime/server/dist/home-paths.d.ts +0 -17
  85. package/dist/runtime/server/dist/home-paths.d.ts.map +0 -1
  86. package/dist/runtime/server/dist/home-paths.js +0 -75
  87. package/dist/runtime/server/dist/home-paths.js.map +0 -1
  88. package/dist/runtime/server/dist/index.d.ts +0 -10
  89. package/dist/runtime/server/dist/index.d.ts.map +0 -1
  90. package/dist/runtime/server/dist/index.js +0 -567
  91. package/dist/runtime/server/dist/index.js.map +0 -1
  92. package/dist/runtime/server/dist/log-redaction.d.ts +0 -10
  93. package/dist/runtime/server/dist/log-redaction.d.ts.map +0 -1
  94. package/dist/runtime/server/dist/log-redaction.js +0 -110
  95. package/dist/runtime/server/dist/log-redaction.js.map +0 -1
  96. package/dist/runtime/server/dist/middleware/auth.d.ts +0 -12
  97. package/dist/runtime/server/dist/middleware/auth.d.ts.map +0 -1
  98. package/dist/runtime/server/dist/middleware/auth.js +0 -124
  99. package/dist/runtime/server/dist/middleware/auth.js.map +0 -1
  100. package/dist/runtime/server/dist/middleware/board-mutation-guard.d.ts +0 -3
  101. package/dist/runtime/server/dist/middleware/board-mutation-guard.d.ts.map +0 -1
  102. package/dist/runtime/server/dist/middleware/board-mutation-guard.js +0 -60
  103. package/dist/runtime/server/dist/middleware/board-mutation-guard.js.map +0 -1
  104. package/dist/runtime/server/dist/middleware/error-handler.d.ts +0 -17
  105. package/dist/runtime/server/dist/middleware/error-handler.d.ts.map +0 -1
  106. package/dist/runtime/server/dist/middleware/error-handler.js +0 -37
  107. package/dist/runtime/server/dist/middleware/error-handler.js.map +0 -1
  108. package/dist/runtime/server/dist/middleware/index.d.ts +0 -4
  109. package/dist/runtime/server/dist/middleware/index.d.ts.map +0 -1
  110. package/dist/runtime/server/dist/middleware/index.js +0 -4
  111. package/dist/runtime/server/dist/middleware/index.js.map +0 -1
  112. package/dist/runtime/server/dist/middleware/logger.d.ts +0 -4
  113. package/dist/runtime/server/dist/middleware/logger.d.ts.map +0 -1
  114. package/dist/runtime/server/dist/middleware/logger.js +0 -87
  115. package/dist/runtime/server/dist/middleware/logger.js.map +0 -1
  116. package/dist/runtime/server/dist/middleware/private-hostname-guard.d.ts +0 -11
  117. package/dist/runtime/server/dist/middleware/private-hostname-guard.d.ts.map +0 -1
  118. package/dist/runtime/server/dist/middleware/private-hostname-guard.js +0 -78
  119. package/dist/runtime/server/dist/middleware/private-hostname-guard.js.map +0 -1
  120. package/dist/runtime/server/dist/middleware/validate.d.ts +0 -4
  121. package/dist/runtime/server/dist/middleware/validate.d.ts.map +0 -1
  122. package/dist/runtime/server/dist/middleware/validate.js +0 -7
  123. package/dist/runtime/server/dist/middleware/validate.js.map +0 -1
  124. package/dist/runtime/server/dist/paths.d.ts +0 -3
  125. package/dist/runtime/server/dist/paths.d.ts.map +0 -1
  126. package/dist/runtime/server/dist/paths.js +0 -31
  127. package/dist/runtime/server/dist/paths.js.map +0 -1
  128. package/dist/runtime/server/dist/realtime/live-events-ws.d.ts +0 -28
  129. package/dist/runtime/server/dist/realtime/live-events-ws.d.ts.map +0 -1
  130. package/dist/runtime/server/dist/realtime/live-events-ws.js +0 -187
  131. package/dist/runtime/server/dist/realtime/live-events-ws.js.map +0 -1
  132. package/dist/runtime/server/dist/redaction.d.ts +0 -4
  133. package/dist/runtime/server/dist/redaction.d.ts.map +0 -1
  134. package/dist/runtime/server/dist/redaction.js +0 -63
  135. package/dist/runtime/server/dist/redaction.js.map +0 -1
  136. package/dist/runtime/server/dist/routes/access.d.ts +0 -56
  137. package/dist/runtime/server/dist/routes/access.d.ts.map +0 -1
  138. package/dist/runtime/server/dist/routes/access.js +0 -2125
  139. package/dist/runtime/server/dist/routes/access.js.map +0 -1
  140. package/dist/runtime/server/dist/routes/activity.d.ts +0 -3
  141. package/dist/runtime/server/dist/routes/activity.d.ts.map +0 -1
  142. package/dist/runtime/server/dist/routes/activity.js +0 -78
  143. package/dist/runtime/server/dist/routes/activity.js.map +0 -1
  144. package/dist/runtime/server/dist/routes/agents.d.ts +0 -3
  145. package/dist/runtime/server/dist/routes/agents.d.ts.map +0 -1
  146. package/dist/runtime/server/dist/routes/agents.js +0 -1485
  147. package/dist/runtime/server/dist/routes/agents.js.map +0 -1
  148. package/dist/runtime/server/dist/routes/approvals.d.ts +0 -3
  149. package/dist/runtime/server/dist/routes/approvals.d.ts.map +0 -1
  150. package/dist/runtime/server/dist/routes/approvals.js +0 -275
  151. package/dist/runtime/server/dist/routes/approvals.js.map +0 -1
  152. package/dist/runtime/server/dist/routes/assets.d.ts +0 -4
  153. package/dist/runtime/server/dist/routes/assets.d.ts.map +0 -1
  154. package/dist/runtime/server/dist/routes/assets.js +0 -309
  155. package/dist/runtime/server/dist/routes/assets.js.map +0 -1
  156. package/dist/runtime/server/dist/routes/authz.d.ts +0 -15
  157. package/dist/runtime/server/dist/routes/authz.d.ts.map +0 -1
  158. package/dist/runtime/server/dist/routes/authz.js +0 -40
  159. package/dist/runtime/server/dist/routes/authz.js.map +0 -1
  160. package/dist/runtime/server/dist/routes/companies.d.ts +0 -3
  161. package/dist/runtime/server/dist/routes/companies.d.ts.map +0 -1
  162. package/dist/runtime/server/dist/routes/companies.js +0 -196
  163. package/dist/runtime/server/dist/routes/companies.js.map +0 -1
  164. package/dist/runtime/server/dist/routes/costs.d.ts +0 -3
  165. package/dist/runtime/server/dist/routes/costs.d.ts.map +0 -1
  166. package/dist/runtime/server/dist/routes/costs.js +0 -268
  167. package/dist/runtime/server/dist/routes/costs.js.map +0 -1
  168. package/dist/runtime/server/dist/routes/dashboard.d.ts +0 -3
  169. package/dist/runtime/server/dist/routes/dashboard.d.ts.map +0 -1
  170. package/dist/runtime/server/dist/routes/dashboard.js +0 -15
  171. package/dist/runtime/server/dist/routes/dashboard.js.map +0 -1
  172. package/dist/runtime/server/dist/routes/execution-workspaces.d.ts +0 -3
  173. package/dist/runtime/server/dist/routes/execution-workspaces.d.ts.map +0 -1
  174. package/dist/runtime/server/dist/routes/execution-workspaces.js +0 -165
  175. package/dist/runtime/server/dist/routes/execution-workspaces.js.map +0 -1
  176. package/dist/runtime/server/dist/routes/goals.d.ts +0 -3
  177. package/dist/runtime/server/dist/routes/goals.d.ts.map +0 -1
  178. package/dist/runtime/server/dist/routes/goals.js +0 -95
  179. package/dist/runtime/server/dist/routes/goals.js.map +0 -1
  180. package/dist/runtime/server/dist/routes/gtm.d.ts +0 -3
  181. package/dist/runtime/server/dist/routes/gtm.d.ts.map +0 -1
  182. package/dist/runtime/server/dist/routes/gtm.js +0 -478
  183. package/dist/runtime/server/dist/routes/gtm.js.map +0 -1
  184. package/dist/runtime/server/dist/routes/health.d.ts +0 -10
  185. package/dist/runtime/server/dist/routes/health.d.ts.map +0 -1
  186. package/dist/runtime/server/dist/routes/health.js +0 -53
  187. package/dist/runtime/server/dist/routes/health.js.map +0 -1
  188. package/dist/runtime/server/dist/routes/index.d.ts +0 -16
  189. package/dist/runtime/server/dist/routes/index.d.ts.map +0 -1
  190. package/dist/runtime/server/dist/routes/index.js +0 -16
  191. package/dist/runtime/server/dist/routes/index.js.map +0 -1
  192. package/dist/runtime/server/dist/routes/instance-settings.d.ts +0 -3
  193. package/dist/runtime/server/dist/routes/instance-settings.d.ts.map +0 -1
  194. package/dist/runtime/server/dist/routes/instance-settings.js +0 -46
  195. package/dist/runtime/server/dist/routes/instance-settings.js.map +0 -1
  196. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.d.ts +0 -9
  197. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.d.ts.map +0 -1
  198. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.js +0 -12
  199. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.js.map +0 -1
  200. package/dist/runtime/server/dist/routes/issues.d.ts +0 -4
  201. package/dist/runtime/server/dist/routes/issues.d.ts.map +0 -1
  202. package/dist/runtime/server/dist/routes/issues.js +0 -1454
  203. package/dist/runtime/server/dist/routes/issues.js.map +0 -1
  204. package/dist/runtime/server/dist/routes/llms.d.ts +0 -3
  205. package/dist/runtime/server/dist/routes/llms.d.ts.map +0 -1
  206. package/dist/runtime/server/dist/routes/llms.js +0 -78
  207. package/dist/runtime/server/dist/routes/llms.js.map +0 -1
  208. package/dist/runtime/server/dist/routes/plugin-ui-static.d.ts +0 -69
  209. package/dist/runtime/server/dist/routes/plugin-ui-static.d.ts.map +0 -1
  210. package/dist/runtime/server/dist/routes/plugin-ui-static.js +0 -411
  211. package/dist/runtime/server/dist/routes/plugin-ui-static.js.map +0 -1
  212. package/dist/runtime/server/dist/routes/plugins.d.ts +0 -120
  213. package/dist/runtime/server/dist/routes/plugins.d.ts.map +0 -1
  214. package/dist/runtime/server/dist/routes/plugins.js +0 -1784
  215. package/dist/runtime/server/dist/routes/plugins.js.map +0 -1
  216. package/dist/runtime/server/dist/routes/projects.d.ts +0 -3
  217. package/dist/runtime/server/dist/routes/projects.d.ts.map +0 -1
  218. package/dist/runtime/server/dist/routes/projects.js +0 -257
  219. package/dist/runtime/server/dist/routes/projects.js.map +0 -1
  220. package/dist/runtime/server/dist/routes/secrets.d.ts +0 -3
  221. package/dist/runtime/server/dist/routes/secrets.d.ts.map +0 -1
  222. package/dist/runtime/server/dist/routes/secrets.js +0 -128
  223. package/dist/runtime/server/dist/routes/secrets.js.map +0 -1
  224. package/dist/runtime/server/dist/routes/sidebar-badges.d.ts +0 -3
  225. package/dist/runtime/server/dist/routes/sidebar-badges.d.ts.map +0 -1
  226. package/dist/runtime/server/dist/routes/sidebar-badges.js +0 -45
  227. package/dist/runtime/server/dist/routes/sidebar-badges.js.map +0 -1
  228. package/dist/runtime/server/dist/routes/tickets.d.ts +0 -3
  229. package/dist/runtime/server/dist/routes/tickets.d.ts.map +0 -1
  230. package/dist/runtime/server/dist/routes/tickets.js +0 -112
  231. package/dist/runtime/server/dist/routes/tickets.js.map +0 -1
  232. package/dist/runtime/server/dist/secrets/external-stub-providers.d.ts +0 -5
  233. package/dist/runtime/server/dist/secrets/external-stub-providers.d.ts.map +0 -1
  234. package/dist/runtime/server/dist/secrets/external-stub-providers.js +0 -21
  235. package/dist/runtime/server/dist/secrets/external-stub-providers.js.map +0 -1
  236. package/dist/runtime/server/dist/secrets/local-encrypted-provider.d.ts +0 -3
  237. package/dist/runtime/server/dist/secrets/local-encrypted-provider.d.ts.map +0 -1
  238. package/dist/runtime/server/dist/secrets/local-encrypted-provider.js +0 -116
  239. package/dist/runtime/server/dist/secrets/local-encrypted-provider.js.map +0 -1
  240. package/dist/runtime/server/dist/secrets/provider-registry.d.ts +0 -5
  241. package/dist/runtime/server/dist/secrets/provider-registry.d.ts.map +0 -1
  242. package/dist/runtime/server/dist/secrets/provider-registry.js +0 -20
  243. package/dist/runtime/server/dist/secrets/provider-registry.js.map +0 -1
  244. package/dist/runtime/server/dist/secrets/types.d.ts +0 -21
  245. package/dist/runtime/server/dist/secrets/types.d.ts.map +0 -1
  246. package/dist/runtime/server/dist/secrets/types.js +0 -2
  247. package/dist/runtime/server/dist/secrets/types.js.map +0 -1
  248. package/dist/runtime/server/dist/services/access.d.ts +0 -93
  249. package/dist/runtime/server/dist/services/access.d.ts.map +0 -1
  250. package/dist/runtime/server/dist/services/access.js +0 -231
  251. package/dist/runtime/server/dist/services/access.js.map +0 -1
  252. package/dist/runtime/server/dist/services/activity-log.d.ts +0 -17
  253. package/dist/runtime/server/dist/services/activity-log.d.ts.map +0 -1
  254. package/dist/runtime/server/dist/services/activity-log.js +0 -68
  255. package/dist/runtime/server/dist/services/activity-log.js.map +0 -1
  256. package/dist/runtime/server/dist/services/activity.d.ts +0 -764
  257. package/dist/runtime/server/dist/services/activity.d.ts.map +0 -1
  258. package/dist/runtime/server/dist/services/activity.js +0 -105
  259. package/dist/runtime/server/dist/services/activity.js.map +0 -1
  260. package/dist/runtime/server/dist/services/agent-permissions.d.ts +0 -6
  261. package/dist/runtime/server/dist/services/agent-permissions.d.ts.map +0 -1
  262. package/dist/runtime/server/dist/services/agent-permissions.js +0 -18
  263. package/dist/runtime/server/dist/services/agent-permissions.js.map +0 -1
  264. package/dist/runtime/server/dist/services/agents.d.ts +0 -1670
  265. package/dist/runtime/server/dist/services/agents.d.ts.map +0 -1
  266. package/dist/runtime/server/dist/services/agents.js +0 -572
  267. package/dist/runtime/server/dist/services/agents.js.map +0 -1
  268. package/dist/runtime/server/dist/services/approvals.d.ts +0 -546
  269. package/dist/runtime/server/dist/services/approvals.d.ts.map +0 -1
  270. package/dist/runtime/server/dist/services/approvals.js +0 -206
  271. package/dist/runtime/server/dist/services/approvals.js.map +0 -1
  272. package/dist/runtime/server/dist/services/assets.d.ts +0 -33
  273. package/dist/runtime/server/dist/services/assets.d.ts.map +0 -1
  274. package/dist/runtime/server/dist/services/assets.js +0 -17
  275. package/dist/runtime/server/dist/services/assets.js.map +0 -1
  276. package/dist/runtime/server/dist/services/budgets.d.ts +0 -38
  277. package/dist/runtime/server/dist/services/budgets.d.ts.map +0 -1
  278. package/dist/runtime/server/dist/services/budgets.js +0 -784
  279. package/dist/runtime/server/dist/services/budgets.js.map +0 -1
  280. package/dist/runtime/server/dist/services/companies.d.ts +0 -124
  281. package/dist/runtime/server/dist/services/companies.d.ts.map +0 -1
  282. package/dist/runtime/server/dist/services/companies.js +0 -256
  283. package/dist/runtime/server/dist/services/companies.js.map +0 -1
  284. package/dist/runtime/server/dist/services/company-portability.d.ts +0 -8
  285. package/dist/runtime/server/dist/services/company-portability.d.ts.map +0 -1
  286. package/dist/runtime/server/dist/services/company-portability.js +0 -869
  287. package/dist/runtime/server/dist/services/company-portability.js.map +0 -1
  288. package/dist/runtime/server/dist/services/costs.d.ts +0 -114
  289. package/dist/runtime/server/dist/services/costs.d.ts.map +0 -1
  290. package/dist/runtime/server/dist/services/costs.js +0 -294
  291. package/dist/runtime/server/dist/services/costs.js.map +0 -1
  292. package/dist/runtime/server/dist/services/cron.d.ts +0 -80
  293. package/dist/runtime/server/dist/services/cron.d.ts.map +0 -1
  294. package/dist/runtime/server/dist/services/cron.js +0 -300
  295. package/dist/runtime/server/dist/services/cron.js.map +0 -1
  296. package/dist/runtime/server/dist/services/dashboard.d.ts +0 -26
  297. package/dist/runtime/server/dist/services/dashboard.d.ts.map +0 -1
  298. package/dist/runtime/server/dist/services/dashboard.js +0 -98
  299. package/dist/runtime/server/dist/services/dashboard.js.map +0 -1
  300. package/dist/runtime/server/dist/services/documents.d.ts +0 -164
  301. package/dist/runtime/server/dist/services/documents.d.ts.map +0 -1
  302. package/dist/runtime/server/dist/services/documents.js +0 -382
  303. package/dist/runtime/server/dist/services/documents.js.map +0 -1
  304. package/dist/runtime/server/dist/services/execution-workspace-policy.d.ts +0 -20
  305. package/dist/runtime/server/dist/services/execution-workspace-policy.d.ts.map +0 -1
  306. package/dist/runtime/server/dist/services/execution-workspace-policy.js +0 -165
  307. package/dist/runtime/server/dist/services/execution-workspace-policy.js.map +0 -1
  308. package/dist/runtime/server/dist/services/execution-workspaces.d.ts +0 -19
  309. package/dist/runtime/server/dist/services/execution-workspaces.d.ts.map +0 -1
  310. package/dist/runtime/server/dist/services/execution-workspaces.js +0 -87
  311. package/dist/runtime/server/dist/services/execution-workspaces.js.map +0 -1
  312. package/dist/runtime/server/dist/services/finance.d.ts +0 -93
  313. package/dist/runtime/server/dist/services/finance.d.ts.map +0 -1
  314. package/dist/runtime/server/dist/services/finance.js +0 -120
  315. package/dist/runtime/server/dist/services/finance.js.map +0 -1
  316. package/dist/runtime/server/dist/services/goals.d.ts +0 -433
  317. package/dist/runtime/server/dist/services/goals.d.ts.map +0 -1
  318. package/dist/runtime/server/dist/services/goals.js +0 -54
  319. package/dist/runtime/server/dist/services/goals.js.map +0 -1
  320. package/dist/runtime/server/dist/services/gtm-state.d.ts +0 -6
  321. package/dist/runtime/server/dist/services/gtm-state.d.ts.map +0 -1
  322. package/dist/runtime/server/dist/services/gtm-state.js +0 -88
  323. package/dist/runtime/server/dist/services/gtm-state.js.map +0 -1
  324. package/dist/runtime/server/dist/services/heartbeat-run-summary.d.ts +0 -2
  325. package/dist/runtime/server/dist/services/heartbeat-run-summary.d.ts.map +0 -1
  326. package/dist/runtime/server/dist/services/heartbeat-run-summary.js +0 -30
  327. package/dist/runtime/server/dist/services/heartbeat-run-summary.js.map +0 -1
  328. package/dist/runtime/server/dist/services/heartbeat.d.ts +0 -796
  329. package/dist/runtime/server/dist/services/heartbeat.d.ts.map +0 -1
  330. package/dist/runtime/server/dist/services/heartbeat.js +0 -3046
  331. package/dist/runtime/server/dist/services/heartbeat.js.map +0 -1
  332. package/dist/runtime/server/dist/services/hire-hook.d.ts +0 -14
  333. package/dist/runtime/server/dist/services/hire-hook.d.ts.map +0 -1
  334. package/dist/runtime/server/dist/services/hire-hook.js +0 -85
  335. package/dist/runtime/server/dist/services/hire-hook.js.map +0 -1
  336. package/dist/runtime/server/dist/services/index.d.ts +0 -30
  337. package/dist/runtime/server/dist/services/index.d.ts.map +0 -1
  338. package/dist/runtime/server/dist/services/index.js +0 -30
  339. package/dist/runtime/server/dist/services/index.js.map +0 -1
  340. package/dist/runtime/server/dist/services/instance-settings.d.ts +0 -9
  341. package/dist/runtime/server/dist/services/instance-settings.d.ts.map +0 -1
  342. package/dist/runtime/server/dist/services/instance-settings.js +0 -80
  343. package/dist/runtime/server/dist/services/instance-settings.js.map +0 -1
  344. package/dist/runtime/server/dist/services/issue-approvals.d.ts +0 -56
  345. package/dist/runtime/server/dist/services/issue-approvals.d.ts.map +0 -1
  346. package/dist/runtime/server/dist/services/issue-approvals.js +0 -153
  347. package/dist/runtime/server/dist/services/issue-approvals.js.map +0 -1
  348. package/dist/runtime/server/dist/services/issue-goal-fallback.d.ts +0 -15
  349. package/dist/runtime/server/dist/services/issue-goal-fallback.d.ts.map +0 -1
  350. package/dist/runtime/server/dist/services/issue-goal-fallback.js +0 -15
  351. package/dist/runtime/server/dist/services/issue-goal-fallback.js.map +0 -1
  352. package/dist/runtime/server/dist/services/issues.d.ts +0 -536
  353. package/dist/runtime/server/dist/services/issues.d.ts.map +0 -1
  354. package/dist/runtime/server/dist/services/issues.js +0 -1321
  355. package/dist/runtime/server/dist/services/issues.js.map +0 -1
  356. package/dist/runtime/server/dist/services/live-events.d.ts +0 -17
  357. package/dist/runtime/server/dist/services/live-events.d.ts.map +0 -1
  358. package/dist/runtime/server/dist/services/live-events.js +0 -33
  359. package/dist/runtime/server/dist/services/live-events.js.map +0 -1
  360. package/dist/runtime/server/dist/services/plugin-capability-validator.d.ts +0 -108
  361. package/dist/runtime/server/dist/services/plugin-capability-validator.d.ts.map +0 -1
  362. package/dist/runtime/server/dist/services/plugin-capability-validator.js +0 -268
  363. package/dist/runtime/server/dist/services/plugin-capability-validator.js.map +0 -1
  364. package/dist/runtime/server/dist/services/plugin-config-validator.d.ts +0 -26
  365. package/dist/runtime/server/dist/services/plugin-config-validator.d.ts.map +0 -1
  366. package/dist/runtime/server/dist/services/plugin-config-validator.js +0 -41
  367. package/dist/runtime/server/dist/services/plugin-config-validator.js.map +0 -1
  368. package/dist/runtime/server/dist/services/plugin-dev-watcher.d.ts +0 -30
  369. package/dist/runtime/server/dist/services/plugin-dev-watcher.d.ts.map +0 -1
  370. package/dist/runtime/server/dist/services/plugin-dev-watcher.js +0 -241
  371. package/dist/runtime/server/dist/services/plugin-dev-watcher.js.map +0 -1
  372. package/dist/runtime/server/dist/services/plugin-event-bus.d.ts +0 -149
  373. package/dist/runtime/server/dist/services/plugin-event-bus.d.ts.map +0 -1
  374. package/dist/runtime/server/dist/services/plugin-event-bus.js +0 -258
  375. package/dist/runtime/server/dist/services/plugin-event-bus.js.map +0 -1
  376. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.d.ts +0 -14
  377. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.d.ts.map +0 -1
  378. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.js +0 -37
  379. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.js.map +0 -1
  380. package/dist/runtime/server/dist/services/plugin-host-services.d.ts +0 -13
  381. package/dist/runtime/server/dist/services/plugin-host-services.d.ts.map +0 -1
  382. package/dist/runtime/server/dist/services/plugin-host-services.js +0 -969
  383. package/dist/runtime/server/dist/services/plugin-host-services.js.map +0 -1
  384. package/dist/runtime/server/dist/services/plugin-job-coordinator.d.ts +0 -81
  385. package/dist/runtime/server/dist/services/plugin-job-coordinator.d.ts.map +0 -1
  386. package/dist/runtime/server/dist/services/plugin-job-coordinator.js +0 -172
  387. package/dist/runtime/server/dist/services/plugin-job-coordinator.js.map +0 -1
  388. package/dist/runtime/server/dist/services/plugin-job-scheduler.d.ts +0 -163
  389. package/dist/runtime/server/dist/services/plugin-job-scheduler.d.ts.map +0 -1
  390. package/dist/runtime/server/dist/services/plugin-job-scheduler.js +0 -454
  391. package/dist/runtime/server/dist/services/plugin-job-scheduler.js.map +0 -1
  392. package/dist/runtime/server/dist/services/plugin-job-store.d.ts +0 -208
  393. package/dist/runtime/server/dist/services/plugin-job-store.d.ts.map +0 -1
  394. package/dist/runtime/server/dist/services/plugin-job-store.js +0 -350
  395. package/dist/runtime/server/dist/services/plugin-job-store.js.map +0 -1
  396. package/dist/runtime/server/dist/services/plugin-lifecycle.d.ts +0 -203
  397. package/dist/runtime/server/dist/services/plugin-lifecycle.d.ts.map +0 -1
  398. package/dist/runtime/server/dist/services/plugin-lifecycle.js +0 -476
  399. package/dist/runtime/server/dist/services/plugin-lifecycle.js.map +0 -1
  400. package/dist/runtime/server/dist/services/plugin-loader.d.ts +0 -441
  401. package/dist/runtime/server/dist/services/plugin-loader.d.ts.map +0 -1
  402. package/dist/runtime/server/dist/services/plugin-loader.js +0 -1192
  403. package/dist/runtime/server/dist/services/plugin-loader.js.map +0 -1
  404. package/dist/runtime/server/dist/services/plugin-log-retention.d.ts +0 -20
  405. package/dist/runtime/server/dist/services/plugin-log-retention.d.ts.map +0 -1
  406. package/dist/runtime/server/dist/services/plugin-log-retention.js +0 -63
  407. package/dist/runtime/server/dist/services/plugin-log-retention.js.map +0 -1
  408. package/dist/runtime/server/dist/services/plugin-manifest-validator.d.ts +0 -79
  409. package/dist/runtime/server/dist/services/plugin-manifest-validator.d.ts.map +0 -1
  410. package/dist/runtime/server/dist/services/plugin-manifest-validator.js +0 -84
  411. package/dist/runtime/server/dist/services/plugin-manifest-validator.js.map +0 -1
  412. package/dist/runtime/server/dist/services/plugin-registry.d.ts +0 -2542
  413. package/dist/runtime/server/dist/services/plugin-registry.d.ts.map +0 -1
  414. package/dist/runtime/server/dist/services/plugin-registry.js +0 -539
  415. package/dist/runtime/server/dist/services/plugin-registry.js.map +0 -1
  416. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.d.ts +0 -40
  417. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.d.ts.map +0 -1
  418. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.js +0 -154
  419. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.js.map +0 -1
  420. package/dist/runtime/server/dist/services/plugin-secrets-handler.d.ts +0 -81
  421. package/dist/runtime/server/dist/services/plugin-secrets-handler.d.ts.map +0 -1
  422. package/dist/runtime/server/dist/services/plugin-secrets-handler.js +0 -275
  423. package/dist/runtime/server/dist/services/plugin-secrets-handler.js.map +0 -1
  424. package/dist/runtime/server/dist/services/plugin-state-store.d.ts +0 -92
  425. package/dist/runtime/server/dist/services/plugin-state-store.d.ts.map +0 -1
  426. package/dist/runtime/server/dist/services/plugin-state-store.js +0 -190
  427. package/dist/runtime/server/dist/services/plugin-state-store.js.map +0 -1
  428. package/dist/runtime/server/dist/services/plugin-stream-bus.d.ts +0 -29
  429. package/dist/runtime/server/dist/services/plugin-stream-bus.d.ts.map +0 -1
  430. package/dist/runtime/server/dist/services/plugin-stream-bus.js +0 -48
  431. package/dist/runtime/server/dist/services/plugin-stream-bus.js.map +0 -1
  432. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.d.ts +0 -180
  433. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.d.ts.map +0 -1
  434. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.js +0 -224
  435. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.js.map +0 -1
  436. package/dist/runtime/server/dist/services/plugin-tool-registry.d.ts +0 -192
  437. package/dist/runtime/server/dist/services/plugin-tool-registry.d.ts.map +0 -1
  438. package/dist/runtime/server/dist/services/plugin-tool-registry.js +0 -224
  439. package/dist/runtime/server/dist/services/plugin-tool-registry.js.map +0 -1
  440. package/dist/runtime/server/dist/services/plugin-worker-manager.d.ts +0 -260
  441. package/dist/runtime/server/dist/services/plugin-worker-manager.d.ts.map +0 -1
  442. package/dist/runtime/server/dist/services/plugin-worker-manager.js +0 -835
  443. package/dist/runtime/server/dist/services/plugin-worker-manager.js.map +0 -1
  444. package/dist/runtime/server/dist/services/projects.d.ts +0 -87
  445. package/dist/runtime/server/dist/services/projects.d.ts.map +0 -1
  446. package/dist/runtime/server/dist/services/projects.js +0 -656
  447. package/dist/runtime/server/dist/services/projects.js.map +0 -1
  448. package/dist/runtime/server/dist/services/quota-windows.d.ts +0 -9
  449. package/dist/runtime/server/dist/services/quota-windows.d.ts.map +0 -1
  450. package/dist/runtime/server/dist/services/quota-windows.js +0 -56
  451. package/dist/runtime/server/dist/services/quota-windows.js.map +0 -1
  452. package/dist/runtime/server/dist/services/run-log-store.d.ts +0 -34
  453. package/dist/runtime/server/dist/services/run-log-store.d.ts.map +0 -1
  454. package/dist/runtime/server/dist/services/run-log-store.js +0 -109
  455. package/dist/runtime/server/dist/services/run-log-store.js.map +0 -1
  456. package/dist/runtime/server/dist/services/secrets.d.ts +0 -510
  457. package/dist/runtime/server/dist/services/secrets.d.ts.map +0 -1
  458. package/dist/runtime/server/dist/services/secrets.js +0 -288
  459. package/dist/runtime/server/dist/services/secrets.js.map +0 -1
  460. package/dist/runtime/server/dist/services/sidebar-badges.d.ts +0 -9
  461. package/dist/runtime/server/dist/services/sidebar-badges.d.ts.map +0 -1
  462. package/dist/runtime/server/dist/services/sidebar-badges.js +0 -33
  463. package/dist/runtime/server/dist/services/sidebar-badges.js.map +0 -1
  464. package/dist/runtime/server/dist/services/tickets.d.ts +0 -1869
  465. package/dist/runtime/server/dist/services/tickets.d.ts.map +0 -1
  466. package/dist/runtime/server/dist/services/tickets.js +0 -78
  467. package/dist/runtime/server/dist/services/tickets.js.map +0 -1
  468. package/dist/runtime/server/dist/services/work-products.d.ts +0 -14
  469. package/dist/runtime/server/dist/services/work-products.d.ts.map +0 -1
  470. package/dist/runtime/server/dist/services/work-products.js +0 -100
  471. package/dist/runtime/server/dist/services/work-products.js.map +0 -1
  472. package/dist/runtime/server/dist/services/workspace-operation-log-store.d.ts +0 -33
  473. package/dist/runtime/server/dist/services/workspace-operation-log-store.d.ts.map +0 -1
  474. package/dist/runtime/server/dist/services/workspace-operation-log-store.js +0 -110
  475. package/dist/runtime/server/dist/services/workspace-operation-log-store.js.map +0 -1
  476. package/dist/runtime/server/dist/services/workspace-operations.d.ts +0 -44
  477. package/dist/runtime/server/dist/services/workspace-operations.d.ts.map +0 -1
  478. package/dist/runtime/server/dist/services/workspace-operations.js +0 -204
  479. package/dist/runtime/server/dist/services/workspace-operations.js.map +0 -1
  480. package/dist/runtime/server/dist/services/workspace-runtime.d.ts +0 -164
  481. package/dist/runtime/server/dist/services/workspace-runtime.d.ts.map +0 -1
  482. package/dist/runtime/server/dist/services/workspace-runtime.js +0 -1235
  483. package/dist/runtime/server/dist/services/workspace-runtime.js.map +0 -1
  484. package/dist/runtime/server/dist/startup-banner.d.ts +0 -31
  485. package/dist/runtime/server/dist/startup-banner.d.ts.map +0 -1
  486. package/dist/runtime/server/dist/startup-banner.js +0 -117
  487. package/dist/runtime/server/dist/startup-banner.js.map +0 -1
  488. package/dist/runtime/server/dist/storage/index.d.ts +0 -6
  489. package/dist/runtime/server/dist/storage/index.d.ts.map +0 -1
  490. package/dist/runtime/server/dist/storage/index.js +0 -29
  491. package/dist/runtime/server/dist/storage/index.js.map +0 -1
  492. package/dist/runtime/server/dist/storage/local-disk-provider.d.ts +0 -3
  493. package/dist/runtime/server/dist/storage/local-disk-provider.d.ts.map +0 -1
  494. package/dist/runtime/server/dist/storage/local-disk-provider.js +0 -79
  495. package/dist/runtime/server/dist/storage/local-disk-provider.js.map +0 -1
  496. package/dist/runtime/server/dist/storage/provider-registry.d.ts +0 -4
  497. package/dist/runtime/server/dist/storage/provider-registry.d.ts.map +0 -1
  498. package/dist/runtime/server/dist/storage/provider-registry.js +0 -15
  499. package/dist/runtime/server/dist/storage/provider-registry.js.map +0 -1
  500. package/dist/runtime/server/dist/storage/s3-provider.d.ts +0 -11
  501. package/dist/runtime/server/dist/storage/s3-provider.d.ts.map +0 -1
  502. package/dist/runtime/server/dist/storage/s3-provider.js +0 -123
  503. package/dist/runtime/server/dist/storage/s3-provider.js.map +0 -1
  504. package/dist/runtime/server/dist/storage/service.d.ts +0 -3
  505. package/dist/runtime/server/dist/storage/service.d.ts.map +0 -1
  506. package/dist/runtime/server/dist/storage/service.js +0 -120
  507. package/dist/runtime/server/dist/storage/service.js.map +0 -1
  508. package/dist/runtime/server/dist/storage/types.d.ts +0 -55
  509. package/dist/runtime/server/dist/storage/types.d.ts.map +0 -1
  510. package/dist/runtime/server/dist/storage/types.js +0 -2
  511. package/dist/runtime/server/dist/storage/types.js.map +0 -1
  512. package/dist/runtime/server/dist/ui-branding.d.ts +0 -14
  513. package/dist/runtime/server/dist/ui-branding.d.ts.map +0 -1
  514. package/dist/runtime/server/dist/ui-branding.js +0 -189
  515. package/dist/runtime/server/dist/ui-branding.js.map +0 -1
  516. package/dist/runtime/server/dist/version.d.ts +0 -2
  517. package/dist/runtime/server/dist/version.d.ts.map +0 -1
  518. package/dist/runtime/server/dist/version.js +0 -5
  519. package/dist/runtime/server/dist/version.js.map +0 -1
  520. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts +0 -2
  521. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts.map +0 -1
  522. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js +0 -94
  523. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js.map +0 -1
  524. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts +0 -2
  525. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts.map +0 -1
  526. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js +0 -2
  527. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js.map +0 -1
  528. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts +0 -3
  529. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts.map +0 -1
  530. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js +0 -106
  531. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js.map +0 -1
  532. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts +0 -8
  533. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts.map +0 -1
  534. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js +0 -36
  535. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js.map +0 -1
  536. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts +0 -18
  537. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts.map +0 -1
  538. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js +0 -453
  539. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js.map +0 -1
  540. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts +0 -7
  541. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts.map +0 -1
  542. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js +0 -56
  543. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js.map +0 -1
  544. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts +0 -22
  545. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts.map +0 -1
  546. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js +0 -158
  547. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js.map +0 -1
  548. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts +0 -20
  549. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts.map +0 -1
  550. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js +0 -477
  551. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js.map +0 -1
  552. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts +0 -3
  553. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts.map +0 -1
  554. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js +0 -201
  555. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js.map +0 -1
  556. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts +0 -3
  557. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts.map +0 -1
  558. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js +0 -115
  559. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js.map +0 -1
  560. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts +0 -3
  561. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts.map +0 -1
  562. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js +0 -3
  563. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js.map +0 -1
  564. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts +0 -3
  565. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts.map +0 -1
  566. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js +0 -149
  567. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js.map +0 -1
  568. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/package.json +0 -42
  569. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts +0 -2
  570. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts.map +0 -1
  571. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js +0 -213
  572. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js.map +0 -1
  573. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts +0 -2
  574. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts.map +0 -1
  575. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js +0 -2
  576. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js.map +0 -1
  577. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts +0 -3
  578. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts.map +0 -1
  579. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js +0 -97
  580. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js.map +0 -1
  581. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts +0 -10
  582. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts.map +0 -1
  583. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js +0 -45
  584. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js.map +0 -1
  585. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts +0 -5
  586. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts.map +0 -1
  587. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js +0 -86
  588. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js.map +0 -1
  589. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts +0 -11
  590. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts.map +0 -1
  591. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js +0 -451
  592. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js.map +0 -1
  593. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts +0 -7
  594. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts.map +0 -1
  595. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js +0 -56
  596. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js.map +0 -1
  597. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts +0 -12
  598. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts.map +0 -1
  599. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js +0 -67
  600. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js.map +0 -1
  601. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts +0 -64
  602. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts.map +0 -1
  603. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js +0 -425
  604. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js.map +0 -1
  605. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts +0 -3
  606. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts.map +0 -1
  607. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js +0 -194
  608. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js.map +0 -1
  609. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts +0 -3
  610. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts.map +0 -1
  611. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js +0 -116
  612. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js.map +0 -1
  613. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts +0 -3
  614. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts.map +0 -1
  615. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js +0 -3
  616. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js.map +0 -1
  617. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts +0 -3
  618. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts.map +0 -1
  619. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js +0 -233
  620. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js.map +0 -1
  621. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/package.json +0 -42
  622. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts +0 -2
  623. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts.map +0 -1
  624. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js +0 -296
  625. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js.map +0 -1
  626. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts +0 -2
  627. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts.map +0 -1
  628. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js +0 -2
  629. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js.map +0 -1
  630. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts +0 -9
  631. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts.map +0 -1
  632. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js +0 -81
  633. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js.map +0 -1
  634. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts +0 -14
  635. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts.map +0 -1
  636. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js +0 -416
  637. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js.map +0 -1
  638. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts +0 -6
  639. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts.map +0 -1
  640. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js +0 -61
  641. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js.map +0 -1
  642. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts +0 -13
  643. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts.map +0 -1
  644. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js +0 -139
  645. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js.map +0 -1
  646. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts +0 -3
  647. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts.map +0 -1
  648. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js +0 -188
  649. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js.map +0 -1
  650. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts +0 -5
  651. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts.map +0 -1
  652. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js +0 -13
  653. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js.map +0 -1
  654. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts +0 -2
  655. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts.map +0 -1
  656. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js +0 -7
  657. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js.map +0 -1
  658. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts +0 -3
  659. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts.map +0 -1
  660. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js +0 -92
  661. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js.map +0 -1
  662. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts +0 -3
  663. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts.map +0 -1
  664. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js +0 -3
  665. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js.map +0 -1
  666. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts +0 -3
  667. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts.map +0 -1
  668. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js +0 -373
  669. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js.map +0 -1
  670. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/package.json +0 -42
  671. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts +0 -2
  672. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts.map +0 -1
  673. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js +0 -198
  674. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js.map +0 -1
  675. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts +0 -2
  676. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts.map +0 -1
  677. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js +0 -2
  678. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js.map +0 -1
  679. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts +0 -9
  680. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts.map +0 -1
  681. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js +0 -46
  682. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js.map +0 -1
  683. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts +0 -3
  684. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts.map +0 -1
  685. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js +0 -364
  686. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js.map +0 -1
  687. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts +0 -6
  688. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts.map +0 -1
  689. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js +0 -61
  690. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js.map +0 -1
  691. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts +0 -31
  692. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts.map +0 -1
  693. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js +0 -227
  694. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js.map +0 -1
  695. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts +0 -3
  696. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts.map +0 -1
  697. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js +0 -203
  698. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js.map +0 -1
  699. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts +0 -2
  700. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts.map +0 -1
  701. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js +0 -7
  702. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js.map +0 -1
  703. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts +0 -3
  704. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts.map +0 -1
  705. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js +0 -84
  706. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js.map +0 -1
  707. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts +0 -3
  708. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts.map +0 -1
  709. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js +0 -3
  710. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js.map +0 -1
  711. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts +0 -3
  712. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts.map +0 -1
  713. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js +0 -247
  714. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js.map +0 -1
  715. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/package.json +0 -42
  716. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts +0 -2
  717. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts.map +0 -1
  718. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js +0 -20
  719. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js.map +0 -1
  720. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts +0 -2
  721. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts.map +0 -1
  722. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js +0 -2
  723. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js.map +0 -1
  724. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts +0 -8
  725. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts.map +0 -1
  726. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js +0 -53
  727. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js.map +0 -1
  728. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts +0 -3
  729. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts.map +0 -1
  730. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js +0 -1146
  731. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js.map +0 -1
  732. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts +0 -3
  733. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts.map +0 -1
  734. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js +0 -3
  735. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js.map +0 -1
  736. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts +0 -3
  737. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts.map +0 -1
  738. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js +0 -290
  739. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js.map +0 -1
  740. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts +0 -5
  741. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts.map +0 -1
  742. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js +0 -13
  743. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js.map +0 -1
  744. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts +0 -3
  745. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts.map +0 -1
  746. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js +0 -33
  747. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js.map +0 -1
  748. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts +0 -3
  749. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts.map +0 -1
  750. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js +0 -3
  751. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js.map +0 -1
  752. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts +0 -3
  753. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts.map +0 -1
  754. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js +0 -64
  755. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js.map +0 -1
  756. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/package.json +0 -43
  757. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts +0 -2
  758. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts.map +0 -1
  759. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js +0 -115
  760. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js.map +0 -1
  761. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts +0 -2
  762. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts.map +0 -1
  763. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js +0 -2
  764. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js.map +0 -1
  765. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts +0 -8
  766. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts.map +0 -1
  767. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js +0 -39
  768. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js.map +0 -1
  769. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts +0 -3
  770. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts.map +0 -1
  771. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js +0 -337
  772. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js.map +0 -1
  773. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts +0 -7
  774. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts.map +0 -1
  775. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js +0 -62
  776. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js.map +0 -1
  777. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts +0 -20
  778. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts.map +0 -1
  779. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js +0 -165
  780. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js.map +0 -1
  781. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts +0 -2
  782. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts.map +0 -1
  783. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js +0 -22
  784. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js.map +0 -1
  785. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts +0 -13
  786. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts.map +0 -1
  787. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js +0 -97
  788. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js.map +0 -1
  789. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts +0 -2
  790. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts.map +0 -1
  791. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js +0 -48
  792. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js.map +0 -1
  793. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts +0 -3
  794. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts.map +0 -1
  795. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js +0 -300
  796. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js.map +0 -1
  797. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts +0 -3
  798. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts.map +0 -1
  799. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js +0 -87
  800. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js.map +0 -1
  801. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts +0 -3
  802. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts.map +0 -1
  803. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js +0 -3
  804. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js.map +0 -1
  805. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts +0 -3
  806. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts.map +0 -1
  807. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js +0 -141
  808. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js.map +0 -1
  809. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/package.json +0 -42
  810. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts +0 -2
  811. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts.map +0 -1
  812. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js +0 -99
  813. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js.map +0 -1
  814. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts +0 -2
  815. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts.map +0 -1
  816. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js +0 -2
  817. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js.map +0 -1
  818. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts +0 -8
  819. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts.map +0 -1
  820. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js +0 -39
  821. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js.map +0 -1
  822. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts +0 -3
  823. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts.map +0 -1
  824. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js +0 -405
  825. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js.map +0 -1
  826. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts +0 -7
  827. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts.map +0 -1
  828. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js +0 -50
  829. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js.map +0 -1
  830. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts +0 -20
  831. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts.map +0 -1
  832. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js +0 -161
  833. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js.map +0 -1
  834. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts +0 -2
  835. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts.map +0 -1
  836. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js +0 -22
  837. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js.map +0 -1
  838. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts +0 -23
  839. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts.map +0 -1
  840. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js +0 -180
  841. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js.map +0 -1
  842. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts +0 -2
  843. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts.map +0 -1
  844. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js +0 -206
  845. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js.map +0 -1
  846. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts +0 -3
  847. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts.map +0 -1
  848. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js +0 -257
  849. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js.map +0 -1
  850. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts +0 -3
  851. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts.map +0 -1
  852. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js +0 -82
  853. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js.map +0 -1
  854. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts +0 -3
  855. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts.map +0 -1
  856. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js +0 -3
  857. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js.map +0 -1
  858. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts +0 -3
  859. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts.map +0 -1
  860. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js +0 -163
  861. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js.map +0 -1
  862. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/package.json +0 -42
  863. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts +0 -2
  864. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts.map +0 -1
  865. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js +0 -16
  866. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js.map +0 -1
  867. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts +0 -2
  868. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts.map +0 -1
  869. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js +0 -14
  870. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js.map +0 -1
  871. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts +0 -6
  872. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts.map +0 -1
  873. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js +0 -4
  874. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js.map +0 -1
  875. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts +0 -6
  876. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts.map +0 -1
  877. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js +0 -75
  878. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js.map +0 -1
  879. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts +0 -62
  880. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts.map +0 -1
  881. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js +0 -419
  882. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js.map +0 -1
  883. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts +0 -25
  884. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts.map +0 -1
  885. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js +0 -142
  886. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js.map +0 -1
  887. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts +0 -290
  888. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts.map +0 -1
  889. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js +0 -5
  890. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js.map +0 -1
  891. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/package.json +0 -30
  892. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts +0 -24
  893. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts.map +0 -1
  894. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js +0 -448
  895. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js.map +0 -1
  896. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts +0 -2
  897. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts.map +0 -1
  898. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js +0 -103
  899. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js.map +0 -1
  900. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts +0 -43
  901. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts.map +0 -1
  902. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js +0 -574
  903. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js.map +0 -1
  904. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts +0 -2
  905. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts.map +0 -1
  906. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js +0 -117
  907. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js.map +0 -1
  908. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts +0 -4
  909. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts.map +0 -1
  910. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js +0 -4
  911. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js.map +0 -1
  912. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts +0 -2
  913. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts.map +0 -1
  914. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js +0 -25
  915. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js.map +0 -1
  916. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts +0 -7
  917. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts.map +0 -1
  918. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js +0 -163
  919. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js.map +0 -1
  920. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts +0 -2
  921. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts.map +0 -1
  922. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js +0 -55
  923. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js.map +0 -1
  924. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0000_mature_masked_marvel.sql +0 -208
  925. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0001_fast_northstar.sql +0 -87
  926. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0002_big_zaladane.sql +0 -1
  927. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0003_shallow_quentin_quire.sql +0 -5
  928. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0004_issue_identifiers.sql +0 -28
  929. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0005_chief_luke_cage.sql +0 -19
  930. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0006_overjoyed_mister_sinister.sql +0 -36
  931. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0007_new_quentin_quire.sql +0 -20
  932. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0008_amused_zzzax.sql +0 -1
  933. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0009_fast_jackal.sql +0 -36
  934. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0010_stale_justin_hammer.sql +0 -37
  935. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0011_windy_corsair.sql +0 -18
  936. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0012_perpetual_ser_duncan.sql +0 -2
  937. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0013_dashing_wasp.sql +0 -4
  938. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0014_many_mikhail_rasputin.sql +0 -135
  939. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0015_project_color_archived.sql +0 -2
  940. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0016_agent_icon.sql +0 -1
  941. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0017_tiresome_gabe_jones.sql +0 -51
  942. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0018_flat_sleepwalker.sql +0 -26
  943. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0019_public_victor_mancha.sql +0 -18
  944. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0020_white_anita_blake.sql +0 -1
  945. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0021_chief_vindicator.sql +0 -1
  946. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0022_company_brand_color.sql +0 -1
  947. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0023_fair_lethal_legion.sql +0 -3
  948. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0024_far_beast.sql +0 -2
  949. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0025_nasty_salo.sql +0 -15
  950. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0026_lying_pete_wisdom.sql +0 -39
  951. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0027_tranquil_tenebrous.sql +0 -2
  952. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0028_harsh_goliath.sql +0 -54
  953. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0029_plugin_tables.sql +0 -177
  954. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0030_rich_magneto.sql +0 -12
  955. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0031_zippy_magma.sql +0 -51
  956. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0032_pretty_doctor_octopus.sql +0 -102
  957. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0033_shiny_black_tarantula.sql +0 -2
  958. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0034_fat_dormammu.sql +0 -2
  959. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0035_marvelous_satana.sql +0 -91
  960. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0036_cheerful_nitro.sql +0 -9
  961. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0037_friendly_eddie_brock.sql +0 -29
  962. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0038_careless_iron_monger.sql +0 -5
  963. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0039_tickets.sql +0 -25
  964. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0040_ticket_meta.sql +0 -3
  965. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0000_snapshot.json +0 -1743
  966. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0001_snapshot.json +0 -2441
  967. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0002_snapshot.json +0 -2454
  968. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0003_snapshot.json +0 -2502
  969. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0005_snapshot.json +0 -2719
  970. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0006_snapshot.json +0 -3048
  971. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0007_snapshot.json +0 -3258
  972. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0008_snapshot.json +0 -3264
  973. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0009_snapshot.json +0 -3587
  974. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0010_snapshot.json +0 -3929
  975. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0011_snapshot.json +0 -4068
  976. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0012_snapshot.json +0 -4087
  977. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0013_snapshot.json +0 -4118
  978. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0014_snapshot.json +0 -5187
  979. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0017_snapshot.json +0 -5215
  980. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0018_snapshot.json +0 -5450
  981. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0019_snapshot.json +0 -5603
  982. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0020_snapshot.json +0 -5603
  983. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0021_snapshot.json +0 -5609
  984. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0023_snapshot.json +0 -5633
  985. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0024_snapshot.json +0 -5693
  986. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0025_snapshot.json +0 -5849
  987. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0027_snapshot.json +0 -6205
  988. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0028_snapshot.json +0 -6710
  989. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0029_snapshot.json +0 -7899
  990. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0030_snapshot.json +0 -8003
  991. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0031_snapshot.json +0 -7242
  992. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0032_snapshot.json +0 -7733
  993. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0033_snapshot.json +0 -9038
  994. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0034_snapshot.json +0 -9039
  995. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0035_snapshot.json +0 -9959
  996. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0036_snapshot.json +0 -10023
  997. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0037_snapshot.json +0 -10263
  998. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0038_snapshot.json +0 -10301
  999. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/_journal.json +0 -293
  1000. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts +0 -16
  1001. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts.map +0 -1
  1002. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js +0 -197
  1003. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js.map +0 -1
  1004. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts +0 -2
  1005. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts.map +0 -1
  1006. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js +0 -93
  1007. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js.map +0 -1
  1008. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts +0 -197
  1009. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts.map +0 -1
  1010. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js +0 -22
  1011. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js.map +0 -1
  1012. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts +0 -144
  1013. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts.map +0 -1
  1014. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js +0 -17
  1015. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js.map +0 -1
  1016. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts +0 -201
  1017. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts.map +0 -1
  1018. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js +0 -20
  1019. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js.map +0 -1
  1020. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts +0 -248
  1021. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts.map +0 -1
  1022. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js +0 -23
  1023. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js.map +0 -1
  1024. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts +0 -197
  1025. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts.map +0 -1
  1026. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js +0 -22
  1027. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js.map +0 -1
  1028. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts +0 -333
  1029. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts.map +0 -1
  1030. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js +0 -29
  1031. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js.map +0 -1
  1032. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts +0 -373
  1033. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts.map +0 -1
  1034. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js +0 -29
  1035. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js.map +0 -1
  1036. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts +0 -144
  1037. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts.map +0 -1
  1038. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js +0 -19
  1039. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js.map +0 -1
  1040. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts +0 -214
  1041. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts.map +0 -1
  1042. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js +0 -20
  1043. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js.map +0 -1
  1044. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts +0 -212
  1045. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts.map +0 -1
  1046. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js +0 -22
  1047. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js.map +0 -1
  1048. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts +0 -607
  1049. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts.map +0 -1
  1050. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js +0 -44
  1051. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js.map +0 -1
  1052. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts +0 -297
  1053. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts.map +0 -1
  1054. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js +0 -29
  1055. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js.map +0 -1
  1056. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts +0 -263
  1057. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts.map +0 -1
  1058. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js +0 -24
  1059. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js.map +0 -1
  1060. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts +0 -246
  1061. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts.map +0 -1
  1062. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js +0 -22
  1063. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js.map +0 -1
  1064. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts +0 -93
  1065. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts.map +0 -1
  1066. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js +0 -14
  1067. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js.map +0 -1
  1068. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts +0 -144
  1069. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts.map +0 -1
  1070. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js +0 -17
  1071. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js.map +0 -1
  1072. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts +0 -163
  1073. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts.map +0 -1
  1074. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js +0 -19
  1075. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js.map +0 -1
  1076. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts +0 -195
  1077. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts.map +0 -1
  1078. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js +0 -21
  1079. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js.map +0 -1
  1080. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts +0 -314
  1081. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts.map +0 -1
  1082. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js +0 -34
  1083. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js.map +0 -1
  1084. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts +0 -161
  1085. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts.map +0 -1
  1086. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js +0 -19
  1087. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js.map +0 -1
  1088. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts +0 -229
  1089. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts.map +0 -1
  1090. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js +0 -22
  1091. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js.map +0 -1
  1092. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts +0 -418
  1093. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts.map +0 -1
  1094. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js +0 -39
  1095. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js.map +0 -1
  1096. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts +0 -469
  1097. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts.map +0 -1
  1098. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js +0 -45
  1099. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js.map +0 -1
  1100. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts +0 -178
  1101. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts.map +0 -1
  1102. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js +0 -18
  1103. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js.map +0 -1
  1104. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts +0 -214
  1105. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts.map +0 -1
  1106. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js +0 -23
  1107. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js.map +0 -1
  1108. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts +0 -558
  1109. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts.map +0 -1
  1110. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js +0 -43
  1111. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js.map +0 -1
  1112. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts +0 -55
  1113. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts.map +0 -1
  1114. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js +0 -55
  1115. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js.map +0 -1
  1116. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts +0 -95
  1117. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts.map +0 -1
  1118. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js +0 -11
  1119. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js.map +0 -1
  1120. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts +0 -93
  1121. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts.map +0 -1
  1122. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js +0 -12
  1123. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js.map +0 -1
  1124. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts +0 -214
  1125. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts.map +0 -1
  1126. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js +0 -20
  1127. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js.map +0 -1
  1128. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts +0 -110
  1129. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts.map +0 -1
  1130. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js +0 -19
  1131. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js.map +0 -1
  1132. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts +0 -127
  1133. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts.map +0 -1
  1134. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js +0 -19
  1135. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js.map +0 -1
  1136. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts +0 -144
  1137. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts.map +0 -1
  1138. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js +0 -20
  1139. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js.map +0 -1
  1140. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts +0 -127
  1141. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts.map +0 -1
  1142. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js +0 -18
  1143. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js.map +0 -1
  1144. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts +0 -76
  1145. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts.map +0 -1
  1146. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js +0 -16
  1147. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js.map +0 -1
  1148. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts +0 -127
  1149. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts.map +0 -1
  1150. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js +0 -17
  1151. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js.map +0 -1
  1152. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts +0 -350
  1153. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts.map +0 -1
  1154. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js +0 -37
  1155. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js.map +0 -1
  1156. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts +0 -590
  1157. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts.map +0 -1
  1158. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js +0 -58
  1159. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js.map +0 -1
  1160. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts +0 -384
  1161. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts.map +0 -1
  1162. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js +0 -32
  1163. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js.map +0 -1
  1164. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts +0 -110
  1165. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts.map +0 -1
  1166. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js +0 -14
  1167. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js.map +0 -1
  1168. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts +0 -158
  1169. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts.map +0 -1
  1170. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js +0 -34
  1171. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js.map +0 -1
  1172. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts +0 -123
  1173. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts.map +0 -1
  1174. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js +0 -26
  1175. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js.map +0 -1
  1176. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts +0 -213
  1177. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts.map +0 -1
  1178. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js +0 -37
  1179. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js.map +0 -1
  1180. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts +0 -392
  1181. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts.map +0 -1
  1182. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js +0 -83
  1183. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js.map +0 -1
  1184. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts +0 -125
  1185. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts.map +0 -1
  1186. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js +0 -29
  1187. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js.map +0 -1
  1188. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts +0 -169
  1189. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts.map +0 -1
  1190. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js +0 -68
  1191. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js.map +0 -1
  1192. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts +0 -239
  1193. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts.map +0 -1
  1194. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js +0 -52
  1195. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js.map +0 -1
  1196. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts +0 -246
  1197. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts.map +0 -1
  1198. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js +0 -31
  1199. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js.map +0 -1
  1200. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts +0 -163
  1201. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts.map +0 -1
  1202. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js +0 -17
  1203. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js.map +0 -1
  1204. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts +0 -93
  1205. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts.map +0 -1
  1206. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js +0 -17
  1207. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js.map +0 -1
  1208. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts +0 -333
  1209. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts.map +0 -1
  1210. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js +0 -32
  1211. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js.map +0 -1
  1212. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts +0 -265
  1213. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts.map +0 -1
  1214. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js +0 -24
  1215. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js.map +0 -1
  1216. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts +0 -284
  1217. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts.map +0 -1
  1218. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js +0 -24
  1219. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js.map +0 -1
  1220. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts +0 -367
  1221. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts.map +0 -1
  1222. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js +0 -35
  1223. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js.map +0 -1
  1224. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts +0 -469
  1225. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts.map +0 -1
  1226. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js +0 -44
  1227. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js.map +0 -1
  1228. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts +0 -2
  1229. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts.map +0 -1
  1230. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js +0 -91
  1231. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js.map +0 -1
  1232. package/dist/runtime/server/node_modules/@paperclipai/db/package.json +0 -36
  1233. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts +0 -57
  1234. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts.map +0 -1
  1235. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js +0 -105
  1236. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js.map +0 -1
  1237. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts +0 -218
  1238. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts.map +0 -1
  1239. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js +0 -85
  1240. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js.map +0 -1
  1241. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts +0 -3
  1242. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts.map +0 -1
  1243. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js +0 -49
  1244. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js.map +0 -1
  1245. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts +0 -34
  1246. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts.map +0 -1
  1247. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js +0 -194
  1248. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js.map +0 -1
  1249. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts +0 -229
  1250. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts.map +0 -1
  1251. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js +0 -353
  1252. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js.map +0 -1
  1253. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts +0 -84
  1254. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts.map +0 -1
  1255. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js +0 -84
  1256. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js.map +0 -1
  1257. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts +0 -881
  1258. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts.map +0 -1
  1259. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js +0 -297
  1260. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js.map +0 -1
  1261. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts +0 -63
  1262. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts.map +0 -1
  1263. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js +0 -702
  1264. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js.map +0 -1
  1265. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts +0 -982
  1266. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts.map +0 -1
  1267. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js +0 -12
  1268. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js.map +0 -1
  1269. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts +0 -257
  1270. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts.map +0 -1
  1271. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js +0 -97
  1272. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js.map +0 -1
  1273. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts +0 -120
  1274. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts.map +0 -1
  1275. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js +0 -148
  1276. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js.map +0 -1
  1277. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts +0 -50
  1278. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts.map +0 -1
  1279. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js +0 -48
  1280. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js.map +0 -1
  1281. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts +0 -3
  1282. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts.map +0 -1
  1283. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js +0 -30
  1284. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js.map +0 -1
  1285. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts +0 -308
  1286. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts.map +0 -1
  1287. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js +0 -17
  1288. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js.map +0 -1
  1289. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts +0 -127
  1290. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts.map +0 -1
  1291. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js +0 -941
  1292. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js.map +0 -1
  1293. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/package.json +0 -74
  1294. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts +0 -4
  1295. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts.map +0 -1
  1296. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js +0 -22
  1297. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js.map +0 -1
  1298. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts +0 -20
  1299. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts.map +0 -1
  1300. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js +0 -20
  1301. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js.map +0 -1
  1302. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts +0 -725
  1303. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts.map +0 -1
  1304. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js +0 -151
  1305. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js.map +0 -1
  1306. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts +0 -214
  1307. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts.map +0 -1
  1308. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js +0 -553
  1309. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js.map +0 -1
  1310. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts +0 -116
  1311. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts.map +0 -1
  1312. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js +0 -181
  1313. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js.map +0 -1
  1314. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts +0 -12
  1315. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts.map +0 -1
  1316. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js +0 -11
  1317. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js.map +0 -1
  1318. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts +0 -9
  1319. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts.map +0 -1
  1320. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js +0 -71
  1321. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js.map +0 -1
  1322. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts +0 -3
  1323. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts.map +0 -1
  1324. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js +0 -16
  1325. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js.map +0 -1
  1326. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts +0 -15
  1327. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts.map +0 -1
  1328. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js +0 -40
  1329. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js.map +0 -1
  1330. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts +0 -67
  1331. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts.map +0 -1
  1332. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js +0 -2
  1333. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js.map +0 -1
  1334. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts +0 -14
  1335. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts.map +0 -1
  1336. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js +0 -2
  1337. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js.map +0 -1
  1338. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts +0 -80
  1339. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts.map +0 -1
  1340. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js +0 -2
  1341. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js.map +0 -1
  1342. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts +0 -26
  1343. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts.map +0 -1
  1344. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js +0 -2
  1345. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js.map +0 -1
  1346. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts +0 -16
  1347. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts.map +0 -1
  1348. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js +0 -2
  1349. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js.map +0 -1
  1350. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts +0 -86
  1351. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts.map +0 -1
  1352. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js +0 -2
  1353. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js.map +0 -1
  1354. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts +0 -120
  1355. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts.map +0 -1
  1356. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js +0 -2
  1357. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js.map +0 -1
  1358. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts +0 -20
  1359. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts.map +0 -1
  1360. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js +0 -2
  1361. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js.map +0 -1
  1362. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts +0 -106
  1363. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts.map +0 -1
  1364. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js +0 -2
  1365. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js.map +0 -1
  1366. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts +0 -28
  1367. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts.map +0 -1
  1368. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js +0 -2
  1369. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js.map +0 -1
  1370. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts +0 -57
  1371. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts.map +0 -1
  1372. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js +0 -2
  1373. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js.map +0 -1
  1374. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts +0 -14
  1375. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts.map +0 -1
  1376. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js +0 -2
  1377. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js.map +0 -1
  1378. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts +0 -118
  1379. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts.map +0 -1
  1380. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js +0 -2
  1381. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js.map +0 -1
  1382. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts +0 -26
  1383. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts.map +0 -1
  1384. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js +0 -2
  1385. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js.map +0 -1
  1386. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts +0 -10
  1387. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts.map +0 -1
  1388. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js +0 -2
  1389. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js.map +0 -1
  1390. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts +0 -164
  1391. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts.map +0 -1
  1392. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js +0 -2
  1393. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js.map +0 -1
  1394. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts +0 -9
  1395. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts.map +0 -1
  1396. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js +0 -2
  1397. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js.map +0 -1
  1398. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts +0 -419
  1399. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts.map +0 -1
  1400. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js +0 -2
  1401. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js.map +0 -1
  1402. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts +0 -67
  1403. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts.map +0 -1
  1404. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js +0 -2
  1405. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js.map +0 -1
  1406. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts +0 -26
  1407. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts.map +0 -1
  1408. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js +0 -2
  1409. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js.map +0 -1
  1410. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts +0 -32
  1411. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts.map +0 -1
  1412. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js +0 -2
  1413. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js.map +0 -1
  1414. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts +0 -7
  1415. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts.map +0 -1
  1416. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js +0 -2
  1417. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js.map +0 -1
  1418. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts +0 -26
  1419. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts.map +0 -1
  1420. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js +0 -2
  1421. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js.map +0 -1
  1422. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts +0 -27
  1423. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts.map +0 -1
  1424. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js +0 -2
  1425. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js.map +0 -1
  1426. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts +0 -26
  1427. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts.map +0 -1
  1428. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js +0 -2
  1429. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js.map +0 -1
  1430. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts +0 -86
  1431. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts.map +0 -1
  1432. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js +0 -2
  1433. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js.map +0 -1
  1434. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts +0 -109
  1435. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts.map +0 -1
  1436. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js +0 -40
  1437. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js.map +0 -1
  1438. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts +0 -235
  1439. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts.map +0 -1
  1440. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js +0 -71
  1441. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js.map +0 -1
  1442. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts +0 -57
  1443. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts.map +0 -1
  1444. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js +0 -23
  1445. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js.map +0 -1
  1446. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts +0 -10
  1447. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts.map +0 -1
  1448. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js +0 -11
  1449. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js.map +0 -1
  1450. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts +0 -56
  1451. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts.map +0 -1
  1452. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js +0 -27
  1453. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js.map +0 -1
  1454. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts +0 -1535
  1455. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts.map +0 -1
  1456. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js +0 -95
  1457. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js.map +0 -1
  1458. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts +0 -64
  1459. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts.map +0 -1
  1460. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js +0 -25
  1461. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js.map +0 -1
  1462. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts +0 -92
  1463. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts.map +0 -1
  1464. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js +0 -26
  1465. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js.map +0 -1
  1466. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts +0 -20
  1467. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts.map +0 -1
  1468. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js +0 -15
  1469. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js.map +0 -1
  1470. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts +0 -129
  1471. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts.map +0 -1
  1472. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js +0 -32
  1473. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js.map +0 -1
  1474. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts +0 -48
  1475. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts.map +0 -1
  1476. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js +0 -12
  1477. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js.map +0 -1
  1478. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts +0 -19
  1479. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts.map +0 -1
  1480. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js +0 -19
  1481. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js.map +0 -1
  1482. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts +0 -18
  1483. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts.map +0 -1
  1484. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js +0 -6
  1485. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js.map +0 -1
  1486. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts +0 -656
  1487. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts.map +0 -1
  1488. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js +0 -95
  1489. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js.map +0 -1
  1490. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts +0 -1173
  1491. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts.map +0 -1
  1492. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js +0 -547
  1493. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js.map +0 -1
  1494. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts +0 -583
  1495. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts.map +0 -1
  1496. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js +0 -93
  1497. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js.map +0 -1
  1498. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts +0 -114
  1499. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts.map +0 -1
  1500. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js +0 -35
  1501. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js.map +0 -1
  1502. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts +0 -56
  1503. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts.map +0 -1
  1504. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js +0 -22
  1505. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js.map +0 -1
  1506. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts +0 -105
  1507. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts.map +0 -1
  1508. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js +0 -46
  1509. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js.map +0 -1
  1510. package/dist/runtime/server/node_modules/@paperclipai/shared/package.json +0 -33
  1511. package/dist/runtime/server/package.json +0 -5
  1512. package/dist/runtime/server/ui-dist/android-chrome-192x192.png +0 -0
  1513. package/dist/runtime/server/ui-dist/android-chrome-512x512.png +0 -0
  1514. package/dist/runtime/server/ui-dist/apple-touch-icon.png +0 -0
  1515. package/dist/runtime/server/ui-dist/assets/OnboardingWizard-BiZHH3vY.js +0 -834
  1516. package/dist/runtime/server/ui-dist/assets/_basePickBy-DOJDGGWo.js +0 -1
  1517. package/dist/runtime/server/ui-dist/assets/_baseUniq-DjoWC9VG.js +0 -1
  1518. package/dist/runtime/server/ui-dist/assets/apl-B4CMkyY2.js +0 -1
  1519. package/dist/runtime/server/ui-dist/assets/arc-DzAhgPuQ.js +0 -1
  1520. package/dist/runtime/server/ui-dist/assets/architectureDiagram-VXUJARFQ-CFxoZ9U1.js +0 -36
  1521. package/dist/runtime/server/ui-dist/assets/asciiarmor-Df11BRmG.js +0 -1
  1522. package/dist/runtime/server/ui-dist/assets/asn1-EdZsLKOL.js +0 -1
  1523. package/dist/runtime/server/ui-dist/assets/asterisk-B-8jnY81.js +0 -1
  1524. package/dist/runtime/server/ui-dist/assets/blockDiagram-VD42YOAC-CmcNReYb.js +0 -122
  1525. package/dist/runtime/server/ui-dist/assets/brainfuck-C4LP7Hcl.js +0 -1
  1526. package/dist/runtime/server/ui-dist/assets/c4Diagram-YG6GDRKO-62g03z24.js +0 -10
  1527. package/dist/runtime/server/ui-dist/assets/channel-CyMiLt_6.js +0 -1
  1528. package/dist/runtime/server/ui-dist/assets/chunk-4BX2VUAB-DdKgkZWf.js +0 -1
  1529. package/dist/runtime/server/ui-dist/assets/chunk-55IACEB6-BG61sDBH.js +0 -1
  1530. package/dist/runtime/server/ui-dist/assets/chunk-B4BG7PRW-jHjDOzs3.js +0 -165
  1531. package/dist/runtime/server/ui-dist/assets/chunk-DI55MBZ5-QWOEgAft.js +0 -220
  1532. package/dist/runtime/server/ui-dist/assets/chunk-FMBD7UC4-BTtsDCBm.js +0 -15
  1533. package/dist/runtime/server/ui-dist/assets/chunk-QN33PNHL-DQ0G5mTp.js +0 -1
  1534. package/dist/runtime/server/ui-dist/assets/chunk-QZHKN3VN-CwD654Gq.js +0 -1
  1535. package/dist/runtime/server/ui-dist/assets/chunk-TZMSLE5B-BW4AfItk.js +0 -1
  1536. package/dist/runtime/server/ui-dist/assets/classDiagram-2ON5EDUG-Bpt4jbt_.js +0 -1
  1537. package/dist/runtime/server/ui-dist/assets/classDiagram-v2-WZHVMYZB-Bpt4jbt_.js +0 -1
  1538. package/dist/runtime/server/ui-dist/assets/clike-B9uivgTg.js +0 -1
  1539. package/dist/runtime/server/ui-dist/assets/clojure-BMjYHr_A.js +0 -1
  1540. package/dist/runtime/server/ui-dist/assets/clone-C1pAl4cM.js +0 -1
  1541. package/dist/runtime/server/ui-dist/assets/cmake-BQqOBYOt.js +0 -1
  1542. package/dist/runtime/server/ui-dist/assets/cobol-CWcv1MsR.js +0 -1
  1543. package/dist/runtime/server/ui-dist/assets/coffeescript-S37ZYGWr.js +0 -1
  1544. package/dist/runtime/server/ui-dist/assets/commonlisp-DBKNyK5s.js +0 -1
  1545. package/dist/runtime/server/ui-dist/assets/cose-bilkent-S5V4N54A-Cl5X2jL8.js +0 -1
  1546. package/dist/runtime/server/ui-dist/assets/crystal-SjHAIU92.js +0 -1
  1547. package/dist/runtime/server/ui-dist/assets/css-BnMrqG3P.js +0 -1
  1548. package/dist/runtime/server/ui-dist/assets/cypher-C_CwsFkJ.js +0 -1
  1549. package/dist/runtime/server/ui-dist/assets/cytoscape.esm-BQaXIfA_.js +0 -331
  1550. package/dist/runtime/server/ui-dist/assets/d-pRatUO7H.js +0 -1
  1551. package/dist/runtime/server/ui-dist/assets/dagre-6UL2VRFP-B2u9a5zG.js +0 -4
  1552. package/dist/runtime/server/ui-dist/assets/defaultLocale-DX6XiGOO.js +0 -1
  1553. package/dist/runtime/server/ui-dist/assets/diagram-PSM6KHXK-DsSVNioI.js +0 -24
  1554. package/dist/runtime/server/ui-dist/assets/diagram-QEK2KX5R-C2oaCik_.js +0 -43
  1555. package/dist/runtime/server/ui-dist/assets/diagram-S2PKOQOG-CuEvUbkw.js +0 -24
  1556. package/dist/runtime/server/ui-dist/assets/diff-DbItnlRl.js +0 -1
  1557. package/dist/runtime/server/ui-dist/assets/dockerfile-BKs6k2Af.js +0 -1
  1558. package/dist/runtime/server/ui-dist/assets/dtd-DF_7sFjM.js +0 -1
  1559. package/dist/runtime/server/ui-dist/assets/dx-root-B5r5o3mh.js +0 -280
  1560. package/dist/runtime/server/ui-dist/assets/dylan-DwRh75JA.js +0 -1
  1561. package/dist/runtime/server/ui-dist/assets/ebnf-CDyGwa7X.js +0 -1
  1562. package/dist/runtime/server/ui-dist/assets/ecl-Cabwm37j.js +0 -1
  1563. package/dist/runtime/server/ui-dist/assets/eiffel-CnydiIhH.js +0 -1
  1564. package/dist/runtime/server/ui-dist/assets/elm-vLlmbW-K.js +0 -1
  1565. package/dist/runtime/server/ui-dist/assets/erDiagram-Q2GNP2WA-_1lFdkqV.js +0 -60
  1566. package/dist/runtime/server/ui-dist/assets/erlang-BNw1qcRV.js +0 -1
  1567. package/dist/runtime/server/ui-dist/assets/factor-kuTfRLto.js +0 -1
  1568. package/dist/runtime/server/ui-dist/assets/fcl-Kvtd6kyn.js +0 -1
  1569. package/dist/runtime/server/ui-dist/assets/flowDiagram-NV44I4VS-DUoF0DLT.js +0 -162
  1570. package/dist/runtime/server/ui-dist/assets/forth-Ffai-XNe.js +0 -1
  1571. package/dist/runtime/server/ui-dist/assets/fortran-DYz_wnZ1.js +0 -1
  1572. package/dist/runtime/server/ui-dist/assets/ganttDiagram-JELNMOA3-CruQ7D3m.js +0 -267
  1573. package/dist/runtime/server/ui-dist/assets/gas-Bneqetm1.js +0 -1
  1574. package/dist/runtime/server/ui-dist/assets/gherkin-heZmZLOM.js +0 -1
  1575. package/dist/runtime/server/ui-dist/assets/gitGraphDiagram-V2S2FVAM-BDuS9ljz.js +0 -65
  1576. package/dist/runtime/server/ui-dist/assets/graph-BFy59M3M.js +0 -1
  1577. package/dist/runtime/server/ui-dist/assets/groovy-D9Dt4D0W.js +0 -1
  1578. package/dist/runtime/server/ui-dist/assets/gtm-root-bgiNL285.js +0 -11
  1579. package/dist/runtime/server/ui-dist/assets/haskell-Cw1EW3IL.js +0 -1
  1580. package/dist/runtime/server/ui-dist/assets/haxe-H-WmDvRZ.js +0 -1
  1581. package/dist/runtime/server/ui-dist/assets/http-DBlCnlav.js +0 -1
  1582. package/dist/runtime/server/ui-dist/assets/idl-BEugSyMb.js +0 -1
  1583. package/dist/runtime/server/ui-dist/assets/index--dv-yDMD.js +0 -1
  1584. package/dist/runtime/server/ui-dist/assets/index-A_Utfb1G.js +0 -1
  1585. package/dist/runtime/server/ui-dist/assets/index-AaLnuKvn.js +0 -1
  1586. package/dist/runtime/server/ui-dist/assets/index-B9Xd_vMV.js +0 -3
  1587. package/dist/runtime/server/ui-dist/assets/index-BCphYMJ8.js +0 -1
  1588. package/dist/runtime/server/ui-dist/assets/index-BKO_Nk8c.js +0 -7
  1589. package/dist/runtime/server/ui-dist/assets/index-BMwN19Gi.js +0 -2
  1590. package/dist/runtime/server/ui-dist/assets/index-Bz0rSFov.js +0 -1
  1591. package/dist/runtime/server/ui-dist/assets/index-BzNjBEzf.js +0 -1
  1592. package/dist/runtime/server/ui-dist/assets/index-CLWYCHoS.js +0 -1
  1593. package/dist/runtime/server/ui-dist/assets/index-CZVyxyFA.js +0 -1
  1594. package/dist/runtime/server/ui-dist/assets/index-ClbnJMz6.css +0 -1
  1595. package/dist/runtime/server/ui-dist/assets/index-Cpqm25YS.js +0 -1
  1596. package/dist/runtime/server/ui-dist/assets/index-Cv5ClxEP.js +0 -1
  1597. package/dist/runtime/server/ui-dist/assets/index-D2MHxpCH.js +0 -50
  1598. package/dist/runtime/server/ui-dist/assets/index-D3MPbMGr.js +0 -1
  1599. package/dist/runtime/server/ui-dist/assets/index-DFUgoz9_.js +0 -1
  1600. package/dist/runtime/server/ui-dist/assets/index-DL95rih-.js +0 -1
  1601. package/dist/runtime/server/ui-dist/assets/index-DY60bSWi.js +0 -1
  1602. package/dist/runtime/server/ui-dist/assets/index-DcoQC6ia.js +0 -13
  1603. package/dist/runtime/server/ui-dist/assets/index-DfnTp5y6.js +0 -6
  1604. package/dist/runtime/server/ui-dist/assets/index-Fb7iEaRG.js +0 -1
  1605. package/dist/runtime/server/ui-dist/assets/index-TPJ_0VD8.js +0 -1
  1606. package/dist/runtime/server/ui-dist/assets/index-WuexBBBr.js +0 -1
  1607. package/dist/runtime/server/ui-dist/assets/infoDiagram-HS3SLOUP-CiI6r25R.js +0 -2
  1608. package/dist/runtime/server/ui-dist/assets/init-Gi6I4Gst.js +0 -1
  1609. package/dist/runtime/server/ui-dist/assets/javascript-iXu5QeM3.js +0 -1
  1610. package/dist/runtime/server/ui-dist/assets/journeyDiagram-XKPGCS4Q-BMmOHrov.js +0 -139
  1611. package/dist/runtime/server/ui-dist/assets/julia-DuME0IfC.js +0 -1
  1612. package/dist/runtime/server/ui-dist/assets/kanban-definition-3W4ZIXB7-BxeYeVi1.js +0 -89
  1613. package/dist/runtime/server/ui-dist/assets/katex-O9d3_IXG.js +0 -261
  1614. package/dist/runtime/server/ui-dist/assets/layout-anG6DZ8y.js +0 -1
  1615. package/dist/runtime/server/ui-dist/assets/linear-CDTAlHE-.js +0 -1
  1616. package/dist/runtime/server/ui-dist/assets/livescript-BwQOo05w.js +0 -1
  1617. package/dist/runtime/server/ui-dist/assets/lua-BgMRiT3U.js +0 -1
  1618. package/dist/runtime/server/ui-dist/assets/mathematica-DTrFuWx2.js +0 -1
  1619. package/dist/runtime/server/ui-dist/assets/mbox-CNhZ1qSd.js +0 -1
  1620. package/dist/runtime/server/ui-dist/assets/mermaid.core-DNt7uRm5.js +0 -256
  1621. package/dist/runtime/server/ui-dist/assets/mindmap-definition-VGOIOE7T-DTO5b9so.js +0 -68
  1622. package/dist/runtime/server/ui-dist/assets/mirc-CjQqDB4T.js +0 -1
  1623. package/dist/runtime/server/ui-dist/assets/mllike-CXdrOF99.js +0 -1
  1624. package/dist/runtime/server/ui-dist/assets/modelica-Dc1JOy9r.js +0 -1
  1625. package/dist/runtime/server/ui-dist/assets/mscgen-BA5vi2Kp.js +0 -1
  1626. package/dist/runtime/server/ui-dist/assets/mumps-BT43cFF4.js +0 -1
  1627. package/dist/runtime/server/ui-dist/assets/nginx-DdIZxoE0.js +0 -1
  1628. package/dist/runtime/server/ui-dist/assets/nsis-LdVXkNf5.js +0 -1
  1629. package/dist/runtime/server/ui-dist/assets/ntriples-BfvgReVJ.js +0 -1
  1630. package/dist/runtime/server/ui-dist/assets/octave-Ck1zUtKM.js +0 -1
  1631. package/dist/runtime/server/ui-dist/assets/ordinal-Cboi1Yqb.js +0 -1
  1632. package/dist/runtime/server/ui-dist/assets/oz-BzwKVEFT.js +0 -1
  1633. package/dist/runtime/server/ui-dist/assets/pascal--L3eBynH.js +0 -1
  1634. package/dist/runtime/server/ui-dist/assets/perl-CdXCOZ3F.js +0 -1
  1635. package/dist/runtime/server/ui-dist/assets/pieDiagram-ADFJNKIX-BteTAzPn.js +0 -30
  1636. package/dist/runtime/server/ui-dist/assets/pig-CevX1Tat.js +0 -1
  1637. package/dist/runtime/server/ui-dist/assets/powershell-CFHJl5sT.js +0 -1
  1638. package/dist/runtime/server/ui-dist/assets/properties-C78fOPTZ.js +0 -1
  1639. package/dist/runtime/server/ui-dist/assets/protobuf-ChK-085T.js +0 -1
  1640. package/dist/runtime/server/ui-dist/assets/pug-DeIclll2.js +0 -1
  1641. package/dist/runtime/server/ui-dist/assets/puppet-DMA9R1ak.js +0 -1
  1642. package/dist/runtime/server/ui-dist/assets/python-BuPzkPfP.js +0 -1
  1643. package/dist/runtime/server/ui-dist/assets/q-pXgVlZs6.js +0 -1
  1644. package/dist/runtime/server/ui-dist/assets/quadrantDiagram-AYHSOK5B-_gG2aKm4.js +0 -7
  1645. package/dist/runtime/server/ui-dist/assets/r-B6wPVr8A.js +0 -1
  1646. package/dist/runtime/server/ui-dist/assets/requirementDiagram-UZGBJVZJ-CcOvI4e8.js +0 -64
  1647. package/dist/runtime/server/ui-dist/assets/rpm-CTu-6PCP.js +0 -1
  1648. package/dist/runtime/server/ui-dist/assets/ruby-B2Rjki9n.js +0 -1
  1649. package/dist/runtime/server/ui-dist/assets/sankeyDiagram-TZEHDZUN-C1Rbdzvp.js +0 -10
  1650. package/dist/runtime/server/ui-dist/assets/sas-B4kiWyti.js +0 -1
  1651. package/dist/runtime/server/ui-dist/assets/scheme-C41bIUwD.js +0 -1
  1652. package/dist/runtime/server/ui-dist/assets/sequenceDiagram-WL72ISMW-DPx4fWtG.js +0 -145
  1653. package/dist/runtime/server/ui-dist/assets/shell-CjFT_Tl9.js +0 -1
  1654. package/dist/runtime/server/ui-dist/assets/sieve-C3Gn_uJK.js +0 -1
  1655. package/dist/runtime/server/ui-dist/assets/simple-mode-GW_nhZxv.js +0 -1
  1656. package/dist/runtime/server/ui-dist/assets/smalltalk-CnHTOXQT.js +0 -1
  1657. package/dist/runtime/server/ui-dist/assets/solr-DehyRSwq.js +0 -1
  1658. package/dist/runtime/server/ui-dist/assets/sparql-DkYu6x3z.js +0 -1
  1659. package/dist/runtime/server/ui-dist/assets/spreadsheet-BCZA_wO0.js +0 -1
  1660. package/dist/runtime/server/ui-dist/assets/sql-D0XecflT.js +0 -1
  1661. package/dist/runtime/server/ui-dist/assets/stateDiagram-FKZM4ZOC-CID-77J9.js +0 -1
  1662. package/dist/runtime/server/ui-dist/assets/stateDiagram-v2-4FDKWEC3-DF70krIP.js +0 -1
  1663. package/dist/runtime/server/ui-dist/assets/stex-C3f8Ysf7.js +0 -1
  1664. package/dist/runtime/server/ui-dist/assets/stylus-B533Al4x.js +0 -1
  1665. package/dist/runtime/server/ui-dist/assets/swift-BzpIVaGY.js +0 -1
  1666. package/dist/runtime/server/ui-dist/assets/tcl-DVfN8rqt.js +0 -1
  1667. package/dist/runtime/server/ui-dist/assets/textile-CnDTJFAw.js +0 -1
  1668. package/dist/runtime/server/ui-dist/assets/tiddlywiki-DO-Gjzrf.js +0 -1
  1669. package/dist/runtime/server/ui-dist/assets/tiki-DGYXhP31.js +0 -1
  1670. package/dist/runtime/server/ui-dist/assets/timeline-definition-IT6M3QCI-CyA1h3jY.js +0 -61
  1671. package/dist/runtime/server/ui-dist/assets/toml-Bm5Em-hy.js +0 -1
  1672. package/dist/runtime/server/ui-dist/assets/treemap-GDKQZRPO-nqrXf2kh.js +0 -162
  1673. package/dist/runtime/server/ui-dist/assets/troff-wAsdV37c.js +0 -1
  1674. package/dist/runtime/server/ui-dist/assets/ttcn-CfJYG6tj.js +0 -1
  1675. package/dist/runtime/server/ui-dist/assets/ttcn-cfg-B9xdYoR4.js +0 -1
  1676. package/dist/runtime/server/ui-dist/assets/turtle-B1tBg_DP.js +0 -1
  1677. package/dist/runtime/server/ui-dist/assets/vb-CmGdzxic.js +0 -1
  1678. package/dist/runtime/server/ui-dist/assets/vbscript-BuJXcnF6.js +0 -1
  1679. package/dist/runtime/server/ui-dist/assets/velocity-D8B20fx6.js +0 -1
  1680. package/dist/runtime/server/ui-dist/assets/verilog-C6RDOZhf.js +0 -1
  1681. package/dist/runtime/server/ui-dist/assets/vhdl-lSbBsy5d.js +0 -1
  1682. package/dist/runtime/server/ui-dist/assets/webidl-ZXfAyPTL.js +0 -1
  1683. package/dist/runtime/server/ui-dist/assets/xquery-DzFWVndE.js +0 -1
  1684. package/dist/runtime/server/ui-dist/assets/xychartDiagram-PRI3JC2R-CS0bUj41.js +0 -7
  1685. package/dist/runtime/server/ui-dist/assets/yacas-BJ4BC0dw.js +0 -1
  1686. package/dist/runtime/server/ui-dist/assets/z80-Hz9HOZM7.js +0 -1
  1687. package/dist/runtime/server/ui-dist/brands/opencode-logo-dark-square.svg +0 -18
  1688. package/dist/runtime/server/ui-dist/brands/opencode-logo-light-square.svg +0 -18
  1689. package/dist/runtime/server/ui-dist/favicon-16x16.png +0 -0
  1690. package/dist/runtime/server/ui-dist/favicon-32x32.png +0 -0
  1691. package/dist/runtime/server/ui-dist/favicon.ico +0 -0
  1692. package/dist/runtime/server/ui-dist/favicon.svg +0 -9
  1693. package/dist/runtime/server/ui-dist/index.html +0 -48
  1694. package/dist/runtime/server/ui-dist/site.webmanifest +0 -30
  1695. package/dist/runtime/server/ui-dist/sw.js +0 -42
  1696. package/dist/runtime/server/ui-dist/worktree-favicon-16x16.png +0 -0
  1697. package/dist/runtime/server/ui-dist/worktree-favicon-32x32.png +0 -0
  1698. package/dist/runtime/server/ui-dist/worktree-favicon.ico +0 -0
  1699. package/dist/runtime/server/ui-dist/worktree-favicon.svg +0 -9
@@ -1,2125 +0,0 @@
1
- import { createHash, generateKeyPairSync, randomBytes, timingSafeEqual } from "node:crypto";
2
- import fs from "node:fs";
3
- import path from "node:path";
4
- import { fileURLToPath } from "node:url";
5
- import { Router } from "express";
6
- import { and, eq, isNull, desc } from "drizzle-orm";
7
- import { agentApiKeys, authUsers, invites, joinRequests } from "@paperclipai/db";
8
- import { acceptInviteSchema, claimJoinRequestApiKeySchema, createCompanyInviteSchema, createOpenClawInvitePromptSchema, listJoinRequestsQuerySchema, updateMemberPermissionsSchema, updateUserCompanyAccessSchema, PERMISSION_KEYS } from "@paperclipai/shared";
9
- import { forbidden, conflict, notFound, unauthorized, badRequest } from "../errors.js";
10
- import { logger } from "../middleware/logger.js";
11
- import { validate } from "../middleware/validate.js";
12
- import { accessService, agentService, deduplicateAgentName, logActivity, notifyHireApproved } from "../services/index.js";
13
- import { assertCompanyAccess } from "./authz.js";
14
- import { claimBoardOwnership, inspectBoardClaimChallenge } from "../board-claim.js";
15
- function hashToken(token) {
16
- return createHash("sha256").update(token).digest("hex");
17
- }
18
- const INVITE_TOKEN_PREFIX = "pcp_invite_";
19
- const INVITE_TOKEN_ALPHABET = "abcdefghijklmnopqrstuvwxyz0123456789";
20
- const INVITE_TOKEN_SUFFIX_LENGTH = 8;
21
- const INVITE_TOKEN_MAX_RETRIES = 5;
22
- const COMPANY_INVITE_TTL_MS = 10 * 60 * 1000;
23
- function createInviteToken() {
24
- const bytes = randomBytes(INVITE_TOKEN_SUFFIX_LENGTH);
25
- let suffix = "";
26
- for (let idx = 0; idx < INVITE_TOKEN_SUFFIX_LENGTH; idx += 1) {
27
- suffix += INVITE_TOKEN_ALPHABET[bytes[idx] % INVITE_TOKEN_ALPHABET.length];
28
- }
29
- return `${INVITE_TOKEN_PREFIX}${suffix}`;
30
- }
31
- function createClaimSecret() {
32
- return `pcp_claim_${randomBytes(24).toString("hex")}`;
33
- }
34
- export function companyInviteExpiresAt(nowMs = Date.now()) {
35
- return new Date(nowMs + COMPANY_INVITE_TTL_MS);
36
- }
37
- function tokenHashesMatch(left, right) {
38
- const leftBytes = Buffer.from(left, "utf8");
39
- const rightBytes = Buffer.from(right, "utf8");
40
- return (leftBytes.length === rightBytes.length &&
41
- timingSafeEqual(leftBytes, rightBytes));
42
- }
43
- function requestBaseUrl(req) {
44
- const forwardedProto = req.header("x-forwarded-proto");
45
- const proto = forwardedProto?.split(",")[0]?.trim() || req.protocol || "http";
46
- const host = req.header("x-forwarded-host")?.split(",")[0]?.trim() || req.header("host");
47
- if (!host)
48
- return "";
49
- return `${proto}://${host}`;
50
- }
51
- function readSkillMarkdown(skillName) {
52
- const normalized = skillName.trim().toLowerCase();
53
- if (normalized !== "paperclip" &&
54
- normalized !== "paperclip-create-agent" &&
55
- normalized !== "paperclip-create-plugin" &&
56
- normalized !== "para-memory-files")
57
- return null;
58
- const moduleDir = path.dirname(fileURLToPath(import.meta.url));
59
- const candidates = [
60
- path.resolve(moduleDir, "../../skills", normalized, "SKILL.md"), // published: dist/routes/ -> <pkg>/skills/
61
- path.resolve(process.cwd(), "skills", normalized, "SKILL.md"), // cwd (e.g. monorepo root)
62
- path.resolve(moduleDir, "../../../skills", normalized, "SKILL.md") // dev: src/routes/ -> repo root/skills/
63
- ];
64
- for (const skillPath of candidates) {
65
- try {
66
- return fs.readFileSync(skillPath, "utf8");
67
- }
68
- catch {
69
- // Continue to next candidate.
70
- }
71
- }
72
- return null;
73
- }
74
- /** Resolve the Paperclip repo skills directory (built-in / managed skills). */
75
- function resolvePaperclipSkillsDir() {
76
- const moduleDir = path.dirname(fileURLToPath(import.meta.url));
77
- const candidates = [
78
- path.resolve(moduleDir, "../../skills"), // published
79
- path.resolve(process.cwd(), "skills"), // cwd (monorepo root)
80
- path.resolve(moduleDir, "../../../skills"), // dev
81
- ];
82
- for (const candidate of candidates) {
83
- try {
84
- if (fs.statSync(candidate).isDirectory())
85
- return candidate;
86
- }
87
- catch { /* skip */ }
88
- }
89
- return null;
90
- }
91
- /** Parse YAML frontmatter from a SKILL.md file to extract the description. */
92
- function parseSkillFrontmatter(markdown) {
93
- const match = markdown.match(/^---\n([\s\S]*?)\n---/);
94
- if (!match)
95
- return { description: "" };
96
- const yaml = match[1];
97
- // Extract description — handles both single-line and multi-line YAML values
98
- const descMatch = yaml.match(/^description:\s*(?:>\s*\n((?:\s{2,}[^\n]*\n?)+)|[|]\s*\n((?:\s{2,}[^\n]*\n?)+)|["']?(.*?)["']?\s*$)/m);
99
- if (!descMatch)
100
- return { description: "" };
101
- const raw = descMatch[1] ?? descMatch[2] ?? descMatch[3] ?? "";
102
- return {
103
- description: raw
104
- .split("\n")
105
- .map((l) => l.trim())
106
- .filter(Boolean)
107
- .join(" ")
108
- .trim(),
109
- };
110
- }
111
- /** Discover all available Claude Code skills from ~/.claude/skills/. */
112
- function listAvailableSkills() {
113
- const homeDir = process.env.HOME || process.env.USERPROFILE || "";
114
- const claudeSkillsDir = path.join(homeDir, ".claude", "skills");
115
- const paperclipSkillsDir = resolvePaperclipSkillsDir();
116
- // Build set of Paperclip-managed skill names
117
- const paperclipSkillNames = new Set();
118
- if (paperclipSkillsDir) {
119
- try {
120
- for (const entry of fs.readdirSync(paperclipSkillsDir, { withFileTypes: true })) {
121
- if (entry.isDirectory())
122
- paperclipSkillNames.add(entry.name);
123
- }
124
- }
125
- catch { /* skip */ }
126
- }
127
- const skills = [];
128
- try {
129
- const entries = fs.readdirSync(claudeSkillsDir, { withFileTypes: true });
130
- for (const entry of entries) {
131
- if (!entry.isDirectory() && !entry.isSymbolicLink())
132
- continue;
133
- if (entry.name.startsWith("."))
134
- continue;
135
- const skillMdPath = path.join(claudeSkillsDir, entry.name, "SKILL.md");
136
- let description = "";
137
- try {
138
- const md = fs.readFileSync(skillMdPath, "utf8");
139
- description = parseSkillFrontmatter(md).description;
140
- }
141
- catch { /* no SKILL.md or unreadable */ }
142
- skills.push({
143
- name: entry.name,
144
- description,
145
- isPaperclipManaged: paperclipSkillNames.has(entry.name),
146
- });
147
- }
148
- }
149
- catch { /* ~/.claude/skills/ doesn't exist */ }
150
- skills.sort((a, b) => a.name.localeCompare(b.name));
151
- return skills;
152
- }
153
- function toJoinRequestResponse(row) {
154
- const { claimSecretHash: _claimSecretHash, ...safe } = row;
155
- return safe;
156
- }
157
- function isPlainObject(value) {
158
- return typeof value === "object" && value !== null && !Array.isArray(value);
159
- }
160
- function isLoopbackHost(hostname) {
161
- const value = hostname.trim().toLowerCase();
162
- return value === "localhost" || value === "127.0.0.1" || value === "::1";
163
- }
164
- function normalizeHostname(value) {
165
- if (!value)
166
- return null;
167
- const trimmed = value.trim();
168
- if (!trimmed)
169
- return null;
170
- if (trimmed.startsWith("[")) {
171
- const end = trimmed.indexOf("]");
172
- return end > 1
173
- ? trimmed.slice(1, end).toLowerCase()
174
- : trimmed.toLowerCase();
175
- }
176
- const firstColon = trimmed.indexOf(":");
177
- if (firstColon > -1)
178
- return trimmed.slice(0, firstColon).toLowerCase();
179
- return trimmed.toLowerCase();
180
- }
181
- function normalizeHeaderValue(value, depth = 0) {
182
- const direct = nonEmptyTrimmedString(value);
183
- if (direct)
184
- return direct;
185
- if (!isPlainObject(value) || depth >= 3)
186
- return null;
187
- const candidateKeys = [
188
- "value",
189
- "token",
190
- "secret",
191
- "apiKey",
192
- "api_key",
193
- "auth",
194
- "authToken",
195
- "auth_token",
196
- "accessToken",
197
- "access_token",
198
- "authorization",
199
- "bearer",
200
- "header",
201
- "raw",
202
- "text",
203
- "string"
204
- ];
205
- for (const key of candidateKeys) {
206
- if (!Object.prototype.hasOwnProperty.call(value, key))
207
- continue;
208
- const normalized = normalizeHeaderValue(value[key], depth + 1);
209
- if (normalized)
210
- return normalized;
211
- }
212
- const entries = Object.entries(value);
213
- if (entries.length === 1) {
214
- const [singleKey, singleValue] = entries[0];
215
- const normalizedKey = singleKey.trim().toLowerCase();
216
- if (normalizedKey !== "type" &&
217
- normalizedKey !== "version" &&
218
- normalizedKey !== "secretid" &&
219
- normalizedKey !== "secret_id") {
220
- const normalized = normalizeHeaderValue(singleValue, depth + 1);
221
- if (normalized)
222
- return normalized;
223
- }
224
- }
225
- return null;
226
- }
227
- function extractHeaderEntries(input) {
228
- if (isPlainObject(input)) {
229
- return Object.entries(input);
230
- }
231
- if (!Array.isArray(input)) {
232
- return [];
233
- }
234
- const entries = [];
235
- for (const item of input) {
236
- if (Array.isArray(item)) {
237
- const key = nonEmptyTrimmedString(item[0]);
238
- if (!key)
239
- continue;
240
- entries.push([key, item[1]]);
241
- continue;
242
- }
243
- if (!isPlainObject(item))
244
- continue;
245
- const mapped = item;
246
- const explicitKey = nonEmptyTrimmedString(mapped.key) ??
247
- nonEmptyTrimmedString(mapped.name) ??
248
- nonEmptyTrimmedString(mapped.header);
249
- if (explicitKey) {
250
- const explicitValue = Object.prototype.hasOwnProperty.call(mapped, "value")
251
- ? mapped.value
252
- : Object.prototype.hasOwnProperty.call(mapped, "token")
253
- ? mapped.token
254
- : Object.prototype.hasOwnProperty.call(mapped, "secret")
255
- ? mapped.secret
256
- : mapped;
257
- entries.push([explicitKey, explicitValue]);
258
- continue;
259
- }
260
- const singleEntry = Object.entries(mapped);
261
- if (singleEntry.length === 1) {
262
- entries.push(singleEntry[0]);
263
- }
264
- }
265
- return entries;
266
- }
267
- function normalizeHeaderMap(input) {
268
- const entries = extractHeaderEntries(input);
269
- if (entries.length === 0)
270
- return undefined;
271
- const out = {};
272
- for (const [key, value] of entries) {
273
- const normalizedValue = normalizeHeaderValue(value);
274
- if (!normalizedValue)
275
- continue;
276
- const trimmedKey = key.trim();
277
- const trimmedValue = normalizedValue.trim();
278
- if (!trimmedKey || !trimmedValue)
279
- continue;
280
- out[trimmedKey] = trimmedValue;
281
- }
282
- return Object.keys(out).length > 0 ? out : undefined;
283
- }
284
- function nonEmptyTrimmedString(value) {
285
- if (typeof value !== "string")
286
- return null;
287
- const trimmed = value.trim();
288
- return trimmed.length > 0 ? trimmed : null;
289
- }
290
- function headerMapHasKeyIgnoreCase(headers, targetKey) {
291
- const normalizedTarget = targetKey.trim().toLowerCase();
292
- return Object.keys(headers).some((key) => key.trim().toLowerCase() === normalizedTarget);
293
- }
294
- function headerMapGetIgnoreCase(headers, targetKey) {
295
- const normalizedTarget = targetKey.trim().toLowerCase();
296
- const key = Object.keys(headers).find((candidate) => candidate.trim().toLowerCase() === normalizedTarget);
297
- if (!key)
298
- return null;
299
- const value = headers[key];
300
- return typeof value === "string" ? value : null;
301
- }
302
- function tokenFromAuthorizationHeader(rawHeader) {
303
- const trimmed = nonEmptyTrimmedString(rawHeader);
304
- if (!trimmed)
305
- return null;
306
- const bearerMatch = trimmed.match(/^bearer\s+(.+)$/i);
307
- if (bearerMatch?.[1]) {
308
- return nonEmptyTrimmedString(bearerMatch[1]);
309
- }
310
- return trimmed;
311
- }
312
- function parseBooleanLike(value) {
313
- if (typeof value === "boolean")
314
- return value;
315
- if (typeof value !== "string")
316
- return null;
317
- const normalized = value.trim().toLowerCase();
318
- if (normalized === "true" || normalized === "1")
319
- return true;
320
- if (normalized === "false" || normalized === "0")
321
- return false;
322
- return null;
323
- }
324
- function generateEd25519PrivateKeyPem() {
325
- const generated = generateKeyPairSync("ed25519");
326
- return generated.privateKey
327
- .export({ type: "pkcs8", format: "pem" })
328
- .toString();
329
- }
330
- export function buildJoinDefaultsPayloadForAccept(input) {
331
- if (input.adapterType !== "openclaw_gateway") {
332
- return input.defaultsPayload;
333
- }
334
- const merged = isPlainObject(input.defaultsPayload)
335
- ? { ...input.defaultsPayload }
336
- : {};
337
- if (!nonEmptyTrimmedString(merged.paperclipApiUrl)) {
338
- const legacyPaperclipApiUrl = nonEmptyTrimmedString(input.paperclipApiUrl);
339
- if (legacyPaperclipApiUrl)
340
- merged.paperclipApiUrl = legacyPaperclipApiUrl;
341
- }
342
- const mergedHeaders = normalizeHeaderMap(merged.headers) ?? {};
343
- const inboundOpenClawAuthHeader = nonEmptyTrimmedString(input.inboundOpenClawAuthHeader);
344
- const inboundOpenClawTokenHeader = nonEmptyTrimmedString(input.inboundOpenClawTokenHeader);
345
- if (inboundOpenClawTokenHeader &&
346
- !headerMapHasKeyIgnoreCase(mergedHeaders, "x-openclaw-token")) {
347
- mergedHeaders["x-openclaw-token"] = inboundOpenClawTokenHeader;
348
- }
349
- if (inboundOpenClawAuthHeader &&
350
- !headerMapHasKeyIgnoreCase(mergedHeaders, "x-openclaw-auth")) {
351
- mergedHeaders["x-openclaw-auth"] = inboundOpenClawAuthHeader;
352
- }
353
- if (Object.keys(mergedHeaders).length > 0) {
354
- merged.headers = mergedHeaders;
355
- }
356
- else {
357
- delete merged.headers;
358
- }
359
- const discoveredToken = headerMapGetIgnoreCase(mergedHeaders, "x-openclaw-token") ??
360
- headerMapGetIgnoreCase(mergedHeaders, "x-openclaw-auth") ??
361
- tokenFromAuthorizationHeader(headerMapGetIgnoreCase(mergedHeaders, "authorization"));
362
- if (discoveredToken &&
363
- !headerMapHasKeyIgnoreCase(mergedHeaders, "x-openclaw-token")) {
364
- mergedHeaders["x-openclaw-token"] = discoveredToken;
365
- }
366
- return Object.keys(merged).length > 0 ? merged : null;
367
- }
368
- export function mergeJoinDefaultsPayloadForReplay(existingDefaultsPayload, nextDefaultsPayload) {
369
- if (!isPlainObject(existingDefaultsPayload) &&
370
- !isPlainObject(nextDefaultsPayload)) {
371
- return nextDefaultsPayload ?? existingDefaultsPayload;
372
- }
373
- if (!isPlainObject(existingDefaultsPayload)) {
374
- return nextDefaultsPayload;
375
- }
376
- if (!isPlainObject(nextDefaultsPayload)) {
377
- return existingDefaultsPayload;
378
- }
379
- const merged = {
380
- ...existingDefaultsPayload,
381
- ...nextDefaultsPayload
382
- };
383
- const existingHeaders = normalizeHeaderMap(existingDefaultsPayload.headers);
384
- const nextHeaders = normalizeHeaderMap(nextDefaultsPayload.headers);
385
- if (existingHeaders || nextHeaders) {
386
- merged.headers = {
387
- ...(existingHeaders ?? {}),
388
- ...(nextHeaders ?? {})
389
- };
390
- }
391
- else if (Object.prototype.hasOwnProperty.call(merged, "headers")) {
392
- delete merged.headers;
393
- }
394
- return merged;
395
- }
396
- export function canReplayOpenClawGatewayInviteAccept(input) {
397
- if (input.requestType !== "agent" ||
398
- input.adapterType !== "openclaw_gateway") {
399
- return false;
400
- }
401
- if (!input.existingJoinRequest) {
402
- return false;
403
- }
404
- if (input.existingJoinRequest.requestType !== "agent" ||
405
- input.existingJoinRequest.adapterType !== "openclaw_gateway") {
406
- return false;
407
- }
408
- return (input.existingJoinRequest.status === "pending_approval" ||
409
- input.existingJoinRequest.status === "approved");
410
- }
411
- function summarizeSecretForLog(value) {
412
- const trimmed = nonEmptyTrimmedString(value);
413
- if (!trimmed)
414
- return null;
415
- return {
416
- present: true,
417
- length: trimmed.length,
418
- sha256Prefix: hashToken(trimmed).slice(0, 12)
419
- };
420
- }
421
- function summarizeOpenClawGatewayDefaultsForLog(defaultsPayload) {
422
- const defaults = isPlainObject(defaultsPayload)
423
- ? defaultsPayload
424
- : null;
425
- const headers = defaults ? normalizeHeaderMap(defaults.headers) : undefined;
426
- const gatewayTokenValue = headers
427
- ? headerMapGetIgnoreCase(headers, "x-openclaw-token") ??
428
- headerMapGetIgnoreCase(headers, "x-openclaw-auth") ??
429
- tokenFromAuthorizationHeader(headerMapGetIgnoreCase(headers, "authorization"))
430
- : null;
431
- return {
432
- present: Boolean(defaults),
433
- keys: defaults ? Object.keys(defaults).sort() : [],
434
- url: defaults ? nonEmptyTrimmedString(defaults.url) : null,
435
- paperclipApiUrl: defaults
436
- ? nonEmptyTrimmedString(defaults.paperclipApiUrl)
437
- : null,
438
- headerKeys: headers ? Object.keys(headers).sort() : [],
439
- sessionKeyStrategy: defaults
440
- ? nonEmptyTrimmedString(defaults.sessionKeyStrategy)
441
- : null,
442
- disableDeviceAuth: defaults
443
- ? parseBooleanLike(defaults.disableDeviceAuth)
444
- : null,
445
- waitTimeoutMs: defaults && typeof defaults.waitTimeoutMs === "number"
446
- ? defaults.waitTimeoutMs
447
- : null,
448
- devicePrivateKeyPem: defaults
449
- ? summarizeSecretForLog(defaults.devicePrivateKeyPem)
450
- : null,
451
- gatewayToken: summarizeSecretForLog(gatewayTokenValue)
452
- };
453
- }
454
- export function normalizeAgentDefaultsForJoin(input) {
455
- const fatalErrors = [];
456
- const diagnostics = [];
457
- if (input.adapterType !== "openclaw_gateway") {
458
- const normalized = isPlainObject(input.defaultsPayload)
459
- ? input.defaultsPayload
460
- : null;
461
- return { normalized, diagnostics, fatalErrors };
462
- }
463
- if (!isPlainObject(input.defaultsPayload)) {
464
- diagnostics.push({
465
- code: "openclaw_gateway_defaults_missing",
466
- level: "warn",
467
- message: "No OpenClaw gateway config was provided in agentDefaultsPayload.",
468
- hint: "Include agentDefaultsPayload.url and headers.x-openclaw-token for OpenClaw gateway joins."
469
- });
470
- fatalErrors.push("agentDefaultsPayload is required for adapterType=openclaw_gateway");
471
- return {
472
- normalized: null,
473
- diagnostics,
474
- fatalErrors
475
- };
476
- }
477
- const defaults = input.defaultsPayload;
478
- const normalized = {};
479
- let gatewayUrl = null;
480
- const rawGatewayUrl = nonEmptyTrimmedString(defaults.url);
481
- if (!rawGatewayUrl) {
482
- diagnostics.push({
483
- code: "openclaw_gateway_url_missing",
484
- level: "warn",
485
- message: "OpenClaw gateway URL is missing.",
486
- hint: "Set agentDefaultsPayload.url to ws:// or wss:// gateway URL."
487
- });
488
- fatalErrors.push("agentDefaultsPayload.url is required");
489
- }
490
- else {
491
- try {
492
- gatewayUrl = new URL(rawGatewayUrl);
493
- if (gatewayUrl.protocol !== "ws:" && gatewayUrl.protocol !== "wss:") {
494
- diagnostics.push({
495
- code: "openclaw_gateway_url_protocol",
496
- level: "warn",
497
- message: `OpenClaw gateway URL must use ws:// or wss:// (got ${gatewayUrl.protocol}).`
498
- });
499
- fatalErrors.push("agentDefaultsPayload.url must use ws:// or wss:// for openclaw_gateway");
500
- }
501
- else {
502
- normalized.url = gatewayUrl.toString();
503
- diagnostics.push({
504
- code: "openclaw_gateway_url_configured",
505
- level: "info",
506
- message: `Gateway endpoint set to ${gatewayUrl.toString()}`
507
- });
508
- }
509
- }
510
- catch {
511
- diagnostics.push({
512
- code: "openclaw_gateway_url_invalid",
513
- level: "warn",
514
- message: `Invalid OpenClaw gateway URL: ${rawGatewayUrl}`
515
- });
516
- fatalErrors.push("agentDefaultsPayload.url is not a valid URL");
517
- }
518
- }
519
- const headers = normalizeHeaderMap(defaults.headers) ?? {};
520
- const gatewayToken = headerMapGetIgnoreCase(headers, "x-openclaw-token") ??
521
- headerMapGetIgnoreCase(headers, "x-openclaw-auth") ??
522
- tokenFromAuthorizationHeader(headerMapGetIgnoreCase(headers, "authorization"));
523
- if (gatewayToken && !headerMapHasKeyIgnoreCase(headers, "x-openclaw-token")) {
524
- headers["x-openclaw-token"] = gatewayToken;
525
- }
526
- if (Object.keys(headers).length > 0) {
527
- normalized.headers = headers;
528
- }
529
- if (!gatewayToken) {
530
- diagnostics.push({
531
- code: "openclaw_gateway_auth_header_missing",
532
- level: "warn",
533
- message: "Gateway auth token is missing from agent defaults.",
534
- hint: "Set agentDefaultsPayload.headers.x-openclaw-token (or legacy x-openclaw-auth)."
535
- });
536
- fatalErrors.push("agentDefaultsPayload.headers.x-openclaw-token (or x-openclaw-auth) is required");
537
- }
538
- else if (gatewayToken.trim().length < 16) {
539
- diagnostics.push({
540
- code: "openclaw_gateway_auth_header_too_short",
541
- level: "warn",
542
- message: `Gateway auth token appears too short (${gatewayToken.trim().length} chars).`,
543
- hint: "Use the full gateway auth token from ~/.openclaw/openclaw.json (typically long random string)."
544
- });
545
- fatalErrors.push("agentDefaultsPayload.headers.x-openclaw-token is too short; expected a full gateway token");
546
- }
547
- else {
548
- diagnostics.push({
549
- code: "openclaw_gateway_auth_header_configured",
550
- level: "info",
551
- message: "Gateway auth token configured."
552
- });
553
- }
554
- if (isPlainObject(defaults.payloadTemplate)) {
555
- normalized.payloadTemplate = defaults.payloadTemplate;
556
- }
557
- const parsedDisableDeviceAuth = parseBooleanLike(defaults.disableDeviceAuth);
558
- const disableDeviceAuth = parsedDisableDeviceAuth === true;
559
- if (parsedDisableDeviceAuth !== null) {
560
- normalized.disableDeviceAuth = parsedDisableDeviceAuth;
561
- }
562
- const configuredDevicePrivateKeyPem = nonEmptyTrimmedString(defaults.devicePrivateKeyPem);
563
- if (configuredDevicePrivateKeyPem) {
564
- normalized.devicePrivateKeyPem = configuredDevicePrivateKeyPem;
565
- diagnostics.push({
566
- code: "openclaw_gateway_device_key_configured",
567
- level: "info",
568
- message: "Gateway device key configured. Pairing approvals should persist for this agent."
569
- });
570
- }
571
- else if (!disableDeviceAuth) {
572
- try {
573
- normalized.devicePrivateKeyPem = generateEd25519PrivateKeyPem();
574
- diagnostics.push({
575
- code: "openclaw_gateway_device_key_generated",
576
- level: "info",
577
- message: "Generated persistent gateway device key for this join. Pairing approvals should persist for this agent."
578
- });
579
- }
580
- catch (err) {
581
- diagnostics.push({
582
- code: "openclaw_gateway_device_key_generate_failed",
583
- level: "warn",
584
- message: `Failed to generate gateway device key: ${err instanceof Error ? err.message : String(err)}`,
585
- hint: "Set agentDefaultsPayload.devicePrivateKeyPem explicitly or set disableDeviceAuth=true."
586
- });
587
- fatalErrors.push("Failed to generate gateway device key. Set devicePrivateKeyPem or disableDeviceAuth=true.");
588
- }
589
- }
590
- const waitTimeoutMs = typeof defaults.waitTimeoutMs === "number" &&
591
- Number.isFinite(defaults.waitTimeoutMs)
592
- ? Math.floor(defaults.waitTimeoutMs)
593
- : typeof defaults.waitTimeoutMs === "string"
594
- ? Number.parseInt(defaults.waitTimeoutMs.trim(), 10)
595
- : NaN;
596
- if (Number.isFinite(waitTimeoutMs) && waitTimeoutMs > 0) {
597
- normalized.waitTimeoutMs = waitTimeoutMs;
598
- }
599
- const timeoutSec = typeof defaults.timeoutSec === "number" && Number.isFinite(defaults.timeoutSec)
600
- ? Math.floor(defaults.timeoutSec)
601
- : typeof defaults.timeoutSec === "string"
602
- ? Number.parseInt(defaults.timeoutSec.trim(), 10)
603
- : NaN;
604
- if (Number.isFinite(timeoutSec) && timeoutSec > 0) {
605
- normalized.timeoutSec = timeoutSec;
606
- }
607
- const sessionKeyStrategy = nonEmptyTrimmedString(defaults.sessionKeyStrategy);
608
- if (sessionKeyStrategy === "fixed" ||
609
- sessionKeyStrategy === "issue" ||
610
- sessionKeyStrategy === "run") {
611
- normalized.sessionKeyStrategy = sessionKeyStrategy;
612
- }
613
- const sessionKey = nonEmptyTrimmedString(defaults.sessionKey);
614
- if (sessionKey) {
615
- normalized.sessionKey = sessionKey;
616
- }
617
- const role = nonEmptyTrimmedString(defaults.role);
618
- if (role) {
619
- normalized.role = role;
620
- }
621
- if (Array.isArray(defaults.scopes)) {
622
- const scopes = defaults.scopes
623
- .filter((entry) => typeof entry === "string")
624
- .map((entry) => entry.trim())
625
- .filter(Boolean);
626
- if (scopes.length > 0) {
627
- normalized.scopes = scopes;
628
- }
629
- }
630
- const rawPaperclipApiUrl = typeof defaults.paperclipApiUrl === "string"
631
- ? defaults.paperclipApiUrl.trim()
632
- : "";
633
- if (rawPaperclipApiUrl) {
634
- try {
635
- const parsedPaperclipApiUrl = new URL(rawPaperclipApiUrl);
636
- if (parsedPaperclipApiUrl.protocol !== "http:" &&
637
- parsedPaperclipApiUrl.protocol !== "https:") {
638
- diagnostics.push({
639
- code: "openclaw_gateway_paperclip_api_url_protocol",
640
- level: "warn",
641
- message: `paperclipApiUrl must use http:// or https:// (got ${parsedPaperclipApiUrl.protocol}).`
642
- });
643
- }
644
- else {
645
- normalized.paperclipApiUrl = parsedPaperclipApiUrl.toString();
646
- diagnostics.push({
647
- code: "openclaw_gateway_paperclip_api_url_configured",
648
- level: "info",
649
- message: `paperclipApiUrl set to ${parsedPaperclipApiUrl.toString()}`
650
- });
651
- }
652
- }
653
- catch {
654
- diagnostics.push({
655
- code: "openclaw_gateway_paperclip_api_url_invalid",
656
- level: "warn",
657
- message: `Invalid paperclipApiUrl: ${rawPaperclipApiUrl}`
658
- });
659
- }
660
- }
661
- return { normalized, diagnostics, fatalErrors };
662
- }
663
- function toInviteSummaryResponse(req, token, invite) {
664
- const baseUrl = requestBaseUrl(req);
665
- const onboardingPath = `/api/invites/${token}/onboarding`;
666
- const onboardingTextPath = `/api/invites/${token}/onboarding.txt`;
667
- const inviteMessage = extractInviteMessage(invite);
668
- return {
669
- id: invite.id,
670
- companyId: invite.companyId,
671
- inviteType: invite.inviteType,
672
- allowedJoinTypes: invite.allowedJoinTypes,
673
- expiresAt: invite.expiresAt,
674
- onboardingPath,
675
- onboardingUrl: baseUrl ? `${baseUrl}${onboardingPath}` : onboardingPath,
676
- onboardingTextPath,
677
- onboardingTextUrl: baseUrl
678
- ? `${baseUrl}${onboardingTextPath}`
679
- : onboardingTextPath,
680
- skillIndexPath: "/api/skills/index",
681
- skillIndexUrl: baseUrl
682
- ? `${baseUrl}/api/skills/index`
683
- : "/api/skills/index",
684
- inviteMessage
685
- };
686
- }
687
- function buildOnboardingDiscoveryDiagnostics(input) {
688
- const diagnostics = [];
689
- let apiHost = null;
690
- if (input.apiBaseUrl) {
691
- try {
692
- apiHost = normalizeHostname(new URL(input.apiBaseUrl).hostname);
693
- }
694
- catch {
695
- apiHost = null;
696
- }
697
- }
698
- const bindHost = normalizeHostname(input.bindHost);
699
- const allowSet = new Set(input.allowedHostnames
700
- .map((entry) => normalizeHostname(entry))
701
- .filter((entry) => Boolean(entry)));
702
- if (apiHost && isLoopbackHost(apiHost)) {
703
- diagnostics.push({
704
- code: "openclaw_onboarding_api_loopback",
705
- level: "warn",
706
- message: "Onboarding URL resolves to loopback hostname. Remote OpenClaw agents cannot reach localhost on your Paperclip host.",
707
- hint: "Use a reachable hostname/IP (for example Tailscale hostname, Docker host alias, or public domain)."
708
- });
709
- }
710
- if (input.deploymentMode === "authenticated" &&
711
- input.deploymentExposure === "private" &&
712
- (!bindHost || isLoopbackHost(bindHost))) {
713
- diagnostics.push({
714
- code: "openclaw_onboarding_private_loopback_bind",
715
- level: "warn",
716
- message: "Paperclip is bound to loopback in authenticated/private mode.",
717
- hint: "Run with a reachable bind host or use pnpm dev --tailscale-auth for private-network onboarding."
718
- });
719
- }
720
- if (input.deploymentMode === "authenticated" &&
721
- input.deploymentExposure === "private" &&
722
- apiHost &&
723
- !isLoopbackHost(apiHost) &&
724
- allowSet.size > 0 &&
725
- !allowSet.has(apiHost)) {
726
- diagnostics.push({
727
- code: "openclaw_onboarding_private_host_not_allowed",
728
- level: "warn",
729
- message: `Onboarding host "${apiHost}" is not in allowed hostnames for authenticated/private mode.`,
730
- hint: `Run pnpm paperclipai allowed-hostname ${apiHost}`
731
- });
732
- }
733
- return diagnostics;
734
- }
735
- function buildOnboardingConnectionCandidates(input) {
736
- let base = null;
737
- try {
738
- if (input.apiBaseUrl) {
739
- base = new URL(input.apiBaseUrl);
740
- }
741
- }
742
- catch {
743
- base = null;
744
- }
745
- const protocol = base?.protocol ?? "http:";
746
- const port = base?.port ? `:${base.port}` : "";
747
- const candidates = new Set();
748
- if (base) {
749
- candidates.add(base.origin);
750
- }
751
- const bindHost = normalizeHostname(input.bindHost);
752
- if (bindHost && !isLoopbackHost(bindHost)) {
753
- candidates.add(`${protocol}//${bindHost}${port}`);
754
- }
755
- for (const rawHost of input.allowedHostnames) {
756
- const host = normalizeHostname(rawHost);
757
- if (!host)
758
- continue;
759
- candidates.add(`${protocol}//${host}${port}`);
760
- }
761
- if (base && isLoopbackHost(base.hostname)) {
762
- candidates.add(`${protocol}//host.docker.internal${port}`);
763
- }
764
- return Array.from(candidates);
765
- }
766
- function buildInviteOnboardingManifest(req, token, invite, opts) {
767
- const baseUrl = requestBaseUrl(req);
768
- const skillPath = "/api/skills/paperclip";
769
- const skillUrl = baseUrl ? `${baseUrl}${skillPath}` : skillPath;
770
- const registrationEndpointPath = `/api/invites/${token}/accept`;
771
- const registrationEndpointUrl = baseUrl
772
- ? `${baseUrl}${registrationEndpointPath}`
773
- : registrationEndpointPath;
774
- const onboardingTextPath = `/api/invites/${token}/onboarding.txt`;
775
- const onboardingTextUrl = baseUrl
776
- ? `${baseUrl}${onboardingTextPath}`
777
- : onboardingTextPath;
778
- const discoveryDiagnostics = buildOnboardingDiscoveryDiagnostics({
779
- apiBaseUrl: baseUrl,
780
- deploymentMode: opts.deploymentMode,
781
- deploymentExposure: opts.deploymentExposure,
782
- bindHost: opts.bindHost,
783
- allowedHostnames: opts.allowedHostnames
784
- });
785
- const connectionCandidates = buildOnboardingConnectionCandidates({
786
- apiBaseUrl: baseUrl,
787
- bindHost: opts.bindHost,
788
- allowedHostnames: opts.allowedHostnames
789
- });
790
- return {
791
- invite: toInviteSummaryResponse(req, token, invite),
792
- onboarding: {
793
- instructions: "Join as an OpenClaw Gateway agent, save your one-time claim secret, wait for board approval, then claim your API key. Save the claim response token to ~/.openclaw/workspace/paperclip-claimed-api-key.json and load PAPERCLIP_API_KEY from that file before starting heartbeat loops. You MUST submit adapterType='openclaw_gateway', set agentDefaultsPayload.url to your ws:// or wss:// OpenClaw gateway endpoint, and include agentDefaultsPayload.headers.x-openclaw-token (or legacy x-openclaw-auth).",
794
- inviteMessage: extractInviteMessage(invite),
795
- recommendedAdapterType: "openclaw_gateway",
796
- requiredFields: {
797
- requestType: "agent",
798
- agentName: "Display name for this agent",
799
- adapterType: "Use 'openclaw_gateway' for OpenClaw Gateway agents",
800
- capabilities: "Optional capability summary",
801
- agentDefaultsPayload: "Adapter config for OpenClaw gateway. MUST include url (ws:// or wss://) and headers.x-openclaw-token (or legacy x-openclaw-auth). Optional fields: paperclipApiUrl, waitTimeoutMs, sessionKeyStrategy, sessionKey, role, scopes, disableDeviceAuth, devicePrivateKeyPem."
802
- },
803
- registrationEndpoint: {
804
- method: "POST",
805
- path: registrationEndpointPath,
806
- url: registrationEndpointUrl
807
- },
808
- claimEndpointTemplate: {
809
- method: "POST",
810
- path: "/api/join-requests/{requestId}/claim-api-key",
811
- body: {
812
- claimSecret: "one-time claim secret returned when the join request is created"
813
- }
814
- },
815
- connectivity: {
816
- deploymentMode: opts.deploymentMode,
817
- deploymentExposure: opts.deploymentExposure,
818
- bindHost: opts.bindHost,
819
- allowedHostnames: opts.allowedHostnames,
820
- connectionCandidates,
821
- diagnostics: discoveryDiagnostics,
822
- guidance: opts.deploymentMode === "authenticated" &&
823
- opts.deploymentExposure === "private"
824
- ? "If OpenClaw runs on another machine, ensure the Paperclip hostname is reachable and allowed via `pnpm paperclipai allowed-hostname <host>`."
825
- : "Ensure OpenClaw can reach this Paperclip API base URL for invite, claim, and skill bootstrap calls."
826
- },
827
- textInstructions: {
828
- path: onboardingTextPath,
829
- url: onboardingTextUrl,
830
- contentType: "text/plain"
831
- },
832
- skill: {
833
- name: "paperclip",
834
- path: skillPath,
835
- url: skillUrl,
836
- installPath: "~/.openclaw/skills/paperclip/SKILL.md"
837
- }
838
- }
839
- };
840
- }
841
- export function buildInviteOnboardingTextDocument(req, token, invite, opts) {
842
- const manifest = buildInviteOnboardingManifest(req, token, invite, opts);
843
- const onboarding = manifest.onboarding;
844
- const diagnostics = Array.isArray(onboarding.connectivity?.diagnostics)
845
- ? onboarding.connectivity.diagnostics
846
- : [];
847
- const lines = [];
848
- const appendBlock = (block) => {
849
- const trimmed = block.replace(/^\n/, "").replace(/\n\s*$/, "");
850
- const lineIndentation = trimmed
851
- .split("\n")
852
- .filter((line) => line.trim().length > 0)
853
- .map((line) => line.match(/^(\s*)/)?.[0].length ?? 0);
854
- const minIndent = lineIndentation.length > 0 ? Math.min(...lineIndentation) : 0;
855
- for (const line of trimmed.split("\n")) {
856
- lines.push(line.slice(minIndent));
857
- }
858
- };
859
- appendBlock(`
860
- # Paperclip OpenClaw Gateway Onboarding
861
-
862
- This document is meant to be readable by both humans and agents.
863
-
864
- ## Invite
865
- - inviteType: ${invite.inviteType}
866
- - allowedJoinTypes: ${invite.allowedJoinTypes}
867
- - expiresAt: ${invite.expiresAt.toISOString()}
868
- `);
869
- if (onboarding.inviteMessage) {
870
- appendBlock(`
871
- ## Message from inviter
872
- ${onboarding.inviteMessage}
873
- `);
874
- }
875
- appendBlock(`
876
- ## Step 0
877
-
878
- Get the OpenClaw gateway auth token (THIS MUST BE SENT)
879
- Token lives in:
880
-
881
- ~/.openclaw/openclaw.json -> gateway.auth.token
882
- Extract:
883
-
884
- TOKEN="$(node -p 'require(process.env.HOME+\"/.openclaw/openclaw.json\").gateway.auth.token')"
885
- test -n "$TOKEN" || (echo "Missing TOKEN" && exit 1)
886
- test "\${#TOKEN}" -ge 16 || (echo "Gateway token unexpectedly short (\${#TOKEN})" && exit 1)
887
-
888
- 3) IMPORTANT: Don't accidentally drop the token when generating JSON
889
- If you build JSON with Node, pass the token explicitly (argv), don't rely on an un-exported env var.
890
-
891
- Safe payload build looks sort of like this (substitute where necessary):
892
-
893
- BODY="$(node -e '
894
- const token = process.argv[1];
895
- if (!token) process.exit(2);
896
- const body = {
897
- requestType: "agent",
898
- agentName: "OpenClaw",
899
- adapterType: "openclaw_gateway",
900
- capabilities: "OpenClaw agent adapter",
901
- agentDefaultsPayload: {
902
- url: "ws://127.0.0.1:18789",
903
- paperclipApiUrl: "http://host.docker.internal:3100",
904
- headers: { "x-openclaw-token": token },
905
- waitTimeoutMs: 120000,
906
- sessionKeyStrategy: "issue",
907
- role: "operator",
908
- scopes: ["operator.admin"]
909
- }
910
- };
911
- process.stdout.write(JSON.stringify(body));
912
- ' "$TOKEN")"
913
-
914
- ## Step 1: Submit agent join request
915
- ${onboarding.registrationEndpoint.method} ${onboarding.registrationEndpoint.url}
916
-
917
- IMPORTANT: You MUST include agentDefaultsPayload.headers.x-openclaw-token with your gateway token.
918
- Legacy x-openclaw-auth is also accepted, but x-openclaw-token is preferred.
919
- Use adapterType "openclaw_gateway" and a ws:// or wss:// gateway URL.
920
- Pairing mode requirement:
921
- - Keep device auth enabled (recommended). If devicePrivateKeyPem is omitted, Paperclip generates and persists one during join so pairing approvals are stable.
922
- - You may set disableDeviceAuth=true only for special environments that cannot support pairing.
923
- - First run may return "pairing required" once; approve the pending pairing request in OpenClaw, then retry.
924
- Do NOT use /v1/responses or /hooks/* in this gateway join flow.
925
-
926
- Body (JSON):
927
- {
928
- "requestType": "agent",
929
- "agentName": "My OpenClaw Agent",
930
- "adapterType": "openclaw_gateway",
931
- "capabilities": "Optional summary",
932
- "agentDefaultsPayload": {
933
- "url": "wss://your-openclaw-gateway.example",
934
- "paperclipApiUrl": "https://paperclip-hostname-your-agent-can-reach:3100",
935
- "headers": { "x-openclaw-token": "replace-me" },
936
- "waitTimeoutMs": 120000,
937
- "sessionKeyStrategy": "issue",
938
- "role": "operator",
939
- "scopes": ["operator.admin"]
940
- }
941
- }
942
-
943
- Expected response includes:
944
- - request id
945
- - one-time claimSecret
946
- - claimApiKeyPath
947
-
948
- ## Step 2: Wait for board approval
949
- The board approves the join request in Paperclip before key claim is allowed.
950
-
951
- ## Step 3: Claim API key (one-time)
952
- ${onboarding.claimEndpointTemplate.method} /api/join-requests/{requestId}/claim-api-key
953
-
954
- Body (JSON):
955
- {
956
- "claimSecret": "<one-time-claim-secret>"
957
- }
958
-
959
- On successful claim, save the full JSON response to:
960
-
961
- - ~/.openclaw/workspace/paperclip-claimed-api-key.json
962
- chmod 600 ~/.openclaw/workspace/paperclip-claimed-api-key.json
963
-
964
- And set the PAPERCLIP_API_KEY and PAPERCLIP_API_URL in your environment variables as specified here:
965
- https://docs.openclaw.ai/help/environment
966
-
967
- e.g.
968
-
969
- {
970
- env: {
971
- PAPERCLIP_API_KEY: "...",
972
- PAPERCLIP_API_URL: "...",
973
- },
974
- }
975
-
976
- Then set PAPERCLIP_API_KEY and PAPERCLIP_API_URL from the saved token field for every heartbeat run.
977
-
978
- Important:
979
- - claim secrets expire
980
- - claim secrets are single-use
981
- - claim fails before board approval
982
-
983
- ## Step 4: Install Paperclip skill in OpenClaw
984
- GET ${onboarding.skill.url}
985
- Install path: ${onboarding.skill.installPath}
986
-
987
- Be sure to prepend your PAPERCLIP_API_URL to the top of your skill and note the path to your PAPERCLIP_API_URL
988
-
989
- ## Text onboarding URL
990
- ${onboarding.textInstructions.url}
991
-
992
- ## Connectivity guidance
993
- ${onboarding.connectivity?.guidance ??
994
- "Ensure Paperclip is reachable from your OpenClaw runtime."}
995
- `);
996
- const connectionCandidates = Array.isArray(onboarding.connectivity?.connectionCandidates)
997
- ? onboarding.connectivity.connectionCandidates.filter((entry) => Boolean(entry))
998
- : [];
999
- if (connectionCandidates.length > 0) {
1000
- lines.push("## Suggested Paperclip base URLs to try");
1001
- for (const candidate of connectionCandidates) {
1002
- lines.push(`- ${candidate}`);
1003
- }
1004
- appendBlock(`
1005
-
1006
- Test each candidate with:
1007
- - GET <candidate>/api/health
1008
- - set the first reachable candidate as agentDefaultsPayload.paperclipApiUrl when submitting your join request
1009
-
1010
- If none are reachable: ask your human operator for a reachable hostname/address and help them update network configuration.
1011
- For authenticated/private mode, they may need:
1012
- - pnpm paperclipai allowed-hostname <host>
1013
- - then restart Paperclip and retry onboarding.
1014
- `);
1015
- }
1016
- if (diagnostics.length > 0) {
1017
- lines.push("## Connectivity diagnostics");
1018
- for (const diag of diagnostics) {
1019
- lines.push(`- [${diag.level}] ${diag.message}`);
1020
- if (diag.hint)
1021
- lines.push(` hint: ${diag.hint}`);
1022
- }
1023
- }
1024
- appendBlock(`
1025
-
1026
- ## Helpful endpoints
1027
- ${onboarding.registrationEndpoint.path}
1028
- ${onboarding.claimEndpointTemplate.path}
1029
- ${onboarding.skill.path}
1030
- ${manifest.invite.onboardingPath}
1031
- `);
1032
- return `${lines.join("\n")}\n`;
1033
- }
1034
- function extractInviteMessage(invite) {
1035
- const rawDefaults = invite.defaultsPayload;
1036
- if (!rawDefaults ||
1037
- typeof rawDefaults !== "object" ||
1038
- Array.isArray(rawDefaults)) {
1039
- return null;
1040
- }
1041
- const rawMessage = rawDefaults.agentMessage;
1042
- if (typeof rawMessage !== "string") {
1043
- return null;
1044
- }
1045
- const trimmed = rawMessage.trim();
1046
- return trimmed.length ? trimmed : null;
1047
- }
1048
- function mergeInviteDefaults(defaultsPayload, agentMessage) {
1049
- const merged = defaultsPayload && typeof defaultsPayload === "object"
1050
- ? { ...defaultsPayload }
1051
- : {};
1052
- if (agentMessage) {
1053
- merged.agentMessage = agentMessage;
1054
- }
1055
- return Object.keys(merged).length ? merged : null;
1056
- }
1057
- function requestIp(req) {
1058
- const forwarded = req.header("x-forwarded-for");
1059
- if (forwarded) {
1060
- const first = forwarded.split(",")[0]?.trim();
1061
- if (first)
1062
- return first;
1063
- }
1064
- return req.ip || "unknown";
1065
- }
1066
- function inviteExpired(invite) {
1067
- return invite.expiresAt.getTime() <= Date.now();
1068
- }
1069
- function isLocalImplicit(req) {
1070
- return req.actor.type === "board" && req.actor.source === "local_implicit";
1071
- }
1072
- async function resolveActorEmail(db, req) {
1073
- if (isLocalImplicit(req))
1074
- return "local@paperclip.local";
1075
- const userId = req.actor.userId;
1076
- if (!userId)
1077
- return null;
1078
- const user = await db
1079
- .select({ email: authUsers.email })
1080
- .from(authUsers)
1081
- .where(eq(authUsers.id, userId))
1082
- .then((rows) => rows[0] ?? null);
1083
- return user?.email ?? null;
1084
- }
1085
- function grantsFromDefaults(defaultsPayload, key) {
1086
- if (!defaultsPayload || typeof defaultsPayload !== "object")
1087
- return [];
1088
- const scoped = defaultsPayload[key];
1089
- if (!scoped || typeof scoped !== "object")
1090
- return [];
1091
- const grants = scoped.grants;
1092
- if (!Array.isArray(grants))
1093
- return [];
1094
- const validPermissionKeys = new Set(PERMISSION_KEYS);
1095
- const result = [];
1096
- for (const item of grants) {
1097
- if (!item || typeof item !== "object")
1098
- continue;
1099
- const record = item;
1100
- if (typeof record.permissionKey !== "string")
1101
- continue;
1102
- if (!validPermissionKeys.has(record.permissionKey))
1103
- continue;
1104
- result.push({
1105
- permissionKey: record.permissionKey,
1106
- scope: record.scope &&
1107
- typeof record.scope === "object" &&
1108
- !Array.isArray(record.scope)
1109
- ? record.scope
1110
- : null
1111
- });
1112
- }
1113
- return result;
1114
- }
1115
- export function resolveJoinRequestAgentManagerId(candidates) {
1116
- const ceoCandidates = candidates.filter((candidate) => candidate.role === "ceo");
1117
- if (ceoCandidates.length === 0)
1118
- return null;
1119
- const rootCeo = ceoCandidates.find((candidate) => candidate.reportsTo === null);
1120
- return (rootCeo ?? ceoCandidates[0] ?? null)?.id ?? null;
1121
- }
1122
- function isInviteTokenHashCollisionError(error) {
1123
- const candidates = [
1124
- error,
1125
- error?.cause ?? null
1126
- ];
1127
- for (const candidate of candidates) {
1128
- if (!candidate || typeof candidate !== "object")
1129
- continue;
1130
- const code = "code" in candidate && typeof candidate.code === "string"
1131
- ? candidate.code
1132
- : null;
1133
- const message = "message" in candidate && typeof candidate.message === "string"
1134
- ? candidate.message
1135
- : "";
1136
- const constraint = "constraint" in candidate && typeof candidate.constraint === "string"
1137
- ? candidate.constraint
1138
- : null;
1139
- if (code !== "23505")
1140
- continue;
1141
- if (constraint === "invites_token_hash_unique_idx")
1142
- return true;
1143
- if (message.includes("invites_token_hash_unique_idx"))
1144
- return true;
1145
- }
1146
- return false;
1147
- }
1148
- function isAbortError(error) {
1149
- return error instanceof Error && error.name === "AbortError";
1150
- }
1151
- async function probeInviteResolutionTarget(url, timeoutMs) {
1152
- const startedAt = Date.now();
1153
- const controller = new AbortController();
1154
- const timeout = setTimeout(() => controller.abort(), timeoutMs);
1155
- try {
1156
- const response = await fetch(url, {
1157
- method: "HEAD",
1158
- redirect: "manual",
1159
- signal: controller.signal
1160
- });
1161
- const durationMs = Date.now() - startedAt;
1162
- if (response.ok ||
1163
- response.status === 401 ||
1164
- response.status === 403 ||
1165
- response.status === 404 ||
1166
- response.status === 405 ||
1167
- response.status === 422 ||
1168
- response.status === 500 ||
1169
- response.status === 501) {
1170
- return {
1171
- status: "reachable",
1172
- method: "HEAD",
1173
- durationMs,
1174
- httpStatus: response.status,
1175
- message: `Webhook endpoint responded to HEAD with HTTP ${response.status}.`
1176
- };
1177
- }
1178
- return {
1179
- status: "unreachable",
1180
- method: "HEAD",
1181
- durationMs,
1182
- httpStatus: response.status,
1183
- message: `Webhook endpoint probe returned HTTP ${response.status}.`
1184
- };
1185
- }
1186
- catch (error) {
1187
- const durationMs = Date.now() - startedAt;
1188
- if (isAbortError(error)) {
1189
- return {
1190
- status: "timeout",
1191
- method: "HEAD",
1192
- durationMs,
1193
- httpStatus: null,
1194
- message: `Webhook endpoint probe timed out after ${timeoutMs}ms.`
1195
- };
1196
- }
1197
- return {
1198
- status: "unreachable",
1199
- method: "HEAD",
1200
- durationMs,
1201
- httpStatus: null,
1202
- message: error instanceof Error
1203
- ? error.message
1204
- : "Webhook endpoint probe failed."
1205
- };
1206
- }
1207
- finally {
1208
- clearTimeout(timeout);
1209
- }
1210
- }
1211
- export function accessRoutes(db, opts) {
1212
- const router = Router();
1213
- const access = accessService(db);
1214
- const agents = agentService(db);
1215
- async function assertInstanceAdmin(req) {
1216
- if (req.actor.type !== "board")
1217
- throw unauthorized();
1218
- if (isLocalImplicit(req))
1219
- return;
1220
- const allowed = await access.isInstanceAdmin(req.actor.userId);
1221
- if (!allowed)
1222
- throw forbidden("Instance admin required");
1223
- }
1224
- router.get("/board-claim/:token", async (req, res) => {
1225
- const token = req.params.token.trim();
1226
- const code = typeof req.query.code === "string" ? req.query.code.trim() : undefined;
1227
- if (!token)
1228
- throw notFound("Board claim challenge not found");
1229
- const challenge = inspectBoardClaimChallenge(token, code);
1230
- if (challenge.status === "invalid")
1231
- throw notFound("Board claim challenge not found");
1232
- res.json(challenge);
1233
- });
1234
- router.post("/board-claim/:token/claim", async (req, res) => {
1235
- const token = req.params.token.trim();
1236
- const code = typeof req.body?.code === "string" ? req.body.code.trim() : undefined;
1237
- if (!token)
1238
- throw notFound("Board claim challenge not found");
1239
- if (!code)
1240
- throw badRequest("Claim code is required");
1241
- if (req.actor.type !== "board" ||
1242
- req.actor.source !== "session" ||
1243
- !req.actor.userId) {
1244
- throw unauthorized("Sign in before claiming board ownership");
1245
- }
1246
- const claimed = await claimBoardOwnership(db, {
1247
- token,
1248
- code,
1249
- userId: req.actor.userId
1250
- });
1251
- if (claimed.status === "invalid")
1252
- throw notFound("Board claim challenge not found");
1253
- if (claimed.status === "expired")
1254
- throw conflict("Board claim challenge expired. Restart server to generate a new one.");
1255
- if (claimed.status === "claimed") {
1256
- res.json({
1257
- claimed: true,
1258
- userId: claimed.claimedByUserId ?? req.actor.userId
1259
- });
1260
- return;
1261
- }
1262
- throw conflict("Board claim challenge is no longer available");
1263
- });
1264
- async function assertCompanyPermission(req, companyId, permissionKey) {
1265
- assertCompanyAccess(req, companyId);
1266
- if (req.actor.type === "agent") {
1267
- if (!req.actor.agentId)
1268
- throw forbidden();
1269
- const allowed = await access.hasPermission(companyId, "agent", req.actor.agentId, permissionKey);
1270
- if (!allowed)
1271
- throw forbidden("Permission denied");
1272
- return;
1273
- }
1274
- if (req.actor.type !== "board")
1275
- throw unauthorized();
1276
- if (isLocalImplicit(req))
1277
- return;
1278
- const allowed = await access.canUser(companyId, req.actor.userId, permissionKey);
1279
- if (!allowed)
1280
- throw forbidden("Permission denied");
1281
- }
1282
- async function assertCanGenerateOpenClawInvitePrompt(req, companyId) {
1283
- assertCompanyAccess(req, companyId);
1284
- if (req.actor.type === "agent") {
1285
- if (!req.actor.agentId)
1286
- throw forbidden("Agent authentication required");
1287
- const actorAgent = await agents.getById(req.actor.agentId);
1288
- if (!actorAgent || actorAgent.companyId !== companyId) {
1289
- throw forbidden("Agent key cannot access another company");
1290
- }
1291
- if (actorAgent.role !== "ceo") {
1292
- throw forbidden("Only CEO agents can generate OpenClaw invite prompts");
1293
- }
1294
- return;
1295
- }
1296
- if (req.actor.type !== "board")
1297
- throw unauthorized();
1298
- if (isLocalImplicit(req))
1299
- return;
1300
- const allowed = await access.canUser(companyId, req.actor.userId, "users:invite");
1301
- if (!allowed)
1302
- throw forbidden("Permission denied");
1303
- }
1304
- async function createCompanyInviteForCompany(input) {
1305
- const normalizedAgentMessage = typeof input.agentMessage === "string"
1306
- ? input.agentMessage.trim() || null
1307
- : null;
1308
- const insertValues = {
1309
- companyId: input.companyId,
1310
- inviteType: "company_join",
1311
- allowedJoinTypes: input.allowedJoinTypes,
1312
- defaultsPayload: mergeInviteDefaults(input.defaultsPayload ?? null, normalizedAgentMessage),
1313
- expiresAt: companyInviteExpiresAt(),
1314
- invitedByUserId: input.req.actor.userId ?? null
1315
- };
1316
- let token = null;
1317
- let created = null;
1318
- for (let attempt = 0; attempt < INVITE_TOKEN_MAX_RETRIES; attempt += 1) {
1319
- const candidateToken = createInviteToken();
1320
- try {
1321
- const row = await db
1322
- .insert(invites)
1323
- .values({
1324
- ...insertValues,
1325
- tokenHash: hashToken(candidateToken)
1326
- })
1327
- .returning()
1328
- .then((rows) => rows[0]);
1329
- token = candidateToken;
1330
- created = row;
1331
- break;
1332
- }
1333
- catch (error) {
1334
- if (!isInviteTokenHashCollisionError(error)) {
1335
- throw error;
1336
- }
1337
- }
1338
- }
1339
- if (!token || !created) {
1340
- throw conflict("Failed to generate a unique invite token. Please retry.");
1341
- }
1342
- return { token, created, normalizedAgentMessage };
1343
- }
1344
- router.get("/skills/available", (_req, res) => {
1345
- res.json({ skills: listAvailableSkills() });
1346
- });
1347
- router.get("/skills/index", (_req, res) => {
1348
- res.json({
1349
- skills: [
1350
- { name: "paperclip", path: "/api/skills/paperclip" },
1351
- {
1352
- name: "para-memory-files",
1353
- path: "/api/skills/para-memory-files"
1354
- },
1355
- {
1356
- name: "paperclip-create-agent",
1357
- path: "/api/skills/paperclip-create-agent"
1358
- }
1359
- ]
1360
- });
1361
- });
1362
- router.get("/skills/:skillName", (req, res) => {
1363
- const skillName = req.params.skillName.trim().toLowerCase();
1364
- const markdown = readSkillMarkdown(skillName);
1365
- if (!markdown)
1366
- throw notFound("Skill not found");
1367
- res.type("text/markdown").send(markdown);
1368
- });
1369
- router.post("/companies/:companyId/invites", validate(createCompanyInviteSchema), async (req, res) => {
1370
- const companyId = req.params.companyId;
1371
- await assertCompanyPermission(req, companyId, "users:invite");
1372
- const { token, created, normalizedAgentMessage } = await createCompanyInviteForCompany({
1373
- req,
1374
- companyId,
1375
- allowedJoinTypes: req.body.allowedJoinTypes,
1376
- defaultsPayload: req.body.defaultsPayload ?? null,
1377
- agentMessage: req.body.agentMessage ?? null
1378
- });
1379
- await logActivity(db, {
1380
- companyId,
1381
- actorType: req.actor.type === "agent" ? "agent" : "user",
1382
- actorId: req.actor.type === "agent"
1383
- ? req.actor.agentId ?? "unknown-agent"
1384
- : req.actor.userId ?? "board",
1385
- action: "invite.created",
1386
- entityType: "invite",
1387
- entityId: created.id,
1388
- details: {
1389
- inviteType: created.inviteType,
1390
- allowedJoinTypes: created.allowedJoinTypes,
1391
- expiresAt: created.expiresAt.toISOString(),
1392
- hasAgentMessage: Boolean(normalizedAgentMessage)
1393
- }
1394
- });
1395
- const inviteSummary = toInviteSummaryResponse(req, token, created);
1396
- res.status(201).json({
1397
- ...created,
1398
- token,
1399
- inviteUrl: `/invite/${token}`,
1400
- onboardingTextPath: inviteSummary.onboardingTextPath,
1401
- onboardingTextUrl: inviteSummary.onboardingTextUrl,
1402
- inviteMessage: inviteSummary.inviteMessage
1403
- });
1404
- });
1405
- router.post("/companies/:companyId/openclaw/invite-prompt", validate(createOpenClawInvitePromptSchema), async (req, res) => {
1406
- const companyId = req.params.companyId;
1407
- await assertCanGenerateOpenClawInvitePrompt(req, companyId);
1408
- const { token, created, normalizedAgentMessage } = await createCompanyInviteForCompany({
1409
- req,
1410
- companyId,
1411
- allowedJoinTypes: "agent",
1412
- defaultsPayload: null,
1413
- agentMessage: req.body.agentMessage ?? null
1414
- });
1415
- await logActivity(db, {
1416
- companyId,
1417
- actorType: req.actor.type === "agent" ? "agent" : "user",
1418
- actorId: req.actor.type === "agent"
1419
- ? req.actor.agentId ?? "unknown-agent"
1420
- : req.actor.userId ?? "board",
1421
- action: "invite.openclaw_prompt_created",
1422
- entityType: "invite",
1423
- entityId: created.id,
1424
- details: {
1425
- inviteType: created.inviteType,
1426
- allowedJoinTypes: created.allowedJoinTypes,
1427
- expiresAt: created.expiresAt.toISOString(),
1428
- hasAgentMessage: Boolean(normalizedAgentMessage)
1429
- }
1430
- });
1431
- const inviteSummary = toInviteSummaryResponse(req, token, created);
1432
- res.status(201).json({
1433
- ...created,
1434
- token,
1435
- inviteUrl: `/invite/${token}`,
1436
- onboardingTextPath: inviteSummary.onboardingTextPath,
1437
- onboardingTextUrl: inviteSummary.onboardingTextUrl,
1438
- inviteMessage: inviteSummary.inviteMessage
1439
- });
1440
- });
1441
- router.get("/invites/:token", async (req, res) => {
1442
- const token = req.params.token.trim();
1443
- if (!token)
1444
- throw notFound("Invite not found");
1445
- const invite = await db
1446
- .select()
1447
- .from(invites)
1448
- .where(eq(invites.tokenHash, hashToken(token)))
1449
- .then((rows) => rows[0] ?? null);
1450
- if (!invite ||
1451
- invite.revokedAt ||
1452
- invite.acceptedAt ||
1453
- inviteExpired(invite)) {
1454
- throw notFound("Invite not found");
1455
- }
1456
- res.json(toInviteSummaryResponse(req, token, invite));
1457
- });
1458
- router.get("/invites/:token/onboarding", async (req, res) => {
1459
- const token = req.params.token.trim();
1460
- if (!token)
1461
- throw notFound("Invite not found");
1462
- const invite = await db
1463
- .select()
1464
- .from(invites)
1465
- .where(eq(invites.tokenHash, hashToken(token)))
1466
- .then((rows) => rows[0] ?? null);
1467
- if (!invite || invite.revokedAt || inviteExpired(invite)) {
1468
- throw notFound("Invite not found");
1469
- }
1470
- res.json(buildInviteOnboardingManifest(req, token, invite, opts));
1471
- });
1472
- router.get("/invites/:token/onboarding.txt", async (req, res) => {
1473
- const token = req.params.token.trim();
1474
- if (!token)
1475
- throw notFound("Invite not found");
1476
- const invite = await db
1477
- .select()
1478
- .from(invites)
1479
- .where(eq(invites.tokenHash, hashToken(token)))
1480
- .then((rows) => rows[0] ?? null);
1481
- if (!invite || invite.revokedAt || inviteExpired(invite)) {
1482
- throw notFound("Invite not found");
1483
- }
1484
- res
1485
- .type("text/plain; charset=utf-8")
1486
- .send(buildInviteOnboardingTextDocument(req, token, invite, opts));
1487
- });
1488
- router.get("/invites/:token/test-resolution", async (req, res) => {
1489
- const token = req.params.token.trim();
1490
- if (!token)
1491
- throw notFound("Invite not found");
1492
- const invite = await db
1493
- .select()
1494
- .from(invites)
1495
- .where(eq(invites.tokenHash, hashToken(token)))
1496
- .then((rows) => rows[0] ?? null);
1497
- if (!invite || invite.revokedAt || inviteExpired(invite)) {
1498
- throw notFound("Invite not found");
1499
- }
1500
- const rawUrl = typeof req.query.url === "string" ? req.query.url.trim() : "";
1501
- if (!rawUrl)
1502
- throw badRequest("url query parameter is required");
1503
- let target;
1504
- try {
1505
- target = new URL(rawUrl);
1506
- }
1507
- catch {
1508
- throw badRequest("url must be an absolute http(s) URL");
1509
- }
1510
- if (target.protocol !== "http:" && target.protocol !== "https:") {
1511
- throw badRequest("url must use http or https");
1512
- }
1513
- const parsedTimeoutMs = typeof req.query.timeoutMs === "string"
1514
- ? Number(req.query.timeoutMs)
1515
- : NaN;
1516
- const timeoutMs = Number.isFinite(parsedTimeoutMs)
1517
- ? Math.max(1000, Math.min(15000, Math.floor(parsedTimeoutMs)))
1518
- : 5000;
1519
- const probe = await probeInviteResolutionTarget(target, timeoutMs);
1520
- res.json({
1521
- inviteId: invite.id,
1522
- testResolutionPath: `/api/invites/${token}/test-resolution`,
1523
- requestedUrl: target.toString(),
1524
- timeoutMs,
1525
- ...probe
1526
- });
1527
- });
1528
- router.post("/invites/:token/accept", validate(acceptInviteSchema), async (req, res) => {
1529
- const token = req.params.token.trim();
1530
- if (!token)
1531
- throw notFound("Invite not found");
1532
- const invite = await db
1533
- .select()
1534
- .from(invites)
1535
- .where(eq(invites.tokenHash, hashToken(token)))
1536
- .then((rows) => rows[0] ?? null);
1537
- if (!invite || invite.revokedAt || inviteExpired(invite)) {
1538
- throw notFound("Invite not found");
1539
- }
1540
- const inviteAlreadyAccepted = Boolean(invite.acceptedAt);
1541
- const existingJoinRequestForInvite = inviteAlreadyAccepted
1542
- ? await db
1543
- .select()
1544
- .from(joinRequests)
1545
- .where(eq(joinRequests.inviteId, invite.id))
1546
- .then((rows) => rows[0] ?? null)
1547
- : null;
1548
- if (invite.inviteType === "bootstrap_ceo") {
1549
- if (inviteAlreadyAccepted)
1550
- throw notFound("Invite not found");
1551
- if (req.body.requestType !== "human") {
1552
- throw badRequest("Bootstrap invite requires human request type");
1553
- }
1554
- if (req.actor.type !== "board" ||
1555
- (!req.actor.userId && !isLocalImplicit(req))) {
1556
- throw unauthorized("Authenticated user required for bootstrap acceptance");
1557
- }
1558
- const userId = req.actor.userId ?? "local-board";
1559
- const existingAdmin = await access.isInstanceAdmin(userId);
1560
- if (!existingAdmin) {
1561
- await access.promoteInstanceAdmin(userId);
1562
- }
1563
- const updatedInvite = await db
1564
- .update(invites)
1565
- .set({ acceptedAt: new Date(), updatedAt: new Date() })
1566
- .where(eq(invites.id, invite.id))
1567
- .returning()
1568
- .then((rows) => rows[0] ?? invite);
1569
- res.status(202).json({
1570
- inviteId: updatedInvite.id,
1571
- inviteType: updatedInvite.inviteType,
1572
- bootstrapAccepted: true,
1573
- userId
1574
- });
1575
- return;
1576
- }
1577
- const requestType = req.body.requestType;
1578
- const companyId = invite.companyId;
1579
- if (!companyId)
1580
- throw conflict("Invite is missing company scope");
1581
- if (invite.allowedJoinTypes !== "both" &&
1582
- invite.allowedJoinTypes !== requestType) {
1583
- throw badRequest(`Invite does not allow ${requestType} joins`);
1584
- }
1585
- if (requestType === "human" && req.actor.type !== "board") {
1586
- throw unauthorized("Human invite acceptance requires authenticated user");
1587
- }
1588
- if (requestType === "human" &&
1589
- !req.actor.userId &&
1590
- !isLocalImplicit(req)) {
1591
- throw unauthorized("Authenticated user is required");
1592
- }
1593
- if (requestType === "agent" && !req.body.agentName) {
1594
- if (!inviteAlreadyAccepted ||
1595
- !existingJoinRequestForInvite?.agentName) {
1596
- throw badRequest("agentName is required for agent join requests");
1597
- }
1598
- }
1599
- const adapterType = req.body.adapterType ?? null;
1600
- if (inviteAlreadyAccepted &&
1601
- !canReplayOpenClawGatewayInviteAccept({
1602
- requestType,
1603
- adapterType,
1604
- existingJoinRequest: existingJoinRequestForInvite
1605
- })) {
1606
- throw notFound("Invite not found");
1607
- }
1608
- const replayJoinRequestId = inviteAlreadyAccepted
1609
- ? existingJoinRequestForInvite?.id ?? null
1610
- : null;
1611
- if (inviteAlreadyAccepted && !replayJoinRequestId) {
1612
- throw conflict("Join request not found");
1613
- }
1614
- const replayMergedDefaults = inviteAlreadyAccepted
1615
- ? mergeJoinDefaultsPayloadForReplay(existingJoinRequestForInvite?.agentDefaultsPayload ?? null, req.body.agentDefaultsPayload ?? null)
1616
- : req.body.agentDefaultsPayload ?? null;
1617
- const gatewayDefaultsPayload = requestType === "agent"
1618
- ? buildJoinDefaultsPayloadForAccept({
1619
- adapterType,
1620
- defaultsPayload: replayMergedDefaults,
1621
- paperclipApiUrl: req.body.paperclipApiUrl ?? null,
1622
- inboundOpenClawAuthHeader: req.header("x-openclaw-auth") ?? null,
1623
- inboundOpenClawTokenHeader: req.header("x-openclaw-token") ?? null
1624
- })
1625
- : null;
1626
- const joinDefaults = requestType === "agent"
1627
- ? normalizeAgentDefaultsForJoin({
1628
- adapterType,
1629
- defaultsPayload: gatewayDefaultsPayload,
1630
- deploymentMode: opts.deploymentMode,
1631
- deploymentExposure: opts.deploymentExposure,
1632
- bindHost: opts.bindHost,
1633
- allowedHostnames: opts.allowedHostnames
1634
- })
1635
- : {
1636
- normalized: null,
1637
- diagnostics: [],
1638
- fatalErrors: []
1639
- };
1640
- if (requestType === "agent" && joinDefaults.fatalErrors.length > 0) {
1641
- throw badRequest(joinDefaults.fatalErrors.join("; "));
1642
- }
1643
- if (requestType === "agent" && adapterType === "openclaw_gateway") {
1644
- logger.info({
1645
- inviteId: invite.id,
1646
- joinRequestDiagnostics: joinDefaults.diagnostics.map((diag) => ({
1647
- code: diag.code,
1648
- level: diag.level
1649
- })),
1650
- normalizedAgentDefaults: summarizeOpenClawGatewayDefaultsForLog(joinDefaults.normalized)
1651
- }, "invite accept normalized OpenClaw gateway defaults");
1652
- }
1653
- const claimSecret = requestType === "agent" && !inviteAlreadyAccepted
1654
- ? createClaimSecret()
1655
- : null;
1656
- const claimSecretHash = claimSecret ? hashToken(claimSecret) : null;
1657
- const claimSecretExpiresAt = claimSecret
1658
- ? new Date(Date.now() + 7 * 24 * 60 * 60 * 1000)
1659
- : null;
1660
- const actorEmail = requestType === "human" ? await resolveActorEmail(db, req) : null;
1661
- const created = !inviteAlreadyAccepted
1662
- ? await db.transaction(async (tx) => {
1663
- await tx
1664
- .update(invites)
1665
- .set({ acceptedAt: new Date(), updatedAt: new Date() })
1666
- .where(and(eq(invites.id, invite.id), isNull(invites.acceptedAt), isNull(invites.revokedAt)));
1667
- const row = await tx
1668
- .insert(joinRequests)
1669
- .values({
1670
- inviteId: invite.id,
1671
- companyId,
1672
- requestType,
1673
- status: "pending_approval",
1674
- requestIp: requestIp(req),
1675
- requestingUserId: requestType === "human"
1676
- ? req.actor.userId ?? "local-board"
1677
- : null,
1678
- requestEmailSnapshot: requestType === "human" ? actorEmail : null,
1679
- agentName: requestType === "agent" ? req.body.agentName : null,
1680
- adapterType: requestType === "agent" ? adapterType : null,
1681
- capabilities: requestType === "agent"
1682
- ? req.body.capabilities ?? null
1683
- : null,
1684
- agentDefaultsPayload: requestType === "agent" ? joinDefaults.normalized : null,
1685
- claimSecretHash,
1686
- claimSecretExpiresAt
1687
- })
1688
- .returning()
1689
- .then((rows) => rows[0]);
1690
- return row;
1691
- })
1692
- : await db
1693
- .update(joinRequests)
1694
- .set({
1695
- requestIp: requestIp(req),
1696
- agentName: requestType === "agent"
1697
- ? req.body.agentName ??
1698
- existingJoinRequestForInvite?.agentName ??
1699
- null
1700
- : null,
1701
- capabilities: requestType === "agent"
1702
- ? req.body.capabilities ??
1703
- existingJoinRequestForInvite?.capabilities ??
1704
- null
1705
- : null,
1706
- adapterType: requestType === "agent" ? adapterType : null,
1707
- agentDefaultsPayload: requestType === "agent" ? joinDefaults.normalized : null,
1708
- updatedAt: new Date()
1709
- })
1710
- .where(eq(joinRequests.id, replayJoinRequestId))
1711
- .returning()
1712
- .then((rows) => rows[0]);
1713
- if (!created) {
1714
- throw conflict("Join request not found");
1715
- }
1716
- if (inviteAlreadyAccepted &&
1717
- requestType === "agent" &&
1718
- adapterType === "openclaw_gateway" &&
1719
- created.status === "approved" &&
1720
- created.createdAgentId) {
1721
- const existingAgent = await agents.getById(created.createdAgentId);
1722
- if (!existingAgent) {
1723
- throw conflict("Approved join request agent not found");
1724
- }
1725
- const existingAdapterConfig = isPlainObject(existingAgent.adapterConfig)
1726
- ? existingAgent.adapterConfig
1727
- : {};
1728
- const nextAdapterConfig = {
1729
- ...existingAdapterConfig,
1730
- ...(joinDefaults.normalized ?? {})
1731
- };
1732
- const updatedAgent = await agents.update(created.createdAgentId, {
1733
- adapterType,
1734
- adapterConfig: nextAdapterConfig
1735
- });
1736
- if (!updatedAgent) {
1737
- throw conflict("Approved join request agent not found");
1738
- }
1739
- await logActivity(db, {
1740
- companyId,
1741
- actorType: req.actor.type === "agent" ? "agent" : "user",
1742
- actorId: req.actor.type === "agent"
1743
- ? req.actor.agentId ?? "invite-agent"
1744
- : req.actor.userId ?? "board",
1745
- action: "agent.updated_from_join_replay",
1746
- entityType: "agent",
1747
- entityId: updatedAgent.id,
1748
- details: { inviteId: invite.id, joinRequestId: created.id }
1749
- });
1750
- }
1751
- if (requestType === "agent" && adapterType === "openclaw_gateway") {
1752
- const expectedDefaults = summarizeOpenClawGatewayDefaultsForLog(joinDefaults.normalized);
1753
- const persistedDefaults = summarizeOpenClawGatewayDefaultsForLog(created.agentDefaultsPayload);
1754
- const missingPersistedFields = [];
1755
- if (expectedDefaults.url && !persistedDefaults.url)
1756
- missingPersistedFields.push("url");
1757
- if (expectedDefaults.paperclipApiUrl &&
1758
- !persistedDefaults.paperclipApiUrl) {
1759
- missingPersistedFields.push("paperclipApiUrl");
1760
- }
1761
- if (expectedDefaults.gatewayToken && !persistedDefaults.gatewayToken) {
1762
- missingPersistedFields.push("headers.x-openclaw-token");
1763
- }
1764
- if (expectedDefaults.devicePrivateKeyPem &&
1765
- !persistedDefaults.devicePrivateKeyPem) {
1766
- missingPersistedFields.push("devicePrivateKeyPem");
1767
- }
1768
- if (expectedDefaults.headerKeys.length > 0 &&
1769
- persistedDefaults.headerKeys.length === 0) {
1770
- missingPersistedFields.push("headers");
1771
- }
1772
- logger.info({
1773
- inviteId: invite.id,
1774
- joinRequestId: created.id,
1775
- joinRequestStatus: created.status,
1776
- expectedDefaults,
1777
- persistedDefaults,
1778
- diagnostics: joinDefaults.diagnostics.map((diag) => ({
1779
- code: diag.code,
1780
- level: diag.level,
1781
- message: diag.message,
1782
- hint: diag.hint ?? null
1783
- }))
1784
- }, "invite accept persisted OpenClaw gateway join request");
1785
- if (missingPersistedFields.length > 0) {
1786
- logger.warn({
1787
- inviteId: invite.id,
1788
- joinRequestId: created.id,
1789
- missingPersistedFields
1790
- }, "invite accept detected missing persisted OpenClaw gateway defaults");
1791
- }
1792
- }
1793
- await logActivity(db, {
1794
- companyId,
1795
- actorType: req.actor.type === "agent" ? "agent" : "user",
1796
- actorId: req.actor.type === "agent"
1797
- ? req.actor.agentId ?? "invite-agent"
1798
- : req.actor.userId ??
1799
- (requestType === "agent" ? "invite-anon" : "board"),
1800
- action: inviteAlreadyAccepted
1801
- ? "join.request_replayed"
1802
- : "join.requested",
1803
- entityType: "join_request",
1804
- entityId: created.id,
1805
- details: {
1806
- requestType,
1807
- requestIp: created.requestIp,
1808
- inviteReplay: inviteAlreadyAccepted
1809
- }
1810
- });
1811
- const response = toJoinRequestResponse(created);
1812
- if (claimSecret) {
1813
- const onboardingManifest = buildInviteOnboardingManifest(req, token, invite, opts);
1814
- res.status(202).json({
1815
- ...response,
1816
- claimSecret,
1817
- claimApiKeyPath: `/api/join-requests/${created.id}/claim-api-key`,
1818
- onboarding: onboardingManifest.onboarding,
1819
- diagnostics: joinDefaults.diagnostics
1820
- });
1821
- return;
1822
- }
1823
- res.status(202).json({
1824
- ...response,
1825
- ...(joinDefaults.diagnostics.length > 0
1826
- ? { diagnostics: joinDefaults.diagnostics }
1827
- : {})
1828
- });
1829
- });
1830
- router.post("/invites/:inviteId/revoke", async (req, res) => {
1831
- const id = req.params.inviteId;
1832
- const invite = await db
1833
- .select()
1834
- .from(invites)
1835
- .where(eq(invites.id, id))
1836
- .then((rows) => rows[0] ?? null);
1837
- if (!invite)
1838
- throw notFound("Invite not found");
1839
- if (invite.inviteType === "bootstrap_ceo") {
1840
- await assertInstanceAdmin(req);
1841
- }
1842
- else {
1843
- if (!invite.companyId)
1844
- throw conflict("Invite is missing company scope");
1845
- await assertCompanyPermission(req, invite.companyId, "users:invite");
1846
- }
1847
- if (invite.acceptedAt)
1848
- throw conflict("Invite already consumed");
1849
- if (invite.revokedAt)
1850
- return res.json(invite);
1851
- const revoked = await db
1852
- .update(invites)
1853
- .set({ revokedAt: new Date(), updatedAt: new Date() })
1854
- .where(eq(invites.id, id))
1855
- .returning()
1856
- .then((rows) => rows[0]);
1857
- if (invite.companyId) {
1858
- await logActivity(db, {
1859
- companyId: invite.companyId,
1860
- actorType: req.actor.type === "agent" ? "agent" : "user",
1861
- actorId: req.actor.type === "agent"
1862
- ? req.actor.agentId ?? "unknown-agent"
1863
- : req.actor.userId ?? "board",
1864
- action: "invite.revoked",
1865
- entityType: "invite",
1866
- entityId: id
1867
- });
1868
- }
1869
- res.json(revoked);
1870
- });
1871
- router.get("/companies/:companyId/join-requests", async (req, res) => {
1872
- const companyId = req.params.companyId;
1873
- await assertCompanyPermission(req, companyId, "joins:approve");
1874
- const query = listJoinRequestsQuerySchema.parse(req.query);
1875
- const all = await db
1876
- .select()
1877
- .from(joinRequests)
1878
- .where(eq(joinRequests.companyId, companyId))
1879
- .orderBy(desc(joinRequests.createdAt));
1880
- const filtered = all.filter((row) => {
1881
- if (query.status && row.status !== query.status)
1882
- return false;
1883
- if (query.requestType && row.requestType !== query.requestType)
1884
- return false;
1885
- return true;
1886
- });
1887
- res.json(filtered.map(toJoinRequestResponse));
1888
- });
1889
- router.post("/companies/:companyId/join-requests/:requestId/approve", async (req, res) => {
1890
- const companyId = req.params.companyId;
1891
- const requestId = req.params.requestId;
1892
- await assertCompanyPermission(req, companyId, "joins:approve");
1893
- const existing = await db
1894
- .select()
1895
- .from(joinRequests)
1896
- .where(and(eq(joinRequests.companyId, companyId), eq(joinRequests.id, requestId)))
1897
- .then((rows) => rows[0] ?? null);
1898
- if (!existing)
1899
- throw notFound("Join request not found");
1900
- if (existing.status !== "pending_approval")
1901
- throw conflict("Join request is not pending");
1902
- const invite = await db
1903
- .select()
1904
- .from(invites)
1905
- .where(eq(invites.id, existing.inviteId))
1906
- .then((rows) => rows[0] ?? null);
1907
- if (!invite)
1908
- throw notFound("Invite not found");
1909
- let createdAgentId = existing.createdAgentId ?? null;
1910
- if (existing.requestType === "human") {
1911
- if (!existing.requestingUserId)
1912
- throw conflict("Join request missing user identity");
1913
- await access.ensureMembership(companyId, "user", existing.requestingUserId, "member", "active");
1914
- const grants = grantsFromDefaults(invite.defaultsPayload, "human");
1915
- await access.setPrincipalGrants(companyId, "user", existing.requestingUserId, grants, req.actor.userId ?? null);
1916
- }
1917
- else {
1918
- const existingAgents = await agents.list(companyId);
1919
- const managerId = resolveJoinRequestAgentManagerId(existingAgents);
1920
- if (!managerId) {
1921
- throw conflict("Join request cannot be approved because this company has no active CEO");
1922
- }
1923
- const agentName = deduplicateAgentName(existing.agentName ?? "New Agent", existingAgents.map((a) => ({
1924
- id: a.id,
1925
- name: a.name,
1926
- status: a.status
1927
- })));
1928
- const created = await agents.create(companyId, {
1929
- name: agentName,
1930
- role: "general",
1931
- title: null,
1932
- status: "idle",
1933
- reportsTo: managerId,
1934
- capabilities: existing.capabilities ?? null,
1935
- adapterType: existing.adapterType ?? "process",
1936
- adapterConfig: existing.agentDefaultsPayload &&
1937
- typeof existing.agentDefaultsPayload === "object"
1938
- ? existing.agentDefaultsPayload
1939
- : {},
1940
- runtimeConfig: {},
1941
- budgetMonthlyCents: 0,
1942
- spentMonthlyCents: 0,
1943
- permissions: {},
1944
- lastHeartbeatAt: null,
1945
- metadata: null
1946
- });
1947
- createdAgentId = created.id;
1948
- await access.ensureMembership(companyId, "agent", created.id, "member", "active");
1949
- await access.setPrincipalPermission(companyId, "agent", created.id, "tasks:assign", true, req.actor.userId ?? null);
1950
- const grants = grantsFromDefaults(invite.defaultsPayload, "agent");
1951
- await access.setPrincipalGrants(companyId, "agent", created.id, grants, req.actor.userId ?? null);
1952
- }
1953
- const approved = await db
1954
- .update(joinRequests)
1955
- .set({
1956
- status: "approved",
1957
- approvedByUserId: req.actor.userId ?? (isLocalImplicit(req) ? "local-board" : null),
1958
- approvedAt: new Date(),
1959
- createdAgentId,
1960
- updatedAt: new Date()
1961
- })
1962
- .where(eq(joinRequests.id, requestId))
1963
- .returning()
1964
- .then((rows) => rows[0]);
1965
- await logActivity(db, {
1966
- companyId,
1967
- actorType: "user",
1968
- actorId: req.actor.userId ?? "board",
1969
- action: "join.approved",
1970
- entityType: "join_request",
1971
- entityId: requestId,
1972
- details: { requestType: existing.requestType, createdAgentId }
1973
- });
1974
- if (createdAgentId) {
1975
- void notifyHireApproved(db, {
1976
- companyId,
1977
- agentId: createdAgentId,
1978
- source: "join_request",
1979
- sourceId: requestId,
1980
- approvedAt: new Date()
1981
- }).catch(() => { });
1982
- }
1983
- res.json(toJoinRequestResponse(approved));
1984
- });
1985
- router.post("/companies/:companyId/join-requests/:requestId/reject", async (req, res) => {
1986
- const companyId = req.params.companyId;
1987
- const requestId = req.params.requestId;
1988
- await assertCompanyPermission(req, companyId, "joins:approve");
1989
- const existing = await db
1990
- .select()
1991
- .from(joinRequests)
1992
- .where(and(eq(joinRequests.companyId, companyId), eq(joinRequests.id, requestId)))
1993
- .then((rows) => rows[0] ?? null);
1994
- if (!existing)
1995
- throw notFound("Join request not found");
1996
- if (existing.status !== "pending_approval")
1997
- throw conflict("Join request is not pending");
1998
- const rejected = await db
1999
- .update(joinRequests)
2000
- .set({
2001
- status: "rejected",
2002
- rejectedByUserId: req.actor.userId ?? (isLocalImplicit(req) ? "local-board" : null),
2003
- rejectedAt: new Date(),
2004
- updatedAt: new Date()
2005
- })
2006
- .where(eq(joinRequests.id, requestId))
2007
- .returning()
2008
- .then((rows) => rows[0]);
2009
- await logActivity(db, {
2010
- companyId,
2011
- actorType: "user",
2012
- actorId: req.actor.userId ?? "board",
2013
- action: "join.rejected",
2014
- entityType: "join_request",
2015
- entityId: requestId,
2016
- details: { requestType: existing.requestType }
2017
- });
2018
- res.json(toJoinRequestResponse(rejected));
2019
- });
2020
- router.post("/join-requests/:requestId/claim-api-key", validate(claimJoinRequestApiKeySchema), async (req, res) => {
2021
- const requestId = req.params.requestId;
2022
- const presentedClaimSecretHash = hashToken(req.body.claimSecret);
2023
- const joinRequest = await db
2024
- .select()
2025
- .from(joinRequests)
2026
- .where(eq(joinRequests.id, requestId))
2027
- .then((rows) => rows[0] ?? null);
2028
- if (!joinRequest)
2029
- throw notFound("Join request not found");
2030
- if (joinRequest.requestType !== "agent")
2031
- throw badRequest("Only agent join requests can claim API keys");
2032
- if (joinRequest.status !== "approved")
2033
- throw conflict("Join request must be approved before key claim");
2034
- if (!joinRequest.createdAgentId)
2035
- throw conflict("Join request has no created agent");
2036
- if (!joinRequest.claimSecretHash)
2037
- throw conflict("Join request is missing claim secret metadata");
2038
- if (!tokenHashesMatch(joinRequest.claimSecretHash, presentedClaimSecretHash)) {
2039
- throw forbidden("Invalid claim secret");
2040
- }
2041
- if (joinRequest.claimSecretExpiresAt &&
2042
- joinRequest.claimSecretExpiresAt.getTime() <= Date.now()) {
2043
- throw conflict("Claim secret expired");
2044
- }
2045
- if (joinRequest.claimSecretConsumedAt)
2046
- throw conflict("Claim secret already used");
2047
- const existingKey = await db
2048
- .select({ id: agentApiKeys.id })
2049
- .from(agentApiKeys)
2050
- .where(eq(agentApiKeys.agentId, joinRequest.createdAgentId))
2051
- .then((rows) => rows[0] ?? null);
2052
- if (existingKey)
2053
- throw conflict("API key already claimed");
2054
- const consumed = await db
2055
- .update(joinRequests)
2056
- .set({ claimSecretConsumedAt: new Date(), updatedAt: new Date() })
2057
- .where(and(eq(joinRequests.id, requestId), isNull(joinRequests.claimSecretConsumedAt)))
2058
- .returning({ id: joinRequests.id })
2059
- .then((rows) => rows[0] ?? null);
2060
- if (!consumed)
2061
- throw conflict("Claim secret already used");
2062
- const created = await agents.createApiKey(joinRequest.createdAgentId, "initial-join-key");
2063
- await logActivity(db, {
2064
- companyId: joinRequest.companyId,
2065
- actorType: "system",
2066
- actorId: "join-claim",
2067
- action: "agent_api_key.claimed",
2068
- entityType: "agent_api_key",
2069
- entityId: created.id,
2070
- details: {
2071
- agentId: joinRequest.createdAgentId,
2072
- joinRequestId: requestId
2073
- }
2074
- });
2075
- res.status(201).json({
2076
- keyId: created.id,
2077
- token: created.token,
2078
- agentId: joinRequest.createdAgentId,
2079
- createdAt: created.createdAt
2080
- });
2081
- });
2082
- router.get("/companies/:companyId/members", async (req, res) => {
2083
- const companyId = req.params.companyId;
2084
- await assertCompanyPermission(req, companyId, "users:manage_permissions");
2085
- const members = await access.listMembers(companyId);
2086
- res.json(members);
2087
- });
2088
- router.patch("/companies/:companyId/members/:memberId/permissions", validate(updateMemberPermissionsSchema), async (req, res) => {
2089
- const companyId = req.params.companyId;
2090
- const memberId = req.params.memberId;
2091
- await assertCompanyPermission(req, companyId, "users:manage_permissions");
2092
- const updated = await access.setMemberPermissions(companyId, memberId, req.body.grants ?? [], req.actor.userId ?? null);
2093
- if (!updated)
2094
- throw notFound("Member not found");
2095
- res.json(updated);
2096
- });
2097
- router.post("/admin/users/:userId/promote-instance-admin", async (req, res) => {
2098
- await assertInstanceAdmin(req);
2099
- const userId = req.params.userId;
2100
- const result = await access.promoteInstanceAdmin(userId);
2101
- res.status(201).json(result);
2102
- });
2103
- router.post("/admin/users/:userId/demote-instance-admin", async (req, res) => {
2104
- await assertInstanceAdmin(req);
2105
- const userId = req.params.userId;
2106
- const removed = await access.demoteInstanceAdmin(userId);
2107
- if (!removed)
2108
- throw notFound("Instance admin role not found");
2109
- res.json(removed);
2110
- });
2111
- router.get("/admin/users/:userId/company-access", async (req, res) => {
2112
- await assertInstanceAdmin(req);
2113
- const userId = req.params.userId;
2114
- const memberships = await access.listUserCompanyAccess(userId);
2115
- res.json(memberships);
2116
- });
2117
- router.put("/admin/users/:userId/company-access", validate(updateUserCompanyAccessSchema), async (req, res) => {
2118
- await assertInstanceAdmin(req);
2119
- const userId = req.params.userId;
2120
- const memberships = await access.setUserCompanyAccess(userId, req.body.companyIds ?? []);
2121
- res.json(memberships);
2122
- });
2123
- return router;
2124
- }
2125
- //# sourceMappingURL=access.js.map