@vibesdotdev/workboard 0.0.0-stage → 1.0.0-rc.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 (591) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +31 -2
  3. package/dist/agent-actions.d.ts +19 -0
  4. package/dist/agent-actions.d.ts.map +1 -0
  5. package/dist/agent-actions.js +93 -0
  6. package/dist/agent-actions.js.map +1 -0
  7. package/dist/attention/headless-attention.host.d.ts +78 -0
  8. package/dist/attention/headless-attention.host.d.ts.map +1 -0
  9. package/dist/attention/headless-attention.host.js +42 -0
  10. package/dist/attention/headless-attention.host.js.map +1 -0
  11. package/dist/attention/index.d.ts +2 -0
  12. package/dist/attention/index.d.ts.map +1 -0
  13. package/dist/attention/index.js +2 -0
  14. package/dist/attention/index.js.map +1 -0
  15. package/dist/cli/marshal/components/index.d.ts +12 -0
  16. package/dist/cli/marshal/components/index.d.ts.map +1 -0
  17. package/dist/cli/marshal/components/index.js +12 -0
  18. package/dist/cli/marshal/components/index.js.map +1 -0
  19. package/dist/cli/marshal/components/marshal-progress.d.ts +52 -0
  20. package/dist/cli/marshal/components/marshal-progress.d.ts.map +1 -0
  21. package/dist/cli/marshal/components/marshal-progress.js +182 -0
  22. package/dist/cli/marshal/components/marshal-progress.js.map +1 -0
  23. package/dist/cli/marshal/components/marshal-prompt.d.ts +72 -0
  24. package/dist/cli/marshal/components/marshal-prompt.d.ts.map +1 -0
  25. package/dist/cli/marshal/components/marshal-prompt.js +256 -0
  26. package/dist/cli/marshal/components/marshal-prompt.js.map +1 -0
  27. package/dist/cli/marshal/components/marshal-widgets.d.ts +73 -0
  28. package/dist/cli/marshal/components/marshal-widgets.d.ts.map +1 -0
  29. package/dist/cli/marshal/components/marshal-widgets.js +283 -0
  30. package/dist/cli/marshal/components/marshal-widgets.js.map +1 -0
  31. package/dist/cli/marshal/index.d.ts +2 -0
  32. package/dist/cli/marshal/index.d.ts.map +1 -0
  33. package/dist/cli/marshal/index.js +2 -0
  34. package/dist/cli/marshal/index.js.map +1 -0
  35. package/dist/client/helper.d.ts +12 -0
  36. package/dist/client/helper.d.ts.map +1 -0
  37. package/dist/client/helper.js +13 -0
  38. package/dist/client/helper.js.map +1 -0
  39. package/dist/client/index.d.ts +3 -0
  40. package/dist/client/index.d.ts.map +1 -0
  41. package/dist/client/index.js +3 -0
  42. package/dist/client/index.js.map +1 -0
  43. package/dist/client/workboard-client.d.ts +283 -0
  44. package/dist/client/workboard-client.d.ts.map +1 -0
  45. package/dist/client/workboard-client.js +550 -0
  46. package/dist/client/workboard-client.js.map +1 -0
  47. package/dist/config/workboard.config.descriptor.d.ts +38 -0
  48. package/dist/config/workboard.config.descriptor.d.ts.map +1 -0
  49. package/dist/config/workboard.config.descriptor.js +30 -0
  50. package/dist/config/workboard.config.descriptor.js.map +1 -0
  51. package/dist/docs/workboard.docs.descriptor.d.ts +4 -0
  52. package/dist/docs/workboard.docs.descriptor.d.ts.map +1 -0
  53. package/dist/docs/workboard.docs.descriptor.js +85 -0
  54. package/dist/docs/workboard.docs.descriptor.js.map +1 -0
  55. package/dist/index.d.ts +12 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +15 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/marshal/agent/descriptor.d.ts +66 -0
  60. package/dist/marshal/agent/descriptor.d.ts.map +1 -0
  61. package/dist/marshal/agent/descriptor.js +144 -0
  62. package/dist/marshal/agent/descriptor.js.map +1 -0
  63. package/dist/marshal/agent/index.d.ts +10 -0
  64. package/dist/marshal/agent/index.d.ts.map +1 -0
  65. package/dist/marshal/agent/index.js +10 -0
  66. package/dist/marshal/agent/index.js.map +1 -0
  67. package/dist/marshal/agent/marshal-agent.d.ts +42 -0
  68. package/dist/marshal/agent/marshal-agent.d.ts.map +1 -0
  69. package/dist/marshal/agent/marshal-agent.js +121 -0
  70. package/dist/marshal/agent/marshal-agent.js.map +1 -0
  71. package/dist/marshal/agent/marshal.agent.descriptor.d.ts +9 -0
  72. package/dist/marshal/agent/marshal.agent.descriptor.d.ts.map +1 -0
  73. package/dist/marshal/agent/marshal.agent.descriptor.js +9 -0
  74. package/dist/marshal/agent/marshal.agent.descriptor.js.map +1 -0
  75. package/dist/marshal/agent/profile.d.ts +16 -0
  76. package/dist/marshal/agent/profile.d.ts.map +1 -0
  77. package/dist/marshal/agent/profile.js +55 -0
  78. package/dist/marshal/agent/profile.js.map +1 -0
  79. package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.d.ts +113 -0
  80. package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.d.ts.map +1 -0
  81. package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.js +85 -0
  82. package/dist/marshal/agent/prompts/cloud-system.prompt.descriptor.js.map +1 -0
  83. package/dist/marshal/agent/prompts/index.d.ts +113 -0
  84. package/dist/marshal/agent/prompts/index.d.ts.map +1 -0
  85. package/dist/marshal/agent/prompts/index.js +16 -0
  86. package/dist/marshal/agent/prompts/index.js.map +1 -0
  87. package/dist/marshal/agent/prompts/personality.prompt.descriptor.d.ts +113 -0
  88. package/dist/marshal/agent/prompts/personality.prompt.descriptor.d.ts.map +1 -0
  89. package/dist/marshal/agent/prompts/personality.prompt.descriptor.js +34 -0
  90. package/dist/marshal/agent/prompts/personality.prompt.descriptor.js.map +1 -0
  91. package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.d.ts +113 -0
  92. package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.d.ts.map +1 -0
  93. package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.js +68 -0
  94. package/dist/marshal/agent/prompts/setup-issue.prompt.descriptor.js.map +1 -0
  95. package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.d.ts +113 -0
  96. package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.d.ts.map +1 -0
  97. package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.js +38 -0
  98. package/dist/marshal/agent/prompts/setup-wizard.prompt.descriptor.js.map +1 -0
  99. package/dist/marshal/agent/prompts/surface.prompt.descriptor.d.ts +113 -0
  100. package/dist/marshal/agent/prompts/surface.prompt.descriptor.d.ts.map +1 -0
  101. package/dist/marshal/agent/prompts/surface.prompt.descriptor.js +39 -0
  102. package/dist/marshal/agent/prompts/surface.prompt.descriptor.js.map +1 -0
  103. package/dist/marshal/agent/prompts/system.prompt.descriptor.d.ts +113 -0
  104. package/dist/marshal/agent/prompts/system.prompt.descriptor.d.ts.map +1 -0
  105. package/dist/marshal/agent/prompts/system.prompt.descriptor.js +63 -0
  106. package/dist/marshal/agent/prompts/system.prompt.descriptor.js.map +1 -0
  107. package/dist/marshal/agent/system-prompt.d.ts +34 -0
  108. package/dist/marshal/agent/system-prompt.d.ts.map +1 -0
  109. package/dist/marshal/agent/system-prompt.js +130 -0
  110. package/dist/marshal/agent/system-prompt.js.map +1 -0
  111. package/dist/marshal/capabilities.d.ts +55 -0
  112. package/dist/marshal/capabilities.d.ts.map +1 -0
  113. package/dist/marshal/capabilities.js +146 -0
  114. package/dist/marshal/capabilities.js.map +1 -0
  115. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.d.ts +4 -0
  116. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.d.ts.map +1 -0
  117. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.js +18 -0
  118. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.js.map +1 -0
  119. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts +16 -0
  120. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts.map +1 -0
  121. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.js +39 -0
  122. package/dist/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.js.map +1 -0
  123. package/dist/marshal/cli/plugin.d.ts +3 -0
  124. package/dist/marshal/cli/plugin.d.ts.map +1 -0
  125. package/dist/marshal/cli/plugin.js +9 -0
  126. package/dist/marshal/cli/plugin.js.map +1 -0
  127. package/dist/marshal/client/helper.d.ts +24 -0
  128. package/dist/marshal/client/helper.d.ts.map +1 -0
  129. package/dist/marshal/client/helper.js +36 -0
  130. package/dist/marshal/client/helper.js.map +1 -0
  131. package/dist/marshal/client/index.d.ts +7 -0
  132. package/dist/marshal/client/index.d.ts.map +1 -0
  133. package/dist/marshal/client/index.js +6 -0
  134. package/dist/marshal/client/index.js.map +1 -0
  135. package/dist/marshal/client/marshal-api-client.impl.d.ts +22 -0
  136. package/dist/marshal/client/marshal-api-client.impl.d.ts.map +1 -0
  137. package/dist/marshal/client/marshal-api-client.impl.js +47 -0
  138. package/dist/marshal/client/marshal-api-client.impl.js.map +1 -0
  139. package/dist/marshal/client/marshal-client.runtime.d.ts +124 -0
  140. package/dist/marshal/client/marshal-client.runtime.d.ts.map +1 -0
  141. package/dist/marshal/client/marshal-client.runtime.js +216 -0
  142. package/dist/marshal/client/marshal-client.runtime.js.map +1 -0
  143. package/dist/marshal/cloud.plugin.d.ts +2 -0
  144. package/dist/marshal/cloud.plugin.d.ts.map +1 -0
  145. package/dist/marshal/cloud.plugin.js +2 -0
  146. package/dist/marshal/cloud.plugin.js.map +1 -0
  147. package/dist/marshal/components/index.d.ts +8 -0
  148. package/dist/marshal/components/index.d.ts.map +1 -0
  149. package/dist/marshal/components/index.js +15 -0
  150. package/dist/marshal/components/index.js.map +1 -0
  151. package/dist/marshal/config/manifest.d.ts +8608 -0
  152. package/dist/marshal/config/manifest.d.ts.map +1 -0
  153. package/dist/marshal/config/manifest.js +115 -0
  154. package/dist/marshal/config/manifest.js.map +1 -0
  155. package/dist/marshal/consumer.d.ts +7 -0
  156. package/dist/marshal/consumer.d.ts.map +1 -0
  157. package/dist/marshal/consumer.js +9 -0
  158. package/dist/marshal/consumer.js.map +1 -0
  159. package/dist/marshal/consumer.plugin.d.ts +2 -0
  160. package/dist/marshal/consumer.plugin.d.ts.map +1 -0
  161. package/dist/marshal/consumer.plugin.js +2 -0
  162. package/dist/marshal/consumer.plugin.js.map +1 -0
  163. package/dist/marshal/context/agents-context-kind.d.ts +9 -0
  164. package/dist/marshal/context/agents-context-kind.d.ts.map +1 -0
  165. package/dist/marshal/context/agents-context-kind.js +17 -0
  166. package/dist/marshal/context/agents-context-kind.js.map +1 -0
  167. package/dist/marshal/context/marshal.context-provider.descriptor.d.ts +26 -0
  168. package/dist/marshal/context/marshal.context-provider.descriptor.d.ts.map +1 -0
  169. package/dist/marshal/context/marshal.context-provider.descriptor.js +10 -0
  170. package/dist/marshal/context/marshal.context-provider.descriptor.js.map +1 -0
  171. package/dist/marshal/context/marshal.context-provider.impl.d.ts +4 -0
  172. package/dist/marshal/context/marshal.context-provider.impl.d.ts.map +1 -0
  173. package/dist/marshal/context/marshal.context-provider.impl.js +42 -0
  174. package/dist/marshal/context/marshal.context-provider.impl.js.map +1 -0
  175. package/dist/marshal/index.d.ts +29 -0
  176. package/dist/marshal/index.d.ts.map +1 -0
  177. package/dist/marshal/index.js +34 -0
  178. package/dist/marshal/index.js.map +1 -0
  179. package/dist/marshal/marshal.api-client.descriptor.d.ts +9 -0
  180. package/dist/marshal/marshal.api-client.descriptor.d.ts.map +1 -0
  181. package/dist/marshal/marshal.api-client.descriptor.js +19 -0
  182. package/dist/marshal/marshal.api-client.descriptor.js.map +1 -0
  183. package/dist/marshal/marshal.consumer.plugin.d.ts +4 -0
  184. package/dist/marshal/marshal.consumer.plugin.d.ts.map +1 -0
  185. package/dist/marshal/marshal.consumer.plugin.js +18 -0
  186. package/dist/marshal/marshal.consumer.plugin.js.map +1 -0
  187. package/dist/marshal/marshal.plugin.d.ts +10 -0
  188. package/dist/marshal/marshal.plugin.d.ts.map +1 -0
  189. package/dist/marshal/marshal.plugin.js +55 -0
  190. package/dist/marshal/marshal.plugin.js.map +1 -0
  191. package/dist/marshal/marshal.runtime-client.descriptor.d.ts +9 -0
  192. package/dist/marshal/marshal.runtime-client.descriptor.d.ts.map +1 -0
  193. package/dist/marshal/marshal.runtime-client.descriptor.js +19 -0
  194. package/dist/marshal/marshal.runtime-client.descriptor.js.map +1 -0
  195. package/dist/marshal/plugin.d.ts +2 -0
  196. package/dist/marshal/plugin.d.ts.map +1 -0
  197. package/dist/marshal/plugin.js +2 -0
  198. package/dist/marshal/plugin.js.map +1 -0
  199. package/dist/marshal/presence/heartbeat.d.ts +64 -0
  200. package/dist/marshal/presence/heartbeat.d.ts.map +1 -0
  201. package/dist/marshal/presence/heartbeat.js +169 -0
  202. package/dist/marshal/presence/heartbeat.js.map +1 -0
  203. package/dist/marshal/presence/index.d.ts +2 -0
  204. package/dist/marshal/presence/index.d.ts.map +1 -0
  205. package/dist/marshal/presence/index.js +2 -0
  206. package/dist/marshal/presence/index.js.map +1 -0
  207. package/dist/marshal/schemas/agent.d.ts +27 -0
  208. package/dist/marshal/schemas/agent.d.ts.map +1 -0
  209. package/dist/marshal/schemas/agent.js +2 -0
  210. package/dist/marshal/schemas/agent.js.map +1 -0
  211. package/dist/marshal/schemas/baseline.d.ts +73 -0
  212. package/dist/marshal/schemas/baseline.d.ts.map +1 -0
  213. package/dist/marshal/schemas/baseline.js +28 -0
  214. package/dist/marshal/schemas/baseline.js.map +1 -0
  215. package/dist/marshal/schemas/client.d.ts +50 -0
  216. package/dist/marshal/schemas/client.d.ts.map +1 -0
  217. package/dist/marshal/schemas/client.js +27 -0
  218. package/dist/marshal/schemas/client.js.map +1 -0
  219. package/dist/marshal/schemas/common.d.ts +252 -0
  220. package/dist/marshal/schemas/common.d.ts.map +1 -0
  221. package/dist/marshal/schemas/common.js +119 -0
  222. package/dist/marshal/schemas/common.js.map +1 -0
  223. package/dist/marshal/schemas/components.d.ts +95 -0
  224. package/dist/marshal/schemas/components.d.ts.map +1 -0
  225. package/dist/marshal/schemas/components.js +10 -0
  226. package/dist/marshal/schemas/components.js.map +1 -0
  227. package/dist/marshal/schemas/config.d.ts +20 -0
  228. package/dist/marshal/schemas/config.d.ts.map +1 -0
  229. package/dist/marshal/schemas/config.js +11 -0
  230. package/dist/marshal/schemas/config.js.map +1 -0
  231. package/dist/marshal/schemas/index.d.ts +18 -0
  232. package/dist/marshal/schemas/index.d.ts.map +1 -0
  233. package/dist/marshal/schemas/index.js +11 -0
  234. package/dist/marshal/schemas/index.js.map +1 -0
  235. package/dist/marshal/schemas/interactive.d.ts +315 -0
  236. package/dist/marshal/schemas/interactive.d.ts.map +1 -0
  237. package/dist/marshal/schemas/interactive.js +201 -0
  238. package/dist/marshal/schemas/interactive.js.map +1 -0
  239. package/dist/marshal/schemas/presence.d.ts +29 -0
  240. package/dist/marshal/schemas/presence.d.ts.map +1 -0
  241. package/dist/marshal/schemas/presence.js +14 -0
  242. package/dist/marshal/schemas/presence.js.map +1 -0
  243. package/dist/marshal/schemas/progress.d.ts +100 -0
  244. package/dist/marshal/schemas/progress.d.ts.map +1 -0
  245. package/dist/marshal/schemas/progress.js +55 -0
  246. package/dist/marshal/schemas/progress.js.map +1 -0
  247. package/dist/marshal/schemas/server.d.ts +70 -0
  248. package/dist/marshal/schemas/server.d.ts.map +1 -0
  249. package/dist/marshal/schemas/server.js +39 -0
  250. package/dist/marshal/schemas/server.js.map +1 -0
  251. package/dist/marshal/schemas/setup.d.ts +78 -0
  252. package/dist/marshal/schemas/setup.d.ts.map +1 -0
  253. package/dist/marshal/schemas/setup.js +2 -0
  254. package/dist/marshal/schemas/setup.js.map +1 -0
  255. package/dist/marshal/schemas/tools.d.ts +124 -0
  256. package/dist/marshal/schemas/tools.d.ts.map +1 -0
  257. package/dist/marshal/schemas/tools.js +75 -0
  258. package/dist/marshal/schemas/tools.js.map +1 -0
  259. package/dist/marshal/schemas/types.d.ts +33 -0
  260. package/dist/marshal/schemas/types.d.ts.map +1 -0
  261. package/dist/marshal/schemas/types.js +2 -0
  262. package/dist/marshal/schemas/types.js.map +1 -0
  263. package/dist/marshal/schemas/worker.d.ts +8 -0
  264. package/dist/marshal/schemas/worker.d.ts.map +1 -0
  265. package/dist/marshal/schemas/worker.js +7 -0
  266. package/dist/marshal/schemas/worker.js.map +1 -0
  267. package/dist/marshal/setup/guided.d.ts +26 -0
  268. package/dist/marshal/setup/guided.d.ts.map +1 -0
  269. package/dist/marshal/setup/guided.js +83 -0
  270. package/dist/marshal/setup/guided.js.map +1 -0
  271. package/dist/marshal/setup/index.d.ts +12 -0
  272. package/dist/marshal/setup/index.d.ts.map +1 -0
  273. package/dist/marshal/setup/index.js +11 -0
  274. package/dist/marshal/setup/index.js.map +1 -0
  275. package/dist/marshal/setup/provider-runtime.d.ts +23 -0
  276. package/dist/marshal/setup/provider-runtime.d.ts.map +1 -0
  277. package/dist/marshal/setup/provider-runtime.detected-models.d.ts +239 -0
  278. package/dist/marshal/setup/provider-runtime.detected-models.d.ts.map +1 -0
  279. package/dist/marshal/setup/provider-runtime.detected-models.js +30 -0
  280. package/dist/marshal/setup/provider-runtime.detected-models.js.map +1 -0
  281. package/dist/marshal/setup/provider-runtime.js +115 -0
  282. package/dist/marshal/setup/provider-runtime.js.map +1 -0
  283. package/dist/marshal/setup/provider-runtime.models.d.ts +38 -0
  284. package/dist/marshal/setup/provider-runtime.models.d.ts.map +1 -0
  285. package/dist/marshal/setup/provider-runtime.models.js +38 -0
  286. package/dist/marshal/setup/provider-runtime.models.js.map +1 -0
  287. package/dist/marshal/setup/save-baseline.d.ts +12 -0
  288. package/dist/marshal/setup/save-baseline.d.ts.map +1 -0
  289. package/dist/marshal/setup/save-baseline.js +89 -0
  290. package/dist/marshal/setup/save-baseline.js.map +1 -0
  291. package/dist/marshal/setup/save-baseline.normalizers.d.ts +20 -0
  292. package/dist/marshal/setup/save-baseline.normalizers.d.ts.map +1 -0
  293. package/dist/marshal/setup/save-baseline.normalizers.js +72 -0
  294. package/dist/marshal/setup/save-baseline.normalizers.js.map +1 -0
  295. package/dist/marshal/setup/types.d.ts +17 -0
  296. package/dist/marshal/setup/types.d.ts.map +1 -0
  297. package/dist/marshal/setup/types.js +26 -0
  298. package/dist/marshal/setup/types.js.map +1 -0
  299. package/dist/marshal/tools/index.d.ts +9 -0
  300. package/dist/marshal/tools/index.d.ts.map +1 -0
  301. package/dist/marshal/tools/index.js +9 -0
  302. package/dist/marshal/tools/index.js.map +1 -0
  303. package/dist/marshal/tools/unified/descriptor.d.ts +130 -0
  304. package/dist/marshal/tools/unified/descriptor.d.ts.map +1 -0
  305. package/dist/marshal/tools/unified/descriptor.js +53 -0
  306. package/dist/marshal/tools/unified/descriptor.js.map +1 -0
  307. package/dist/marshal/tools/unified/index.d.ts +10 -0
  308. package/dist/marshal/tools/unified/index.d.ts.map +1 -0
  309. package/dist/marshal/tools/unified/index.js +9 -0
  310. package/dist/marshal/tools/unified/index.js.map +1 -0
  311. package/dist/marshal/tools/unified/marshal.execution.d.ts +12 -0
  312. package/dist/marshal/tools/unified/marshal.execution.d.ts.map +1 -0
  313. package/dist/marshal/tools/unified/marshal.execution.js +104 -0
  314. package/dist/marshal/tools/unified/marshal.execution.js.map +1 -0
  315. package/dist/marshal/tools/unified/marshal.impl.cloud.d.ts +13 -0
  316. package/dist/marshal/tools/unified/marshal.impl.cloud.d.ts.map +1 -0
  317. package/dist/marshal/tools/unified/marshal.impl.cloud.js +15 -0
  318. package/dist/marshal/tools/unified/marshal.impl.cloud.js.map +1 -0
  319. package/dist/marshal/tools/unified/marshal.impl.consumer.d.ts +13 -0
  320. package/dist/marshal/tools/unified/marshal.impl.consumer.d.ts.map +1 -0
  321. package/dist/marshal/tools/unified/marshal.impl.consumer.js +15 -0
  322. package/dist/marshal/tools/unified/marshal.impl.consumer.js.map +1 -0
  323. package/dist/marshal/tools/unified/marshal.unified.descriptor.d.ts +140 -0
  324. package/dist/marshal/tools/unified/marshal.unified.descriptor.d.ts.map +1 -0
  325. package/dist/marshal/tools/unified/marshal.unified.descriptor.js +57 -0
  326. package/dist/marshal/tools/unified/marshal.unified.descriptor.js.map +1 -0
  327. package/dist/marshal/tools/unified/schemas.d.ts +8 -0
  328. package/dist/marshal/tools/unified/schemas.d.ts.map +1 -0
  329. package/dist/marshal/tools/unified/schemas.js +7 -0
  330. package/dist/marshal/tools/unified/schemas.js.map +1 -0
  331. package/dist/marshal/types.d.ts +2 -0
  332. package/dist/marshal/types.d.ts.map +1 -0
  333. package/dist/marshal/types.js +2 -0
  334. package/dist/marshal/types.js.map +1 -0
  335. package/dist/marshal/worker/index.d.ts +6 -0
  336. package/dist/marshal/worker/index.d.ts.map +1 -0
  337. package/dist/marshal/worker/index.js +5 -0
  338. package/dist/marshal/worker/index.js.map +1 -0
  339. package/dist/marshal/worker/jobs/assistance-job.d.ts +34 -0
  340. package/dist/marshal/worker/jobs/assistance-job.d.ts.map +1 -0
  341. package/dist/marshal/worker/jobs/assistance-job.js +43 -0
  342. package/dist/marshal/worker/jobs/assistance-job.js.map +1 -0
  343. package/dist/marshal/worker/jobs/configure-job.d.ts +48 -0
  344. package/dist/marshal/worker/jobs/configure-job.d.ts.map +1 -0
  345. package/dist/marshal/worker/jobs/configure-job.js +52 -0
  346. package/dist/marshal/worker/jobs/configure-job.js.map +1 -0
  347. package/dist/marshal/worker/jobs/index.d.ts +7 -0
  348. package/dist/marshal/worker/jobs/index.d.ts.map +1 -0
  349. package/dist/marshal/worker/jobs/index.js +7 -0
  350. package/dist/marshal/worker/jobs/index.js.map +1 -0
  351. package/dist/marshal/worker/jobs/onboarding-progress-job.d.ts +47 -0
  352. package/dist/marshal/worker/jobs/onboarding-progress-job.d.ts.map +1 -0
  353. package/dist/marshal/worker/jobs/onboarding-progress-job.js +51 -0
  354. package/dist/marshal/worker/jobs/onboarding-progress-job.js.map +1 -0
  355. package/dist/marshal/worker/marshal.assistance.job.impl.d.ts +3 -0
  356. package/dist/marshal/worker/marshal.assistance.job.impl.d.ts.map +1 -0
  357. package/dist/marshal/worker/marshal.assistance.job.impl.js +3 -0
  358. package/dist/marshal/worker/marshal.assistance.job.impl.js.map +1 -0
  359. package/dist/marshal/worker/marshal.concierge.descriptor.d.ts +3 -0
  360. package/dist/marshal/worker/marshal.concierge.descriptor.d.ts.map +1 -0
  361. package/dist/marshal/worker/marshal.concierge.descriptor.js +14 -0
  362. package/dist/marshal/worker/marshal.concierge.descriptor.js.map +1 -0
  363. package/dist/marshal/worker/marshal.concierge.impl.consumer.d.ts +12 -0
  364. package/dist/marshal/worker/marshal.concierge.impl.consumer.d.ts.map +1 -0
  365. package/dist/marshal/worker/marshal.concierge.impl.consumer.js +23 -0
  366. package/dist/marshal/worker/marshal.concierge.impl.consumer.js.map +1 -0
  367. package/dist/marshal/worker/marshal.configure.job.impl.d.ts +3 -0
  368. package/dist/marshal/worker/marshal.configure.job.impl.d.ts.map +1 -0
  369. package/dist/marshal/worker/marshal.configure.job.impl.js +3 -0
  370. package/dist/marshal/worker/marshal.configure.job.impl.js.map +1 -0
  371. package/dist/marshal/worker/marshal.jobs.descriptor.d.ts +6 -0
  372. package/dist/marshal/worker/marshal.jobs.descriptor.d.ts.map +1 -0
  373. package/dist/marshal/worker/marshal.jobs.descriptor.js +50 -0
  374. package/dist/marshal/worker/marshal.jobs.descriptor.js.map +1 -0
  375. package/dist/marshal/worker/marshal.onboarding-progress.job.impl.d.ts +3 -0
  376. package/dist/marshal/worker/marshal.onboarding-progress.job.impl.d.ts.map +1 -0
  377. package/dist/marshal/worker/marshal.onboarding-progress.job.impl.js +3 -0
  378. package/dist/marshal/worker/marshal.onboarding-progress.job.impl.js.map +1 -0
  379. package/dist/plugin/agent-tools.d.ts +15 -0
  380. package/dist/plugin/agent-tools.d.ts.map +1 -0
  381. package/dist/plugin/agent-tools.js +27 -0
  382. package/dist/plugin/agent-tools.js.map +1 -0
  383. package/dist/records/index.d.ts +7 -0
  384. package/dist/records/index.d.ts.map +1 -0
  385. package/dist/records/index.js +7 -0
  386. package/dist/records/index.js.map +1 -0
  387. package/dist/records/lane.record.descriptor.d.ts +11 -0
  388. package/dist/records/lane.record.descriptor.d.ts.map +1 -0
  389. package/dist/records/lane.record.descriptor.js +47 -0
  390. package/dist/records/lane.record.descriptor.js.map +1 -0
  391. package/dist/records/note.record.descriptor.d.ts +10 -0
  392. package/dist/records/note.record.descriptor.d.ts.map +1 -0
  393. package/dist/records/note.record.descriptor.js +46 -0
  394. package/dist/records/note.record.descriptor.js.map +1 -0
  395. package/dist/records/notification.record.descriptor.d.ts +11 -0
  396. package/dist/records/notification.record.descriptor.d.ts.map +1 -0
  397. package/dist/records/notification.record.descriptor.js +50 -0
  398. package/dist/records/notification.record.descriptor.js.map +1 -0
  399. package/dist/records/request.record.descriptor.d.ts +10 -0
  400. package/dist/records/request.record.descriptor.d.ts.map +1 -0
  401. package/dist/records/request.record.descriptor.js +50 -0
  402. package/dist/records/request.record.descriptor.js.map +1 -0
  403. package/dist/records/task.record.descriptor.d.ts +10 -0
  404. package/dist/records/task.record.descriptor.d.ts.map +1 -0
  405. package/dist/records/task.record.descriptor.js +65 -0
  406. package/dist/records/task.record.descriptor.js.map +1 -0
  407. package/dist/records/watch.record.descriptor.d.ts +10 -0
  408. package/dist/records/watch.record.descriptor.d.ts.map +1 -0
  409. package/dist/records/watch.record.descriptor.js +48 -0
  410. package/dist/records/watch.record.descriptor.js.map +1 -0
  411. package/dist/schemas/agent-action.d.ts +31 -0
  412. package/dist/schemas/agent-action.d.ts.map +1 -0
  413. package/dist/schemas/agent-action.js +24 -0
  414. package/dist/schemas/agent-action.js.map +1 -0
  415. package/dist/schemas/card-projection.d.ts +193 -0
  416. package/dist/schemas/card-projection.d.ts.map +1 -0
  417. package/dist/schemas/card-projection.js +30 -0
  418. package/dist/schemas/card-projection.js.map +1 -0
  419. package/dist/schemas/contracts.d.ts +1117 -0
  420. package/dist/schemas/contracts.d.ts.map +1 -0
  421. package/dist/schemas/contracts.js +38 -0
  422. package/dist/schemas/contracts.js.map +1 -0
  423. package/dist/schemas/headless-attention.d.ts +189 -0
  424. package/dist/schemas/headless-attention.d.ts.map +1 -0
  425. package/dist/schemas/headless-attention.js +136 -0
  426. package/dist/schemas/headless-attention.js.map +1 -0
  427. package/dist/schemas/index.d.ts +15 -0
  428. package/dist/schemas/index.d.ts.map +1 -0
  429. package/dist/schemas/index.js +15 -0
  430. package/dist/schemas/index.js.map +1 -0
  431. package/dist/schemas/lane.d.ts +17 -0
  432. package/dist/schemas/lane.d.ts.map +1 -0
  433. package/dist/schemas/lane.js +14 -0
  434. package/dist/schemas/lane.js.map +1 -0
  435. package/dist/schemas/note.d.ts +14 -0
  436. package/dist/schemas/note.d.ts.map +1 -0
  437. package/dist/schemas/note.js +11 -0
  438. package/dist/schemas/note.js.map +1 -0
  439. package/dist/schemas/notification.d.ts +33 -0
  440. package/dist/schemas/notification.d.ts.map +1 -0
  441. package/dist/schemas/notification.js +19 -0
  442. package/dist/schemas/notification.js.map +1 -0
  443. package/dist/schemas/owner.d.ts +27 -0
  444. package/dist/schemas/owner.d.ts.map +1 -0
  445. package/dist/schemas/owner.js +18 -0
  446. package/dist/schemas/owner.js.map +1 -0
  447. package/dist/schemas/request.d.ts +69 -0
  448. package/dist/schemas/request.d.ts.map +1 -0
  449. package/dist/schemas/request.js +53 -0
  450. package/dist/schemas/request.js.map +1 -0
  451. package/dist/schemas/state.d.ts +170 -0
  452. package/dist/schemas/state.d.ts.map +1 -0
  453. package/dist/schemas/state.js +19 -0
  454. package/dist/schemas/state.js.map +1 -0
  455. package/dist/schemas/support-escalate.d.ts +54 -0
  456. package/dist/schemas/support-escalate.d.ts.map +1 -0
  457. package/dist/schemas/support-escalate.js +39 -0
  458. package/dist/schemas/support-escalate.js.map +1 -0
  459. package/dist/schemas/surface.d.ts +19 -0
  460. package/dist/schemas/surface.d.ts.map +1 -0
  461. package/dist/schemas/surface.js +8 -0
  462. package/dist/schemas/surface.js.map +1 -0
  463. package/dist/schemas/task.d.ts +70 -0
  464. package/dist/schemas/task.d.ts.map +1 -0
  465. package/dist/schemas/task.js +48 -0
  466. package/dist/schemas/task.js.map +1 -0
  467. package/dist/schemas/watch.d.ts +44 -0
  468. package/dist/schemas/watch.d.ts.map +1 -0
  469. package/dist/schemas/watch.js +19 -0
  470. package/dist/schemas/watch.js.map +1 -0
  471. package/dist/schemas/workboard-status-category.d.ts +35 -0
  472. package/dist/schemas/workboard-status-category.d.ts.map +1 -0
  473. package/dist/schemas/workboard-status-category.js +45 -0
  474. package/dist/schemas/workboard-status-category.js.map +1 -0
  475. package/dist/storage/owner-transforms.d.ts +228 -0
  476. package/dist/storage/owner-transforms.d.ts.map +1 -0
  477. package/dist/storage/owner-transforms.js +132 -0
  478. package/dist/storage/owner-transforms.js.map +1 -0
  479. package/dist/svelte/components/LaneBoard.svelte +250 -0
  480. package/dist/svelte/components/LaneBoard.svelte.d.ts +20 -0
  481. package/dist/svelte/components/LaneBoard.svelte.d.ts.map +1 -0
  482. package/dist/svelte/components/LaneBoardComposer.svelte +78 -0
  483. package/dist/svelte/components/LaneBoardComposer.svelte.d.ts +24 -0
  484. package/dist/svelte/components/LaneBoardComposer.svelte.d.ts.map +1 -0
  485. package/dist/svelte/components/LaneBoardFilters.svelte +34 -0
  486. package/dist/svelte/components/LaneBoardFilters.svelte.d.ts +12 -0
  487. package/dist/svelte/components/LaneBoardFilters.svelte.d.ts.map +1 -0
  488. package/dist/svelte/components/LaneBoardLane.svelte +46 -0
  489. package/dist/svelte/components/LaneBoardLane.svelte.d.ts +18 -0
  490. package/dist/svelte/components/LaneBoardLane.svelte.d.ts.map +1 -0
  491. package/dist/svelte/components/LaneBoardSummary.svelte +38 -0
  492. package/dist/svelte/components/LaneBoardSummary.svelte.d.ts +12 -0
  493. package/dist/svelte/components/LaneBoardSummary.svelte.d.ts.map +1 -0
  494. package/dist/svelte/components/LaneBoardTaskRow.svelte +158 -0
  495. package/dist/svelte/components/LaneBoardTaskRow.svelte.d.ts +31 -0
  496. package/dist/svelte/components/LaneBoardTaskRow.svelte.d.ts.map +1 -0
  497. package/dist/svelte/components/PriorityBadge.svelte +21 -0
  498. package/dist/svelte/components/PriorityBadge.svelte.d.ts +7 -0
  499. package/dist/svelte/components/PriorityBadge.svelte.d.ts.map +1 -0
  500. package/dist/svelte/components/RequestsQueue.svelte +613 -0
  501. package/dist/svelte/components/RequestsQueue.svelte.d.ts +21 -0
  502. package/dist/svelte/components/RequestsQueue.svelte.d.ts.map +1 -0
  503. package/dist/svelte/components/StatCard.svelte +27 -0
  504. package/dist/svelte/components/StatCard.svelte.d.ts +12 -0
  505. package/dist/svelte/components/StatCard.svelte.d.ts.map +1 -0
  506. package/dist/svelte/components/StatusBadge.svelte +25 -0
  507. package/dist/svelte/components/StatusBadge.svelte.d.ts +7 -0
  508. package/dist/svelte/components/StatusBadge.svelte.d.ts.map +1 -0
  509. package/dist/svelte/components/WorkboardBoard.svelte +467 -0
  510. package/dist/svelte/components/WorkboardBoard.svelte.d.ts +26 -0
  511. package/dist/svelte/components/WorkboardBoard.svelte.d.ts.map +1 -0
  512. package/dist/svelte/index.d.ts +22 -0
  513. package/dist/svelte/index.d.ts.map +1 -0
  514. package/dist/svelte/index.js +24 -0
  515. package/dist/svelte/lane-board-client.d.ts +3 -0
  516. package/dist/svelte/lane-board-client.d.ts.map +1 -0
  517. package/dist/svelte/lane-board-client.js +2 -0
  518. package/dist/svelte/lane-board.d.ts +120 -0
  519. package/dist/svelte/lane-board.d.ts.map +1 -0
  520. package/dist/svelte/lane-board.js +221 -0
  521. package/dist/svelte/rest-workboard-client.d.ts +235 -0
  522. package/dist/svelte/rest-workboard-client.d.ts.map +1 -0
  523. package/dist/svelte/rest-workboard-client.js +52 -0
  524. package/dist/svelte/styles.css +10 -0
  525. package/dist/svelte/tool-widgets/MarshalToolCard.svelte +67 -0
  526. package/dist/svelte/tool-widgets/MarshalToolCard.svelte.d.ts +5 -0
  527. package/dist/svelte/tool-widgets/MarshalToolCard.svelte.d.ts.map +1 -0
  528. package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte +42 -0
  529. package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte.d.ts +5 -0
  530. package/dist/svelte/tool-widgets/SupportEscalateToolCard.svelte.d.ts.map +1 -0
  531. package/dist/svelte/tool-widgets/index.d.ts +7 -0
  532. package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
  533. package/dist/svelte/tool-widgets/index.js +6 -0
  534. package/dist/svelte/types.d.ts +24 -0
  535. package/dist/svelte/types.d.ts.map +1 -0
  536. package/dist/svelte/types.js +1 -0
  537. package/dist/svelte/workboard-svelte.plugin.d.ts +10 -0
  538. package/dist/svelte/workboard-svelte.plugin.d.ts.map +1 -0
  539. package/dist/svelte/workboard-svelte.plugin.js +31 -0
  540. package/dist/svelte/workboard-utils.d.ts +33 -0
  541. package/dist/svelte/workboard-utils.d.ts.map +1 -0
  542. package/dist/svelte/workboard-utils.js +85 -0
  543. package/dist/tools/card-projections.d.ts +7 -0
  544. package/dist/tools/card-projections.d.ts.map +1 -0
  545. package/dist/tools/card-projections.js +64 -0
  546. package/dist/tools/card-projections.js.map +1 -0
  547. package/dist/tools/support-escalate/schemas.d.ts +2 -0
  548. package/dist/tools/support-escalate/schemas.d.ts.map +1 -0
  549. package/dist/tools/support-escalate/schemas.js +2 -0
  550. package/dist/tools/support-escalate/schemas.js.map +1 -0
  551. package/dist/tools/support-escalate/support-escalate.descriptor.d.ts +49 -0
  552. package/dist/tools/support-escalate/support-escalate.descriptor.d.ts.map +1 -0
  553. package/dist/tools/support-escalate/support-escalate.descriptor.js +42 -0
  554. package/dist/tools/support-escalate/support-escalate.descriptor.js.map +1 -0
  555. package/dist/tools/support-escalate/support-escalate.impl.cloud.d.ts +17 -0
  556. package/dist/tools/support-escalate/support-escalate.impl.cloud.d.ts.map +1 -0
  557. package/dist/tools/support-escalate/support-escalate.impl.cloud.js +63 -0
  558. package/dist/tools/support-escalate/support-escalate.impl.cloud.js.map +1 -0
  559. package/dist/tui/index.d.ts +2 -0
  560. package/dist/tui/index.d.ts.map +1 -0
  561. package/dist/tui/index.js +2 -0
  562. package/dist/tui/index.js.map +1 -0
  563. package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.d.ts +4 -0
  564. package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.d.ts.map +1 -0
  565. package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.js +17 -0
  566. package/dist/tui/tool-widgets/MarshalToolWidget.impl.consumer.js.map +1 -0
  567. package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.d.ts +4 -0
  568. package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.d.ts.map +1 -0
  569. package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.js +11 -0
  570. package/dist/tui/tool-widgets/SupportEscalateToolWidget.impl.consumer.js.map +1 -0
  571. package/dist/tui/workboard-tui.plugin.d.ts +7 -0
  572. package/dist/tui/workboard-tui.plugin.d.ts.map +1 -0
  573. package/dist/tui/workboard-tui.plugin.js +32 -0
  574. package/dist/tui/workboard-tui.plugin.js.map +1 -0
  575. package/dist/types.d.ts +2 -0
  576. package/dist/types.d.ts.map +1 -0
  577. package/dist/types.js +2 -0
  578. package/dist/types.js.map +1 -0
  579. package/dist/utils/exec.d.ts +35 -0
  580. package/dist/utils/exec.d.ts.map +1 -0
  581. package/dist/utils/exec.js +31 -0
  582. package/dist/utils/exec.js.map +1 -0
  583. package/dist/workboard.plugin.d.ts +8 -0
  584. package/dist/workboard.plugin.d.ts.map +1 -0
  585. package/dist/workboard.plugin.js +46 -0
  586. package/dist/workboard.plugin.js.map +1 -0
  587. package/dist/workboard.runtime-client.descriptor.d.ts +4 -0
  588. package/dist/workboard.runtime-client.descriptor.d.ts.map +1 -0
  589. package/dist/workboard.runtime-client.descriptor.js +13 -0
  590. package/dist/workboard.runtime-client.descriptor.js.map +1 -0
  591. package/package.json +409 -4
@@ -0,0 +1,613 @@
1
+ <script lang="ts">
2
+ import { settle } from '@vibesdotdev/kernel';
3
+ import * as Card from '@vibesdotdev/kit/components/ui/card';
4
+ import { Badge } from '@vibesdotdev/kit/components/ui/badge';
5
+ import StatusBadge from './StatusBadge.svelte';
6
+ import { Button } from '@vibesdotdev/kit/components/ui/button';
7
+ import { Input } from '@vibesdotdev/kit/components/ui/input';
8
+ import { Textarea } from '@vibesdotdev/kit/components/ui/textarea';
9
+ import { Label } from '@vibesdotdev/kit/components/ui/label';
10
+ import {
11
+ Select,
12
+ SelectContent,
13
+ SelectItem,
14
+ SelectTrigger
15
+ } from '@vibesdotdev/kit/components/ui/select';
16
+ import {
17
+ Dialog,
18
+ DialogContent,
19
+ DialogHeader,
20
+ DialogTitle,
21
+ DialogDescription,
22
+ DialogFooter,
23
+ DialogClose
24
+ } from '@vibesdotdev/kit/components/ui/dialog';
25
+ import { timeAgo } from '../workboard-utils.js';
26
+ import type {
27
+ RequestType,
28
+ WorkboardRequestView as MarshalRequest,
29
+ WorkboardViewer
30
+ } from '../types.js';
31
+ import { createRestWorkboardClient } from '../rest-workboard-client.js';
32
+ import { WorkboardPlanDetailsSchema, WorkboardEmailDetailsSchema, type WorkboardPlanDetails, type WorkboardEmailDetails } from '../../schemas/surface.js';
33
+ import { getWorkboardRequestPlanId } from '@vibesdotdev/workboard';
34
+ import { Icon } from '@vibesdotdev/kit/components';
35
+ import { toast } from 'svelte-sonner';
36
+
37
+ interface ReviewContextLink {
38
+ kind: 'output' | 'task' | 'session';
39
+ title: string;
40
+ description: string;
41
+ href: string;
42
+ }
43
+
44
+ let {
45
+ requests,
46
+ pendingCount = 0,
47
+ activeAgentId = null,
48
+ viewer = null,
49
+ initialReviewId = null,
50
+ reviewContext = {}
51
+ }: {
52
+ requests: MarshalRequest[];
53
+ pendingCount?: number;
54
+ activeAgentId?: string | null;
55
+ viewer?: WorkboardViewer | null;
56
+ /** Open this request's review dialog once when the queue arrives from a deep link. */
57
+ initialReviewId?: string | null;
58
+ /** Durable task/output/session links that help a person make the review decision. */
59
+ reviewContext?: Record<string, ReviewContextLink[]>;
60
+ } = $props();
61
+
62
+ let requestOverride = $state<MarshalRequest[] | null>(null);
63
+ let baseRequests = $derived(requestOverride ?? requests);
64
+ // Optional within-data narrow: when `activeAgentId` is non-null, show only the
65
+ // rows whose provenance `agentId` matches; null = "All agents" (show all). The
66
+ // workboard request descriptor carries a nullish `agentId` (stamped server-side).
67
+ let scopedRequests = $derived(
68
+ activeAgentId == null
69
+ ? baseRequests
70
+ : baseRequests.filter((request) => request.agentId === activeAgentId)
71
+ );
72
+ let livePendingCount = $derived(scopedRequests.filter((request) => request.status === 'pending').length);
73
+
74
+ // Filters
75
+ let filterStatus = $state('all');
76
+ let filterType = $state('all');
77
+
78
+ function getFilteredRequests() {
79
+ let items = [...scopedRequests];
80
+ if (filterStatus !== 'all') items = items.filter(r => r.status === filterStatus);
81
+ if (filterType !== 'all') items = items.filter(r => r.type === filterType);
82
+ return items;
83
+ }
84
+
85
+ // Add request form
86
+ let showAddRequest = $state(false);
87
+ let requestForm = $state<{
88
+ title: string;
89
+ type: RequestType;
90
+ requested_by: string;
91
+ description: string;
92
+ }>({
93
+ title: '',
94
+ type: 'action',
95
+ requested_by: defaultReviewerName(),
96
+ description: ''
97
+ });
98
+
99
+ // Review modal
100
+ let reviewingRequest = $state<MarshalRequest | null>(null);
101
+ let reviewStatus = $state<'approved' | 'rejected'>('approved');
102
+ let reviewResponse = $state('');
103
+ let lastAutoOpenedId = $state<string | null>(null);
104
+ let reviewingContext = $derived(reviewingRequest ? (reviewContext[reviewingRequest.id] ?? []) : []);
105
+
106
+ // Dropdown
107
+ let openMenuId = $state<string | null>(null);
108
+
109
+ async function runRequestOperation<T>(operation: () => Promise<T>): Promise<boolean> {
110
+ const outcome = await settle(async () => {
111
+ await operation();
112
+ await refreshState();
113
+ });
114
+ if (!outcome.ok) {
115
+ toast.error(outcome.cause instanceof Error ? outcome.cause.message : outcome.cause.description);
116
+ return false;
117
+ }
118
+ toast.success('Request updated');
119
+ return true;
120
+ }
121
+
122
+ async function refreshState() {
123
+ requestOverride = await createRestWorkboardClient().requests.list();
124
+ }
125
+
126
+ // Actions
127
+ async function submitRequest() {
128
+ if (!requestForm.title.trim()) return;
129
+ const created = await runRequestOperation(async () =>
130
+ createRestWorkboardClient().requests.add(requestForm)
131
+ );
132
+ if (!created) return;
133
+ showAddRequest = false;
134
+ requestForm = {
135
+ title: '',
136
+ type: 'action',
137
+ requested_by: defaultReviewerName(),
138
+ description: ''
139
+ };
140
+ }
141
+
142
+ function openReview(req: MarshalRequest) {
143
+ reviewingRequest = req;
144
+ reviewStatus = 'approved';
145
+ reviewResponse = '';
146
+ }
147
+
148
+ $effect(() => {
149
+ if (!initialReviewId || lastAutoOpenedId === initialReviewId) return;
150
+ const request = scopedRequests.find((candidate) => candidate.id === initialReviewId);
151
+ if (!request) return;
152
+ lastAutoOpenedId = initialReviewId;
153
+ openReview(request);
154
+ });
155
+
156
+ function onReviewOpenChange(value: boolean) {
157
+ if (!value) reviewingRequest = null;
158
+ }
159
+
160
+ async function submitReview() {
161
+ const request = reviewingRequest;
162
+ if (!request) return;
163
+ const reviewed = await runRequestOperation(async () =>
164
+ createRestWorkboardClient().requests.review(request.id, {
165
+ status: reviewStatus,
166
+ response: reviewResponse || undefined
167
+ })
168
+ );
169
+ if (reviewed) reviewingRequest = null;
170
+ }
171
+
172
+ async function deleteRequest(id: string) {
173
+ await runRequestOperation(async () => createRestWorkboardClient().requests.remove(id));
174
+ openMenuId = null;
175
+ }
176
+
177
+ async function clearResolved() {
178
+ await runRequestOperation(async () =>
179
+ createRestWorkboardClient().requests.clearResolved()
180
+ );
181
+ }
182
+
183
+ // Display
184
+ function defaultReviewerName(): string {
185
+ const user = viewer;
186
+ return user?.name ?? user?.email ?? user?.id ?? '';
187
+ }
188
+
189
+ function formatTypeLabel(type: string): string {
190
+ return type
191
+ .split('_')
192
+ .filter(Boolean)
193
+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
194
+ .join(' ');
195
+ }
196
+
197
+ function typeIcon(type: RequestType) {
198
+ const icons = {
199
+ action: 'lucide:zap',
200
+ email: 'lucide:mail',
201
+ deployment: 'lucide:rocket',
202
+ code_review: 'lucide:code',
203
+ plan_confirmation: 'lucide:check-check',
204
+ escalation: 'lucide:arrow-up-circle'
205
+ } satisfies Record<RequestType, string>;
206
+ return icons[type] || 'lucide:zap';
207
+ }
208
+
209
+ function typeColor(type: RequestType): string {
210
+ const c = {
211
+ action: 'border-info/30 bg-info/10 text-info',
212
+ email: 'border-primary/25 bg-primary/10 text-primary',
213
+ deployment: 'border-success/30 bg-success/10 text-success',
214
+ code_review: 'border-info/30 bg-info/10 text-info',
215
+ plan_confirmation: 'border-warning/30 bg-warning/10 text-warning',
216
+ escalation: 'border-destructive/30 bg-destructive/10 text-destructive'
217
+ } satisfies Record<RequestType, string>;
218
+ return c[type] || 'border-muted bg-muted/50 text-muted-foreground';
219
+ }
220
+
221
+ function requestCardClass(req: MarshalRequest): string {
222
+ const typeClass = {
223
+ action: 'border-info/35 bg-info/10 shadow-info/10',
224
+ email: 'border-primary/30 bg-primary/10 shadow-primary/10',
225
+ deployment: 'border-success/35 bg-success/10 shadow-success/10',
226
+ code_review: 'border-info/35 bg-info/10 shadow-info/10',
227
+ plan_confirmation: 'border-warning/35 bg-warning/10 shadow-warning/10',
228
+ escalation: 'border-destructive/35 bg-destructive/10 shadow-destructive/10'
229
+ } satisfies Record<RequestType, string>;
230
+ const statusClass =
231
+ req.status === 'pending'
232
+ ? 'ring-1 ring-warning/25'
233
+ : req.status === 'approved'
234
+ ? 'ring-1 ring-success/20'
235
+ : req.status === 'rejected'
236
+ ? 'ring-1 ring-destructive/20'
237
+ : 'ring-1 ring-primary/15';
238
+ return `border-l-4 shadow-sm ${typeClass[req.type] || 'border-primary/30 bg-primary/10 shadow-primary/10'} ${statusClass}`;
239
+ }
240
+
241
+ function requestPanelClass(req: MarshalRequest): string {
242
+ const c = {
243
+ action: 'border-info/25 bg-info/5',
244
+ email: 'border-primary/25 bg-primary/5',
245
+ deployment: 'border-success/25 bg-success/5',
246
+ code_review: 'border-info/25 bg-info/5',
247
+ plan_confirmation: 'border-warning/25 bg-warning/5',
248
+ escalation: 'border-destructive/25 bg-destructive/5'
249
+ } satisfies Record<RequestType, string>;
250
+ return c[req.type] || 'border-primary/20 bg-primary/5';
251
+ }
252
+
253
+ function reviewChoiceClass(status: 'approved' | 'rejected'): string {
254
+ if (status === 'approved') {
255
+ return reviewStatus === 'approved'
256
+ ? 'flex-1 rounded-xl border-2 border-success/40 bg-success/10 py-3 text-success hover:bg-success/20'
257
+ : 'flex-1 rounded-xl border-2 py-3 text-muted-foreground hover:border-success/40 hover:bg-success/10 hover:text-success';
258
+ }
259
+ return reviewStatus === 'rejected'
260
+ ? 'flex-1 rounded-xl border-2 border-destructive/40 bg-destructive/10 py-3 text-destructive hover:bg-destructive/20'
261
+ : 'flex-1 rounded-xl border-2 py-3 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/10 hover:text-destructive';
262
+ }
263
+
264
+ function reviewContextIcon(kind: ReviewContextLink['kind']): string {
265
+ return {
266
+ output: 'lucide:panel-top',
267
+ task: 'lucide:list-checks',
268
+ session: 'lucide:terminal'
269
+ }[kind];
270
+ }
271
+
272
+ function hasDetails(req: MarshalRequest): boolean {
273
+ return Object.keys(req.details ?? {}).length > 0;
274
+ }
275
+
276
+ function requestDetailsLabel(req: MarshalRequest): string {
277
+ if (req.type === 'plan_confirmation') return 'Plan details';
278
+ return 'Technical details';
279
+ }
280
+
281
+ function requestDetailsJson(req: MarshalRequest): string {
282
+ return JSON.stringify(req.details ?? {}, null, 2);
283
+ }
284
+
285
+
286
+ function planDetails(req: MarshalRequest): WorkboardPlanDetails | null {
287
+ const parsed = WorkboardPlanDetailsSchema.safeParse(req.details?.plan);
288
+ const plan = parsed.success ? parsed.data : null;
289
+ if (!plan || (!plan.title && !plan.summary)) return null;
290
+ return plan;
291
+ }
292
+
293
+ function planId(req: MarshalRequest): string | undefined {
294
+ return req.type === 'plan_confirmation' ? getWorkboardRequestPlanId(req) : undefined;
295
+ }
296
+
297
+
298
+ function emailDetails(req: MarshalRequest): WorkboardEmailDetails | null {
299
+ if (req.type !== 'email') return null;
300
+ const parsed = WorkboardEmailDetailsSchema.safeParse(req.details);
301
+ const details = parsed.success ? parsed.data : null;
302
+ if (!details || (!details.recipients?.length && !details.subject)) return null;
303
+ return details;
304
+ }
305
+
306
+ /** True when a human-readable renderer (plan or email) covers this request's details. */
307
+ function hasReadableDetails(req: MarshalRequest): boolean {
308
+ return planDetails(req) !== null || emailDetails(req) !== null;
309
+ }
310
+
311
+ function closeMenus() { openMenuId = null; }
312
+ </script>
313
+
314
+ <svelte:window onclick={closeMenus} />
315
+
316
+ <Dialog open={reviewingRequest !== null} onOpenChange={onReviewOpenChange}>
317
+ <DialogContent
318
+ class="max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-lg grid-cols-[minmax(0,1fr)] overflow-y-auto"
319
+ >
320
+ {#if reviewingRequest}
321
+ <DialogHeader>
322
+ <DialogTitle>Review request</DialogTitle>
323
+ <DialogDescription>Approve or reject this request and leave an optional note.</DialogDescription>
324
+ </DialogHeader>
325
+ <div class="space-y-4">
326
+ <div>
327
+ <p class="font-medium">{reviewingRequest.title}</p>
328
+ <div class="mt-1 flex flex-wrap gap-2">
329
+ <Badge variant="outline" class={typeColor(reviewingRequest.type)}>{formatTypeLabel(reviewingRequest.type)}</Badge>
330
+ {#if planId(reviewingRequest)}
331
+ <Badge variant="outline" class="border-warning/30 bg-warning/10 text-warning">
332
+ Plan: {planId(reviewingRequest)}
333
+ </Badge>
334
+ {/if}
335
+ <span class="text-xs text-muted-foreground">by {reviewingRequest.requested_by}</span>
336
+ <span class="text-xs text-muted-foreground">{timeAgo(reviewingRequest.created_at)}</span>
337
+ </div>
338
+ </div>
339
+ {#if reviewingRequest.description}
340
+ <div class="rounded-xl border p-3 {requestPanelClass(reviewingRequest)}"><p class="text-sm text-muted-foreground">{reviewingRequest.description}</p></div>
341
+ {/if}
342
+ {#if planDetails(reviewingRequest)}
343
+ {@const plan = planDetails(reviewingRequest)}
344
+ <div class="rounded-xl border p-3 {requestPanelClass(reviewingRequest)}">
345
+ {#if plan?.title}<p class="text-sm font-medium">{plan.title}</p>{/if}
346
+ {#if plan?.summary}<p class="mt-1 text-sm text-muted-foreground leading-relaxed">{plan.summary}</p>{/if}
347
+ </div>
348
+ {:else if emailDetails(reviewingRequest)}
349
+ {@const email = emailDetails(reviewingRequest)}
350
+ <div class="rounded-xl border p-3 space-y-1 {requestPanelClass(reviewingRequest)}">
351
+ {#if email?.recipients?.length}<p class="text-sm"><span class="font-medium text-muted-foreground">To:</span> {email.recipients.join(', ')}</p>{/if}
352
+ {#if email?.subject}<p class="text-sm"><span class="font-medium text-muted-foreground">Subject:</span> {email.subject}</p>{/if}
353
+ </div>
354
+ {/if}
355
+ {#if reviewingContext.length > 0}
356
+ <section aria-label="Review context">
357
+ <p class="mb-2 text-xs font-medium text-muted-foreground">Review context</p>
358
+ <div class="space-y-1.5">
359
+ {#each reviewingContext as link (link.kind + link.href)}
360
+ <a
361
+ href={link.href}
362
+ class="group flex min-h-12 items-center gap-3 rounded-lg border bg-background/70 px-3 py-2 transition-colors hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
363
+ >
364
+ <span class="grid size-8 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground">
365
+ <Icon icon={reviewContextIcon(link.kind)} class="size-4" />
366
+ </span>
367
+ <span class="min-w-0 flex-1">
368
+ <span class="block truncate text-sm font-medium">{link.title}</span>
369
+ <span class="block truncate text-xs text-muted-foreground">{link.description}</span>
370
+ </span>
371
+ <Icon
372
+ icon="lucide:arrow-right"
373
+ class="size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"
374
+ />
375
+ </a>
376
+ {/each}
377
+ </div>
378
+ </section>
379
+ {/if}
380
+ {#if hasDetails(reviewingRequest)}
381
+ <details class="group rounded-xl border p-3 {requestPanelClass(reviewingRequest)}">
382
+ <summary class="cursor-pointer list-none text-sm font-medium text-muted-foreground hover:text-foreground">
383
+ <Icon
384
+ icon="lucide:chevron-right"
385
+ class="mr-1 inline size-3.5 transition-transform group-open:rotate-90"
386
+ />
387
+ {hasReadableDetails(reviewingRequest) ? 'Raw data' : requestDetailsLabel(reviewingRequest)}
388
+ </summary>
389
+ <pre class="mt-3 overflow-x-auto rounded-md border bg-background/60 p-3 text-xs text-muted-foreground">{requestDetailsJson(reviewingRequest)}</pre>
390
+ </details>
391
+ {/if}
392
+ <div class="space-y-3">
393
+ <div class="flex gap-2">
394
+ <Button variant="outline" class={reviewChoiceClass('approved')} onclick={() => (reviewStatus = 'approved')}>
395
+ <Icon icon="lucide:shield-check" class="mx-auto mb-1 size-5" /> Approve
396
+ </Button>
397
+ <Button variant="outline" class={reviewChoiceClass('rejected')} onclick={() => (reviewStatus = 'rejected')}>
398
+ <Icon icon="lucide:shield-x" class="mx-auto mb-1 size-5" /> Reject
399
+ </Button>
400
+ </div>
401
+ <div class="space-y-1">
402
+ <Label class="text-xs">Response (optional)</Label>
403
+ <Textarea bind:value={reviewResponse} placeholder="Add a note..." rows={2} />
404
+ </div>
405
+ </div>
406
+ </div>
407
+ <DialogFooter>
408
+ <DialogClose>
409
+ <Button variant="outline">Cancel</Button>
410
+ </DialogClose>
411
+ <Button
412
+ onclick={submitReview}
413
+ variant={reviewStatus === 'approved' ? 'default' : 'destructive'}
414
+ class={reviewStatus === 'approved' ? 'bg-success text-success-foreground hover:bg-success/90' : ''}
415
+ >
416
+ {reviewStatus === 'approved' ? 'Approve' : 'Reject'}
417
+ </Button>
418
+ </DialogFooter>
419
+ {/if}
420
+ </DialogContent>
421
+ </Dialog>
422
+
423
+ <div class="space-y-6 p-6 lg:p-8">
424
+ <section class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
425
+ <div>
426
+ <h1 class="text-2xl font-semibold tracking-tight">Approvals</h1>
427
+ <p class="mt-1 text-sm text-muted-foreground">Review plans and actions before agents do something consequential.</p>
428
+ </div>
429
+ <div class="flex flex-wrap items-center gap-2">
430
+ {#if livePendingCount > 0}
431
+ <Badge class="border-warning/30 bg-warning/10 text-warning"><Icon icon="lucide:clock-3" class="mr-1 size-3" />{livePendingCount} pending</Badge>
432
+ {/if}
433
+ <Button size="sm" onclick={clearResolved} disabled={scopedRequests.filter(r => r.status !== 'pending').length === 0}><Icon icon="lucide:trash-2" class="size-4" />Clear resolved</Button>
434
+ <Button size="sm" onclick={() => (showAddRequest = !showAddRequest)}><Icon icon="lucide:plus" class="size-4" />New Request</Button>
435
+ </div>
436
+ </section>
437
+
438
+ {#if showAddRequest}
439
+ <Card.Root class="border-primary/20 bg-primary/5">
440
+ <Card.Content class="p-4 space-y-4">
441
+ <div class="flex items-center justify-between">
442
+ <p class="text-sm font-medium">New Request</p>
443
+ <Button
444
+ variant="ghost"
445
+ size="sm"
446
+ aria-label="Close new request form"
447
+ title="Close"
448
+ onclick={() => (showAddRequest = false)}
449
+ >
450
+ <Icon icon="lucide:x" class="size-4" aria-hidden="true" />
451
+ </Button>
452
+ </div>
453
+ <div class="grid gap-4 sm:grid-cols-2">
454
+ <div class="space-y-2 sm:col-span-2">
455
+ <Label for="request-title" class="text-xs">Title</Label>
456
+ <Input id="request-title" bind:value={requestForm.title} placeholder="What needs approval?" />
457
+ </div>
458
+ <div class="space-y-2">
459
+ <Label for="request-type" class="text-xs">Type</Label>
460
+ <Select type="single" bind:value={requestForm.type}>
461
+ <SelectTrigger id="request-type" />
462
+ <SelectContent>
463
+ <SelectItem value="action">Action</SelectItem>
464
+ <SelectItem value="email">Email</SelectItem>
465
+ <SelectItem value="deployment">Deployment</SelectItem>
466
+ <SelectItem value="code_review">Code Review</SelectItem>
467
+ <SelectItem value="plan_confirmation">Plan Confirmation</SelectItem>
468
+ <SelectItem value="escalation">Escalation</SelectItem>
469
+ </SelectContent>
470
+ </Select>
471
+ </div>
472
+ <div class="space-y-2">
473
+ <Label for="request-requested-by" class="text-xs">Requested by</Label>
474
+ <Input
475
+ id="request-requested-by"
476
+ bind:value={requestForm.requested_by}
477
+ placeholder="Name or agent id"
478
+ />
479
+ </div>
480
+ <div class="space-y-2 sm:col-span-2">
481
+ <Label for="request-description" class="text-xs">Description</Label>
482
+ <Textarea
483
+ id="request-description"
484
+ bind:value={requestForm.description}
485
+ placeholder="Why is this needed?"
486
+ rows={2}
487
+ />
488
+ </div>
489
+ </div>
490
+ <div class="flex justify-end gap-2">
491
+ <Button variant="outline" size="sm" onclick={() => (showAddRequest = false)}>Cancel</Button>
492
+ <Button size="sm" onclick={submitRequest} disabled={!requestForm.title.trim()}><Icon icon="lucide:check" class="size-4" />Submit</Button>
493
+ </div>
494
+ </Card.Content>
495
+ </Card.Root>
496
+ {/if}
497
+
498
+ <div class="flex flex-wrap items-center gap-2">
499
+ <span class="text-xs text-muted-foreground">Filter:</span>
500
+ {#each [{ value: 'all', label: 'All' }, { value: 'pending', label: 'Pending' }, { value: 'approved', label: 'Approved' }, { value: 'rejected', label: 'Rejected' }] as f}
501
+ <Button variant={filterStatus === f.value ? 'default' : 'outline'} size="sm" onclick={() => (filterStatus = f.value)}>{f.label}</Button>
502
+ {/each}
503
+ <span class="mx-2 text-border">|</span>
504
+ {#each [{ value: 'all', label: 'All types' }, { value: 'action', label: 'Action' }, { value: 'plan_confirmation', label: 'Plans' }, { value: 'email', label: 'Email' }, { value: 'deployment', label: 'Deploy' }, { value: 'code_review', label: 'Review' }, { value: 'escalation', label: 'Escalate' }] as f}
505
+ <Button variant={filterType === f.value ? 'default' : 'outline'} size="sm" onclick={() => (filterType = f.value)}>{f.label}</Button>
506
+ {/each}
507
+ </div>
508
+
509
+ {#if getFilteredRequests().length === 0}
510
+ <Card.Root class="border-primary/20 bg-primary/5">
511
+ <Card.Content class="flex flex-col items-center justify-center py-16">
512
+ <Icon icon="lucide:inbox" class="mb-3 size-12 text-muted-foreground/30" />
513
+ <p class="text-sm text-muted-foreground">
514
+ {scopedRequests.length === 0
515
+ ? 'No approval requests yet. Agents asking for plan confirmation appear here.'
516
+ : 'No requests match filters.'}
517
+ </p>
518
+ </Card.Content>
519
+ </Card.Root>
520
+ {:else}
521
+ <div class="space-y-3">
522
+ {#each getFilteredRequests() as req (req.id)}
523
+ <Card.Root class={requestCardClass(req)}>
524
+ <Card.Content class="p-4">
525
+ <div class="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
526
+ <div class="flex items-start gap-3 min-w-0">
527
+ <div class="mt-0.5 rounded-lg border p-2 {typeColor(req.type)}"><Icon icon={typeIcon(req.type)} class="size-4" /></div>
528
+ <div class="min-w-0">
529
+ <p class="font-medium truncate">{req.title}</p>
530
+ <div class="mt-1 flex flex-wrap items-center gap-2">
531
+ <StatusBadge status={req.status} />
532
+ <Badge variant="outline" class={typeColor(req.type)}>{formatTypeLabel(req.type)}</Badge>
533
+ <span class="text-xs text-muted-foreground">by {req.requested_by}</span>
534
+ {#if planId(req)}
535
+ <Badge variant="outline" class="border-warning/30 bg-warning/10 text-warning">
536
+ Plan: {planId(req)}
537
+ </Badge>
538
+ {/if}
539
+ <span class="text-xs text-muted-foreground">{timeAgo(req.created_at)}</span>
540
+ </div>
541
+ </div>
542
+ </div>
543
+ <div class="flex shrink-0 items-center gap-1 self-end sm:self-auto">
544
+ {#if req.status === 'pending'}
545
+ <Button size="sm" onclick={() => openReview(req)}><Icon icon="lucide:shield-check" class="size-4" />Review</Button>
546
+ {/if}
547
+ <div class="relative">
548
+ <Button
549
+ variant="ghost"
550
+ size="icon-sm"
551
+ aria-label={`Actions for ${req.title}`}
552
+ title="Request actions"
553
+ aria-expanded={openMenuId === req.id}
554
+ onclick={(e) => {
555
+ e.stopPropagation();
556
+ openMenuId = openMenuId === req.id ? null : req.id;
557
+ }}
558
+ >
559
+ <Icon icon="lucide:ellipsis-vertical" class="size-4" aria-hidden="true" />
560
+ </Button>
561
+ {#if openMenuId === req.id}
562
+ <div class="absolute right-0 top-full z-30 mt-1 w-40 rounded-xl border bg-popover p-1 shadow-lg">
563
+ <Button variant="ghost" class="w-full justify-start text-destructive hover:bg-destructive/10" size="sm" onclick={(e) => { e.stopPropagation(); deleteRequest(req.id); }}>
564
+ <Icon icon="lucide:trash-2" class="size-3.5" /> Delete
565
+ </Button>
566
+ </div>
567
+ {/if}
568
+ </div>
569
+ </div>
570
+ </div>
571
+ {#if req.description}
572
+ <p class="mt-3 text-sm text-muted-foreground leading-relaxed">{req.description}</p>
573
+ {/if}
574
+ {#if planDetails(req)}
575
+ {@const plan = planDetails(req)}
576
+ <div class="mt-3 rounded-lg border p-3 {requestPanelClass(req)}">
577
+ {#if plan?.title}<p class="text-sm font-medium">{plan.title}</p>{/if}
578
+ {#if plan?.summary}<p class="mt-1 text-sm text-muted-foreground leading-relaxed">{plan.summary}</p>{/if}
579
+ </div>
580
+ {:else if emailDetails(req)}
581
+ {@const email = emailDetails(req)}
582
+ <div class="mt-3 rounded-lg border p-3 space-y-1 {requestPanelClass(req)}">
583
+ {#if email?.recipients?.length}<p class="text-sm"><span class="font-medium text-muted-foreground">To:</span> {email.recipients.join(', ')}</p>{/if}
584
+ {#if email?.subject}<p class="text-sm"><span class="font-medium text-muted-foreground">Subject:</span> {email.subject}</p>{/if}
585
+ </div>
586
+ {/if}
587
+ {#if hasDetails(req)}
588
+ <details class="group mt-3 rounded-lg border p-3 {requestPanelClass(req)}">
589
+ <summary class="cursor-pointer list-none text-xs font-medium text-muted-foreground hover:text-foreground">
590
+ <Icon
591
+ icon="lucide:chevron-right"
592
+ class="mr-1 inline size-3 transition-transform group-open:rotate-90"
593
+ />
594
+ {hasReadableDetails(req) ? 'Raw data' : requestDetailsLabel(req)}
595
+ </summary>
596
+ <pre class="mt-3 overflow-x-auto rounded-md border bg-background/60 p-3 text-xs leading-5 text-muted-foreground">{requestDetailsJson(req)}</pre>
597
+ </details>
598
+ {/if}
599
+ {#if req.response}
600
+ <div class="mt-3 rounded-xl border p-3 {requestPanelClass(req)}">
601
+ <p class="text-xs font-medium {req.status === 'approved' ? 'text-success' : 'text-destructive'}">{req.status === 'approved' ? 'Approved' : 'Rejected'} by {req.reviewed_by || 'Reviewer'}:</p>
602
+ <p class="mt-1 text-sm text-muted-foreground">{req.response}</p>
603
+ {#if req.reviewed_at}
604
+ <p class="mt-1 text-xs text-muted-foreground/60">{timeAgo(req.reviewed_at)}</p>
605
+ {/if}
606
+ </div>
607
+ {/if}
608
+ </Card.Content>
609
+ </Card.Root>
610
+ {/each}
611
+ </div>
612
+ {/if}
613
+ </div>
@@ -0,0 +1,21 @@
1
+ import type { WorkboardRequestView as MarshalRequest, WorkboardViewer } from '../types.ts';
2
+ interface ReviewContextLink {
3
+ kind: 'output' | 'task' | 'session';
4
+ title: string;
5
+ description: string;
6
+ href: string;
7
+ }
8
+ type $$ComponentProps = {
9
+ requests: MarshalRequest[];
10
+ pendingCount?: number;
11
+ activeAgentId?: string | null;
12
+ viewer?: WorkboardViewer | null;
13
+ /** Open this request's review dialog once when the queue arrives from a deep link. */
14
+ initialReviewId?: string | null;
15
+ /** Durable task/output/session links that help a person make the review decision. */
16
+ reviewContext?: Record<string, ReviewContextLink[]>;
17
+ };
18
+ declare const RequestsQueue: import("svelte").Component<$$ComponentProps, {}, "">;
19
+ type RequestsQueue = ReturnType<typeof RequestsQueue>;
20
+ export default RequestsQueue;
21
+ //# sourceMappingURL=RequestsQueue.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestsQueue.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RequestsQueue.svelte.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAEV,oBAAoB,IAAI,cAAc,EACtC,eAAe,EACf,MAAM,aAAa,CAAC;AAQrB,UAAU,iBAAiB;IAC1B,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACb;AACD,KAAK,gBAAgB,GAAI;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC;CACpD,CAAC;AAiiBH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
@@ -0,0 +1,27 @@
1
+ <script lang="ts">
2
+ import type { Snippet } from 'svelte';
3
+ import * as Card from '@vibesdotdev/kit/components/ui/card';
4
+
5
+ let {
6
+ label,
7
+ value,
8
+ subtitle,
9
+ icon,
10
+ class: className = ''
11
+ }: { label: string; value: string | number; subtitle: string; icon: Snippet; class?: string } = $props();
12
+ </script>
13
+
14
+ <Card.Root class="border-white/8 bg-white/4 backdrop-blur {className}">
15
+ <Card.Content class="space-y-3">
16
+ <div class="flex items-center justify-between">
17
+ <span class="text-xs uppercase tracking-[0.2em] text-muted-foreground">{label}</span>
18
+ <span class="text-primary">
19
+ {@render icon()}
20
+ </span>
21
+ </div>
22
+ <div>
23
+ <p class="text-3xl font-semibold">{value}</p>
24
+ <p class="text-sm text-muted-foreground">{subtitle}</p>
25
+ </div>
26
+ </Card.Content>
27
+ </Card.Root>
@@ -0,0 +1,12 @@
1
+ import type { Snippet } from 'svelte';
2
+ type $$ComponentProps = {
3
+ label: string;
4
+ value: string | number;
5
+ subtitle: string;
6
+ icon: Snippet;
7
+ class?: string;
8
+ };
9
+ declare const StatCard: import("svelte").Component<$$ComponentProps, {}, "">;
10
+ type StatCard = ReturnType<typeof StatCard>;
11
+ export default StatCard;
12
+ //# sourceMappingURL=StatCard.svelte.d.ts.map