@engenty/wizards-runtime 0.13.0 → 0.14.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 (313) hide show
  1. package/apps/runtime/dist/agents/architect.js +8 -7
  2. package/apps/runtime/dist/agents/goose-connections.js +82 -0
  3. package/apps/runtime/dist/agents/space-agent.js +9 -2
  4. package/apps/runtime/dist/agents/studio-assistant.js +101 -67
  5. package/apps/runtime/dist/agents/website.js +1 -1
  6. package/apps/runtime/dist/app.js +17 -1
  7. package/apps/runtime/dist/assistant/knows.js +6 -5
  8. package/apps/runtime/dist/authoring/guide.js +25 -5
  9. package/apps/runtime/dist/broker/account.js +166 -0
  10. package/apps/runtime/dist/broker/call.js +417 -0
  11. package/apps/runtime/dist/broker/caller.js +10 -0
  12. package/apps/runtime/dist/broker/grant.js +152 -0
  13. package/apps/runtime/dist/broker/host.js +51 -0
  14. package/apps/runtime/dist/broker/index.js +8 -0
  15. package/apps/runtime/dist/broker/kept.js +31 -0
  16. package/apps/runtime/dist/broker/log.js +240 -0
  17. package/apps/runtime/dist/broker/registry.js +9 -0
  18. package/apps/runtime/dist/broker/rwx.js +367 -0
  19. package/apps/runtime/dist/broker/send.js +189 -0
  20. package/apps/runtime/dist/connectors/builtin.js +1 -1
  21. package/apps/runtime/dist/connectors/external.js +38 -37
  22. package/apps/runtime/dist/connectors/index.js +30 -91
  23. package/apps/runtime/dist/connectors/mail.js +0 -8
  24. package/apps/runtime/dist/connectors/person-sign-ins.js +73 -0
  25. package/apps/runtime/dist/connectors/plugin-connections.js +65 -92
  26. package/apps/runtime/dist/connectors/smtp.js +1 -1
  27. package/apps/runtime/dist/connectors/space-connections.js +436 -0
  28. package/apps/runtime/dist/db/adopt.js +3 -3
  29. package/apps/runtime/dist/db/client.js +9 -0
  30. package/apps/runtime/dist/db/live-triggers.js +65 -23
  31. package/apps/runtime/dist/db/migrations/tenant/0027_work_chats.sql +52 -0
  32. package/apps/runtime/dist/db/migrations/tenant/0028_chat_approvals.sql +17 -0
  33. package/apps/runtime/dist/db/migrations/tenant/0029_work_chats_live.sql +49 -0
  34. package/apps/runtime/dist/db/migrations/tenant/0031_space.sql +624 -0
  35. package/apps/runtime/dist/db/migrations/tenant/0032_rwx_rule.sql +18 -0
  36. package/apps/runtime/dist/db/migrations/tenant/0033_broker_log.sql +23 -0
  37. package/apps/runtime/dist/db/migrations/tenant/0034_space_connection.sql +35 -0
  38. package/apps/runtime/dist/db/migrations/tenant/0035_run_grant.sql +1 -0
  39. package/apps/runtime/dist/db/migrations/tenant/0036_approval_held_for.sql +1 -0
  40. package/apps/runtime/dist/db/migrations/tenant/0037_ways_out.sql +5 -0
  41. package/apps/runtime/dist/db/migrations/tenant/0038_heard.sql +11 -0
  42. package/apps/runtime/dist/db/migrations/tenant/0039_members_studio.sql +1 -0
  43. package/apps/runtime/dist/db/migrations/tenant/meta/0027_snapshot.json +383 -155
  44. package/apps/runtime/dist/db/migrations/tenant/meta/0028_snapshot.json +4468 -0
  45. package/apps/runtime/dist/db/migrations/tenant/meta/0029_snapshot.json +4475 -0
  46. package/apps/runtime/dist/db/migrations/tenant/meta/0030_snapshot.json +4629 -0
  47. package/apps/runtime/dist/db/migrations/tenant/meta/0031_snapshot.json +4629 -0
  48. package/apps/runtime/dist/db/migrations/tenant/meta/0032_snapshot.json +4757 -0
  49. package/apps/runtime/dist/db/migrations/tenant/meta/0033_snapshot.json +5039 -0
  50. package/apps/runtime/dist/db/migrations/tenant/meta/0034_snapshot.json +5022 -0
  51. package/apps/runtime/dist/db/migrations/tenant/meta/0035_snapshot.json +5029 -0
  52. package/apps/runtime/dist/db/migrations/tenant/meta/0036_snapshot.json +5037 -0
  53. package/apps/runtime/dist/db/migrations/tenant/meta/0037_snapshot.json +5076 -0
  54. package/apps/runtime/dist/db/migrations/tenant/meta/0038_snapshot.json +5145 -0
  55. package/apps/runtime/dist/db/migrations/tenant/meta/0039_snapshot.json +5153 -0
  56. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +86 -2
  57. package/apps/runtime/dist/db/schema.js +295 -72
  58. package/apps/runtime/dist/docs/dev/architecture.md +215 -0
  59. package/apps/runtime/dist/docs/dev/broker.md +298 -0
  60. package/apps/runtime/dist/docs/dev/index.md +5 -1
  61. package/apps/runtime/dist/docs/dev/integration/index.md +2 -0
  62. package/apps/runtime/dist/docs/dev/meta.json +3 -0
  63. package/apps/runtime/dist/docs/dev/plugins/connections.md +8 -5
  64. package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
  65. package/apps/runtime/dist/docs/dev/plugins/examples.md +1 -0
  66. package/apps/runtime/dist/docs/dev/plugins/index.md +2 -2
  67. package/apps/runtime/dist/docs/dev/plugins/reference.md +3 -2
  68. package/apps/runtime/dist/docs/dev/plugins/space.md +16 -6
  69. package/apps/runtime/dist/docs/dev/plugins/studio.md +2 -2
  70. package/apps/runtime/dist/docs/dev/plugins/tools.md +0 -1
  71. package/apps/runtime/dist/docs/dev/skills.md +16 -9
  72. package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +40 -5
  73. package/apps/runtime/dist/docs/dev/wizard-format/lists-and-connections.md +17 -2
  74. package/apps/runtime/dist/docs/dev/wizard-format/templates.md +2 -0
  75. package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +22 -2
  76. package/apps/runtime/dist/docs/user-guide/capabilities.md +132 -0
  77. package/apps/runtime/dist/docs/user-guide/cloud-sync.md +2 -0
  78. package/apps/runtime/dist/docs/user-guide/command-line.md +1 -0
  79. package/apps/runtime/dist/docs/user-guide/connectors.md +63 -7
  80. package/apps/runtime/dist/docs/user-guide/index.md +10 -1
  81. package/apps/runtime/dist/docs/user-guide/meta.json +6 -1
  82. package/apps/runtime/dist/docs/user-guide/protocol.md +80 -0
  83. package/apps/runtime/dist/docs/user-guide/skills.md +8 -4
  84. package/apps/runtime/dist/docs/user-guide/space.md +5 -4
  85. package/apps/runtime/dist/docs/user-guide/together.md +16 -2
  86. package/apps/runtime/dist/docs/user-guide/troubleshooting.md +2 -2
  87. package/apps/runtime/dist/docs/user-guide/work-mode.md +128 -0
  88. package/apps/runtime/dist/engenty/connections-external/build-connector.js +2 -5
  89. package/apps/runtime/dist/engenty/connections-external/importer/classify.js +72 -0
  90. package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +1 -1
  91. package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +3 -2
  92. package/apps/runtime/dist/engenty/connections-sdk/types.js +2 -0
  93. package/apps/runtime/dist/engenty/connections-slack/connector.js +2 -1
  94. package/apps/runtime/dist/engine/resources.js +43 -12
  95. package/apps/runtime/dist/engine/runner.js +75 -23
  96. package/apps/runtime/dist/engine/steps.js +30 -12
  97. package/apps/runtime/dist/engine/template.js +18 -1
  98. package/apps/runtime/dist/env.js +9 -4
  99. package/apps/runtime/dist/index.js +18 -2
  100. package/apps/runtime/dist/live/feed.js +2 -2
  101. package/apps/runtime/dist/live/origin.js +2 -2
  102. package/apps/runtime/dist/live/views.js +51 -26
  103. package/apps/runtime/dist/manage.js +7 -0
  104. package/apps/runtime/dist/mcp/flow-app.js +1 -1
  105. package/apps/runtime/dist/mcp/tools.js +75 -34
  106. package/apps/runtime/dist/models.js +1 -1
  107. package/apps/runtime/dist/motion-graphics/project.js +8 -8
  108. package/apps/runtime/dist/motion-graphics/tools.js +1 -1
  109. package/apps/runtime/dist/plugins/events.js +2 -2
  110. package/apps/runtime/dist/plugins/jobs.js +4 -1
  111. package/apps/runtime/dist/plugins/loader.js +2 -2
  112. package/apps/runtime/dist/prompts/architect.md +3 -3
  113. package/apps/runtime/dist/prompts/authoring.md +46 -12
  114. package/apps/runtime/dist/prompts/goose.md +7 -7
  115. package/apps/runtime/dist/prompts/mcp.md +6 -6
  116. package/apps/runtime/dist/prompts/services.md +4 -4
  117. package/apps/runtime/dist/prompts/step.md +2 -2
  118. package/apps/runtime/dist/prompts/tools.md +39 -10
  119. package/apps/runtime/dist/routes/api.js +31 -20
  120. package/apps/runtime/dist/routes/broker.js +316 -0
  121. package/apps/runtime/dist/routes/connections.js +71 -0
  122. package/apps/runtime/dist/routes/delivery.js +25 -0
  123. package/apps/runtime/dist/routes/discover.js +17 -0
  124. package/apps/runtime/dist/routes/live.js +11 -1
  125. package/apps/runtime/dist/routes/person.js +4 -1
  126. package/apps/runtime/dist/routes/plugins.js +3 -1
  127. package/apps/runtime/dist/routes/rules.js +26 -0
  128. package/apps/runtime/dist/routes/runs.js +54 -33
  129. package/apps/runtime/dist/routes/skills.js +6 -6
  130. package/apps/runtime/dist/routes/studio.js +153 -144
  131. package/apps/runtime/dist/routes/work.js +199 -0
  132. package/apps/runtime/dist/sandbox/index.js +27 -0
  133. package/apps/runtime/dist/services/access.js +38 -17
  134. package/apps/runtime/dist/services/api.js +38 -13
  135. package/apps/runtime/dist/services/architect.js +3 -3
  136. package/apps/runtime/dist/services/assistant-chats.js +9 -1
  137. package/apps/runtime/dist/services/brand.js +12 -12
  138. package/apps/runtime/dist/services/broker-bell.js +69 -0
  139. package/apps/runtime/dist/services/broker-notify.js +127 -0
  140. package/apps/runtime/dist/services/client-steps.js +79 -0
  141. package/apps/runtime/dist/services/cloud.js +42 -42
  142. package/apps/runtime/dist/services/command-risk.js +51 -0
  143. package/apps/runtime/dist/services/discover.js +85 -0
  144. package/apps/runtime/dist/services/knowledge-model.js +13 -13
  145. package/apps/runtime/dist/services/knowledge.js +117 -80
  146. package/apps/runtime/dist/services/manage-reports.js +74 -7
  147. package/apps/runtime/dist/services/members-studio.js +165 -0
  148. package/apps/runtime/dist/services/onboarding.js +22 -22
  149. package/apps/runtime/dist/services/package-file.js +1 -1
  150. package/apps/runtime/dist/services/package.js +22 -22
  151. package/apps/runtime/dist/services/pages.js +7 -7
  152. package/apps/runtime/dist/services/runs.js +4 -3
  153. package/apps/runtime/dist/services/seen.js +55 -0
  154. package/apps/runtime/dist/services/shares.js +23 -13
  155. package/apps/runtime/dist/services/site.js +23 -23
  156. package/apps/runtime/dist/services/skills-registry.js +15 -15
  157. package/apps/runtime/dist/services/skills.js +44 -44
  158. package/apps/runtime/dist/services/space-categories.js +35 -35
  159. package/apps/runtime/dist/services/space-data.js +130 -111
  160. package/apps/runtime/dist/services/{project-files.js → space-files.js} +84 -75
  161. package/apps/runtime/dist/services/{project-index.js → space-index.js} +116 -73
  162. package/apps/runtime/dist/services/space-origin.js +19 -11
  163. package/apps/runtime/dist/services/spaces.js +478 -612
  164. package/apps/runtime/dist/services/synced-spaces.js +668 -0
  165. package/apps/runtime/dist/services/themes.js +15 -15
  166. package/apps/runtime/dist/services/widgets.js +6 -6
  167. package/apps/runtime/dist/services/wizards.js +112 -38
  168. package/apps/runtime/dist/services/work-ai.js +257 -0
  169. package/apps/runtime/dist/services/work-approvals.js +104 -0
  170. package/apps/runtime/dist/services/work-chats.js +908 -0
  171. package/apps/runtime/dist/services/work-connections.js +90 -0
  172. package/apps/runtime/dist/services/work-files.js +85 -0
  173. package/apps/runtime/dist/services/work-mastra.js +73 -0
  174. package/apps/runtime/dist/services/work-sandbox.js +42 -0
  175. package/apps/runtime/dist/sharing/files.js +14 -4
  176. package/apps/runtime/dist/sharing/index.js +40 -39
  177. package/apps/runtime/dist/sharing/jobs.js +67 -17
  178. package/apps/runtime/dist/sharing/targets/connector.js +10 -6
  179. package/apps/runtime/dist/sharing/targets/email.js +10 -8
  180. package/apps/runtime/dist/sharing/targets/slack.js +10 -8
  181. package/apps/runtime/dist/sharing/targets/storage.js +6 -4
  182. package/apps/runtime/dist/store/index.js +14 -3
  183. package/apps/runtime/dist/store/shared-lists.js +4 -2
  184. package/apps/runtime/dist/sync/apply.js +2 -2
  185. package/apps/runtime/dist/sync/client.js +113 -113
  186. package/apps/runtime/dist/sync/hub.js +41 -41
  187. package/apps/runtime/dist/sync/log.js +12 -12
  188. package/apps/runtime/dist/sync/records.js +118 -120
  189. package/apps/runtime/dist/texts.js +38 -2
  190. package/apps/runtime/dist/tools/connections.js +112 -0
  191. package/apps/runtime/dist/tools/connector.js +157 -67
  192. package/apps/runtime/dist/tools/index.js +28 -13
  193. package/apps/runtime/dist/tools/mail.js +40 -11
  194. package/apps/runtime/dist/tools/pages.js +11 -5
  195. package/apps/runtime/dist/tools/plugin.js +43 -7
  196. package/apps/runtime/dist/tools/skills.js +1 -1
  197. package/apps/runtime/dist/tools/{project.js → space.js} +30 -25
  198. package/apps/runtime/dist/tools/store.js +3 -2
  199. package/apps/runtime/dist/widgets/step.js +10 -10
  200. package/apps/web/dist/assets/AboutDialog-DgfeipUc.js +1 -0
  201. package/apps/web/dist/assets/CapabilitiesPage-BoYJvgIu.js +2 -0
  202. package/apps/web/dist/assets/{ChangelogDialog-SwyId00t.js → ChangelogDialog-Duab4zTO.js} +1 -1
  203. package/apps/web/dist/assets/{CodeEditor-BwZsk5Al.js → CodeEditor-nxoOt8ge.js} +1 -1
  204. package/apps/web/dist/assets/EditorPage-ZrgGpYMC.js +3 -0
  205. package/apps/web/dist/assets/{FlowPreview-DtSpjVTl.js → FlowPreview-aMfwcPul.js} +1 -1
  206. package/apps/web/dist/assets/LangSwitch-DpD0inR4.js +1 -0
  207. package/apps/web/dist/assets/Marketplace-CpzD9pNQ.js +2 -0
  208. package/apps/web/dist/assets/NewWizardChannels-IB18afWN.js +1 -0
  209. package/apps/web/dist/assets/NewWizardPage-rYbcmPGG.js +7 -0
  210. package/apps/web/dist/assets/OnboardingPage-ztHT01ah.js +1 -0
  211. package/apps/web/dist/assets/PreviewPane-DviWTLfi.js +9 -0
  212. package/apps/web/dist/assets/PublicRunner-C2geZhhM.js +1 -0
  213. package/apps/web/dist/assets/ReadOnly-kSb_Kbdm.js +1 -0
  214. package/apps/web/dist/assets/SettingsPage-DM2h8N0J.js +2 -0
  215. package/apps/web/dist/assets/SetupPage-Wfyz6xH4.js +1 -0
  216. package/apps/web/dist/assets/SharePage-CyWQorWB.js +1 -0
  217. package/apps/web/dist/assets/SkillEditor-CqQMg2MC.js +1 -0
  218. package/apps/web/dist/assets/Skills-CnhpgoOA.js +9 -0
  219. package/apps/web/dist/assets/SpacePage-q4Bk3N7k.js +2 -0
  220. package/apps/web/dist/assets/UpdateCheck-C2CE6CC3.js +2 -0
  221. package/apps/web/dist/assets/changelog-B6hN1Cp7.js +1 -0
  222. package/apps/web/dist/assets/circle-alert-C8Ma-bPY.js +1 -0
  223. package/apps/web/dist/assets/circle-check-Bu9Z3mlJ.js +1 -0
  224. package/apps/web/dist/assets/code-editor-CfTGqOpp.js +2 -0
  225. package/apps/web/dist/assets/{code-xml-TwKzzMtA.js → code-xml-B4kLFZSj.js} +1 -1
  226. package/apps/web/dist/assets/connection-sign-in-CIiv0t2p.js +1 -0
  227. package/apps/web/dist/assets/esm-Xwn4GtqG.js +7 -0
  228. package/apps/web/dist/assets/{eye-Brd-xPUJ.js → eye-BpoKpIdt.js} +1 -1
  229. package/apps/web/dist/assets/host-BrP-ENHg.css +1 -0
  230. package/apps/web/dist/assets/host-DJ7-p0Sc.js +118 -0
  231. package/apps/web/dist/assets/i18n-BJ7Ld6O6.js +55 -0
  232. package/apps/web/dist/assets/index-D18DvnxX.css +1 -0
  233. package/apps/web/dist/assets/index-D2akynS-.js +10 -0
  234. package/apps/web/dist/assets/logo-BpnjXTRy.js +1 -0
  235. package/apps/web/dist/assets/oss-credits-IdX5bc71.js +1 -0
  236. package/apps/web/dist/assets/{phone-DhkHteoJ.js → phone-Ctvf-Am-.js} +1 -1
  237. package/apps/web/dist/assets/read-aloud-Da_RSm2S.js +1 -0
  238. package/apps/web/dist/assets/{runners-G-XYaDgR.js → runners-CyIvJIHr.js} +1 -1
  239. package/apps/web/dist/assets/scroll-text-ChrjRu9Y.js +1 -0
  240. package/apps/web/dist/assets/session-SXPtTWRK.js +2 -0
  241. package/apps/web/dist/assets/theme-CbTcTFWy.js +11 -0
  242. package/apps/web/dist/assets/ui-Uqnx1UpK.js +82 -0
  243. package/apps/web/dist/assets/{upload-BYZTwJTD.js → upload-BchUnQGV.js} +1 -1
  244. package/apps/web/dist/assets/{useMutation-D0QP_k2-.js → useMutation-DEkZhp5c.js} +1 -1
  245. package/apps/web/dist/assets/{volume-2-CVHoxdGM.js → volume-2-CU_oy81Z.js} +1 -1
  246. package/apps/web/dist/assets/with-selector-CoMyWBAX.js +1 -0
  247. package/apps/web/dist/index.html +17 -10
  248. package/apps/web/dist/mcp/flow.html +119 -64
  249. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +20 -10
  250. package/node_modules/@engenty/wizards-shared/dist/assistant.d.ts +6 -1
  251. package/node_modules/@engenty/wizards-shared/dist/assistant.js +6 -1
  252. package/node_modules/@engenty/wizards-shared/dist/connectors.d.ts +236 -2
  253. package/node_modules/@engenty/wizards-shared/dist/connectors.js +52 -2
  254. package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +150 -8
  255. package/node_modules/@engenty/wizards-shared/dist/definition.js +46 -11
  256. package/node_modules/@engenty/wizards-shared/dist/discover.d.ts +21 -0
  257. package/node_modules/@engenty/wizards-shared/dist/discover.js +1 -0
  258. package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +26 -2
  259. package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +26 -2
  260. package/node_modules/@engenty/wizards-shared/dist/fit.js +1 -1
  261. package/node_modules/@engenty/wizards-shared/dist/json-schema.d.ts +1 -1
  262. package/node_modules/@engenty/wizards-shared/dist/json-schema.js +1 -1
  263. package/node_modules/@engenty/wizards-shared/dist/live.d.ts +2 -2
  264. package/node_modules/@engenty/wizards-shared/dist/live.js +1 -1
  265. package/node_modules/@engenty/wizards-shared/dist/marketplace.js +3 -1
  266. package/node_modules/@engenty/wizards-shared/dist/run.d.ts +54 -6
  267. package/node_modules/@engenty/wizards-shared/dist/run.js +85 -0
  268. package/node_modules/@engenty/wizards-shared/dist/runner-texts.d.ts +15 -1
  269. package/node_modules/@engenty/wizards-shared/dist/runner-texts.js +14 -0
  270. package/node_modules/@engenty/wizards-shared/dist/rwx.d.ts +42 -0
  271. package/node_modules/@engenty/wizards-shared/dist/rwx.js +29 -0
  272. package/node_modules/@engenty/wizards-shared/dist/skills.d.ts +1 -1
  273. package/node_modules/@engenty/wizards-shared/dist/space-data.d.ts +2 -2
  274. package/node_modules/@engenty/wizards-shared/dist/{projects.d.ts → spaces.d.ts} +39 -15
  275. package/node_modules/@engenty/wizards-shared/dist/{projects.js → spaces.js} +16 -9
  276. package/node_modules/@engenty/wizards-shared/dist/store.d.ts +7 -2
  277. package/node_modules/@engenty/wizards-shared/dist/surface.d.ts +35 -4
  278. package/node_modules/@engenty/wizards-shared/dist/surface.js +121 -3
  279. package/node_modules/@engenty/wizards-shared/dist/sync.d.ts +1 -1
  280. package/node_modules/@engenty/wizards-shared/dist/theme-look.js +1 -1
  281. package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +2 -2
  282. package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +3 -3
  283. package/package.json +4 -1
  284. package/plugin/.claude-plugin/plugin.json +1 -1
  285. package/plugin/plugin.json +1 -1
  286. package/plugin/skills/build-wizard/SKILL.md +1 -1
  287. package/apps/runtime/dist/services/projects.js +0 -473
  288. package/apps/web/dist/assets/AboutDialog-B-JxkELB.js +0 -1
  289. package/apps/web/dist/assets/EditorPage-DQ_2FOzI.js +0 -3
  290. package/apps/web/dist/assets/Marketplace-DoH4YO3D.js +0 -2
  291. package/apps/web/dist/assets/NewWizardChannels-Tgoexgj4.js +0 -1
  292. package/apps/web/dist/assets/NewWizardPage-B24AF482.js +0 -7
  293. package/apps/web/dist/assets/OnboardingPage-BEvq4slJ.js +0 -1
  294. package/apps/web/dist/assets/PreviewPane-B_v7Y8R7.js +0 -10
  295. package/apps/web/dist/assets/ProjectPage-ClRuhFJo.js +0 -10
  296. package/apps/web/dist/assets/PublicRunner-MicrpVsv.js +0 -1
  297. package/apps/web/dist/assets/ReadOnly-BXjv-MSv.js +0 -1
  298. package/apps/web/dist/assets/SettingsPage-DY8O1r43.js +0 -2
  299. package/apps/web/dist/assets/SetupPage-BOVkVpMu.js +0 -1
  300. package/apps/web/dist/assets/SharePage-DXGzJSnR.js +0 -1
  301. package/apps/web/dist/assets/SkillEditor-BzzTDeaU.js +0 -1
  302. package/apps/web/dist/assets/changelog-BLdS-0Bj.js +0 -1
  303. package/apps/web/dist/assets/esm-BdxDT9Km.js +0 -7
  304. package/apps/web/dist/assets/i18n-8-Sw11tB.js +0 -55
  305. package/apps/web/dist/assets/index-OsdQFHmh.js +0 -49
  306. package/apps/web/dist/assets/index-QPipX5Fi.css +0 -1
  307. package/apps/web/dist/assets/lock-C0uxcOlq.js +0 -1
  308. package/apps/web/dist/assets/logo-CGNoptDg.js +0 -1
  309. package/apps/web/dist/assets/oss-credits-DpRWUPjD.js +0 -1
  310. package/apps/web/dist/assets/session-BWI-KENJ.js +0 -2
  311. package/apps/web/dist/assets/theme-D7krsx0_.js +0 -11
  312. package/apps/web/dist/assets/ui-DSXG3f49.js +0 -83
  313. /package/apps/runtime/dist/db/migrations/tenant/{0027_space_skill.sql → 0030_space_skill.sql} +0 -0
@@ -69,7 +69,7 @@ export interface PluginRoute {
69
69
  */
70
70
  handler(request: PluginRequest): unknown | Promise<unknown>;
71
71
  }
72
- /** A space: what all its wizards share. The runtime's own tables call it a project. */
72
+ /** A space: what all its wizards share. */
73
73
  export interface PluginSpace {
74
74
  id: string;
75
75
  /** What the studio's switcher calls it. */
@@ -82,11 +82,6 @@ export interface PluginStepContext {
82
82
  tenantId: string;
83
83
  /** The space of the step's wizard. */
84
84
  space: PluginSpace;
85
- /** The same as `space`, by its older name. */
86
- project: {
87
- id: string;
88
- name: string;
89
- };
90
85
  wizard: {
91
86
  id: string;
92
87
  title: string;
@@ -120,7 +115,7 @@ export interface PluginRunEvent {
120
115
  wizard: {
121
116
  id: string;
122
117
  title: string;
123
- projectId: string;
118
+ spaceId: string;
124
119
  };
125
120
  /** What the person answered, by field id. */
126
121
  values: Record<string, unknown>;
@@ -227,7 +222,7 @@ export interface PluginIndexEntry {
227
222
  link?: string;
228
223
  }
229
224
  export interface PluginIndex {
230
- /** Puts the entry in; `project_search` finds it from then on. */
225
+ /** Puts the entry in; `space_search` finds it from then on. */
231
226
  put(entry: PluginIndexEntry): Promise<void>;
232
227
  /** Takes one key out, or without a key every entry of the plugin in the space. */
233
228
  remove(space: string, key?: string): Promise<void>;
@@ -374,7 +369,7 @@ export interface PluginSpaceItem {
374
369
  }
375
370
  /**
376
371
  * Knowledge of a space, written by a plugin: pages, tables and files under keys of its own, with
377
- * their categories. Every write is indexed: `project_search` finds it a moment later.
372
+ * their categories. Every write is indexed: `space_search` finds it a moment later.
378
373
  */
379
374
  export interface PluginSpaceData {
380
375
  /**
@@ -454,6 +449,21 @@ export interface PluginAssistantTool<S extends z.ZodType = z.ZodType> {
454
449
  * (`registerAssistantCard`) draws it. It is sent as it is: keep such a result small.
455
450
  */
456
451
  card?: boolean;
452
+ /**
453
+ * What a call does, for the AI of a Work chat (docs/plans/work-chats.md): `read` only reads,
454
+ * `space` changes the space's own data, `outside` reaches past the space (sends, books,
455
+ * cancels with someone, publishes, deletes on a connected service). An `outside` call waits
456
+ * for a person's approval before it runs.
457
+ */
458
+ risk?: "read" | "space" | "outside";
459
+ /**
460
+ * What a call does, as a Work chat's step line says it: `{ de: "Mail senden", en: "Send a
461
+ * mail" }`. Without it the line shows the plugin's name and the tool's.
462
+ */
463
+ label?: {
464
+ de: string;
465
+ en: string;
466
+ };
457
467
  execute(input: z.infer<S>, ctx: PluginAssistantContext): unknown | Promise<unknown>;
458
468
  }
459
469
  /** A page of the web, as `web.read` gives it. */
@@ -1086,7 +1096,7 @@ export interface PluginServerApi {
1086
1096
  * per tenant at a time; a turn that throws counts as run.
1087
1097
  */
1088
1098
  every(name: string, everyMs: number, handler: (tick: PluginTick) => void | Promise<void>): void;
1089
- /** The space's search index, which `project_search` asks. */
1099
+ /** The space's search index, which `space_search` asks. */
1090
1100
  index: PluginIndex;
1091
1101
  /** Knowledge of a space: pages, tables and files the plugin writes, with their categories. */
1092
1102
  spaceData: PluginSpaceData;
@@ -34,12 +34,17 @@ export declare const browserToolSchema: z.ZodObject<{
34
34
  parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
35
35
  }, z.core.$strip>;
36
36
  export type BrowserTool = z.infer<typeof browserToolSchema>;
37
+ /**
38
+ * The browser's tool that shows the person a change Goose is about to make through one of their
39
+ * connections and waits for their yes; the runtime calls it, never the model.
40
+ */
41
+ export declare const CONFIRM_ACTION_TOOL = "confirm_action";
37
42
  /** The browser waits no longer for a tool than this; the runtime neither. */
38
43
  export declare const BROWSER_TOOL_TIMEOUT_MS = 60000;
39
44
  /** What the browser sends to start a turn (AG-UI's `RunAgentInput`, cut to what we use). */
40
45
  export declare const assistantTurnSchema: z.ZodObject<{
41
46
  message: z.ZodString;
42
- projectId: z.ZodOptional<z.ZodString>;
47
+ spaceId: z.ZodOptional<z.ZodString>;
43
48
  page: z.ZodOptional<z.ZodObject<{
44
49
  route: z.ZodString;
45
50
  title: z.ZodOptional<z.ZodString>;
@@ -41,13 +41,18 @@ export const browserToolSchema = z.object({
41
41
  description: z.string().max(2000),
42
42
  parameters: z.record(z.string(), z.unknown()),
43
43
  });
44
+ /**
45
+ * The browser's tool that shows the person a change Goose is about to make through one of their
46
+ * connections and waits for their yes; the runtime calls it, never the model.
47
+ */
48
+ export const CONFIRM_ACTION_TOOL = "confirm_action";
44
49
  /** The browser waits no longer for a tool than this; the runtime neither. */
45
50
  export const BROWSER_TOOL_TIMEOUT_MS = 60_000;
46
51
  /** What the browser sends to start a turn (AG-UI's `RunAgentInput`, cut to what we use). */
47
52
  export const assistantTurnSchema = z.object({
48
53
  message: z.string().min(1).max(8000),
49
54
  /** The space the page shows; its tools need it. */
50
- projectId: z.string().max(80).optional(),
55
+ spaceId: z.string().max(80).optional(),
51
56
  page: assistantPageSchema.optional(),
52
57
  tools: z.array(browserToolSchema).max(40).default([]),
53
58
  /** Developer mode: the turn also sends its prompt and each step (`prompt`, `step`). */
@@ -1,5 +1,6 @@
1
- /** Imported connectors as the studio shows them: a service of a project, with its actions. */
2
- export type ActionGroup = "read" | "write" | "destructive";
1
+ /** Imported connectors as the studio shows them: a service of a space, with its actions. */
2
+ /** What a connector action does; `send` is a mail, a message or a post to other people. */
3
+ export type ActionGroup = "read" | "write" | "send" | "destructive";
3
4
  export interface ConnectorActionView {
4
5
  id: string;
5
6
  summary: string;
@@ -75,3 +76,236 @@ export interface ImportRequest {
75
76
  oauthClientId?: string;
76
77
  oauthClientSecret?: string;
77
78
  }
79
+ /** How a connection signs in: once as the space (a key, an app token, a team login), or each person themselves. */
80
+ export declare const CONNECTION_SIGN_INS: readonly ["space", "person"];
81
+ export type ConnectionSignIn = (typeof CONNECTION_SIGN_INS)[number];
82
+ /** Who may use a connection: the space's admins, its members, or everyone, guests at a wizard's link too. */
83
+ export declare const CONNECTION_AUDIENCES: readonly ["admins", "members", "all"];
84
+ export type ConnectionAudience = (typeof CONNECTION_AUDIENCES)[number];
85
+ /** What the broker's admins hear of (docs/plans/broker.md, "Notifications"); decided in the runtime's broker/log.ts. */
86
+ export declare const CRITICAL_KINDS: readonly ["refused_write", "outside_audience", "host_not_in_grant", "limit_reached", "sign_in_failed", "first_use", "rule_changed"];
87
+ export type CriticalKind = (typeof CRITICAL_KINDS)[number];
88
+ /**
89
+ * Why the broker did not run a call (the runtime's broker/call.ts `Refusal`), as the log's
90
+ * `result` and „Was darf …?“ name it. The Protokoll page has words for each one.
91
+ */
92
+ export declare const BROKER_REFUSALS: readonly ["not_connected", "no_action", "not_in_grant", "denied", "declined", "nobody", "needs_approval", "ai_step_writes", "not_allowed_recipient", "run_limit", "day_limit"];
93
+ export type BrokerRefusal = (typeof BROKER_REFUSALS)[number];
94
+ /** A person of the organization, as Fähigkeiten › Protokoll names them and „Was darf …?“ offers them. */
95
+ export interface ProtocolPerson {
96
+ id: string;
97
+ name: string;
98
+ role: "owner" | "admin" | "member";
99
+ }
100
+ /** An action of a connection, as „Was darf …?“ offers it. */
101
+ export interface BrokerActionChoice {
102
+ id: string;
103
+ name: string;
104
+ kind: ConnectionActionKind;
105
+ }
106
+ /** What „Was darf …?“ picks from (`GET /api/studio/spaces/:id/broker/choices`). */
107
+ export interface ProtocolChoices {
108
+ people: ProtocolPerson[];
109
+ connections: {
110
+ id: string;
111
+ name: string;
112
+ connector: {
113
+ id: string;
114
+ name: string;
115
+ } | null;
116
+ audience: "admins" | "members" | "all";
117
+ signIn: "space" | "person";
118
+ actions: BrokerActionChoice[];
119
+ }[];
120
+ }
121
+ /** One line of the broker's log as the Protokoll page reads it (`GET …/broker/log`). */
122
+ export interface ProtocolLine {
123
+ id: string;
124
+ at: string;
125
+ durationMs: number;
126
+ who: {
127
+ kind: string;
128
+ id: string | null;
129
+ /** A person, an admin, or the person Goose works for, by name. */
130
+ name: string | null;
131
+ /** A fixed step: whom its run is held for. */
132
+ for?: {
133
+ kind: string;
134
+ id: string | null;
135
+ name: string | null;
136
+ };
137
+ };
138
+ runId: string | null;
139
+ stepId: string | null;
140
+ chatId: string | null;
141
+ wizardId: string | null;
142
+ connectionId: string;
143
+ actionId: string;
144
+ kind: string;
145
+ input: {
146
+ fields?: Record<string, number>;
147
+ sample?: string | null;
148
+ size?: number;
149
+ } | null;
150
+ outcome: string;
151
+ rule: string | null;
152
+ reason: string | null;
153
+ result: string | null;
154
+ resultSize: number | null;
155
+ critical: boolean;
156
+ criticalKind: string | null;
157
+ connectionName: string | null;
158
+ connectorName: string | null;
159
+ actionName: string | null;
160
+ wizardName: string | null;
161
+ runMode: string | null;
162
+ chatTitle: string | null;
163
+ }
164
+ /** A page of the log; `next` loads the one after it. */
165
+ export interface ProtocolPage {
166
+ lines: ProtocolLine[];
167
+ next: string | null;
168
+ }
169
+ /** One line with what its run was allowed (`GET …/broker/log/:line`). */
170
+ export interface ProtocolLineDetail {
171
+ line: ProtocolLine;
172
+ run: {
173
+ id: string;
174
+ wizardId: string;
175
+ mode: string;
176
+ status: string;
177
+ /** Null: a run from before grants were kept. */
178
+ grant: {
179
+ actions: string[] | null;
180
+ hosts: string[];
181
+ } | null;
182
+ } | null;
183
+ }
184
+ /** „Was darf …?“'s answer (`GET …/broker/ask`). */
185
+ export interface BrokerAnswer {
186
+ who: {
187
+ kind: string;
188
+ for?: {
189
+ kind: string;
190
+ };
191
+ admin?: boolean;
192
+ };
193
+ connection: {
194
+ id: string;
195
+ name: string;
196
+ connector: string;
197
+ };
198
+ action: {
199
+ id: string;
200
+ kind: ConnectionActionKind;
201
+ known: boolean;
202
+ };
203
+ outcome: ConnectionOutcome;
204
+ rule: string;
205
+ reason: string;
206
+ refused?: BrokerRefusal;
207
+ admins?: true;
208
+ }
209
+ /** What an action does, as the rules see it. */
210
+ export declare const CONNECTION_ACTION_KINDS: readonly ["read", "write", "destructive", "send"];
211
+ export type ConnectionActionKind = (typeof CONNECTION_ACTION_KINDS)[number];
212
+ /** A rule's outcome: Erlaubt, Mit Freigabe, Nie. */
213
+ export declare const CONNECTION_OUTCOMES: readonly ["allow", "ask", "deny"];
214
+ export type ConnectionOutcome = (typeof CONNECTION_OUTCOMES)[number];
215
+ export type ConnectionRules = Record<ConnectionActionKind, ConnectionOutcome>;
216
+ /** What a connection starts with: reading runs, a change or a mail waits for approval, deleting never. */
217
+ export declare const DEFAULT_CONNECTION_RULES: ConnectionRules;
218
+ export declare const CONNECTION_LIMITS: {
219
+ /** Characters of a connection's name. */
220
+ name: number;
221
+ /** Connections one space may hold. */
222
+ perSpace: number;
223
+ };
224
+ /** A connection of a space as the studio lists it; never a secret. */
225
+ export interface SpaceConnectionView {
226
+ id: string;
227
+ spaceId: string;
228
+ connectorId: string;
229
+ /** The connector behind it, where this runtime knows it. */
230
+ connector: {
231
+ id: string;
232
+ name: string;
233
+ auth: "oauth2" | "api_key" | "browser";
234
+ /** What the connector is for, in its own words. */
235
+ description?: string;
236
+ /** An `api_key` connector: what is typed to sign in (as the space, or each person). */
237
+ fields?: ConnectorKeyField[];
238
+ } | null;
239
+ name: string;
240
+ signIn: ConnectionSignIn;
241
+ audience: ConnectionAudience;
242
+ rules: ConnectionRules;
243
+ /** The connector's actions it is made for; empty: every action. */
244
+ actions: string[];
245
+ /** The plugin that set it up, where one did. */
246
+ plugin: string | null;
247
+ /** A `space` sign-in: the account as the provider names it; null until an admin signed in. */
248
+ account: {
249
+ label: string;
250
+ signedInAt: string;
251
+ } | null;
252
+ /** A `person` sign-in: the asking person's own; null until they signed in. */
253
+ mySignIn: {
254
+ label: string;
255
+ signedInAt: string;
256
+ } | null;
257
+ setUpBy: string | null;
258
+ /** Who set it up, by name where the organization still knows them. */
259
+ setUpByName?: string | null;
260
+ setUpAt: string;
261
+ lastUsedAt: string | null;
262
+ /** A `person` sign-in: how many people signed in; never who. */
263
+ signedIn: number;
264
+ }
265
+ /** A field an `api_key` connector asks for when someone signs in. */
266
+ export interface ConnectorKeyField {
267
+ key: string;
268
+ label: string;
269
+ placeholder?: string;
270
+ required?: boolean;
271
+ secret?: boolean;
272
+ }
273
+ /**
274
+ * A connection as a person's menu › „Verbindungen“ lists it: in a space of theirs, within their
275
+ * audience. Their own sign-in only, never anyone else's, never a secret.
276
+ */
277
+ export interface PersonConnectionView {
278
+ id: string;
279
+ name: string;
280
+ connectorId: string;
281
+ connector: {
282
+ id: string;
283
+ name: string;
284
+ auth: "oauth2" | "api_key" | "browser";
285
+ /** An `api_key` connector: what the person types to sign in. */
286
+ fields?: ConnectorKeyField[];
287
+ } | null;
288
+ signIn: ConnectionSignIn;
289
+ audience: ConnectionAudience;
290
+ /** A `person` sign-in: this person's own; null until they signed in. */
291
+ mySignIn: {
292
+ label: string;
293
+ signedInAt: string;
294
+ } | null;
295
+ /** A `space` sign-in: the account the admins signed in with; null until they did. */
296
+ account: {
297
+ label: string;
298
+ signedInAt: string;
299
+ } | null;
300
+ /** Who set it up, by name where the organization still knows them. */
301
+ setUpBy: string | null;
302
+ setUpAt: string;
303
+ }
304
+ /** The person's menu › „Verbindungen“: per space they belong to, the connections they may use. */
305
+ export interface PersonSignIns {
306
+ spaces: {
307
+ id: string;
308
+ name: string;
309
+ connections: PersonConnectionView[];
310
+ }[];
311
+ }
@@ -1,2 +1,52 @@
1
- /** Imported connectors as the studio shows them: a service of a project, with its actions. */
2
- export {};
1
+ /** Imported connectors as the studio shows them: a service of a space, with its actions. */
2
+ // --- connections of a space (docs/plans/capabilities.md, "Connections") ---------------------
3
+ // A connection belongs to the space: its admins set it up and choose how it signs in. The runtime
4
+ // decides calls by these words in apps/runtime/src/broker/call.ts; the studio will draw them.
5
+ /** How a connection signs in: once as the space (a key, an app token, a team login), or each person themselves. */
6
+ export const CONNECTION_SIGN_INS = ["space", "person"];
7
+ /** Who may use a connection: the space's admins, its members, or everyone, guests at a wizard's link too. */
8
+ export const CONNECTION_AUDIENCES = ["admins", "members", "all"];
9
+ /** What the broker's admins hear of (docs/plans/broker.md, "Notifications"); decided in the runtime's broker/log.ts. */
10
+ export const CRITICAL_KINDS = [
11
+ "refused_write",
12
+ "outside_audience",
13
+ "host_not_in_grant",
14
+ "limit_reached",
15
+ "sign_in_failed",
16
+ "first_use",
17
+ "rule_changed",
18
+ ];
19
+ /**
20
+ * Why the broker did not run a call (the runtime's broker/call.ts `Refusal`), as the log's
21
+ * `result` and „Was darf …?“ name it. The Protokoll page has words for each one.
22
+ */
23
+ export const BROKER_REFUSALS = [
24
+ "not_connected",
25
+ "no_action",
26
+ "not_in_grant",
27
+ "denied",
28
+ "declined",
29
+ "nobody",
30
+ "needs_approval",
31
+ "ai_step_writes",
32
+ "not_allowed_recipient",
33
+ "run_limit",
34
+ "day_limit",
35
+ ];
36
+ /** What an action does, as the rules see it. */
37
+ export const CONNECTION_ACTION_KINDS = ["read", "write", "destructive", "send"];
38
+ /** A rule's outcome: Erlaubt, Mit Freigabe, Nie. */
39
+ export const CONNECTION_OUTCOMES = ["allow", "ask", "deny"];
40
+ /** What a connection starts with: reading runs, a change or a mail waits for approval, deleting never. */
41
+ export const DEFAULT_CONNECTION_RULES = {
42
+ read: "allow",
43
+ write: "ask",
44
+ destructive: "deny",
45
+ send: "ask",
46
+ };
47
+ export const CONNECTION_LIMITS = {
48
+ /** Characters of a connection's name. */
49
+ name: 80,
50
+ /** Connections one space may hold. */
51
+ perSpace: 200,
52
+ };