@vibesdotdev/workboard 0.0.0-stage → 1.0.0-rc.1

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,63 @@
1
+ import { definePromptManifestDescriptor } from '@vibesdotdev/ai-schemas';
2
+ export default definePromptManifestDescriptor({
3
+ id: 'workboard.marshal.system',
4
+ version: '1.0.0',
5
+ name: 'Marshal (setup concierge)',
6
+ description: 'Base Marshal system prompt for first-run setup on consumer surfaces.',
7
+ type: 'system',
8
+ category: 'chat',
9
+ tags: ['workboard', 'marshal'],
10
+ scope: 'builtin',
11
+ isPublic: false,
12
+ generator: 'static',
13
+ content: `You are Marshal, a friendly and knowledgeable platform concierge for the Vibes platform.
14
+
15
+ ## Your Role
16
+
17
+ You help users:
18
+ - Set up and configure their account
19
+ - Navigate the platform
20
+ - Understand features and capabilities
21
+ - Complete onboarding requirements
22
+ - Troubleshoot configuration issues
23
+
24
+ ## Personality
25
+
26
+ You are:
27
+ - Friendly and approachable, but professional
28
+ - Patient and helpful
29
+ - Concise - respect the user's time
30
+ - Proactive - suggest next steps
31
+ - Encouraging - celebrate progress
32
+
33
+ ## Guidelines
34
+
35
+ 1. **Be Conversational**: Use natural language, not technical jargon
36
+ 2. **Use Tools**: Use the runtime tool API for actions that need data or side effects
37
+ 3. **Track Progress**: Update users on what's complete and what's next
38
+ 4. **Stay Focused**: Guide users toward completing setup, don't get sidetracked
39
+ 5. **Explain Why**: When asking for configuration, explain why it matters
40
+
41
+ ## Available Tools
42
+
43
+ - **marshal**: Owner-backed delegation tool. Use \`action\` with one of:
44
+ - \`status\`: report whether authenticated delegation is available
45
+ - \`delegate\`: send a task to a named agent; pass \`context.agentId\`
46
+ - \`ask\`: send a question to a named agent; pass \`context.agentId\`
47
+ - **knowledge**: Unified knowledge base operations (search/read/update)
48
+ - **agent**: manage agent records via \`action\` (\`list\` / \`get\` / \`create\` / \`update\` / \`delete\`)
49
+ - **workspace-fs** (actions read, list, search, edit, write, delete) and **workspace-lock**: workspace filesystem operations
50
+ - **file-read / file-write / run-command / git / preview-url**: operate on the bound code-session workspace only. Never invent or override a session id; the execution context binds it and rejects mismatches.
51
+ - **session-scratchpad / session-todo**: capture working context and tasks
52
+ - **tool-help**: discover tool schemas and examples
53
+
54
+ ## Important
55
+
56
+ - Never make configuration changes without user confirmation
57
+ - Always explain what you're about to do before doing it
58
+ - If unsure, ask clarifying questions
59
+ - Respect user preferences for detail level
60
+ - Never emit fake tool markup like \`[TOOL_CALL]\` in plain text; invoke real tools directly
61
+ `
62
+ }, { owner: 'workboard' });
63
+ //# sourceMappingURL=system.prompt.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.prompt.descriptor.js","sourceRoot":"","sources":["../../../../src/marshal/agent/prompts/system.prompt.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,eAAe,8BAA8B,CAAC;IAC7C,EAAE,EAAE,0BAA0B;IAC9B,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,sEAAsE;IACnF,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;IAC9B,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDT;CACA,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Marshal System Prompt
3
+ *
4
+ * The system prompt that defines Marshal's personality and behavior.
5
+ */
6
+ import type { MarshalContext, MarshalSetupContext } from '../types.ts';
7
+ /**
8
+ * Base Marshal system prompt (the `workboard.marshal.system` prompts/manifest descriptor).
9
+ */
10
+ export declare const marshalSystemPrompt: string;
11
+ /**
12
+ * Canonical cloud/web Marshal system prompt.
13
+ *
14
+ * This is the prompt used by the runtime-discovered Marshal agent on Chat and
15
+ * the universal messenger dock. Unlike {@link marshalSystemPrompt}
16
+ * (which is oriented toward first-run setup on consumer surfaces), this prompt
17
+ * frames Marshal as a general-purpose assistant available on every page that can
18
+ * manage the user's data across the vibes apps, navigate the platform, and
19
+ * explain features.
20
+ *
21
+ * Wired through the Marshal `tools/agent/instance` descriptor's `promptTemplate`,
22
+ * which the native agent loop prepends as a trusted system message.
23
+ * Which tools actually resolve is decided by the runtime scope: in the cloud the
24
+ * `api-request` tool is registered (cross-app CRUD) while the consumer-only
25
+ * `fs-*` tools are not; on a consumer surface the reverse holds. Marshal is told
26
+ * to use whatever is available, so a single prompt adapts to both surfaces.
27
+ */
28
+ export declare const marshalCloudSystemPrompt: string;
29
+ /**
30
+ * Build a contextual prompt for Marshal from its prompts/manifest sections.
31
+ * Synchronous and runtime-free, so each section renders its own manifest.
32
+ */
33
+ export declare function buildMarshalPrompt(context: MarshalContext, setupContext?: MarshalSetupContext): string;
34
+ //# sourceMappingURL=system-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../../src/marshal/agent/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAiB,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAQtF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAiD,CAAC;AAElF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,QAAsD,CAAC;AAE5F;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,mBAAmB,GAChC,MAAM,CAoBR"}
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Marshal System Prompt
3
+ *
4
+ * The system prompt that defines Marshal's personality and behavior.
5
+ */
6
+ import { renderPromptManifest } from '@vibesdotdev/ai-schemas';
7
+ import marshalSystemPromptDescriptor from "./prompts/system.prompt.descriptor.js";
8
+ import marshalCloudSystemPromptDescriptor from "./prompts/cloud-system.prompt.descriptor.js";
9
+ import personalityPrompt from "./prompts/personality.prompt.descriptor.js";
10
+ import setupIssuePrompt from "./prompts/setup-issue.prompt.descriptor.js";
11
+ import setupWizardPrompt from "./prompts/setup-wizard.prompt.descriptor.js";
12
+ import surfacePrompt from "./prompts/surface.prompt.descriptor.js";
13
+ /**
14
+ * Base Marshal system prompt (the `workboard.marshal.system` prompts/manifest descriptor).
15
+ */
16
+ export const marshalSystemPrompt = marshalSystemPromptDescriptor.manifest.content;
17
+ /**
18
+ * Canonical cloud/web Marshal system prompt.
19
+ *
20
+ * This is the prompt used by the runtime-discovered Marshal agent on Chat and
21
+ * the universal messenger dock. Unlike {@link marshalSystemPrompt}
22
+ * (which is oriented toward first-run setup on consumer surfaces), this prompt
23
+ * frames Marshal as a general-purpose assistant available on every page that can
24
+ * manage the user's data across the vibes apps, navigate the platform, and
25
+ * explain features.
26
+ *
27
+ * Wired through the Marshal `tools/agent/instance` descriptor's `promptTemplate`,
28
+ * which the native agent loop prepends as a trusted system message.
29
+ * Which tools actually resolve is decided by the runtime scope: in the cloud the
30
+ * `api-request` tool is registered (cross-app CRUD) while the consumer-only
31
+ * `fs-*` tools are not; on a consumer surface the reverse holds. Marshal is told
32
+ * to use whatever is available, so a single prompt adapts to both surfaces.
33
+ */
34
+ export const marshalCloudSystemPrompt = marshalCloudSystemPromptDescriptor.manifest.content;
35
+ /**
36
+ * Build a contextual prompt for Marshal from its prompts/manifest sections.
37
+ * Synchronous and runtime-free, so each section renders its own manifest.
38
+ */
39
+ export function buildMarshalPrompt(context, setupContext) {
40
+ const sections = [marshalSystemPrompt];
41
+ // Add personality customization
42
+ if (context.marshalConfig) {
43
+ sections.push(buildPersonalitySection(context.marshalConfig));
44
+ }
45
+ // Add setup issue mode context (takes precedence over general setup wizard)
46
+ if (setupContext?.isSetupMode && setupContext.issue) {
47
+ sections.push(buildSetupIssueModeSection(setupContext));
48
+ }
49
+ else if (context.isSetupWizard) {
50
+ // Add general setup wizard context
51
+ sections.push(buildSetupWizardSection(context));
52
+ }
53
+ // Add surface-specific guidance
54
+ sections.push(buildSurfaceSection(context.surface, context.capabilities));
55
+ return sections.join('\n\n');
56
+ }
57
+ function buildPersonalitySection(config) {
58
+ return renderPromptManifest(personalityPrompt.manifest, {
59
+ name: config.name,
60
+ concise: config.personality === 'concise',
61
+ conversational: config.personality === 'conversational',
62
+ detailed: config.personality === 'detailed',
63
+ professional: config.voiceTone === 'professional',
64
+ friendly: config.voiceTone === 'friendly',
65
+ casual: config.voiceTone === 'casual',
66
+ customInstructions: config.customInstructions ?? ''
67
+ });
68
+ }
69
+ /** Setup issue mode (triggered from SetupBanner). */
70
+ function buildSetupIssueModeSection(setupContext) {
71
+ const { issue, pendingRequirements, progress } = setupContext;
72
+ const otherPending = pendingRequirements.filter((r) => r.requirementId !== issue?.requirementId);
73
+ const otherPendingLines = otherPending
74
+ .slice(0, 5)
75
+ .map((req) => `- ${req.severity === 'blocking' ? '[Required]' : '[Optional]'} ${req.label}`);
76
+ if (otherPending.length > 5)
77
+ otherPendingLines.push(`- ... and ${otherPending.length - 5} more`);
78
+ return renderPromptManifest(setupIssuePrompt.manifest, {
79
+ hasIssue: Boolean(issue),
80
+ issueId: issue?.requirementId ?? '',
81
+ issueLabel: issue?.label ?? '',
82
+ issueStatus: issue?.status ?? '',
83
+ issueSeverity: issue?.severity ?? '',
84
+ issueReason: issue?.reason ?? '',
85
+ issueManualRoute: issue?.manualRoute ?? '',
86
+ issueCliCommand: issue?.cliCommand ?? '',
87
+ otherPendingCount: otherPending.length,
88
+ otherPendingLines: otherPendingLines.join('\n'),
89
+ progress: Math.round(progress)
90
+ });
91
+ }
92
+ function buildSetupWizardSection(context) {
93
+ const { setupStatus } = context;
94
+ const incomplete = setupStatus.requirements.filter((r) => r.status !== 'complete');
95
+ const { counts } = setupStatus;
96
+ return renderPromptManifest(setupWizardPrompt.manifest, {
97
+ hasBlockingIssues: setupStatus.hasBlockingIssues,
98
+ remainingLines: incomplete
99
+ .map((req) => `- ${req.severity === 'blocking' ? '[REQUIRED]' : '[Optional]'} ${req.label}: ${req.reason}`)
100
+ .join('\n'),
101
+ hasNextStep: Boolean(setupStatus.nextStep),
102
+ nextStepLabel: setupStatus.nextStep?.label ?? '',
103
+ nextStepReason: setupStatus.nextStep?.reason ?? '',
104
+ complete: counts.complete,
105
+ incomplete: counts.incomplete,
106
+ missing: counts.missing
107
+ });
108
+ }
109
+ function buildSurfaceSection(surface, capabilities) {
110
+ const caps = [];
111
+ if (capabilities.canNavigate)
112
+ caps.push('navigation');
113
+ if (capabilities.canShowWidgets)
114
+ caps.push('widgets');
115
+ if (capabilities.canModifyConfig)
116
+ caps.push('configuration');
117
+ if (capabilities.canShowProgress)
118
+ caps.push('progress tracking');
119
+ if (capabilities.canAskQuestions)
120
+ caps.push('interactive questions');
121
+ return renderPromptManifest(surfacePrompt.manifest, {
122
+ surfaceName: surface.toUpperCase(),
123
+ web: surface === 'web',
124
+ tui: surface === 'tui',
125
+ cli: surface === 'cli',
126
+ bridge: surface === 'bridge',
127
+ capabilities: caps.join(', ')
128
+ });
129
+ }
130
+ //# sourceMappingURL=system-prompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../../src/marshal/agent/system-prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,6BAA6B,MAAM,uCAAuC,CAAC;AAClF,OAAO,kCAAkC,MAAM,6CAA6C,CAAC;AAC7F,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,gBAAgB,MAAM,4CAA4C,CAAC;AAC1E,OAAO,iBAAiB,MAAM,6CAA6C,CAAC;AAC5E,OAAO,aAAa,MAAM,wCAAwC,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,6BAA6B,CAAC,QAAQ,CAAC,OAAO,CAAC;AAElF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,kCAAkC,CAAC,QAAQ,CAAC,OAAO,CAAC;AAE5F;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CACjC,OAAuB,EACvB,YAAkC;IAElC,MAAM,QAA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D,IAAI,YAAY,CAAC,eAAe;QAAE,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACjE,IAAI,YAAY,CAAC,eAAe;QAAE,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrE,OAAO,oBAAoB,CAAC,aAAa,CAAC,QAAQ,EAAE;QACnD,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;QAClC,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,GAAG,EAAE,OAAO,KAAK,KAAK;QACtB,MAAM,EAAE,OAAO,KAAK,QAAQ;QAC5B,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;KAC7B,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { MarshalSurface } from './types.ts';
2
+ export declare const MARSHAL_LIVE_CAPABILITY_IDS: readonly ["user_messages", "plan_confirmations", "stimulus_routing", "svelte_applets", "code_sessions", "internal_operations"];
3
+ export type MarshalLiveCapabilityId = (typeof MARSHAL_LIVE_CAPABILITY_IDS)[number];
4
+ export type MarshalLiveCapabilityStatus = 'live' | 'partial' | 'contract' | 'gap';
5
+ export interface MarshalLiveCapabilityRoutes {
6
+ user_messages?: string;
7
+ plan_confirmations?: string;
8
+ stimulus_routing?: string;
9
+ svelte_applets?: string;
10
+ code_sessions?: string;
11
+ internal_operations?: string;
12
+ }
13
+ export interface MarshalLiveCapabilityFacts {
14
+ surface?: MarshalSurface;
15
+ routes?: MarshalLiveCapabilityRoutes;
16
+ hasWorkboardNotifications?: boolean;
17
+ hasWorkboardRequests?: boolean;
18
+ hasWorkboardTasks?: boolean;
19
+ hasRequestReview?: boolean;
20
+ hasArtifactSurface?: boolean;
21
+ hasCodeSessionSurface?: boolean;
22
+ /** agent/event-source descriptors + webhook ingress present */
23
+ hasStimulusRouter?: boolean;
24
+ /**
25
+ * True when inbound can wake a live agent (source-message → CHAT_GENERATION)
26
+ * and deployments can bind eventSources. Without this, stimulus is log-only.
27
+ */
28
+ hasStimulusLiveWake?: boolean;
29
+ /**
30
+ * True when agents can send on message sources (message-send tool and/or
31
+ * email tool on allowLists / registered).
32
+ */
33
+ hasStimulusOutboundTool?: boolean;
34
+ notificationCount?: number;
35
+ pendingRequestCount?: number;
36
+ activeTaskCount?: number;
37
+ artifactCount?: number;
38
+ componentArtifactCount?: number;
39
+ codeSessionCount?: number;
40
+ activeStimulusCount?: number;
41
+ configuredStimulusCount?: number;
42
+ internalScope?: boolean;
43
+ }
44
+ export interface MarshalLiveCapability {
45
+ id: MarshalLiveCapabilityId;
46
+ title: string;
47
+ status: MarshalLiveCapabilityStatus;
48
+ ownerPackage: string;
49
+ detail: string;
50
+ evidence: string[];
51
+ href?: string;
52
+ actionLabel: string;
53
+ }
54
+ export declare function resolveMarshalLiveCapabilities(facts: MarshalLiveCapabilityFacts): MarshalLiveCapability[];
55
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/marshal/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,2BAA2B,gIAO9B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AACnF,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;AAElF,MAAM,WAAW,2BAA2B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAA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+ export const MARSHAL_LIVE_CAPABILITY_IDS = [
2
+ 'user_messages',
3
+ 'plan_confirmations',
4
+ 'stimulus_routing',
5
+ 'svelte_applets',
6
+ 'code_sessions',
7
+ 'internal_operations'
8
+ ];
9
+ function countLabel(count, singular, plural = `${singular}s`) {
10
+ return `${count} ${count === 1 ? singular : plural}`;
11
+ }
12
+ function route(routes, id) {
13
+ return routes?.[id];
14
+ }
15
+ function nonNegative(value) {
16
+ return Math.max(0, value ?? 0);
17
+ }
18
+ export function resolveMarshalLiveCapabilities(facts) {
19
+ const routes = facts.routes;
20
+ const notificationCount = nonNegative(facts.notificationCount);
21
+ const pendingRequestCount = nonNegative(facts.pendingRequestCount);
22
+ const activeTaskCount = nonNegative(facts.activeTaskCount);
23
+ const artifactCount = nonNegative(facts.artifactCount);
24
+ const componentArtifactCount = nonNegative(facts.componentArtifactCount);
25
+ const codeSessionCount = nonNegative(facts.codeSessionCount);
26
+ const activeStimulusCount = nonNegative(facts.activeStimulusCount);
27
+ const configuredStimulusCount = nonNegative(facts.configuredStimulusCount);
28
+ const hasRequests = facts.hasWorkboardRequests === true;
29
+ const hasRequestReview = facts.hasRequestReview === true;
30
+ const hasNotifications = facts.hasWorkboardNotifications === true;
31
+ const hasStimulusRouter = facts.hasStimulusRouter === true;
32
+ const hasStimulusLiveWake = facts.hasStimulusLiveWake === true;
33
+ const hasStimulusOutboundTool = facts.hasStimulusOutboundTool === true;
34
+ const hasArtifactSurface = facts.hasArtifactSurface === true;
35
+ const hasCodeSessionSurface = facts.hasCodeSessionSurface === true;
36
+ return [
37
+ {
38
+ id: 'user_messages',
39
+ title: 'User messages',
40
+ status: hasNotifications ? 'live' : 'gap',
41
+ ownerPackage: '@vibesdotdev/workboard + @vibesdotdev/hq',
42
+ detail: hasNotifications
43
+ ? `Agents can post workboard notifications and surface artifacts; ${countLabel(notificationCount, 'message')} visible now.`
44
+ : 'No agent-to-user notification surface is registered for this Marshal scope.',
45
+ evidence: hasNotifications
46
+ ? ['workboard.notification endpoint', 'hq.surface notification schema']
47
+ : [],
48
+ href: route(routes, 'user_messages'),
49
+ actionLabel: 'Open messages'
50
+ },
51
+ {
52
+ id: 'plan_confirmations',
53
+ title: 'Plan confirmations',
54
+ status: hasRequests && hasRequestReview ? 'live' : hasRequests ? 'partial' : 'gap',
55
+ ownerPackage: '@vibesdotdev/workboard',
56
+ detail: hasRequests && hasRequestReview
57
+ ? `Structured approvals are reviewable; ${countLabel(pendingRequestCount, 'pending request')} waiting.`
58
+ : hasRequests
59
+ ? 'Requests can be created, but the review action is not wired for this surface.'
60
+ : 'No workboard request queue is registered for this Marshal scope.',
61
+ evidence: [
62
+ ...(hasRequests ? ['workboard.request endpoint'] : []),
63
+ ...(hasRequestReview ? ['workboard.request review action'] : [])
64
+ ],
65
+ href: route(routes, 'plan_confirmations'),
66
+ actionLabel: 'Review approvals'
67
+ },
68
+ {
69
+ id: 'stimulus_routing',
70
+ title: 'Event routing',
71
+ status: hasStimulusRouter &&
72
+ hasStimulusLiveWake &&
73
+ hasStimulusOutboundTool &&
74
+ configuredStimulusCount > 0
75
+ ? 'live'
76
+ : hasStimulusRouter && (hasStimulusLiveWake || hasStimulusOutboundTool)
77
+ ? 'partial'
78
+ : hasStimulusRouter
79
+ ? 'contract'
80
+ : 'gap',
81
+ ownerPackage: '@vibesdotdev/agents + tools + integrations',
82
+ detail: !hasStimulusRouter
83
+ ? 'No message, webhook, schedule, or integration router is registered for this scope.'
84
+ : hasStimulusLiveWake && hasStimulusOutboundTool
85
+ ? `${countLabel(activeStimulusCount, 'active source')} feeding ${countLabel(configuredStimulusCount, 'configured source')}; inbound can wake agents and message-send is registered.`
86
+ : hasStimulusLiveWake
87
+ ? `${countLabel(configuredStimulusCount, 'configured source')}; inbound wake wired, outbound message-send tool not yet evidenced.`
88
+ : hasStimulusOutboundTool
89
+ ? `${countLabel(configuredStimulusCount, 'configured source')}; outbound tool present, inbound live wake not evidenced.`
90
+ : `${countLabel(configuredStimulusCount, 'configured source')} catalog-only — no live wake or outbound tool evidence.`,
91
+ evidence: [
92
+ ...(hasStimulusRouter ? ['agent/event-source descriptors', 'webhook ingress'] : []),
93
+ ...(hasStimulusLiveWake
94
+ ? ['agents/stimulus match', 'source-message wake → chat.generation.run']
95
+ : []),
96
+ ...(hasStimulusOutboundTool ? ['tools/tool message-send'] : [])
97
+ ],
98
+ href: route(routes, 'stimulus_routing'),
99
+ actionLabel: 'Manage sources'
100
+ },
101
+ {
102
+ id: 'svelte_applets',
103
+ title: 'Svelte applets',
104
+ status: componentArtifactCount > 0 ? 'live' : hasArtifactSurface ? 'contract' : 'gap',
105
+ ownerPackage: '@vibesdotdev/hq + @vibesdotdev/platform',
106
+ detail: componentArtifactCount > 0
107
+ ? `${countLabel(componentArtifactCount, 'component-backed artifact')} visible from ${countLabel(artifactCount, 'artifact')}; HQ can render registry-backed or inline browser-runtime applets.`
108
+ : hasArtifactSurface
109
+ ? 'Surface artifacts can now carry component/app references; no component-backed output is visible yet.'
110
+ : 'No HQ artifact surface is registered for applets.',
111
+ evidence: [
112
+ ...(hasArtifactSurface ? ['hq surface artifact schema'] : []),
113
+ ...(componentArtifactCount > 0
114
+ ? ['componentRef artifact projection', 'platform component registry']
115
+ : [])
116
+ ],
117
+ href: route(routes, 'svelte_applets'),
118
+ actionLabel: 'Review applets'
119
+ },
120
+ {
121
+ id: 'code_sessions',
122
+ title: 'Code sessions',
123
+ status: codeSessionCount > 0 ? 'live' : hasCodeSessionSurface ? 'partial' : 'gap',
124
+ ownerPackage: '@vibesdotdev/agent-execution/code-session',
125
+ detail: hasCodeSessionSurface
126
+ ? `${countLabel(codeSessionCount, 'code workspace')} linked to live agents; ${countLabel(activeTaskCount, 'active task')} in the queue.`
127
+ : 'No code-session surface is registered for this Marshal scope.',
128
+ evidence: hasCodeSessionSurface ? ['agent-code-session route', 'fleet runtime target'] : [],
129
+ href: route(routes, 'code_sessions'),
130
+ actionLabel: 'Open sessions'
131
+ },
132
+ {
133
+ id: 'internal_operations',
134
+ title: 'Internal Marshal powers',
135
+ status: facts.internalScope ? 'live' : 'partial',
136
+ ownerPackage: 'vibes org scope',
137
+ detail: facts.internalScope
138
+ ? 'Vibes org scope can expose admin-only Marshal operations and internal fleet controls.'
139
+ : 'Internal operations are hidden until the current user is in the vibes org scope.',
140
+ evidence: facts.internalScope ? ['internal scope gate'] : ['public scope gate'],
141
+ href: route(routes, 'internal_operations'),
142
+ actionLabel: 'Open internal'
143
+ }
144
+ ];
145
+ }
146
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/marshal/capabilities.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,gBAAgB;IAChB,eAAe;IACf,qBAAqB;CACZ,CAAC;AAyDX,SAAS,UAAU,CAAC,KAAa,EAAE,QAAgB,EAAE,MAAM,GAAG,GAAG,QAAQ,GAAG;IAC3E,OAAO,GAAG,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AACtD,CAAC;AAED,SAAS,KAAK,CACb,MAA+C,EAC/C,EAA2B;IAE3B,OAAO,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,WAAW,CAAC,KAAyB;IAC7C,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC7C,KAAiC;IAEjC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,MAAM,iBAAiB,GAAG,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC/D,MAAM,mBAAmB,GAAG,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACnE,MAAM,eAAe,GA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C,SAAS;YAChD,YAAY,EAAE,iBAAiB;YAC/B,MAAM,EAAE,KAAK,CAAC,aAAa;gBAC1B,CAAC,CAAC,uFAAuF;gBACzF,CAAC,CAAC,kFAAkF;YACrF,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC;YAC/E,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,qBAAqB,CAAC;YAC1C,WAAW,EAAE,eAAe;SAC5B;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CLICommandAssetDescriptor } from '@vibesdotdev/kernel/schemas/asset';
2
+ declare const descriptor: CLICommandAssetDescriptor;
3
+ export default descriptor;
4
+ //# sourceMappingURL=fleet.marshal-presence.heartbeat.command.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet.marshal-presence.heartbeat.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,QAAA,MAAM,UAAU,EAAE,yBAejB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,18 @@
1
+ const descriptor = {
2
+ kind: 'cli/command',
3
+ id: 'fleet.marshal-presence.heartbeat',
4
+ name: 'heartbeat',
5
+ description: 'Publish one authenticated Marshal presence heartbeat to HQ',
6
+ group: 'fleet.marshal-presence',
7
+ arguments: [],
8
+ options: [
9
+ { flags: '--agent-id <id>', description: 'Presence agent id (default: marshal.live)' },
10
+ { flags: '--machine-id <id>', description: 'Stable machine id' },
11
+ { flags: '--machine-name <name>', description: 'Machine display name (default: Marshal)' }
12
+ ],
13
+ surfaces: ['cli'],
14
+ hardware: ['consumer'],
15
+ enabled: true
16
+ };
17
+ export default descriptor;
18
+ //# sourceMappingURL=fleet.marshal-presence.heartbeat.command.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet.marshal-presence.heartbeat.command.descriptor.js","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,kCAAkC;IACtC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,4DAA4D;IACzE,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,EAAE;IACb,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,2CAA2C,EAAE;QACtF,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,mBAAmB,EAAE;QAChE,EAAE,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,yCAAyC,EAAE;KAC1F;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as z from 'zod/v4';
2
+ import type { CommandContext } from '@vibesdotdev/cli';
3
+ declare const MarshalPresenceHeartbeatArgsSchema: z.ZodObject<{}, z.core.$loose>;
4
+ export type MarshalPresenceHeartbeatArgs = z.infer<typeof MarshalPresenceHeartbeatArgsSchema>;
5
+ declare const MarshalPresenceHeartbeatOptionsSchema: z.ZodObject<{
6
+ agentId: z.ZodOptional<z.ZodString>;
7
+ machineId: z.ZodOptional<z.ZodString>;
8
+ machineName: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$loose>;
10
+ export type MarshalPresenceHeartbeatOptions = z.infer<typeof MarshalPresenceHeartbeatOptionsSchema>;
11
+ export declare class MarshalPresenceHeartbeatCommand {
12
+ execute(_args: MarshalPresenceHeartbeatArgs, rawOptions: MarshalPresenceHeartbeatOptions, context: CommandContext): Promise<void>;
13
+ }
14
+ declare const _default: import("@vibesdotdev/kernel").RuntimeImplementationWrapper<typeof MarshalPresenceHeartbeatCommand>;
15
+ export default _default;
16
+ //# sourceMappingURL=fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet.marshal-presence.heartbeat.command.impl.consumer.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,kCAAkC,gCAA6B,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,QAAA,MAAM,qCAAqC;;;;iBAI3B,CAAC;AAEjB,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAcpG,qBAAa,+BAA+B;IACrC,OAAO,CACZ,KAAK,EAAE,4BAA4B,EACnC,UAAU,EAAE,+BAA+B,EAC3C,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC;CAmBhB;;AAED,wBAIG"}
@@ -0,0 +1,39 @@
1
+ import * as z from 'zod/v4';
2
+ import { getPathRoots } from '@vibesdotdev/paths';
3
+ import { createRuntimeImplementation } from '@vibesdotdev/kernel';
4
+ const MarshalPresenceHeartbeatArgsSchema = z.object({}).passthrough();
5
+ const MarshalPresenceHeartbeatOptionsSchema = z.object({
6
+ agentId: z.string().trim().min(1).optional(),
7
+ machineId: z.string().trim().min(1).optional(),
8
+ machineName: z.string().trim().min(1).optional()
9
+ }).passthrough();
10
+ function resolvedOption(runtime, optionValue, envKey, fallback) {
11
+ if (optionValue !== undefined && optionValue.length > 0)
12
+ return optionValue;
13
+ const envValue = runtime.getEnv(envKey)?.trim();
14
+ if (envValue !== undefined && envValue.length > 0)
15
+ return envValue;
16
+ return fallback;
17
+ }
18
+ export class MarshalPresenceHeartbeatCommand {
19
+ async execute(_args, rawOptions, context) {
20
+ const options = MarshalPresenceHeartbeatOptionsSchema.parse(rawOptions ?? {});
21
+ // Dynamic import: marshal depends on agents/presence which cycle back to
22
+ // platform through chat/ai-svelte. fleets/cli plugin loads marshal only
23
+ // when this command runs — isolated optional surface, no package edge.
24
+ const { marshalPresenceHeartbeatDependencies, publishMarshalPresenceHeartbeat } = await import("../presence/index.js");
25
+ const receipt = await publishMarshalPresenceHeartbeat({
26
+ agentId: resolvedOption(context.runtime, options.agentId, 'VIBES_AGENT_ID', 'marshal.live'),
27
+ machineId: resolvedOption(context.runtime, options.machineId, 'VIBES_MACHINE_ID', 'marshal-live'),
28
+ machineName: resolvedOption(context.runtime, options.machineName, 'VIBES_MACHINE_NAME', 'Marshal'),
29
+ vibesHome: getPathRoots(context.runtime).vibesHome
30
+ }, marshalPresenceHeartbeatDependencies(context.runtime));
31
+ process.stdout.write(`Marshal presence heartbeat OK (HTTP ${receipt.status}, expires ${receipt.body.expiresInSeconds}s)\n`);
32
+ }
33
+ }
34
+ export default createRuntimeImplementation({
35
+ kind: 'cli/command',
36
+ id: 'fleet.marshal-presence.heartbeat',
37
+ implementation: MarshalPresenceHeartbeatCommand
38
+ });
39
+ //# sourceMappingURL=fleet.marshal-presence.heartbeat.command.impl.consumer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fleet.marshal-presence.heartbeat.command.impl.consumer.js","sourceRoot":"","sources":["../../../src/marshal/cli/fleet.marshal-presence.heartbeat.command.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAElE,MAAM,kCAAkC,GAA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cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,cAAc,CAAC;YAC3F,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE,kBAAkB,EAAE,cAAc,CAAC;YACjG,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,oBAAoB,EAAE,SAAS,CAAC;YAClG,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,SAAS;SAClD,EACD,oCAAoC,CAAC,OAAO,CAAC,OAAO,CAAC,CACrD,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,KAAK,CACnB,uCAAuC,OAAO,CAAC,MAAM,aAAa,OAAO,CAAC,IAAI,CAAC,gBAAgB,MAAM,CACrG,CAAC;IACH,CAAC;CACD;AAED,eAAe,2BAA2B,CAAC;IAC1C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,kCAAkC;IACtC,cAAc,EAAE,+BAA+B;CAC/C,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const marshalPresenceCliPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export default marshalPresenceCliPlugin;
3
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/marshal/cli/plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,6CAInC,CAAC;AACH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
2
+ import heartbeat from "./fleet.marshal-presence.heartbeat.command.descriptor.js";
3
+ export const marshalPresenceCliPlugin = createRuntimePlugin({
4
+ id: '@vibesdotdev/workboard/marshal/cli', name: 'Marshal Presence CLI',
5
+ dependencies: ['cli'], descriptors: [heartbeat],
6
+ loaders: [loader(heartbeat.id, { kind: 'cli/command', scope: { hardware: ['consumer'] } }, () => import("./fleet.marshal-presence.heartbeat.command.impl.consumer.js"))]
7
+ });
8
+ export default marshalPresenceCliPlugin;
9
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/marshal/cli/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,SAAS,MAAM,0DAA0D,CAAC;AACjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;IAC3D,EAAE,EAAE,oCAAoC,EAAE,IAAI,EAAE,sBAAsB;IACtE,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,SAAS,CAAC;IAC/C,OAAO,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAAC,CAAC;CACxK,CAAC,CAAC;AACH,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Marshal Client Helper
3
+ *
4
+ * Provides the handed-runtime accessor for the canonical Marshal runtime client.
5
+ */
6
+ import type { RuntimeRef } from '@vibesdotdev/kernel';
7
+ import type { MarshalClient, MarshalRuntimeClient } from './marshal-client.runtime.ts';
8
+ /**
9
+ * Get the canonical Marshal runtime client.
10
+ *
11
+ * This is the preferred way to access Marshal functionality from consumers.
12
+ * The client is lazily loaded and cached by the runtime.
13
+ *
14
+ * @example
15
+ * const marshal = await getVibesMarshalClient(runtime);
16
+ * const config = await marshal.config.get();
17
+ * const progress = await marshal.progress.get();
18
+ */
19
+ export declare function getVibesMarshalClient(runtime: RuntimeRef): Promise<MarshalClient>;
20
+ /**
21
+ * Type guard for MarshalRuntimeClient interface.
22
+ */
23
+ export declare function isMarshalClient<T>(client: T): client is T & MarshalRuntimeClient;
24
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/marshal/client/helper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEvF;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAEvF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,oBAAoB,CAUhF"}