@growthub/cli 0.3.4 → 0.3.5

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 (1068) hide show
  1. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts +2 -0
  2. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.d.ts.map +1 -0
  3. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js +94 -0
  4. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/format-event.js.map +1 -0
  5. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts +2 -0
  6. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.d.ts.map +1 -0
  7. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js +2 -0
  8. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/index.js.map +1 -0
  9. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts +3 -0
  10. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.d.ts.map +1 -0
  11. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js +106 -0
  12. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/cli/quota-probe.js.map +1 -0
  13. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts +8 -0
  14. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.d.ts.map +1 -0
  15. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js +36 -0
  16. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/index.js.map +1 -0
  17. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts +18 -0
  18. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.d.ts.map +1 -0
  19. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js +453 -0
  20. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/execute.js.map +1 -0
  21. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts +7 -0
  22. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.d.ts.map +1 -0
  23. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js +56 -0
  24. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/index.js.map +1 -0
  25. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts +22 -0
  26. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.d.ts.map +1 -0
  27. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js +158 -0
  28. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/parse.js.map +1 -0
  29. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts +20 -0
  30. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.d.ts.map +1 -0
  31. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js +477 -0
  32. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/quota.js.map +1 -0
  33. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts +3 -0
  34. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.d.ts.map +1 -0
  35. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js +201 -0
  36. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/server/test.js.map +1 -0
  37. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts +3 -0
  38. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.d.ts.map +1 -0
  39. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js +115 -0
  40. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/build-config.js.map +1 -0
  41. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts +3 -0
  42. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.d.ts.map +1 -0
  43. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js +3 -0
  44. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/index.js.map +1 -0
  45. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts +3 -0
  46. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.d.ts.map +1 -0
  47. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js +149 -0
  48. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/dist/ui/parse-stdout.js.map +1 -0
  49. package/dist/runtime/server/node_modules/@paperclipai/adapter-claude-local/package.json +63 -0
  50. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts +2 -0
  51. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.d.ts.map +1 -0
  52. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js +213 -0
  53. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/format-event.js.map +1 -0
  54. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts +2 -0
  55. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.d.ts.map +1 -0
  56. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js +2 -0
  57. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/index.js.map +1 -0
  58. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts +3 -0
  59. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.d.ts.map +1 -0
  60. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js +97 -0
  61. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/cli/quota-probe.js.map +1 -0
  62. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts +10 -0
  63. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.d.ts.map +1 -0
  64. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js +45 -0
  65. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/index.js.map +1 -0
  66. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts +5 -0
  67. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.d.ts.map +1 -0
  68. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js +86 -0
  69. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/codex-home.js.map +1 -0
  70. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts +11 -0
  71. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.d.ts.map +1 -0
  72. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js +451 -0
  73. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/execute.js.map +1 -0
  74. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts +7 -0
  75. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.d.ts.map +1 -0
  76. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js +56 -0
  77. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/index.js.map +1 -0
  78. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts +12 -0
  79. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.d.ts.map +1 -0
  80. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js +67 -0
  81. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/parse.js.map +1 -0
  82. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts +64 -0
  83. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.d.ts.map +1 -0
  84. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js +425 -0
  85. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/quota.js.map +1 -0
  86. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts +3 -0
  87. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.d.ts.map +1 -0
  88. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js +194 -0
  89. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/server/test.js.map +1 -0
  90. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts +3 -0
  91. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.d.ts.map +1 -0
  92. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js +116 -0
  93. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/build-config.js.map +1 -0
  94. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts +3 -0
  95. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.d.ts.map +1 -0
  96. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js +3 -0
  97. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/index.js.map +1 -0
  98. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts +3 -0
  99. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.d.ts.map +1 -0
  100. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js +233 -0
  101. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/dist/ui/parse-stdout.js.map +1 -0
  102. package/dist/runtime/server/node_modules/@paperclipai/adapter-codex-local/package.json +62 -0
  103. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts +2 -0
  104. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.d.ts.map +1 -0
  105. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js +296 -0
  106. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/format-event.js.map +1 -0
  107. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts +2 -0
  108. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.d.ts.map +1 -0
  109. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js +2 -0
  110. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/cli/index.js.map +1 -0
  111. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts +9 -0
  112. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.d.ts.map +1 -0
  113. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js +81 -0
  114. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/index.js.map +1 -0
  115. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts +14 -0
  116. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.d.ts.map +1 -0
  117. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js +416 -0
  118. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/execute.js.map +1 -0
  119. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts +6 -0
  120. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.d.ts.map +1 -0
  121. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js +61 -0
  122. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/index.js.map +1 -0
  123. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts +13 -0
  124. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.d.ts.map +1 -0
  125. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js +139 -0
  126. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/parse.js.map +1 -0
  127. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts +3 -0
  128. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.d.ts.map +1 -0
  129. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js +188 -0
  130. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/server/test.js.map +1 -0
  131. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts +5 -0
  132. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.d.ts.map +1 -0
  133. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js +13 -0
  134. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/stream.js.map +1 -0
  135. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts +2 -0
  136. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.d.ts.map +1 -0
  137. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js +7 -0
  138. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/shared/trust.js.map +1 -0
  139. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts +3 -0
  140. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.d.ts.map +1 -0
  141. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js +92 -0
  142. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/build-config.js.map +1 -0
  143. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts +3 -0
  144. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.d.ts.map +1 -0
  145. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js +3 -0
  146. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/index.js.map +1 -0
  147. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts +3 -0
  148. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.d.ts.map +1 -0
  149. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js +373 -0
  150. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/dist/ui/parse-stdout.js.map +1 -0
  151. package/dist/runtime/server/node_modules/@paperclipai/adapter-cursor-local/package.json +61 -0
  152. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts +2 -0
  153. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.d.ts.map +1 -0
  154. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js +198 -0
  155. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/format-event.js.map +1 -0
  156. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts +2 -0
  157. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.d.ts.map +1 -0
  158. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js +2 -0
  159. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/cli/index.js.map +1 -0
  160. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts +9 -0
  161. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.d.ts.map +1 -0
  162. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js +46 -0
  163. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/index.js.map +1 -0
  164. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts +3 -0
  165. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.d.ts.map +1 -0
  166. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js +364 -0
  167. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/execute.js.map +1 -0
  168. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts +6 -0
  169. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.d.ts.map +1 -0
  170. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js +61 -0
  171. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/index.js.map +1 -0
  172. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts +31 -0
  173. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.d.ts.map +1 -0
  174. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js +227 -0
  175. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/parse.js.map +1 -0
  176. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts +3 -0
  177. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.d.ts.map +1 -0
  178. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js +203 -0
  179. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/test.js.map +1 -0
  180. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts +2 -0
  181. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.d.ts.map +1 -0
  182. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js +7 -0
  183. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/server/utils.js.map +1 -0
  184. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts +3 -0
  185. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.d.ts.map +1 -0
  186. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js +84 -0
  187. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/build-config.js.map +1 -0
  188. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts +3 -0
  189. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.d.ts.map +1 -0
  190. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js +3 -0
  191. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/index.js.map +1 -0
  192. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts +3 -0
  193. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.d.ts.map +1 -0
  194. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js +247 -0
  195. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/dist/ui/parse-stdout.js.map +1 -0
  196. package/dist/runtime/server/node_modules/@paperclipai/adapter-gemini-local/package.json +61 -0
  197. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts +2 -0
  198. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.d.ts.map +1 -0
  199. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js +20 -0
  200. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/format-event.js.map +1 -0
  201. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts +2 -0
  202. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.d.ts.map +1 -0
  203. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js +2 -0
  204. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/cli/index.js.map +1 -0
  205. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts +8 -0
  206. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.d.ts.map +1 -0
  207. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js +53 -0
  208. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/index.js.map +1 -0
  209. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts +3 -0
  210. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.d.ts.map +1 -0
  211. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js +1146 -0
  212. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/execute.js.map +1 -0
  213. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts +3 -0
  214. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.d.ts.map +1 -0
  215. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js +3 -0
  216. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/index.js.map +1 -0
  217. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts +3 -0
  218. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.d.ts.map +1 -0
  219. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js +290 -0
  220. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/server/test.js.map +1 -0
  221. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts +5 -0
  222. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.d.ts.map +1 -0
  223. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js +13 -0
  224. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/shared/stream.js.map +1 -0
  225. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts +3 -0
  226. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.d.ts.map +1 -0
  227. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js +33 -0
  228. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/build-config.js.map +1 -0
  229. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts +3 -0
  230. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.d.ts.map +1 -0
  231. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js +3 -0
  232. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/index.js.map +1 -0
  233. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts +3 -0
  234. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.d.ts.map +1 -0
  235. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js +64 -0
  236. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/dist/ui/parse-stdout.js.map +1 -0
  237. package/dist/runtime/server/node_modules/@paperclipai/adapter-openclaw-gateway/package.json +62 -0
  238. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts +2 -0
  239. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.d.ts.map +1 -0
  240. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js +115 -0
  241. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/format-event.js.map +1 -0
  242. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts +2 -0
  243. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.d.ts.map +1 -0
  244. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js +2 -0
  245. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/cli/index.js.map +1 -0
  246. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts +8 -0
  247. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.d.ts.map +1 -0
  248. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js +39 -0
  249. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/index.js.map +1 -0
  250. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts +3 -0
  251. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.d.ts.map +1 -0
  252. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js +337 -0
  253. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/execute.js.map +1 -0
  254. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts +7 -0
  255. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.d.ts.map +1 -0
  256. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js +62 -0
  257. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/index.js.map +1 -0
  258. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts +20 -0
  259. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.d.ts.map +1 -0
  260. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js +165 -0
  261. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.js.map +1 -0
  262. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts +2 -0
  263. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.d.ts.map +1 -0
  264. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js +22 -0
  265. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/models.test.js.map +1 -0
  266. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts +13 -0
  267. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.d.ts.map +1 -0
  268. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js +97 -0
  269. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.js.map +1 -0
  270. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts +2 -0
  271. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.d.ts.map +1 -0
  272. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js +48 -0
  273. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/parse.test.js.map +1 -0
  274. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts +3 -0
  275. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.d.ts.map +1 -0
  276. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js +300 -0
  277. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/server/test.js.map +1 -0
  278. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts +3 -0
  279. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.d.ts.map +1 -0
  280. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js +87 -0
  281. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/build-config.js.map +1 -0
  282. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts +3 -0
  283. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.d.ts.map +1 -0
  284. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js +3 -0
  285. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/index.js.map +1 -0
  286. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts +3 -0
  287. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.d.ts.map +1 -0
  288. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js +141 -0
  289. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/dist/ui/parse-stdout.js.map +1 -0
  290. package/dist/runtime/server/node_modules/@paperclipai/adapter-opencode-local/package.json +61 -0
  291. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts +2 -0
  292. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.d.ts.map +1 -0
  293. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js +99 -0
  294. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/format-event.js.map +1 -0
  295. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts +2 -0
  296. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.d.ts.map +1 -0
  297. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js +2 -0
  298. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/cli/index.js.map +1 -0
  299. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts +8 -0
  300. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.d.ts.map +1 -0
  301. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js +39 -0
  302. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/index.js.map +1 -0
  303. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts +3 -0
  304. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.d.ts.map +1 -0
  305. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js +405 -0
  306. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/execute.js.map +1 -0
  307. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts +7 -0
  308. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.d.ts.map +1 -0
  309. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js +50 -0
  310. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/index.js.map +1 -0
  311. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts +20 -0
  312. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.d.ts.map +1 -0
  313. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js +161 -0
  314. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.js.map +1 -0
  315. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts +2 -0
  316. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.d.ts.map +1 -0
  317. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js +22 -0
  318. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/models.test.js.map +1 -0
  319. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts +23 -0
  320. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.d.ts.map +1 -0
  321. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js +180 -0
  322. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.js.map +1 -0
  323. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts +2 -0
  324. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.d.ts.map +1 -0
  325. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js +206 -0
  326. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/parse.test.js.map +1 -0
  327. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts +3 -0
  328. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.d.ts.map +1 -0
  329. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js +257 -0
  330. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/server/test.js.map +1 -0
  331. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts +3 -0
  332. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.d.ts.map +1 -0
  333. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js +82 -0
  334. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/build-config.js.map +1 -0
  335. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts +3 -0
  336. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.d.ts.map +1 -0
  337. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js +3 -0
  338. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/index.js.map +1 -0
  339. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts +3 -0
  340. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.d.ts.map +1 -0
  341. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js +163 -0
  342. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/dist/ui/parse-stdout.js.map +1 -0
  343. package/dist/runtime/server/node_modules/@paperclipai/adapter-pi-local/package.json +60 -0
  344. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts +2 -0
  345. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.d.ts.map +1 -0
  346. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js +16 -0
  347. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.js.map +1 -0
  348. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts +2 -0
  349. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.d.ts.map +1 -0
  350. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js +14 -0
  351. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/billing.test.js.map +1 -0
  352. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts +6 -0
  353. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.d.ts.map +1 -0
  354. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js +4 -0
  355. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/index.js.map +1 -0
  356. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts +6 -0
  357. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.d.ts.map +1 -0
  358. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js +75 -0
  359. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/log-redaction.js.map +1 -0
  360. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts +62 -0
  361. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.d.ts.map +1 -0
  362. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js +419 -0
  363. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/server-utils.js.map +1 -0
  364. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts +25 -0
  365. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.d.ts.map +1 -0
  366. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js +142 -0
  367. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/session-compaction.js.map +1 -0
  368. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts +290 -0
  369. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.d.ts.map +1 -0
  370. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js +5 -0
  371. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/dist/types.js.map +1 -0
  372. package/dist/runtime/server/node_modules/@paperclipai/adapter-utils/package.json +46 -0
  373. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts +24 -0
  374. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.d.ts.map +1 -0
  375. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js +448 -0
  376. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup-lib.js.map +1 -0
  377. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts +2 -0
  378. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.d.ts.map +1 -0
  379. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js +103 -0
  380. package/dist/runtime/server/node_modules/@paperclipai/db/dist/backup.js.map +1 -0
  381. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts +43 -0
  382. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.d.ts.map +1 -0
  383. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js +574 -0
  384. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.js.map +1 -0
  385. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts +2 -0
  386. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.d.ts.map +1 -0
  387. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js +117 -0
  388. package/dist/runtime/server/node_modules/@paperclipai/db/dist/client.test.js.map +1 -0
  389. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts +4 -0
  390. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.d.ts.map +1 -0
  391. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js +4 -0
  392. package/dist/runtime/server/node_modules/@paperclipai/db/dist/index.js.map +1 -0
  393. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts +2 -0
  394. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.d.ts.map +1 -0
  395. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js +25 -0
  396. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrate.js.map +1 -0
  397. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts +7 -0
  398. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.d.ts.map +1 -0
  399. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js +163 -0
  400. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-runtime.js.map +1 -0
  401. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts +2 -0
  402. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.d.ts.map +1 -0
  403. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js +55 -0
  404. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migration-status.js.map +1 -0
  405. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0000_mature_masked_marvel.sql +208 -0
  406. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0001_fast_northstar.sql +87 -0
  407. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0002_big_zaladane.sql +1 -0
  408. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0003_shallow_quentin_quire.sql +5 -0
  409. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0004_issue_identifiers.sql +28 -0
  410. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0005_chief_luke_cage.sql +19 -0
  411. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0006_overjoyed_mister_sinister.sql +36 -0
  412. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0007_new_quentin_quire.sql +20 -0
  413. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0008_amused_zzzax.sql +1 -0
  414. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0009_fast_jackal.sql +36 -0
  415. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0010_stale_justin_hammer.sql +37 -0
  416. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0011_windy_corsair.sql +18 -0
  417. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0012_perpetual_ser_duncan.sql +2 -0
  418. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0013_dashing_wasp.sql +4 -0
  419. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0014_many_mikhail_rasputin.sql +135 -0
  420. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0015_project_color_archived.sql +2 -0
  421. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0016_agent_icon.sql +1 -0
  422. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0017_tiresome_gabe_jones.sql +51 -0
  423. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0018_flat_sleepwalker.sql +26 -0
  424. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0019_public_victor_mancha.sql +18 -0
  425. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0020_white_anita_blake.sql +1 -0
  426. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0021_chief_vindicator.sql +1 -0
  427. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0022_company_brand_color.sql +1 -0
  428. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0023_fair_lethal_legion.sql +3 -0
  429. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0024_far_beast.sql +2 -0
  430. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0025_nasty_salo.sql +15 -0
  431. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0026_lying_pete_wisdom.sql +39 -0
  432. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0027_tranquil_tenebrous.sql +2 -0
  433. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0028_harsh_goliath.sql +54 -0
  434. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0029_plugin_tables.sql +177 -0
  435. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0030_rich_magneto.sql +12 -0
  436. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0031_zippy_magma.sql +51 -0
  437. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0032_pretty_doctor_octopus.sql +102 -0
  438. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0033_shiny_black_tarantula.sql +2 -0
  439. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0034_fat_dormammu.sql +2 -0
  440. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0035_marvelous_satana.sql +91 -0
  441. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0036_cheerful_nitro.sql +9 -0
  442. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0037_friendly_eddie_brock.sql +29 -0
  443. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0038_careless_iron_monger.sql +5 -0
  444. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0039_tickets.sql +25 -0
  445. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/0040_ticket_meta.sql +3 -0
  446. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0000_snapshot.json +1743 -0
  447. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0001_snapshot.json +2441 -0
  448. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0002_snapshot.json +2454 -0
  449. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0003_snapshot.json +2502 -0
  450. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0005_snapshot.json +2719 -0
  451. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0006_snapshot.json +3048 -0
  452. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0007_snapshot.json +3258 -0
  453. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0008_snapshot.json +3264 -0
  454. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0009_snapshot.json +3587 -0
  455. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0010_snapshot.json +3929 -0
  456. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0011_snapshot.json +4068 -0
  457. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0012_snapshot.json +4087 -0
  458. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0013_snapshot.json +4118 -0
  459. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0014_snapshot.json +5187 -0
  460. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0017_snapshot.json +5215 -0
  461. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0018_snapshot.json +5450 -0
  462. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0019_snapshot.json +5603 -0
  463. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0020_snapshot.json +5603 -0
  464. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0021_snapshot.json +5609 -0
  465. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0023_snapshot.json +5633 -0
  466. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0024_snapshot.json +5693 -0
  467. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0025_snapshot.json +5849 -0
  468. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0027_snapshot.json +6205 -0
  469. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0028_snapshot.json +6710 -0
  470. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0029_snapshot.json +7899 -0
  471. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0030_snapshot.json +8003 -0
  472. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0031_snapshot.json +7242 -0
  473. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0032_snapshot.json +7733 -0
  474. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0033_snapshot.json +9038 -0
  475. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0034_snapshot.json +9039 -0
  476. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0035_snapshot.json +9959 -0
  477. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0036_snapshot.json +10023 -0
  478. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0037_snapshot.json +10263 -0
  479. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/0038_snapshot.json +10301 -0
  480. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/meta/_journal.json +293 -0
  481. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0000_mature_masked_marvel.sql +208 -0
  482. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0001_fast_northstar.sql +87 -0
  483. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0002_big_zaladane.sql +1 -0
  484. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0003_shallow_quentin_quire.sql +5 -0
  485. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0004_issue_identifiers.sql +28 -0
  486. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0005_chief_luke_cage.sql +19 -0
  487. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0006_overjoyed_mister_sinister.sql +36 -0
  488. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0007_new_quentin_quire.sql +20 -0
  489. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0008_amused_zzzax.sql +1 -0
  490. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0009_fast_jackal.sql +36 -0
  491. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0010_stale_justin_hammer.sql +37 -0
  492. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0011_windy_corsair.sql +18 -0
  493. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0012_perpetual_ser_duncan.sql +2 -0
  494. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0013_dashing_wasp.sql +4 -0
  495. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0014_many_mikhail_rasputin.sql +135 -0
  496. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0015_project_color_archived.sql +2 -0
  497. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0016_agent_icon.sql +1 -0
  498. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0017_tiresome_gabe_jones.sql +51 -0
  499. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0018_flat_sleepwalker.sql +26 -0
  500. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0019_public_victor_mancha.sql +18 -0
  501. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0020_white_anita_blake.sql +1 -0
  502. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0021_chief_vindicator.sql +1 -0
  503. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0022_company_brand_color.sql +1 -0
  504. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0023_fair_lethal_legion.sql +3 -0
  505. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0024_far_beast.sql +2 -0
  506. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0025_nasty_salo.sql +15 -0
  507. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0026_lying_pete_wisdom.sql +39 -0
  508. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0027_tranquil_tenebrous.sql +2 -0
  509. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0028_harsh_goliath.sql +54 -0
  510. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0029_plugin_tables.sql +177 -0
  511. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0030_rich_magneto.sql +12 -0
  512. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0031_zippy_magma.sql +51 -0
  513. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0032_pretty_doctor_octopus.sql +102 -0
  514. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0033_shiny_black_tarantula.sql +2 -0
  515. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0034_fat_dormammu.sql +2 -0
  516. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0035_marvelous_satana.sql +91 -0
  517. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0036_cheerful_nitro.sql +9 -0
  518. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0037_friendly_eddie_brock.sql +29 -0
  519. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0038_careless_iron_monger.sql +5 -0
  520. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0039_tickets.sql +25 -0
  521. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/0040_ticket_meta.sql +3 -0
  522. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0000_snapshot.json +1743 -0
  523. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0001_snapshot.json +2441 -0
  524. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0002_snapshot.json +2454 -0
  525. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0003_snapshot.json +2502 -0
  526. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0005_snapshot.json +2719 -0
  527. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0006_snapshot.json +3048 -0
  528. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0007_snapshot.json +3258 -0
  529. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0008_snapshot.json +3264 -0
  530. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0009_snapshot.json +3587 -0
  531. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0010_snapshot.json +3929 -0
  532. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0011_snapshot.json +4068 -0
  533. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0012_snapshot.json +4087 -0
  534. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0013_snapshot.json +4118 -0
  535. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0014_snapshot.json +5187 -0
  536. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0017_snapshot.json +5215 -0
  537. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0018_snapshot.json +5450 -0
  538. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0019_snapshot.json +5603 -0
  539. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0020_snapshot.json +5603 -0
  540. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0021_snapshot.json +5609 -0
  541. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0023_snapshot.json +5633 -0
  542. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0024_snapshot.json +5693 -0
  543. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0025_snapshot.json +5849 -0
  544. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0027_snapshot.json +6205 -0
  545. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0028_snapshot.json +6710 -0
  546. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0029_snapshot.json +7899 -0
  547. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0030_snapshot.json +8003 -0
  548. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0031_snapshot.json +7242 -0
  549. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0032_snapshot.json +7733 -0
  550. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0033_snapshot.json +9038 -0
  551. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0034_snapshot.json +9039 -0
  552. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0035_snapshot.json +9959 -0
  553. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0036_snapshot.json +10023 -0
  554. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0037_snapshot.json +10263 -0
  555. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/0038_snapshot.json +10301 -0
  556. package/dist/runtime/server/node_modules/@paperclipai/db/dist/migrations/migrations/meta/_journal.json +293 -0
  557. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts +16 -0
  558. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.d.ts.map +1 -0
  559. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js +197 -0
  560. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.js.map +1 -0
  561. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts +2 -0
  562. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.d.ts.map +1 -0
  563. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js +93 -0
  564. package/dist/runtime/server/node_modules/@paperclipai/db/dist/runtime-config.test.js.map +1 -0
  565. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts +197 -0
  566. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.d.ts.map +1 -0
  567. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js +22 -0
  568. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/activity_log.js.map +1 -0
  569. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts +144 -0
  570. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.d.ts.map +1 -0
  571. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js +17 -0
  572. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_api_keys.js.map +1 -0
  573. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts +201 -0
  574. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.d.ts.map +1 -0
  575. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js +20 -0
  576. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_config_revisions.js.map +1 -0
  577. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts +248 -0
  578. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.d.ts.map +1 -0
  579. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js +23 -0
  580. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_runtime_state.js.map +1 -0
  581. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts +197 -0
  582. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.d.ts.map +1 -0
  583. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js +22 -0
  584. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_task_sessions.js.map +1 -0
  585. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts +333 -0
  586. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
  587. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js +29 -0
  588. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agent_wakeup_requests.js.map +1 -0
  589. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts +373 -0
  590. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.d.ts.map +1 -0
  591. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js +29 -0
  592. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/agents.js.map +1 -0
  593. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts +144 -0
  594. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.d.ts.map +1 -0
  595. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js +19 -0
  596. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approval_comments.js.map +1 -0
  597. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts +214 -0
  598. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.d.ts.map +1 -0
  599. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js +20 -0
  600. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/approvals.js.map +1 -0
  601. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts +212 -0
  602. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.d.ts.map +1 -0
  603. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js +22 -0
  604. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/assets.js.map +1 -0
  605. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts +607 -0
  606. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.d.ts.map +1 -0
  607. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js +44 -0
  608. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/auth.js.map +1 -0
  609. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts +297 -0
  610. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.d.ts.map +1 -0
  611. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js +29 -0
  612. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_incidents.js.map +1 -0
  613. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts +263 -0
  614. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.d.ts.map +1 -0
  615. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js +24 -0
  616. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/budget_policies.js.map +1 -0
  617. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts +246 -0
  618. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.d.ts.map +1 -0
  619. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js +22 -0
  620. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/companies.js.map +1 -0
  621. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts +93 -0
  622. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.d.ts.map +1 -0
  623. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js +14 -0
  624. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_logos.js.map +1 -0
  625. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts +144 -0
  626. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.d.ts.map +1 -0
  627. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js +17 -0
  628. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_memberships.js.map +1 -0
  629. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts +163 -0
  630. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.d.ts.map +1 -0
  631. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js +19 -0
  632. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secret_versions.js.map +1 -0
  633. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts +195 -0
  634. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.d.ts.map +1 -0
  635. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js +21 -0
  636. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/company_secrets.js.map +1 -0
  637. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts +314 -0
  638. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.d.ts.map +1 -0
  639. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js +34 -0
  640. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/cost_events.js.map +1 -0
  641. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts +161 -0
  642. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.d.ts.map +1 -0
  643. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js +19 -0
  644. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/document_revisions.js.map +1 -0
  645. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts +229 -0
  646. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.d.ts.map +1 -0
  647. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js +22 -0
  648. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/documents.js.map +1 -0
  649. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts +418 -0
  650. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.d.ts.map +1 -0
  651. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js +39 -0
  652. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/execution_workspaces.js.map +1 -0
  653. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts +469 -0
  654. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.d.ts.map +1 -0
  655. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js +45 -0
  656. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/finance_events.js.map +1 -0
  657. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts +178 -0
  658. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.d.ts.map +1 -0
  659. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js +18 -0
  660. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/goals.js.map +1 -0
  661. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts +214 -0
  662. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.d.ts.map +1 -0
  663. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js +23 -0
  664. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_run_events.js.map +1 -0
  665. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts +558 -0
  666. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.d.ts.map +1 -0
  667. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js +43 -0
  668. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/heartbeat_runs.js.map +1 -0
  669. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts +55 -0
  670. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.d.ts.map +1 -0
  671. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js +55 -0
  672. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/index.js.map +1 -0
  673. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts +95 -0
  674. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.d.ts.map +1 -0
  675. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js +11 -0
  676. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_settings.js.map +1 -0
  677. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts +93 -0
  678. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.d.ts.map +1 -0
  679. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js +12 -0
  680. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/instance_user_roles.js.map +1 -0
  681. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts +214 -0
  682. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.d.ts.map +1 -0
  683. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js +20 -0
  684. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/invites.js.map +1 -0
  685. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts +110 -0
  686. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.d.ts.map +1 -0
  687. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js +19 -0
  688. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_approvals.js.map +1 -0
  689. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts +127 -0
  690. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.d.ts.map +1 -0
  691. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js +19 -0
  692. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_attachments.js.map +1 -0
  693. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts +144 -0
  694. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.d.ts.map +1 -0
  695. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js +20 -0
  696. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_comments.js.map +1 -0
  697. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts +127 -0
  698. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.d.ts.map +1 -0
  699. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js +18 -0
  700. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_documents.js.map +1 -0
  701. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts +76 -0
  702. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.d.ts.map +1 -0
  703. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js +16 -0
  704. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_labels.js.map +1 -0
  705. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts +127 -0
  706. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.d.ts.map +1 -0
  707. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js +17 -0
  708. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_read_states.js.map +1 -0
  709. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts +350 -0
  710. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.d.ts.map +1 -0
  711. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js +37 -0
  712. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issue_work_products.js.map +1 -0
  713. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts +590 -0
  714. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.d.ts.map +1 -0
  715. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js +58 -0
  716. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/issues.js.map +1 -0
  717. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts +384 -0
  718. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.d.ts.map +1 -0
  719. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js +32 -0
  720. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/join_requests.js.map +1 -0
  721. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts +110 -0
  722. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.d.ts.map +1 -0
  723. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js +14 -0
  724. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/labels.js.map +1 -0
  725. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts +158 -0
  726. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.d.ts.map +1 -0
  727. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js +34 -0
  728. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_company_settings.js.map +1 -0
  729. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts +123 -0
  730. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.d.ts.map +1 -0
  731. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js +26 -0
  732. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_config.js.map +1 -0
  733. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts +213 -0
  734. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.d.ts.map +1 -0
  735. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js +37 -0
  736. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_entities.js.map +1 -0
  737. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts +392 -0
  738. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.d.ts.map +1 -0
  739. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js +83 -0
  740. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_jobs.js.map +1 -0
  741. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts +125 -0
  742. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.d.ts.map +1 -0
  743. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js +29 -0
  744. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_logs.js.map +1 -0
  745. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts +169 -0
  746. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.d.ts.map +1 -0
  747. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js +68 -0
  748. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_state.js.map +1 -0
  749. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts +239 -0
  750. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.d.ts.map +1 -0
  751. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js +52 -0
  752. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugin_webhooks.js.map +1 -0
  753. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts +246 -0
  754. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.d.ts.map +1 -0
  755. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js +31 -0
  756. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/plugins.js.map +1 -0
  757. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts +163 -0
  758. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.d.ts.map +1 -0
  759. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js +17 -0
  760. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/principal_permission_grants.js.map +1 -0
  761. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts +93 -0
  762. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.d.ts.map +1 -0
  763. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js +17 -0
  764. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_goals.js.map +1 -0
  765. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts +333 -0
  766. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.d.ts.map +1 -0
  767. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js +32 -0
  768. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/project_workspaces.js.map +1 -0
  769. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts +265 -0
  770. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.d.ts.map +1 -0
  771. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js +24 -0
  772. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/projects.js.map +1 -0
  773. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts +284 -0
  774. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.d.ts.map +1 -0
  775. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js +24 -0
  776. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/tickets.js.map +1 -0
  777. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts +367 -0
  778. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.d.ts.map +1 -0
  779. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js +35 -0
  780. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_operations.js.map +1 -0
  781. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts +469 -0
  782. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.d.ts.map +1 -0
  783. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js +44 -0
  784. package/dist/runtime/server/node_modules/@paperclipai/db/dist/schema/workspace_runtime_services.js.map +1 -0
  785. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts +2 -0
  786. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.d.ts.map +1 -0
  787. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js +91 -0
  788. package/dist/runtime/server/node_modules/@paperclipai/db/dist/seed.js.map +1 -0
  789. package/dist/runtime/server/node_modules/@paperclipai/db/package.json +58 -0
  790. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts +57 -0
  791. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.d.ts.map +1 -0
  792. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js +105 -0
  793. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/bundlers.js.map +1 -0
  794. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts +218 -0
  795. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.d.ts.map +1 -0
  796. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js +85 -0
  797. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/define-plugin.js.map +1 -0
  798. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts +3 -0
  799. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.d.ts.map +1 -0
  800. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js +49 -0
  801. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-cli.js.map +1 -0
  802. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts +34 -0
  803. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.d.ts.map +1 -0
  804. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js +194 -0
  805. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/dev-server.js.map +1 -0
  806. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts +229 -0
  807. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.d.ts.map +1 -0
  808. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js +353 -0
  809. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/host-client-factory.js.map +1 -0
  810. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts +84 -0
  811. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.d.ts.map +1 -0
  812. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js +84 -0
  813. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/index.js.map +1 -0
  814. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts +881 -0
  815. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.d.ts.map +1 -0
  816. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js +297 -0
  817. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/protocol.js.map +1 -0
  818. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts +63 -0
  819. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.d.ts.map +1 -0
  820. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js +702 -0
  821. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/testing.js.map +1 -0
  822. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts +982 -0
  823. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.d.ts.map +1 -0
  824. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js +12 -0
  825. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/types.js.map +1 -0
  826. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts +257 -0
  827. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.d.ts.map +1 -0
  828. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js +97 -0
  829. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/components.js.map +1 -0
  830. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts +120 -0
  831. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.d.ts.map +1 -0
  832. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js +148 -0
  833. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/hooks.js.map +1 -0
  834. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts +50 -0
  835. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.d.ts.map +1 -0
  836. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js +48 -0
  837. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/index.js.map +1 -0
  838. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts +3 -0
  839. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.d.ts.map +1 -0
  840. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js +30 -0
  841. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/runtime.js.map +1 -0
  842. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts +308 -0
  843. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.d.ts.map +1 -0
  844. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js +17 -0
  845. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/ui/types.js.map +1 -0
  846. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts +127 -0
  847. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.d.ts.map +1 -0
  848. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js +941 -0
  849. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/dist/worker-rpc-host.js.map +1 -0
  850. package/dist/runtime/server/node_modules/@paperclipai/plugin-sdk/package.json +126 -0
  851. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts +4 -0
  852. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.d.ts.map +1 -0
  853. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js +22 -0
  854. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/agent-url-key.js.map +1 -0
  855. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts +20 -0
  856. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.d.ts.map +1 -0
  857. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js +20 -0
  858. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/api.js.map +1 -0
  859. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts +705 -0
  860. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.d.ts.map +1 -0
  861. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js +149 -0
  862. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/config-schema.js.map +1 -0
  863. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts +214 -0
  864. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.d.ts.map +1 -0
  865. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js +553 -0
  866. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/constants.js.map +1 -0
  867. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts +116 -0
  868. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.d.ts.map +1 -0
  869. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js +181 -0
  870. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/gtm.js.map +1 -0
  871. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts +12 -0
  872. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.d.ts.map +1 -0
  873. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js +11 -0
  874. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/index.js.map +1 -0
  875. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts +9 -0
  876. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.d.ts.map +1 -0
  877. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js +71 -0
  878. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-mentions.js.map +1 -0
  879. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts +3 -0
  880. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.d.ts.map +1 -0
  881. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js +16 -0
  882. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/project-url-key.js.map +1 -0
  883. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts +15 -0
  884. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.d.ts.map +1 -0
  885. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js +40 -0
  886. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/surface-runtime.js.map +1 -0
  887. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts +67 -0
  888. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.d.ts.map +1 -0
  889. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js +2 -0
  890. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/access.js.map +1 -0
  891. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts +14 -0
  892. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.d.ts.map +1 -0
  893. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js +2 -0
  894. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/activity.js.map +1 -0
  895. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts +80 -0
  896. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.d.ts.map +1 -0
  897. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js +2 -0
  898. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/agent.js.map +1 -0
  899. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts +26 -0
  900. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.d.ts.map +1 -0
  901. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js +2 -0
  902. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/approval.js.map +1 -0
  903. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts +16 -0
  904. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.d.ts.map +1 -0
  905. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js +2 -0
  906. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/asset.js.map +1 -0
  907. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts +86 -0
  908. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.d.ts.map +1 -0
  909. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js +2 -0
  910. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/budget.js.map +1 -0
  911. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts +120 -0
  912. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.d.ts.map +1 -0
  913. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js +2 -0
  914. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company-portability.js.map +1 -0
  915. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts +20 -0
  916. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.d.ts.map +1 -0
  917. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js +2 -0
  918. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/company.js.map +1 -0
  919. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts +106 -0
  920. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.d.ts.map +1 -0
  921. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js +2 -0
  922. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/cost.js.map +1 -0
  923. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts +28 -0
  924. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.d.ts.map +1 -0
  925. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js +2 -0
  926. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/dashboard.js.map +1 -0
  927. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts +57 -0
  928. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.d.ts.map +1 -0
  929. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js +2 -0
  930. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/finance.js.map +1 -0
  931. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts +14 -0
  932. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.d.ts.map +1 -0
  933. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js +2 -0
  934. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/goal.js.map +1 -0
  935. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts +118 -0
  936. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.d.ts.map +1 -0
  937. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js +2 -0
  938. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/heartbeat.js.map +1 -0
  939. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts +26 -0
  940. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.d.ts.map +1 -0
  941. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js +2 -0
  942. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/index.js.map +1 -0
  943. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts +10 -0
  944. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.d.ts.map +1 -0
  945. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js +2 -0
  946. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/instance.js.map +1 -0
  947. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts +164 -0
  948. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.d.ts.map +1 -0
  949. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js +2 -0
  950. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/issue.js.map +1 -0
  951. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts +9 -0
  952. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.d.ts.map +1 -0
  953. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js +2 -0
  954. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/live.js.map +1 -0
  955. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts +419 -0
  956. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.d.ts.map +1 -0
  957. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js +2 -0
  958. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/plugin.js.map +1 -0
  959. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts +67 -0
  960. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.d.ts.map +1 -0
  961. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js +2 -0
  962. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/project.js.map +1 -0
  963. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts +26 -0
  964. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.d.ts.map +1 -0
  965. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js +2 -0
  966. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/quota.js.map +1 -0
  967. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts +32 -0
  968. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.d.ts.map +1 -0
  969. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js +2 -0
  970. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/secrets.js.map +1 -0
  971. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts +7 -0
  972. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.d.ts.map +1 -0
  973. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js +2 -0
  974. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/sidebar-badges.js.map +1 -0
  975. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts +26 -0
  976. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.d.ts.map +1 -0
  977. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js +2 -0
  978. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/ticket.js.map +1 -0
  979. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts +27 -0
  980. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.d.ts.map +1 -0
  981. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js +2 -0
  982. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/work-product.js.map +1 -0
  983. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts +26 -0
  984. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.d.ts.map +1 -0
  985. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js +2 -0
  986. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-operation.js.map +1 -0
  987. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts +86 -0
  988. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.d.ts.map +1 -0
  989. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js +2 -0
  990. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/types/workspace-runtime.js.map +1 -0
  991. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts +109 -0
  992. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.d.ts.map +1 -0
  993. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js +40 -0
  994. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/access.js.map +1 -0
  995. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts +235 -0
  996. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.d.ts.map +1 -0
  997. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js +71 -0
  998. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/agent.js.map +1 -0
  999. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts +57 -0
  1000. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.d.ts.map +1 -0
  1001. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js +23 -0
  1002. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/approval.js.map +1 -0
  1003. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts +10 -0
  1004. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.d.ts.map +1 -0
  1005. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js +11 -0
  1006. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/asset.js.map +1 -0
  1007. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts +56 -0
  1008. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.d.ts.map +1 -0
  1009. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js +27 -0
  1010. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/budget.js.map +1 -0
  1011. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts +1535 -0
  1012. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.d.ts.map +1 -0
  1013. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js +95 -0
  1014. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company-portability.js.map +1 -0
  1015. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts +64 -0
  1016. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.d.ts.map +1 -0
  1017. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js +25 -0
  1018. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/company.js.map +1 -0
  1019. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts +92 -0
  1020. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.d.ts.map +1 -0
  1021. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js +26 -0
  1022. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/cost.js.map +1 -0
  1023. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts +20 -0
  1024. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.d.ts.map +1 -0
  1025. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js +15 -0
  1026. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/execution-workspace.js.map +1 -0
  1027. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts +129 -0
  1028. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.d.ts.map +1 -0
  1029. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js +32 -0
  1030. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/finance.js.map +1 -0
  1031. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts +48 -0
  1032. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.d.ts.map +1 -0
  1033. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js +12 -0
  1034. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/goal.js.map +1 -0
  1035. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts +19 -0
  1036. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.d.ts.map +1 -0
  1037. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js +19 -0
  1038. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/index.js.map +1 -0
  1039. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts +18 -0
  1040. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.d.ts.map +1 -0
  1041. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js +6 -0
  1042. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/instance.js.map +1 -0
  1043. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts +656 -0
  1044. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.d.ts.map +1 -0
  1045. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js +95 -0
  1046. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/issue.js.map +1 -0
  1047. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts +1173 -0
  1048. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.d.ts.map +1 -0
  1049. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js +547 -0
  1050. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/plugin.js.map +1 -0
  1051. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts +583 -0
  1052. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.d.ts.map +1 -0
  1053. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js +93 -0
  1054. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/project.js.map +1 -0
  1055. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts +114 -0
  1056. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.d.ts.map +1 -0
  1057. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js +35 -0
  1058. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/secret.js.map +1 -0
  1059. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts +56 -0
  1060. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.d.ts.map +1 -0
  1061. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js +22 -0
  1062. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/ticket.js.map +1 -0
  1063. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts +105 -0
  1064. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.d.ts.map +1 -0
  1065. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js +46 -0
  1066. package/dist/runtime/server/node_modules/@paperclipai/shared/dist/validators/work-product.js.map +1 -0
  1067. package/dist/runtime/server/node_modules/@paperclipai/shared/package.json +48 -0
  1068. package/package.json +1 -1
@@ -0,0 +1,941 @@
1
+ /**
2
+ * Worker-side RPC host — runs inside the child process spawned by the host.
3
+ *
4
+ * This module is the worker-side counterpart to the server's
5
+ * `PluginWorkerManager`. It:
6
+ *
7
+ * 1. Reads newline-delimited JSON-RPC 2.0 requests from **stdin**
8
+ * 2. Dispatches them to the appropriate plugin handler (events, jobs, tools, …)
9
+ * 3. Writes JSON-RPC 2.0 responses back on **stdout**
10
+ * 4. Provides a concrete `PluginContext` whose SDK client methods (e.g.
11
+ * `ctx.state.get()`, `ctx.events.emit()`) send JSON-RPC requests to the
12
+ * host on stdout and await responses on stdin.
13
+ *
14
+ * ## Message flow
15
+ *
16
+ * ```
17
+ * Host (parent) Worker (this module)
18
+ * | |
19
+ * |--- request(initialize) -------------> | → calls plugin.setup(ctx)
20
+ * |<-- response(ok:true) ---------------- |
21
+ * | |
22
+ * |--- notification(onEvent) -----------> | → dispatches to registered handler
23
+ * | |
24
+ * |<-- request(state.get) --------------- | ← SDK client call from plugin code
25
+ * |--- response(result) ----------------> |
26
+ * | |
27
+ * |--- request(shutdown) ---------------> | → calls plugin.onShutdown()
28
+ * |<-- response(void) ------------------ |
29
+ * | (process exits)
30
+ * ```
31
+ *
32
+ * @see PLUGIN_SPEC.md §12 — Process Model
33
+ * @see PLUGIN_SPEC.md §13 — Host-Worker Protocol
34
+ * @see PLUGIN_SPEC.md §14 — SDK Surface
35
+ */
36
+ import path from "node:path";
37
+ import { createInterface } from "node:readline";
38
+ import { fileURLToPath } from "node:url";
39
+ import { JSONRPC_ERROR_CODES, PLUGIN_RPC_ERROR_CODES, createRequest, createSuccessResponse, createErrorResponse, createNotification, parseMessage, serializeMessage, isJsonRpcRequest, isJsonRpcResponse, isJsonRpcNotification, isJsonRpcSuccessResponse, isJsonRpcErrorResponse, JsonRpcParseError, JsonRpcCallError, } from "./protocol.js";
40
+ // ---------------------------------------------------------------------------
41
+ // Constants
42
+ // ---------------------------------------------------------------------------
43
+ /** Default timeout for worker→host RPC calls. */
44
+ const DEFAULT_RPC_TIMEOUT_MS = 30_000;
45
+ /**
46
+ * Start the worker when this module is the process entrypoint.
47
+ *
48
+ * Call this at the bottom of your worker file so that when the host runs
49
+ * `node dist/worker.js`, the RPC host starts and the process stays alive.
50
+ * When the module is imported (e.g. for re-exports or tests), nothing runs.
51
+ *
52
+ * When `options.stdin` and `options.stdout` are provided (e.g. in tests),
53
+ * the main-module check is skipped and the host is started with those streams.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const plugin = definePlugin({ ... });
58
+ * export default plugin;
59
+ * runWorker(plugin, import.meta.url);
60
+ * ```
61
+ */
62
+ export function runWorker(plugin, moduleUrl, options) {
63
+ if (options?.stdin != null &&
64
+ options?.stdout != null) {
65
+ return startWorkerRpcHost({
66
+ plugin,
67
+ stdin: options.stdin,
68
+ stdout: options.stdout,
69
+ });
70
+ }
71
+ const entry = process.argv[1];
72
+ if (typeof entry !== "string")
73
+ return;
74
+ const thisFile = path.resolve(fileURLToPath(moduleUrl));
75
+ const entryPath = path.resolve(entry);
76
+ if (thisFile === entryPath) {
77
+ startWorkerRpcHost({ plugin });
78
+ }
79
+ }
80
+ /**
81
+ * Start the worker-side RPC host.
82
+ *
83
+ * This function is typically called from a thin bootstrap script that is the
84
+ * actual entrypoint of the child process:
85
+ *
86
+ * ```ts
87
+ * // worker-bootstrap.ts
88
+ * import plugin from "./worker.js";
89
+ * import { startWorkerRpcHost } from "@paperclipai/plugin-sdk";
90
+ *
91
+ * startWorkerRpcHost({ plugin });
92
+ * ```
93
+ *
94
+ * The host begins listening on stdin immediately. It does NOT call
95
+ * `plugin.definition.setup()` yet — that happens when the host sends the
96
+ * `initialize` RPC.
97
+ *
98
+ * @returns A handle for inspecting or stopping the RPC host
99
+ */
100
+ export function startWorkerRpcHost(options) {
101
+ const { plugin } = options;
102
+ const stdinStream = options.stdin ?? process.stdin;
103
+ const stdoutStream = options.stdout ?? process.stdout;
104
+ const rpcTimeoutMs = options.rpcTimeoutMs ?? DEFAULT_RPC_TIMEOUT_MS;
105
+ // -----------------------------------------------------------------------
106
+ // State
107
+ // -----------------------------------------------------------------------
108
+ let running = true;
109
+ let initialized = false;
110
+ let manifest = null;
111
+ let currentConfig = {};
112
+ // Plugin handler registrations (populated during setup())
113
+ const eventHandlers = [];
114
+ const jobHandlers = new Map();
115
+ const launcherRegistrations = new Map();
116
+ const dataHandlers = new Map();
117
+ const actionHandlers = new Map();
118
+ const toolHandlers = new Map();
119
+ // Agent session event callbacks (populated by sendMessage, cleared by close)
120
+ const sessionEventCallbacks = new Map();
121
+ // Pending outbound (worker→host) requests
122
+ const pendingRequests = new Map();
123
+ let nextOutboundId = 1;
124
+ const MAX_OUTBOUND_ID = Number.MAX_SAFE_INTEGER - 1;
125
+ // -----------------------------------------------------------------------
126
+ // Outbound messaging (worker → host)
127
+ // -----------------------------------------------------------------------
128
+ function sendMessage(message) {
129
+ if (!running)
130
+ return;
131
+ const serialized = serializeMessage(message);
132
+ stdoutStream.write(serialized);
133
+ }
134
+ /**
135
+ * Send a typed JSON-RPC request to the host and await the response.
136
+ */
137
+ function callHost(method, params, timeoutMs) {
138
+ return new Promise((resolve, reject) => {
139
+ if (!running) {
140
+ reject(new Error(`Cannot call "${method}" — worker RPC host is not running`));
141
+ return;
142
+ }
143
+ if (nextOutboundId >= MAX_OUTBOUND_ID) {
144
+ nextOutboundId = 1;
145
+ }
146
+ const id = nextOutboundId++;
147
+ const timeout = timeoutMs ?? rpcTimeoutMs;
148
+ let settled = false;
149
+ const settle = (fn, value) => {
150
+ if (settled)
151
+ return;
152
+ settled = true;
153
+ clearTimeout(timer);
154
+ pendingRequests.delete(id);
155
+ fn(value);
156
+ };
157
+ const timer = setTimeout(() => {
158
+ settle(reject, new JsonRpcCallError({
159
+ code: PLUGIN_RPC_ERROR_CODES.TIMEOUT,
160
+ message: `Worker→host call "${method}" timed out after ${timeout}ms`,
161
+ }));
162
+ }, timeout);
163
+ pendingRequests.set(id, {
164
+ resolve: (response) => {
165
+ if (isJsonRpcSuccessResponse(response)) {
166
+ settle(resolve, response.result);
167
+ }
168
+ else if (isJsonRpcErrorResponse(response)) {
169
+ settle(reject, new JsonRpcCallError(response.error));
170
+ }
171
+ else {
172
+ settle(reject, new Error(`Unexpected response format for "${method}"`));
173
+ }
174
+ },
175
+ timer,
176
+ });
177
+ try {
178
+ const request = createRequest(method, params, id);
179
+ sendMessage(request);
180
+ }
181
+ catch (err) {
182
+ settle(reject, err instanceof Error ? err : new Error(String(err)));
183
+ }
184
+ });
185
+ }
186
+ /**
187
+ * Send a JSON-RPC notification to the host (fire-and-forget).
188
+ */
189
+ function notifyHost(method, params) {
190
+ try {
191
+ sendMessage(createNotification(method, params));
192
+ }
193
+ catch {
194
+ // Swallow — the host may have closed stdin
195
+ }
196
+ }
197
+ // -----------------------------------------------------------------------
198
+ // Build the PluginContext (SDK surface for plugin code)
199
+ // -----------------------------------------------------------------------
200
+ function buildContext() {
201
+ return {
202
+ get manifest() {
203
+ if (!manifest)
204
+ throw new Error("Plugin context accessed before initialization");
205
+ return manifest;
206
+ },
207
+ config: {
208
+ async get() {
209
+ return callHost("config.get", {});
210
+ },
211
+ },
212
+ events: {
213
+ on(name, filterOrFn, maybeFn) {
214
+ let registration;
215
+ if (typeof filterOrFn === "function") {
216
+ registration = { name, fn: filterOrFn };
217
+ }
218
+ else {
219
+ if (!maybeFn)
220
+ throw new Error("Event handler function is required");
221
+ registration = { name, filter: filterOrFn, fn: maybeFn };
222
+ }
223
+ eventHandlers.push(registration);
224
+ // Register subscription on the host so events are forwarded to this worker
225
+ void callHost("events.subscribe", { eventPattern: name, filter: registration.filter ?? null }).catch((err) => {
226
+ notifyHost("log", {
227
+ level: "warn",
228
+ message: `Failed to subscribe to event "${name}" on host: ${err instanceof Error ? err.message : String(err)}`,
229
+ });
230
+ });
231
+ return () => {
232
+ const idx = eventHandlers.indexOf(registration);
233
+ if (idx !== -1)
234
+ eventHandlers.splice(idx, 1);
235
+ };
236
+ },
237
+ async emit(name, companyId, payload) {
238
+ await callHost("events.emit", { name, companyId, payload });
239
+ },
240
+ },
241
+ jobs: {
242
+ register(key, fn) {
243
+ jobHandlers.set(key, fn);
244
+ },
245
+ },
246
+ launchers: {
247
+ register(launcher) {
248
+ launcherRegistrations.set(launcher.id, launcher);
249
+ },
250
+ },
251
+ http: {
252
+ async fetch(url, init) {
253
+ const serializedInit = {};
254
+ if (init) {
255
+ if (init.method)
256
+ serializedInit.method = init.method;
257
+ if (init.headers) {
258
+ // Normalize headers to a plain object
259
+ if (init.headers instanceof Headers) {
260
+ const obj = {};
261
+ init.headers.forEach((v, k) => { obj[k] = v; });
262
+ serializedInit.headers = obj;
263
+ }
264
+ else if (Array.isArray(init.headers)) {
265
+ const obj = {};
266
+ for (const [k, v] of init.headers)
267
+ obj[k] = v;
268
+ serializedInit.headers = obj;
269
+ }
270
+ else {
271
+ serializedInit.headers = init.headers;
272
+ }
273
+ }
274
+ if (init.body !== undefined && init.body !== null) {
275
+ serializedInit.body = typeof init.body === "string"
276
+ ? init.body
277
+ : String(init.body);
278
+ }
279
+ }
280
+ const result = await callHost("http.fetch", {
281
+ url,
282
+ init: Object.keys(serializedInit).length > 0 ? serializedInit : undefined,
283
+ });
284
+ // Reconstruct a Response-like object from the serialized result
285
+ return new Response(result.body, {
286
+ status: result.status,
287
+ statusText: result.statusText,
288
+ headers: result.headers,
289
+ });
290
+ },
291
+ },
292
+ secrets: {
293
+ async resolve(secretRef) {
294
+ return callHost("secrets.resolve", { secretRef });
295
+ },
296
+ },
297
+ activity: {
298
+ async log(entry) {
299
+ await callHost("activity.log", {
300
+ companyId: entry.companyId,
301
+ message: entry.message,
302
+ entityType: entry.entityType,
303
+ entityId: entry.entityId,
304
+ metadata: entry.metadata,
305
+ });
306
+ },
307
+ },
308
+ state: {
309
+ async get(input) {
310
+ return callHost("state.get", {
311
+ scopeKind: input.scopeKind,
312
+ scopeId: input.scopeId,
313
+ namespace: input.namespace,
314
+ stateKey: input.stateKey,
315
+ });
316
+ },
317
+ async set(input, value) {
318
+ await callHost("state.set", {
319
+ scopeKind: input.scopeKind,
320
+ scopeId: input.scopeId,
321
+ namespace: input.namespace,
322
+ stateKey: input.stateKey,
323
+ value,
324
+ });
325
+ },
326
+ async delete(input) {
327
+ await callHost("state.delete", {
328
+ scopeKind: input.scopeKind,
329
+ scopeId: input.scopeId,
330
+ namespace: input.namespace,
331
+ stateKey: input.stateKey,
332
+ });
333
+ },
334
+ },
335
+ entities: {
336
+ async upsert(input) {
337
+ return callHost("entities.upsert", {
338
+ entityType: input.entityType,
339
+ scopeKind: input.scopeKind,
340
+ scopeId: input.scopeId,
341
+ externalId: input.externalId,
342
+ title: input.title,
343
+ status: input.status,
344
+ data: input.data,
345
+ });
346
+ },
347
+ async list(query) {
348
+ return callHost("entities.list", {
349
+ entityType: query.entityType,
350
+ scopeKind: query.scopeKind,
351
+ scopeId: query.scopeId,
352
+ externalId: query.externalId,
353
+ limit: query.limit,
354
+ offset: query.offset,
355
+ });
356
+ },
357
+ },
358
+ projects: {
359
+ async list(input) {
360
+ return callHost("projects.list", {
361
+ companyId: input.companyId,
362
+ limit: input.limit,
363
+ offset: input.offset,
364
+ });
365
+ },
366
+ async get(projectId, companyId) {
367
+ return callHost("projects.get", { projectId, companyId });
368
+ },
369
+ async listWorkspaces(projectId, companyId) {
370
+ return callHost("projects.listWorkspaces", { projectId, companyId });
371
+ },
372
+ async getPrimaryWorkspace(projectId, companyId) {
373
+ return callHost("projects.getPrimaryWorkspace", { projectId, companyId });
374
+ },
375
+ async getWorkspaceForIssue(issueId, companyId) {
376
+ return callHost("projects.getWorkspaceForIssue", { issueId, companyId });
377
+ },
378
+ },
379
+ companies: {
380
+ async list(input) {
381
+ return callHost("companies.list", {
382
+ limit: input?.limit,
383
+ offset: input?.offset,
384
+ });
385
+ },
386
+ async get(companyId) {
387
+ return callHost("companies.get", { companyId });
388
+ },
389
+ },
390
+ issues: {
391
+ async list(input) {
392
+ return callHost("issues.list", {
393
+ companyId: input.companyId,
394
+ projectId: input.projectId,
395
+ assigneeAgentId: input.assigneeAgentId,
396
+ status: input.status,
397
+ limit: input.limit,
398
+ offset: input.offset,
399
+ });
400
+ },
401
+ async get(issueId, companyId) {
402
+ return callHost("issues.get", { issueId, companyId });
403
+ },
404
+ async create(input) {
405
+ return callHost("issues.create", {
406
+ companyId: input.companyId,
407
+ projectId: input.projectId,
408
+ goalId: input.goalId,
409
+ parentId: input.parentId,
410
+ title: input.title,
411
+ description: input.description,
412
+ priority: input.priority,
413
+ assigneeAgentId: input.assigneeAgentId,
414
+ });
415
+ },
416
+ async update(issueId, patch, companyId) {
417
+ return callHost("issues.update", {
418
+ issueId,
419
+ patch: patch,
420
+ companyId,
421
+ });
422
+ },
423
+ async listComments(issueId, companyId) {
424
+ return callHost("issues.listComments", { issueId, companyId });
425
+ },
426
+ async createComment(issueId, body, companyId) {
427
+ return callHost("issues.createComment", { issueId, body, companyId });
428
+ },
429
+ documents: {
430
+ async list(issueId, companyId) {
431
+ return callHost("issues.documents.list", { issueId, companyId });
432
+ },
433
+ async get(issueId, key, companyId) {
434
+ return callHost("issues.documents.get", { issueId, key, companyId });
435
+ },
436
+ async upsert(input) {
437
+ return callHost("issues.documents.upsert", {
438
+ issueId: input.issueId,
439
+ key: input.key,
440
+ body: input.body,
441
+ companyId: input.companyId,
442
+ title: input.title,
443
+ format: input.format,
444
+ changeSummary: input.changeSummary,
445
+ });
446
+ },
447
+ async delete(issueId, key, companyId) {
448
+ return callHost("issues.documents.delete", { issueId, key, companyId });
449
+ },
450
+ },
451
+ },
452
+ agents: {
453
+ async list(input) {
454
+ return callHost("agents.list", {
455
+ companyId: input.companyId,
456
+ status: input.status,
457
+ limit: input.limit,
458
+ offset: input.offset,
459
+ });
460
+ },
461
+ async get(agentId, companyId) {
462
+ return callHost("agents.get", { agentId, companyId });
463
+ },
464
+ async pause(agentId, companyId) {
465
+ return callHost("agents.pause", { agentId, companyId });
466
+ },
467
+ async resume(agentId, companyId) {
468
+ return callHost("agents.resume", { agentId, companyId });
469
+ },
470
+ async invoke(agentId, companyId, opts) {
471
+ return callHost("agents.invoke", { agentId, companyId, prompt: opts.prompt, reason: opts.reason });
472
+ },
473
+ sessions: {
474
+ async create(agentId, companyId, opts) {
475
+ return callHost("agents.sessions.create", {
476
+ agentId,
477
+ companyId,
478
+ taskKey: opts?.taskKey,
479
+ reason: opts?.reason,
480
+ });
481
+ },
482
+ async list(agentId, companyId) {
483
+ return callHost("agents.sessions.list", { agentId, companyId });
484
+ },
485
+ async sendMessage(sessionId, companyId, opts) {
486
+ if (opts.onEvent) {
487
+ sessionEventCallbacks.set(sessionId, opts.onEvent);
488
+ }
489
+ try {
490
+ return await callHost("agents.sessions.sendMessage", {
491
+ sessionId,
492
+ companyId,
493
+ prompt: opts.prompt,
494
+ reason: opts.reason,
495
+ });
496
+ }
497
+ catch (err) {
498
+ sessionEventCallbacks.delete(sessionId);
499
+ throw err;
500
+ }
501
+ },
502
+ async close(sessionId, companyId) {
503
+ sessionEventCallbacks.delete(sessionId);
504
+ await callHost("agents.sessions.close", { sessionId, companyId });
505
+ },
506
+ },
507
+ },
508
+ goals: {
509
+ async list(input) {
510
+ return callHost("goals.list", {
511
+ companyId: input.companyId,
512
+ level: input.level,
513
+ status: input.status,
514
+ limit: input.limit,
515
+ offset: input.offset,
516
+ });
517
+ },
518
+ async get(goalId, companyId) {
519
+ return callHost("goals.get", { goalId, companyId });
520
+ },
521
+ async create(input) {
522
+ return callHost("goals.create", {
523
+ companyId: input.companyId,
524
+ title: input.title,
525
+ description: input.description,
526
+ level: input.level,
527
+ status: input.status,
528
+ parentId: input.parentId,
529
+ ownerAgentId: input.ownerAgentId,
530
+ });
531
+ },
532
+ async update(goalId, patch, companyId) {
533
+ return callHost("goals.update", {
534
+ goalId,
535
+ patch: patch,
536
+ companyId,
537
+ });
538
+ },
539
+ },
540
+ data: {
541
+ register(key, handler) {
542
+ dataHandlers.set(key, handler);
543
+ },
544
+ },
545
+ actions: {
546
+ register(key, handler) {
547
+ actionHandlers.set(key, handler);
548
+ },
549
+ },
550
+ streams: (() => {
551
+ // Track channel → companyId so emit/close don't require companyId
552
+ const channelCompanyMap = new Map();
553
+ return {
554
+ open(channel, companyId) {
555
+ channelCompanyMap.set(channel, companyId);
556
+ notifyHost("streams.open", { channel, companyId });
557
+ },
558
+ emit(channel, event) {
559
+ const companyId = channelCompanyMap.get(channel) ?? "";
560
+ notifyHost("streams.emit", { channel, companyId, event });
561
+ },
562
+ close(channel) {
563
+ const companyId = channelCompanyMap.get(channel) ?? "";
564
+ channelCompanyMap.delete(channel);
565
+ notifyHost("streams.close", { channel, companyId });
566
+ },
567
+ };
568
+ })(),
569
+ tools: {
570
+ register(name, declaration, fn) {
571
+ toolHandlers.set(name, { declaration, fn });
572
+ },
573
+ },
574
+ metrics: {
575
+ async write(name, value, tags) {
576
+ await callHost("metrics.write", { name, value, tags });
577
+ },
578
+ },
579
+ logger: {
580
+ info(message, meta) {
581
+ notifyHost("log", { level: "info", message, meta });
582
+ },
583
+ warn(message, meta) {
584
+ notifyHost("log", { level: "warn", message, meta });
585
+ },
586
+ error(message, meta) {
587
+ notifyHost("log", { level: "error", message, meta });
588
+ },
589
+ debug(message, meta) {
590
+ notifyHost("log", { level: "debug", message, meta });
591
+ },
592
+ },
593
+ };
594
+ }
595
+ const ctx = buildContext();
596
+ // -----------------------------------------------------------------------
597
+ // Inbound message handling (host → worker)
598
+ // -----------------------------------------------------------------------
599
+ /**
600
+ * Handle an incoming JSON-RPC request from the host.
601
+ *
602
+ * Dispatches to the correct handler based on the method name.
603
+ */
604
+ async function handleHostRequest(request) {
605
+ const { id, method, params } = request;
606
+ try {
607
+ const result = await dispatchMethod(method, params);
608
+ sendMessage(createSuccessResponse(id, result ?? null));
609
+ }
610
+ catch (err) {
611
+ const errorMessage = err instanceof Error ? err.message : String(err);
612
+ // Propagate specific error codes from handler errors (e.g.
613
+ // METHOD_NOT_FOUND, METHOD_NOT_IMPLEMENTED) — fall back to
614
+ // WORKER_ERROR for untyped exceptions.
615
+ const errorCode = typeof err?.code === "number"
616
+ ? err.code
617
+ : PLUGIN_RPC_ERROR_CODES.WORKER_ERROR;
618
+ sendMessage(createErrorResponse(id, errorCode, errorMessage));
619
+ }
620
+ }
621
+ /**
622
+ * Dispatch a host→worker method call to the appropriate handler.
623
+ */
624
+ async function dispatchMethod(method, params) {
625
+ switch (method) {
626
+ case "initialize":
627
+ return handleInitialize(params);
628
+ case "health":
629
+ return handleHealth();
630
+ case "shutdown":
631
+ return handleShutdown();
632
+ case "validateConfig":
633
+ return handleValidateConfig(params);
634
+ case "configChanged":
635
+ return handleConfigChanged(params);
636
+ case "onEvent":
637
+ return handleOnEvent(params);
638
+ case "runJob":
639
+ return handleRunJob(params);
640
+ case "handleWebhook":
641
+ return handleWebhook(params);
642
+ case "getData":
643
+ return handleGetData(params);
644
+ case "performAction":
645
+ return handlePerformAction(params);
646
+ case "executeTool":
647
+ return handleExecuteTool(params);
648
+ default:
649
+ throw Object.assign(new Error(`Unknown method: ${method}`), { code: JSONRPC_ERROR_CODES.METHOD_NOT_FOUND });
650
+ }
651
+ }
652
+ // -----------------------------------------------------------------------
653
+ // Host→Worker method handlers
654
+ // -----------------------------------------------------------------------
655
+ async function handleInitialize(params) {
656
+ if (initialized) {
657
+ throw new Error("Worker already initialized");
658
+ }
659
+ manifest = params.manifest;
660
+ currentConfig = params.config;
661
+ // Call the plugin's setup function
662
+ await plugin.definition.setup(ctx);
663
+ initialized = true;
664
+ // Report which optional methods this plugin implements
665
+ const supportedMethods = [];
666
+ if (plugin.definition.onValidateConfig)
667
+ supportedMethods.push("validateConfig");
668
+ if (plugin.definition.onConfigChanged)
669
+ supportedMethods.push("configChanged");
670
+ if (plugin.definition.onHealth)
671
+ supportedMethods.push("health");
672
+ if (plugin.definition.onShutdown)
673
+ supportedMethods.push("shutdown");
674
+ return { ok: true, supportedMethods };
675
+ }
676
+ async function handleHealth() {
677
+ if (plugin.definition.onHealth) {
678
+ return plugin.definition.onHealth();
679
+ }
680
+ // Default: report OK if the worker is alive
681
+ return { status: "ok" };
682
+ }
683
+ async function handleShutdown() {
684
+ if (plugin.definition.onShutdown) {
685
+ await plugin.definition.onShutdown();
686
+ }
687
+ // Schedule cleanup after we send the response.
688
+ // Use setImmediate to let the response flush before exiting.
689
+ // Only call process.exit() when running with real process streams.
690
+ // When custom streams are provided (tests), just clean up.
691
+ setImmediate(() => {
692
+ cleanup();
693
+ if (!options.stdin && !options.stdout) {
694
+ process.exit(0);
695
+ }
696
+ });
697
+ }
698
+ async function handleValidateConfig(params) {
699
+ if (!plugin.definition.onValidateConfig) {
700
+ throw Object.assign(new Error("validateConfig is not implemented by this plugin"), { code: PLUGIN_RPC_ERROR_CODES.METHOD_NOT_IMPLEMENTED });
701
+ }
702
+ return plugin.definition.onValidateConfig(params.config);
703
+ }
704
+ async function handleConfigChanged(params) {
705
+ currentConfig = params.config;
706
+ if (plugin.definition.onConfigChanged) {
707
+ await plugin.definition.onConfigChanged(params.config);
708
+ }
709
+ }
710
+ async function handleOnEvent(params) {
711
+ const event = params.event;
712
+ for (const registration of eventHandlers) {
713
+ // Check event type match
714
+ const exactMatch = registration.name === event.eventType;
715
+ const wildcardPluginAll = registration.name === "plugin.*" &&
716
+ event.eventType.startsWith("plugin.");
717
+ const wildcardPluginOne = registration.name.endsWith(".*") &&
718
+ event.eventType.startsWith(registration.name.slice(0, -1));
719
+ if (!exactMatch && !wildcardPluginAll && !wildcardPluginOne)
720
+ continue;
721
+ // Check filter
722
+ if (registration.filter && !allowsEvent(registration.filter, event))
723
+ continue;
724
+ try {
725
+ await registration.fn(event);
726
+ }
727
+ catch (err) {
728
+ // Log error but continue processing other handlers so one failing
729
+ // handler doesn't prevent the rest from running.
730
+ notifyHost("log", {
731
+ level: "error",
732
+ message: `Event handler for "${registration.name}" failed: ${err instanceof Error ? err.message : String(err)}`,
733
+ meta: { eventType: event.eventType, stack: err instanceof Error ? err.stack : undefined },
734
+ });
735
+ }
736
+ }
737
+ }
738
+ async function handleRunJob(params) {
739
+ const handler = jobHandlers.get(params.job.jobKey);
740
+ if (!handler) {
741
+ throw new Error(`No handler registered for job "${params.job.jobKey}"`);
742
+ }
743
+ await handler(params.job);
744
+ }
745
+ async function handleWebhook(params) {
746
+ if (!plugin.definition.onWebhook) {
747
+ throw Object.assign(new Error("handleWebhook is not implemented by this plugin"), { code: PLUGIN_RPC_ERROR_CODES.METHOD_NOT_IMPLEMENTED });
748
+ }
749
+ await plugin.definition.onWebhook(params);
750
+ }
751
+ async function handleGetData(params) {
752
+ const handler = dataHandlers.get(params.key);
753
+ if (!handler) {
754
+ throw new Error(`No data handler registered for key "${params.key}"`);
755
+ }
756
+ return handler(params.renderEnvironment === undefined
757
+ ? params.params
758
+ : { ...params.params, renderEnvironment: params.renderEnvironment });
759
+ }
760
+ async function handlePerformAction(params) {
761
+ const handler = actionHandlers.get(params.key);
762
+ if (!handler) {
763
+ throw new Error(`No action handler registered for key "${params.key}"`);
764
+ }
765
+ return handler(params.renderEnvironment === undefined
766
+ ? params.params
767
+ : { ...params.params, renderEnvironment: params.renderEnvironment });
768
+ }
769
+ async function handleExecuteTool(params) {
770
+ const entry = toolHandlers.get(params.toolName);
771
+ if (!entry) {
772
+ throw new Error(`No tool handler registered for "${params.toolName}"`);
773
+ }
774
+ return entry.fn(params.parameters, params.runContext);
775
+ }
776
+ // -----------------------------------------------------------------------
777
+ // Event filter helper
778
+ // -----------------------------------------------------------------------
779
+ function allowsEvent(filter, event) {
780
+ const payload = event.payload;
781
+ if (filter.companyId !== undefined) {
782
+ const companyId = event.companyId ?? String(payload?.companyId ?? "");
783
+ if (companyId !== filter.companyId)
784
+ return false;
785
+ }
786
+ if (filter.projectId !== undefined) {
787
+ const projectId = event.entityType === "project"
788
+ ? event.entityId
789
+ : String(payload?.projectId ?? "");
790
+ if (projectId !== filter.projectId)
791
+ return false;
792
+ }
793
+ if (filter.agentId !== undefined) {
794
+ const agentId = event.entityType === "agent"
795
+ ? event.entityId
796
+ : String(payload?.agentId ?? "");
797
+ if (agentId !== filter.agentId)
798
+ return false;
799
+ }
800
+ return true;
801
+ }
802
+ // -----------------------------------------------------------------------
803
+ // Inbound response handling (host → worker, response to our outbound call)
804
+ // -----------------------------------------------------------------------
805
+ function handleHostResponse(response) {
806
+ const id = response.id;
807
+ if (id === null || id === undefined)
808
+ return;
809
+ const pending = pendingRequests.get(id);
810
+ if (!pending)
811
+ return;
812
+ clearTimeout(pending.timer);
813
+ pendingRequests.delete(id);
814
+ pending.resolve(response);
815
+ }
816
+ // -----------------------------------------------------------------------
817
+ // Incoming line handler
818
+ // -----------------------------------------------------------------------
819
+ function handleLine(line) {
820
+ if (!line.trim())
821
+ return;
822
+ let message;
823
+ try {
824
+ message = parseMessage(line);
825
+ }
826
+ catch (err) {
827
+ if (err instanceof JsonRpcParseError) {
828
+ // Send parse error response
829
+ sendMessage(createErrorResponse(null, JSONRPC_ERROR_CODES.PARSE_ERROR, `Parse error: ${err.message}`));
830
+ }
831
+ return;
832
+ }
833
+ if (isJsonRpcResponse(message)) {
834
+ // This is a response to one of our outbound worker→host calls
835
+ handleHostResponse(message);
836
+ }
837
+ else if (isJsonRpcRequest(message)) {
838
+ // This is a host→worker RPC call — dispatch it
839
+ handleHostRequest(message).catch((err) => {
840
+ // Unhandled error in the async handler — send error response
841
+ const errorMessage = err instanceof Error ? err.message : String(err);
842
+ const errorCode = err?.code ?? PLUGIN_RPC_ERROR_CODES.WORKER_ERROR;
843
+ try {
844
+ sendMessage(createErrorResponse(message.id, typeof errorCode === "number" ? errorCode : PLUGIN_RPC_ERROR_CODES.WORKER_ERROR, errorMessage));
845
+ }
846
+ catch {
847
+ // Cannot send response, stdout may be closed
848
+ }
849
+ });
850
+ }
851
+ else if (isJsonRpcNotification(message)) {
852
+ // Dispatch host→worker push notifications
853
+ const notif = message;
854
+ if (notif.method === "agents.sessions.event" && notif.params) {
855
+ const event = notif.params;
856
+ const cb = sessionEventCallbacks.get(event.sessionId);
857
+ if (cb)
858
+ cb(event);
859
+ }
860
+ else if (notif.method === "onEvent" && notif.params) {
861
+ // Plugin event bus notifications — dispatch to registered event handlers
862
+ handleOnEvent(notif.params).catch((err) => {
863
+ notifyHost("log", {
864
+ level: "error",
865
+ message: `Failed to handle event notification: ${err instanceof Error ? err.message : String(err)}`,
866
+ });
867
+ });
868
+ }
869
+ }
870
+ }
871
+ // -----------------------------------------------------------------------
872
+ // Cleanup
873
+ // -----------------------------------------------------------------------
874
+ function cleanup() {
875
+ running = false;
876
+ // Close readline
877
+ if (readline) {
878
+ readline.close();
879
+ readline = null;
880
+ }
881
+ // Reject all pending outbound calls
882
+ for (const [id, pending] of pendingRequests) {
883
+ clearTimeout(pending.timer);
884
+ pending.resolve(createErrorResponse(id, PLUGIN_RPC_ERROR_CODES.WORKER_UNAVAILABLE, "Worker RPC host is shutting down"));
885
+ }
886
+ pendingRequests.clear();
887
+ sessionEventCallbacks.clear();
888
+ }
889
+ // -----------------------------------------------------------------------
890
+ // Bootstrap: wire up stdin readline
891
+ // -----------------------------------------------------------------------
892
+ let readline = createInterface({
893
+ input: stdinStream,
894
+ crlfDelay: Infinity,
895
+ });
896
+ readline.on("line", handleLine);
897
+ // If stdin closes, we should exit gracefully
898
+ readline.on("close", () => {
899
+ if (running) {
900
+ cleanup();
901
+ if (!options.stdin && !options.stdout) {
902
+ process.exit(0);
903
+ }
904
+ }
905
+ });
906
+ // Handle uncaught errors in the worker process.
907
+ // Only install these when using the real process streams (not in tests
908
+ // where the caller provides custom streams).
909
+ if (!options.stdin && !options.stdout) {
910
+ process.on("uncaughtException", (err) => {
911
+ notifyHost("log", {
912
+ level: "error",
913
+ message: `Uncaught exception: ${err.message}`,
914
+ meta: { stack: err.stack },
915
+ });
916
+ // Give the notification a moment to flush, then exit
917
+ setTimeout(() => process.exit(1), 100);
918
+ });
919
+ process.on("unhandledRejection", (reason) => {
920
+ const message = reason instanceof Error ? reason.message : String(reason);
921
+ const stack = reason instanceof Error ? reason.stack : undefined;
922
+ notifyHost("log", {
923
+ level: "error",
924
+ message: `Unhandled rejection: ${message}`,
925
+ meta: { stack },
926
+ });
927
+ });
928
+ }
929
+ // -----------------------------------------------------------------------
930
+ // Return the handle
931
+ // -----------------------------------------------------------------------
932
+ return {
933
+ get running() {
934
+ return running;
935
+ },
936
+ stop() {
937
+ cleanup();
938
+ },
939
+ };
940
+ }
941
+ //# sourceMappingURL=worker-rpc-host.js.map