@growthub/cli 0.3.13 → 0.3.15

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 +190 -186
  2. package/dist/index.js.map +1 -1
  3. package/dist/runtime/server/dist/adapters/codex-models.d.ts +4 -0
  4. package/dist/runtime/server/dist/adapters/codex-models.d.ts.map +1 -0
  5. package/dist/runtime/server/dist/adapters/codex-models.js +98 -0
  6. package/dist/runtime/server/dist/adapters/codex-models.js.map +1 -0
  7. package/dist/runtime/server/dist/adapters/cursor-models.d.ts +13 -0
  8. package/dist/runtime/server/dist/adapters/cursor-models.d.ts.map +1 -0
  9. package/dist/runtime/server/dist/adapters/cursor-models.js +148 -0
  10. package/dist/runtime/server/dist/adapters/cursor-models.js.map +1 -0
  11. package/dist/runtime/server/dist/adapters/http/execute.d.ts +3 -0
  12. package/dist/runtime/server/dist/adapters/http/execute.d.ts.map +1 -0
  13. package/dist/runtime/server/dist/adapters/http/execute.js +39 -0
  14. package/dist/runtime/server/dist/adapters/http/execute.js.map +1 -0
  15. package/dist/runtime/server/dist/adapters/http/index.d.ts +3 -0
  16. package/dist/runtime/server/dist/adapters/http/index.d.ts.map +1 -0
  17. package/dist/runtime/server/dist/adapters/http/index.js +20 -0
  18. package/dist/runtime/server/dist/adapters/http/index.js.map +1 -0
  19. package/dist/runtime/server/dist/adapters/http/test.d.ts +3 -0
  20. package/dist/runtime/server/dist/adapters/http/test.d.ts.map +1 -0
  21. package/dist/runtime/server/dist/adapters/http/test.js +106 -0
  22. package/dist/runtime/server/dist/adapters/http/test.js.map +1 -0
  23. package/dist/runtime/server/dist/adapters/index.d.ts +4 -0
  24. package/dist/runtime/server/dist/adapters/index.d.ts.map +1 -0
  25. package/dist/runtime/server/dist/adapters/index.js +3 -0
  26. package/dist/runtime/server/dist/adapters/index.js.map +1 -0
  27. package/dist/runtime/server/dist/adapters/process/execute.d.ts +3 -0
  28. package/dist/runtime/server/dist/adapters/process/execute.d.ts.map +1 -0
  29. package/dist/runtime/server/dist/adapters/process/execute.js +63 -0
  30. package/dist/runtime/server/dist/adapters/process/execute.js.map +1 -0
  31. package/dist/runtime/server/dist/adapters/process/index.d.ts +3 -0
  32. package/dist/runtime/server/dist/adapters/process/index.d.ts.map +1 -0
  33. package/dist/runtime/server/dist/adapters/process/index.js +23 -0
  34. package/dist/runtime/server/dist/adapters/process/index.js.map +1 -0
  35. package/dist/runtime/server/dist/adapters/process/test.d.ts +3 -0
  36. package/dist/runtime/server/dist/adapters/process/test.d.ts.map +1 -0
  37. package/dist/runtime/server/dist/adapters/process/test.js +77 -0
  38. package/dist/runtime/server/dist/adapters/process/test.js.map +1 -0
  39. package/dist/runtime/server/dist/adapters/registry.d.ts +9 -0
  40. package/dist/runtime/server/dist/adapters/registry.d.ts.map +1 -0
  41. package/dist/runtime/server/dist/adapters/registry.js +142 -0
  42. package/dist/runtime/server/dist/adapters/registry.js.map +1 -0
  43. package/dist/runtime/server/dist/adapters/types.d.ts +2 -0
  44. package/dist/runtime/server/dist/adapters/types.d.ts.map +1 -0
  45. package/dist/runtime/server/dist/adapters/types.js +2 -0
  46. package/dist/runtime/server/dist/adapters/types.js.map +1 -0
  47. package/dist/runtime/server/dist/adapters/utils.d.ts +10 -0
  48. package/dist/runtime/server/dist/adapters/utils.d.ts.map +1 -0
  49. package/dist/runtime/server/dist/adapters/utils.js +14 -0
  50. package/dist/runtime/server/dist/adapters/utils.js.map +1 -0
  51. package/dist/runtime/server/dist/agent-auth-jwt.d.ts +14 -0
  52. package/dist/runtime/server/dist/agent-auth-jwt.d.ts.map +1 -0
  53. package/dist/runtime/server/dist/agent-auth-jwt.js +117 -0
  54. package/dist/runtime/server/dist/agent-auth-jwt.js.map +1 -0
  55. package/dist/runtime/server/dist/app.d.ts +26 -0
  56. package/dist/runtime/server/dist/app.d.ts.map +1 -0
  57. package/dist/runtime/server/dist/app.js +371 -0
  58. package/dist/runtime/server/dist/app.js.map +1 -0
  59. package/dist/runtime/server/dist/attachment-types.d.ts +33 -0
  60. package/dist/runtime/server/dist/attachment-types.d.ts.map +1 -0
  61. package/dist/runtime/server/dist/attachment-types.js +67 -0
  62. package/dist/runtime/server/dist/attachment-types.js.map +1 -0
  63. package/dist/runtime/server/dist/auth/better-auth.d.ts +24 -0
  64. package/dist/runtime/server/dist/auth/better-auth.d.ts.map +1 -0
  65. package/dist/runtime/server/dist/auth/better-auth.js +108 -0
  66. package/dist/runtime/server/dist/auth/better-auth.js.map +1 -0
  67. package/dist/runtime/server/dist/board-claim.d.ts +23 -0
  68. package/dist/runtime/server/dist/board-claim.d.ts.map +1 -0
  69. package/dist/runtime/server/dist/board-claim.js +115 -0
  70. package/dist/runtime/server/dist/board-claim.js.map +1 -0
  71. package/dist/runtime/server/dist/config-file.d.ts +4 -0
  72. package/dist/runtime/server/dist/config-file.d.ts.map +1 -0
  73. package/dist/runtime/server/dist/config-file.js +25 -0
  74. package/dist/runtime/server/dist/config-file.js.map +1 -0
  75. package/dist/runtime/server/dist/config.d.ts +39 -0
  76. package/dist/runtime/server/dist/config.d.ts.map +1 -0
  77. package/dist/runtime/server/dist/config.js +164 -0
  78. package/dist/runtime/server/dist/config.js.map +1 -0
  79. package/dist/runtime/server/dist/errors.d.ts +12 -0
  80. package/dist/runtime/server/dist/errors.d.ts.map +1 -0
  81. package/dist/runtime/server/dist/errors.js +28 -0
  82. package/dist/runtime/server/dist/errors.js.map +1 -0
  83. package/dist/runtime/server/dist/home-paths.d.ts +17 -0
  84. package/dist/runtime/server/dist/home-paths.d.ts.map +1 -0
  85. package/dist/runtime/server/dist/home-paths.js +75 -0
  86. package/dist/runtime/server/dist/home-paths.js.map +1 -0
  87. package/dist/runtime/server/dist/index.d.ts +10 -0
  88. package/dist/runtime/server/dist/index.d.ts.map +1 -0
  89. package/dist/runtime/server/dist/index.js +567 -0
  90. package/dist/runtime/server/dist/index.js.map +1 -0
  91. package/dist/runtime/server/dist/log-redaction.d.ts +10 -0
  92. package/dist/runtime/server/dist/log-redaction.d.ts.map +1 -0
  93. package/dist/runtime/server/dist/log-redaction.js +110 -0
  94. package/dist/runtime/server/dist/log-redaction.js.map +1 -0
  95. package/dist/runtime/server/dist/middleware/auth.d.ts +12 -0
  96. package/dist/runtime/server/dist/middleware/auth.d.ts.map +1 -0
  97. package/dist/runtime/server/dist/middleware/auth.js +124 -0
  98. package/dist/runtime/server/dist/middleware/auth.js.map +1 -0
  99. package/dist/runtime/server/dist/middleware/board-mutation-guard.d.ts +3 -0
  100. package/dist/runtime/server/dist/middleware/board-mutation-guard.d.ts.map +1 -0
  101. package/dist/runtime/server/dist/middleware/board-mutation-guard.js +60 -0
  102. package/dist/runtime/server/dist/middleware/board-mutation-guard.js.map +1 -0
  103. package/dist/runtime/server/dist/middleware/error-handler.d.ts +17 -0
  104. package/dist/runtime/server/dist/middleware/error-handler.d.ts.map +1 -0
  105. package/dist/runtime/server/dist/middleware/error-handler.js +37 -0
  106. package/dist/runtime/server/dist/middleware/error-handler.js.map +1 -0
  107. package/dist/runtime/server/dist/middleware/index.d.ts +4 -0
  108. package/dist/runtime/server/dist/middleware/index.d.ts.map +1 -0
  109. package/dist/runtime/server/dist/middleware/index.js +4 -0
  110. package/dist/runtime/server/dist/middleware/index.js.map +1 -0
  111. package/dist/runtime/server/dist/middleware/logger.d.ts +4 -0
  112. package/dist/runtime/server/dist/middleware/logger.d.ts.map +1 -0
  113. package/dist/runtime/server/dist/middleware/logger.js +87 -0
  114. package/dist/runtime/server/dist/middleware/logger.js.map +1 -0
  115. package/dist/runtime/server/dist/middleware/private-hostname-guard.d.ts +11 -0
  116. package/dist/runtime/server/dist/middleware/private-hostname-guard.d.ts.map +1 -0
  117. package/dist/runtime/server/dist/middleware/private-hostname-guard.js +78 -0
  118. package/dist/runtime/server/dist/middleware/private-hostname-guard.js.map +1 -0
  119. package/dist/runtime/server/dist/middleware/validate.d.ts +4 -0
  120. package/dist/runtime/server/dist/middleware/validate.d.ts.map +1 -0
  121. package/dist/runtime/server/dist/middleware/validate.js +7 -0
  122. package/dist/runtime/server/dist/middleware/validate.js.map +1 -0
  123. package/dist/runtime/server/dist/paths.d.ts +3 -0
  124. package/dist/runtime/server/dist/paths.d.ts.map +1 -0
  125. package/dist/runtime/server/dist/paths.js +31 -0
  126. package/dist/runtime/server/dist/paths.js.map +1 -0
  127. package/dist/runtime/server/dist/realtime/live-events-ws.d.ts +28 -0
  128. package/dist/runtime/server/dist/realtime/live-events-ws.d.ts.map +1 -0
  129. package/dist/runtime/server/dist/realtime/live-events-ws.js +187 -0
  130. package/dist/runtime/server/dist/realtime/live-events-ws.js.map +1 -0
  131. package/dist/runtime/server/dist/redaction.d.ts +4 -0
  132. package/dist/runtime/server/dist/redaction.d.ts.map +1 -0
  133. package/dist/runtime/server/dist/redaction.js +63 -0
  134. package/dist/runtime/server/dist/redaction.js.map +1 -0
  135. package/dist/runtime/server/dist/routes/access.d.ts +56 -0
  136. package/dist/runtime/server/dist/routes/access.d.ts.map +1 -0
  137. package/dist/runtime/server/dist/routes/access.js +2125 -0
  138. package/dist/runtime/server/dist/routes/access.js.map +1 -0
  139. package/dist/runtime/server/dist/routes/activity.d.ts +3 -0
  140. package/dist/runtime/server/dist/routes/activity.d.ts.map +1 -0
  141. package/dist/runtime/server/dist/routes/activity.js +78 -0
  142. package/dist/runtime/server/dist/routes/activity.js.map +1 -0
  143. package/dist/runtime/server/dist/routes/agents.d.ts +3 -0
  144. package/dist/runtime/server/dist/routes/agents.d.ts.map +1 -0
  145. package/dist/runtime/server/dist/routes/agents.js +1485 -0
  146. package/dist/runtime/server/dist/routes/agents.js.map +1 -0
  147. package/dist/runtime/server/dist/routes/approvals.d.ts +3 -0
  148. package/dist/runtime/server/dist/routes/approvals.d.ts.map +1 -0
  149. package/dist/runtime/server/dist/routes/approvals.js +275 -0
  150. package/dist/runtime/server/dist/routes/approvals.js.map +1 -0
  151. package/dist/runtime/server/dist/routes/assets.d.ts +4 -0
  152. package/dist/runtime/server/dist/routes/assets.d.ts.map +1 -0
  153. package/dist/runtime/server/dist/routes/assets.js +309 -0
  154. package/dist/runtime/server/dist/routes/assets.js.map +1 -0
  155. package/dist/runtime/server/dist/routes/authz.d.ts +15 -0
  156. package/dist/runtime/server/dist/routes/authz.d.ts.map +1 -0
  157. package/dist/runtime/server/dist/routes/authz.js +40 -0
  158. package/dist/runtime/server/dist/routes/authz.js.map +1 -0
  159. package/dist/runtime/server/dist/routes/companies.d.ts +3 -0
  160. package/dist/runtime/server/dist/routes/companies.d.ts.map +1 -0
  161. package/dist/runtime/server/dist/routes/companies.js +196 -0
  162. package/dist/runtime/server/dist/routes/companies.js.map +1 -0
  163. package/dist/runtime/server/dist/routes/costs.d.ts +3 -0
  164. package/dist/runtime/server/dist/routes/costs.d.ts.map +1 -0
  165. package/dist/runtime/server/dist/routes/costs.js +268 -0
  166. package/dist/runtime/server/dist/routes/costs.js.map +1 -0
  167. package/dist/runtime/server/dist/routes/dashboard.d.ts +3 -0
  168. package/dist/runtime/server/dist/routes/dashboard.d.ts.map +1 -0
  169. package/dist/runtime/server/dist/routes/dashboard.js +15 -0
  170. package/dist/runtime/server/dist/routes/dashboard.js.map +1 -0
  171. package/dist/runtime/server/dist/routes/execution-workspaces.d.ts +3 -0
  172. package/dist/runtime/server/dist/routes/execution-workspaces.d.ts.map +1 -0
  173. package/dist/runtime/server/dist/routes/execution-workspaces.js +165 -0
  174. package/dist/runtime/server/dist/routes/execution-workspaces.js.map +1 -0
  175. package/dist/runtime/server/dist/routes/goals.d.ts +3 -0
  176. package/dist/runtime/server/dist/routes/goals.d.ts.map +1 -0
  177. package/dist/runtime/server/dist/routes/goals.js +95 -0
  178. package/dist/runtime/server/dist/routes/goals.js.map +1 -0
  179. package/dist/runtime/server/dist/routes/gtm.d.ts +3 -0
  180. package/dist/runtime/server/dist/routes/gtm.d.ts.map +1 -0
  181. package/dist/runtime/server/dist/routes/gtm.js +555 -0
  182. package/dist/runtime/server/dist/routes/gtm.js.map +1 -0
  183. package/dist/runtime/server/dist/routes/health.d.ts +10 -0
  184. package/dist/runtime/server/dist/routes/health.d.ts.map +1 -0
  185. package/dist/runtime/server/dist/routes/health.js +53 -0
  186. package/dist/runtime/server/dist/routes/health.js.map +1 -0
  187. package/dist/runtime/server/dist/routes/index.d.ts +16 -0
  188. package/dist/runtime/server/dist/routes/index.d.ts.map +1 -0
  189. package/dist/runtime/server/dist/routes/index.js +16 -0
  190. package/dist/runtime/server/dist/routes/index.js.map +1 -0
  191. package/dist/runtime/server/dist/routes/instance-settings.d.ts +3 -0
  192. package/dist/runtime/server/dist/routes/instance-settings.d.ts.map +1 -0
  193. package/dist/runtime/server/dist/routes/instance-settings.js +46 -0
  194. package/dist/runtime/server/dist/routes/instance-settings.js.map +1 -0
  195. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.d.ts +9 -0
  196. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.d.ts.map +1 -0
  197. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.js +12 -0
  198. package/dist/runtime/server/dist/routes/issues-checkout-wakeup.js.map +1 -0
  199. package/dist/runtime/server/dist/routes/issues.d.ts +4 -0
  200. package/dist/runtime/server/dist/routes/issues.d.ts.map +1 -0
  201. package/dist/runtime/server/dist/routes/issues.js +1454 -0
  202. package/dist/runtime/server/dist/routes/issues.js.map +1 -0
  203. package/dist/runtime/server/dist/routes/llms.d.ts +3 -0
  204. package/dist/runtime/server/dist/routes/llms.d.ts.map +1 -0
  205. package/dist/runtime/server/dist/routes/llms.js +78 -0
  206. package/dist/runtime/server/dist/routes/llms.js.map +1 -0
  207. package/dist/runtime/server/dist/routes/plugin-ui-static.d.ts +69 -0
  208. package/dist/runtime/server/dist/routes/plugin-ui-static.d.ts.map +1 -0
  209. package/dist/runtime/server/dist/routes/plugin-ui-static.js +411 -0
  210. package/dist/runtime/server/dist/routes/plugin-ui-static.js.map +1 -0
  211. package/dist/runtime/server/dist/routes/plugins.d.ts +120 -0
  212. package/dist/runtime/server/dist/routes/plugins.d.ts.map +1 -0
  213. package/dist/runtime/server/dist/routes/plugins.js +1784 -0
  214. package/dist/runtime/server/dist/routes/plugins.js.map +1 -0
  215. package/dist/runtime/server/dist/routes/projects.d.ts +3 -0
  216. package/dist/runtime/server/dist/routes/projects.d.ts.map +1 -0
  217. package/dist/runtime/server/dist/routes/projects.js +257 -0
  218. package/dist/runtime/server/dist/routes/projects.js.map +1 -0
  219. package/dist/runtime/server/dist/routes/secrets.d.ts +3 -0
  220. package/dist/runtime/server/dist/routes/secrets.d.ts.map +1 -0
  221. package/dist/runtime/server/dist/routes/secrets.js +128 -0
  222. package/dist/runtime/server/dist/routes/secrets.js.map +1 -0
  223. package/dist/runtime/server/dist/routes/sidebar-badges.d.ts +3 -0
  224. package/dist/runtime/server/dist/routes/sidebar-badges.d.ts.map +1 -0
  225. package/dist/runtime/server/dist/routes/sidebar-badges.js +45 -0
  226. package/dist/runtime/server/dist/routes/sidebar-badges.js.map +1 -0
  227. package/dist/runtime/server/dist/routes/tickets.d.ts +3 -0
  228. package/dist/runtime/server/dist/routes/tickets.d.ts.map +1 -0
  229. package/dist/runtime/server/dist/routes/tickets.js +112 -0
  230. package/dist/runtime/server/dist/routes/tickets.js.map +1 -0
  231. package/dist/runtime/server/dist/secrets/external-stub-providers.d.ts +5 -0
  232. package/dist/runtime/server/dist/secrets/external-stub-providers.d.ts.map +1 -0
  233. package/dist/runtime/server/dist/secrets/external-stub-providers.js +21 -0
  234. package/dist/runtime/server/dist/secrets/external-stub-providers.js.map +1 -0
  235. package/dist/runtime/server/dist/secrets/local-encrypted-provider.d.ts +3 -0
  236. package/dist/runtime/server/dist/secrets/local-encrypted-provider.d.ts.map +1 -0
  237. package/dist/runtime/server/dist/secrets/local-encrypted-provider.js +116 -0
  238. package/dist/runtime/server/dist/secrets/local-encrypted-provider.js.map +1 -0
  239. package/dist/runtime/server/dist/secrets/provider-registry.d.ts +5 -0
  240. package/dist/runtime/server/dist/secrets/provider-registry.d.ts.map +1 -0
  241. package/dist/runtime/server/dist/secrets/provider-registry.js +20 -0
  242. package/dist/runtime/server/dist/secrets/provider-registry.js.map +1 -0
  243. package/dist/runtime/server/dist/secrets/types.d.ts +21 -0
  244. package/dist/runtime/server/dist/secrets/types.d.ts.map +1 -0
  245. package/dist/runtime/server/dist/secrets/types.js +2 -0
  246. package/dist/runtime/server/dist/secrets/types.js.map +1 -0
  247. package/dist/runtime/server/dist/services/access.d.ts +93 -0
  248. package/dist/runtime/server/dist/services/access.d.ts.map +1 -0
  249. package/dist/runtime/server/dist/services/access.js +231 -0
  250. package/dist/runtime/server/dist/services/access.js.map +1 -0
  251. package/dist/runtime/server/dist/services/activity-log.d.ts +17 -0
  252. package/dist/runtime/server/dist/services/activity-log.d.ts.map +1 -0
  253. package/dist/runtime/server/dist/services/activity-log.js +68 -0
  254. package/dist/runtime/server/dist/services/activity-log.js.map +1 -0
  255. package/dist/runtime/server/dist/services/activity.d.ts +764 -0
  256. package/dist/runtime/server/dist/services/activity.d.ts.map +1 -0
  257. package/dist/runtime/server/dist/services/activity.js +105 -0
  258. package/dist/runtime/server/dist/services/activity.js.map +1 -0
  259. package/dist/runtime/server/dist/services/agent-permissions.d.ts +6 -0
  260. package/dist/runtime/server/dist/services/agent-permissions.d.ts.map +1 -0
  261. package/dist/runtime/server/dist/services/agent-permissions.js +18 -0
  262. package/dist/runtime/server/dist/services/agent-permissions.js.map +1 -0
  263. package/dist/runtime/server/dist/services/agents.d.ts +1670 -0
  264. package/dist/runtime/server/dist/services/agents.d.ts.map +1 -0
  265. package/dist/runtime/server/dist/services/agents.js +572 -0
  266. package/dist/runtime/server/dist/services/agents.js.map +1 -0
  267. package/dist/runtime/server/dist/services/approvals.d.ts +546 -0
  268. package/dist/runtime/server/dist/services/approvals.d.ts.map +1 -0
  269. package/dist/runtime/server/dist/services/approvals.js +206 -0
  270. package/dist/runtime/server/dist/services/approvals.js.map +1 -0
  271. package/dist/runtime/server/dist/services/assets.d.ts +33 -0
  272. package/dist/runtime/server/dist/services/assets.d.ts.map +1 -0
  273. package/dist/runtime/server/dist/services/assets.js +17 -0
  274. package/dist/runtime/server/dist/services/assets.js.map +1 -0
  275. package/dist/runtime/server/dist/services/budgets.d.ts +38 -0
  276. package/dist/runtime/server/dist/services/budgets.d.ts.map +1 -0
  277. package/dist/runtime/server/dist/services/budgets.js +784 -0
  278. package/dist/runtime/server/dist/services/budgets.js.map +1 -0
  279. package/dist/runtime/server/dist/services/companies.d.ts +124 -0
  280. package/dist/runtime/server/dist/services/companies.d.ts.map +1 -0
  281. package/dist/runtime/server/dist/services/companies.js +256 -0
  282. package/dist/runtime/server/dist/services/companies.js.map +1 -0
  283. package/dist/runtime/server/dist/services/company-portability.d.ts +8 -0
  284. package/dist/runtime/server/dist/services/company-portability.d.ts.map +1 -0
  285. package/dist/runtime/server/dist/services/company-portability.js +869 -0
  286. package/dist/runtime/server/dist/services/company-portability.js.map +1 -0
  287. package/dist/runtime/server/dist/services/costs.d.ts +114 -0
  288. package/dist/runtime/server/dist/services/costs.d.ts.map +1 -0
  289. package/dist/runtime/server/dist/services/costs.js +294 -0
  290. package/dist/runtime/server/dist/services/costs.js.map +1 -0
  291. package/dist/runtime/server/dist/services/cron.d.ts +80 -0
  292. package/dist/runtime/server/dist/services/cron.d.ts.map +1 -0
  293. package/dist/runtime/server/dist/services/cron.js +300 -0
  294. package/dist/runtime/server/dist/services/cron.js.map +1 -0
  295. package/dist/runtime/server/dist/services/dashboard.d.ts +26 -0
  296. package/dist/runtime/server/dist/services/dashboard.d.ts.map +1 -0
  297. package/dist/runtime/server/dist/services/dashboard.js +98 -0
  298. package/dist/runtime/server/dist/services/dashboard.js.map +1 -0
  299. package/dist/runtime/server/dist/services/documents.d.ts +164 -0
  300. package/dist/runtime/server/dist/services/documents.d.ts.map +1 -0
  301. package/dist/runtime/server/dist/services/documents.js +382 -0
  302. package/dist/runtime/server/dist/services/documents.js.map +1 -0
  303. package/dist/runtime/server/dist/services/execution-workspace-policy.d.ts +20 -0
  304. package/dist/runtime/server/dist/services/execution-workspace-policy.d.ts.map +1 -0
  305. package/dist/runtime/server/dist/services/execution-workspace-policy.js +165 -0
  306. package/dist/runtime/server/dist/services/execution-workspace-policy.js.map +1 -0
  307. package/dist/runtime/server/dist/services/execution-workspaces.d.ts +19 -0
  308. package/dist/runtime/server/dist/services/execution-workspaces.d.ts.map +1 -0
  309. package/dist/runtime/server/dist/services/execution-workspaces.js +87 -0
  310. package/dist/runtime/server/dist/services/execution-workspaces.js.map +1 -0
  311. package/dist/runtime/server/dist/services/finance.d.ts +93 -0
  312. package/dist/runtime/server/dist/services/finance.d.ts.map +1 -0
  313. package/dist/runtime/server/dist/services/finance.js +120 -0
  314. package/dist/runtime/server/dist/services/finance.js.map +1 -0
  315. package/dist/runtime/server/dist/services/goals.d.ts +433 -0
  316. package/dist/runtime/server/dist/services/goals.d.ts.map +1 -0
  317. package/dist/runtime/server/dist/services/goals.js +54 -0
  318. package/dist/runtime/server/dist/services/goals.js.map +1 -0
  319. package/dist/runtime/server/dist/services/gtm-state.d.ts +6 -0
  320. package/dist/runtime/server/dist/services/gtm-state.d.ts.map +1 -0
  321. package/dist/runtime/server/dist/services/gtm-state.js +88 -0
  322. package/dist/runtime/server/dist/services/gtm-state.js.map +1 -0
  323. package/dist/runtime/server/dist/services/heartbeat-run-summary.d.ts +2 -0
  324. package/dist/runtime/server/dist/services/heartbeat-run-summary.d.ts.map +1 -0
  325. package/dist/runtime/server/dist/services/heartbeat-run-summary.js +30 -0
  326. package/dist/runtime/server/dist/services/heartbeat-run-summary.js.map +1 -0
  327. package/dist/runtime/server/dist/services/heartbeat.d.ts +796 -0
  328. package/dist/runtime/server/dist/services/heartbeat.d.ts.map +1 -0
  329. package/dist/runtime/server/dist/services/heartbeat.js +3046 -0
  330. package/dist/runtime/server/dist/services/heartbeat.js.map +1 -0
  331. package/dist/runtime/server/dist/services/hire-hook.d.ts +14 -0
  332. package/dist/runtime/server/dist/services/hire-hook.d.ts.map +1 -0
  333. package/dist/runtime/server/dist/services/hire-hook.js +85 -0
  334. package/dist/runtime/server/dist/services/hire-hook.js.map +1 -0
  335. package/dist/runtime/server/dist/services/index.d.ts +30 -0
  336. package/dist/runtime/server/dist/services/index.d.ts.map +1 -0
  337. package/dist/runtime/server/dist/services/index.js +30 -0
  338. package/dist/runtime/server/dist/services/index.js.map +1 -0
  339. package/dist/runtime/server/dist/services/instance-settings.d.ts +9 -0
  340. package/dist/runtime/server/dist/services/instance-settings.d.ts.map +1 -0
  341. package/dist/runtime/server/dist/services/instance-settings.js +80 -0
  342. package/dist/runtime/server/dist/services/instance-settings.js.map +1 -0
  343. package/dist/runtime/server/dist/services/issue-approvals.d.ts +56 -0
  344. package/dist/runtime/server/dist/services/issue-approvals.d.ts.map +1 -0
  345. package/dist/runtime/server/dist/services/issue-approvals.js +153 -0
  346. package/dist/runtime/server/dist/services/issue-approvals.js.map +1 -0
  347. package/dist/runtime/server/dist/services/issue-goal-fallback.d.ts +15 -0
  348. package/dist/runtime/server/dist/services/issue-goal-fallback.d.ts.map +1 -0
  349. package/dist/runtime/server/dist/services/issue-goal-fallback.js +15 -0
  350. package/dist/runtime/server/dist/services/issue-goal-fallback.js.map +1 -0
  351. package/dist/runtime/server/dist/services/issues.d.ts +536 -0
  352. package/dist/runtime/server/dist/services/issues.d.ts.map +1 -0
  353. package/dist/runtime/server/dist/services/issues.js +1321 -0
  354. package/dist/runtime/server/dist/services/issues.js.map +1 -0
  355. package/dist/runtime/server/dist/services/live-events.d.ts +17 -0
  356. package/dist/runtime/server/dist/services/live-events.d.ts.map +1 -0
  357. package/dist/runtime/server/dist/services/live-events.js +33 -0
  358. package/dist/runtime/server/dist/services/live-events.js.map +1 -0
  359. package/dist/runtime/server/dist/services/plugin-capability-validator.d.ts +108 -0
  360. package/dist/runtime/server/dist/services/plugin-capability-validator.d.ts.map +1 -0
  361. package/dist/runtime/server/dist/services/plugin-capability-validator.js +268 -0
  362. package/dist/runtime/server/dist/services/plugin-capability-validator.js.map +1 -0
  363. package/dist/runtime/server/dist/services/plugin-config-validator.d.ts +26 -0
  364. package/dist/runtime/server/dist/services/plugin-config-validator.d.ts.map +1 -0
  365. package/dist/runtime/server/dist/services/plugin-config-validator.js +41 -0
  366. package/dist/runtime/server/dist/services/plugin-config-validator.js.map +1 -0
  367. package/dist/runtime/server/dist/services/plugin-dev-watcher.d.ts +30 -0
  368. package/dist/runtime/server/dist/services/plugin-dev-watcher.d.ts.map +1 -0
  369. package/dist/runtime/server/dist/services/plugin-dev-watcher.js +241 -0
  370. package/dist/runtime/server/dist/services/plugin-dev-watcher.js.map +1 -0
  371. package/dist/runtime/server/dist/services/plugin-event-bus.d.ts +149 -0
  372. package/dist/runtime/server/dist/services/plugin-event-bus.d.ts.map +1 -0
  373. package/dist/runtime/server/dist/services/plugin-event-bus.js +258 -0
  374. package/dist/runtime/server/dist/services/plugin-event-bus.js.map +1 -0
  375. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.d.ts +14 -0
  376. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.d.ts.map +1 -0
  377. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.js +37 -0
  378. package/dist/runtime/server/dist/services/plugin-host-service-cleanup.js.map +1 -0
  379. package/dist/runtime/server/dist/services/plugin-host-services.d.ts +13 -0
  380. package/dist/runtime/server/dist/services/plugin-host-services.d.ts.map +1 -0
  381. package/dist/runtime/server/dist/services/plugin-host-services.js +969 -0
  382. package/dist/runtime/server/dist/services/plugin-host-services.js.map +1 -0
  383. package/dist/runtime/server/dist/services/plugin-job-coordinator.d.ts +81 -0
  384. package/dist/runtime/server/dist/services/plugin-job-coordinator.d.ts.map +1 -0
  385. package/dist/runtime/server/dist/services/plugin-job-coordinator.js +172 -0
  386. package/dist/runtime/server/dist/services/plugin-job-coordinator.js.map +1 -0
  387. package/dist/runtime/server/dist/services/plugin-job-scheduler.d.ts +163 -0
  388. package/dist/runtime/server/dist/services/plugin-job-scheduler.d.ts.map +1 -0
  389. package/dist/runtime/server/dist/services/plugin-job-scheduler.js +454 -0
  390. package/dist/runtime/server/dist/services/plugin-job-scheduler.js.map +1 -0
  391. package/dist/runtime/server/dist/services/plugin-job-store.d.ts +208 -0
  392. package/dist/runtime/server/dist/services/plugin-job-store.d.ts.map +1 -0
  393. package/dist/runtime/server/dist/services/plugin-job-store.js +350 -0
  394. package/dist/runtime/server/dist/services/plugin-job-store.js.map +1 -0
  395. package/dist/runtime/server/dist/services/plugin-lifecycle.d.ts +203 -0
  396. package/dist/runtime/server/dist/services/plugin-lifecycle.d.ts.map +1 -0
  397. package/dist/runtime/server/dist/services/plugin-lifecycle.js +476 -0
  398. package/dist/runtime/server/dist/services/plugin-lifecycle.js.map +1 -0
  399. package/dist/runtime/server/dist/services/plugin-loader.d.ts +441 -0
  400. package/dist/runtime/server/dist/services/plugin-loader.d.ts.map +1 -0
  401. package/dist/runtime/server/dist/services/plugin-loader.js +1192 -0
  402. package/dist/runtime/server/dist/services/plugin-loader.js.map +1 -0
  403. package/dist/runtime/server/dist/services/plugin-log-retention.d.ts +20 -0
  404. package/dist/runtime/server/dist/services/plugin-log-retention.d.ts.map +1 -0
  405. package/dist/runtime/server/dist/services/plugin-log-retention.js +63 -0
  406. package/dist/runtime/server/dist/services/plugin-log-retention.js.map +1 -0
  407. package/dist/runtime/server/dist/services/plugin-manifest-validator.d.ts +79 -0
  408. package/dist/runtime/server/dist/services/plugin-manifest-validator.d.ts.map +1 -0
  409. package/dist/runtime/server/dist/services/plugin-manifest-validator.js +84 -0
  410. package/dist/runtime/server/dist/services/plugin-manifest-validator.js.map +1 -0
  411. package/dist/runtime/server/dist/services/plugin-registry.d.ts +2542 -0
  412. package/dist/runtime/server/dist/services/plugin-registry.d.ts.map +1 -0
  413. package/dist/runtime/server/dist/services/plugin-registry.js +539 -0
  414. package/dist/runtime/server/dist/services/plugin-registry.js.map +1 -0
  415. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.d.ts +40 -0
  416. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.d.ts.map +1 -0
  417. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.js +154 -0
  418. package/dist/runtime/server/dist/services/plugin-runtime-sandbox.js.map +1 -0
  419. package/dist/runtime/server/dist/services/plugin-secrets-handler.d.ts +81 -0
  420. package/dist/runtime/server/dist/services/plugin-secrets-handler.d.ts.map +1 -0
  421. package/dist/runtime/server/dist/services/plugin-secrets-handler.js +275 -0
  422. package/dist/runtime/server/dist/services/plugin-secrets-handler.js.map +1 -0
  423. package/dist/runtime/server/dist/services/plugin-state-store.d.ts +92 -0
  424. package/dist/runtime/server/dist/services/plugin-state-store.d.ts.map +1 -0
  425. package/dist/runtime/server/dist/services/plugin-state-store.js +190 -0
  426. package/dist/runtime/server/dist/services/plugin-state-store.js.map +1 -0
  427. package/dist/runtime/server/dist/services/plugin-stream-bus.d.ts +29 -0
  428. package/dist/runtime/server/dist/services/plugin-stream-bus.d.ts.map +1 -0
  429. package/dist/runtime/server/dist/services/plugin-stream-bus.js +48 -0
  430. package/dist/runtime/server/dist/services/plugin-stream-bus.js.map +1 -0
  431. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.d.ts +180 -0
  432. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.d.ts.map +1 -0
  433. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.js +224 -0
  434. package/dist/runtime/server/dist/services/plugin-tool-dispatcher.js.map +1 -0
  435. package/dist/runtime/server/dist/services/plugin-tool-registry.d.ts +192 -0
  436. package/dist/runtime/server/dist/services/plugin-tool-registry.d.ts.map +1 -0
  437. package/dist/runtime/server/dist/services/plugin-tool-registry.js +224 -0
  438. package/dist/runtime/server/dist/services/plugin-tool-registry.js.map +1 -0
  439. package/dist/runtime/server/dist/services/plugin-worker-manager.d.ts +260 -0
  440. package/dist/runtime/server/dist/services/plugin-worker-manager.d.ts.map +1 -0
  441. package/dist/runtime/server/dist/services/plugin-worker-manager.js +835 -0
  442. package/dist/runtime/server/dist/services/plugin-worker-manager.js.map +1 -0
  443. package/dist/runtime/server/dist/services/projects.d.ts +87 -0
  444. package/dist/runtime/server/dist/services/projects.d.ts.map +1 -0
  445. package/dist/runtime/server/dist/services/projects.js +656 -0
  446. package/dist/runtime/server/dist/services/projects.js.map +1 -0
  447. package/dist/runtime/server/dist/services/quota-windows.d.ts +9 -0
  448. package/dist/runtime/server/dist/services/quota-windows.d.ts.map +1 -0
  449. package/dist/runtime/server/dist/services/quota-windows.js +56 -0
  450. package/dist/runtime/server/dist/services/quota-windows.js.map +1 -0
  451. package/dist/runtime/server/dist/services/run-log-store.d.ts +34 -0
  452. package/dist/runtime/server/dist/services/run-log-store.d.ts.map +1 -0
  453. package/dist/runtime/server/dist/services/run-log-store.js +109 -0
  454. package/dist/runtime/server/dist/services/run-log-store.js.map +1 -0
  455. package/dist/runtime/server/dist/services/secrets.d.ts +510 -0
  456. package/dist/runtime/server/dist/services/secrets.d.ts.map +1 -0
  457. package/dist/runtime/server/dist/services/secrets.js +288 -0
  458. package/dist/runtime/server/dist/services/secrets.js.map +1 -0
  459. package/dist/runtime/server/dist/services/sidebar-badges.d.ts +9 -0
  460. package/dist/runtime/server/dist/services/sidebar-badges.d.ts.map +1 -0
  461. package/dist/runtime/server/dist/services/sidebar-badges.js +33 -0
  462. package/dist/runtime/server/dist/services/sidebar-badges.js.map +1 -0
  463. package/dist/runtime/server/dist/services/tickets.d.ts +1869 -0
  464. package/dist/runtime/server/dist/services/tickets.d.ts.map +1 -0
  465. package/dist/runtime/server/dist/services/tickets.js +78 -0
  466. package/dist/runtime/server/dist/services/tickets.js.map +1 -0
  467. package/dist/runtime/server/dist/services/work-products.d.ts +14 -0
  468. package/dist/runtime/server/dist/services/work-products.d.ts.map +1 -0
  469. package/dist/runtime/server/dist/services/work-products.js +100 -0
  470. package/dist/runtime/server/dist/services/work-products.js.map +1 -0
  471. package/dist/runtime/server/dist/services/workspace-operation-log-store.d.ts +33 -0
  472. package/dist/runtime/server/dist/services/workspace-operation-log-store.d.ts.map +1 -0
  473. package/dist/runtime/server/dist/services/workspace-operation-log-store.js +110 -0
  474. package/dist/runtime/server/dist/services/workspace-operation-log-store.js.map +1 -0
  475. package/dist/runtime/server/dist/services/workspace-operations.d.ts +44 -0
  476. package/dist/runtime/server/dist/services/workspace-operations.d.ts.map +1 -0
  477. package/dist/runtime/server/dist/services/workspace-operations.js +204 -0
  478. package/dist/runtime/server/dist/services/workspace-operations.js.map +1 -0
  479. package/dist/runtime/server/dist/services/workspace-runtime.d.ts +164 -0
  480. package/dist/runtime/server/dist/services/workspace-runtime.d.ts.map +1 -0
  481. package/dist/runtime/server/dist/services/workspace-runtime.js +1235 -0
  482. package/dist/runtime/server/dist/services/workspace-runtime.js.map +1 -0
  483. package/dist/runtime/server/dist/startup-banner.d.ts +31 -0
  484. package/dist/runtime/server/dist/startup-banner.d.ts.map +1 -0
  485. package/dist/runtime/server/dist/startup-banner.js +117 -0
  486. package/dist/runtime/server/dist/startup-banner.js.map +1 -0
  487. package/dist/runtime/server/dist/storage/index.d.ts +6 -0
  488. package/dist/runtime/server/dist/storage/index.d.ts.map +1 -0
  489. package/dist/runtime/server/dist/storage/index.js +29 -0
  490. package/dist/runtime/server/dist/storage/index.js.map +1 -0
  491. package/dist/runtime/server/dist/storage/local-disk-provider.d.ts +3 -0
  492. package/dist/runtime/server/dist/storage/local-disk-provider.d.ts.map +1 -0
  493. package/dist/runtime/server/dist/storage/local-disk-provider.js +79 -0
  494. package/dist/runtime/server/dist/storage/local-disk-provider.js.map +1 -0
  495. package/dist/runtime/server/dist/storage/provider-registry.d.ts +4 -0
  496. package/dist/runtime/server/dist/storage/provider-registry.d.ts.map +1 -0
  497. package/dist/runtime/server/dist/storage/provider-registry.js +15 -0
  498. package/dist/runtime/server/dist/storage/provider-registry.js.map +1 -0
  499. package/dist/runtime/server/dist/storage/s3-provider.d.ts +11 -0
  500. package/dist/runtime/server/dist/storage/s3-provider.d.ts.map +1 -0
  501. package/dist/runtime/server/dist/storage/s3-provider.js +123 -0
  502. package/dist/runtime/server/dist/storage/s3-provider.js.map +1 -0
  503. package/dist/runtime/server/dist/storage/service.d.ts +3 -0
  504. package/dist/runtime/server/dist/storage/service.d.ts.map +1 -0
  505. package/dist/runtime/server/dist/storage/service.js +120 -0
  506. package/dist/runtime/server/dist/storage/service.js.map +1 -0
  507. package/dist/runtime/server/dist/storage/types.d.ts +55 -0
  508. package/dist/runtime/server/dist/storage/types.d.ts.map +1 -0
  509. package/dist/runtime/server/dist/storage/types.js +2 -0
  510. package/dist/runtime/server/dist/storage/types.js.map +1 -0
  511. package/dist/runtime/server/dist/ui-branding.d.ts +14 -0
  512. package/dist/runtime/server/dist/ui-branding.d.ts.map +1 -0
  513. package/dist/runtime/server/dist/ui-branding.js +189 -0
  514. package/dist/runtime/server/dist/ui-branding.js.map +1 -0
  515. package/dist/runtime/server/dist/version.d.ts +2 -0
  516. package/dist/runtime/server/dist/version.d.ts.map +1 -0
  517. package/dist/runtime/server/dist/version.js +5 -0
  518. package/dist/runtime/server/dist/version.js.map +1 -0
  519. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts +2 -0
  520. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts.map +1 -0
  521. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js +94 -0
  522. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js.map +1 -0
  523. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts +2 -0
  524. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts.map +1 -0
  525. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js +2 -0
  526. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js.map +1 -0
  527. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts +3 -0
  528. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts.map +1 -0
  529. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js +106 -0
  530. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js.map +1 -0
  531. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts +8 -0
  532. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts.map +1 -0
  533. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js +36 -0
  534. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js.map +1 -0
  535. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts +18 -0
  536. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts.map +1 -0
  537. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js +453 -0
  538. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js.map +1 -0
  539. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts +7 -0
  540. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts.map +1 -0
  541. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js +56 -0
  542. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js.map +1 -0
  543. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts +22 -0
  544. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts.map +1 -0
  545. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js +158 -0
  546. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js.map +1 -0
  547. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts +20 -0
  548. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts.map +1 -0
  549. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js +477 -0
  550. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js.map +1 -0
  551. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts +3 -0
  552. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts.map +1 -0
  553. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js +201 -0
  554. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js.map +1 -0
  555. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts +3 -0
  556. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts.map +1 -0
  557. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js +115 -0
  558. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js.map +1 -0
  559. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts +3 -0
  560. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts.map +1 -0
  561. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js +3 -0
  562. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js.map +1 -0
  563. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts +3 -0
  564. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts.map +1 -0
  565. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js +149 -0
  566. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js.map +1 -0
  567. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/package.json +42 -0
  568. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts +2 -0
  569. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts.map +1 -0
  570. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js +213 -0
  571. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js.map +1 -0
  572. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts +2 -0
  573. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts.map +1 -0
  574. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js +2 -0
  575. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js.map +1 -0
  576. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts +3 -0
  577. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts.map +1 -0
  578. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js +97 -0
  579. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js.map +1 -0
  580. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts +10 -0
  581. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts.map +1 -0
  582. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js +45 -0
  583. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js.map +1 -0
  584. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts +5 -0
  585. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts.map +1 -0
  586. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js +86 -0
  587. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js.map +1 -0
  588. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts +11 -0
  589. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts.map +1 -0
  590. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js +451 -0
  591. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js.map +1 -0
  592. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts +7 -0
  593. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts.map +1 -0
  594. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js +56 -0
  595. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js.map +1 -0
  596. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts +12 -0
  597. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts.map +1 -0
  598. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js +67 -0
  599. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js.map +1 -0
  600. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts +64 -0
  601. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts.map +1 -0
  602. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js +425 -0
  603. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js.map +1 -0
  604. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts +3 -0
  605. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts.map +1 -0
  606. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js +194 -0
  607. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js.map +1 -0
  608. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts +3 -0
  609. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts.map +1 -0
  610. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js +116 -0
  611. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js.map +1 -0
  612. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts +3 -0
  613. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts.map +1 -0
  614. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js +3 -0
  615. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js.map +1 -0
  616. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts +3 -0
  617. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts.map +1 -0
  618. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js +233 -0
  619. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js.map +1 -0
  620. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/package.json +42 -0
  621. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts +2 -0
  622. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts.map +1 -0
  623. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js +296 -0
  624. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js.map +1 -0
  625. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts +2 -0
  626. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts.map +1 -0
  627. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js +2 -0
  628. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js.map +1 -0
  629. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts +9 -0
  630. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts.map +1 -0
  631. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js +81 -0
  632. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js.map +1 -0
  633. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts +14 -0
  634. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts.map +1 -0
  635. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js +416 -0
  636. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js.map +1 -0
  637. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts +6 -0
  638. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts.map +1 -0
  639. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js +61 -0
  640. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js.map +1 -0
  641. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts +13 -0
  642. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts.map +1 -0
  643. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js +139 -0
  644. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js.map +1 -0
  645. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts +3 -0
  646. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts.map +1 -0
  647. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js +188 -0
  648. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js.map +1 -0
  649. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts +5 -0
  650. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts.map +1 -0
  651. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js +13 -0
  652. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js.map +1 -0
  653. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts +2 -0
  654. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts.map +1 -0
  655. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js +7 -0
  656. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js.map +1 -0
  657. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts +3 -0
  658. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts.map +1 -0
  659. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js +92 -0
  660. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js.map +1 -0
  661. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts +3 -0
  662. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts.map +1 -0
  663. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js +3 -0
  664. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js.map +1 -0
  665. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts +3 -0
  666. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts.map +1 -0
  667. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js +373 -0
  668. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js.map +1 -0
  669. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/package.json +42 -0
  670. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts +2 -0
  671. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts.map +1 -0
  672. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js +198 -0
  673. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js.map +1 -0
  674. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts +2 -0
  675. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts.map +1 -0
  676. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js +2 -0
  677. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js.map +1 -0
  678. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts +9 -0
  679. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts.map +1 -0
  680. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js +46 -0
  681. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js.map +1 -0
  682. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts +3 -0
  683. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts.map +1 -0
  684. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js +364 -0
  685. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js.map +1 -0
  686. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts +6 -0
  687. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts.map +1 -0
  688. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js +61 -0
  689. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js.map +1 -0
  690. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts +31 -0
  691. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts.map +1 -0
  692. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js +227 -0
  693. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js.map +1 -0
  694. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts +3 -0
  695. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts.map +1 -0
  696. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js +203 -0
  697. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js.map +1 -0
  698. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts +2 -0
  699. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts.map +1 -0
  700. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js +7 -0
  701. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js.map +1 -0
  702. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts +3 -0
  703. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts.map +1 -0
  704. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js +84 -0
  705. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js.map +1 -0
  706. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts +3 -0
  707. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts.map +1 -0
  708. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js +3 -0
  709. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js.map +1 -0
  710. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts +3 -0
  711. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts.map +1 -0
  712. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js +247 -0
  713. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js.map +1 -0
  714. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/package.json +42 -0
  715. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts +2 -0
  716. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts.map +1 -0
  717. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js +20 -0
  718. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js.map +1 -0
  719. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts +2 -0
  720. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts.map +1 -0
  721. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js +2 -0
  722. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js.map +1 -0
  723. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts +8 -0
  724. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts.map +1 -0
  725. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js +53 -0
  726. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js.map +1 -0
  727. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts +3 -0
  728. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts.map +1 -0
  729. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js +1146 -0
  730. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js.map +1 -0
  731. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts +3 -0
  732. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts.map +1 -0
  733. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js +3 -0
  734. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js.map +1 -0
  735. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts +3 -0
  736. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts.map +1 -0
  737. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js +290 -0
  738. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js.map +1 -0
  739. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts +5 -0
  740. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts.map +1 -0
  741. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js +13 -0
  742. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js.map +1 -0
  743. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts +3 -0
  744. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts.map +1 -0
  745. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js +33 -0
  746. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js.map +1 -0
  747. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts +3 -0
  748. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts.map +1 -0
  749. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js +3 -0
  750. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js.map +1 -0
  751. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts +3 -0
  752. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts.map +1 -0
  753. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js +64 -0
  754. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js.map +1 -0
  755. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/package.json +43 -0
  756. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts +2 -0
  757. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts.map +1 -0
  758. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js +115 -0
  759. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js.map +1 -0
  760. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts +2 -0
  761. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts.map +1 -0
  762. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js +2 -0
  763. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js.map +1 -0
  764. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts +8 -0
  765. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts.map +1 -0
  766. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js +39 -0
  767. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js.map +1 -0
  768. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts +3 -0
  769. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts.map +1 -0
  770. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js +337 -0
  771. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js.map +1 -0
  772. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts +7 -0
  773. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts.map +1 -0
  774. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js +62 -0
  775. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js.map +1 -0
  776. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts +20 -0
  777. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts.map +1 -0
  778. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js +165 -0
  779. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js.map +1 -0
  780. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts +2 -0
  781. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts.map +1 -0
  782. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js +22 -0
  783. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js.map +1 -0
  784. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts +13 -0
  785. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts.map +1 -0
  786. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js +97 -0
  787. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js.map +1 -0
  788. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts +2 -0
  789. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts.map +1 -0
  790. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js +48 -0
  791. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js.map +1 -0
  792. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts +3 -0
  793. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts.map +1 -0
  794. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js +300 -0
  795. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js.map +1 -0
  796. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts +3 -0
  797. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts.map +1 -0
  798. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js +87 -0
  799. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js.map +1 -0
  800. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts +3 -0
  801. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts.map +1 -0
  802. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js +3 -0
  803. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js.map +1 -0
  804. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts +3 -0
  805. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts.map +1 -0
  806. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js +141 -0
  807. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js.map +1 -0
  808. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/package.json +42 -0
  809. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts +2 -0
  810. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts.map +1 -0
  811. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js +99 -0
  812. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js.map +1 -0
  813. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts +2 -0
  814. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts.map +1 -0
  815. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js +2 -0
  816. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js.map +1 -0
  817. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts +8 -0
  818. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts.map +1 -0
  819. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js +39 -0
  820. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js.map +1 -0
  821. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts +3 -0
  822. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts.map +1 -0
  823. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js +405 -0
  824. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js.map +1 -0
  825. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts +7 -0
  826. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts.map +1 -0
  827. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js +50 -0
  828. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js.map +1 -0
  829. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts +20 -0
  830. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts.map +1 -0
  831. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js +161 -0
  832. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js.map +1 -0
  833. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts +2 -0
  834. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts.map +1 -0
  835. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js +22 -0
  836. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js.map +1 -0
  837. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts +23 -0
  838. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts.map +1 -0
  839. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js +180 -0
  840. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js.map +1 -0
  841. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts +2 -0
  842. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts.map +1 -0
  843. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js +206 -0
  844. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js.map +1 -0
  845. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts +3 -0
  846. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts.map +1 -0
  847. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js +257 -0
  848. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js.map +1 -0
  849. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts +3 -0
  850. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts.map +1 -0
  851. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js +82 -0
  852. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js.map +1 -0
  853. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts +3 -0
  854. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts.map +1 -0
  855. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js +3 -0
  856. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js.map +1 -0
  857. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts +3 -0
  858. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts.map +1 -0
  859. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js +163 -0
  860. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js.map +1 -0
  861. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/package.json +42 -0
  862. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts +2 -0
  863. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts.map +1 -0
  864. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js +16 -0
  865. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js.map +1 -0
  866. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts +2 -0
  867. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts.map +1 -0
  868. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js +14 -0
  869. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js.map +1 -0
  870. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts +6 -0
  871. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts.map +1 -0
  872. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js +4 -0
  873. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js.map +1 -0
  874. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts +6 -0
  875. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts.map +1 -0
  876. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js +75 -0
  877. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js.map +1 -0
  878. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts +62 -0
  879. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts.map +1 -0
  880. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js +419 -0
  881. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js.map +1 -0
  882. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts +25 -0
  883. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts.map +1 -0
  884. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js +142 -0
  885. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js.map +1 -0
  886. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts +290 -0
  887. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts.map +1 -0
  888. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js +5 -0
  889. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js.map +1 -0
  890. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/package.json +30 -0
  891. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts +24 -0
  892. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts.map +1 -0
  893. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js +448 -0
  894. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js.map +1 -0
  895. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts +2 -0
  896. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts.map +1 -0
  897. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js +103 -0
  898. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js.map +1 -0
  899. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts +43 -0
  900. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts.map +1 -0
  901. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js +574 -0
  902. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js.map +1 -0
  903. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts +2 -0
  904. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts.map +1 -0
  905. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js +117 -0
  906. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js.map +1 -0
  907. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts +4 -0
  908. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts.map +1 -0
  909. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js +4 -0
  910. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js.map +1 -0
  911. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts +2 -0
  912. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts.map +1 -0
  913. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js +25 -0
  914. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js.map +1 -0
  915. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts +7 -0
  916. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts.map +1 -0
  917. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js +163 -0
  918. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js.map +1 -0
  919. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts +2 -0
  920. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts.map +1 -0
  921. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js +55 -0
  922. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js.map +1 -0
  923. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0000_mature_masked_marvel.sql +208 -0
  924. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0001_fast_northstar.sql +87 -0
  925. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0002_big_zaladane.sql +1 -0
  926. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0003_shallow_quentin_quire.sql +5 -0
  927. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0004_issue_identifiers.sql +28 -0
  928. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0005_chief_luke_cage.sql +19 -0
  929. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0006_overjoyed_mister_sinister.sql +36 -0
  930. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0007_new_quentin_quire.sql +20 -0
  931. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0008_amused_zzzax.sql +1 -0
  932. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0009_fast_jackal.sql +36 -0
  933. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0010_stale_justin_hammer.sql +37 -0
  934. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0011_windy_corsair.sql +18 -0
  935. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0012_perpetual_ser_duncan.sql +2 -0
  936. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0013_dashing_wasp.sql +4 -0
  937. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0014_many_mikhail_rasputin.sql +135 -0
  938. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0015_project_color_archived.sql +2 -0
  939. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0016_agent_icon.sql +1 -0
  940. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0017_tiresome_gabe_jones.sql +51 -0
  941. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0018_flat_sleepwalker.sql +26 -0
  942. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0019_public_victor_mancha.sql +18 -0
  943. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0020_white_anita_blake.sql +1 -0
  944. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0021_chief_vindicator.sql +1 -0
  945. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0022_company_brand_color.sql +1 -0
  946. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0023_fair_lethal_legion.sql +3 -0
  947. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0024_far_beast.sql +2 -0
  948. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0025_nasty_salo.sql +15 -0
  949. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0026_lying_pete_wisdom.sql +39 -0
  950. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0027_tranquil_tenebrous.sql +2 -0
  951. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0028_harsh_goliath.sql +54 -0
  952. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0029_plugin_tables.sql +177 -0
  953. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0030_rich_magneto.sql +12 -0
  954. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0031_zippy_magma.sql +51 -0
  955. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0032_pretty_doctor_octopus.sql +102 -0
  956. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0033_shiny_black_tarantula.sql +2 -0
  957. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0034_fat_dormammu.sql +2 -0
  958. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0035_marvelous_satana.sql +91 -0
  959. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0036_cheerful_nitro.sql +9 -0
  960. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0037_friendly_eddie_brock.sql +29 -0
  961. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0038_careless_iron_monger.sql +5 -0
  962. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0039_tickets.sql +25 -0
  963. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0040_ticket_meta.sql +3 -0
  964. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0000_snapshot.json +1743 -0
  965. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0001_snapshot.json +2441 -0
  966. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0002_snapshot.json +2454 -0
  967. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0003_snapshot.json +2502 -0
  968. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0005_snapshot.json +2719 -0
  969. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0006_snapshot.json +3048 -0
  970. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0007_snapshot.json +3258 -0
  971. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0008_snapshot.json +3264 -0
  972. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0009_snapshot.json +3587 -0
  973. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0010_snapshot.json +3929 -0
  974. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0011_snapshot.json +4068 -0
  975. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0012_snapshot.json +4087 -0
  976. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0013_snapshot.json +4118 -0
  977. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0014_snapshot.json +5187 -0
  978. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0017_snapshot.json +5215 -0
  979. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0018_snapshot.json +5450 -0
  980. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0019_snapshot.json +5603 -0
  981. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0020_snapshot.json +5603 -0
  982. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0021_snapshot.json +5609 -0
  983. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0023_snapshot.json +5633 -0
  984. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0024_snapshot.json +5693 -0
  985. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0025_snapshot.json +5849 -0
  986. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0027_snapshot.json +6205 -0
  987. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0028_snapshot.json +6710 -0
  988. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0029_snapshot.json +7899 -0
  989. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0030_snapshot.json +8003 -0
  990. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0031_snapshot.json +7242 -0
  991. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0032_snapshot.json +7733 -0
  992. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0033_snapshot.json +9038 -0
  993. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0034_snapshot.json +9039 -0
  994. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0035_snapshot.json +9959 -0
  995. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0036_snapshot.json +10023 -0
  996. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0037_snapshot.json +10263 -0
  997. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0038_snapshot.json +10301 -0
  998. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/_journal.json +293 -0
  999. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts +16 -0
  1000. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts.map +1 -0
  1001. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js +197 -0
  1002. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js.map +1 -0
  1003. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts +2 -0
  1004. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts.map +1 -0
  1005. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js +93 -0
  1006. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js.map +1 -0
  1007. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts +197 -0
  1008. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts.map +1 -0
  1009. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js +22 -0
  1010. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js.map +1 -0
  1011. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts +144 -0
  1012. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts.map +1 -0
  1013. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js +17 -0
  1014. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js.map +1 -0
  1015. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts +201 -0
  1016. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts.map +1 -0
  1017. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js +20 -0
  1018. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js.map +1 -0
  1019. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts +248 -0
  1020. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts.map +1 -0
  1021. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js +23 -0
  1022. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js.map +1 -0
  1023. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts +197 -0
  1024. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts.map +1 -0
  1025. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js +22 -0
  1026. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js.map +1 -0
  1027. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts +333 -0
  1028. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
  1029. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js +29 -0
  1030. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js.map +1 -0
  1031. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts +373 -0
  1032. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts.map +1 -0
  1033. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js +29 -0
  1034. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js.map +1 -0
  1035. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts +144 -0
  1036. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts.map +1 -0
  1037. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js +19 -0
  1038. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js.map +1 -0
  1039. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts +214 -0
  1040. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts.map +1 -0
  1041. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js +20 -0
  1042. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js.map +1 -0
  1043. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts +212 -0
  1044. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts.map +1 -0
  1045. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js +22 -0
  1046. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js.map +1 -0
  1047. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts +607 -0
  1048. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts.map +1 -0
  1049. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js +44 -0
  1050. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js.map +1 -0
  1051. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts +297 -0
  1052. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts.map +1 -0
  1053. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js +29 -0
  1054. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js.map +1 -0
  1055. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts +263 -0
  1056. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts.map +1 -0
  1057. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js +24 -0
  1058. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js.map +1 -0
  1059. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts +246 -0
  1060. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts.map +1 -0
  1061. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js +22 -0
  1062. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js.map +1 -0
  1063. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts +93 -0
  1064. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts.map +1 -0
  1065. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js +14 -0
  1066. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js.map +1 -0
  1067. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts +144 -0
  1068. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts.map +1 -0
  1069. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js +17 -0
  1070. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js.map +1 -0
  1071. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts +163 -0
  1072. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts.map +1 -0
  1073. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js +19 -0
  1074. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js.map +1 -0
  1075. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts +195 -0
  1076. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts.map +1 -0
  1077. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js +21 -0
  1078. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js.map +1 -0
  1079. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts +314 -0
  1080. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts.map +1 -0
  1081. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js +34 -0
  1082. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js.map +1 -0
  1083. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts +161 -0
  1084. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts.map +1 -0
  1085. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js +19 -0
  1086. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js.map +1 -0
  1087. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts +229 -0
  1088. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts.map +1 -0
  1089. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js +22 -0
  1090. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js.map +1 -0
  1091. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts +418 -0
  1092. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts.map +1 -0
  1093. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js +39 -0
  1094. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js.map +1 -0
  1095. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts +469 -0
  1096. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts.map +1 -0
  1097. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js +45 -0
  1098. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js.map +1 -0
  1099. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts +178 -0
  1100. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts.map +1 -0
  1101. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js +18 -0
  1102. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js.map +1 -0
  1103. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts +214 -0
  1104. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts.map +1 -0
  1105. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js +23 -0
  1106. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js.map +1 -0
  1107. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts +558 -0
  1108. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts.map +1 -0
  1109. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js +43 -0
  1110. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js.map +1 -0
  1111. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts +55 -0
  1112. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts.map +1 -0
  1113. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js +55 -0
  1114. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js.map +1 -0
  1115. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts +95 -0
  1116. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts.map +1 -0
  1117. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js +11 -0
  1118. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js.map +1 -0
  1119. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts +93 -0
  1120. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts.map +1 -0
  1121. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js +12 -0
  1122. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js.map +1 -0
  1123. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts +214 -0
  1124. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts.map +1 -0
  1125. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js +20 -0
  1126. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js.map +1 -0
  1127. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts +110 -0
  1128. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts.map +1 -0
  1129. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js +19 -0
  1130. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js.map +1 -0
  1131. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts +127 -0
  1132. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts.map +1 -0
  1133. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js +19 -0
  1134. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js.map +1 -0
  1135. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts +144 -0
  1136. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts.map +1 -0
  1137. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js +20 -0
  1138. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js.map +1 -0
  1139. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts +127 -0
  1140. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts.map +1 -0
  1141. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js +18 -0
  1142. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js.map +1 -0
  1143. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts +76 -0
  1144. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts.map +1 -0
  1145. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js +16 -0
  1146. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js.map +1 -0
  1147. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts +127 -0
  1148. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts.map +1 -0
  1149. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js +17 -0
  1150. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js.map +1 -0
  1151. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts +350 -0
  1152. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts.map +1 -0
  1153. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js +37 -0
  1154. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js.map +1 -0
  1155. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts +590 -0
  1156. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts.map +1 -0
  1157. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js +58 -0
  1158. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js.map +1 -0
  1159. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts +384 -0
  1160. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts.map +1 -0
  1161. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js +32 -0
  1162. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js.map +1 -0
  1163. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts +110 -0
  1164. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts.map +1 -0
  1165. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js +14 -0
  1166. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js.map +1 -0
  1167. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts +158 -0
  1168. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts.map +1 -0
  1169. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js +34 -0
  1170. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js.map +1 -0
  1171. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts +123 -0
  1172. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts.map +1 -0
  1173. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js +26 -0
  1174. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js.map +1 -0
  1175. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts +213 -0
  1176. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts.map +1 -0
  1177. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js +37 -0
  1178. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js.map +1 -0
  1179. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts +392 -0
  1180. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts.map +1 -0
  1181. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js +83 -0
  1182. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js.map +1 -0
  1183. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts +125 -0
  1184. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts.map +1 -0
  1185. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js +29 -0
  1186. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js.map +1 -0
  1187. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts +169 -0
  1188. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts.map +1 -0
  1189. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js +68 -0
  1190. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js.map +1 -0
  1191. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts +239 -0
  1192. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts.map +1 -0
  1193. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js +52 -0
  1194. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js.map +1 -0
  1195. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts +246 -0
  1196. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts.map +1 -0
  1197. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js +31 -0
  1198. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js.map +1 -0
  1199. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts +163 -0
  1200. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts.map +1 -0
  1201. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js +17 -0
  1202. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js.map +1 -0
  1203. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts +93 -0
  1204. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts.map +1 -0
  1205. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js +17 -0
  1206. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js.map +1 -0
  1207. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts +333 -0
  1208. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts.map +1 -0
  1209. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js +32 -0
  1210. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js.map +1 -0
  1211. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts +265 -0
  1212. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts.map +1 -0
  1213. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js +24 -0
  1214. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js.map +1 -0
  1215. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts +284 -0
  1216. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts.map +1 -0
  1217. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js +24 -0
  1218. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js.map +1 -0
  1219. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts +367 -0
  1220. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts.map +1 -0
  1221. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js +35 -0
  1222. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js.map +1 -0
  1223. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts +469 -0
  1224. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts.map +1 -0
  1225. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js +44 -0
  1226. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js.map +1 -0
  1227. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts +2 -0
  1228. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts.map +1 -0
  1229. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js +91 -0
  1230. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js.map +1 -0
  1231. package/dist/runtime/server/node_modules/@paperclipai/db/package.json +36 -0
  1232. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts +57 -0
  1233. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts.map +1 -0
  1234. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js +105 -0
  1235. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js.map +1 -0
  1236. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts +218 -0
  1237. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts.map +1 -0
  1238. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js +85 -0
  1239. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js.map +1 -0
  1240. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts +3 -0
  1241. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts.map +1 -0
  1242. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js +49 -0
  1243. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js.map +1 -0
  1244. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts +34 -0
  1245. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts.map +1 -0
  1246. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js +194 -0
  1247. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js.map +1 -0
  1248. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts +229 -0
  1249. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts.map +1 -0
  1250. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js +353 -0
  1251. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js.map +1 -0
  1252. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts +84 -0
  1253. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts.map +1 -0
  1254. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js +84 -0
  1255. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js.map +1 -0
  1256. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts +881 -0
  1257. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts.map +1 -0
  1258. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js +297 -0
  1259. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js.map +1 -0
  1260. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts +63 -0
  1261. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts.map +1 -0
  1262. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js +702 -0
  1263. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js.map +1 -0
  1264. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts +982 -0
  1265. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts.map +1 -0
  1266. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js +12 -0
  1267. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js.map +1 -0
  1268. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts +257 -0
  1269. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts.map +1 -0
  1270. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js +97 -0
  1271. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js.map +1 -0
  1272. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts +120 -0
  1273. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts.map +1 -0
  1274. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js +148 -0
  1275. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js.map +1 -0
  1276. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts +50 -0
  1277. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts.map +1 -0
  1278. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js +48 -0
  1279. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js.map +1 -0
  1280. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts +3 -0
  1281. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts.map +1 -0
  1282. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js +30 -0
  1283. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js.map +1 -0
  1284. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts +308 -0
  1285. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts.map +1 -0
  1286. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js +17 -0
  1287. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js.map +1 -0
  1288. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts +127 -0
  1289. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts.map +1 -0
  1290. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js +941 -0
  1291. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js.map +1 -0
  1292. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/package.json +74 -0
  1293. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts +4 -0
  1294. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts.map +1 -0
  1295. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js +22 -0
  1296. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js.map +1 -0
  1297. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts +20 -0
  1298. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts.map +1 -0
  1299. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js +20 -0
  1300. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js.map +1 -0
  1301. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts +755 -0
  1302. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts.map +1 -0
  1303. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js +154 -0
  1304. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js.map +1 -0
  1305. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts +214 -0
  1306. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts.map +1 -0
  1307. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js +553 -0
  1308. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js.map +1 -0
  1309. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts +116 -0
  1310. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts.map +1 -0
  1311. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js +181 -0
  1312. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js.map +1 -0
  1313. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts +12 -0
  1314. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts.map +1 -0
  1315. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js +11 -0
  1316. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js.map +1 -0
  1317. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts +9 -0
  1318. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts.map +1 -0
  1319. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js +71 -0
  1320. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js.map +1 -0
  1321. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts +3 -0
  1322. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts.map +1 -0
  1323. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js +16 -0
  1324. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js.map +1 -0
  1325. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts +15 -0
  1326. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts.map +1 -0
  1327. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js +40 -0
  1328. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js.map +1 -0
  1329. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts +67 -0
  1330. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts.map +1 -0
  1331. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js +2 -0
  1332. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js.map +1 -0
  1333. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts +14 -0
  1334. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts.map +1 -0
  1335. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js +2 -0
  1336. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js.map +1 -0
  1337. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts +80 -0
  1338. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts.map +1 -0
  1339. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js +2 -0
  1340. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js.map +1 -0
  1341. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts +26 -0
  1342. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts.map +1 -0
  1343. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js +2 -0
  1344. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js.map +1 -0
  1345. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts +16 -0
  1346. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts.map +1 -0
  1347. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js +2 -0
  1348. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js.map +1 -0
  1349. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts +86 -0
  1350. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts.map +1 -0
  1351. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js +2 -0
  1352. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js.map +1 -0
  1353. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts +120 -0
  1354. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts.map +1 -0
  1355. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js +2 -0
  1356. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js.map +1 -0
  1357. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts +20 -0
  1358. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts.map +1 -0
  1359. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js +2 -0
  1360. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js.map +1 -0
  1361. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts +106 -0
  1362. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts.map +1 -0
  1363. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js +2 -0
  1364. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js.map +1 -0
  1365. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts +28 -0
  1366. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts.map +1 -0
  1367. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js +2 -0
  1368. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js.map +1 -0
  1369. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts +57 -0
  1370. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts.map +1 -0
  1371. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js +2 -0
  1372. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js.map +1 -0
  1373. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts +14 -0
  1374. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts.map +1 -0
  1375. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js +2 -0
  1376. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js.map +1 -0
  1377. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts +118 -0
  1378. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts.map +1 -0
  1379. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js +2 -0
  1380. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js.map +1 -0
  1381. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts +26 -0
  1382. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts.map +1 -0
  1383. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js +2 -0
  1384. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js.map +1 -0
  1385. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts +10 -0
  1386. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts.map +1 -0
  1387. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js +2 -0
  1388. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js.map +1 -0
  1389. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts +164 -0
  1390. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts.map +1 -0
  1391. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js +2 -0
  1392. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js.map +1 -0
  1393. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts +9 -0
  1394. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts.map +1 -0
  1395. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js +2 -0
  1396. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js.map +1 -0
  1397. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts +419 -0
  1398. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts.map +1 -0
  1399. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js +2 -0
  1400. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js.map +1 -0
  1401. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts +67 -0
  1402. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts.map +1 -0
  1403. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js +2 -0
  1404. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js.map +1 -0
  1405. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts +26 -0
  1406. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts.map +1 -0
  1407. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js +2 -0
  1408. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js.map +1 -0
  1409. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts +32 -0
  1410. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts.map +1 -0
  1411. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js +2 -0
  1412. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js.map +1 -0
  1413. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts +7 -0
  1414. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts.map +1 -0
  1415. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js +2 -0
  1416. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js.map +1 -0
  1417. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts +26 -0
  1418. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts.map +1 -0
  1419. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js +2 -0
  1420. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js.map +1 -0
  1421. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts +27 -0
  1422. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts.map +1 -0
  1423. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js +2 -0
  1424. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js.map +1 -0
  1425. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts +26 -0
  1426. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts.map +1 -0
  1427. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js +2 -0
  1428. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js.map +1 -0
  1429. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts +86 -0
  1430. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts.map +1 -0
  1431. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js +2 -0
  1432. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js.map +1 -0
  1433. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts +109 -0
  1434. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts.map +1 -0
  1435. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js +40 -0
  1436. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js.map +1 -0
  1437. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts +235 -0
  1438. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts.map +1 -0
  1439. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js +71 -0
  1440. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js.map +1 -0
  1441. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts +57 -0
  1442. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts.map +1 -0
  1443. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js +23 -0
  1444. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js.map +1 -0
  1445. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts +10 -0
  1446. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts.map +1 -0
  1447. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js +11 -0
  1448. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js.map +1 -0
  1449. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts +56 -0
  1450. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts.map +1 -0
  1451. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js +27 -0
  1452. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js.map +1 -0
  1453. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts +1535 -0
  1454. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts.map +1 -0
  1455. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js +95 -0
  1456. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js.map +1 -0
  1457. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts +64 -0
  1458. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts.map +1 -0
  1459. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js +25 -0
  1460. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js.map +1 -0
  1461. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts +92 -0
  1462. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts.map +1 -0
  1463. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js +26 -0
  1464. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js.map +1 -0
  1465. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts +20 -0
  1466. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts.map +1 -0
  1467. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js +15 -0
  1468. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js.map +1 -0
  1469. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts +129 -0
  1470. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts.map +1 -0
  1471. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js +32 -0
  1472. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js.map +1 -0
  1473. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts +48 -0
  1474. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts.map +1 -0
  1475. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js +12 -0
  1476. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js.map +1 -0
  1477. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts +19 -0
  1478. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts.map +1 -0
  1479. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js +19 -0
  1480. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js.map +1 -0
  1481. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts +18 -0
  1482. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts.map +1 -0
  1483. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js +6 -0
  1484. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js.map +1 -0
  1485. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts +656 -0
  1486. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts.map +1 -0
  1487. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js +95 -0
  1488. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js.map +1 -0
  1489. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts +1173 -0
  1490. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts.map +1 -0
  1491. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js +547 -0
  1492. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js.map +1 -0
  1493. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts +583 -0
  1494. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts.map +1 -0
  1495. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js +93 -0
  1496. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js.map +1 -0
  1497. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts +114 -0
  1498. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts.map +1 -0
  1499. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js +35 -0
  1500. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js.map +1 -0
  1501. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts +56 -0
  1502. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts.map +1 -0
  1503. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js +22 -0
  1504. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js.map +1 -0
  1505. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts +105 -0
  1506. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts.map +1 -0
  1507. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js +46 -0
  1508. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js.map +1 -0
  1509. package/dist/runtime/server/node_modules/@paperclipai/shared/package.json +33 -0
  1510. package/dist/runtime/server/package.json +5 -0
  1511. package/dist/runtime/server/ui-dist/android-chrome-192x192.png +0 -0
  1512. package/dist/runtime/server/ui-dist/android-chrome-512x512.png +0 -0
  1513. package/dist/runtime/server/ui-dist/apple-touch-icon.png +0 -0
  1514. package/dist/runtime/server/ui-dist/assets/OnboardingWizard-DQqBk_u-.js +839 -0
  1515. package/dist/runtime/server/ui-dist/assets/_basePickBy-CycqvnCH.js +1 -0
  1516. package/dist/runtime/server/ui-dist/assets/_baseUniq-jJI66QE5.js +1 -0
  1517. package/dist/runtime/server/ui-dist/assets/apl-B4CMkyY2.js +1 -0
  1518. package/dist/runtime/server/ui-dist/assets/arc-DAfOGkhs.js +1 -0
  1519. package/dist/runtime/server/ui-dist/assets/architectureDiagram-VXUJARFQ-Bseplhn_.js +36 -0
  1520. package/dist/runtime/server/ui-dist/assets/asciiarmor-Df11BRmG.js +1 -0
  1521. package/dist/runtime/server/ui-dist/assets/asn1-EdZsLKOL.js +1 -0
  1522. package/dist/runtime/server/ui-dist/assets/asterisk-B-8jnY81.js +1 -0
  1523. package/dist/runtime/server/ui-dist/assets/blockDiagram-VD42YOAC-CImRkHxE.js +122 -0
  1524. package/dist/runtime/server/ui-dist/assets/brainfuck-C4LP7Hcl.js +1 -0
  1525. package/dist/runtime/server/ui-dist/assets/c4Diagram-YG6GDRKO-DocRJ0-4.js +10 -0
  1526. package/dist/runtime/server/ui-dist/assets/channel-BBXTGjGr.js +1 -0
  1527. package/dist/runtime/server/ui-dist/assets/chunk-4BX2VUAB-C_QZ3yOc.js +1 -0
  1528. package/dist/runtime/server/ui-dist/assets/chunk-55IACEB6-B83lcfpC.js +1 -0
  1529. package/dist/runtime/server/ui-dist/assets/chunk-B4BG7PRW-_ZGkSCBB.js +165 -0
  1530. package/dist/runtime/server/ui-dist/assets/chunk-DI55MBZ5-D84JXXQK.js +220 -0
  1531. package/dist/runtime/server/ui-dist/assets/chunk-FMBD7UC4-MA5md7TF.js +15 -0
  1532. package/dist/runtime/server/ui-dist/assets/chunk-QN33PNHL-pBntDM8z.js +1 -0
  1533. package/dist/runtime/server/ui-dist/assets/chunk-QZHKN3VN-BaIMiSo-.js +1 -0
  1534. package/dist/runtime/server/ui-dist/assets/chunk-TZMSLE5B-CrjyhaCL.js +1 -0
  1535. package/dist/runtime/server/ui-dist/assets/classDiagram-2ON5EDUG-BNttVhse.js +1 -0
  1536. package/dist/runtime/server/ui-dist/assets/classDiagram-v2-WZHVMYZB-BNttVhse.js +1 -0
  1537. package/dist/runtime/server/ui-dist/assets/clike-B9uivgTg.js +1 -0
  1538. package/dist/runtime/server/ui-dist/assets/clojure-BMjYHr_A.js +1 -0
  1539. package/dist/runtime/server/ui-dist/assets/clone-dcpmW7Wd.js +1 -0
  1540. package/dist/runtime/server/ui-dist/assets/cmake-BQqOBYOt.js +1 -0
  1541. package/dist/runtime/server/ui-dist/assets/cobol-CWcv1MsR.js +1 -0
  1542. package/dist/runtime/server/ui-dist/assets/coffeescript-S37ZYGWr.js +1 -0
  1543. package/dist/runtime/server/ui-dist/assets/commonlisp-DBKNyK5s.js +1 -0
  1544. package/dist/runtime/server/ui-dist/assets/cose-bilkent-S5V4N54A-mNFISgZf.js +1 -0
  1545. package/dist/runtime/server/ui-dist/assets/crystal-SjHAIU92.js +1 -0
  1546. package/dist/runtime/server/ui-dist/assets/css-BnMrqG3P.js +1 -0
  1547. package/dist/runtime/server/ui-dist/assets/cypher-C_CwsFkJ.js +1 -0
  1548. package/dist/runtime/server/ui-dist/assets/cytoscape.esm-BQaXIfA_.js +331 -0
  1549. package/dist/runtime/server/ui-dist/assets/d-pRatUO7H.js +1 -0
  1550. package/dist/runtime/server/ui-dist/assets/dagre-6UL2VRFP-BW8ACip_.js +4 -0
  1551. package/dist/runtime/server/ui-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  1552. package/dist/runtime/server/ui-dist/assets/diagram-PSM6KHXK-ByQfKnwU.js +24 -0
  1553. package/dist/runtime/server/ui-dist/assets/diagram-QEK2KX5R-CVMlaNLR.js +43 -0
  1554. package/dist/runtime/server/ui-dist/assets/diagram-S2PKOQOG-CfBIwKQh.js +24 -0
  1555. package/dist/runtime/server/ui-dist/assets/diff-DbItnlRl.js +1 -0
  1556. package/dist/runtime/server/ui-dist/assets/dockerfile-BKs6k2Af.js +1 -0
  1557. package/dist/runtime/server/ui-dist/assets/dtd-DF_7sFjM.js +1 -0
  1558. package/dist/runtime/server/ui-dist/assets/dx-root-DH9to-bY.js +280 -0
  1559. package/dist/runtime/server/ui-dist/assets/dylan-DwRh75JA.js +1 -0
  1560. package/dist/runtime/server/ui-dist/assets/ebnf-CDyGwa7X.js +1 -0
  1561. package/dist/runtime/server/ui-dist/assets/ecl-Cabwm37j.js +1 -0
  1562. package/dist/runtime/server/ui-dist/assets/eiffel-CnydiIhH.js +1 -0
  1563. package/dist/runtime/server/ui-dist/assets/elm-vLlmbW-K.js +1 -0
  1564. package/dist/runtime/server/ui-dist/assets/erDiagram-Q2GNP2WA-DjZOGwrs.js +60 -0
  1565. package/dist/runtime/server/ui-dist/assets/erlang-BNw1qcRV.js +1 -0
  1566. package/dist/runtime/server/ui-dist/assets/factor-kuTfRLto.js +1 -0
  1567. package/dist/runtime/server/ui-dist/assets/fcl-Kvtd6kyn.js +1 -0
  1568. package/dist/runtime/server/ui-dist/assets/flowDiagram-NV44I4VS-BpGnGwpO.js +162 -0
  1569. package/dist/runtime/server/ui-dist/assets/forth-Ffai-XNe.js +1 -0
  1570. package/dist/runtime/server/ui-dist/assets/fortran-DYz_wnZ1.js +1 -0
  1571. package/dist/runtime/server/ui-dist/assets/ganttDiagram-JELNMOA3-CpTGtCqK.js +267 -0
  1572. package/dist/runtime/server/ui-dist/assets/gas-Bneqetm1.js +1 -0
  1573. package/dist/runtime/server/ui-dist/assets/gherkin-heZmZLOM.js +1 -0
  1574. package/dist/runtime/server/ui-dist/assets/gitGraphDiagram-V2S2FVAM-BQaWuAZj.js +65 -0
  1575. package/dist/runtime/server/ui-dist/assets/graph-DXdHsjCL.js +1 -0
  1576. package/dist/runtime/server/ui-dist/assets/groovy-D9Dt4D0W.js +1 -0
  1577. package/dist/runtime/server/ui-dist/assets/gtm-root-Bz1qVp9E.js +11 -0
  1578. package/dist/runtime/server/ui-dist/assets/haskell-Cw1EW3IL.js +1 -0
  1579. package/dist/runtime/server/ui-dist/assets/haxe-H-WmDvRZ.js +1 -0
  1580. package/dist/runtime/server/ui-dist/assets/http-DBlCnlav.js +1 -0
  1581. package/dist/runtime/server/ui-dist/assets/idl-BEugSyMb.js +1 -0
  1582. package/dist/runtime/server/ui-dist/assets/index-B8I0xKWu.js +1 -0
  1583. package/dist/runtime/server/ui-dist/assets/index-B8TKmcyb.js +6 -0
  1584. package/dist/runtime/server/ui-dist/assets/index-BMSNv6QN.js +13 -0
  1585. package/dist/runtime/server/ui-dist/assets/index-BYHJbnHR.js +1 -0
  1586. package/dist/runtime/server/ui-dist/assets/index-BgVlUrJs.js +2 -0
  1587. package/dist/runtime/server/ui-dist/assets/index-Bq-1_kyP.js +1 -0
  1588. package/dist/runtime/server/ui-dist/assets/index-BqPQYsKl.js +50 -0
  1589. package/dist/runtime/server/ui-dist/assets/index-BzMyBmxt.js +7 -0
  1590. package/dist/runtime/server/ui-dist/assets/index-CFpWwIka.js +1 -0
  1591. package/dist/runtime/server/ui-dist/assets/index-CKSID6Zp.js +1 -0
  1592. package/dist/runtime/server/ui-dist/assets/index-CQebjpNv.js +1 -0
  1593. package/dist/runtime/server/ui-dist/assets/index-CmOpk52T.css +1 -0
  1594. package/dist/runtime/server/ui-dist/assets/index-CmWaG74-.js +1 -0
  1595. package/dist/runtime/server/ui-dist/assets/index-CpAx3Tjk.js +3 -0
  1596. package/dist/runtime/server/ui-dist/assets/index-Crtq9e3P.js +1 -0
  1597. package/dist/runtime/server/ui-dist/assets/index-D5QPPm5h.js +1 -0
  1598. package/dist/runtime/server/ui-dist/assets/index-D8pJptAs.js +1 -0
  1599. package/dist/runtime/server/ui-dist/assets/index-DKPn8Zd0.js +1 -0
  1600. package/dist/runtime/server/ui-dist/assets/index-DRwidkWV.js +1 -0
  1601. package/dist/runtime/server/ui-dist/assets/index-DwTdFnM5.js +1 -0
  1602. package/dist/runtime/server/ui-dist/assets/index-KhE_p8qv.js +1 -0
  1603. package/dist/runtime/server/ui-dist/assets/index-LPZbBYTO.js +1 -0
  1604. package/dist/runtime/server/ui-dist/assets/index-mMQEcPHs.js +1 -0
  1605. package/dist/runtime/server/ui-dist/assets/index-nPSc8Rbx.js +1 -0
  1606. package/dist/runtime/server/ui-dist/assets/infoDiagram-HS3SLOUP-Du9idGhC.js +2 -0
  1607. package/dist/runtime/server/ui-dist/assets/init-Gi6I4Gst.js +1 -0
  1608. package/dist/runtime/server/ui-dist/assets/javascript-iXu5QeM3.js +1 -0
  1609. package/dist/runtime/server/ui-dist/assets/journeyDiagram-XKPGCS4Q-DQHmnv0N.js +139 -0
  1610. package/dist/runtime/server/ui-dist/assets/julia-DuME0IfC.js +1 -0
  1611. package/dist/runtime/server/ui-dist/assets/kanban-definition-3W4ZIXB7-D1us-ZVV.js +89 -0
  1612. package/dist/runtime/server/ui-dist/assets/katex-O9d3_IXG.js +261 -0
  1613. package/dist/runtime/server/ui-dist/assets/layout-CLyzF__I.js +1 -0
  1614. package/dist/runtime/server/ui-dist/assets/linear-DCEHrHNY.js +1 -0
  1615. package/dist/runtime/server/ui-dist/assets/livescript-BwQOo05w.js +1 -0
  1616. package/dist/runtime/server/ui-dist/assets/lua-BgMRiT3U.js +1 -0
  1617. package/dist/runtime/server/ui-dist/assets/mathematica-DTrFuWx2.js +1 -0
  1618. package/dist/runtime/server/ui-dist/assets/mbox-CNhZ1qSd.js +1 -0
  1619. package/dist/runtime/server/ui-dist/assets/mermaid.core-DPCeJESB.js +256 -0
  1620. package/dist/runtime/server/ui-dist/assets/mindmap-definition-VGOIOE7T-BmEem54z.js +68 -0
  1621. package/dist/runtime/server/ui-dist/assets/mirc-CjQqDB4T.js +1 -0
  1622. package/dist/runtime/server/ui-dist/assets/mllike-CXdrOF99.js +1 -0
  1623. package/dist/runtime/server/ui-dist/assets/modelica-Dc1JOy9r.js +1 -0
  1624. package/dist/runtime/server/ui-dist/assets/mscgen-BA5vi2Kp.js +1 -0
  1625. package/dist/runtime/server/ui-dist/assets/mumps-BT43cFF4.js +1 -0
  1626. package/dist/runtime/server/ui-dist/assets/nginx-DdIZxoE0.js +1 -0
  1627. package/dist/runtime/server/ui-dist/assets/nsis-LdVXkNf5.js +1 -0
  1628. package/dist/runtime/server/ui-dist/assets/ntriples-BfvgReVJ.js +1 -0
  1629. package/dist/runtime/server/ui-dist/assets/octave-Ck1zUtKM.js +1 -0
  1630. package/dist/runtime/server/ui-dist/assets/ordinal-Cboi1Yqb.js +1 -0
  1631. package/dist/runtime/server/ui-dist/assets/oz-BzwKVEFT.js +1 -0
  1632. package/dist/runtime/server/ui-dist/assets/pascal--L3eBynH.js +1 -0
  1633. package/dist/runtime/server/ui-dist/assets/perl-CdXCOZ3F.js +1 -0
  1634. package/dist/runtime/server/ui-dist/assets/pieDiagram-ADFJNKIX-DjIZtNwx.js +30 -0
  1635. package/dist/runtime/server/ui-dist/assets/pig-CevX1Tat.js +1 -0
  1636. package/dist/runtime/server/ui-dist/assets/powershell-CFHJl5sT.js +1 -0
  1637. package/dist/runtime/server/ui-dist/assets/properties-C78fOPTZ.js +1 -0
  1638. package/dist/runtime/server/ui-dist/assets/protobuf-ChK-085T.js +1 -0
  1639. package/dist/runtime/server/ui-dist/assets/pug-DeIclll2.js +1 -0
  1640. package/dist/runtime/server/ui-dist/assets/puppet-DMA9R1ak.js +1 -0
  1641. package/dist/runtime/server/ui-dist/assets/python-BuPzkPfP.js +1 -0
  1642. package/dist/runtime/server/ui-dist/assets/q-pXgVlZs6.js +1 -0
  1643. package/dist/runtime/server/ui-dist/assets/quadrantDiagram-AYHSOK5B-ba-xD4cb.js +7 -0
  1644. package/dist/runtime/server/ui-dist/assets/r-B6wPVr8A.js +1 -0
  1645. package/dist/runtime/server/ui-dist/assets/requirementDiagram-UZGBJVZJ-CB358t-a.js +64 -0
  1646. package/dist/runtime/server/ui-dist/assets/rpm-CTu-6PCP.js +1 -0
  1647. package/dist/runtime/server/ui-dist/assets/ruby-B2Rjki9n.js +1 -0
  1648. package/dist/runtime/server/ui-dist/assets/sankeyDiagram-TZEHDZUN-B0oPaNiW.js +10 -0
  1649. package/dist/runtime/server/ui-dist/assets/sas-B4kiWyti.js +1 -0
  1650. package/dist/runtime/server/ui-dist/assets/scheme-C41bIUwD.js +1 -0
  1651. package/dist/runtime/server/ui-dist/assets/sequenceDiagram-WL72ISMW-D7n_ZO5c.js +145 -0
  1652. package/dist/runtime/server/ui-dist/assets/shell-CjFT_Tl9.js +1 -0
  1653. package/dist/runtime/server/ui-dist/assets/sieve-C3Gn_uJK.js +1 -0
  1654. package/dist/runtime/server/ui-dist/assets/simple-mode-GW_nhZxv.js +1 -0
  1655. package/dist/runtime/server/ui-dist/assets/smalltalk-CnHTOXQT.js +1 -0
  1656. package/dist/runtime/server/ui-dist/assets/solr-DehyRSwq.js +1 -0
  1657. package/dist/runtime/server/ui-dist/assets/sparql-DkYu6x3z.js +1 -0
  1658. package/dist/runtime/server/ui-dist/assets/spreadsheet-BCZA_wO0.js +1 -0
  1659. package/dist/runtime/server/ui-dist/assets/sql-D0XecflT.js +1 -0
  1660. package/dist/runtime/server/ui-dist/assets/stateDiagram-FKZM4ZOC-MkMtXK-v.js +1 -0
  1661. package/dist/runtime/server/ui-dist/assets/stateDiagram-v2-4FDKWEC3-Cah7upY-.js +1 -0
  1662. package/dist/runtime/server/ui-dist/assets/stex-C3f8Ysf7.js +1 -0
  1663. package/dist/runtime/server/ui-dist/assets/stylus-B533Al4x.js +1 -0
  1664. package/dist/runtime/server/ui-dist/assets/swift-BzpIVaGY.js +1 -0
  1665. package/dist/runtime/server/ui-dist/assets/tcl-DVfN8rqt.js +1 -0
  1666. package/dist/runtime/server/ui-dist/assets/textile-CnDTJFAw.js +1 -0
  1667. package/dist/runtime/server/ui-dist/assets/tiddlywiki-DO-Gjzrf.js +1 -0
  1668. package/dist/runtime/server/ui-dist/assets/tiki-DGYXhP31.js +1 -0
  1669. package/dist/runtime/server/ui-dist/assets/timeline-definition-IT6M3QCI-CjBjKaYS.js +61 -0
  1670. package/dist/runtime/server/ui-dist/assets/toml-Bm5Em-hy.js +1 -0
  1671. package/dist/runtime/server/ui-dist/assets/treemap-GDKQZRPO-JNjc1ydw.js +162 -0
  1672. package/dist/runtime/server/ui-dist/assets/troff-wAsdV37c.js +1 -0
  1673. package/dist/runtime/server/ui-dist/assets/ttcn-CfJYG6tj.js +1 -0
  1674. package/dist/runtime/server/ui-dist/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  1675. package/dist/runtime/server/ui-dist/assets/turtle-B1tBg_DP.js +1 -0
  1676. package/dist/runtime/server/ui-dist/assets/vb-CmGdzxic.js +1 -0
  1677. package/dist/runtime/server/ui-dist/assets/vbscript-BuJXcnF6.js +1 -0
  1678. package/dist/runtime/server/ui-dist/assets/velocity-D8B20fx6.js +1 -0
  1679. package/dist/runtime/server/ui-dist/assets/verilog-C6RDOZhf.js +1 -0
  1680. package/dist/runtime/server/ui-dist/assets/vhdl-lSbBsy5d.js +1 -0
  1681. package/dist/runtime/server/ui-dist/assets/webidl-ZXfAyPTL.js +1 -0
  1682. package/dist/runtime/server/ui-dist/assets/xquery-DzFWVndE.js +1 -0
  1683. package/dist/runtime/server/ui-dist/assets/xychartDiagram-PRI3JC2R-DU-mF_06.js +7 -0
  1684. package/dist/runtime/server/ui-dist/assets/yacas-BJ4BC0dw.js +1 -0
  1685. package/dist/runtime/server/ui-dist/assets/z80-Hz9HOZM7.js +1 -0
  1686. package/dist/runtime/server/ui-dist/brands/opencode-logo-dark-square.svg +18 -0
  1687. package/dist/runtime/server/ui-dist/brands/opencode-logo-light-square.svg +18 -0
  1688. package/dist/runtime/server/ui-dist/favicon-16x16.png +0 -0
  1689. package/dist/runtime/server/ui-dist/favicon-32x32.png +0 -0
  1690. package/dist/runtime/server/ui-dist/favicon.ico +0 -0
  1691. package/dist/runtime/server/ui-dist/favicon.svg +9 -0
  1692. package/dist/runtime/server/ui-dist/index.html +48 -0
  1693. package/dist/runtime/server/ui-dist/site.webmanifest +30 -0
  1694. package/dist/runtime/server/ui-dist/sw.js +42 -0
  1695. package/dist/runtime/server/ui-dist/worktree-favicon-16x16.png +0 -0
  1696. package/dist/runtime/server/ui-dist/worktree-favicon-32x32.png +0 -0
  1697. package/dist/runtime/server/ui-dist/worktree-favicon.ico +0 -0
  1698. package/dist/runtime/server/ui-dist/worktree-favicon.svg +9 -0
  1699. package/package.json +7 -4
@@ -0,0 +1,969 @@
1
+ import { pluginLogs, agentTaskSessions as agentTaskSessionsTable } from "@paperclipai/db";
2
+ import { eq, and, like, desc } from "drizzle-orm";
3
+ import { companyService } from "./companies.js";
4
+ import { agentService } from "./agents.js";
5
+ import { projectService } from "./projects.js";
6
+ import { issueService } from "./issues.js";
7
+ import { goalService } from "./goals.js";
8
+ import { documentService } from "./documents.js";
9
+ import { heartbeatService } from "./heartbeat.js";
10
+ import { subscribeCompanyLiveEvents } from "./live-events.js";
11
+ import { randomUUID } from "node:crypto";
12
+ import { activityService } from "./activity.js";
13
+ import { costService } from "./costs.js";
14
+ import { assetService } from "./assets.js";
15
+ import { pluginRegistryService } from "./plugin-registry.js";
16
+ import { pluginStateStore } from "./plugin-state-store.js";
17
+ import { createPluginSecretsHandler } from "./plugin-secrets-handler.js";
18
+ import { logActivity } from "./activity-log.js";
19
+ import { lookup as dnsLookup } from "node:dns/promises";
20
+ import { request as httpRequest } from "node:http";
21
+ import { request as httpsRequest } from "node:https";
22
+ import { isIP } from "node:net";
23
+ import { logger } from "../middleware/logger.js";
24
+ // ---------------------------------------------------------------------------
25
+ // SSRF protection for plugin HTTP fetch
26
+ // ---------------------------------------------------------------------------
27
+ /** Maximum time (ms) a plugin fetch request may take before being aborted. */
28
+ const PLUGIN_FETCH_TIMEOUT_MS = 30_000;
29
+ /** Maximum time (ms) to wait for a DNS lookup before aborting. */
30
+ const DNS_LOOKUP_TIMEOUT_MS = 5_000;
31
+ /** Only these protocols are allowed for plugin HTTP requests. */
32
+ const ALLOWED_PROTOCOLS = new Set(["http:", "https:"]);
33
+ /**
34
+ * Check if an IP address is in a private/reserved range (RFC 1918, loopback,
35
+ * link-local, etc.) that plugins should never be able to reach.
36
+ *
37
+ * Handles IPv4-mapped IPv6 addresses (e.g. ::ffff:127.0.0.1) which Node's
38
+ * dns.lookup may return depending on OS configuration.
39
+ */
40
+ function isPrivateIP(ip) {
41
+ const lower = ip.toLowerCase();
42
+ // Unwrap IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) and re-check as IPv4
43
+ const v4MappedMatch = lower.match(/^::ffff:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/);
44
+ if (v4MappedMatch && v4MappedMatch[1])
45
+ return isPrivateIP(v4MappedMatch[1]);
46
+ // IPv4 patterns
47
+ if (ip.startsWith("10."))
48
+ return true;
49
+ if (ip.startsWith("172.")) {
50
+ const second = parseInt(ip.split(".")[1], 10);
51
+ if (second >= 16 && second <= 31)
52
+ return true;
53
+ }
54
+ if (ip.startsWith("192.168."))
55
+ return true;
56
+ if (ip.startsWith("127."))
57
+ return true; // loopback
58
+ if (ip.startsWith("169.254."))
59
+ return true; // link-local
60
+ if (ip === "0.0.0.0")
61
+ return true;
62
+ // IPv6 patterns
63
+ if (lower === "::1")
64
+ return true; // loopback
65
+ if (lower.startsWith("fc") || lower.startsWith("fd"))
66
+ return true; // ULA
67
+ if (lower.startsWith("fe80"))
68
+ return true; // link-local
69
+ if (lower === "::")
70
+ return true;
71
+ return false;
72
+ }
73
+ async function validateAndResolveFetchUrl(urlString) {
74
+ let parsed;
75
+ try {
76
+ parsed = new URL(urlString);
77
+ }
78
+ catch {
79
+ throw new Error(`Invalid URL: ${urlString}`);
80
+ }
81
+ if (!ALLOWED_PROTOCOLS.has(parsed.protocol)) {
82
+ throw new Error(`Disallowed protocol "${parsed.protocol}" — only http: and https: are permitted`);
83
+ }
84
+ // Resolve the hostname to an IP and check for private ranges.
85
+ // We pin the resolved IP into the URL to eliminate the TOCTOU window
86
+ // between DNS resolution here and the second resolution fetch() would do.
87
+ const originalHostname = parsed.hostname.replace(/^\[|\]$/g, ""); // strip IPv6 brackets
88
+ const hostHeader = parsed.host; // includes port if non-default
89
+ // Race the DNS lookup against a timeout to prevent indefinite hangs
90
+ // when DNS is misconfigured or unresponsive.
91
+ const dnsPromise = dnsLookup(originalHostname, { all: true });
92
+ const timeoutPromise = new Promise((_, reject) => {
93
+ setTimeout(() => reject(new Error(`DNS lookup timed out after ${DNS_LOOKUP_TIMEOUT_MS}ms for ${originalHostname}`)), DNS_LOOKUP_TIMEOUT_MS);
94
+ });
95
+ try {
96
+ const results = await Promise.race([dnsPromise, timeoutPromise]);
97
+ if (results.length === 0) {
98
+ throw new Error(`DNS resolution returned no results for ${originalHostname}`);
99
+ }
100
+ // Filter to only non-private IPs instead of rejecting the entire request
101
+ // when some IPs are private. This handles multi-homed hosts that resolve
102
+ // to both private and public addresses.
103
+ const safeResults = results.filter((entry) => !isPrivateIP(entry.address));
104
+ if (safeResults.length === 0) {
105
+ throw new Error(`All resolved IPs for ${originalHostname} are in private/reserved ranges`);
106
+ }
107
+ const resolved = safeResults[0];
108
+ return {
109
+ parsedUrl: parsed,
110
+ resolvedAddress: resolved.address,
111
+ hostHeader,
112
+ tlsServername: parsed.protocol === "https:" && isIP(originalHostname) === 0
113
+ ? originalHostname
114
+ : undefined,
115
+ useTls: parsed.protocol === "https:",
116
+ };
117
+ }
118
+ catch (err) {
119
+ // Re-throw our own errors; wrap DNS failures
120
+ if (err instanceof Error && (err.message.startsWith("All resolved IPs") ||
121
+ err.message.startsWith("DNS resolution returned") ||
122
+ err.message.startsWith("DNS lookup timed out")))
123
+ throw err;
124
+ throw new Error(`DNS resolution failed for ${originalHostname}: ${err.message}`);
125
+ }
126
+ }
127
+ function buildPinnedRequestOptions(target, init) {
128
+ const headers = new Headers(init?.headers);
129
+ const method = init?.method ?? "GET";
130
+ const body = init?.body === undefined || init?.body === null
131
+ ? undefined
132
+ : typeof init.body === "string"
133
+ ? init.body
134
+ : String(init.body);
135
+ headers.set("Host", target.hostHeader);
136
+ if (body !== undefined && !headers.has("content-length") && !headers.has("transfer-encoding")) {
137
+ headers.set("content-length", String(Buffer.byteLength(body)));
138
+ }
139
+ const pathname = `${target.parsedUrl.pathname}${target.parsedUrl.search}`;
140
+ const auth = target.parsedUrl.username || target.parsedUrl.password
141
+ ? `${decodeURIComponent(target.parsedUrl.username)}:${decodeURIComponent(target.parsedUrl.password)}`
142
+ : undefined;
143
+ return {
144
+ options: {
145
+ protocol: target.parsedUrl.protocol,
146
+ host: target.resolvedAddress,
147
+ port: target.parsedUrl.port
148
+ ? Number(target.parsedUrl.port)
149
+ : target.useTls
150
+ ? 443
151
+ : 80,
152
+ path: pathname,
153
+ method,
154
+ headers: Object.fromEntries(headers.entries()),
155
+ auth,
156
+ servername: target.tlsServername,
157
+ },
158
+ body,
159
+ };
160
+ }
161
+ async function executePinnedHttpRequest(target, init, signal) {
162
+ const { options, body } = buildPinnedRequestOptions(target, init);
163
+ const response = await new Promise((resolve, reject) => {
164
+ const requestFn = target.useTls ? httpsRequest : httpRequest;
165
+ const req = requestFn({ ...options, signal }, resolve);
166
+ req.on("error", reject);
167
+ if (body !== undefined) {
168
+ req.write(body);
169
+ }
170
+ req.end();
171
+ });
172
+ const MAX_RESPONSE_BODY_BYTES = 200 * 1024 * 1024; // 200 MB
173
+ const chunks = [];
174
+ let totalBytes = 0;
175
+ await new Promise((resolve, reject) => {
176
+ response.on("data", (chunk) => {
177
+ const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
178
+ totalBytes += buf.length;
179
+ if (totalBytes > MAX_RESPONSE_BODY_BYTES) {
180
+ chunks.length = 0;
181
+ response.destroy(new Error(`Response body exceeded ${MAX_RESPONSE_BODY_BYTES} bytes`));
182
+ return;
183
+ }
184
+ chunks.push(buf);
185
+ });
186
+ response.on("end", resolve);
187
+ response.on("error", reject);
188
+ });
189
+ const headers = {};
190
+ for (const [key, value] of Object.entries(response.headers)) {
191
+ if (Array.isArray(value)) {
192
+ headers[key] = value.join(", ");
193
+ }
194
+ else if (value !== undefined) {
195
+ headers[key] = value;
196
+ }
197
+ }
198
+ return {
199
+ status: response.statusCode ?? 500,
200
+ statusText: response.statusMessage ?? "",
201
+ headers,
202
+ body: Buffer.concat(chunks).toString("utf8"),
203
+ };
204
+ }
205
+ const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
206
+ const PATH_LIKE_PATTERN = /[\\/]/;
207
+ const WINDOWS_DRIVE_PATH_PATTERN = /^[A-Za-z]:[\\/]/;
208
+ function looksLikePath(value) {
209
+ const normalized = value.trim();
210
+ return (PATH_LIKE_PATTERN.test(normalized)
211
+ || WINDOWS_DRIVE_PATH_PATTERN.test(normalized)) && !UUID_PATTERN.test(normalized);
212
+ }
213
+ function sanitizeWorkspaceText(value) {
214
+ const trimmed = value.trim();
215
+ if (!trimmed || UUID_PATTERN.test(trimmed))
216
+ return "";
217
+ return trimmed;
218
+ }
219
+ function sanitizeWorkspacePath(cwd) {
220
+ if (!cwd)
221
+ return "";
222
+ return looksLikePath(cwd) ? cwd.trim() : "";
223
+ }
224
+ function sanitizeWorkspaceName(name, fallbackPath) {
225
+ const safeName = sanitizeWorkspaceText(name);
226
+ if (safeName && !looksLikePath(safeName)) {
227
+ return safeName;
228
+ }
229
+ const normalized = fallbackPath.trim().replace(/[\\/]+$/, "");
230
+ const segments = normalized.split(/[\\/]/).filter(Boolean);
231
+ return segments[segments.length - 1] ?? "Workspace";
232
+ }
233
+ // ---------------------------------------------------------------------------
234
+ // Buffered plugin log writes
235
+ // ---------------------------------------------------------------------------
236
+ /** How many buffered log entries trigger an immediate flush. */
237
+ const LOG_BUFFER_FLUSH_SIZE = 100;
238
+ /** How often (ms) the buffer is flushed regardless of size. */
239
+ const LOG_BUFFER_FLUSH_INTERVAL_MS = 5_000;
240
+ /** Max length for a single plugin log message (bytes/chars). */
241
+ const MAX_LOG_MESSAGE_LENGTH = 10_000;
242
+ /** Max serialised JSON size for plugin log meta objects. */
243
+ const MAX_LOG_META_JSON_LENGTH = 50_000;
244
+ /** Max length for a metric name. */
245
+ const MAX_METRIC_NAME_LENGTH = 500;
246
+ /** Pino reserved field names that plugins must not overwrite. */
247
+ const PINO_RESERVED_KEYS = new Set([
248
+ "level",
249
+ "time",
250
+ "pid",
251
+ "hostname",
252
+ "msg",
253
+ "v",
254
+ ]);
255
+ /** Truncate a string to `max` characters, appending a marker if truncated. */
256
+ function truncStr(s, max) {
257
+ if (s.length <= max)
258
+ return s;
259
+ return s.slice(0, max) + "...[truncated]";
260
+ }
261
+ /** Sanitise a plugin-supplied meta object: enforce size limit and strip reserved keys. */
262
+ function sanitiseMeta(meta) {
263
+ if (meta == null)
264
+ return null;
265
+ // Strip pino reserved keys
266
+ const cleaned = {};
267
+ for (const [k, v] of Object.entries(meta)) {
268
+ if (!PINO_RESERVED_KEYS.has(k)) {
269
+ cleaned[k] = v;
270
+ }
271
+ }
272
+ // Enforce total serialised size
273
+ let json;
274
+ try {
275
+ json = JSON.stringify(cleaned);
276
+ }
277
+ catch {
278
+ return { _sanitised: true, _error: "meta was not JSON-serialisable" };
279
+ }
280
+ if (json.length > MAX_LOG_META_JSON_LENGTH) {
281
+ return { _sanitised: true, _error: `meta exceeded ${MAX_LOG_META_JSON_LENGTH} chars` };
282
+ }
283
+ return cleaned;
284
+ }
285
+ const _logBuffer = [];
286
+ /**
287
+ * Flush all buffered log entries to the database in a single batch insert per
288
+ * unique db instance. Errors are swallowed with a console.error fallback so
289
+ * flushing never crashes the process.
290
+ */
291
+ export async function flushPluginLogBuffer() {
292
+ if (_logBuffer.length === 0)
293
+ return;
294
+ // Drain the buffer atomically so concurrent flushes don't double-insert.
295
+ const entries = _logBuffer.splice(0, _logBuffer.length);
296
+ // Group entries by db identity so multi-db scenarios are handled correctly.
297
+ const byDb = new Map();
298
+ for (const entry of entries) {
299
+ const group = byDb.get(entry.db);
300
+ if (group) {
301
+ group.push(entry);
302
+ }
303
+ else {
304
+ byDb.set(entry.db, [entry]);
305
+ }
306
+ }
307
+ for (const [dbInstance, group] of byDb) {
308
+ const values = group.map((e) => ({
309
+ pluginId: e.pluginId,
310
+ level: e.level,
311
+ message: e.message,
312
+ meta: e.meta,
313
+ }));
314
+ try {
315
+ await dbInstance.insert(pluginLogs).values(values);
316
+ }
317
+ catch (err) {
318
+ try {
319
+ logger.warn({ err, count: values.length }, "Failed to batch-persist plugin logs to DB");
320
+ }
321
+ catch {
322
+ console.error("[plugin-host-services] Batch log flush failed:", err);
323
+ }
324
+ }
325
+ }
326
+ }
327
+ /** Interval handle for the periodic log flush. */
328
+ const _logFlushInterval = setInterval(() => {
329
+ flushPluginLogBuffer().catch((err) => {
330
+ console.error("[plugin-host-services] Periodic log flush error:", err);
331
+ });
332
+ }, LOG_BUFFER_FLUSH_INTERVAL_MS);
333
+ // Allow the interval to be unref'd so it doesn't keep the process alive in tests.
334
+ if (_logFlushInterval.unref)
335
+ _logFlushInterval.unref();
336
+ /**
337
+ * buildHostServices — creates a concrete implementation of the `HostServices`
338
+ * interface for a specific plugin.
339
+ *
340
+ * This implementation delegates to the core Paperclip domain services,
341
+ * providing the bridge between the plugin worker's SDK and the host platform.
342
+ *
343
+ * @param db - Database connection instance.
344
+ * @param pluginId - The UUID of the plugin installation record.
345
+ * @param pluginKey - The unique identifier from the plugin manifest (e.g., "acme.linear").
346
+ * @param eventBus - The system-wide event bus for publishing plugin events.
347
+ * @returns An object implementing the HostServices interface for the plugin SDK.
348
+ */
349
+ /** Maximum time (ms) to keep a session event subscription alive before forcing cleanup. */
350
+ const SESSION_EVENT_SUBSCRIPTION_TIMEOUT_MS = 30 * 60 * 1_000; // 30 minutes
351
+ export function buildHostServices(db, pluginId, pluginKey, eventBus, notifyWorker) {
352
+ const registry = pluginRegistryService(db);
353
+ const stateStore = pluginStateStore(db);
354
+ const secretsHandler = createPluginSecretsHandler({ db, pluginId });
355
+ const companies = companyService(db);
356
+ const agents = agentService(db);
357
+ const heartbeat = heartbeatService(db);
358
+ const projects = projectService(db);
359
+ const issues = issueService(db);
360
+ const documents = documentService(db);
361
+ const goals = goalService(db);
362
+ const activity = activityService(db);
363
+ const costs = costService(db);
364
+ const assets = assetService(db);
365
+ const scopedBus = eventBus.forPlugin(pluginKey);
366
+ // Track active session event subscriptions for cleanup
367
+ const activeSubscriptions = new Set();
368
+ let disposed = false;
369
+ const ensureCompanyId = (companyId) => {
370
+ if (!companyId)
371
+ throw new Error("companyId is required for this operation");
372
+ return companyId;
373
+ };
374
+ const parseWindowValue = (value) => {
375
+ if (typeof value === "number" && Number.isFinite(value)) {
376
+ return Math.max(0, Math.floor(value));
377
+ }
378
+ if (typeof value === "string" && value.trim().length > 0) {
379
+ const parsed = Number(value);
380
+ if (Number.isFinite(parsed)) {
381
+ return Math.max(0, Math.floor(parsed));
382
+ }
383
+ }
384
+ return null;
385
+ };
386
+ const applyWindow = (rows, params) => {
387
+ const offset = parseWindowValue(params?.offset) ?? 0;
388
+ const limit = parseWindowValue(params?.limit);
389
+ if (limit == null)
390
+ return rows.slice(offset);
391
+ return rows.slice(offset, offset + limit);
392
+ };
393
+ /**
394
+ * Plugins are instance-wide in the current runtime. Company IDs are still
395
+ * required for company-scoped data access, but there is no per-company
396
+ * availability gate to enforce here.
397
+ */
398
+ const ensurePluginAvailableForCompany = async (_companyId) => { };
399
+ const inCompany = (record, companyId) => Boolean(record && record.companyId === companyId);
400
+ const requireInCompany = (entityName, record, companyId) => {
401
+ if (!inCompany(record, companyId)) {
402
+ throw new Error(`${entityName} not found`);
403
+ }
404
+ return record;
405
+ };
406
+ return {
407
+ config: {
408
+ async get() {
409
+ const configRow = await registry.getConfig(pluginId);
410
+ return configRow?.configJson ?? {};
411
+ },
412
+ },
413
+ state: {
414
+ async get(params) {
415
+ return stateStore.get(pluginId, params.scopeKind, params.stateKey, {
416
+ scopeId: params.scopeId,
417
+ namespace: params.namespace,
418
+ });
419
+ },
420
+ async set(params) {
421
+ await stateStore.set(pluginId, {
422
+ scopeKind: params.scopeKind,
423
+ scopeId: params.scopeId,
424
+ namespace: params.namespace,
425
+ stateKey: params.stateKey,
426
+ value: params.value,
427
+ });
428
+ },
429
+ async delete(params) {
430
+ await stateStore.delete(pluginId, params.scopeKind, params.stateKey, {
431
+ scopeId: params.scopeId,
432
+ namespace: params.namespace,
433
+ });
434
+ },
435
+ },
436
+ entities: {
437
+ async upsert(params) {
438
+ return registry.upsertEntity(pluginId, params);
439
+ },
440
+ async list(params) {
441
+ return registry.listEntities(pluginId, params);
442
+ },
443
+ },
444
+ events: {
445
+ async emit(params) {
446
+ if (params.companyId) {
447
+ await ensurePluginAvailableForCompany(params.companyId);
448
+ }
449
+ await scopedBus.emit(params.name, params.companyId, params.payload);
450
+ },
451
+ async subscribe(params) {
452
+ const handler = async (event) => {
453
+ if (notifyWorker) {
454
+ notifyWorker("onEvent", { event });
455
+ }
456
+ };
457
+ if (params.filter) {
458
+ scopedBus.subscribe(params.eventPattern, params.filter, handler);
459
+ }
460
+ else {
461
+ scopedBus.subscribe(params.eventPattern, handler);
462
+ }
463
+ },
464
+ },
465
+ http: {
466
+ async fetch(params) {
467
+ // SSRF protection: validate protocol whitelist + block private IPs.
468
+ // Resolve once, then connect directly to that IP to prevent DNS rebinding.
469
+ const target = await validateAndResolveFetchUrl(params.url);
470
+ const controller = new AbortController();
471
+ const timeout = setTimeout(() => controller.abort(), PLUGIN_FETCH_TIMEOUT_MS);
472
+ try {
473
+ const init = params.init;
474
+ return await executePinnedHttpRequest(target, init, controller.signal);
475
+ }
476
+ finally {
477
+ clearTimeout(timeout);
478
+ }
479
+ },
480
+ },
481
+ secrets: {
482
+ async resolve(params) {
483
+ return secretsHandler.resolve(params);
484
+ },
485
+ },
486
+ activity: {
487
+ async log(params) {
488
+ const companyId = ensureCompanyId(params.companyId);
489
+ await ensurePluginAvailableForCompany(companyId);
490
+ await logActivity(db, {
491
+ companyId,
492
+ actorType: "system",
493
+ actorId: pluginId,
494
+ action: params.message,
495
+ entityType: params.entityType ?? "plugin",
496
+ entityId: params.entityId ?? pluginId,
497
+ details: params.metadata,
498
+ });
499
+ },
500
+ },
501
+ metrics: {
502
+ async write(params) {
503
+ const safeName = truncStr(String(params.name ?? ""), MAX_METRIC_NAME_LENGTH);
504
+ logger.debug({ pluginId, name: safeName, value: params.value, tags: params.tags }, "Plugin metric write");
505
+ // Persist metrics to plugin_logs via the batch buffer (same path as
506
+ // logger.log) so they benefit from batched writes and are flushed
507
+ // reliably on shutdown. Using level "metric" makes them queryable
508
+ // alongside regular logs via the same API (§26).
509
+ _logBuffer.push({
510
+ db,
511
+ pluginId,
512
+ level: "metric",
513
+ message: safeName,
514
+ meta: sanitiseMeta({ value: params.value, tags: params.tags ?? null }),
515
+ });
516
+ if (_logBuffer.length >= LOG_BUFFER_FLUSH_SIZE) {
517
+ flushPluginLogBuffer().catch((err) => {
518
+ console.error("[plugin-host-services] Triggered metric flush failed:", err);
519
+ });
520
+ }
521
+ },
522
+ },
523
+ logger: {
524
+ async log(params) {
525
+ const { level, meta } = params;
526
+ const safeMessage = truncStr(String(params.message ?? ""), MAX_LOG_MESSAGE_LENGTH);
527
+ const safeMeta = sanitiseMeta(meta);
528
+ const pluginLogger = logger.child({ service: "plugin-worker", pluginId });
529
+ const logFields = {
530
+ ...safeMeta,
531
+ pluginLogLevel: level,
532
+ pluginTimestamp: new Date().toISOString(),
533
+ };
534
+ if (level === "error")
535
+ pluginLogger.error(logFields, `[plugin] ${safeMessage}`);
536
+ else if (level === "warn")
537
+ pluginLogger.warn(logFields, `[plugin] ${safeMessage}`);
538
+ else if (level === "debug")
539
+ pluginLogger.debug(logFields, `[plugin] ${safeMessage}`);
540
+ else
541
+ pluginLogger.info(logFields, `[plugin] ${safeMessage}`);
542
+ // Persist to plugin_logs table via the module-level batch buffer (§26.1).
543
+ // Fire-and-forget — logging should never block the worker.
544
+ _logBuffer.push({
545
+ db,
546
+ pluginId,
547
+ level: level ?? "info",
548
+ message: safeMessage,
549
+ meta: safeMeta,
550
+ });
551
+ if (_logBuffer.length >= LOG_BUFFER_FLUSH_SIZE) {
552
+ flushPluginLogBuffer().catch((err) => {
553
+ console.error("[plugin-host-services] Triggered log flush failed:", err);
554
+ });
555
+ }
556
+ },
557
+ },
558
+ companies: {
559
+ async list(params) {
560
+ return applyWindow((await companies.list()), params);
561
+ },
562
+ async get(params) {
563
+ await ensurePluginAvailableForCompany(params.companyId);
564
+ return (await companies.getById(params.companyId));
565
+ },
566
+ },
567
+ projects: {
568
+ async list(params) {
569
+ const companyId = ensureCompanyId(params.companyId);
570
+ await ensurePluginAvailableForCompany(companyId);
571
+ return applyWindow((await projects.list(companyId)), params);
572
+ },
573
+ async get(params) {
574
+ const companyId = ensureCompanyId(params.companyId);
575
+ await ensurePluginAvailableForCompany(companyId);
576
+ const project = await projects.getById(params.projectId);
577
+ return (inCompany(project, companyId) ? project : null);
578
+ },
579
+ async listWorkspaces(params) {
580
+ const companyId = ensureCompanyId(params.companyId);
581
+ await ensurePluginAvailableForCompany(companyId);
582
+ const project = await projects.getById(params.projectId);
583
+ if (!inCompany(project, companyId))
584
+ return [];
585
+ const rows = await projects.listWorkspaces(params.projectId);
586
+ return rows.map((row) => {
587
+ const path = sanitizeWorkspacePath(row.cwd);
588
+ const name = sanitizeWorkspaceName(row.name, path);
589
+ return {
590
+ id: row.id,
591
+ projectId: row.projectId,
592
+ name,
593
+ path,
594
+ isPrimary: row.isPrimary,
595
+ createdAt: row.createdAt.toISOString(),
596
+ updatedAt: row.updatedAt.toISOString(),
597
+ };
598
+ });
599
+ },
600
+ async getPrimaryWorkspace(params) {
601
+ const companyId = ensureCompanyId(params.companyId);
602
+ await ensurePluginAvailableForCompany(companyId);
603
+ const project = await projects.getById(params.projectId);
604
+ if (!inCompany(project, companyId))
605
+ return null;
606
+ const row = project.primaryWorkspace;
607
+ const path = sanitizeWorkspacePath(project.codebase.effectiveLocalFolder);
608
+ const name = sanitizeWorkspaceName(row?.name ?? project.name, path);
609
+ return {
610
+ id: row?.id ?? `${project.id}:managed`,
611
+ projectId: project.id,
612
+ name,
613
+ path,
614
+ isPrimary: true,
615
+ createdAt: (row?.createdAt ?? project.createdAt).toISOString(),
616
+ updatedAt: (row?.updatedAt ?? project.updatedAt).toISOString(),
617
+ };
618
+ },
619
+ async getWorkspaceForIssue(params) {
620
+ const companyId = ensureCompanyId(params.companyId);
621
+ await ensurePluginAvailableForCompany(companyId);
622
+ const issue = await issues.getById(params.issueId);
623
+ if (!inCompany(issue, companyId))
624
+ return null;
625
+ const projectId = issue.projectId;
626
+ if (!projectId)
627
+ return null;
628
+ const project = await projects.getById(projectId);
629
+ if (!inCompany(project, companyId))
630
+ return null;
631
+ const row = project.primaryWorkspace;
632
+ const path = sanitizeWorkspacePath(project.codebase.effectiveLocalFolder);
633
+ const name = sanitizeWorkspaceName(row?.name ?? project.name, path);
634
+ return {
635
+ id: row?.id ?? `${project.id}:managed`,
636
+ projectId: project.id,
637
+ name,
638
+ path,
639
+ isPrimary: true,
640
+ createdAt: (row?.createdAt ?? project.createdAt).toISOString(),
641
+ updatedAt: (row?.updatedAt ?? project.updatedAt).toISOString(),
642
+ };
643
+ },
644
+ },
645
+ issues: {
646
+ async list(params) {
647
+ const companyId = ensureCompanyId(params.companyId);
648
+ await ensurePluginAvailableForCompany(companyId);
649
+ return applyWindow((await issues.list(companyId, params)), params);
650
+ },
651
+ async get(params) {
652
+ const companyId = ensureCompanyId(params.companyId);
653
+ await ensurePluginAvailableForCompany(companyId);
654
+ const issue = await issues.getById(params.issueId);
655
+ return (inCompany(issue, companyId) ? issue : null);
656
+ },
657
+ async create(params) {
658
+ const companyId = ensureCompanyId(params.companyId);
659
+ await ensurePluginAvailableForCompany(companyId);
660
+ return (await issues.create(companyId, params));
661
+ },
662
+ async update(params) {
663
+ const companyId = ensureCompanyId(params.companyId);
664
+ await ensurePluginAvailableForCompany(companyId);
665
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
666
+ return (await issues.update(params.issueId, params.patch));
667
+ },
668
+ async listComments(params) {
669
+ const companyId = ensureCompanyId(params.companyId);
670
+ await ensurePluginAvailableForCompany(companyId);
671
+ if (!inCompany(await issues.getById(params.issueId), companyId))
672
+ return [];
673
+ return (await issues.listComments(params.issueId));
674
+ },
675
+ async createComment(params) {
676
+ const companyId = ensureCompanyId(params.companyId);
677
+ await ensurePluginAvailableForCompany(companyId);
678
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
679
+ return (await issues.addComment(params.issueId, params.body, {}));
680
+ },
681
+ },
682
+ issueDocuments: {
683
+ async list(params) {
684
+ const companyId = ensureCompanyId(params.companyId);
685
+ await ensurePluginAvailableForCompany(companyId);
686
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
687
+ const rows = await documents.listIssueDocuments(params.issueId);
688
+ return rows;
689
+ },
690
+ async get(params) {
691
+ const companyId = ensureCompanyId(params.companyId);
692
+ await ensurePluginAvailableForCompany(companyId);
693
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
694
+ const doc = await documents.getIssueDocumentByKey(params.issueId, params.key);
695
+ return (doc ?? null);
696
+ },
697
+ async upsert(params) {
698
+ const companyId = ensureCompanyId(params.companyId);
699
+ await ensurePluginAvailableForCompany(companyId);
700
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
701
+ const result = await documents.upsertIssueDocument({
702
+ issueId: params.issueId,
703
+ key: params.key,
704
+ body: params.body,
705
+ title: params.title ?? null,
706
+ format: params.format ?? "markdown",
707
+ changeSummary: params.changeSummary ?? null,
708
+ });
709
+ return result.document;
710
+ },
711
+ async delete(params) {
712
+ const companyId = ensureCompanyId(params.companyId);
713
+ await ensurePluginAvailableForCompany(companyId);
714
+ requireInCompany("Issue", await issues.getById(params.issueId), companyId);
715
+ await documents.deleteIssueDocument(params.issueId, params.key);
716
+ },
717
+ },
718
+ agents: {
719
+ async list(params) {
720
+ const companyId = ensureCompanyId(params.companyId);
721
+ await ensurePluginAvailableForCompany(companyId);
722
+ const rows = await agents.list(companyId);
723
+ return applyWindow(rows.filter((agent) => !params.status || agent.status === params.status), params);
724
+ },
725
+ async get(params) {
726
+ const companyId = ensureCompanyId(params.companyId);
727
+ await ensurePluginAvailableForCompany(companyId);
728
+ const agent = await agents.getById(params.agentId);
729
+ return (inCompany(agent, companyId) ? agent : null);
730
+ },
731
+ async pause(params) {
732
+ const companyId = ensureCompanyId(params.companyId);
733
+ await ensurePluginAvailableForCompany(companyId);
734
+ const agent = await agents.getById(params.agentId);
735
+ requireInCompany("Agent", agent, companyId);
736
+ return (await agents.pause(params.agentId));
737
+ },
738
+ async resume(params) {
739
+ const companyId = ensureCompanyId(params.companyId);
740
+ await ensurePluginAvailableForCompany(companyId);
741
+ const agent = await agents.getById(params.agentId);
742
+ requireInCompany("Agent", agent, companyId);
743
+ return (await agents.resume(params.agentId));
744
+ },
745
+ async invoke(params) {
746
+ const companyId = ensureCompanyId(params.companyId);
747
+ await ensurePluginAvailableForCompany(companyId);
748
+ const agent = await agents.getById(params.agentId);
749
+ requireInCompany("Agent", agent, companyId);
750
+ const run = await heartbeat.wakeup(params.agentId, {
751
+ source: "automation",
752
+ triggerDetail: "system",
753
+ reason: params.reason ?? null,
754
+ payload: { prompt: params.prompt },
755
+ requestedByActorType: "system",
756
+ requestedByActorId: pluginId,
757
+ });
758
+ if (!run)
759
+ throw new Error("Agent wakeup was skipped by heartbeat policy");
760
+ return { runId: run.id };
761
+ },
762
+ },
763
+ goals: {
764
+ async list(params) {
765
+ const companyId = ensureCompanyId(params.companyId);
766
+ await ensurePluginAvailableForCompany(companyId);
767
+ const rows = await goals.list(companyId);
768
+ return applyWindow(rows.filter((goal) => (!params.level || goal.level === params.level) &&
769
+ (!params.status || goal.status === params.status)), params);
770
+ },
771
+ async get(params) {
772
+ const companyId = ensureCompanyId(params.companyId);
773
+ await ensurePluginAvailableForCompany(companyId);
774
+ const goal = await goals.getById(params.goalId);
775
+ return (inCompany(goal, companyId) ? goal : null);
776
+ },
777
+ async create(params) {
778
+ const companyId = ensureCompanyId(params.companyId);
779
+ await ensurePluginAvailableForCompany(companyId);
780
+ return (await goals.create(companyId, {
781
+ title: params.title,
782
+ description: params.description,
783
+ level: params.level,
784
+ status: params.status,
785
+ parentId: params.parentId,
786
+ ownerAgentId: params.ownerAgentId,
787
+ }));
788
+ },
789
+ async update(params) {
790
+ const companyId = ensureCompanyId(params.companyId);
791
+ await ensurePluginAvailableForCompany(companyId);
792
+ requireInCompany("Goal", await goals.getById(params.goalId), companyId);
793
+ return (await goals.update(params.goalId, params.patch));
794
+ },
795
+ },
796
+ agentSessions: {
797
+ async create(params) {
798
+ const companyId = ensureCompanyId(params.companyId);
799
+ await ensurePluginAvailableForCompany(companyId);
800
+ const agent = await agents.getById(params.agentId);
801
+ requireInCompany("Agent", agent, companyId);
802
+ const taskKey = params.taskKey ?? `plugin:${pluginKey}:session:${randomUUID()}`;
803
+ const row = await db
804
+ .insert(agentTaskSessionsTable)
805
+ .values({
806
+ companyId,
807
+ agentId: params.agentId,
808
+ adapterType: agent.adapterType,
809
+ taskKey,
810
+ sessionParamsJson: null,
811
+ sessionDisplayId: null,
812
+ lastRunId: null,
813
+ lastError: null,
814
+ })
815
+ .returning()
816
+ .then((rows) => rows[0]);
817
+ return {
818
+ sessionId: row.id,
819
+ agentId: params.agentId,
820
+ companyId,
821
+ status: "active",
822
+ createdAt: row.createdAt.toISOString(),
823
+ };
824
+ },
825
+ async list(params) {
826
+ const companyId = ensureCompanyId(params.companyId);
827
+ await ensurePluginAvailableForCompany(companyId);
828
+ const rows = await db
829
+ .select()
830
+ .from(agentTaskSessionsTable)
831
+ .where(and(eq(agentTaskSessionsTable.agentId, params.agentId), eq(agentTaskSessionsTable.companyId, companyId), like(agentTaskSessionsTable.taskKey, `plugin:${pluginKey}:session:%`)))
832
+ .orderBy(desc(agentTaskSessionsTable.createdAt));
833
+ return rows.map((row) => ({
834
+ sessionId: row.id,
835
+ agentId: row.agentId,
836
+ companyId: row.companyId,
837
+ status: "active",
838
+ createdAt: row.createdAt.toISOString(),
839
+ }));
840
+ },
841
+ async sendMessage(params) {
842
+ if (disposed) {
843
+ throw new Error("Host services have been disposed");
844
+ }
845
+ const companyId = ensureCompanyId(params.companyId);
846
+ await ensurePluginAvailableForCompany(companyId);
847
+ // Verify session exists and belongs to this plugin
848
+ const session = await db
849
+ .select()
850
+ .from(agentTaskSessionsTable)
851
+ .where(and(eq(agentTaskSessionsTable.id, params.sessionId), eq(agentTaskSessionsTable.companyId, companyId), like(agentTaskSessionsTable.taskKey, `plugin:${pluginKey}:session:%`)))
852
+ .then((rows) => rows[0] ?? null);
853
+ if (!session)
854
+ throw new Error(`Session not found: ${params.sessionId}`);
855
+ const run = await heartbeat.wakeup(session.agentId, {
856
+ source: "automation",
857
+ triggerDetail: "system",
858
+ reason: params.reason ?? null,
859
+ payload: { prompt: params.prompt },
860
+ contextSnapshot: {
861
+ taskKey: session.taskKey,
862
+ wakeSource: "automation",
863
+ wakeTriggerDetail: "system",
864
+ },
865
+ requestedByActorType: "system",
866
+ requestedByActorId: pluginId,
867
+ });
868
+ if (!run)
869
+ throw new Error("Agent wakeup was skipped by heartbeat policy");
870
+ // Subscribe to live events and forward to the plugin worker as notifications.
871
+ // Track the subscription so it can be cleaned up on dispose() if the run
872
+ // never reaches a terminal status (hang, crash, network partition).
873
+ if (notifyWorker) {
874
+ const TERMINAL_STATUSES = new Set(["succeeded", "failed", "cancelled", "timed_out"]);
875
+ const cleanup = () => {
876
+ unsubscribe();
877
+ clearTimeout(timeoutTimer);
878
+ activeSubscriptions.delete(entry);
879
+ };
880
+ const unsubscribe = subscribeCompanyLiveEvents(companyId, (event) => {
881
+ const payload = event.payload;
882
+ if (!payload || payload.runId !== run.id)
883
+ return;
884
+ if (event.type === "heartbeat.run.log" || event.type === "heartbeat.run.event") {
885
+ notifyWorker("agents.sessions.event", {
886
+ sessionId: params.sessionId,
887
+ runId: run.id,
888
+ seq: payload.seq ?? 0,
889
+ eventType: "chunk",
890
+ stream: payload.stream ?? null,
891
+ message: payload.chunk ?? payload.message ?? null,
892
+ payload: payload,
893
+ });
894
+ }
895
+ else if (event.type === "heartbeat.run.status") {
896
+ const status = payload.status;
897
+ if (TERMINAL_STATUSES.has(status)) {
898
+ notifyWorker("agents.sessions.event", {
899
+ sessionId: params.sessionId,
900
+ runId: run.id,
901
+ seq: 0,
902
+ eventType: status === "succeeded" ? "done" : "error",
903
+ stream: "system",
904
+ message: status === "succeeded" ? "Run completed" : `Run ${status}`,
905
+ payload: payload,
906
+ });
907
+ cleanup();
908
+ }
909
+ else {
910
+ notifyWorker("agents.sessions.event", {
911
+ sessionId: params.sessionId,
912
+ runId: run.id,
913
+ seq: 0,
914
+ eventType: "status",
915
+ stream: "system",
916
+ message: `Run status: ${status}`,
917
+ payload: payload,
918
+ });
919
+ }
920
+ }
921
+ });
922
+ // Safety-net timeout: if the run never reaches a terminal status,
923
+ // force-cleanup the subscription to prevent unbounded leaks.
924
+ const timeoutTimer = setTimeout(() => {
925
+ logger.warn({ pluginId, pluginKey, runId: run.id }, "session event subscription timed out — forcing cleanup");
926
+ cleanup();
927
+ }, SESSION_EVENT_SUBSCRIPTION_TIMEOUT_MS);
928
+ const entry = { unsubscribe, timer: timeoutTimer };
929
+ activeSubscriptions.add(entry);
930
+ }
931
+ return { runId: run.id };
932
+ },
933
+ async close(params) {
934
+ const companyId = ensureCompanyId(params.companyId);
935
+ await ensurePluginAvailableForCompany(companyId);
936
+ const deleted = await db
937
+ .delete(agentTaskSessionsTable)
938
+ .where(and(eq(agentTaskSessionsTable.id, params.sessionId), eq(agentTaskSessionsTable.companyId, companyId), like(agentTaskSessionsTable.taskKey, `plugin:${pluginKey}:session:%`)))
939
+ .returning()
940
+ .then((rows) => rows.length);
941
+ if (deleted === 0)
942
+ throw new Error(`Session not found: ${params.sessionId}`);
943
+ },
944
+ },
945
+ /**
946
+ * Clean up all active session event subscriptions and flush any buffered
947
+ * log entries. Must be called when the plugin worker is stopped, crashed,
948
+ * or unloaded to prevent leaked listeners and lost log entries.
949
+ */
950
+ dispose() {
951
+ disposed = true;
952
+ // Clear event bus subscriptions to prevent accumulation on worker restart.
953
+ // Without this, each crash/restart cycle adds duplicate subscriptions.
954
+ scopedBus.clear();
955
+ // Snapshot to avoid iterator invalidation from concurrent sendMessage() calls
956
+ const snapshot = Array.from(activeSubscriptions);
957
+ activeSubscriptions.clear();
958
+ for (const entry of snapshot) {
959
+ clearTimeout(entry.timer);
960
+ entry.unsubscribe();
961
+ }
962
+ // Flush any buffered log entries synchronously-as-possible on dispose.
963
+ flushPluginLogBuffer().catch((err) => {
964
+ console.error("[plugin-host-services] dispose() log flush failed:", err);
965
+ });
966
+ },
967
+ };
968
+ }
969
+ //# sourceMappingURL=plugin-host-services.js.map