@evermore.work/shared 2026.509.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/dist/adapter-type.d.ts +4 -0
  2. package/dist/adapter-type.d.ts.map +1 -0
  3. package/dist/adapter-type.js +14 -0
  4. package/dist/adapter-type.js.map +1 -0
  5. package/dist/adapter-types.test.d.ts +2 -0
  6. package/dist/adapter-types.test.d.ts.map +1 -0
  7. package/dist/adapter-types.test.js +46 -0
  8. package/dist/adapter-types.test.js.map +1 -0
  9. package/dist/agent-url-key.d.ts +4 -0
  10. package/dist/agent-url-key.d.ts.map +1 -0
  11. package/dist/agent-url-key.js +22 -0
  12. package/dist/agent-url-key.js.map +1 -0
  13. package/dist/api.d.ts +23 -0
  14. package/dist/api.d.ts.map +1 -0
  15. package/dist/api.js +23 -0
  16. package/dist/api.js.map +1 -0
  17. package/dist/config-schema.d.ts +725 -0
  18. package/dist/config-schema.d.ts.map +1 -0
  19. package/dist/config-schema.js +160 -0
  20. package/dist/config-schema.js.map +1 -0
  21. package/dist/constants.d.ts +323 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/constants.js +761 -0
  24. package/dist/constants.js.map +1 -0
  25. package/dist/environment-support.d.ts +37 -0
  26. package/dist/environment-support.d.ts.map +1 -0
  27. package/dist/environment-support.js +92 -0
  28. package/dist/environment-support.js.map +1 -0
  29. package/dist/environment-support.test.d.ts +2 -0
  30. package/dist/environment-support.test.d.ts.map +1 -0
  31. package/dist/environment-support.test.js +11 -0
  32. package/dist/environment-support.test.js.map +1 -0
  33. package/dist/execution-workspace-guards.d.ts +6 -0
  34. package/dist/execution-workspace-guards.d.ts.map +1 -0
  35. package/dist/execution-workspace-guards.js +12 -0
  36. package/dist/execution-workspace-guards.js.map +1 -0
  37. package/dist/index.d.ts +23 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +21 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/issue-references.d.ts +16 -0
  42. package/dist/issue-references.d.ts.map +1 -0
  43. package/dist/issue-references.js +160 -0
  44. package/dist/issue-references.js.map +1 -0
  45. package/dist/issue-references.test.d.ts +2 -0
  46. package/dist/issue-references.test.d.ts.map +1 -0
  47. package/dist/issue-references.test.js +56 -0
  48. package/dist/issue-references.test.js.map +1 -0
  49. package/dist/issue-thread-interactions.test.d.ts +2 -0
  50. package/dist/issue-thread-interactions.test.d.ts.map +1 -0
  51. package/dist/issue-thread-interactions.test.js +118 -0
  52. package/dist/issue-thread-interactions.test.js.map +1 -0
  53. package/dist/network-bind.d.ts +27 -0
  54. package/dist/network-bind.d.ts.map +1 -0
  55. package/dist/network-bind.js +75 -0
  56. package/dist/network-bind.js.map +1 -0
  57. package/dist/project-mentions.d.ts +32 -0
  58. package/dist/project-mentions.d.ts.map +1 -0
  59. package/dist/project-mentions.js +210 -0
  60. package/dist/project-mentions.js.map +1 -0
  61. package/dist/project-mentions.test.d.ts +2 -0
  62. package/dist/project-mentions.test.d.ts.map +1 -0
  63. package/dist/project-mentions.test.js +36 -0
  64. package/dist/project-mentions.test.js.map +1 -0
  65. package/dist/project-url-key.d.ts +5 -0
  66. package/dist/project-url-key.d.ts.map +1 -0
  67. package/dist/project-url-key.js +39 -0
  68. package/dist/project-url-key.js.map +1 -0
  69. package/dist/routine-variables.d.ts +21 -0
  70. package/dist/routine-variables.d.ts.map +1 -0
  71. package/dist/routine-variables.js +91 -0
  72. package/dist/routine-variables.js.map +1 -0
  73. package/dist/routine-variables.test.d.ts +2 -0
  74. package/dist/routine-variables.test.d.ts.map +1 -0
  75. package/dist/routine-variables.test.js +58 -0
  76. package/dist/routine-variables.test.js.map +1 -0
  77. package/dist/telemetry/client.d.ts +18 -0
  78. package/dist/telemetry/client.d.ts.map +1 -0
  79. package/dist/telemetry/client.js +105 -0
  80. package/dist/telemetry/client.js.map +1 -0
  81. package/dist/telemetry/config.d.ts +5 -0
  82. package/dist/telemetry/config.d.ts.map +1 -0
  83. package/dist/telemetry/config.js +21 -0
  84. package/dist/telemetry/config.js.map +1 -0
  85. package/dist/telemetry/events.d.ts +41 -0
  86. package/dist/telemetry/events.d.ts.map +1 -0
  87. package/dist/telemetry/events.js +59 -0
  88. package/dist/telemetry/events.js.map +1 -0
  89. package/dist/telemetry/index.d.ts +6 -0
  90. package/dist/telemetry/index.d.ts.map +1 -0
  91. package/dist/telemetry/index.js +5 -0
  92. package/dist/telemetry/index.js.map +1 -0
  93. package/dist/telemetry/state.d.ts +3 -0
  94. package/dist/telemetry/state.d.ts.map +1 -0
  95. package/dist/telemetry/state.js +28 -0
  96. package/dist/telemetry/state.js.map +1 -0
  97. package/dist/telemetry/types.d.ts +28 -0
  98. package/dist/telemetry/types.d.ts.map +1 -0
  99. package/dist/telemetry/types.js +2 -0
  100. package/dist/telemetry/types.js.map +1 -0
  101. package/dist/types/access.d.ts +142 -0
  102. package/dist/types/access.d.ts.map +1 -0
  103. package/dist/types/access.js +2 -0
  104. package/dist/types/access.js.map +1 -0
  105. package/dist/types/activity.d.ts +14 -0
  106. package/dist/types/activity.d.ts.map +1 -0
  107. package/dist/types/activity.js +2 -0
  108. package/dist/types/activity.js.map +1 -0
  109. package/dist/types/adapter-skills.d.ts +31 -0
  110. package/dist/types/adapter-skills.d.ts.map +1 -0
  111. package/dist/types/adapter-skills.js +2 -0
  112. package/dist/types/adapter-skills.js.map +1 -0
  113. package/dist/types/agent.d.ts +117 -0
  114. package/dist/types/agent.d.ts.map +1 -0
  115. package/dist/types/agent.js +2 -0
  116. package/dist/types/agent.js.map +1 -0
  117. package/dist/types/approval.d.ts +26 -0
  118. package/dist/types/approval.d.ts.map +1 -0
  119. package/dist/types/approval.js +2 -0
  120. package/dist/types/approval.js.map +1 -0
  121. package/dist/types/asset.d.ts +16 -0
  122. package/dist/types/asset.d.ts.map +1 -0
  123. package/dist/types/asset.js +2 -0
  124. package/dist/types/asset.js.map +1 -0
  125. package/dist/types/budget.d.ts +86 -0
  126. package/dist/types/budget.d.ts.map +1 -0
  127. package/dist/types/budget.js +2 -0
  128. package/dist/types/budget.js.map +1 -0
  129. package/dist/types/company-portability.d.ts +298 -0
  130. package/dist/types/company-portability.d.ts.map +1 -0
  131. package/dist/types/company-portability.js +2 -0
  132. package/dist/types/company-portability.js.map +1 -0
  133. package/dist/types/company-skill.d.ts +140 -0
  134. package/dist/types/company-skill.d.ts.map +1 -0
  135. package/dist/types/company-skill.js +2 -0
  136. package/dist/types/company-skill.js.map +1 -0
  137. package/dist/types/company.d.ts +25 -0
  138. package/dist/types/company.d.ts.map +1 -0
  139. package/dist/types/company.js +2 -0
  140. package/dist/types/company.js.map +1 -0
  141. package/dist/types/cost.d.ts +120 -0
  142. package/dist/types/cost.d.ts.map +1 -0
  143. package/dist/types/cost.js +2 -0
  144. package/dist/types/cost.js.map +1 -0
  145. package/dist/types/dashboard.d.ts +36 -0
  146. package/dist/types/dashboard.d.ts.map +1 -0
  147. package/dist/types/dashboard.js +2 -0
  148. package/dist/types/dashboard.js.map +1 -0
  149. package/dist/types/environment.d.ts +73 -0
  150. package/dist/types/environment.d.ts.map +1 -0
  151. package/dist/types/environment.js +2 -0
  152. package/dist/types/environment.js.map +1 -0
  153. package/dist/types/feedback.d.ts +95 -0
  154. package/dist/types/feedback.d.ts.map +1 -0
  155. package/dist/types/feedback.js +7 -0
  156. package/dist/types/feedback.js.map +1 -0
  157. package/dist/types/finance.d.ts +57 -0
  158. package/dist/types/finance.d.ts.map +1 -0
  159. package/dist/types/finance.js +2 -0
  160. package/dist/types/finance.js.map +1 -0
  161. package/dist/types/goal.d.ts +14 -0
  162. package/dist/types/goal.d.ts.map +1 -0
  163. package/dist/types/goal.js +2 -0
  164. package/dist/types/goal.js.map +1 -0
  165. package/dist/types/heartbeat.d.ts +158 -0
  166. package/dist/types/heartbeat.d.ts.map +1 -0
  167. package/dist/types/heartbeat.js +2 -0
  168. package/dist/types/heartbeat.js.map +1 -0
  169. package/dist/types/inbox-dismissal.d.ts +10 -0
  170. package/dist/types/inbox-dismissal.d.ts.map +1 -0
  171. package/dist/types/inbox-dismissal.js +2 -0
  172. package/dist/types/inbox-dismissal.js.map +1 -0
  173. package/dist/types/index.d.ts +37 -0
  174. package/dist/types/index.d.ts.map +1 -0
  175. package/dist/types/index.js +3 -0
  176. package/dist/types/index.js.map +1 -0
  177. package/dist/types/instance.d.ts +63 -0
  178. package/dist/types/instance.d.ts.map +1 -0
  179. package/dist/types/instance.js +12 -0
  180. package/dist/types/instance.js.map +1 -0
  181. package/dist/types/issue-tree-control.d.ts +102 -0
  182. package/dist/types/issue-tree-control.d.ts.map +1 -0
  183. package/dist/types/issue-tree-control.js +2 -0
  184. package/dist/types/issue-tree-control.js.map +1 -0
  185. package/dist/types/issue.d.ts +527 -0
  186. package/dist/types/issue.d.ts.map +1 -0
  187. package/dist/types/issue.js +2 -0
  188. package/dist/types/issue.js.map +1 -0
  189. package/dist/types/live.d.ts +9 -0
  190. package/dist/types/live.d.ts.map +1 -0
  191. package/dist/types/live.js +2 -0
  192. package/dist/types/live.js.map +1 -0
  193. package/dist/types/plugin.d.ts +686 -0
  194. package/dist/types/plugin.d.ts.map +1 -0
  195. package/dist/types/plugin.js +2 -0
  196. package/dist/types/plugin.js.map +1 -0
  197. package/dist/types/project.d.ts +82 -0
  198. package/dist/types/project.d.ts.map +1 -0
  199. package/dist/types/project.js +2 -0
  200. package/dist/types/project.js.map +1 -0
  201. package/dist/types/quota.d.ts +26 -0
  202. package/dist/types/quota.d.ts.map +1 -0
  203. package/dist/types/quota.js +2 -0
  204. package/dist/types/quota.js.map +1 -0
  205. package/dist/types/routine.d.ts +185 -0
  206. package/dist/types/routine.d.ts.map +1 -0
  207. package/dist/types/routine.js +2 -0
  208. package/dist/types/routine.js.map +1 -0
  209. package/dist/types/search.d.ts +50 -0
  210. package/dist/types/search.d.ts.map +1 -0
  211. package/dist/types/search.js +2 -0
  212. package/dist/types/search.js.map +1 -0
  213. package/dist/types/secrets.d.ts +32 -0
  214. package/dist/types/secrets.d.ts.map +1 -0
  215. package/dist/types/secrets.js +2 -0
  216. package/dist/types/secrets.js.map +1 -0
  217. package/dist/types/sidebar-badges.d.ts +7 -0
  218. package/dist/types/sidebar-badges.d.ts.map +1 -0
  219. package/dist/types/sidebar-badges.js +2 -0
  220. package/dist/types/sidebar-badges.js.map +1 -0
  221. package/dist/types/sidebar-preferences.d.ts +5 -0
  222. package/dist/types/sidebar-preferences.d.ts.map +1 -0
  223. package/dist/types/sidebar-preferences.js +2 -0
  224. package/dist/types/sidebar-preferences.js.map +1 -0
  225. package/dist/types/user-profile.d.ts +81 -0
  226. package/dist/types/user-profile.d.ts.map +1 -0
  227. package/dist/types/user-profile.js +2 -0
  228. package/dist/types/user-profile.js.map +1 -0
  229. package/dist/types/work-product.d.ts +27 -0
  230. package/dist/types/work-product.d.ts.map +1 -0
  231. package/dist/types/work-product.js +2 -0
  232. package/dist/types/work-product.js.map +1 -0
  233. package/dist/types/workspace-operation.d.ts +26 -0
  234. package/dist/types/workspace-operation.d.ts.map +1 -0
  235. package/dist/types/workspace-operation.js +2 -0
  236. package/dist/types/workspace-operation.js.map +1 -0
  237. package/dist/types/workspace-runtime.d.ts +252 -0
  238. package/dist/types/workspace-runtime.d.ts.map +1 -0
  239. package/dist/types/workspace-runtime.js +2 -0
  240. package/dist/types/workspace-runtime.js.map +1 -0
  241. package/dist/validators/access.d.ts +333 -0
  242. package/dist/validators/access.d.ts.map +1 -0
  243. package/dist/validators/access.js +132 -0
  244. package/dist/validators/access.js.map +1 -0
  245. package/dist/validators/adapter-skills.d.ts +156 -0
  246. package/dist/validators/adapter-skills.d.ts.map +1 -0
  247. package/dist/validators/adapter-skills.js +48 -0
  248. package/dist/validators/adapter-skills.js.map +1 -0
  249. package/dist/validators/agent.d.ts +841 -0
  250. package/dist/validators/agent.d.ts.map +1 -0
  251. package/dist/validators/agent.js +115 -0
  252. package/dist/validators/agent.js.map +1 -0
  253. package/dist/validators/approval.d.ts +51 -0
  254. package/dist/validators/approval.d.ts.map +1 -0
  255. package/dist/validators/approval.js +22 -0
  256. package/dist/validators/approval.js.map +1 -0
  257. package/dist/validators/approval.test.d.ts +2 -0
  258. package/dist/validators/approval.test.d.ts.map +1 -0
  259. package/dist/validators/approval.test.js +25 -0
  260. package/dist/validators/approval.test.js.map +1 -0
  261. package/dist/validators/asset.d.ts +10 -0
  262. package/dist/validators/asset.d.ts.map +1 -0
  263. package/dist/validators/asset.js +11 -0
  264. package/dist/validators/asset.js.map +1 -0
  265. package/dist/validators/budget.d.ts +56 -0
  266. package/dist/validators/budget.d.ts.map +1 -0
  267. package/dist/validators/budget.js +27 -0
  268. package/dist/validators/budget.js.map +1 -0
  269. package/dist/validators/company-portability.d.ts +3453 -0
  270. package/dist/validators/company-portability.d.ts.map +1 -0
  271. package/dist/validators/company-portability.js +231 -0
  272. package/dist/validators/company-portability.js.map +1 -0
  273. package/dist/validators/company-skill.d.ts +797 -0
  274. package/dist/validators/company-skill.d.ts.map +1 -0
  275. package/dist/validators/company-skill.js +116 -0
  276. package/dist/validators/company-skill.js.map +1 -0
  277. package/dist/validators/company.d.ts +91 -0
  278. package/dist/validators/company.d.ts.map +1 -0
  279. package/dist/validators/company.js +43 -0
  280. package/dist/validators/company.js.map +1 -0
  281. package/dist/validators/cost.d.ts +92 -0
  282. package/dist/validators/cost.d.ts.map +1 -0
  283. package/dist/validators/cost.js +26 -0
  284. package/dist/validators/cost.js.map +1 -0
  285. package/dist/validators/environment.d.ts +72 -0
  286. package/dist/validators/environment.d.ts.map +1 -0
  287. package/dist/validators/environment.js +31 -0
  288. package/dist/validators/environment.js.map +1 -0
  289. package/dist/validators/execution-workspace.d.ts +586 -0
  290. package/dist/validators/execution-workspace.d.ts.map +1 -0
  291. package/dist/validators/execution-workspace.js +120 -0
  292. package/dist/validators/execution-workspace.js.map +1 -0
  293. package/dist/validators/feedback.d.ts +26 -0
  294. package/dist/validators/feedback.d.ts.map +1 -0
  295. package/dist/validators/feedback.js +14 -0
  296. package/dist/validators/feedback.js.map +1 -0
  297. package/dist/validators/finance.d.ts +129 -0
  298. package/dist/validators/finance.d.ts.map +1 -0
  299. package/dist/validators/finance.js +32 -0
  300. package/dist/validators/finance.js.map +1 -0
  301. package/dist/validators/goal.d.ts +48 -0
  302. package/dist/validators/goal.d.ts.map +1 -0
  303. package/dist/validators/goal.js +12 -0
  304. package/dist/validators/goal.js.map +1 -0
  305. package/dist/validators/index.d.ts +26 -0
  306. package/dist/validators/index.d.ts.map +1 -0
  307. package/dist/validators/index.js +26 -0
  308. package/dist/validators/index.js.map +1 -0
  309. package/dist/validators/instance.d.ts +137 -0
  310. package/dist/validators/instance.d.ts.map +1 -0
  311. package/dist/validators/instance.js +41 -0
  312. package/dist/validators/instance.js.map +1 -0
  313. package/dist/validators/issue-tree-control.d.ts +100 -0
  314. package/dist/validators/issue-tree-control.d.ts.map +1 -0
  315. package/dist/validators/issue-tree-control.js +31 -0
  316. package/dist/validators/issue-tree-control.js.map +1 -0
  317. package/dist/validators/issue.d.ts +4292 -0
  318. package/dist/validators/issue.d.ts.map +1 -0
  319. package/dist/validators/issue.js +506 -0
  320. package/dist/validators/issue.js.map +1 -0
  321. package/dist/validators/issue.test.d.ts +2 -0
  322. package/dist/validators/issue.test.d.ts.map +1 -0
  323. package/dist/validators/issue.test.js +203 -0
  324. package/dist/validators/issue.test.js.map +1 -0
  325. package/dist/validators/plugin.d.ts +2426 -0
  326. package/dist/validators/plugin.d.ts.map +1 -0
  327. package/dist/validators/plugin.js +837 -0
  328. package/dist/validators/plugin.js.map +1 -0
  329. package/dist/validators/plugin.test.d.ts +2 -0
  330. package/dist/validators/plugin.test.d.ts.map +1 -0
  331. package/dist/validators/plugin.test.js +64 -0
  332. package/dist/validators/plugin.test.js.map +1 -0
  333. package/dist/validators/project.d.ts +784 -0
  334. package/dist/validators/project.d.ts.map +1 -0
  335. package/dist/validators/project.js +102 -0
  336. package/dist/validators/project.js.map +1 -0
  337. package/dist/validators/routine.d.ts +920 -0
  338. package/dist/validators/routine.d.ts.map +1 -0
  339. package/dist/validators/routine.js +125 -0
  340. package/dist/validators/routine.js.map +1 -0
  341. package/dist/validators/routine.test.d.ts +2 -0
  342. package/dist/validators/routine.test.d.ts.map +1 -0
  343. package/dist/validators/routine.test.js +79 -0
  344. package/dist/validators/routine.test.js.map +1 -0
  345. package/dist/validators/search.d.ts +24 -0
  346. package/dist/validators/search.d.ts.map +1 -0
  347. package/dist/validators/search.js +33 -0
  348. package/dist/validators/search.js.map +1 -0
  349. package/dist/validators/secret.d.ts +114 -0
  350. package/dist/validators/secret.d.ts.map +1 -0
  351. package/dist/validators/secret.js +35 -0
  352. package/dist/validators/secret.js.map +1 -0
  353. package/dist/validators/sidebar-preferences.d.ts +20 -0
  354. package/dist/validators/sidebar-preferences.d.ts.map +1 -0
  355. package/dist/validators/sidebar-preferences.js +10 -0
  356. package/dist/validators/sidebar-preferences.js.map +1 -0
  357. package/dist/validators/text.d.ts +4 -0
  358. package/dist/validators/text.d.ts.map +1 -0
  359. package/dist/validators/text.js +9 -0
  360. package/dist/validators/text.js.map +1 -0
  361. package/dist/validators/work-product.d.ts +105 -0
  362. package/dist/validators/work-product.d.ts.map +1 -0
  363. package/dist/validators/work-product.js +46 -0
  364. package/dist/validators/work-product.js.map +1 -0
  365. package/dist/workspace-commands.d.ts +7 -0
  366. package/dist/workspace-commands.d.ts.map +1 -0
  367. package/dist/workspace-commands.js +150 -0
  368. package/dist/workspace-commands.js.map +1 -0
  369. package/dist/workspace-commands.test.d.ts +2 -0
  370. package/dist/workspace-commands.test.d.ts.map +1 -0
  371. package/dist/workspace-commands.test.js +65 -0
  372. package/dist/workspace-commands.test.js.map +1 -0
  373. package/package.json +47 -0
@@ -0,0 +1,761 @@
1
+ export const COMPANY_STATUSES = ["active", "paused", "archived"];
2
+ export const DEFAULT_COMPANY_ATTACHMENT_MAX_BYTES = 10 * 1024 * 1024;
3
+ export const MAX_COMPANY_ATTACHMENT_MAX_BYTES = 1024 * 1024 * 1024;
4
+ export const DEPLOYMENT_MODES = ["local_trusted", "authenticated"];
5
+ export const DEPLOYMENT_EXPOSURES = ["private", "public"];
6
+ export const BIND_MODES = ["loopback", "lan", "tailnet", "custom"];
7
+ export const AUTH_BASE_URL_MODES = ["auto", "explicit"];
8
+ export const AGENT_STATUSES = [
9
+ "active",
10
+ "paused",
11
+ "idle",
12
+ "running",
13
+ "error",
14
+ "pending_approval",
15
+ "terminated",
16
+ ];
17
+ export const AGENT_ADAPTER_TYPES = [
18
+ "process",
19
+ "http",
20
+ "acpx_local",
21
+ "claude_local",
22
+ "codex_local",
23
+ "gemini_local",
24
+ "opencode_local",
25
+ "pi_local",
26
+ "cursor",
27
+ "openclaw_gateway",
28
+ ];
29
+ export const AGENT_ROLES = [
30
+ "ceo",
31
+ "cto",
32
+ "cmo",
33
+ "cfo",
34
+ "security",
35
+ "engineer",
36
+ "designer",
37
+ "pm",
38
+ "qa",
39
+ "devops",
40
+ "researcher",
41
+ "general",
42
+ ];
43
+ export const AGENT_ROLE_LABELS = {
44
+ ceo: "CEO",
45
+ cto: "CTO",
46
+ cmo: "CMO",
47
+ cfo: "CFO",
48
+ security: "Security",
49
+ engineer: "Engineer",
50
+ designer: "Designer",
51
+ pm: "PM",
52
+ qa: "QA",
53
+ devops: "DevOps",
54
+ researcher: "Researcher",
55
+ general: "General",
56
+ };
57
+ export const AGENT_DEFAULT_MAX_CONCURRENT_RUNS = 20;
58
+ export const WORKSPACE_BRANCH_ROUTINE_VARIABLE = "workspaceBranch";
59
+ export const MODEL_PROFILE_KEYS = ["cheap"];
60
+ export const AGENT_ICON_NAMES = [
61
+ "bot",
62
+ "cpu",
63
+ "brain",
64
+ "zap",
65
+ "rocket",
66
+ "code",
67
+ "terminal",
68
+ "shield",
69
+ "eye",
70
+ "search",
71
+ "wrench",
72
+ "hammer",
73
+ "lightbulb",
74
+ "sparkles",
75
+ "star",
76
+ "heart",
77
+ "flame",
78
+ "bug",
79
+ "cog",
80
+ "database",
81
+ "globe",
82
+ "lock",
83
+ "mail",
84
+ "message-square",
85
+ "file-code",
86
+ "git-branch",
87
+ "package",
88
+ "puzzle",
89
+ "target",
90
+ "wand",
91
+ "atom",
92
+ "circuit-board",
93
+ "radar",
94
+ "swords",
95
+ "telescope",
96
+ "microscope",
97
+ "crown",
98
+ "gem",
99
+ "hexagon",
100
+ "pentagon",
101
+ "fingerprint",
102
+ ];
103
+ export const ISSUE_STATUSES = [
104
+ "backlog",
105
+ "todo",
106
+ "in_progress",
107
+ "in_review",
108
+ "done",
109
+ "blocked",
110
+ "cancelled",
111
+ ];
112
+ export const INBOX_MINE_ISSUE_STATUSES = [
113
+ "backlog",
114
+ "todo",
115
+ "in_progress",
116
+ "in_review",
117
+ "blocked",
118
+ "done",
119
+ ];
120
+ export const INBOX_MINE_ISSUE_STATUS_FILTER = INBOX_MINE_ISSUE_STATUSES.join(",");
121
+ export const ISSUE_PRIORITIES = ["critical", "high", "medium", "low"];
122
+ export const ISSUE_WORK_MODES = ["standard", "planning"];
123
+ export const MAX_ISSUE_REQUEST_DEPTH = 1024;
124
+ export const ISSUE_COMMENT_AUTHOR_TYPES = ["user", "agent", "system"];
125
+ export const ISSUE_COMMENT_PRESENTATION_KINDS = ["message", "system_notice"];
126
+ export const ISSUE_COMMENT_PRESENTATION_TONES = ["neutral", "info", "success", "warning", "danger"];
127
+ export const ISSUE_COMMENT_METADATA_ROW_TYPES = [
128
+ "text",
129
+ "code",
130
+ "key_value",
131
+ "issue_link",
132
+ "agent_link",
133
+ "run_link",
134
+ ];
135
+ export function clampIssueRequestDepth(value) {
136
+ if (typeof value !== "number" || !Number.isFinite(value))
137
+ return 0;
138
+ return Math.min(MAX_ISSUE_REQUEST_DEPTH, Math.max(0, Math.floor(value)));
139
+ }
140
+ export const ISSUE_THREAD_INTERACTION_KINDS = [
141
+ "suggest_tasks",
142
+ "ask_user_questions",
143
+ "request_confirmation",
144
+ ];
145
+ export const ISSUE_THREAD_INTERACTION_STATUSES = [
146
+ "pending",
147
+ "accepted",
148
+ "rejected",
149
+ "answered",
150
+ "cancelled",
151
+ "expired",
152
+ "failed",
153
+ ];
154
+ export const ISSUE_THREAD_INTERACTION_CONTINUATION_POLICIES = [
155
+ "none",
156
+ "wake_assignee",
157
+ "wake_assignee_on_accept",
158
+ ];
159
+ export const ISSUE_ORIGIN_KINDS = [
160
+ "manual",
161
+ "routine_execution",
162
+ "stale_active_run_evaluation",
163
+ "harness_liveness_escalation",
164
+ "issue_productivity_review",
165
+ "stranded_issue_recovery",
166
+ ];
167
+ export const ISSUE_SURFACE_VISIBILITIES = ["default", "plugin_operation"];
168
+ export function pluginOperationIssueOriginKind(pluginKey) {
169
+ return `plugin:${pluginKey}:operation`;
170
+ }
171
+ export function isPluginOperationIssueOriginKind(originKind) {
172
+ return typeof originKind === "string" && /^plugin:[^:]+:operation(?::|$)/.test(originKind);
173
+ }
174
+ export const ISSUE_RELATION_TYPES = ["blocks"];
175
+ export const ISSUE_TREE_CONTROL_MODES = ["pause", "resume", "cancel", "restore"];
176
+ export const ISSUE_TREE_HOLD_STATUSES = ["active", "released"];
177
+ export const ISSUE_TREE_HOLD_RELEASE_POLICY_STRATEGIES = ["manual", "after_active_runs_finish"];
178
+ export const ISSUE_CONTINUATION_SUMMARY_DOCUMENT_KEY = "continuation-summary";
179
+ export const SYSTEM_ISSUE_DOCUMENT_KEYS = [ISSUE_CONTINUATION_SUMMARY_DOCUMENT_KEY];
180
+ const SYSTEM_ISSUE_DOCUMENT_KEY_SET = new Set(SYSTEM_ISSUE_DOCUMENT_KEYS);
181
+ export function isSystemIssueDocumentKey(key) {
182
+ return SYSTEM_ISSUE_DOCUMENT_KEY_SET.has(key);
183
+ }
184
+ export const ISSUE_REFERENCE_SOURCE_KINDS = ["title", "description", "comment", "document"];
185
+ export const ISSUE_EXECUTION_POLICY_MODES = ["normal", "auto"];
186
+ export const ISSUE_EXECUTION_STAGE_TYPES = ["review", "approval"];
187
+ export const ISSUE_MONITOR_SCHEDULED_BY = ["assignee", "board"];
188
+ export const ISSUE_EXECUTION_MONITOR_KINDS = ["external_service"];
189
+ export const ISSUE_EXECUTION_MONITOR_RECOVERY_POLICIES = [
190
+ "wake_owner",
191
+ "create_recovery_issue",
192
+ "escalate_to_board",
193
+ ];
194
+ export const ISSUE_EXECUTION_STATE_STATUSES = ["idle", "pending", "changes_requested", "completed"];
195
+ export const ISSUE_EXECUTION_MONITOR_STATE_STATUSES = ["scheduled", "triggered", "cleared"];
196
+ export const ISSUE_EXECUTION_MONITOR_CLEAR_REASONS = [
197
+ "manual",
198
+ "triggered",
199
+ "done",
200
+ "cancelled",
201
+ "invalid_status",
202
+ "invalid_assignee",
203
+ "dispatch_skipped",
204
+ "timeout_exceeded",
205
+ "max_attempts_exhausted",
206
+ ];
207
+ export const ISSUE_EXECUTION_DECISION_OUTCOMES = ["approved", "changes_requested"];
208
+ export const GOAL_LEVELS = ["company", "team", "agent", "task"];
209
+ export const GOAL_STATUSES = ["planned", "active", "achieved", "cancelled"];
210
+ export const PROJECT_STATUSES = [
211
+ "backlog",
212
+ "planned",
213
+ "in_progress",
214
+ "completed",
215
+ "cancelled",
216
+ ];
217
+ export const ENVIRONMENT_DRIVERS = ["local", "ssh", "sandbox", "plugin"];
218
+ export const ENVIRONMENT_STATUSES = ["active", "archived"];
219
+ export const ENVIRONMENT_LEASE_STATUSES = ["active", "released", "expired", "failed", "retained"];
220
+ export const ENVIRONMENT_LEASE_POLICIES = [
221
+ "ephemeral",
222
+ "reuse_by_environment",
223
+ "reuse_by_execution_workspace",
224
+ "retain_on_failure",
225
+ ];
226
+ export const ENVIRONMENT_LEASE_CLEANUP_STATUSES = ["pending", "success", "failed"];
227
+ export const ROUTINE_STATUSES = ["active", "paused", "archived"];
228
+ export const ROUTINE_CONCURRENCY_POLICIES = ["coalesce_if_active", "always_enqueue", "skip_if_active"];
229
+ export const ROUTINE_CATCH_UP_POLICIES = ["skip_missed", "enqueue_missed_with_cap"];
230
+ export const ROUTINE_TRIGGER_KINDS = ["schedule", "webhook", "api"];
231
+ export const ROUTINE_TRIGGER_SIGNING_MODES = ["bearer", "hmac_sha256", "github_hmac", "none"];
232
+ export const ROUTINE_VARIABLE_TYPES = ["text", "textarea", "number", "boolean", "select"];
233
+ export const ROUTINE_RUN_STATUSES = [
234
+ "received",
235
+ "coalesced",
236
+ "skipped",
237
+ "issue_created",
238
+ "completed",
239
+ "failed",
240
+ ];
241
+ export const ROUTINE_RUN_SOURCES = ["schedule", "manual", "api", "webhook"];
242
+ export const PAUSE_REASONS = ["manual", "budget", "system"];
243
+ export const PROJECT_COLORS = [
244
+ "#6366f1", // indigo
245
+ "#8b5cf6", // violet
246
+ "#ec4899", // pink
247
+ "#ef4444", // red
248
+ "#f97316", // orange
249
+ "#eab308", // yellow
250
+ "#22c55e", // green
251
+ "#14b8a6", // teal
252
+ "#06b6d4", // cyan
253
+ "#3b82f6", // blue
254
+ ];
255
+ export const APPROVAL_TYPES = [
256
+ "hire_agent",
257
+ "approve_ceo_strategy",
258
+ "budget_override_required",
259
+ "request_board_approval",
260
+ ];
261
+ export const APPROVAL_STATUSES = [
262
+ "pending",
263
+ "revision_requested",
264
+ "approved",
265
+ "rejected",
266
+ "cancelled",
267
+ ];
268
+ export const SECRET_PROVIDERS = [
269
+ "local_encrypted",
270
+ "aws_secrets_manager",
271
+ "gcp_secret_manager",
272
+ "vault",
273
+ ];
274
+ export const STORAGE_PROVIDERS = ["local_disk", "s3"];
275
+ export const BILLING_TYPES = [
276
+ "metered_api",
277
+ "subscription_included",
278
+ "subscription_overage",
279
+ "credits",
280
+ "fixed",
281
+ "unknown",
282
+ ];
283
+ export const FINANCE_EVENT_KINDS = [
284
+ "inference_charge",
285
+ "platform_fee",
286
+ "credit_purchase",
287
+ "credit_refund",
288
+ "credit_expiry",
289
+ "byok_fee",
290
+ "gateway_overhead",
291
+ "log_storage_charge",
292
+ "logpush_charge",
293
+ "provisioned_capacity_charge",
294
+ "training_charge",
295
+ "custom_model_import_charge",
296
+ "custom_model_storage_charge",
297
+ "manual_adjustment",
298
+ ];
299
+ export const FINANCE_DIRECTIONS = ["debit", "credit"];
300
+ export const FINANCE_UNITS = [
301
+ "input_token",
302
+ "output_token",
303
+ "cached_input_token",
304
+ "request",
305
+ "credit_usd",
306
+ "credit_unit",
307
+ "model_unit_minute",
308
+ "model_unit_hour",
309
+ "gb_month",
310
+ "train_token",
311
+ "unknown",
312
+ ];
313
+ export const BUDGET_SCOPE_TYPES = ["company", "agent", "project"];
314
+ export const BUDGET_METRICS = ["billed_cents"];
315
+ export const BUDGET_WINDOW_KINDS = ["calendar_month_utc", "lifetime"];
316
+ export const BUDGET_THRESHOLD_TYPES = ["soft", "hard"];
317
+ export const BUDGET_INCIDENT_STATUSES = ["open", "resolved", "dismissed"];
318
+ export const BUDGET_INCIDENT_RESOLUTION_ACTIONS = [
319
+ "keep_paused",
320
+ "raise_budget_and_resume",
321
+ ];
322
+ export const HEARTBEAT_INVOCATION_SOURCES = [
323
+ "timer",
324
+ "assignment",
325
+ "on_demand",
326
+ "automation",
327
+ ];
328
+ export const WAKEUP_TRIGGER_DETAILS = ["manual", "ping", "callback", "system"];
329
+ export const WAKEUP_REQUEST_STATUSES = [
330
+ "queued",
331
+ "deferred_issue_execution",
332
+ "claimed",
333
+ "coalesced",
334
+ "skipped",
335
+ "completed",
336
+ "failed",
337
+ "cancelled",
338
+ ];
339
+ export const HEARTBEAT_RUN_STATUSES = [
340
+ "queued",
341
+ "scheduled_retry",
342
+ "running",
343
+ "succeeded",
344
+ "failed",
345
+ "cancelled",
346
+ "timed_out",
347
+ ];
348
+ export const RUN_LIVENESS_STATES = [
349
+ "completed",
350
+ "advanced",
351
+ "plan_only",
352
+ "empty_response",
353
+ "blocked",
354
+ "failed",
355
+ "needs_followup",
356
+ ];
357
+ export const LIVE_EVENT_TYPES = [
358
+ "heartbeat.run.queued",
359
+ "heartbeat.run.status",
360
+ "heartbeat.run.event",
361
+ "heartbeat.run.log",
362
+ "agent.status",
363
+ "activity.logged",
364
+ "plugin.ui.updated",
365
+ "plugin.worker.crashed",
366
+ "plugin.worker.restarted",
367
+ ];
368
+ export const PRINCIPAL_TYPES = ["user", "agent"];
369
+ export const MEMBERSHIP_STATUSES = ["pending", "active", "suspended", "archived"];
370
+ export const COMPANY_MEMBERSHIP_ROLES = [
371
+ "owner",
372
+ "admin",
373
+ "operator",
374
+ "viewer",
375
+ "member",
376
+ ];
377
+ export const HUMAN_COMPANY_MEMBERSHIP_ROLES = [
378
+ "owner",
379
+ "admin",
380
+ "operator",
381
+ "viewer",
382
+ ];
383
+ export const HUMAN_COMPANY_MEMBERSHIP_ROLE_LABELS = {
384
+ owner: "Owner",
385
+ admin: "Admin",
386
+ operator: "Operator",
387
+ viewer: "Viewer",
388
+ };
389
+ export const INSTANCE_USER_ROLES = ["instance_admin"];
390
+ export const INVITE_TYPES = ["company_join", "bootstrap_ceo"];
391
+ export const INVITE_JOIN_TYPES = ["human", "agent", "both"];
392
+ export const JOIN_REQUEST_TYPES = ["human", "agent"];
393
+ export const JOIN_REQUEST_STATUSES = ["pending_approval", "approved", "rejected"];
394
+ export const PERMISSION_KEYS = [
395
+ "agents:create",
396
+ "environments:manage",
397
+ "users:invite",
398
+ "users:manage_permissions",
399
+ "tasks:assign",
400
+ "tasks:assign_scope",
401
+ "tasks:manage_active_checkouts",
402
+ "joins:approve",
403
+ ];
404
+ // ---------------------------------------------------------------------------
405
+ // Plugin System — see doc/plugins/PLUGIN_SPEC.md for the full specification
406
+ // ---------------------------------------------------------------------------
407
+ /**
408
+ * The current version of the Plugin API contract.
409
+ *
410
+ * Increment this value whenever a breaking change is made to the plugin API
411
+ * so that the host can reject incompatible plugin manifests.
412
+ *
413
+ * @see PLUGIN_SPEC.md §4 — Versioning
414
+ */
415
+ export const PLUGIN_API_VERSION = 1;
416
+ /**
417
+ * Lifecycle statuses for an installed plugin.
418
+ *
419
+ * State machine: installed → ready | error, ready → disabled | error | upgrade_pending | uninstalled,
420
+ * disabled → ready | uninstalled, error → ready | uninstalled,
421
+ * upgrade_pending → ready | error | uninstalled, uninstalled → installed (reinstall).
422
+ *
423
+ * @see {@link PluginStatus} — inferred union type
424
+ * @see PLUGIN_SPEC.md §21.3 `plugins.status`
425
+ */
426
+ export const PLUGIN_STATUSES = [
427
+ "installed",
428
+ "ready",
429
+ "disabled",
430
+ "error",
431
+ "upgrade_pending",
432
+ "uninstalled",
433
+ ];
434
+ /**
435
+ * Plugin classification categories. A plugin declares one or more categories
436
+ * in its manifest to describe its primary purpose.
437
+ *
438
+ * @see PLUGIN_SPEC.md §6.2
439
+ */
440
+ export const PLUGIN_CATEGORIES = [
441
+ "connector",
442
+ "workspace",
443
+ "automation",
444
+ "ui",
445
+ ];
446
+ /**
447
+ * Named permissions the host grants to a plugin. Plugins declare required
448
+ * capabilities in their manifest; the host enforces them at runtime via the
449
+ * plugin capability validator.
450
+ *
451
+ * Grouped into: Data Read, Data Write, Plugin State, Runtime/Integration,
452
+ * Agent Tools, and UI.
453
+ *
454
+ * @see PLUGIN_SPEC.md §15 — Capability Model
455
+ */
456
+ export const PLUGIN_CAPABILITIES = [
457
+ // Data Read
458
+ "companies.read",
459
+ "projects.read",
460
+ "project.workspaces.read",
461
+ "issues.read",
462
+ "issue.relations.read",
463
+ "issue.subtree.read",
464
+ "issue.comments.read",
465
+ "issue.documents.read",
466
+ "agents.read",
467
+ "goals.read",
468
+ "goals.create",
469
+ "goals.update",
470
+ "activity.read",
471
+ "costs.read",
472
+ "issues.orchestration.read",
473
+ "database.namespace.read",
474
+ // Data Write
475
+ "issues.create",
476
+ "issues.update",
477
+ "issue.relations.write",
478
+ "issues.checkout",
479
+ "issues.wakeup",
480
+ "issue.comments.create",
481
+ "issue.interactions.create",
482
+ "issue.documents.write",
483
+ "projects.managed",
484
+ "routines.managed",
485
+ "agents.pause",
486
+ "agents.resume",
487
+ "agents.invoke",
488
+ "agents.managed",
489
+ "agent.sessions.create",
490
+ "agent.sessions.list",
491
+ "agent.sessions.send",
492
+ "agent.sessions.close",
493
+ "activity.log.write",
494
+ "metrics.write",
495
+ "telemetry.track",
496
+ "database.namespace.migrate",
497
+ "database.namespace.write",
498
+ // Plugin State
499
+ "plugin.state.read",
500
+ "plugin.state.write",
501
+ // Runtime / Integration
502
+ "events.subscribe",
503
+ "events.emit",
504
+ "jobs.schedule",
505
+ "webhooks.receive",
506
+ "api.routes.register",
507
+ "http.outbound",
508
+ "secrets.read-ref",
509
+ "environment.drivers.register",
510
+ "local.folders",
511
+ // Agent Tools
512
+ "agent.tools.register",
513
+ // UI
514
+ "instance.settings.register",
515
+ "ui.sidebar.register",
516
+ "ui.page.register",
517
+ "ui.detailTab.register",
518
+ "ui.dashboardWidget.register",
519
+ "ui.commentAnnotation.register",
520
+ "ui.action.register",
521
+ ];
522
+ export const PLUGIN_DATABASE_NAMESPACE_MODES = ["schema"];
523
+ export const PLUGIN_DATABASE_NAMESPACE_STATUSES = [
524
+ "active",
525
+ "migration_failed",
526
+ ];
527
+ export const PLUGIN_DATABASE_MIGRATION_STATUSES = [
528
+ "applied",
529
+ "failed",
530
+ ];
531
+ export const PLUGIN_DATABASE_CORE_READ_TABLES = [
532
+ "companies",
533
+ "projects",
534
+ "goals",
535
+ "agents",
536
+ "issues",
537
+ "issue_documents",
538
+ "issue_relations",
539
+ "issue_comments",
540
+ "heartbeat_runs",
541
+ "cost_events",
542
+ "approvals",
543
+ "issue_approvals",
544
+ "budget_incidents",
545
+ ];
546
+ export const PLUGIN_API_ROUTE_METHODS = ["GET", "POST", "PATCH", "DELETE"];
547
+ export const PLUGIN_API_ROUTE_AUTH_MODES = ["board", "agent", "board-or-agent", "webhook"];
548
+ export const PLUGIN_API_ROUTE_CHECKOUT_POLICIES = [
549
+ "none",
550
+ "required-for-agent-in-progress",
551
+ "always-for-agent",
552
+ ];
553
+ /**
554
+ * UI extension slot types. Each slot type corresponds to a mount point in the
555
+ * Evermore UI where plugin components can be rendered.
556
+ *
557
+ * @see PLUGIN_SPEC.md §19 — UI Extension Model
558
+ */
559
+ export const PLUGIN_UI_SLOT_TYPES = [
560
+ "page",
561
+ "detailTab",
562
+ "taskDetailView",
563
+ "dashboardWidget",
564
+ "sidebar",
565
+ "routeSidebar",
566
+ "sidebarPanel",
567
+ "projectSidebarItem",
568
+ "globalToolbarButton",
569
+ "toolbarButton",
570
+ "contextMenuItem",
571
+ "commentAnnotation",
572
+ "commentContextMenuItem",
573
+ "settingsPage",
574
+ ];
575
+ /**
576
+ * Reserved company-scoped route segments that plugin page routes may not claim.
577
+ *
578
+ * These map to first-class host pages under `/:companyPrefix/...`.
579
+ */
580
+ export const PLUGIN_RESERVED_COMPANY_ROUTE_SEGMENTS = [
581
+ "dashboard",
582
+ "onboarding",
583
+ "companies",
584
+ "company",
585
+ "settings",
586
+ "plugins",
587
+ "org",
588
+ "agents",
589
+ "projects",
590
+ "issues",
591
+ "goals",
592
+ "approvals",
593
+ "costs",
594
+ "activity",
595
+ "inbox",
596
+ "design-guide",
597
+ "tests",
598
+ ];
599
+ /**
600
+ * Launcher placement zones describe where a plugin-owned launcher can appear
601
+ * in the host UI. These are intentionally aligned with current slot surfaces
602
+ * so manifest authors can describe launch intent without coupling to a single
603
+ * component implementation detail.
604
+ */
605
+ export const PLUGIN_LAUNCHER_PLACEMENT_ZONES = [
606
+ "page",
607
+ "detailTab",
608
+ "taskDetailView",
609
+ "dashboardWidget",
610
+ "sidebar",
611
+ "sidebarPanel",
612
+ "projectSidebarItem",
613
+ "globalToolbarButton",
614
+ "toolbarButton",
615
+ "contextMenuItem",
616
+ "commentAnnotation",
617
+ "commentContextMenuItem",
618
+ "settingsPage",
619
+ ];
620
+ /**
621
+ * Launcher action kinds describe what the launcher does when activated.
622
+ */
623
+ export const PLUGIN_LAUNCHER_ACTIONS = [
624
+ "navigate",
625
+ "openModal",
626
+ "openDrawer",
627
+ "openPopover",
628
+ "performAction",
629
+ "deepLink",
630
+ ];
631
+ /**
632
+ * Optional size hints the host can use when rendering plugin-owned launcher
633
+ * destinations such as overlays, drawers, or full page handoffs.
634
+ */
635
+ export const PLUGIN_LAUNCHER_BOUNDS = [
636
+ "inline",
637
+ "compact",
638
+ "default",
639
+ "wide",
640
+ "full",
641
+ ];
642
+ /**
643
+ * Render environments describe the container a launcher expects after it is
644
+ * activated. The current host may map these to concrete UI primitives.
645
+ */
646
+ export const PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS = [
647
+ "hostInline",
648
+ "hostOverlay",
649
+ "hostRoute",
650
+ "external",
651
+ "iframe",
652
+ ];
653
+ /**
654
+ * Entity types that a `detailTab` UI slot can attach to.
655
+ *
656
+ * @see PLUGIN_SPEC.md §19.3 — Detail Tabs
657
+ */
658
+ export const PLUGIN_UI_SLOT_ENTITY_TYPES = [
659
+ "project",
660
+ "issue",
661
+ "agent",
662
+ "goal",
663
+ "run",
664
+ "comment",
665
+ ];
666
+ /**
667
+ * Scope kinds for plugin state storage. Determines the granularity at which
668
+ * a plugin stores key-value state data.
669
+ *
670
+ * @see PLUGIN_SPEC.md §21.3 `plugin_state.scope_kind`
671
+ */
672
+ export const PLUGIN_STATE_SCOPE_KINDS = [
673
+ "instance",
674
+ "company",
675
+ "project",
676
+ "project_workspace",
677
+ "agent",
678
+ "issue",
679
+ "goal",
680
+ "run",
681
+ ];
682
+ /** Statuses for a plugin's scheduled job definition. */
683
+ export const PLUGIN_JOB_STATUSES = [
684
+ "active",
685
+ "paused",
686
+ "failed",
687
+ ];
688
+ /** Statuses for individual job run executions. */
689
+ export const PLUGIN_JOB_RUN_STATUSES = [
690
+ "pending",
691
+ "queued",
692
+ "running",
693
+ "succeeded",
694
+ "failed",
695
+ "cancelled",
696
+ ];
697
+ /** What triggered a particular job run. */
698
+ export const PLUGIN_JOB_RUN_TRIGGERS = [
699
+ "schedule",
700
+ "manual",
701
+ "retry",
702
+ ];
703
+ /** Statuses for inbound webhook deliveries. */
704
+ export const PLUGIN_WEBHOOK_DELIVERY_STATUSES = [
705
+ "pending",
706
+ "success",
707
+ "failed",
708
+ ];
709
+ /**
710
+ * Core domain event types that plugins can subscribe to via the
711
+ * `events.subscribe` capability.
712
+ *
713
+ * @see PLUGIN_SPEC.md §16 — Event System
714
+ */
715
+ export const PLUGIN_EVENT_TYPES = [
716
+ "company.created",
717
+ "company.updated",
718
+ "project.created",
719
+ "project.updated",
720
+ "project.workspace_created",
721
+ "project.workspace_updated",
722
+ "project.workspace_deleted",
723
+ "issue.created",
724
+ "issue.updated",
725
+ "issue.comment.created",
726
+ "issue.document.created",
727
+ "issue.document.updated",
728
+ "issue.document.deleted",
729
+ "issue.relations.updated",
730
+ "issue.checked_out",
731
+ "issue.released",
732
+ "issue.assignment_wakeup_requested",
733
+ "agent.created",
734
+ "agent.updated",
735
+ "agent.status_changed",
736
+ "agent.run.started",
737
+ "agent.run.finished",
738
+ "agent.run.failed",
739
+ "agent.run.cancelled",
740
+ "goal.created",
741
+ "goal.updated",
742
+ "approval.created",
743
+ "approval.decided",
744
+ "budget.incident.opened",
745
+ "budget.incident.resolved",
746
+ "cost_event.created",
747
+ "activity.logged",
748
+ ];
749
+ /**
750
+ * Error codes returned by the plugin bridge when a UI → worker call fails.
751
+ *
752
+ * @see PLUGIN_SPEC.md §19.7 — Error Propagation Through The Bridge
753
+ */
754
+ export const PLUGIN_BRIDGE_ERROR_CODES = [
755
+ "WORKER_UNAVAILABLE",
756
+ "CAPABILITY_DENIED",
757
+ "WORKER_ERROR",
758
+ "TIMEOUT",
759
+ "UNKNOWN",
760
+ ];
761
+ //# sourceMappingURL=constants.js.map