@hoknie/aip 0.4.0 → 0.5.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 (950) hide show
  1. package/.claude-plugin/marketplace.json +3 -0
  2. package/dist/app/actors.js +82 -0
  3. package/dist/app/actors.js.map +1 -0
  4. package/dist/app/application.js +71 -56
  5. package/dist/app/application.js.map +1 -1
  6. package/dist/app/integration-operations.js +34 -0
  7. package/dist/app/integration-operations.js.map +1 -0
  8. package/dist/app/lifecycle.js +91 -2
  9. package/dist/app/lifecycle.js.map +1 -1
  10. package/dist/app/notifications/index.js +44 -0
  11. package/dist/app/notifications/index.js.map +1 -0
  12. package/dist/app/oidc.js +27 -0
  13. package/dist/app/oidc.js.map +1 -0
  14. package/dist/app/saml.js +43 -0
  15. package/dist/app/saml.js.map +1 -0
  16. package/dist/app/timings.js +2 -1
  17. package/dist/app/timings.js.map +1 -1
  18. package/dist/app/wire.js +88 -0
  19. package/dist/app/wire.js.map +1 -0
  20. package/dist/app/wiring.js +10 -0
  21. package/dist/app/wiring.js.map +1 -1
  22. package/dist/cli/main.js +42 -0
  23. package/dist/cli/main.js.map +1 -1
  24. package/dist/feature/access/services/access.js +73 -0
  25. package/dist/feature/access/services/access.js.map +1 -0
  26. package/dist/feature/access/services/create.js +31 -0
  27. package/dist/feature/access/services/create.js.map +1 -0
  28. package/dist/feature/access/services/index.js +3 -0
  29. package/dist/feature/access/services/index.js.map +1 -0
  30. package/dist/feature/access/types/actions.js +145 -0
  31. package/dist/feature/access/types/actions.js.map +1 -0
  32. package/dist/feature/access/types/evaluate.js +58 -0
  33. package/dist/feature/access/types/evaluate.js.map +1 -0
  34. package/dist/feature/access/types/index.js +4 -0
  35. package/dist/feature/access/types/index.js.map +1 -0
  36. package/dist/feature/access/types/presets.js +41 -0
  37. package/dist/feature/access/types/presets.js.map +1 -0
  38. package/dist/feature/agents/clients/agy/runtime.js +1 -0
  39. package/dist/feature/agents/clients/agy/runtime.js.map +1 -1
  40. package/dist/feature/agents/clients/claude/permissions.js +5 -2
  41. package/dist/feature/agents/clients/claude/permissions.js.map +1 -1
  42. package/dist/feature/agents/clients/claude/runtime.js +2 -0
  43. package/dist/feature/agents/clients/claude/runtime.js.map +1 -1
  44. package/dist/feature/agents/clients/cline/runtime.js +1 -0
  45. package/dist/feature/agents/clients/cline/runtime.js.map +1 -1
  46. package/dist/feature/agents/clients/codex/runtime.js +1 -0
  47. package/dist/feature/agents/clients/codex/runtime.js.map +1 -1
  48. package/dist/feature/agents/clients/copilot/runtime.js +1 -0
  49. package/dist/feature/agents/clients/copilot/runtime.js.map +1 -1
  50. package/dist/feature/agents/clients/kilo/runtime.js +1 -0
  51. package/dist/feature/agents/clients/kilo/runtime.js.map +1 -1
  52. package/dist/feature/agents/clients/opencode/runtime.js +1 -0
  53. package/dist/feature/agents/clients/opencode/runtime.js.map +1 -1
  54. package/dist/feature/agents/services/skills.js +4 -1
  55. package/dist/feature/agents/services/skills.js.map +1 -1
  56. package/dist/feature/agents/services/supervisor.js +7 -3
  57. package/dist/feature/agents/services/supervisor.js.map +1 -1
  58. package/dist/feature/agents/types/mcp/env.js +6 -1
  59. package/dist/feature/agents/types/mcp/env.js.map +1 -1
  60. package/dist/feature/agents/types/message.js +13 -1
  61. package/dist/feature/agents/types/message.js.map +1 -1
  62. package/dist/feature/agents/types/runtime.js.map +1 -1
  63. package/dist/feature/agents/types/worker-tools.js +6 -1
  64. package/dist/feature/agents/types/worker-tools.js.map +1 -1
  65. package/dist/feature/audit/repositories/events.js +66 -0
  66. package/dist/feature/audit/repositories/events.js.map +1 -0
  67. package/dist/feature/audit/repositories/index.js +2 -0
  68. package/dist/feature/audit/repositories/index.js.map +1 -0
  69. package/dist/feature/audit/services/audit-log.js +24 -0
  70. package/dist/feature/audit/services/audit-log.js.map +1 -0
  71. package/dist/feature/audit/services/create.js +6 -0
  72. package/dist/feature/audit/services/create.js.map +1 -0
  73. package/dist/feature/audit/services/index.js +3 -0
  74. package/dist/feature/audit/services/index.js.map +1 -0
  75. package/dist/feature/audit/types/event.js +12 -0
  76. package/dist/feature/audit/types/event.js.map +1 -0
  77. package/dist/feature/audit/types/index.js +2 -0
  78. package/dist/feature/audit/types/index.js.map +1 -0
  79. package/dist/feature/compose/services/repository-move.js +8 -1
  80. package/dist/feature/compose/services/repository-move.js.map +1 -1
  81. package/dist/feature/compose/services/repository-removal.js +6 -1
  82. package/dist/feature/compose/services/repository-removal.js.map +1 -1
  83. package/dist/feature/delivery/ports/authors.js +2 -0
  84. package/dist/feature/delivery/ports/authors.js.map +1 -0
  85. package/dist/feature/delivery/services/commit-stamp.js +20 -0
  86. package/dist/feature/delivery/services/commit-stamp.js.map +1 -0
  87. package/dist/feature/delivery/services/create.js +6 -2
  88. package/dist/feature/delivery/services/create.js.map +1 -1
  89. package/dist/feature/delivery/services/deliver.js +8 -0
  90. package/dist/feature/delivery/services/deliver.js.map +1 -1
  91. package/dist/feature/delivery/services/push.js +23 -0
  92. package/dist/feature/delivery/services/push.js.map +1 -0
  93. package/dist/feature/delivery/types/index.js +2 -0
  94. package/dist/feature/delivery/types/index.js.map +1 -1
  95. package/dist/feature/delivery/types/remote-url.js +44 -0
  96. package/dist/feature/delivery/types/remote-url.js.map +1 -0
  97. package/dist/feature/delivery/types/trailer.js +22 -0
  98. package/dist/feature/delivery/types/trailer.js.map +1 -0
  99. package/dist/feature/identity/clients/oidc/client.js +78 -0
  100. package/dist/feature/identity/clients/oidc/client.js.map +1 -0
  101. package/dist/feature/identity/clients/oidc/index.js +2 -0
  102. package/dist/feature/identity/clients/oidc/index.js.map +1 -0
  103. package/dist/feature/identity/clients/oidc/signature.js +51 -0
  104. package/dist/feature/identity/clients/oidc/signature.js.map +1 -0
  105. package/dist/feature/identity/clients/saml/client.js +108 -0
  106. package/dist/feature/identity/clients/saml/client.js.map +1 -0
  107. package/dist/feature/identity/clients/saml/idp-metadata.js +123 -0
  108. package/dist/feature/identity/clients/saml/idp-metadata.js.map +1 -0
  109. package/dist/feature/identity/clients/saml/index.js +3 -0
  110. package/dist/feature/identity/clients/saml/index.js.map +1 -0
  111. package/dist/feature/identity/ports/clock.js +2 -0
  112. package/dist/feature/identity/ports/clock.js.map +1 -0
  113. package/dist/feature/identity/ports/index.js +2 -0
  114. package/dist/feature/identity/ports/index.js.map +1 -0
  115. package/dist/feature/identity/ports/oidc.js +2 -0
  116. package/dist/feature/identity/ports/oidc.js.map +1 -0
  117. package/dist/feature/identity/ports/saml.js +2 -0
  118. package/dist/feature/identity/ports/saml.js.map +1 -0
  119. package/dist/feature/identity/repositories/index.js +7 -0
  120. package/dist/feature/identity/repositories/index.js.map +1 -0
  121. package/dist/feature/identity/repositories/links.js +57 -0
  122. package/dist/feature/identity/repositories/links.js.map +1 -0
  123. package/dist/feature/identity/repositories/saml-assertions.js +16 -0
  124. package/dist/feature/identity/repositories/saml-assertions.js.map +1 -0
  125. package/dist/feature/identity/repositories/sessions.js +27 -0
  126. package/dist/feature/identity/repositories/sessions.js.map +1 -0
  127. package/dist/feature/identity/repositories/sso-requests.js +34 -0
  128. package/dist/feature/identity/repositories/sso-requests.js.map +1 -0
  129. package/dist/feature/identity/repositories/tokens.js +55 -0
  130. package/dist/feature/identity/repositories/tokens.js.map +1 -0
  131. package/dist/feature/identity/repositories/users.js +75 -0
  132. package/dist/feature/identity/repositories/users.js.map +1 -0
  133. package/dist/feature/identity/services/cli-login.js +48 -0
  134. package/dist/feature/identity/services/cli-login.js.map +1 -0
  135. package/dist/feature/identity/services/create.js +76 -0
  136. package/dist/feature/identity/services/create.js.map +1 -0
  137. package/dist/feature/identity/services/index.js +10 -0
  138. package/dist/feature/identity/services/index.js.map +1 -0
  139. package/dist/feature/identity/services/saml.js +115 -0
  140. package/dist/feature/identity/services/saml.js.map +1 -0
  141. package/dist/feature/identity/services/sessions.js +81 -0
  142. package/dist/feature/identity/services/sessions.js.map +1 -0
  143. package/dist/feature/identity/services/sso-accounts.js +46 -0
  144. package/dist/feature/identity/services/sso-accounts.js.map +1 -0
  145. package/dist/feature/identity/services/sso.js +120 -0
  146. package/dist/feature/identity/services/sso.js.map +1 -0
  147. package/dist/feature/identity/services/system.js +15 -0
  148. package/dist/feature/identity/services/system.js.map +1 -0
  149. package/dist/feature/identity/services/tokens.js +74 -0
  150. package/dist/feature/identity/services/tokens.js.map +1 -0
  151. package/dist/feature/identity/services/users.js +103 -0
  152. package/dist/feature/identity/services/users.js.map +1 -0
  153. package/dist/feature/identity/types/claims.js +39 -0
  154. package/dist/feature/identity/types/claims.js.map +1 -0
  155. package/dist/feature/identity/types/index.js +5 -0
  156. package/dist/feature/identity/types/index.js.map +1 -0
  157. package/dist/feature/identity/types/token.js +11 -0
  158. package/dist/feature/identity/types/token.js.map +1 -0
  159. package/dist/feature/identity/types/ttl.js +19 -0
  160. package/dist/feature/identity/types/ttl.js.map +1 -0
  161. package/dist/feature/identity/types/user.js +47 -0
  162. package/dist/feature/identity/types/user.js.map +1 -0
  163. package/dist/feature/integrations/ports/adapter.js +2 -0
  164. package/dist/feature/integrations/ports/adapter.js.map +1 -0
  165. package/dist/feature/integrations/ports/changes.js +2 -0
  166. package/dist/feature/integrations/ports/changes.js.map +1 -0
  167. package/dist/feature/integrations/ports/index.js +5 -0
  168. package/dist/feature/integrations/ports/index.js.map +1 -0
  169. package/dist/feature/integrations/ports/operations.js +2 -0
  170. package/dist/feature/integrations/ports/operations.js.map +1 -0
  171. package/dist/feature/integrations/ports/secrets.js +2 -0
  172. package/dist/feature/integrations/ports/secrets.js.map +1 -0
  173. package/dist/feature/integrations/repositories/connections.js +89 -0
  174. package/dist/feature/integrations/repositories/connections.js.map +1 -0
  175. package/dist/feature/integrations/repositories/deliveries.js +56 -0
  176. package/dist/feature/integrations/repositories/deliveries.js.map +1 -0
  177. package/dist/feature/integrations/repositories/index.js +4 -0
  178. package/dist/feature/integrations/repositories/index.js.map +1 -0
  179. package/dist/feature/integrations/repositories/secrets.js +102 -0
  180. package/dist/feature/integrations/repositories/secrets.js.map +1 -0
  181. package/dist/feature/integrations/services/access.js +63 -0
  182. package/dist/feature/integrations/services/access.js.map +1 -0
  183. package/dist/feature/integrations/services/catalog.js +38 -0
  184. package/dist/feature/integrations/services/catalog.js.map +1 -0
  185. package/dist/feature/integrations/services/checks.js +66 -0
  186. package/dist/feature/integrations/services/checks.js.map +1 -0
  187. package/dist/feature/integrations/services/connections.js +189 -0
  188. package/dist/feature/integrations/services/connections.js.map +1 -0
  189. package/dist/feature/integrations/services/create.js +71 -0
  190. package/dist/feature/integrations/services/create.js.map +1 -0
  191. package/dist/feature/integrations/services/dispatch.js +162 -0
  192. package/dist/feature/integrations/services/dispatch.js.map +1 -0
  193. package/dist/feature/integrations/services/index.js +9 -0
  194. package/dist/feature/integrations/services/index.js.map +1 -0
  195. package/dist/feature/integrations/services/outbound.js +46 -0
  196. package/dist/feature/integrations/services/outbound.js.map +1 -0
  197. package/dist/feature/integrations/services/secrets.js +271 -0
  198. package/dist/feature/integrations/services/secrets.js.map +1 -0
  199. package/dist/feature/integrations/types/connection.js +81 -0
  200. package/dist/feature/integrations/types/connection.js.map +1 -0
  201. package/dist/feature/integrations/types/deliveries.js +5 -0
  202. package/dist/feature/integrations/types/deliveries.js.map +1 -0
  203. package/dist/feature/integrations/types/errors.js +58 -0
  204. package/dist/feature/integrations/types/errors.js.map +1 -0
  205. package/dist/feature/integrations/types/index.js +6 -0
  206. package/dist/feature/integrations/types/index.js.map +1 -0
  207. package/dist/feature/integrations/types/operations.js +16 -0
  208. package/dist/feature/integrations/types/operations.js.map +1 -0
  209. package/dist/feature/integrations/types/secrets.js +8 -0
  210. package/dist/feature/integrations/types/secrets.js.map +1 -0
  211. package/dist/feature/notifications/clients/index.js +7 -0
  212. package/dist/feature/notifications/clients/index.js.map +1 -0
  213. package/dist/feature/notifications/clients/slack/api.js +133 -0
  214. package/dist/feature/notifications/clients/slack/api.js.map +1 -0
  215. package/dist/feature/notifications/clients/slack/blocks.js +189 -0
  216. package/dist/feature/notifications/clients/slack/blocks.js.map +1 -0
  217. package/dist/feature/notifications/clients/slack/channel.js +219 -0
  218. package/dist/feature/notifications/clients/slack/channel.js.map +1 -0
  219. package/dist/feature/notifications/clients/slack/events.js +117 -0
  220. package/dist/feature/notifications/clients/slack/events.js.map +1 -0
  221. package/dist/feature/notifications/clients/slack/kind.js +39 -0
  222. package/dist/feature/notifications/clients/slack/kind.js.map +1 -0
  223. package/dist/feature/notifications/clients/slack/socket.js +141 -0
  224. package/dist/feature/notifications/clients/slack/socket.js.map +1 -0
  225. package/dist/feature/notifications/clients/telegram/api.js +93 -0
  226. package/dist/feature/notifications/clients/telegram/api.js.map +1 -0
  227. package/dist/feature/notifications/clients/telegram/channel.js +250 -0
  228. package/dist/feature/notifications/clients/telegram/channel.js.map +1 -0
  229. package/dist/feature/notifications/clients/telegram/kind.js +34 -0
  230. package/dist/feature/notifications/clients/telegram/kind.js.map +1 -0
  231. package/dist/feature/notifications/clients/telegram/render.js +68 -0
  232. package/dist/feature/notifications/clients/telegram/render.js.map +1 -0
  233. package/dist/feature/notifications/clients/telegram/updates.js +71 -0
  234. package/dist/feature/notifications/clients/telegram/updates.js.map +1 -0
  235. package/dist/feature/notifications/clients/webhook/channel.js +131 -0
  236. package/dist/feature/notifications/clients/webhook/channel.js.map +1 -0
  237. package/dist/feature/notifications/clients/webhook/kind.js +52 -0
  238. package/dist/feature/notifications/clients/webhook/kind.js.map +1 -0
  239. package/dist/feature/notifications/clients/webhook/payload.js +96 -0
  240. package/dist/feature/notifications/clients/webhook/payload.js.map +1 -0
  241. package/dist/feature/notifications/clients/webhook/sign.js +15 -0
  242. package/dist/feature/notifications/clients/webhook/sign.js.map +1 -0
  243. package/dist/feature/notifications/ports/channel.js +2 -0
  244. package/dist/feature/notifications/ports/channel.js.map +1 -0
  245. package/dist/feature/notifications/ports/index.js +2 -0
  246. package/dist/feature/notifications/ports/index.js.map +1 -0
  247. package/dist/feature/notifications/ports/publish.js +2 -0
  248. package/dist/feature/notifications/ports/publish.js.map +1 -0
  249. package/dist/feature/notifications/repositories/answers.js +25 -0
  250. package/dist/feature/notifications/repositories/answers.js.map +1 -0
  251. package/dist/feature/notifications/repositories/attempts.js +34 -0
  252. package/dist/feature/notifications/repositories/attempts.js.map +1 -0
  253. package/dist/feature/notifications/repositories/cursors.js +25 -0
  254. package/dist/feature/notifications/repositories/cursors.js.map +1 -0
  255. package/dist/feature/notifications/repositories/deliveries.js +118 -0
  256. package/dist/feature/notifications/repositories/deliveries.js.map +1 -0
  257. package/dist/feature/notifications/repositories/index.js +7 -0
  258. package/dist/feature/notifications/repositories/index.js.map +1 -0
  259. package/dist/feature/notifications/repositories/outcomes.js +80 -0
  260. package/dist/feature/notifications/repositories/outcomes.js.map +1 -0
  261. package/dist/feature/notifications/repositories/subscriptions.js +85 -0
  262. package/dist/feature/notifications/repositories/subscriptions.js.map +1 -0
  263. package/dist/feature/notifications/services/channels.js +199 -0
  264. package/dist/feature/notifications/services/channels.js.map +1 -0
  265. package/dist/feature/notifications/services/closer.js +79 -0
  266. package/dist/feature/notifications/services/closer.js.map +1 -0
  267. package/dist/feature/notifications/services/create.js +116 -0
  268. package/dist/feature/notifications/services/create.js.map +1 -0
  269. package/dist/feature/notifications/services/dispatcher.js +210 -0
  270. package/dist/feature/notifications/services/dispatcher.js.map +1 -0
  271. package/dist/feature/notifications/services/drawing.js +27 -0
  272. package/dist/feature/notifications/services/drawing.js.map +1 -0
  273. package/dist/feature/notifications/services/factories.js +31 -0
  274. package/dist/feature/notifications/services/factories.js.map +1 -0
  275. package/dist/feature/notifications/services/inbound.js +172 -0
  276. package/dist/feature/notifications/services/inbound.js.map +1 -0
  277. package/dist/feature/notifications/services/index.js +10 -0
  278. package/dist/feature/notifications/services/index.js.map +1 -0
  279. package/dist/feature/notifications/services/journal.js +38 -0
  280. package/dist/feature/notifications/services/journal.js.map +1 -0
  281. package/dist/feature/notifications/services/lanes.js +28 -0
  282. package/dist/feature/notifications/services/lanes.js.map +1 -0
  283. package/dist/feature/notifications/services/outbox.js +2 -0
  284. package/dist/feature/notifications/services/outbox.js.map +1 -0
  285. package/dist/feature/notifications/services/sender.js +129 -0
  286. package/dist/feature/notifications/services/sender.js.map +1 -0
  287. package/dist/feature/notifications/services/senders/index.js +3 -0
  288. package/dist/feature/notifications/services/senders/index.js.map +1 -0
  289. package/dist/feature/notifications/services/senders/recent.js +32 -0
  290. package/dist/feature/notifications/services/senders/recent.js.map +1 -0
  291. package/dist/feature/notifications/services/senders/senders.js +23 -0
  292. package/dist/feature/notifications/services/senders/senders.js.map +1 -0
  293. package/dist/feature/notifications/services/subscriptions.js +221 -0
  294. package/dist/feature/notifications/services/subscriptions.js.map +1 -0
  295. package/dist/feature/notifications/services/webhooks/index.js +3 -0
  296. package/dist/feature/notifications/services/webhooks/index.js.map +1 -0
  297. package/dist/feature/notifications/services/webhooks/streaks.js +44 -0
  298. package/dist/feature/notifications/services/webhooks/streaks.js.map +1 -0
  299. package/dist/feature/notifications/services/webhooks/webhooks.js +249 -0
  300. package/dist/feature/notifications/services/webhooks/webhooks.js.map +1 -0
  301. package/dist/feature/notifications/types/answers.js +42 -0
  302. package/dist/feature/notifications/types/answers.js.map +1 -0
  303. package/dist/feature/notifications/types/channel.js +20 -0
  304. package/dist/feature/notifications/types/channel.js.map +1 -0
  305. package/dist/feature/notifications/types/display-url.js +11 -0
  306. package/dist/feature/notifications/types/display-url.js.map +1 -0
  307. package/dist/feature/notifications/types/drafts.js +35 -0
  308. package/dist/feature/notifications/types/drafts.js.map +1 -0
  309. package/dist/feature/notifications/types/errors.js +38 -0
  310. package/dist/feature/notifications/types/errors.js.map +1 -0
  311. package/dist/feature/notifications/types/events.js +137 -0
  312. package/dist/feature/notifications/types/events.js.map +1 -0
  313. package/dist/feature/notifications/types/index.js +13 -0
  314. package/dist/feature/notifications/types/index.js.map +1 -0
  315. package/dist/feature/notifications/types/limits.js +32 -0
  316. package/dist/feature/notifications/types/limits.js.map +1 -0
  317. package/dist/feature/notifications/types/model.js +29 -0
  318. package/dist/feature/notifications/types/model.js.map +1 -0
  319. package/dist/feature/notifications/types/render.js +132 -0
  320. package/dist/feature/notifications/types/render.js.map +1 -0
  321. package/dist/feature/notifications/types/retry.js +35 -0
  322. package/dist/feature/notifications/types/retry.js.map +1 -0
  323. package/dist/feature/notifications/types/texts.js +130 -0
  324. package/dist/feature/notifications/types/texts.js.map +1 -0
  325. package/dist/feature/notifications/types/webhooks.js +22 -0
  326. package/dist/feature/notifications/types/webhooks.js.map +1 -0
  327. package/dist/feature/queue/repositories/queues.js +6 -4
  328. package/dist/feature/queue/repositories/queues.js.map +1 -1
  329. package/dist/feature/queue/services/advance.js +2 -0
  330. package/dist/feature/queue/services/advance.js.map +1 -1
  331. package/dist/feature/queue/services/create.js +2 -0
  332. package/dist/feature/queue/services/create.js.map +1 -1
  333. package/dist/feature/queue/services/edit.js +2 -0
  334. package/dist/feature/queue/services/edit.js.map +1 -1
  335. package/dist/feature/queue/services/items.js +26 -47
  336. package/dist/feature/queue/services/items.js.map +1 -1
  337. package/dist/feature/queue/services/projects.js +22 -6
  338. package/dist/feature/queue/services/projects.js.map +1 -1
  339. package/dist/feature/queue/services/worker/tasks.js +108 -0
  340. package/dist/feature/queue/services/worker/tasks.js.map +1 -0
  341. package/dist/feature/queue/types/duplicates.js +46 -0
  342. package/dist/feature/queue/types/duplicates.js.map +1 -0
  343. package/dist/feature/queue/types/edit.js +2 -0
  344. package/dist/feature/queue/types/edit.js.map +1 -1
  345. package/dist/feature/queue/types/index.js +1 -0
  346. package/dist/feature/queue/types/index.js.map +1 -1
  347. package/dist/feature/queue/types/items.js.map +1 -1
  348. package/dist/feature/queue/types/limit-hits.js +2 -0
  349. package/dist/feature/queue/types/limit-hits.js.map +1 -1
  350. package/dist/feature/queue/types/returns.js +2 -0
  351. package/dist/feature/queue/types/returns.js.map +1 -1
  352. package/dist/feature/repos/services/projects.js +26 -2
  353. package/dist/feature/repos/services/projects.js.map +1 -1
  354. package/dist/feature/repos/types/index.js +1 -0
  355. package/dist/feature/repos/types/index.js.map +1 -1
  356. package/dist/feature/repos/types/remote.js +28 -0
  357. package/dist/feature/repos/types/remote.js.map +1 -0
  358. package/dist/feature/runs/machine/answers.js +13 -0
  359. package/dist/feature/runs/machine/answers.js.map +1 -1
  360. package/dist/feature/runs/machine/delivery-checks.js +4 -2
  361. package/dist/feature/runs/machine/delivery-checks.js.map +1 -1
  362. package/dist/feature/runs/machine/delivery-flow.js +3 -0
  363. package/dist/feature/runs/machine/delivery-flow.js.map +1 -1
  364. package/dist/feature/runs/machine/push/index.js +2 -0
  365. package/dist/feature/runs/machine/push/index.js.map +1 -0
  366. package/dist/feature/runs/machine/push/push.js +48 -0
  367. package/dist/feature/runs/machine/push/push.js.map +1 -0
  368. package/dist/feature/runs/machine/transition.js +21 -2
  369. package/dist/feature/runs/machine/transition.js.map +1 -1
  370. package/dist/feature/runs/ports/commits.js +2 -0
  371. package/dist/feature/runs/ports/commits.js.map +1 -0
  372. package/dist/feature/runs/ports/notify.js +2 -0
  373. package/dist/feature/runs/ports/notify.js.map +1 -0
  374. package/dist/feature/runs/ports/push.js +2 -0
  375. package/dist/feature/runs/ports/push.js.map +1 -0
  376. package/dist/feature/runs/ports/registry-project.js +2 -0
  377. package/dist/feature/runs/ports/registry-project.js.map +1 -0
  378. package/dist/feature/runs/ports/registry-skills.js +2 -0
  379. package/dist/feature/runs/ports/registry-skills.js.map +1 -0
  380. package/dist/feature/runs/ports/remote-mcp.js +2 -0
  381. package/dist/feature/runs/ports/remote-mcp.js.map +1 -0
  382. package/dist/feature/runs/repositories/finished-runs.js +5 -1
  383. package/dist/feature/runs/repositories/finished-runs.js.map +1 -1
  384. package/dist/feature/runs/repositories/rows.js +9 -0
  385. package/dist/feature/runs/repositories/rows.js.map +1 -1
  386. package/dist/feature/runs/repositories/write.js +4 -4
  387. package/dist/feature/runs/repositories/write.js.map +1 -1
  388. package/dist/feature/runs/services/create.js +1 -0
  389. package/dist/feature/runs/services/create.js.map +1 -1
  390. package/dist/feature/runs/services/effects/actions.js +2 -1
  391. package/dist/feature/runs/services/effects/actions.js.map +1 -1
  392. package/dist/feature/runs/services/effects/attempts.js +44 -54
  393. package/dist/feature/runs/services/effects/attempts.js.map +1 -1
  394. package/dist/feature/runs/services/effects/context.js +2 -0
  395. package/dist/feature/runs/services/effects/context.js.map +1 -1
  396. package/dist/feature/runs/services/effects/conversations.js +159 -1
  397. package/dist/feature/runs/services/effects/conversations.js.map +1 -1
  398. package/dist/feature/runs/services/effects/effects.js +2 -0
  399. package/dist/feature/runs/services/effects/effects.js.map +1 -1
  400. package/dist/feature/runs/services/effects/git.js +15 -2
  401. package/dist/feature/runs/services/effects/git.js.map +1 -1
  402. package/dist/feature/runs/services/effects/runtime-check.js +24 -0
  403. package/dist/feature/runs/services/effects/runtime-check.js.map +1 -1
  404. package/dist/feature/runs/services/effects/skills/index.js +3 -0
  405. package/dist/feature/runs/services/effects/skills/index.js.map +1 -0
  406. package/dist/feature/runs/services/effects/skills/outside-queue.js +58 -0
  407. package/dist/feature/runs/services/effects/skills/outside-queue.js.map +1 -0
  408. package/dist/feature/runs/services/effects/skills/registry.js +70 -0
  409. package/dist/feature/runs/services/effects/skills/registry.js.map +1 -0
  410. package/dist/feature/runs/services/engine.js +8 -1
  411. package/dist/feature/runs/services/engine.js.map +1 -1
  412. package/dist/feature/runs/services/index.js +1 -1
  413. package/dist/feature/runs/services/index.js.map +1 -1
  414. package/dist/feature/runs/services/reads.js +21 -1
  415. package/dist/feature/runs/services/reads.js.map +1 -1
  416. package/dist/feature/runs/services/requests.js +14 -4
  417. package/dist/feature/runs/services/requests.js.map +1 -1
  418. package/dist/feature/runs/services/states.js +2 -2
  419. package/dist/feature/runs/services/states.js.map +1 -1
  420. package/dist/feature/runs/types/answers/answers-text.js +7 -0
  421. package/dist/feature/runs/types/answers/answers-text.js.map +1 -0
  422. package/dist/feature/runs/types/constants.js +1 -1
  423. package/dist/feature/runs/types/constants.js.map +1 -1
  424. package/dist/feature/runs/types/create.js +5 -3
  425. package/dist/feature/runs/types/create.js.map +1 -1
  426. package/dist/feature/runs/types/index.js +1 -0
  427. package/dist/feature/runs/types/index.js.map +1 -1
  428. package/dist/feature/runs/types/problems.js +9 -5
  429. package/dist/feature/runs/types/problems.js.map +1 -1
  430. package/dist/feature/runs/types/run.js.map +1 -1
  431. package/dist/feature/runs/types/stage-status.js +3 -1
  432. package/dist/feature/runs/types/stage-status.js.map +1 -1
  433. package/dist/feature/service-registry/clients/http-mcp/client.js +164 -0
  434. package/dist/feature/service-registry/clients/http-mcp/client.js.map +1 -0
  435. package/dist/feature/service-registry/clients/http-mcp/index.js +2 -0
  436. package/dist/feature/service-registry/clients/http-mcp/index.js.map +1 -0
  437. package/dist/feature/service-registry/ports/adapter.js +2 -0
  438. package/dist/feature/service-registry/ports/adapter.js.map +1 -0
  439. package/dist/feature/service-registry/ports/index.js +3 -0
  440. package/dist/feature/service-registry/ports/index.js.map +1 -0
  441. package/dist/feature/service-registry/ports/transport.js +2 -0
  442. package/dist/feature/service-registry/ports/transport.js.map +1 -0
  443. package/dist/feature/service-registry/repositories/index.js +2 -0
  444. package/dist/feature/service-registry/repositories/index.js.map +1 -0
  445. package/dist/feature/service-registry/repositories/links.js +61 -0
  446. package/dist/feature/service-registry/repositories/links.js.map +1 -0
  447. package/dist/feature/service-registry/services/adapter.js +63 -0
  448. package/dist/feature/service-registry/services/adapter.js.map +1 -0
  449. package/dist/feature/service-registry/services/calls.js +86 -0
  450. package/dist/feature/service-registry/services/calls.js.map +1 -0
  451. package/dist/feature/service-registry/services/catalog-scan.js +49 -0
  452. package/dist/feature/service-registry/services/catalog-scan.js.map +1 -0
  453. package/dist/feature/service-registry/services/create.js +30 -0
  454. package/dist/feature/service-registry/services/create.js.map +1 -0
  455. package/dist/feature/service-registry/services/forwarder.js +107 -0
  456. package/dist/feature/service-registry/services/forwarder.js.map +1 -0
  457. package/dist/feature/service-registry/services/index.js +6 -0
  458. package/dist/feature/service-registry/services/index.js.map +1 -0
  459. package/dist/feature/service-registry/services/links.js +256 -0
  460. package/dist/feature/service-registry/services/links.js.map +1 -0
  461. package/dist/feature/service-registry/services/skill-cache.js +135 -0
  462. package/dist/feature/service-registry/services/skill-cache.js.map +1 -0
  463. package/dist/feature/service-registry/services/skill-source.js +128 -0
  464. package/dist/feature/service-registry/services/skill-source.js.map +1 -0
  465. package/dist/feature/service-registry/services/skills.js +197 -0
  466. package/dist/feature/service-registry/services/skills.js.map +1 -0
  467. package/dist/feature/service-registry/types/descriptor.js +41 -0
  468. package/dist/feature/service-registry/types/descriptor.js.map +1 -0
  469. package/dist/feature/service-registry/types/endpoint.js +2 -0
  470. package/dist/feature/service-registry/types/endpoint.js.map +1 -0
  471. package/dist/feature/service-registry/types/errors.js +26 -0
  472. package/dist/feature/service-registry/types/errors.js.map +1 -0
  473. package/dist/feature/service-registry/types/index.js +7 -0
  474. package/dist/feature/service-registry/types/index.js.map +1 -0
  475. package/dist/feature/service-registry/types/link.js +26 -0
  476. package/dist/feature/service-registry/types/link.js.map +1 -0
  477. package/dist/feature/service-registry/types/semver.js +2 -0
  478. package/dist/feature/service-registry/types/semver.js.map +1 -0
  479. package/dist/feature/service-registry/types/skills.js +27 -0
  480. package/dist/feature/service-registry/types/skills.js.map +1 -0
  481. package/dist/feature/stats/repositories/meta.js +10 -0
  482. package/dist/feature/stats/repositories/meta.js.map +1 -1
  483. package/dist/feature/stats/repositories/records.js +18 -7
  484. package/dist/feature/stats/repositories/records.js.map +1 -1
  485. package/dist/feature/stats/repositories/report.js +14 -4
  486. package/dist/feature/stats/repositories/report.js.map +1 -1
  487. package/dist/feature/stats/services/ledger.js +16 -1
  488. package/dist/feature/stats/services/ledger.js.map +1 -1
  489. package/dist/feature/stats/services/report.js +7 -2
  490. package/dist/feature/stats/services/report.js.map +1 -1
  491. package/dist/feature/stats/types/capture.js +3 -0
  492. package/dist/feature/stats/types/capture.js.map +1 -1
  493. package/dist/feature/stats/types/records.js.map +1 -1
  494. package/dist/feature/stats/types/report.js +2 -0
  495. package/dist/feature/stats/types/report.js.map +1 -1
  496. package/dist/feature/swarm-config/services/access/file.js +83 -0
  497. package/dist/feature/swarm-config/services/access/file.js.map +1 -0
  498. package/dist/feature/swarm-config/services/access/index.js +3 -0
  499. package/dist/feature/swarm-config/services/access/index.js.map +1 -0
  500. package/dist/feature/swarm-config/services/access/validate.js +134 -0
  501. package/dist/feature/swarm-config/services/access/validate.js.map +1 -0
  502. package/dist/feature/swarm-config/services/assemble.js +32 -1
  503. package/dist/feature/swarm-config/services/assemble.js.map +1 -1
  504. package/dist/feature/swarm-config/services/index.js +3 -2
  505. package/dist/feature/swarm-config/services/index.js.map +1 -1
  506. package/dist/feature/swarm-config/services/load.js +10 -1
  507. package/dist/feature/swarm-config/services/load.js.map +1 -1
  508. package/dist/feature/swarm-config/services/sections/mcp-servers.js +33 -5
  509. package/dist/feature/swarm-config/services/sections/mcp-servers.js.map +1 -1
  510. package/dist/feature/swarm-config/services/sections/server-saml.js +116 -0
  511. package/dist/feature/swarm-config/services/sections/server-saml.js.map +1 -0
  512. package/dist/feature/swarm-config/services/sections/server.js +272 -0
  513. package/dist/feature/swarm-config/services/sections/server.js.map +1 -0
  514. package/dist/feature/swarm-config/services/settings.js +25 -1
  515. package/dist/feature/swarm-config/services/settings.js.map +1 -1
  516. package/dist/feature/swarm-config/services/validate-settings.js +51 -3
  517. package/dist/feature/swarm-config/services/validate-settings.js.map +1 -1
  518. package/dist/feature/swarm-config/services/validate-specialists.js +23 -0
  519. package/dist/feature/swarm-config/services/validate-specialists.js.map +1 -1
  520. package/dist/feature/swarm-config/services/validate.js +30 -2
  521. package/dist/feature/swarm-config/services/validate.js.map +1 -1
  522. package/dist/feature/swarm-config/types/access/index.js +2 -0
  523. package/dist/feature/swarm-config/types/access/index.js.map +1 -0
  524. package/dist/feature/swarm-config/types/access/policy.js +10 -0
  525. package/dist/feature/swarm-config/types/access/policy.js.map +1 -0
  526. package/dist/feature/swarm-config/types/index.js +2 -0
  527. package/dist/feature/swarm-config/types/index.js.map +1 -1
  528. package/dist/feature/swarm-config/types/providers/provider.js +9 -0
  529. package/dist/feature/swarm-config/types/providers/provider.js.map +1 -1
  530. package/dist/feature/swarm-config/types/settings.js +31 -7
  531. package/dist/feature/swarm-config/types/settings.js.map +1 -1
  532. package/dist/feature/swarm-config/types/skills/index.js +3 -0
  533. package/dist/feature/swarm-config/types/skills/index.js.map +1 -0
  534. package/dist/feature/swarm-config/types/skills/semver.js +250 -0
  535. package/dist/feature/swarm-config/types/skills/semver.js.map +1 -0
  536. package/dist/feature/swarm-config/types/skills/skill-ref.js +35 -0
  537. package/dist/feature/swarm-config/types/skills/skill-ref.js.map +1 -0
  538. package/dist/feature/swarm-config/types/specialist.js +2 -0
  539. package/dist/feature/swarm-config/types/specialist.js.map +1 -1
  540. package/dist/feature/swarm-config/types/web/index.js +2 -0
  541. package/dist/feature/swarm-config/types/web/index.js.map +1 -0
  542. package/dist/feature/swarm-config/types/web/settings.js +14 -0
  543. package/dist/feature/swarm-config/types/web/settings.js.map +1 -0
  544. package/dist/feature/swarm-edit/services/mcp/editor-mcp.js +2 -0
  545. package/dist/feature/swarm-edit/services/mcp/editor-mcp.js.map +1 -1
  546. package/dist/feature/swarm-edit/services/plan-settings.js +2 -1
  547. package/dist/feature/swarm-edit/services/plan-settings.js.map +1 -1
  548. package/dist/feature/swarm-edit/services/references.js +2 -0
  549. package/dist/feature/swarm-edit/services/references.js.map +1 -1
  550. package/dist/feature/swarm-edit/types/editor.js.map +1 -1
  551. package/dist/feature/swarm-edit/types/setting-fields.js +1 -0
  552. package/dist/feature/swarm-edit/types/setting-fields.js.map +1 -1
  553. package/dist/platform/archive/index.js +2 -0
  554. package/dist/platform/archive/index.js.map +1 -0
  555. package/dist/platform/archive/zip.js +164 -0
  556. package/dist/platform/archive/zip.js.map +1 -0
  557. package/dist/platform/files/index.js +2 -0
  558. package/dist/platform/files/index.js.map +1 -0
  559. package/dist/platform/files/read.js +20 -0
  560. package/dist/platform/files/read.js.map +1 -0
  561. package/dist/platform/git/authorship.js +12 -0
  562. package/dist/platform/git/authorship.js.map +1 -0
  563. package/dist/platform/git/changes.js +26 -0
  564. package/dist/platform/git/changes.js.map +1 -0
  565. package/dist/platform/git/delivery.js +8 -20
  566. package/dist/platform/git/delivery.js.map +1 -1
  567. package/dist/platform/git/index.js +3 -0
  568. package/dist/platform/git/index.js.map +1 -1
  569. package/dist/platform/git/remote.js +69 -0
  570. package/dist/platform/git/remote.js.map +1 -0
  571. package/dist/platform/git/workspace.js +3 -4
  572. package/dist/platform/git/workspace.js.map +1 -1
  573. package/dist/platform/http/index.js +3 -0
  574. package/dist/platform/http/index.js.map +1 -0
  575. package/dist/platform/http/request.js +157 -0
  576. package/dist/platform/http/request.js.map +1 -0
  577. package/dist/platform/http/websocket-frames.js +155 -0
  578. package/dist/platform/http/websocket-frames.js.map +1 -0
  579. package/dist/platform/http/websocket.js +259 -0
  580. package/dist/platform/http/websocket.js.map +1 -0
  581. package/dist/platform/paths/index.js +1 -1
  582. package/dist/platform/paths/index.js.map +1 -1
  583. package/dist/platform/paths/paths.js +6 -0
  584. package/dist/platform/paths/paths.js.map +1 -1
  585. package/dist/platform/secrets/command.js +30 -0
  586. package/dist/platform/secrets/command.js.map +1 -0
  587. package/dist/platform/secrets/errors.js +16 -0
  588. package/dist/platform/secrets/errors.js.map +1 -0
  589. package/dist/platform/secrets/file-key.js +43 -0
  590. package/dist/platform/secrets/file-key.js.map +1 -0
  591. package/dist/platform/secrets/file.js +158 -0
  592. package/dist/platform/secrets/file.js.map +1 -0
  593. package/dist/platform/secrets/index.js +6 -0
  594. package/dist/platform/secrets/index.js.map +1 -0
  595. package/dist/platform/secrets/keyring.js +73 -0
  596. package/dist/platform/secrets/keyring.js.map +1 -0
  597. package/dist/platform/secrets/select.js +124 -0
  598. package/dist/platform/secrets/select.js.map +1 -0
  599. package/dist/platform/secrets/store.js +2 -0
  600. package/dist/platform/secrets/store.js.map +1 -0
  601. package/dist/platform/sqlite/authorship-migration.js +23 -0
  602. package/dist/platform/sqlite/authorship-migration.js.map +1 -0
  603. package/dist/platform/sqlite/identity-migration.js +52 -0
  604. package/dist/platform/sqlite/identity-migration.js.map +1 -0
  605. package/dist/platform/sqlite/integrations-migration.js +147 -0
  606. package/dist/platform/sqlite/integrations-migration.js.map +1 -0
  607. package/dist/platform/sqlite/parts.js +27 -0
  608. package/dist/platform/sqlite/parts.js.map +1 -1
  609. package/dist/platform/sqlite/saml-migration.js +9 -0
  610. package/dist/platform/sqlite/saml-migration.js.map +1 -0
  611. package/dist/platform/sqlite/sso-migration.js +17 -0
  612. package/dist/platform/sqlite/sso-migration.js.map +1 -0
  613. package/dist/platform/sqlite/stats-migration.js +8 -0
  614. package/dist/platform/sqlite/stats-migration.js.map +1 -1
  615. package/dist/presentation/cli/commands/daemon.js +5 -3
  616. package/dist/presentation/cli/commands/daemon.js.map +1 -1
  617. package/dist/presentation/cli/commands/integration/index.js +3 -0
  618. package/dist/presentation/cli/commands/integration/index.js.map +1 -0
  619. package/dist/presentation/cli/commands/integration/integrations.js +239 -0
  620. package/dist/presentation/cli/commands/integration/integrations.js.map +1 -0
  621. package/dist/presentation/cli/commands/integration/skills.js +24 -0
  622. package/dist/presentation/cli/commands/integration/skills.js.map +1 -0
  623. package/dist/presentation/cli/commands/mcp.js +23 -1
  624. package/dist/presentation/cli/commands/mcp.js.map +1 -1
  625. package/dist/presentation/cli/commands/notify/index.js +2 -0
  626. package/dist/presentation/cli/commands/notify/index.js.map +1 -0
  627. package/dist/presentation/cli/commands/notify/notify.js +145 -0
  628. package/dist/presentation/cli/commands/notify/notify.js.map +1 -0
  629. package/dist/presentation/cli/commands/queue-edit.js +0 -24
  630. package/dist/presentation/cli/commands/queue-edit.js.map +1 -1
  631. package/dist/presentation/cli/commands/queue.js +3 -3
  632. package/dist/presentation/cli/commands/queue.js.map +1 -1
  633. package/dist/presentation/cli/commands/run-delivery.js +23 -2
  634. package/dist/presentation/cli/commands/run-delivery.js.map +1 -1
  635. package/dist/presentation/cli/commands/run.js +26 -8
  636. package/dist/presentation/cli/commands/run.js.map +1 -1
  637. package/dist/presentation/cli/commands/server/access.js +43 -0
  638. package/dist/presentation/cli/commands/server/access.js.map +1 -0
  639. package/dist/presentation/cli/commands/server/admin.js +118 -0
  640. package/dist/presentation/cli/commands/server/admin.js.map +1 -0
  641. package/dist/presentation/cli/commands/server/apply.js +82 -0
  642. package/dist/presentation/cli/commands/server/apply.js.map +1 -0
  643. package/dist/presentation/cli/commands/server/audit.js +38 -0
  644. package/dist/presentation/cli/commands/server/audit.js.map +1 -0
  645. package/dist/presentation/cli/commands/server/login.js +141 -0
  646. package/dist/presentation/cli/commands/server/login.js.map +1 -0
  647. package/dist/presentation/cli/commands/server/profile.js +38 -0
  648. package/dist/presentation/cli/commands/server/profile.js.map +1 -0
  649. package/dist/presentation/cli/commands/server/register.js +12 -0
  650. package/dist/presentation/cli/commands/server/register.js.map +1 -0
  651. package/dist/presentation/cli/commands/server/repository.js +34 -0
  652. package/dist/presentation/cli/commands/server/repository.js.map +1 -0
  653. package/dist/presentation/cli/commands/stats.js +10 -1
  654. package/dist/presentation/cli/commands/stats.js.map +1 -1
  655. package/dist/presentation/cli/commands/web.js +26 -5
  656. package/dist/presentation/cli/commands/web.js.map +1 -1
  657. package/dist/presentation/cli/commands/webhook/index.js +2 -0
  658. package/dist/presentation/cli/commands/webhook/index.js.map +1 -0
  659. package/dist/presentation/cli/commands/webhook/webhook.js +172 -0
  660. package/dist/presentation/cli/commands/webhook/webhook.js.map +1 -0
  661. package/dist/presentation/cli/context.js +34 -2
  662. package/dist/presentation/cli/context.js.map +1 -1
  663. package/dist/presentation/cli/help.js +20 -1
  664. package/dist/presentation/cli/help.js.map +1 -1
  665. package/dist/presentation/cli/io.js.map +1 -1
  666. package/dist/presentation/cli/local/config-check-providers.js +11 -0
  667. package/dist/presentation/cli/local/config-check-providers.js.map +1 -1
  668. package/dist/presentation/cli/local/config-check.js +16 -8
  669. package/dist/presentation/cli/local/config-check.js.map +1 -1
  670. package/dist/presentation/cli/options.js +53 -0
  671. package/dist/presentation/cli/options.js.map +1 -1
  672. package/dist/presentation/cli/program.js +8 -0
  673. package/dist/presentation/cli/program.js.map +1 -1
  674. package/dist/presentation/cli/queue-add.js +53 -35
  675. package/dist/presentation/cli/queue-add.js.map +1 -1
  676. package/dist/presentation/cli/queue-print.js +34 -1
  677. package/dist/presentation/cli/queue-print.js.map +1 -1
  678. package/dist/presentation/cli/secret-keys.js +38 -0
  679. package/dist/presentation/cli/secret-keys.js.map +1 -0
  680. package/dist/presentation/format/access/access.js +30 -0
  681. package/dist/presentation/format/access/access.js.map +1 -0
  682. package/dist/presentation/format/access/index.js +2 -0
  683. package/dist/presentation/format/access/index.js.map +1 -0
  684. package/dist/presentation/format/audit/audit.js +29 -0
  685. package/dist/presentation/format/audit/audit.js.map +1 -0
  686. package/dist/presentation/format/audit/index.js +2 -0
  687. package/dist/presentation/format/audit/index.js.map +1 -0
  688. package/dist/presentation/format/index.js +5 -0
  689. package/dist/presentation/format/index.js.map +1 -1
  690. package/dist/presentation/format/integration/index.js +3 -0
  691. package/dist/presentation/format/integration/index.js.map +1 -0
  692. package/dist/presentation/format/integration/integrations.js +95 -0
  693. package/dist/presentation/format/integration/integrations.js.map +1 -0
  694. package/dist/presentation/format/integration/skills.js +17 -0
  695. package/dist/presentation/format/integration/skills.js.map +1 -0
  696. package/dist/presentation/format/notifications/index.js +2 -0
  697. package/dist/presentation/format/notifications/index.js.map +1 -0
  698. package/dist/presentation/format/notifications/notifications.js +44 -0
  699. package/dist/presentation/format/notifications/notifications.js.map +1 -0
  700. package/dist/presentation/format/overview.js +2 -1
  701. package/dist/presentation/format/overview.js.map +1 -1
  702. package/dist/presentation/format/providers/provider-list.js +4 -1
  703. package/dist/presentation/format/providers/provider-list.js.map +1 -1
  704. package/dist/presentation/format/queue.js +2 -1
  705. package/dist/presentation/format/queue.js.map +1 -1
  706. package/dist/presentation/format/runs.js +30 -2
  707. package/dist/presentation/format/runs.js.map +1 -1
  708. package/dist/presentation/format/stats.js +9 -3
  709. package/dist/presentation/format/stats.js.map +1 -1
  710. package/dist/presentation/format/webhooks/index.js +2 -0
  711. package/dist/presentation/format/webhooks/index.js.map +1 -0
  712. package/dist/presentation/format/webhooks/webhooks.js +59 -0
  713. package/dist/presentation/format/webhooks/webhooks.js.map +1 -0
  714. package/dist/presentation/ipc/client/address.js +8 -0
  715. package/dist/presentation/ipc/client/address.js.map +1 -0
  716. package/dist/presentation/ipc/client/client.js +23 -6
  717. package/dist/presentation/ipc/client/client.js.map +1 -1
  718. package/dist/presentation/ipc/client/index.js +1 -0
  719. package/dist/presentation/ipc/client/index.js.map +1 -1
  720. package/dist/presentation/ipc/client/remote.js +85 -0
  721. package/dist/presentation/ipc/client/remote.js.map +1 -0
  722. package/dist/presentation/ipc/contract/access/access.js +21 -0
  723. package/dist/presentation/ipc/contract/access/access.js.map +1 -0
  724. package/dist/presentation/ipc/contract/access/index.js +2 -0
  725. package/dist/presentation/ipc/contract/access/index.js.map +1 -0
  726. package/dist/presentation/ipc/contract/envelope.js +90 -6
  727. package/dist/presentation/ipc/contract/envelope.js.map +1 -1
  728. package/dist/presentation/ipc/contract/identity/audit.js +21 -0
  729. package/dist/presentation/ipc/contract/identity/audit.js.map +1 -0
  730. package/dist/presentation/ipc/contract/identity/identity.js +120 -0
  731. package/dist/presentation/ipc/contract/identity/identity.js.map +1 -0
  732. package/dist/presentation/ipc/contract/identity/index.js +3 -0
  733. package/dist/presentation/ipc/contract/identity/index.js.map +1 -0
  734. package/dist/presentation/ipc/contract/index.js +6 -0
  735. package/dist/presentation/ipc/contract/index.js.map +1 -1
  736. package/dist/presentation/ipc/contract/integrations/integrations.js +85 -0
  737. package/dist/presentation/ipc/contract/integrations/integrations.js.map +1 -0
  738. package/dist/presentation/ipc/contract/integrations/remote.js +16 -0
  739. package/dist/presentation/ipc/contract/integrations/remote.js.map +1 -0
  740. package/dist/presentation/ipc/contract/notifications/notifications.js +44 -0
  741. package/dist/presentation/ipc/contract/notifications/notifications.js.map +1 -0
  742. package/dist/presentation/ipc/contract/notifications/webhooks.js +48 -0
  743. package/dist/presentation/ipc/contract/notifications/webhooks.js.map +1 -0
  744. package/dist/presentation/ipc/contract/panel.js +5 -1
  745. package/dist/presentation/ipc/contract/panel.js.map +1 -1
  746. package/dist/presentation/ipc/contract/queue.js +46 -5
  747. package/dist/presentation/ipc/contract/queue.js.map +1 -1
  748. package/dist/presentation/ipc/contract/repositories.js +4 -0
  749. package/dist/presentation/ipc/contract/repositories.js.map +1 -1
  750. package/dist/presentation/ipc/contract/responses/stats.js +3 -0
  751. package/dist/presentation/ipc/contract/responses/stats.js.map +1 -1
  752. package/dist/presentation/ipc/contract/runs.js +12 -2
  753. package/dist/presentation/ipc/contract/runs.js.map +1 -1
  754. package/dist/presentation/ipc/contract/stats/stats.js +2 -0
  755. package/dist/presentation/ipc/contract/stats/stats.js.map +1 -1
  756. package/dist/presentation/ipc/handlers/access/access.js +74 -0
  757. package/dist/presentation/ipc/handlers/access/access.js.map +1 -0
  758. package/dist/presentation/ipc/handlers/access/author.js +25 -0
  759. package/dist/presentation/ipc/handlers/access/author.js.map +1 -0
  760. package/dist/presentation/ipc/handlers/access/guard.js +57 -0
  761. package/dist/presentation/ipc/handlers/access/guard.js.map +1 -0
  762. package/dist/presentation/ipc/handlers/access/index.js +5 -0
  763. package/dist/presentation/ipc/handlers/access/index.js.map +1 -0
  764. package/dist/presentation/ipc/handlers/access/method-actions.js +13 -0
  765. package/dist/presentation/ipc/handlers/access/method-actions.js.map +1 -0
  766. package/dist/presentation/ipc/handlers/access/method-runs.js +76 -0
  767. package/dist/presentation/ipc/handlers/access/method-runs.js.map +1 -0
  768. package/dist/presentation/ipc/handlers/access/method-settings.js +120 -0
  769. package/dist/presentation/ipc/handlers/access/method-settings.js.map +1 -0
  770. package/dist/presentation/ipc/handlers/access/resource.js +129 -0
  771. package/dist/presentation/ipc/handlers/access/resource.js.map +1 -0
  772. package/dist/presentation/ipc/handlers/access/visible.js +13 -0
  773. package/dist/presentation/ipc/handlers/access/visible.js.map +1 -0
  774. package/dist/presentation/ipc/handlers/audit/audit-account-actions.js +52 -0
  775. package/dist/presentation/ipc/handlers/audit/audit-account-actions.js.map +1 -0
  776. package/dist/presentation/ipc/handlers/audit/audit-actions.js +220 -0
  777. package/dist/presentation/ipc/handlers/audit/audit-actions.js.map +1 -0
  778. package/dist/presentation/ipc/handlers/audit/audit-helpers.js +56 -0
  779. package/dist/presentation/ipc/handlers/audit/audit-helpers.js.map +1 -0
  780. package/dist/presentation/ipc/handlers/audit/audit-list.js +57 -0
  781. package/dist/presentation/ipc/handlers/audit/audit-list.js.map +1 -0
  782. package/dist/presentation/ipc/handlers/audit/audit-readers.js +74 -0
  783. package/dist/presentation/ipc/handlers/audit/audit-readers.js.map +1 -0
  784. package/dist/presentation/ipc/handlers/audit/audit-settings-actions.js +73 -0
  785. package/dist/presentation/ipc/handlers/audit/audit-settings-actions.js.map +1 -0
  786. package/dist/presentation/ipc/handlers/audit/audit-table.js +10 -0
  787. package/dist/presentation/ipc/handlers/audit/audit-table.js.map +1 -0
  788. package/dist/presentation/ipc/handlers/audit/audit.js +101 -0
  789. package/dist/presentation/ipc/handlers/audit/audit.js.map +1 -0
  790. package/dist/presentation/ipc/handlers/audit/index.js +5 -0
  791. package/dist/presentation/ipc/handlers/audit/index.js.map +1 -0
  792. package/dist/presentation/ipc/handlers/identity/identity.js +182 -0
  793. package/dist/presentation/ipc/handlers/identity/identity.js.map +1 -0
  794. package/dist/presentation/ipc/handlers/identity/index.js +2 -0
  795. package/dist/presentation/ipc/handlers/identity/index.js.map +1 -0
  796. package/dist/presentation/ipc/handlers/integrations/index.js +6 -0
  797. package/dist/presentation/ipc/handlers/integrations/index.js.map +1 -0
  798. package/dist/presentation/ipc/handlers/integrations/integrations.js +114 -0
  799. package/dist/presentation/ipc/handlers/integrations/integrations.js.map +1 -0
  800. package/dist/presentation/ipc/handlers/integrations/notifications.js +49 -0
  801. package/dist/presentation/ipc/handlers/integrations/notifications.js.map +1 -0
  802. package/dist/presentation/ipc/handlers/integrations/remote.js +35 -0
  803. package/dist/presentation/ipc/handlers/integrations/remote.js.map +1 -0
  804. package/dist/presentation/ipc/handlers/integrations/skills.js +18 -0
  805. package/dist/presentation/ipc/handlers/integrations/skills.js.map +1 -0
  806. package/dist/presentation/ipc/handlers/integrations/webhooks.js +30 -0
  807. package/dist/presentation/ipc/handlers/integrations/webhooks.js.map +1 -0
  808. package/dist/presentation/ipc/handlers/observers.js +10 -2
  809. package/dist/presentation/ipc/handlers/observers.js.map +1 -1
  810. package/dist/presentation/ipc/handlers/providers.js +9 -1
  811. package/dist/presentation/ipc/handlers/providers.js.map +1 -1
  812. package/dist/presentation/ipc/handlers/queue.js +70 -18
  813. package/dist/presentation/ipc/handlers/queue.js.map +1 -1
  814. package/dist/presentation/ipc/handlers/repositories.js +28 -13
  815. package/dist/presentation/ipc/handlers/repositories.js.map +1 -1
  816. package/dist/presentation/ipc/handlers/runs.js +13 -5
  817. package/dist/presentation/ipc/handlers/runs.js.map +1 -1
  818. package/dist/presentation/ipc/handlers/stats.js +27 -6
  819. package/dist/presentation/ipc/handlers/stats.js.map +1 -1
  820. package/dist/presentation/ipc/handlers/system.js +8 -1
  821. package/dist/presentation/ipc/handlers/system.js.map +1 -1
  822. package/dist/presentation/ipc/handlers/table.js +18 -3
  823. package/dist/presentation/ipc/handlers/table.js.map +1 -1
  824. package/dist/presentation/ipc/log-signals.js +78 -0
  825. package/dist/presentation/ipc/log-signals.js.map +1 -0
  826. package/dist/presentation/ipc/publisher.js +20 -3
  827. package/dist/presentation/ipc/publisher.js.map +1 -1
  828. package/dist/presentation/ipc/server.js +58 -14
  829. package/dist/presentation/ipc/server.js.map +1 -1
  830. package/dist/presentation/ipc/snapshots.js +22 -3
  831. package/dist/presentation/ipc/snapshots.js.map +1 -1
  832. package/dist/presentation/ipc/views/index.js +2 -0
  833. package/dist/presentation/ipc/views/index.js.map +1 -1
  834. package/dist/presentation/ipc/views/notifications/notifications.js +7 -0
  835. package/dist/presentation/ipc/views/notifications/notifications.js.map +1 -0
  836. package/dist/presentation/ipc/views/notifications/webhooks.js +6 -0
  837. package/dist/presentation/ipc/views/notifications/webhooks.js.map +1 -0
  838. package/dist/presentation/ipc/views/queue.js +3 -0
  839. package/dist/presentation/ipc/views/queue.js.map +1 -1
  840. package/dist/presentation/ipc/views/runs.js +18 -7
  841. package/dist/presentation/ipc/views/runs.js.map +1 -1
  842. package/dist/presentation/ipc/views/stats.js +11 -3
  843. package/dist/presentation/ipc/views/stats.js.map +1 -1
  844. package/dist/presentation/mcp/host-kit.js +2 -1
  845. package/dist/presentation/mcp/host-kit.js.map +1 -1
  846. package/dist/presentation/mcp/host-queue.js +19 -13
  847. package/dist/presentation/mcp/host-queue.js.map +1 -1
  848. package/dist/presentation/mcp/host-runs.js +10 -14
  849. package/dist/presentation/mcp/host-runs.js.map +1 -1
  850. package/dist/presentation/mcp/index.js +1 -0
  851. package/dist/presentation/mcp/index.js.map +1 -1
  852. package/dist/presentation/mcp/remote-bridge.js +50 -0
  853. package/dist/presentation/mcp/remote-bridge.js.map +1 -0
  854. package/dist/presentation/mcp/tools.js +18 -0
  855. package/dist/presentation/mcp/tools.js.map +1 -1
  856. package/dist/presentation/mcp/worker-extra.js +77 -5
  857. package/dist/presentation/mcp/worker-extra.js.map +1 -1
  858. package/dist/presentation/mcp/worker-tools.js.map +1 -1
  859. package/dist/presentation/mcp/worker.js +2 -1
  860. package/dist/presentation/mcp/worker.js.map +1 -1
  861. package/dist/presentation/web/access.js +42 -0
  862. package/dist/presentation/web/access.js.map +1 -0
  863. package/dist/presentation/web/auth/context.js +3 -0
  864. package/dist/presentation/web/auth/context.js.map +1 -0
  865. package/dist/presentation/web/auth/gate.js +33 -0
  866. package/dist/presentation/web/auth/gate.js.map +1 -0
  867. package/dist/presentation/web/auth/oidc.js +49 -0
  868. package/dist/presentation/web/auth/oidc.js.map +1 -0
  869. package/dist/presentation/web/auth/pages.js +43 -0
  870. package/dist/presentation/web/auth/pages.js.map +1 -0
  871. package/dist/presentation/web/auth/proxy.js +54 -0
  872. package/dist/presentation/web/auth/proxy.js.map +1 -0
  873. package/dist/presentation/web/auth/routes.js +152 -0
  874. package/dist/presentation/web/auth/routes.js.map +1 -0
  875. package/dist/presentation/web/auth/saml.js +65 -0
  876. package/dist/presentation/web/auth/saml.js.map +1 -0
  877. package/dist/presentation/web/auth/session.js +53 -0
  878. package/dist/presentation/web/auth/session.js.map +1 -0
  879. package/dist/presentation/web/errors.js +18 -1
  880. package/dist/presentation/web/errors.js.map +1 -1
  881. package/dist/presentation/web/hub.js +101 -22
  882. package/dist/presentation/web/hub.js.map +1 -1
  883. package/dist/presentation/web/live/protocol.js +68 -0
  884. package/dist/presentation/web/live/protocol.js.map +1 -0
  885. package/dist/presentation/web/live/read.js +29 -0
  886. package/dist/presentation/web/live/read.js.map +1 -0
  887. package/dist/presentation/web/live/socket.js +93 -0
  888. package/dist/presentation/web/live/socket.js.map +1 -0
  889. package/dist/presentation/web/live/state-topics.js +127 -0
  890. package/dist/presentation/web/live/state-topics.js.map +1 -0
  891. package/dist/presentation/web/live/topics.js +119 -0
  892. package/dist/presentation/web/live/topics.js.map +1 -0
  893. package/dist/presentation/web/options.js.map +1 -1
  894. package/dist/presentation/web/panel/daemon-panel.js +24 -4
  895. package/dist/presentation/web/panel/daemon-panel.js.map +1 -1
  896. package/dist/presentation/web/request.js +42 -3
  897. package/dist/presentation/web/request.js.map +1 -1
  898. package/dist/presentation/web/routes/access/access.js +14 -0
  899. package/dist/presentation/web/routes/access/access.js.map +1 -0
  900. package/dist/presentation/web/routes/audit/audit.js +11 -0
  901. package/dist/presentation/web/routes/audit/audit.js.map +1 -0
  902. package/dist/presentation/web/routes/integrations/integrations.js +147 -0
  903. package/dist/presentation/web/routes/integrations/integrations.js.map +1 -0
  904. package/dist/presentation/web/routes/integrations/webhooks.js +73 -0
  905. package/dist/presentation/web/routes/integrations/webhooks.js.map +1 -0
  906. package/dist/presentation/web/routes/queue.js +1 -1
  907. package/dist/presentation/web/routes/queue.js.map +1 -1
  908. package/dist/presentation/web/routes/runs.js +5 -1
  909. package/dist/presentation/web/routes/runs.js.map +1 -1
  910. package/dist/presentation/web/routes/system.js +21 -13
  911. package/dist/presentation/web/routes/system.js.map +1 -1
  912. package/dist/presentation/web/server.js +95 -17
  913. package/dist/presentation/web/server.js.map +1 -1
  914. package/dist/presentation/web/visible.js +93 -0
  915. package/dist/presentation/web/visible.js.map +1 -0
  916. package/dist/web/assets/EntryList-CMEscRod.js +3 -0
  917. package/dist/web/assets/FilterField-BQc_UwWN.js +7 -0
  918. package/dist/web/assets/LinkTabs-v8NyjDyU.js +4 -0
  919. package/dist/web/assets/SharedPipelinesGroup-BzlZ5U2Y.js +1 -0
  920. package/dist/web/assets/deliveryModes-CHEVNJxR.js +1 -0
  921. package/dist/web/assets/empty-Bho47NOE.js +41 -0
  922. package/dist/web/assets/index-vRNf1iRZ.css +2 -0
  923. package/dist/web/assets/index-ztjIJ-Ig.js +41 -0
  924. package/dist/web/assets/locales-BTrmAl7v.js +1 -0
  925. package/dist/web/assets/pipelines-DVZ7cqyZ.js +14 -0
  926. package/dist/web/assets/settingFields-iGwxRKJI.js +1 -0
  927. package/dist/web/assets/settings-DN_KmJBg.js +6 -0
  928. package/dist/web/assets/stats-4iy1ZRny.js +1 -0
  929. package/dist/web/assets/tabs-D26rwwNs.js +1 -0
  930. package/dist/web/assets/toggle-group-D-oIoacR.js +1 -0
  931. package/dist/web/assets/topology-CaSfGJbk.js +1 -0
  932. package/dist/web/index.html +10 -10
  933. package/integrations/claude-code/.claude-plugin/plugin.json +1 -1
  934. package/package.json +12 -4
  935. package/dist/web/assets/EntryList-Cyc9PxYQ.js +0 -3
  936. package/dist/web/assets/FilterField-DOat7bHi.js +0 -7
  937. package/dist/web/assets/LinkTabs-V5hVhmkv.js +0 -4
  938. package/dist/web/assets/SharedPipelinesGroup-CMV55Qri.js +0 -1
  939. package/dist/web/assets/card-DDDwEBup.js +0 -1
  940. package/dist/web/assets/deliveryModes-OVH1wAmC.js +0 -1
  941. package/dist/web/assets/empty-CF7EgKd2.js +0 -41
  942. package/dist/web/assets/index-7lFvzi1k.js +0 -41
  943. package/dist/web/assets/index-BJYNhfGR.css +0 -2
  944. package/dist/web/assets/locales-3BQ5tRcZ.js +0 -1
  945. package/dist/web/assets/pipelines-BLhOZXCy.js +0 -14
  946. package/dist/web/assets/settingFields-C8-XJpPl.js +0 -1
  947. package/dist/web/assets/settings-96DThDqz.js +0 -6
  948. package/dist/web/assets/stats-B1imf_Vj.js +0 -1
  949. package/dist/web/assets/tabs-DyEM16mP.js +0 -1
  950. package/dist/web/assets/topology-Dyq425Mw.js +0 -1
@@ -1,8 +1,12 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
3
  import { parse as parseYaml } from 'yaml';
4
+ import { RUN_TITLE_LIMIT } from '../../feature/agents/types/index.js';
5
+ import { DUPLICATE_TASK_CODE } from '../../feature/queue/types/index.js';
4
6
  import { DELIVERY_MODES } from '../../feature/swarm-config/types/index.js';
7
+ import { IpcError } from '../ipc/client/index.js';
5
8
  import { proposedGroupSchema } from '../ipc/contract/index.js';
9
+ import { call } from './context.js';
6
10
  import { usage } from './io.js';
7
11
  export function readGroups(file) {
8
12
  return proposedGroupSchema
@@ -49,4 +53,53 @@ export function parseSwitch(flag, value) {
49
53
  return false;
50
54
  throw usage(`${flag} must be on or off`);
51
55
  }
56
+ /** `--mine` and `--author`: the lists of runs and of the queue show only the runs and tasks of one author. */
57
+ export function addAuthorOptions(command) {
58
+ return command
59
+ .option('--mine', 'only what you created (server mode)')
60
+ .option('--author <email>', 'only what this user created (server mode)');
61
+ }
62
+ /**
63
+ * The `author` parameter of a request: `me` for `--mine` (or `--author me` where `allowMe` is set),
64
+ * the id of the user for an email, nothing when no flag is given.
65
+ */
66
+ export async function authorParameter(ctx, options, allowMe = false) {
67
+ if (options.mine === true && options.author !== undefined) {
68
+ throw usage('--mine and --author cannot be combined');
69
+ }
70
+ if (options.mine === true)
71
+ return { author: 'me' };
72
+ if (options.author === undefined)
73
+ return {};
74
+ if (allowMe && options.author === 'me')
75
+ return { author: 'me' };
76
+ const { users } = (await call(ctx, 'users_directory', {}));
77
+ const email = options.author.trim().toLowerCase();
78
+ const found = users.find((user) => user.email.toLowerCase() === email);
79
+ if (found === undefined)
80
+ throw usage(`unknown user "${options.author}"`);
81
+ return { author: found.id };
82
+ }
83
+ /** The help text of `--allow-duplicate`. */
84
+ export const ALLOW_DUPLICATE_HELP = 'add the task even when the same one already waits in the queue; without it a copy is refused';
85
+ /** Adds the way around to the refusal of a task that already waits in the queue. */
86
+ export async function withDuplicateHint(work) {
87
+ try {
88
+ return await work();
89
+ }
90
+ catch (error) {
91
+ if (error instanceof IpcError && error.remoteCode === DUPLICATE_TASK_CODE) {
92
+ throw new IpcError(`${error.message}; pass --allow-duplicate to add it again`, {
93
+ code: error.remoteCode,
94
+ });
95
+ }
96
+ throw error;
97
+ }
98
+ }
99
+ /** `--title` as the daemon takes it: refused here with the flag named, before the request. */
100
+ export function checkTitle(title) {
101
+ if (title !== undefined && title.trim().length > RUN_TITLE_LIMIT) {
102
+ throw usage(`--title must be at most ${RUN_TITLE_LIMIT} characters`);
103
+ }
104
+ }
52
105
  //# sourceMappingURL=options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/presentation/cli/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAqB,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,E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import { errorMessage } from '../../platform/errors/index.js';
4
4
  import { colorEnabled, createStyle, plainStyle } from '../format/index.js';
5
5
  import { registerDaemon, registerEvents } from './commands/daemon.js';
6
6
  import { registerGroup } from './commands/group.js';
7
+ import { registerIntegrations } from './commands/integration/index.js';
8
+ import { registerNotify } from './commands/notify/index.js';
9
+ import { registerWebhook } from './commands/webhook/index.js';
7
10
  import { registerMcp } from './commands/mcp.js';
8
11
  import { registerOverview } from './commands/overview/index.js';
9
12
  import { registerProvider } from './commands/provider/index.js';
@@ -11,6 +14,7 @@ import { registerQueue } from './commands/queue.js';
11
14
  import { registerRepositories } from './commands/repositories.js';
12
15
  import { registerRun } from './commands/run.js';
13
16
  import { registerSetup } from './commands/setup.js';
17
+ import { registerServer } from './commands/server/register.js';
14
18
  import { registerStats } from './commands/stats.js';
15
19
  import { registerTag } from './commands/tag.js';
16
20
  import { registerWeb } from './commands/web.js';
@@ -74,6 +78,10 @@ export function registerCommands(program, style = plainStyle, io) {
74
78
  registerStats(program, io, style);
75
79
  program.commandsGroup(setup.heading);
76
80
  registerSetup(program, io, style);
81
+ registerIntegrations(program, io, style);
82
+ registerNotify(program, io, style);
83
+ registerWebhook(program, io, style);
84
+ registerServer(program, io, style);
77
85
  program.helpCommand('help [command]', 'Show help for a command');
78
86
  program.commandsGroup(plumbing.heading);
79
87
  registerDaemon(program, style, io);
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/presentation/cli/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAc,MAAM,oBAAoB,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC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EAAE,KAAK,CAAC,CAAC;IACnC,aAAa,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAClC,OAAO,CAAC,aAAa,CAAC,KAAM,CAAC,OAAO,CAAC,CAAC;IACtC,aAAa,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAClC,oBAAoB,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACzC,cAAc,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACnC,eAAe,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACpC,cAAc,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IACnC,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAC;IACjE,OAAO,CAAC,aAAa,CAAC,QAAS,CAAC,OAAO,CAAC,CAAC;IACzC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IACnC,WAAW,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC"}
@@ -3,7 +3,7 @@ import { repositoryArgument } from '../ipc/client/index.js';
3
3
  import { call } from './context.js';
4
4
  import { usage } from './io.js';
5
5
  import { linkInputsOf } from './links.js';
6
- import { attachmentSources, collect, parseDeliveryMode, parseNotes, readGroups, } from './options.js';
6
+ import { ALLOW_DUPLICATE_HELP, attachmentSources, checkTitle, collect, parseDeliveryMode, parseNotes, readGroups, withDuplicateHint, } from './options.js';
7
7
  /** The flags that fit only one project or only several; a wrong mix is a usage error. */
8
8
  function checkRepos(options, several) {
9
9
  if (!several &&
@@ -19,6 +19,7 @@ function checkRepos(options, several) {
19
19
  }
20
20
  /** The fields of the task that one project and several projects take alike. */
21
21
  function taskFields(pipeline, options) {
22
+ checkTitle(options.title);
22
23
  const deliveryMode = parseDeliveryMode(options.deliveryMode);
23
24
  const links = linkInputsOf(options, {
24
25
  after: options.after !== undefined,
@@ -33,20 +34,27 @@ function taskFields(pipeline, options) {
33
34
  ...(deliveryMode !== undefined ? { deliveryMode } : {}),
34
35
  ...(options.variant !== undefined ? { variant: options.variant } : {}),
35
36
  ...(typeof options.provider === 'string' ? { provider: options.provider } : {}),
37
+ ...(options.provider === false ? { provider: null } : {}),
36
38
  ...(options.skip !== undefined ? { skip: options.skip } : {}),
37
39
  ...(options.after !== undefined ? { after: options.after } : {}),
38
40
  ...(links !== undefined ? { links } : {}),
39
41
  ...(options.attach !== undefined ? { attachments: attachmentSources(options.attach) } : {}),
40
42
  ...(options.postpone ? { postponed: true } : {}),
43
+ ...(options.allowDuplicate ? { allowDuplicate: true } : {}),
41
44
  };
42
45
  }
43
46
  export function addAdd(kit) {
44
- const { print, output, examples, context, showQueue, queue, taskOptions } = kit;
47
+ const { examples, queue, taskOptions } = kit;
48
+ const given = { provider: false, noProvider: false };
45
49
  taskOptions(queue
46
50
  .command('add')
51
+ .on('option:provider', () => (given.provider = true))
52
+ .on('option:no-provider', () => (given.noProvider = true))
47
53
  .description('Add a task to the end of the queue; it does not start the queue')
48
54
  .argument('<pipeline>', 'pipeline id from swarm.yaml')
49
- .option('--postpone', 'postpone the task: a running queue does not take it'))
55
+ .option('--no-provider', 'no provider, even when the configuration has a default provider')
56
+ .option('--postpone', 'postpone the task: a running queue does not take it')
57
+ .option('--allow-duplicate', ALLOW_DUPLICATE_HELP))
50
58
  .option('-r, --repo <path>', 'repository path or project slug; repeat to add the task to several projects (default: .)', collect)
51
59
  .option('--tag-all <name>', 'with several --repo: the tag every project gets from its catalog')
52
60
  .option('--chain', 'with several --repo: the task of each project waits for the previous one')
@@ -57,46 +65,56 @@ export function addAdd(kit) {
57
65
  'aip queue add feature --task "Add a login form"',
58
66
  'aip queue add feature -g g.yaml',
59
67
  'aip queue add feature --task "Fix the typo" --skip review --skip qa',
68
+ 'aip queue add feature --task "Quick check" --no-provider',
60
69
  'aip queue add feature --task "Add the API" --after q1',
61
70
  'aip queue add feature --task "Related" --link related:#12',
62
71
  'aip queue add feature --task "Fix the layout" --attach shot.png --attach spec.pdf',
63
72
  'aip queue add feature --task "Follow-up" --parent 115',
64
73
  'aip queue add feature --task "Later" --postpone',
74
+ 'aip queue add feature --task "Run the benchmark" --allow-duplicate',
65
75
  'aip queue add feature --task "Email field" --repo lib --repo web --chain --tag-all email',
66
76
  ]))
67
- .action(async (pipeline, options) => {
68
- if ((options.task === undefined) === (options.groups === undefined)) {
69
- throw usage('pass exactly one of --task and --groups');
77
+ .action((pipeline, options) => {
78
+ if (given.provider && given.noProvider) {
79
+ throw usage('--no-provider cannot be combined with --provider');
70
80
  }
71
- const repos = options.repo ?? ['.'];
72
- const several = repos.length > 1;
73
- checkRepos(options, several);
74
- const task = taskFields(pipeline, options);
75
- if (several) {
76
- const parsed = parseNotes(options.note);
77
- const notes = parsed === undefined
78
- ? undefined
79
- : Object.fromEntries(Object.entries(parsed).map(([key, text]) => [repositoryArgument(key), text]));
80
- const added = (await call(context(), 'queue_add_projects', {
81
- ...task,
82
- task: options.task ?? '',
83
- repositories: repos.map((repo) => repositoryArgument(repo)),
84
- ...(notes !== undefined ? { notes } : {}),
85
- ...(options.tagAll !== undefined ? { tag: options.tagAll } : {}),
86
- ...(options.chain === true ? { chain: true } : {}),
87
- }));
88
- output(options.json, formatAddedToProjects(added, kit.activeStyle), added);
89
- return;
90
- }
91
- const view = (await call(context(), 'queue_add', {
92
- ...task,
93
- repository: repositoryArgument(repos[0] ?? '.'),
94
- ...(options.tag !== undefined ? { tags: options.tag } : {}),
95
- ...(typeof options.parent === 'string' ? { parent: options.parent } : {}),
96
- }));
97
- if (!options.json)
98
- print(`Added ${view.item}.`);
99
- await showQueue(options.json, view);
81
+ return add(kit, pipeline, options);
100
82
  });
101
83
  }
84
+ /** `aip queue add`: one project, or the same task for several. */
85
+ async function add(kit, pipeline, options) {
86
+ const { print, output, context, showQueue } = kit;
87
+ if ((options.task === undefined) === (options.groups === undefined)) {
88
+ throw usage('pass exactly one of --task and --groups');
89
+ }
90
+ const repos = options.repo ?? ['.'];
91
+ const several = repos.length > 1;
92
+ checkRepos(options, several);
93
+ const task = taskFields(pipeline, options);
94
+ if (several) {
95
+ const parsed = parseNotes(options.note);
96
+ const notes = parsed === undefined
97
+ ? undefined
98
+ : Object.fromEntries(Object.entries(parsed).map(([key, text]) => [repositoryArgument(key), text]));
99
+ const added = (await withDuplicateHint(() => call(context(), 'queue_add_projects', {
100
+ ...task,
101
+ task: options.task ?? '',
102
+ repositories: repos.map((repo) => repositoryArgument(repo)),
103
+ ...(notes !== undefined ? { notes } : {}),
104
+ ...(options.tagAll !== undefined ? { tag: options.tagAll } : {}),
105
+ ...(options.chain === true ? { chain: true } : {}),
106
+ })));
107
+ output(options.json, formatAddedToProjects(added, kit.activeStyle), added);
108
+ return;
109
+ }
110
+ const view = (await withDuplicateHint(() => call(context(), 'queue_add', {
111
+ ...task,
112
+ repository: repositoryArgument(repos[0] ?? '.'),
113
+ ...(options.tag !== undefined ? { tags: options.tag } : {}),
114
+ ...(typeof options.parent === 'string' ? { parent: options.parent } : {}),
115
+ })));
116
+ if (!options.json)
117
+ print(`Added ${view.item}.`);
118
+ await showQueue(options.json, view);
119
+ }
102
120
  //# sourceMappingURL=queue-add.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queue-add.js","sourceRoot":"","sources":["../../../src/presentation/cli/queue-add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,UAAU,GAEX,MAAM,cAAc,CAAC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W,CAAC,EAAE,KAAK,CAAC,CAAC;QAC3E,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAAG,CAAC,MAAM,iBAAiB,CAAC,GAAG,EAAE,CACzC,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE;QAC3B,GAAG,IAAI;QACP,UAAU,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;QAC/C,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,GAAG,CAAC,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1E,CAAC,CACH,CAAiC,CAAC;IACnC,IAAI,CAAC,OAAO,CAAC,IAAI;QAAE,KAAK,CAAC,SAAS,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAChD,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC"}
@@ -1,5 +1,8 @@
1
- import { formatQueue } from '../format/index.js';
1
+ import { formatQueue, formatQueues } from '../format/index.js';
2
+ import { repositoryArgument } from '../ipc/client/index.js';
2
3
  import { call } from './context.js';
4
+ import { usage } from './io.js';
5
+ import { addAuthorOptions, authorParameter } from './options.js';
3
6
  /** Prints the queue; the registry names the projects of predecessors from other projects. */
4
7
  export async function printQueue(json, view, ctx, style, output, repoGiven = false) {
5
8
  if (view.scope === 'global' && repoGiven) {
@@ -22,4 +25,34 @@ export function watchRepo(queue) {
22
25
  });
23
26
  return () => given;
24
27
  }
28
+ export function addList(kit) {
29
+ const { examples, context, showQueue, queue, common, output, activeStyle } = kit;
30
+ addAuthorOptions(common(queue.command('list').description('Show the queue of the repository')).option('--all', 'show the queues of all enabled projects'))
31
+ .addHelpText('after', examples([
32
+ 'aip queue list',
33
+ 'aip queue list --json',
34
+ 'aip queue list --all',
35
+ 'aip queue list --mine',
36
+ ]))
37
+ .action(async (options, command) => {
38
+ const filter = await authorParameter(context(), options);
39
+ if (options.all) {
40
+ if (filter.author !== undefined)
41
+ throw usage('--all cannot be combined with --mine or --author');
42
+ if (command.getOptionValueSource('repo') !== 'default') {
43
+ throw usage('--all cannot be combined with --repo');
44
+ }
45
+ const views = (await call(context(), 'queues', {}));
46
+ const registry = views.length === 0 || options.json
47
+ ? []
48
+ : (await call(context(), 'repositories', {}));
49
+ output(options.json, formatQueues(views, registry, activeStyle), views);
50
+ return;
51
+ }
52
+ await showQueue(options.json, (await call(context(), 'queue', {
53
+ repository: repositoryArgument(options.repo),
54
+ ...filter,
55
+ })));
56
+ });
57
+ }
25
58
  //# sourceMappingURL=queue-print.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"queue-print.js","sourceRoot":"","sources":["../../../src/presentation/cli/queue-print.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,oBAAoB,CAAC;AAI7D,OAAO,EAAE,IAAI,EAAgB,MAAM,cAAc,CAAC;AAElD,6FAA6F;AAC7F,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,IAAyB,EACzB,IAAiC,EACjC,GAAY,EACZ,KAAY,EACZ,MAAwE,EACxE,SAAS,GAAG,KAAK;IAEjB,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,SAAS,EAAE,CAAC;QACzC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;IAC5E,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACvC,IAAI,CAAC,KAAK,CAAC,IAAI,CACb,CAAC,UAAU,EAAE,EAAE,CACb,UAAU,CAAC,UAAU,KAAK,IAAI;QAC9B,UAAU,CAAC,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CAAgB,CAAC;YACnE,MAAM,QAAQ,GACZ,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI;gBAChC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAE,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,EAAE,CAAC,CAAsB,CAAC;YACxE,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;YACxE,OAAO;QACT,CAAC;QACD,MAAM,SAAS,CACb,OAAO,CAAC,IAAI,EACZ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE;YAC9B,UAAU,EAAE,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC;YAC5C,GAAG,MAAM;SACV,CAAC,CAAgC,CACnC,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Applies the keys of one raw-mode terminal chunk to the typed text: Backspace removes the last
3
+ * character, Enter or Ctrl+D finishes, Ctrl+C cancels, other control characters and escape
4
+ * sequences are ignored.
5
+ */
6
+ export function applyKeys(text, chunk, limit) {
7
+ let current = text;
8
+ const keys = Array.from(chunk);
9
+ for (let i = 0; i < keys.length; i += 1) {
10
+ const key = keys[i];
11
+ if (key === '\r' || key === '\n' || key === '\u0004') {
12
+ return { done: true, text: current, cancelled: false, tooLong: false };
13
+ }
14
+ if (key === '\u0003')
15
+ return { done: true, text: '', cancelled: true, tooLong: false };
16
+ if (key === '\u007f' || key === '\b') {
17
+ current = Array.from(current).slice(0, -1).join('');
18
+ continue;
19
+ }
20
+ if (key === '\u001b') {
21
+ // An escape sequence (arrows, Delete, ...): skip it up to its final letter or `~`.
22
+ if (keys[i + 1] === '[' || keys[i + 1] === 'O') {
23
+ i += 2;
24
+ while (i < keys.length && !/[A-Za-z~]/.test(keys[i]))
25
+ i += 1;
26
+ }
27
+ continue;
28
+ }
29
+ if (key < ' ' || (key >= '\u007f' && key <= '\u009f'))
30
+ continue;
31
+ current += key;
32
+ if (Buffer.byteLength(current) > limit) {
33
+ return { done: true, text: '', cancelled: false, tooLong: true };
34
+ }
35
+ }
36
+ return { done: false, text: current };
37
+ }
38
+ //# sourceMappingURL=secret-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-keys.js","sourceRoot":"","sources":["../../../src/presentation/cli/secret-keys.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,KAAa,EAAE,KAAa;IAClE,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAW,CAAC;QAC9B,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACrD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QACzE,CAAC;QACD,IAAI,GAAG,KAAK,QAAQ;YAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QACvF,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACrC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpD,SAAS;QACX,CAAC;QACD,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACrB,mFAAmF;YACnF,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;gBAC/C,CAAC,IAAI,CAAC,CAAC;gBACP,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAW,CAAC;oBAAE,CAAC,IAAI,CAAC,CAAC;YACzE,CAAC;YACD,SAAS;QACX,CAAC;QACD,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,QAAQ,IAAI,GAAG,IAAI,QAAQ,CAAC;YAAE,SAAS;QAChE,OAAO,IAAI,GAAG,CAAC;QACf,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,CAAC;YACvC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QACnE,CAAC;IACH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACxC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { plainStyle } from '../style.js';
2
+ import { table } from '../table.js';
3
+ const attributes = (values) => Object.entries(values)
4
+ .map(([name, list]) => `${name}=${list.join(',')}`)
5
+ .join(' ') || '—';
6
+ /** The catalog of the actions: name, what it is done to, what it does. */
7
+ export function formatAccessActions(view) {
8
+ return table([
9
+ ['ACTION', 'RESOURCE', 'DESCRIPTION'],
10
+ ...view.actions.map((action) => [action.name, action.resource, action.description]),
11
+ ]);
12
+ }
13
+ const REASONS = {
14
+ deny: 'a rule denies it',
15
+ allow: 'a rule allows it',
16
+ default: 'no rule allows it (refused by default)',
17
+ };
18
+ /** The decision of `access_check`: the verdict, the rules behind it, what it looked at. */
19
+ export function formatAccessCheck(view, style = plainStyle) {
20
+ const verdict = view.decision === 'allow' ? style.success('allow') : style.danger('deny');
21
+ const lines = [`${verdict} ${view.action} for ${view.user.email}: ${REASONS[view.reason]}`, ''];
22
+ lines.push(view.matched.length === 0
23
+ ? 'Matched rules: none'
24
+ : `Matched rules: ${view.matched.map((match) => `${match.id} (${match.effect})`).join(', ')}`);
25
+ lines.push(`User attributes: ${attributes(view.user.attributes)}`);
26
+ const { resource } = view;
27
+ lines.push(`Resource: project=${resource.repository ?? '—'} author=${resource.author ?? '—'} pipeline=${resource.pipeline ?? '—'} tags=${resource.tags.join(',') || '—'}`);
28
+ return lines.join('\n');
29
+ }
30
+ //# sourceMappingURL=access.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.js","sourceRoot":"","sources":["../../../../src/presentation/format/access/access.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,MAAgC,EAAU,EAAE,CAC9D,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;KACnB,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;KAClD,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC;AAEvB,0EAA0E;AAC1E,MAAM,UAAU,mBAAmB,CAAC,IAAuB;IACzD,OAAO,KAAK,CAAC;QACX,CAAC,QAAQ,EAAE,UAAU,EAAE,aAAa,CAAC;QACrC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAA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I,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,CAC/J,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { formatAccessActions, formatAccessCheck } from './access.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/format/access/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { plainStyle } from '../style.js';
2
+ import { table } from '../table.js';
3
+ /** `2026-05-01 12:30:15` in UTC: the journal is read across time zones. */
4
+ function moment(at) {
5
+ return new Date(at).toISOString().replace('T', ' ').slice(0, 19);
6
+ }
7
+ /** The resource and the details of an entry in one cell: `run r1 · group=login`. */
8
+ function subject(event) {
9
+ const resource = event.resourceKind === null ? '' : `${event.resourceKind} ${event.resourceId ?? ''}`.trim();
10
+ const details = Object.entries(event.details)
11
+ .map(([key, value]) => `${key}=${typeof value === 'string' ? value : JSON.stringify(value)}`)
12
+ .join(' ');
13
+ return [resource, details].filter((part) => part !== '').join(' · ');
14
+ }
15
+ /** The journal of the audit as a table, the newest entry first; the error of a failed entry ends its line. */
16
+ export function formatAudit(events, style = plainStyle) {
17
+ if (events.length === 0)
18
+ return 'No entries.';
19
+ const rows = events.map((event) => [
20
+ moment(event.at),
21
+ event.user?.email ?? event.subject,
22
+ event.action,
23
+ event.repository ?? '—',
24
+ event.outcome === 'ok' ? event.outcome : style.danger(event.outcome),
25
+ [subject(event), event.error ?? ''].filter((part) => part !== '').join(' — '),
26
+ ]);
27
+ return table([['TIME (UTC)', 'WHO', 'ACTION', 'PROJECT', 'OUTCOME', 'WHAT'], ...rows], style);
28
+ }
29
+ //# sourceMappingURL=audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.js","sourceRoot":"","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M,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAChB,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,KAAK,CAAC,OAAO;QAClC,KAAK,CAAC,MAAM;QACZ,KAAK,CAAC,UAAU,IAAI,GAAG;QACvB,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;QACpE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KAC9E,CAAC,CAAC;IACH,OAAO,KAAK,CAAC,CAAC,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;AAChG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { formatAudit } from './audit.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/format/audit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,4 +1,8 @@
1
1
  export { formatApply, formatDiff, formatGroup } from './groups.js';
2
+ export { formatChannelState, formatDeliveries, formatSubscriptions, } from './notifications/index.js';
3
+ export { formatCheckResult, formatConnections, formatIntegrationTypes, formatRegistrySkills, formatProjectLinks, } from './integration/index.js';
4
+ export { formatAccessActions, formatAccessCheck } from './access/index.js';
5
+ export { formatAudit } from './audit/index.js';
2
6
  export { formatLinks } from './links.js';
3
7
  export { formatAddedToProjects, formatQueue, formatQueues, formatRepositories } from './queue.js';
4
8
  export { formatRun, formatRunCreated, formatRunList, formatRunQueued, waitNote } from './runs.js';
@@ -11,4 +15,5 @@ export { hintCommand, hintLine, runHints } from './hints.js';
11
15
  export { activityLines, progressBar, progressLine, stepsLine } from './run-steps.js';
12
16
  export { activeRuns, attentionAction, attentionItems, formatOverview, overviewJson, } from './overview.js';
13
17
  export { formatProvider, formatProviderList, limitOwnerText, providerText, } from './providers/index.js';
18
+ export { formatWebhookDeliveries, formatWebhooks, formatWebhookTest, webhookNextSteps, } from './webhooks/index.js';
14
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/format/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAClG,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAmB,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACrF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C9E,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAIL,UAAU,EACV,eAAe,EACf,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { formatCheckResult, formatConnections, formatIntegrationTypes, formatProjectLinks, } from './integrations.js';
2
+ export { formatRegistrySkills } from './skills.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/format/integration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,95 @@
1
+ import { plainStyle } from '../style.js';
2
+ import { table } from '../table.js';
3
+ import { formatChannelState } from '../notifications/index.js';
4
+ /** The kinds this build supports; an empty catalog says so. */
5
+ export function formatIntegrationTypes(types, style = plainStyle) {
6
+ if (types.length === 0)
7
+ return 'No integration kinds are built into this version.';
8
+ return table([
9
+ ['KIND', 'PARAMETERS', 'SECRETS', 'DIRECTIONS'],
10
+ ...types.map((type) => [
11
+ style.argument(type.kind),
12
+ type.params.map((param) => (param.required ? `${param.name}*` : param.name)).join(', ') ||
13
+ '—',
14
+ type.secrets
15
+ .map((secret) => (secret.required ? `${secret.slot}*` : secret.slot))
16
+ .join(', ') || '—',
17
+ type.directions.join(', '),
18
+ ]),
19
+ ], style);
20
+ }
21
+ function stateOf(connection) {
22
+ if (connection.state === 'cleanup_pending')
23
+ return 'removing (repeat the removal)';
24
+ if (connection.pending)
25
+ return 'pending (restart or retry)';
26
+ return connection.enabled ? 'enabled' : 'disabled';
27
+ }
28
+ /** The outcome of the last check: when it ran, whether it passed, the count or the static code. */
29
+ export function formatCheck(check) {
30
+ if (check === null)
31
+ return '—';
32
+ const when = new Date(check.at).toISOString().slice(0, 16).replace('T', ' ');
33
+ const what = check.ok
34
+ ? `ok${check.count === null ? '' : `, ${check.count} tools`}`
35
+ : `failed: ${check.code ?? 'unknown'}`;
36
+ return `${what} (${when})`;
37
+ }
38
+ /** The answer of `integration check`: one line, never a response text. */
39
+ export function formatCheckResult(connection) {
40
+ const check = connection.lastCheck;
41
+ if (check === null)
42
+ return `No check result for ${connection.id}`;
43
+ if (check.ok)
44
+ return `ok${check.count === null ? '' : `, ${check.count} tools`}`;
45
+ return `failed: ${check.code ?? 'unknown'}`;
46
+ }
47
+ /** The connections with the presence of their secrets, never the values. */
48
+ export function formatConnections(connections, style = plainStyle) {
49
+ if (connections.length === 0)
50
+ return 'No integration connections yet.';
51
+ return table([
52
+ ['ID', 'KIND', 'NAME', 'SCOPE', 'STATE', 'PARAMS', 'SECRETS', 'CHANNEL', 'CHECK'],
53
+ ...connections.map((connection) => [
54
+ style.argument(connection.id),
55
+ connection.kind,
56
+ connection.name,
57
+ connection.project ?? 'global',
58
+ stateOf(connection),
59
+ Object.entries(connection.params)
60
+ .map(([name, value]) => `${name}=${value}`)
61
+ .join(' ') || '—',
62
+ connection.secrets
63
+ .map((secret) => `${secret.slot}:${secret.present ? 'set' : 'missing'}`)
64
+ .join(' ') || '—',
65
+ formatChannelState(connection.channel),
66
+ formatCheck(connection.lastCheck),
67
+ ]),
68
+ ], style);
69
+ }
70
+ const REASONS = {
71
+ no_match: 'no project of the registry has the origin of this project',
72
+ ambiguous: 'several projects match; link one with --path',
73
+ unreachable: 'the registry did not answer',
74
+ unauthorized: 'the registry refused the token',
75
+ truncated: 'the catalog is too large to read; link the project with --path',
76
+ disabled: 'cleared; matching is off until --auto',
77
+ };
78
+ /** What one pair is linked to, or why it is not. */
79
+ function linkText(link) {
80
+ if (link.registryPath !== null)
81
+ return `${link.registryPath} (${link.source ?? 'auto'})`;
82
+ const reason = REASONS[link.status] ?? link.status;
83
+ const candidates = link.candidates.length > 0 ? `: ${link.candidates.join(', ')}` : '';
84
+ return `not linked — ${link.status}: ${reason}${candidates}`;
85
+ }
86
+ /** The links of projects to the projects of service registries. */
87
+ export function formatProjectLinks(links, style = plainStyle) {
88
+ if (links.length === 0)
89
+ return 'No project is linked to a service registry yet.';
90
+ return table([
91
+ ['PROJECT', 'CONNECTION', 'REGISTRY PROJECT'],
92
+ ...links.map((link) => [link.project, style.argument(link.connectionName), linkText(link)]),
93
+ ], style);
94
+ }
95
+ //# sourceMappingURL=integrations.js.map