@growthub/cli 0.3.4 → 0.3.6

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 +42 -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 +42 -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 +42 -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 +42 -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 +43 -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 +42 -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 +42 -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 +30 -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 +36 -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 +74 -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 +33 -0
  1068. package/package.json +1 -1
@@ -0,0 +1,1146 @@
1
+ import { asNumber, asString, buildPaperclipEnv, parseObject } from "@paperclipai/adapter-utils/server-utils";
2
+ import crypto, { randomUUID } from "node:crypto";
3
+ import { WebSocket } from "ws";
4
+ const PROTOCOL_VERSION = 3;
5
+ const DEFAULT_SCOPES = ["operator.admin"];
6
+ const DEFAULT_CLIENT_ID = "gateway-client";
7
+ const DEFAULT_CLIENT_MODE = "backend";
8
+ const DEFAULT_CLIENT_VERSION = "paperclip";
9
+ const DEFAULT_ROLE = "operator";
10
+ const SENSITIVE_LOG_KEY_PATTERN = /(^|[_-])(auth|authorization|token|secret|password|api[_-]?key|private[_-]?key)([_-]|$)|^x-openclaw-(auth|token)$/i;
11
+ const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
12
+ function asRecord(value) {
13
+ if (typeof value !== "object" || value === null || Array.isArray(value))
14
+ return null;
15
+ return value;
16
+ }
17
+ function nonEmpty(value) {
18
+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
19
+ }
20
+ function parseOptionalPositiveInteger(value) {
21
+ if (typeof value === "number" && Number.isFinite(value)) {
22
+ return Math.max(1, Math.floor(value));
23
+ }
24
+ if (typeof value === "string" && value.trim().length > 0) {
25
+ const parsed = Number.parseInt(value.trim(), 10);
26
+ if (Number.isFinite(parsed))
27
+ return Math.max(1, Math.floor(parsed));
28
+ }
29
+ return null;
30
+ }
31
+ function parseBoolean(value, fallback = false) {
32
+ if (typeof value === "boolean")
33
+ return value;
34
+ if (typeof value === "string") {
35
+ const normalized = value.trim().toLowerCase();
36
+ if (normalized === "true" || normalized === "1")
37
+ return true;
38
+ if (normalized === "false" || normalized === "0")
39
+ return false;
40
+ }
41
+ return fallback;
42
+ }
43
+ function normalizeSessionKeyStrategy(value) {
44
+ const normalized = asString(value, "issue").trim().toLowerCase();
45
+ if (normalized === "fixed" || normalized === "run")
46
+ return normalized;
47
+ return "issue";
48
+ }
49
+ function resolveSessionKey(input) {
50
+ const fallback = input.configuredSessionKey ?? "paperclip";
51
+ if (input.strategy === "run")
52
+ return `paperclip:run:${input.runId}`;
53
+ if (input.strategy === "issue" && input.issueId)
54
+ return `paperclip:issue:${input.issueId}`;
55
+ return fallback;
56
+ }
57
+ function isLoopbackHost(hostname) {
58
+ const value = hostname.trim().toLowerCase();
59
+ return value === "localhost" || value === "127.0.0.1" || value === "::1";
60
+ }
61
+ function toStringRecord(value) {
62
+ const parsed = parseObject(value);
63
+ const out = {};
64
+ for (const [key, entry] of Object.entries(parsed)) {
65
+ if (typeof entry === "string")
66
+ out[key] = entry;
67
+ }
68
+ return out;
69
+ }
70
+ function toStringArray(value) {
71
+ if (Array.isArray(value)) {
72
+ return value
73
+ .filter((entry) => typeof entry === "string")
74
+ .map((entry) => entry.trim())
75
+ .filter(Boolean);
76
+ }
77
+ if (typeof value === "string") {
78
+ return value
79
+ .split(",")
80
+ .map((entry) => entry.trim())
81
+ .filter(Boolean);
82
+ }
83
+ return [];
84
+ }
85
+ function normalizeScopes(value) {
86
+ const parsed = toStringArray(value);
87
+ return parsed.length > 0 ? parsed : [...DEFAULT_SCOPES];
88
+ }
89
+ function uniqueScopes(scopes) {
90
+ return Array.from(new Set(scopes.map((scope) => scope.trim()).filter(Boolean)));
91
+ }
92
+ function headerMapGetIgnoreCase(headers, key) {
93
+ const match = Object.entries(headers).find(([entryKey]) => entryKey.toLowerCase() === key.toLowerCase());
94
+ return match ? match[1] : null;
95
+ }
96
+ function headerMapHasIgnoreCase(headers, key) {
97
+ return Object.keys(headers).some((entryKey) => entryKey.toLowerCase() === key.toLowerCase());
98
+ }
99
+ function getGatewayErrorDetails(err) {
100
+ if (!err || typeof err !== "object")
101
+ return null;
102
+ const candidate = err.gatewayDetails;
103
+ return asRecord(candidate);
104
+ }
105
+ function extractPairingRequestId(err) {
106
+ const details = getGatewayErrorDetails(err);
107
+ const fromDetails = nonEmpty(details?.requestId);
108
+ if (fromDetails)
109
+ return fromDetails;
110
+ const message = err instanceof Error ? err.message : String(err);
111
+ const match = message.match(/requestId\s*[:=]\s*([A-Za-z0-9_-]+)/i);
112
+ return match?.[1] ?? null;
113
+ }
114
+ function toAuthorizationHeaderValue(rawToken) {
115
+ const trimmed = rawToken.trim();
116
+ if (!trimmed)
117
+ return trimmed;
118
+ return /^bearer\s+/i.test(trimmed) ? trimmed : `Bearer ${trimmed}`;
119
+ }
120
+ function tokenFromAuthHeader(rawHeader) {
121
+ if (!rawHeader)
122
+ return null;
123
+ const trimmed = rawHeader.trim();
124
+ if (!trimmed)
125
+ return null;
126
+ const match = trimmed.match(/^bearer\s+(.+)$/i);
127
+ return match ? nonEmpty(match[1]) : trimmed;
128
+ }
129
+ function resolveAuthToken(config, headers) {
130
+ const explicit = nonEmpty(config.authToken) ?? nonEmpty(config.token);
131
+ if (explicit)
132
+ return explicit;
133
+ const tokenHeader = headerMapGetIgnoreCase(headers, "x-openclaw-token");
134
+ if (nonEmpty(tokenHeader))
135
+ return nonEmpty(tokenHeader);
136
+ const authHeader = headerMapGetIgnoreCase(headers, "x-openclaw-auth") ??
137
+ headerMapGetIgnoreCase(headers, "authorization");
138
+ return tokenFromAuthHeader(authHeader);
139
+ }
140
+ function isSensitiveLogKey(key) {
141
+ return SENSITIVE_LOG_KEY_PATTERN.test(key.trim());
142
+ }
143
+ function sha256Prefix(value) {
144
+ return crypto.createHash("sha256").update(value).digest("hex").slice(0, 12);
145
+ }
146
+ function redactSecretForLog(value) {
147
+ return `[redacted len=${value.length} sha256=${sha256Prefix(value)}]`;
148
+ }
149
+ function truncateForLog(value, maxChars = 320) {
150
+ if (value.length <= maxChars)
151
+ return value;
152
+ return `${value.slice(0, maxChars)}... [truncated ${value.length - maxChars} chars]`;
153
+ }
154
+ function redactForLog(value, keyPath = [], depth = 0) {
155
+ const currentKey = keyPath[keyPath.length - 1] ?? "";
156
+ if (typeof value === "string") {
157
+ if (isSensitiveLogKey(currentKey))
158
+ return redactSecretForLog(value);
159
+ return truncateForLog(value);
160
+ }
161
+ if (typeof value === "number" || typeof value === "boolean" || value == null) {
162
+ return value;
163
+ }
164
+ if (Array.isArray(value)) {
165
+ if (depth >= 6)
166
+ return "[array-truncated]";
167
+ const out = value.slice(0, 20).map((entry, index) => redactForLog(entry, [...keyPath, `${index}`], depth + 1));
168
+ if (value.length > 20)
169
+ out.push(`[+${value.length - 20} more items]`);
170
+ return out;
171
+ }
172
+ if (typeof value === "object") {
173
+ if (depth >= 6)
174
+ return "[object-truncated]";
175
+ const entries = Object.entries(value);
176
+ const out = {};
177
+ for (const [key, entry] of entries.slice(0, 80)) {
178
+ out[key] = redactForLog(entry, [...keyPath, key], depth + 1);
179
+ }
180
+ if (entries.length > 80) {
181
+ out.__truncated__ = `+${entries.length - 80} keys`;
182
+ }
183
+ return out;
184
+ }
185
+ return String(value);
186
+ }
187
+ function stringifyForLog(value, maxChars) {
188
+ const text = JSON.stringify(value);
189
+ if (text.length <= maxChars)
190
+ return text;
191
+ return `${text.slice(0, maxChars)}... [truncated ${text.length - maxChars} chars]`;
192
+ }
193
+ function buildWakePayload(ctx) {
194
+ const { runId, agent, context } = ctx;
195
+ return {
196
+ runId,
197
+ agentId: agent.id,
198
+ companyId: agent.companyId,
199
+ taskId: nonEmpty(context.taskId) ?? nonEmpty(context.issueId),
200
+ issueId: nonEmpty(context.issueId),
201
+ wakeReason: nonEmpty(context.wakeReason),
202
+ wakeCommentId: nonEmpty(context.wakeCommentId) ?? nonEmpty(context.commentId),
203
+ approvalId: nonEmpty(context.approvalId),
204
+ approvalStatus: nonEmpty(context.approvalStatus),
205
+ issueIds: Array.isArray(context.issueIds)
206
+ ? context.issueIds.filter((value) => typeof value === "string" && value.trim().length > 0)
207
+ : [],
208
+ };
209
+ }
210
+ function resolvePaperclipApiUrlOverride(value) {
211
+ const raw = nonEmpty(value);
212
+ if (!raw)
213
+ return null;
214
+ try {
215
+ const parsed = new URL(raw);
216
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:")
217
+ return null;
218
+ return parsed.toString();
219
+ }
220
+ catch {
221
+ return null;
222
+ }
223
+ }
224
+ function buildPaperclipEnvForWake(ctx, wakePayload) {
225
+ const paperclipApiUrlOverride = resolvePaperclipApiUrlOverride(ctx.config.paperclipApiUrl);
226
+ const paperclipEnv = {
227
+ ...buildPaperclipEnv(ctx.agent),
228
+ PAPERCLIP_RUN_ID: ctx.runId,
229
+ };
230
+ if (paperclipApiUrlOverride) {
231
+ paperclipEnv.PAPERCLIP_API_URL = paperclipApiUrlOverride;
232
+ }
233
+ if (wakePayload.taskId)
234
+ paperclipEnv.PAPERCLIP_TASK_ID = wakePayload.taskId;
235
+ if (wakePayload.wakeReason)
236
+ paperclipEnv.PAPERCLIP_WAKE_REASON = wakePayload.wakeReason;
237
+ if (wakePayload.wakeCommentId)
238
+ paperclipEnv.PAPERCLIP_WAKE_COMMENT_ID = wakePayload.wakeCommentId;
239
+ if (wakePayload.approvalId)
240
+ paperclipEnv.PAPERCLIP_APPROVAL_ID = wakePayload.approvalId;
241
+ if (wakePayload.approvalStatus)
242
+ paperclipEnv.PAPERCLIP_APPROVAL_STATUS = wakePayload.approvalStatus;
243
+ if (wakePayload.issueIds.length > 0) {
244
+ paperclipEnv.PAPERCLIP_LINKED_ISSUE_IDS = wakePayload.issueIds.join(",");
245
+ }
246
+ return paperclipEnv;
247
+ }
248
+ function buildWakeText(payload, paperclipEnv) {
249
+ const claimedApiKeyPath = "~/.openclaw/workspace/paperclip-claimed-api-key.json";
250
+ const orderedKeys = [
251
+ "PAPERCLIP_RUN_ID",
252
+ "PAPERCLIP_AGENT_ID",
253
+ "PAPERCLIP_COMPANY_ID",
254
+ "PAPERCLIP_API_URL",
255
+ "PAPERCLIP_TASK_ID",
256
+ "PAPERCLIP_WAKE_REASON",
257
+ "PAPERCLIP_WAKE_COMMENT_ID",
258
+ "PAPERCLIP_APPROVAL_ID",
259
+ "PAPERCLIP_APPROVAL_STATUS",
260
+ "PAPERCLIP_LINKED_ISSUE_IDS",
261
+ ];
262
+ const envLines = [];
263
+ for (const key of orderedKeys) {
264
+ const value = paperclipEnv[key];
265
+ if (!value)
266
+ continue;
267
+ envLines.push(`${key}=${value}`);
268
+ }
269
+ const issueIdHint = payload.taskId ?? payload.issueId ?? "";
270
+ const apiBaseHint = paperclipEnv.PAPERCLIP_API_URL ?? "<set PAPERCLIP_API_URL>";
271
+ const lines = [
272
+ "Paperclip wake event for a cloud adapter.",
273
+ "",
274
+ "Run this procedure now. Do not guess undocumented endpoints and do not ask for additional heartbeat docs.",
275
+ "",
276
+ "Set these values in your run context:",
277
+ ...envLines,
278
+ `PAPERCLIP_API_KEY=<token from ${claimedApiKeyPath}>`,
279
+ "",
280
+ `Load PAPERCLIP_API_KEY from ${claimedApiKeyPath} (the token you saved after claim-api-key).`,
281
+ "",
282
+ `api_base=${apiBaseHint}`,
283
+ `task_id=${payload.taskId ?? ""}`,
284
+ `issue_id=${payload.issueId ?? ""}`,
285
+ `wake_reason=${payload.wakeReason ?? ""}`,
286
+ `wake_comment_id=${payload.wakeCommentId ?? ""}`,
287
+ `approval_id=${payload.approvalId ?? ""}`,
288
+ `approval_status=${payload.approvalStatus ?? ""}`,
289
+ `linked_issue_ids=${payload.issueIds.join(",")}`,
290
+ "",
291
+ "HTTP rules:",
292
+ "- Use Authorization: Bearer $PAPERCLIP_API_KEY on every API call.",
293
+ "- Use X-Paperclip-Run-Id: $PAPERCLIP_RUN_ID on every mutating API call.",
294
+ "- Use only /api endpoints listed below.",
295
+ "- Do NOT call guessed endpoints like /api/cloud-adapter/*, /api/cloud-adapters/*, /api/adapters/cloud/*, or /api/heartbeat.",
296
+ "",
297
+ "Workflow:",
298
+ "1) GET /api/agents/me",
299
+ `2) Determine issueId: PAPERCLIP_TASK_ID if present, otherwise issue_id (${issueIdHint}).`,
300
+ "3) If issueId exists:",
301
+ " - POST /api/issues/{issueId}/checkout with {\"agentId\":\"$PAPERCLIP_AGENT_ID\",\"expectedStatuses\":[\"todo\",\"backlog\",\"blocked\"]}",
302
+ " - GET /api/issues/{issueId}",
303
+ " - GET /api/issues/{issueId}/comments",
304
+ " - Execute the issue instructions exactly.",
305
+ " - If instructions require a comment, POST /api/issues/{issueId}/comments with {\"body\":\"...\"}.",
306
+ " - PATCH /api/issues/{issueId} with {\"status\":\"done\",\"comment\":\"what changed and why\"}.",
307
+ "4) If issueId does not exist:",
308
+ " - GET /api/companies/$PAPERCLIP_COMPANY_ID/issues?assigneeAgentId=$PAPERCLIP_AGENT_ID&status=todo,in_progress,blocked",
309
+ " - Pick in_progress first, then todo, then blocked, then execute step 3.",
310
+ "",
311
+ "Useful endpoints for issue work:",
312
+ "- POST /api/issues/{issueId}/comments",
313
+ "- PATCH /api/issues/{issueId}",
314
+ "- POST /api/companies/{companyId}/issues (when asked to create a new issue)",
315
+ "",
316
+ "Complete the workflow in this run.",
317
+ ];
318
+ return lines.join("\n");
319
+ }
320
+ function appendWakeText(baseText, wakeText) {
321
+ const trimmedBase = baseText.trim();
322
+ return trimmedBase.length > 0 ? `${trimmedBase}\n\n${wakeText}` : wakeText;
323
+ }
324
+ function buildStandardPaperclipPayload(ctx, wakePayload, paperclipEnv, payloadTemplate) {
325
+ const templatePaperclip = parseObject(payloadTemplate.paperclip);
326
+ const workspace = asRecord(ctx.context.paperclipWorkspace);
327
+ const workspaces = Array.isArray(ctx.context.paperclipWorkspaces)
328
+ ? ctx.context.paperclipWorkspaces.filter((entry) => Boolean(asRecord(entry)))
329
+ : [];
330
+ const configuredWorkspaceRuntime = parseObject(ctx.config.workspaceRuntime);
331
+ const runtimeServiceIntents = Array.isArray(ctx.context.paperclipRuntimeServiceIntents)
332
+ ? ctx.context.paperclipRuntimeServiceIntents.filter((entry) => Boolean(asRecord(entry)))
333
+ : [];
334
+ const standardPaperclip = {
335
+ runId: ctx.runId,
336
+ companyId: ctx.agent.companyId,
337
+ agentId: ctx.agent.id,
338
+ agentName: ctx.agent.name,
339
+ taskId: wakePayload.taskId,
340
+ issueId: wakePayload.issueId,
341
+ issueIds: wakePayload.issueIds,
342
+ wakeReason: wakePayload.wakeReason,
343
+ wakeCommentId: wakePayload.wakeCommentId,
344
+ approvalId: wakePayload.approvalId,
345
+ approvalStatus: wakePayload.approvalStatus,
346
+ apiUrl: paperclipEnv.PAPERCLIP_API_URL ?? null,
347
+ };
348
+ if (workspace) {
349
+ standardPaperclip.workspace = workspace;
350
+ }
351
+ if (workspaces.length > 0) {
352
+ standardPaperclip.workspaces = workspaces;
353
+ }
354
+ if (runtimeServiceIntents.length > 0 || Object.keys(configuredWorkspaceRuntime).length > 0) {
355
+ standardPaperclip.workspaceRuntime = {
356
+ ...configuredWorkspaceRuntime,
357
+ ...(runtimeServiceIntents.length > 0 ? { services: runtimeServiceIntents } : {}),
358
+ };
359
+ }
360
+ return {
361
+ ...templatePaperclip,
362
+ ...standardPaperclip,
363
+ };
364
+ }
365
+ function normalizeUrl(input) {
366
+ try {
367
+ return new URL(input);
368
+ }
369
+ catch {
370
+ return null;
371
+ }
372
+ }
373
+ function rawDataToString(data) {
374
+ if (typeof data === "string")
375
+ return data;
376
+ if (Buffer.isBuffer(data))
377
+ return data.toString("utf8");
378
+ if (data instanceof ArrayBuffer)
379
+ return Buffer.from(data).toString("utf8");
380
+ if (Array.isArray(data)) {
381
+ return Buffer.concat(data.map((entry) => (Buffer.isBuffer(entry) ? entry : Buffer.from(String(entry), "utf8")))).toString("utf8");
382
+ }
383
+ return String(data ?? "");
384
+ }
385
+ function withTimeout(promise, timeoutMs, message) {
386
+ if (!Number.isFinite(timeoutMs) || timeoutMs <= 0)
387
+ return promise;
388
+ return new Promise((resolve, reject) => {
389
+ const timer = setTimeout(() => reject(new Error(message)), timeoutMs);
390
+ promise
391
+ .then((value) => {
392
+ clearTimeout(timer);
393
+ resolve(value);
394
+ })
395
+ .catch((err) => {
396
+ clearTimeout(timer);
397
+ reject(err);
398
+ });
399
+ });
400
+ }
401
+ function derivePublicKeyRaw(publicKeyPem) {
402
+ const key = crypto.createPublicKey(publicKeyPem);
403
+ const spki = key.export({ type: "spki", format: "der" });
404
+ if (spki.length === ED25519_SPKI_PREFIX.length + 32 &&
405
+ spki.subarray(0, ED25519_SPKI_PREFIX.length).equals(ED25519_SPKI_PREFIX)) {
406
+ return spki.subarray(ED25519_SPKI_PREFIX.length);
407
+ }
408
+ return spki;
409
+ }
410
+ function base64UrlEncode(buf) {
411
+ return buf.toString("base64").replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/g, "");
412
+ }
413
+ function signDevicePayload(privateKeyPem, payload) {
414
+ const key = crypto.createPrivateKey(privateKeyPem);
415
+ const sig = crypto.sign(null, Buffer.from(payload, "utf8"), key);
416
+ return base64UrlEncode(sig);
417
+ }
418
+ function buildDeviceAuthPayloadV3(params) {
419
+ const scopes = params.scopes.join(",");
420
+ const token = params.token ?? "";
421
+ const platform = params.platform?.trim() ?? "";
422
+ const deviceFamily = params.deviceFamily?.trim() ?? "";
423
+ return [
424
+ "v3",
425
+ params.deviceId,
426
+ params.clientId,
427
+ params.clientMode,
428
+ params.role,
429
+ scopes,
430
+ String(params.signedAtMs),
431
+ token,
432
+ params.nonce,
433
+ platform,
434
+ deviceFamily,
435
+ ].join("|");
436
+ }
437
+ function resolveDeviceIdentity(config) {
438
+ const configuredPrivateKey = nonEmpty(config.devicePrivateKeyPem);
439
+ if (configuredPrivateKey) {
440
+ const privateKey = crypto.createPrivateKey(configuredPrivateKey);
441
+ const publicKey = crypto.createPublicKey(privateKey);
442
+ const publicKeyPem = publicKey.export({ type: "spki", format: "pem" }).toString();
443
+ const raw = derivePublicKeyRaw(publicKeyPem);
444
+ return {
445
+ deviceId: crypto.createHash("sha256").update(raw).digest("hex"),
446
+ publicKeyRawBase64Url: base64UrlEncode(raw),
447
+ privateKeyPem: configuredPrivateKey,
448
+ source: "configured",
449
+ };
450
+ }
451
+ const generated = crypto.generateKeyPairSync("ed25519");
452
+ const publicKeyPem = generated.publicKey.export({ type: "spki", format: "pem" }).toString();
453
+ const privateKeyPem = generated.privateKey.export({ type: "pkcs8", format: "pem" }).toString();
454
+ const raw = derivePublicKeyRaw(publicKeyPem);
455
+ return {
456
+ deviceId: crypto.createHash("sha256").update(raw).digest("hex"),
457
+ publicKeyRawBase64Url: base64UrlEncode(raw),
458
+ privateKeyPem,
459
+ source: "ephemeral",
460
+ };
461
+ }
462
+ function isResponseFrame(value) {
463
+ const record = asRecord(value);
464
+ return Boolean(record && record.type === "res" && typeof record.id === "string" && typeof record.ok === "boolean");
465
+ }
466
+ function isEventFrame(value) {
467
+ const record = asRecord(value);
468
+ return Boolean(record && record.type === "event" && typeof record.event === "string");
469
+ }
470
+ class GatewayWsClient {
471
+ opts;
472
+ ws = null;
473
+ pending = new Map();
474
+ challengePromise;
475
+ resolveChallenge;
476
+ rejectChallenge;
477
+ constructor(opts) {
478
+ this.opts = opts;
479
+ this.challengePromise = new Promise((resolve, reject) => {
480
+ this.resolveChallenge = resolve;
481
+ this.rejectChallenge = reject;
482
+ });
483
+ this.challengePromise.catch(() => { });
484
+ }
485
+ async connect(buildConnectParams, timeoutMs) {
486
+ this.ws = new WebSocket(this.opts.url, {
487
+ headers: this.opts.headers,
488
+ maxPayload: 25 * 1024 * 1024,
489
+ });
490
+ const ws = this.ws;
491
+ ws.on("message", (data) => {
492
+ this.handleMessage(rawDataToString(data));
493
+ });
494
+ ws.on("close", (code, reason) => {
495
+ const reasonText = rawDataToString(reason);
496
+ const err = new Error(`gateway closed (${code}): ${reasonText}`);
497
+ this.failPending(err);
498
+ this.rejectChallenge(err);
499
+ });
500
+ ws.on("error", (err) => {
501
+ const message = err instanceof Error ? err.message : String(err);
502
+ void this.opts.onLog("stderr", `[openclaw-gateway] websocket error: ${message}\n`);
503
+ });
504
+ await withTimeout(new Promise((resolve, reject) => {
505
+ const onOpen = () => {
506
+ cleanup();
507
+ resolve();
508
+ };
509
+ const onError = (err) => {
510
+ cleanup();
511
+ reject(err);
512
+ };
513
+ const onClose = (code, reason) => {
514
+ cleanup();
515
+ reject(new Error(`gateway closed before open (${code}): ${rawDataToString(reason)}`));
516
+ };
517
+ const cleanup = () => {
518
+ ws.off("open", onOpen);
519
+ ws.off("error", onError);
520
+ ws.off("close", onClose);
521
+ };
522
+ ws.once("open", onOpen);
523
+ ws.once("error", onError);
524
+ ws.once("close", onClose);
525
+ }), timeoutMs, "gateway websocket open timeout");
526
+ const nonce = await withTimeout(this.challengePromise, timeoutMs, "gateway connect challenge timeout");
527
+ const signedConnectParams = buildConnectParams(nonce);
528
+ const hello = await this.request("connect", signedConnectParams, {
529
+ timeoutMs,
530
+ });
531
+ return hello;
532
+ }
533
+ async request(method, params, opts) {
534
+ if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
535
+ throw new Error("gateway not connected");
536
+ }
537
+ const id = randomUUID();
538
+ const frame = {
539
+ type: "req",
540
+ id,
541
+ method,
542
+ params,
543
+ };
544
+ const payload = JSON.stringify(frame);
545
+ const requestPromise = new Promise((resolve, reject) => {
546
+ const timer = opts.timeoutMs > 0
547
+ ? setTimeout(() => {
548
+ this.pending.delete(id);
549
+ reject(new Error(`gateway request timeout (${method})`));
550
+ }, opts.timeoutMs)
551
+ : null;
552
+ this.pending.set(id, {
553
+ resolve: (value) => resolve(value),
554
+ reject,
555
+ expectFinal: opts.expectFinal === true,
556
+ timer,
557
+ });
558
+ });
559
+ this.ws.send(payload);
560
+ return requestPromise;
561
+ }
562
+ close() {
563
+ if (!this.ws)
564
+ return;
565
+ this.ws.close(1000, "paperclip-complete");
566
+ this.ws = null;
567
+ }
568
+ failPending(err) {
569
+ for (const [, pending] of this.pending) {
570
+ if (pending.timer)
571
+ clearTimeout(pending.timer);
572
+ pending.reject(err);
573
+ }
574
+ this.pending.clear();
575
+ }
576
+ handleMessage(raw) {
577
+ let parsed;
578
+ try {
579
+ parsed = JSON.parse(raw);
580
+ }
581
+ catch {
582
+ return;
583
+ }
584
+ if (isEventFrame(parsed)) {
585
+ if (parsed.event === "connect.challenge") {
586
+ const payload = asRecord(parsed.payload);
587
+ const nonce = nonEmpty(payload?.nonce);
588
+ if (nonce) {
589
+ this.resolveChallenge(nonce);
590
+ return;
591
+ }
592
+ }
593
+ void Promise.resolve(this.opts.onEvent(parsed)).catch(() => {
594
+ // Ignore event callback failures and keep stream active.
595
+ });
596
+ return;
597
+ }
598
+ if (!isResponseFrame(parsed))
599
+ return;
600
+ const pending = this.pending.get(parsed.id);
601
+ if (!pending)
602
+ return;
603
+ const payload = asRecord(parsed.payload);
604
+ const status = nonEmpty(payload?.status)?.toLowerCase();
605
+ if (pending.expectFinal && status === "accepted") {
606
+ return;
607
+ }
608
+ if (pending.timer)
609
+ clearTimeout(pending.timer);
610
+ this.pending.delete(parsed.id);
611
+ if (parsed.ok) {
612
+ pending.resolve(parsed.payload ?? null);
613
+ return;
614
+ }
615
+ const errorRecord = asRecord(parsed.error);
616
+ const message = nonEmpty(errorRecord?.message) ??
617
+ nonEmpty(errorRecord?.code) ??
618
+ "gateway request failed";
619
+ const err = new Error(message);
620
+ const code = nonEmpty(errorRecord?.code);
621
+ const details = asRecord(errorRecord?.details);
622
+ if (code)
623
+ err.gatewayCode = code;
624
+ if (details)
625
+ err.gatewayDetails = details;
626
+ pending.reject(err);
627
+ }
628
+ }
629
+ async function autoApproveDevicePairing(params) {
630
+ if (!params.authToken && !params.password) {
631
+ return { ok: false, reason: "shared auth token/password is missing" };
632
+ }
633
+ const approvalScopes = uniqueScopes([...params.scopes, "operator.pairing"]);
634
+ const client = new GatewayWsClient({
635
+ url: params.url,
636
+ headers: params.headers,
637
+ onEvent: () => { },
638
+ onLog: params.onLog,
639
+ });
640
+ try {
641
+ await params.onLog("stdout", "[openclaw-gateway] pairing required; attempting automatic pairing approval via gateway methods\n");
642
+ await client.connect(() => ({
643
+ minProtocol: PROTOCOL_VERSION,
644
+ maxProtocol: PROTOCOL_VERSION,
645
+ client: {
646
+ id: params.clientId,
647
+ version: params.clientVersion,
648
+ platform: process.platform,
649
+ mode: params.clientMode,
650
+ },
651
+ role: params.role,
652
+ scopes: approvalScopes,
653
+ auth: {
654
+ ...(params.authToken ? { token: params.authToken } : {}),
655
+ ...(params.password ? { password: params.password } : {}),
656
+ },
657
+ }), params.connectTimeoutMs);
658
+ let requestId = params.requestId;
659
+ if (!requestId) {
660
+ const listPayload = await client.request("device.pair.list", {}, {
661
+ timeoutMs: params.connectTimeoutMs,
662
+ });
663
+ const pending = Array.isArray(listPayload.pending) ? listPayload.pending : [];
664
+ const pendingRecords = pending
665
+ .map((entry) => asRecord(entry))
666
+ .filter((entry) => Boolean(entry));
667
+ const matching = (params.deviceId
668
+ ? pendingRecords.find((entry) => nonEmpty(entry.deviceId) === params.deviceId)
669
+ : null) ?? pendingRecords[pendingRecords.length - 1];
670
+ requestId = nonEmpty(matching?.requestId);
671
+ }
672
+ if (!requestId) {
673
+ return { ok: false, reason: "no pending device pairing request found" };
674
+ }
675
+ await client.request("device.pair.approve", { requestId }, {
676
+ timeoutMs: params.connectTimeoutMs,
677
+ });
678
+ return { ok: true, requestId };
679
+ }
680
+ catch (err) {
681
+ return { ok: false, reason: err instanceof Error ? err.message : String(err) };
682
+ }
683
+ finally {
684
+ client.close();
685
+ }
686
+ }
687
+ function parseUsage(value) {
688
+ const record = asRecord(value);
689
+ if (!record)
690
+ return undefined;
691
+ const inputTokens = asNumber(record.inputTokens ?? record.input, 0);
692
+ const outputTokens = asNumber(record.outputTokens ?? record.output, 0);
693
+ const cachedInputTokens = asNumber(record.cachedInputTokens ?? record.cached_input_tokens ?? record.cacheRead ?? record.cache_read, 0);
694
+ if (inputTokens <= 0 && outputTokens <= 0 && cachedInputTokens <= 0) {
695
+ return undefined;
696
+ }
697
+ return {
698
+ inputTokens,
699
+ outputTokens,
700
+ ...(cachedInputTokens > 0 ? { cachedInputTokens } : {}),
701
+ };
702
+ }
703
+ function extractRuntimeServicesFromMeta(meta) {
704
+ if (!meta)
705
+ return [];
706
+ const reports = [];
707
+ const runtimeServices = Array.isArray(meta.runtimeServices)
708
+ ? meta.runtimeServices.filter((entry) => Boolean(asRecord(entry)))
709
+ : [];
710
+ for (const entry of runtimeServices) {
711
+ const serviceName = nonEmpty(entry.serviceName) ?? nonEmpty(entry.name);
712
+ if (!serviceName)
713
+ continue;
714
+ const rawStatus = nonEmpty(entry.status)?.toLowerCase();
715
+ const status = rawStatus === "starting" || rawStatus === "running" || rawStatus === "stopped" || rawStatus === "failed"
716
+ ? rawStatus
717
+ : "running";
718
+ const rawLifecycle = nonEmpty(entry.lifecycle)?.toLowerCase();
719
+ const lifecycle = rawLifecycle === "shared" ? "shared" : "ephemeral";
720
+ const rawScopeType = nonEmpty(entry.scopeType)?.toLowerCase();
721
+ const scopeType = rawScopeType === "project_workspace" ||
722
+ rawScopeType === "execution_workspace" ||
723
+ rawScopeType === "agent"
724
+ ? rawScopeType
725
+ : "run";
726
+ const rawHealth = nonEmpty(entry.healthStatus)?.toLowerCase();
727
+ const healthStatus = rawHealth === "healthy" || rawHealth === "unhealthy" || rawHealth === "unknown"
728
+ ? rawHealth
729
+ : status === "running"
730
+ ? "healthy"
731
+ : "unknown";
732
+ reports.push({
733
+ id: nonEmpty(entry.id),
734
+ projectId: nonEmpty(entry.projectId),
735
+ projectWorkspaceId: nonEmpty(entry.projectWorkspaceId),
736
+ issueId: nonEmpty(entry.issueId),
737
+ scopeType,
738
+ scopeId: nonEmpty(entry.scopeId),
739
+ serviceName,
740
+ status,
741
+ lifecycle,
742
+ reuseKey: nonEmpty(entry.reuseKey),
743
+ command: nonEmpty(entry.command),
744
+ cwd: nonEmpty(entry.cwd),
745
+ port: parseOptionalPositiveInteger(entry.port),
746
+ url: nonEmpty(entry.url),
747
+ providerRef: nonEmpty(entry.providerRef) ?? nonEmpty(entry.previewId),
748
+ ownerAgentId: nonEmpty(entry.ownerAgentId),
749
+ stopPolicy: asRecord(entry.stopPolicy),
750
+ healthStatus,
751
+ });
752
+ }
753
+ const previewUrl = nonEmpty(meta.previewUrl);
754
+ if (previewUrl) {
755
+ reports.push({
756
+ serviceName: "preview",
757
+ status: "running",
758
+ lifecycle: "ephemeral",
759
+ scopeType: "run",
760
+ url: previewUrl,
761
+ providerRef: nonEmpty(meta.previewId) ?? previewUrl,
762
+ healthStatus: "healthy",
763
+ });
764
+ }
765
+ const previewUrls = Array.isArray(meta.previewUrls)
766
+ ? meta.previewUrls.filter((entry) => typeof entry === "string" && entry.trim().length > 0)
767
+ : [];
768
+ previewUrls.forEach((url, index) => {
769
+ reports.push({
770
+ serviceName: index === 0 ? "preview" : `preview-${index + 1}`,
771
+ status: "running",
772
+ lifecycle: "ephemeral",
773
+ scopeType: "run",
774
+ url,
775
+ providerRef: `${url}#${index}`,
776
+ healthStatus: "healthy",
777
+ });
778
+ });
779
+ return reports;
780
+ }
781
+ function extractResultText(value) {
782
+ const record = asRecord(value);
783
+ if (!record)
784
+ return null;
785
+ const payloads = Array.isArray(record.payloads) ? record.payloads : [];
786
+ const texts = payloads
787
+ .map((entry) => {
788
+ const payload = asRecord(entry);
789
+ return nonEmpty(payload?.text);
790
+ })
791
+ .filter((entry) => Boolean(entry));
792
+ if (texts.length > 0)
793
+ return texts.join("\n\n");
794
+ return nonEmpty(record.text) ?? nonEmpty(record.summary) ?? null;
795
+ }
796
+ export async function execute(ctx) {
797
+ const urlValue = asString(ctx.config.url, "").trim();
798
+ if (!urlValue) {
799
+ return {
800
+ exitCode: 1,
801
+ signal: null,
802
+ timedOut: false,
803
+ errorMessage: "OpenClaw gateway adapter missing url",
804
+ errorCode: "openclaw_gateway_url_missing",
805
+ };
806
+ }
807
+ const parsedUrl = normalizeUrl(urlValue);
808
+ if (!parsedUrl) {
809
+ return {
810
+ exitCode: 1,
811
+ signal: null,
812
+ timedOut: false,
813
+ errorMessage: `Invalid gateway URL: ${urlValue}`,
814
+ errorCode: "openclaw_gateway_url_invalid",
815
+ };
816
+ }
817
+ if (parsedUrl.protocol !== "ws:" && parsedUrl.protocol !== "wss:") {
818
+ return {
819
+ exitCode: 1,
820
+ signal: null,
821
+ timedOut: false,
822
+ errorMessage: `Unsupported gateway URL protocol: ${parsedUrl.protocol}`,
823
+ errorCode: "openclaw_gateway_url_protocol",
824
+ };
825
+ }
826
+ const timeoutSec = Math.max(0, Math.floor(asNumber(ctx.config.timeoutSec, 120)));
827
+ const timeoutMs = timeoutSec > 0 ? timeoutSec * 1000 : 0;
828
+ const connectTimeoutMs = timeoutMs > 0 ? Math.min(timeoutMs, 15_000) : 10_000;
829
+ const waitTimeoutMs = parseOptionalPositiveInteger(ctx.config.waitTimeoutMs) ?? (timeoutMs > 0 ? timeoutMs : 30_000);
830
+ const payloadTemplate = parseObject(ctx.config.payloadTemplate);
831
+ const transportHint = nonEmpty(ctx.config.streamTransport) ?? nonEmpty(ctx.config.transport);
832
+ const headers = toStringRecord(ctx.config.headers);
833
+ const authToken = resolveAuthToken(parseObject(ctx.config), headers);
834
+ const password = nonEmpty(ctx.config.password);
835
+ const deviceToken = nonEmpty(ctx.config.deviceToken);
836
+ if (authToken && !headerMapHasIgnoreCase(headers, "authorization")) {
837
+ headers.authorization = toAuthorizationHeaderValue(authToken);
838
+ }
839
+ const clientId = nonEmpty(ctx.config.clientId) ?? DEFAULT_CLIENT_ID;
840
+ const clientMode = nonEmpty(ctx.config.clientMode) ?? DEFAULT_CLIENT_MODE;
841
+ const clientVersion = nonEmpty(ctx.config.clientVersion) ?? DEFAULT_CLIENT_VERSION;
842
+ const role = nonEmpty(ctx.config.role) ?? DEFAULT_ROLE;
843
+ const scopes = normalizeScopes(ctx.config.scopes);
844
+ const deviceFamily = nonEmpty(ctx.config.deviceFamily);
845
+ const disableDeviceAuth = parseBoolean(ctx.config.disableDeviceAuth, false);
846
+ const wakePayload = buildWakePayload(ctx);
847
+ const paperclipEnv = buildPaperclipEnvForWake(ctx, wakePayload);
848
+ const wakeText = buildWakeText(wakePayload, paperclipEnv);
849
+ const sessionKeyStrategy = normalizeSessionKeyStrategy(ctx.config.sessionKeyStrategy);
850
+ const configuredSessionKey = nonEmpty(ctx.config.sessionKey);
851
+ const sessionKey = resolveSessionKey({
852
+ strategy: sessionKeyStrategy,
853
+ configuredSessionKey,
854
+ runId: ctx.runId,
855
+ issueId: wakePayload.issueId,
856
+ });
857
+ const templateMessage = nonEmpty(payloadTemplate.message) ?? nonEmpty(payloadTemplate.text);
858
+ const message = templateMessage ? appendWakeText(templateMessage, wakeText) : wakeText;
859
+ const paperclipPayload = buildStandardPaperclipPayload(ctx, wakePayload, paperclipEnv, payloadTemplate);
860
+ const agentParams = {
861
+ ...payloadTemplate,
862
+ message,
863
+ sessionKey,
864
+ idempotencyKey: ctx.runId,
865
+ };
866
+ delete agentParams.text;
867
+ const configuredAgentId = nonEmpty(ctx.config.agentId);
868
+ if (configuredAgentId && !nonEmpty(agentParams.agentId)) {
869
+ agentParams.agentId = configuredAgentId;
870
+ }
871
+ if (typeof agentParams.timeout !== "number") {
872
+ agentParams.timeout = waitTimeoutMs;
873
+ }
874
+ if (ctx.onMeta) {
875
+ await ctx.onMeta({
876
+ adapterType: "openclaw_gateway",
877
+ command: "gateway",
878
+ commandArgs: ["ws", parsedUrl.toString(), "agent"],
879
+ context: ctx.context,
880
+ });
881
+ }
882
+ const outboundHeaderKeys = Object.keys(headers).sort();
883
+ await ctx.onLog("stdout", `[openclaw-gateway] outbound headers (redacted): ${stringifyForLog(redactForLog(headers), 4_000)}\n`);
884
+ await ctx.onLog("stdout", `[openclaw-gateway] outbound payload (redacted): ${stringifyForLog(redactForLog(agentParams), 12_000)}\n`);
885
+ await ctx.onLog("stdout", `[openclaw-gateway] outbound header keys: ${outboundHeaderKeys.join(", ")}\n`);
886
+ if (transportHint) {
887
+ await ctx.onLog("stdout", `[openclaw-gateway] ignoring streamTransport=${transportHint}; gateway adapter always uses websocket protocol\n`);
888
+ }
889
+ if (parsedUrl.protocol === "ws:" && !isLoopbackHost(parsedUrl.hostname)) {
890
+ await ctx.onLog("stdout", "[openclaw-gateway] warning: using plaintext ws:// to a non-loopback host; prefer wss:// for remote endpoints\n");
891
+ }
892
+ const autoPairOnFirstConnect = parseBoolean(ctx.config.autoPairOnFirstConnect, true);
893
+ let autoPairAttempted = false;
894
+ let latestResultPayload = null;
895
+ while (true) {
896
+ const trackedRunIds = new Set([ctx.runId]);
897
+ const assistantChunks = [];
898
+ let lifecycleError = null;
899
+ let deviceIdentity = null;
900
+ const onEvent = async (frame) => {
901
+ if (frame.event !== "agent") {
902
+ if (frame.event === "shutdown") {
903
+ await ctx.onLog("stdout", `[openclaw-gateway] gateway shutdown notice: ${stringifyForLog(frame.payload ?? {}, 2_000)}\n`);
904
+ }
905
+ return;
906
+ }
907
+ const payload = asRecord(frame.payload);
908
+ if (!payload)
909
+ return;
910
+ const runId = nonEmpty(payload.runId);
911
+ if (!runId || !trackedRunIds.has(runId))
912
+ return;
913
+ const stream = nonEmpty(payload.stream) ?? "unknown";
914
+ const data = asRecord(payload.data) ?? {};
915
+ await ctx.onLog("stdout", `[openclaw-gateway:event] run=${runId} stream=${stream} data=${stringifyForLog(data, 8_000)}\n`);
916
+ if (stream === "assistant") {
917
+ const delta = nonEmpty(data.delta);
918
+ const text = nonEmpty(data.text);
919
+ if (delta) {
920
+ assistantChunks.push(delta);
921
+ }
922
+ else if (text) {
923
+ assistantChunks.push(text);
924
+ }
925
+ return;
926
+ }
927
+ if (stream === "error") {
928
+ lifecycleError = nonEmpty(data.error) ?? nonEmpty(data.message) ?? lifecycleError;
929
+ return;
930
+ }
931
+ if (stream === "lifecycle") {
932
+ const phase = nonEmpty(data.phase)?.toLowerCase();
933
+ if (phase === "error" || phase === "failed" || phase === "cancelled") {
934
+ lifecycleError = nonEmpty(data.error) ?? nonEmpty(data.message) ?? lifecycleError;
935
+ }
936
+ }
937
+ };
938
+ const client = new GatewayWsClient({
939
+ url: parsedUrl.toString(),
940
+ headers,
941
+ onEvent,
942
+ onLog: ctx.onLog,
943
+ });
944
+ try {
945
+ deviceIdentity = disableDeviceAuth ? null : resolveDeviceIdentity(parseObject(ctx.config));
946
+ if (deviceIdentity) {
947
+ await ctx.onLog("stdout", `[openclaw-gateway] device auth enabled keySource=${deviceIdentity.source} deviceId=${deviceIdentity.deviceId}\n`);
948
+ }
949
+ else {
950
+ await ctx.onLog("stdout", "[openclaw-gateway] device auth disabled\n");
951
+ }
952
+ await ctx.onLog("stdout", `[openclaw-gateway] connecting to ${parsedUrl.toString()}\n`);
953
+ const hello = await client.connect((nonce) => {
954
+ const signedAtMs = Date.now();
955
+ const connectParams = {
956
+ minProtocol: PROTOCOL_VERSION,
957
+ maxProtocol: PROTOCOL_VERSION,
958
+ client: {
959
+ id: clientId,
960
+ version: clientVersion,
961
+ platform: process.platform,
962
+ ...(deviceFamily ? { deviceFamily } : {}),
963
+ mode: clientMode,
964
+ },
965
+ role,
966
+ scopes,
967
+ auth: authToken || password || deviceToken
968
+ ? {
969
+ ...(authToken ? { token: authToken } : {}),
970
+ ...(deviceToken ? { deviceToken } : {}),
971
+ ...(password ? { password } : {}),
972
+ }
973
+ : undefined,
974
+ };
975
+ if (deviceIdentity) {
976
+ const payload = buildDeviceAuthPayloadV3({
977
+ deviceId: deviceIdentity.deviceId,
978
+ clientId,
979
+ clientMode,
980
+ role,
981
+ scopes,
982
+ signedAtMs,
983
+ token: authToken,
984
+ nonce,
985
+ platform: process.platform,
986
+ deviceFamily,
987
+ });
988
+ connectParams.device = {
989
+ id: deviceIdentity.deviceId,
990
+ publicKey: deviceIdentity.publicKeyRawBase64Url,
991
+ signature: signDevicePayload(deviceIdentity.privateKeyPem, payload),
992
+ signedAt: signedAtMs,
993
+ nonce,
994
+ };
995
+ }
996
+ return connectParams;
997
+ }, connectTimeoutMs);
998
+ await ctx.onLog("stdout", `[openclaw-gateway] connected protocol=${asNumber(asRecord(hello)?.protocol, PROTOCOL_VERSION)}\n`);
999
+ const acceptedPayload = await client.request("agent", agentParams, {
1000
+ timeoutMs: connectTimeoutMs,
1001
+ });
1002
+ latestResultPayload = acceptedPayload;
1003
+ const acceptedStatus = nonEmpty(acceptedPayload?.status)?.toLowerCase() ?? "";
1004
+ const acceptedRunId = nonEmpty(acceptedPayload?.runId) ?? ctx.runId;
1005
+ trackedRunIds.add(acceptedRunId);
1006
+ await ctx.onLog("stdout", `[openclaw-gateway] agent accepted runId=${acceptedRunId} status=${acceptedStatus || "unknown"}\n`);
1007
+ if (acceptedStatus === "error") {
1008
+ const errorMessage = nonEmpty(acceptedPayload?.summary) ?? lifecycleError ?? "OpenClaw gateway agent request failed";
1009
+ return {
1010
+ exitCode: 1,
1011
+ signal: null,
1012
+ timedOut: false,
1013
+ errorMessage,
1014
+ errorCode: "openclaw_gateway_agent_error",
1015
+ resultJson: acceptedPayload,
1016
+ };
1017
+ }
1018
+ if (acceptedStatus !== "ok") {
1019
+ const waitPayload = await client.request("agent.wait", { runId: acceptedRunId, timeoutMs: waitTimeoutMs }, { timeoutMs: waitTimeoutMs + connectTimeoutMs });
1020
+ latestResultPayload = waitPayload;
1021
+ const waitStatus = nonEmpty(waitPayload?.status)?.toLowerCase() ?? "";
1022
+ if (waitStatus === "timeout") {
1023
+ return {
1024
+ exitCode: 1,
1025
+ signal: null,
1026
+ timedOut: true,
1027
+ errorMessage: `OpenClaw gateway run timed out after ${waitTimeoutMs}ms`,
1028
+ errorCode: "openclaw_gateway_wait_timeout",
1029
+ resultJson: waitPayload,
1030
+ };
1031
+ }
1032
+ if (waitStatus === "error") {
1033
+ return {
1034
+ exitCode: 1,
1035
+ signal: null,
1036
+ timedOut: false,
1037
+ errorMessage: nonEmpty(waitPayload?.error) ??
1038
+ lifecycleError ??
1039
+ "OpenClaw gateway run failed",
1040
+ errorCode: "openclaw_gateway_wait_error",
1041
+ resultJson: waitPayload,
1042
+ };
1043
+ }
1044
+ if (waitStatus && waitStatus !== "ok") {
1045
+ return {
1046
+ exitCode: 1,
1047
+ signal: null,
1048
+ timedOut: false,
1049
+ errorMessage: `Unexpected OpenClaw gateway agent.wait status: ${waitStatus}`,
1050
+ errorCode: "openclaw_gateway_wait_status_unexpected",
1051
+ resultJson: waitPayload,
1052
+ };
1053
+ }
1054
+ }
1055
+ const summaryFromEvents = assistantChunks.join("").trim();
1056
+ const summaryFromPayload = extractResultText(asRecord(acceptedPayload?.result)) ??
1057
+ extractResultText(acceptedPayload) ??
1058
+ extractResultText(asRecord(latestResultPayload)) ??
1059
+ null;
1060
+ const summary = summaryFromEvents || summaryFromPayload || null;
1061
+ const acceptedResult = asRecord(acceptedPayload?.result);
1062
+ const latestPayload = asRecord(latestResultPayload);
1063
+ const latestResult = asRecord(latestPayload?.result);
1064
+ const acceptedMeta = asRecord(acceptedResult?.meta) ?? asRecord(acceptedPayload?.meta);
1065
+ const latestMeta = asRecord(latestResult?.meta) ?? asRecord(latestPayload?.meta);
1066
+ const mergedMeta = {
1067
+ ...(acceptedMeta ?? {}),
1068
+ ...(latestMeta ?? {}),
1069
+ };
1070
+ const agentMeta = asRecord(mergedMeta.agentMeta) ??
1071
+ asRecord(acceptedMeta?.agentMeta) ??
1072
+ asRecord(latestMeta?.agentMeta);
1073
+ const usage = parseUsage(agentMeta?.usage ?? mergedMeta.usage);
1074
+ const runtimeServices = extractRuntimeServicesFromMeta(agentMeta ?? mergedMeta);
1075
+ const provider = nonEmpty(agentMeta?.provider) ?? nonEmpty(mergedMeta.provider) ?? "openclaw";
1076
+ const model = nonEmpty(agentMeta?.model) ?? nonEmpty(mergedMeta.model) ?? null;
1077
+ const costUsd = asNumber(agentMeta?.costUsd ?? mergedMeta.costUsd, 0);
1078
+ await ctx.onLog("stdout", `[openclaw-gateway] run completed runId=${Array.from(trackedRunIds).join(",")} status=ok\n`);
1079
+ return {
1080
+ exitCode: 0,
1081
+ signal: null,
1082
+ timedOut: false,
1083
+ provider,
1084
+ ...(model ? { model } : {}),
1085
+ ...(usage ? { usage } : {}),
1086
+ ...(costUsd > 0 ? { costUsd } : {}),
1087
+ resultJson: asRecord(latestResultPayload),
1088
+ ...(runtimeServices.length > 0 ? { runtimeServices } : {}),
1089
+ ...(summary ? { summary } : {}),
1090
+ };
1091
+ }
1092
+ catch (err) {
1093
+ const message = err instanceof Error ? err.message : String(err);
1094
+ const lower = message.toLowerCase();
1095
+ const timedOut = lower.includes("timeout");
1096
+ const pairingRequired = lower.includes("pairing required");
1097
+ if (pairingRequired &&
1098
+ !disableDeviceAuth &&
1099
+ autoPairOnFirstConnect &&
1100
+ !autoPairAttempted &&
1101
+ (authToken || password)) {
1102
+ autoPairAttempted = true;
1103
+ const pairResult = await autoApproveDevicePairing({
1104
+ url: parsedUrl.toString(),
1105
+ headers,
1106
+ connectTimeoutMs,
1107
+ clientId,
1108
+ clientMode,
1109
+ clientVersion,
1110
+ role,
1111
+ scopes,
1112
+ authToken,
1113
+ password,
1114
+ requestId: extractPairingRequestId(err),
1115
+ deviceId: deviceIdentity?.deviceId ?? null,
1116
+ onLog: ctx.onLog,
1117
+ });
1118
+ if (pairResult.ok) {
1119
+ await ctx.onLog("stdout", `[openclaw-gateway] auto-approved pairing request ${pairResult.requestId}; retrying\n`);
1120
+ continue;
1121
+ }
1122
+ await ctx.onLog("stderr", `[openclaw-gateway] auto-pairing failed: ${pairResult.reason}\n`);
1123
+ }
1124
+ const detailedMessage = pairingRequired
1125
+ ? `${message}. Approve the pending device in OpenClaw (for example: openclaw devices approve --latest --url <gateway-ws-url> --token <gateway-token>) and retry. Ensure this agent has a persisted adapterConfig.devicePrivateKeyPem so approvals are reused.`
1126
+ : message;
1127
+ await ctx.onLog("stderr", `[openclaw-gateway] request failed: ${detailedMessage}\n`);
1128
+ return {
1129
+ exitCode: 1,
1130
+ signal: null,
1131
+ timedOut,
1132
+ errorMessage: detailedMessage,
1133
+ errorCode: timedOut
1134
+ ? "openclaw_gateway_timeout"
1135
+ : pairingRequired
1136
+ ? "openclaw_gateway_pairing_required"
1137
+ : "openclaw_gateway_request_failed",
1138
+ resultJson: asRecord(latestResultPayload),
1139
+ };
1140
+ }
1141
+ finally {
1142
+ client.close();
1143
+ }
1144
+ }
1145
+ }
1146
+ //# sourceMappingURL=execute.js.map