@engenty/wizards-runtime 0.13.0 → 0.14.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.
- package/apps/runtime/dist/agents/architect.js +8 -7
- package/apps/runtime/dist/agents/goose-connections.js +82 -0
- package/apps/runtime/dist/agents/space-agent.js +9 -2
- package/apps/runtime/dist/agents/studio-assistant.js +101 -67
- package/apps/runtime/dist/agents/website.js +1 -1
- package/apps/runtime/dist/app.js +17 -1
- package/apps/runtime/dist/assistant/knows.js +6 -5
- package/apps/runtime/dist/authoring/guide.js +25 -5
- package/apps/runtime/dist/broker/account.js +166 -0
- package/apps/runtime/dist/broker/call.js +417 -0
- package/apps/runtime/dist/broker/caller.js +10 -0
- package/apps/runtime/dist/broker/grant.js +152 -0
- package/apps/runtime/dist/broker/host.js +51 -0
- package/apps/runtime/dist/broker/index.js +8 -0
- package/apps/runtime/dist/broker/kept.js +31 -0
- package/apps/runtime/dist/broker/log.js +240 -0
- package/apps/runtime/dist/broker/registry.js +9 -0
- package/apps/runtime/dist/broker/rwx.js +367 -0
- package/apps/runtime/dist/broker/send.js +189 -0
- package/apps/runtime/dist/connectors/builtin.js +1 -1
- package/apps/runtime/dist/connectors/external.js +38 -37
- package/apps/runtime/dist/connectors/index.js +30 -91
- package/apps/runtime/dist/connectors/mail.js +0 -8
- package/apps/runtime/dist/connectors/person-sign-ins.js +73 -0
- package/apps/runtime/dist/connectors/plugin-connections.js +65 -92
- package/apps/runtime/dist/connectors/smtp.js +1 -1
- package/apps/runtime/dist/connectors/space-connections.js +436 -0
- package/apps/runtime/dist/db/adopt.js +3 -3
- package/apps/runtime/dist/db/client.js +26 -0
- package/apps/runtime/dist/db/live-triggers.js +65 -23
- package/apps/runtime/dist/db/migrations/tenant/0027_work_chats.sql +52 -0
- package/apps/runtime/dist/db/migrations/tenant/0028_chat_approvals.sql +17 -0
- package/apps/runtime/dist/db/migrations/tenant/0029_work_chats_live.sql +49 -0
- package/apps/runtime/dist/db/migrations/tenant/{0027_space_skill.sql → 0030_space_skill.sql} +8 -8
- package/apps/runtime/dist/db/migrations/tenant/0031_space.sql +624 -0
- package/apps/runtime/dist/db/migrations/tenant/0032_rwx_rule.sql +18 -0
- package/apps/runtime/dist/db/migrations/tenant/0033_broker_log.sql +23 -0
- package/apps/runtime/dist/db/migrations/tenant/0034_space_connection.sql +35 -0
- package/apps/runtime/dist/db/migrations/tenant/0035_run_grant.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0036_approval_held_for.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0037_ways_out.sql +5 -0
- package/apps/runtime/dist/db/migrations/tenant/0038_heard.sql +11 -0
- package/apps/runtime/dist/db/migrations/tenant/0039_members_studio.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0027_snapshot.json +383 -155
- package/apps/runtime/dist/db/migrations/tenant/meta/0028_snapshot.json +4468 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0029_snapshot.json +4475 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0030_snapshot.json +4629 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0031_snapshot.json +4629 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0032_snapshot.json +4757 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0033_snapshot.json +5039 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0034_snapshot.json +5022 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0035_snapshot.json +5029 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0036_snapshot.json +5037 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0037_snapshot.json +5076 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0038_snapshot.json +5145 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0039_snapshot.json +5153 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +86 -2
- package/apps/runtime/dist/db/schema.js +295 -72
- package/apps/runtime/dist/docs/dev/architecture.md +215 -0
- package/apps/runtime/dist/docs/dev/broker.md +298 -0
- package/apps/runtime/dist/docs/dev/index.md +5 -1
- package/apps/runtime/dist/docs/dev/integration/index.md +2 -0
- package/apps/runtime/dist/docs/dev/meta.json +3 -0
- package/apps/runtime/dist/docs/dev/plugins/connections.md +8 -5
- package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/examples.md +1 -0
- package/apps/runtime/dist/docs/dev/plugins/index.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/reference.md +3 -2
- package/apps/runtime/dist/docs/dev/plugins/space.md +16 -6
- package/apps/runtime/dist/docs/dev/plugins/studio.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/tools.md +0 -1
- package/apps/runtime/dist/docs/dev/skills.md +16 -9
- package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +40 -5
- package/apps/runtime/dist/docs/dev/wizard-format/lists-and-connections.md +17 -2
- package/apps/runtime/dist/docs/dev/wizard-format/templates.md +2 -0
- package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +22 -2
- package/apps/runtime/dist/docs/user-guide/capabilities.md +132 -0
- package/apps/runtime/dist/docs/user-guide/cloud-sync.md +2 -0
- package/apps/runtime/dist/docs/user-guide/command-line.md +1 -0
- package/apps/runtime/dist/docs/user-guide/connectors.md +63 -7
- package/apps/runtime/dist/docs/user-guide/index.md +10 -1
- package/apps/runtime/dist/docs/user-guide/meta.json +6 -1
- package/apps/runtime/dist/docs/user-guide/protocol.md +80 -0
- package/apps/runtime/dist/docs/user-guide/skills.md +8 -4
- package/apps/runtime/dist/docs/user-guide/space.md +5 -4
- package/apps/runtime/dist/docs/user-guide/together.md +16 -2
- package/apps/runtime/dist/docs/user-guide/troubleshooting.md +2 -2
- package/apps/runtime/dist/docs/user-guide/work-mode.md +128 -0
- package/apps/runtime/dist/engenty/connections-external/build-connector.js +2 -5
- package/apps/runtime/dist/engenty/connections-external/importer/classify.js +72 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +1 -1
- package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +3 -2
- package/apps/runtime/dist/engenty/connections-sdk/types.js +2 -0
- package/apps/runtime/dist/engenty/connections-slack/connector.js +2 -1
- package/apps/runtime/dist/engine/resources.js +43 -12
- package/apps/runtime/dist/engine/runner.js +75 -23
- package/apps/runtime/dist/engine/steps.js +30 -12
- package/apps/runtime/dist/engine/template.js +18 -1
- package/apps/runtime/dist/env.js +9 -4
- package/apps/runtime/dist/index.js +18 -2
- package/apps/runtime/dist/live/feed.js +2 -2
- package/apps/runtime/dist/live/origin.js +2 -2
- package/apps/runtime/dist/live/views.js +51 -26
- package/apps/runtime/dist/manage.js +7 -0
- package/apps/runtime/dist/mcp/flow-app.js +1 -1
- package/apps/runtime/dist/mcp/tools.js +75 -34
- package/apps/runtime/dist/models.js +1 -1
- package/apps/runtime/dist/motion-graphics/project.js +8 -8
- package/apps/runtime/dist/motion-graphics/tools.js +1 -1
- package/apps/runtime/dist/plugins/events.js +2 -2
- package/apps/runtime/dist/plugins/jobs.js +4 -1
- package/apps/runtime/dist/plugins/loader.js +2 -2
- package/apps/runtime/dist/prompts/architect.md +3 -3
- package/apps/runtime/dist/prompts/authoring.md +46 -12
- package/apps/runtime/dist/prompts/goose.md +7 -7
- package/apps/runtime/dist/prompts/mcp.md +6 -6
- package/apps/runtime/dist/prompts/services.md +4 -4
- package/apps/runtime/dist/prompts/step.md +2 -2
- package/apps/runtime/dist/prompts/tools.md +39 -10
- package/apps/runtime/dist/routes/api.js +31 -20
- package/apps/runtime/dist/routes/broker.js +316 -0
- package/apps/runtime/dist/routes/connections.js +71 -0
- package/apps/runtime/dist/routes/delivery.js +25 -0
- package/apps/runtime/dist/routes/discover.js +17 -0
- package/apps/runtime/dist/routes/live.js +11 -1
- package/apps/runtime/dist/routes/person.js +4 -1
- package/apps/runtime/dist/routes/plugins.js +3 -1
- package/apps/runtime/dist/routes/rules.js +26 -0
- package/apps/runtime/dist/routes/runs.js +54 -33
- package/apps/runtime/dist/routes/skills.js +6 -6
- package/apps/runtime/dist/routes/studio.js +153 -144
- package/apps/runtime/dist/routes/work.js +199 -0
- package/apps/runtime/dist/sandbox/index.js +27 -0
- package/apps/runtime/dist/services/access.js +38 -17
- package/apps/runtime/dist/services/api.js +38 -13
- package/apps/runtime/dist/services/architect.js +3 -3
- package/apps/runtime/dist/services/assistant-chats.js +9 -1
- package/apps/runtime/dist/services/brand.js +12 -12
- package/apps/runtime/dist/services/broker-bell.js +69 -0
- package/apps/runtime/dist/services/broker-notify.js +127 -0
- package/apps/runtime/dist/services/client-steps.js +79 -0
- package/apps/runtime/dist/services/cloud.js +42 -42
- package/apps/runtime/dist/services/command-risk.js +51 -0
- package/apps/runtime/dist/services/discover.js +85 -0
- package/apps/runtime/dist/services/knowledge-model.js +13 -13
- package/apps/runtime/dist/services/knowledge.js +117 -80
- package/apps/runtime/dist/services/manage-reports.js +74 -7
- package/apps/runtime/dist/services/members-studio.js +165 -0
- package/apps/runtime/dist/services/onboarding.js +22 -22
- package/apps/runtime/dist/services/package-file.js +1 -1
- package/apps/runtime/dist/services/package.js +22 -22
- package/apps/runtime/dist/services/pages.js +7 -7
- package/apps/runtime/dist/services/runs.js +4 -3
- package/apps/runtime/dist/services/seen.js +55 -0
- package/apps/runtime/dist/services/shares.js +23 -13
- package/apps/runtime/dist/services/site.js +23 -23
- package/apps/runtime/dist/services/skills-registry.js +15 -15
- package/apps/runtime/dist/services/skills.js +44 -44
- package/apps/runtime/dist/services/space-categories.js +35 -35
- package/apps/runtime/dist/services/space-data.js +130 -111
- package/apps/runtime/dist/services/{project-files.js → space-files.js} +84 -75
- package/apps/runtime/dist/services/{project-index.js → space-index.js} +116 -73
- package/apps/runtime/dist/services/space-origin.js +19 -11
- package/apps/runtime/dist/services/spaces.js +478 -612
- package/apps/runtime/dist/services/synced-spaces.js +668 -0
- package/apps/runtime/dist/services/themes.js +15 -15
- package/apps/runtime/dist/services/widgets.js +6 -6
- package/apps/runtime/dist/services/wizards.js +112 -38
- package/apps/runtime/dist/services/work-ai.js +257 -0
- package/apps/runtime/dist/services/work-approvals.js +104 -0
- package/apps/runtime/dist/services/work-chats.js +908 -0
- package/apps/runtime/dist/services/work-connections.js +90 -0
- package/apps/runtime/dist/services/work-files.js +85 -0
- package/apps/runtime/dist/services/work-mastra.js +73 -0
- package/apps/runtime/dist/services/work-sandbox.js +42 -0
- package/apps/runtime/dist/sharing/files.js +14 -4
- package/apps/runtime/dist/sharing/index.js +40 -39
- package/apps/runtime/dist/sharing/jobs.js +67 -17
- package/apps/runtime/dist/sharing/targets/connector.js +10 -6
- package/apps/runtime/dist/sharing/targets/email.js +10 -8
- package/apps/runtime/dist/sharing/targets/slack.js +10 -8
- package/apps/runtime/dist/sharing/targets/storage.js +6 -4
- package/apps/runtime/dist/store/index.js +14 -3
- package/apps/runtime/dist/store/shared-lists.js +4 -2
- package/apps/runtime/dist/sync/apply.js +2 -2
- package/apps/runtime/dist/sync/client.js +113 -113
- package/apps/runtime/dist/sync/hub.js +41 -41
- package/apps/runtime/dist/sync/log.js +12 -12
- package/apps/runtime/dist/sync/records.js +118 -120
- package/apps/runtime/dist/texts.js +38 -2
- package/apps/runtime/dist/tools/connections.js +112 -0
- package/apps/runtime/dist/tools/connector.js +157 -67
- package/apps/runtime/dist/tools/index.js +28 -13
- package/apps/runtime/dist/tools/mail.js +40 -11
- package/apps/runtime/dist/tools/pages.js +11 -5
- package/apps/runtime/dist/tools/plugin.js +43 -7
- package/apps/runtime/dist/tools/skills.js +1 -1
- package/apps/runtime/dist/tools/{project.js → space.js} +30 -25
- package/apps/runtime/dist/tools/store.js +3 -2
- package/apps/runtime/dist/widgets/step.js +10 -10
- package/apps/web/dist/assets/AboutDialog-SpDcn8VZ.js +1 -0
- package/apps/web/dist/assets/CapabilitiesPage-Bgnm_3dk.js +2 -0
- package/apps/web/dist/assets/{ChangelogDialog-SwyId00t.js → ChangelogDialog-DAnjV6cZ.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BwZsk5Al.js → CodeEditor-nxoOt8ge.js} +1 -1
- package/apps/web/dist/assets/EditorPage-B98C-9Nv.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-DtSpjVTl.js → FlowPreview-aMfwcPul.js} +1 -1
- package/apps/web/dist/assets/LangSwitch-DpD0inR4.js +1 -0
- package/apps/web/dist/assets/Marketplace-CpzD9pNQ.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-D8IYLg_S.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-DlBt0Mfq.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-ztHT01ah.js +1 -0
- package/apps/web/dist/assets/PreviewPane-DC1kAi3x.js +9 -0
- package/apps/web/dist/assets/PublicRunner-D6lKP0j8.js +1 -0
- package/apps/web/dist/assets/ReadOnly-DFsuKPCw.js +1 -0
- package/apps/web/dist/assets/SettingsPage-DkHeCO2c.js +2 -0
- package/apps/web/dist/assets/SetupPage-DZ8xRkfS.js +1 -0
- package/apps/web/dist/assets/SharePage-494ZPsjQ.js +1 -0
- package/apps/web/dist/assets/SkillEditor-CqQMg2MC.js +1 -0
- package/apps/web/dist/assets/Skills-CnhpgoOA.js +9 -0
- package/apps/web/dist/assets/SpacePage-CWlU_BZP.js +2 -0
- package/apps/web/dist/assets/UpdateCheck-BKNkNJyG.js +2 -0
- package/apps/web/dist/assets/changelog-BhMZS-rs.js +1 -0
- package/apps/web/dist/assets/circle-alert-C8Ma-bPY.js +1 -0
- package/apps/web/dist/assets/circle-check-Bu9Z3mlJ.js +1 -0
- package/apps/web/dist/assets/code-editor-CfTGqOpp.js +2 -0
- package/apps/web/dist/assets/{code-xml-TwKzzMtA.js → code-xml-B4kLFZSj.js} +1 -1
- package/apps/web/dist/assets/connection-sign-in-Cngd_QDO.js +1 -0
- package/apps/web/dist/assets/esm-Xwn4GtqG.js +7 -0
- package/apps/web/dist/assets/{eye-Brd-xPUJ.js → eye-BpoKpIdt.js} +1 -1
- package/apps/web/dist/assets/host-BrP-ENHg.css +1 -0
- package/apps/web/dist/assets/host-C0WQlRKB.js +118 -0
- package/apps/web/dist/assets/i18n-BJ7Ld6O6.js +55 -0
- package/apps/web/dist/assets/index-ClVtdDUZ.js +10 -0
- package/apps/web/dist/assets/index-D18DvnxX.css +1 -0
- package/apps/web/dist/assets/logo-BpnjXTRy.js +1 -0
- package/apps/web/dist/assets/oss-credits-IdX5bc71.js +1 -0
- package/apps/web/dist/assets/{phone-DhkHteoJ.js → phone-Ctvf-Am-.js} +1 -1
- package/apps/web/dist/assets/read-aloud-Da_RSm2S.js +1 -0
- package/apps/web/dist/assets/{runners-G-XYaDgR.js → runners-CyIvJIHr.js} +1 -1
- package/apps/web/dist/assets/scroll-text-ChrjRu9Y.js +1 -0
- package/apps/web/dist/assets/session-SXPtTWRK.js +2 -0
- package/apps/web/dist/assets/theme-BCau3f6O.js +11 -0
- package/apps/web/dist/assets/ui-Uqnx1UpK.js +82 -0
- package/apps/web/dist/assets/{upload-BYZTwJTD.js → upload-BchUnQGV.js} +1 -1
- package/apps/web/dist/assets/{useMutation-D0QP_k2-.js → useMutation-DEkZhp5c.js} +1 -1
- package/apps/web/dist/assets/{volume-2-CVHoxdGM.js → volume-2-CU_oy81Z.js} +1 -1
- package/apps/web/dist/assets/with-selector-CoMyWBAX.js +1 -0
- package/apps/web/dist/index.html +17 -10
- package/apps/web/dist/mcp/flow.html +119 -64
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +20 -10
- package/node_modules/@engenty/wizards-shared/dist/assistant.d.ts +6 -1
- package/node_modules/@engenty/wizards-shared/dist/assistant.js +6 -1
- package/node_modules/@engenty/wizards-shared/dist/connectors.d.ts +236 -2
- package/node_modules/@engenty/wizards-shared/dist/connectors.js +52 -2
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +150 -8
- package/node_modules/@engenty/wizards-shared/dist/definition.js +46 -11
- package/node_modules/@engenty/wizards-shared/dist/discover.d.ts +21 -0
- package/node_modules/@engenty/wizards-shared/dist/discover.js +1 -0
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +26 -2
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +26 -2
- package/node_modules/@engenty/wizards-shared/dist/fit.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/json-schema.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/json-schema.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/live.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/live.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace.js +3 -1
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +54 -6
- package/node_modules/@engenty/wizards-shared/dist/run.js +85 -0
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.d.ts +15 -1
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.js +14 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.d.ts +42 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.js +29 -0
- package/node_modules/@engenty/wizards-shared/dist/skills.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/space-data.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/{projects.d.ts → spaces.d.ts} +39 -15
- package/node_modules/@engenty/wizards-shared/dist/{projects.js → spaces.js} +16 -9
- package/node_modules/@engenty/wizards-shared/dist/store.d.ts +7 -2
- package/node_modules/@engenty/wizards-shared/dist/surface.d.ts +35 -4
- package/node_modules/@engenty/wizards-shared/dist/surface.js +121 -3
- package/node_modules/@engenty/wizards-shared/dist/sync.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/theme-look.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +3 -3
- package/package.json +4 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/skills/build-wizard/SKILL.md +1 -1
- package/apps/runtime/dist/services/projects.js +0 -473
- package/apps/web/dist/assets/AboutDialog-B-JxkELB.js +0 -1
- package/apps/web/dist/assets/EditorPage-DQ_2FOzI.js +0 -3
- package/apps/web/dist/assets/Marketplace-DoH4YO3D.js +0 -2
- package/apps/web/dist/assets/NewWizardChannels-Tgoexgj4.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-B24AF482.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-BEvq4slJ.js +0 -1
- package/apps/web/dist/assets/PreviewPane-B_v7Y8R7.js +0 -10
- package/apps/web/dist/assets/ProjectPage-ClRuhFJo.js +0 -10
- package/apps/web/dist/assets/PublicRunner-MicrpVsv.js +0 -1
- package/apps/web/dist/assets/ReadOnly-BXjv-MSv.js +0 -1
- package/apps/web/dist/assets/SettingsPage-DY8O1r43.js +0 -2
- package/apps/web/dist/assets/SetupPage-BOVkVpMu.js +0 -1
- package/apps/web/dist/assets/SharePage-DXGzJSnR.js +0 -1
- package/apps/web/dist/assets/SkillEditor-BzzTDeaU.js +0 -1
- package/apps/web/dist/assets/changelog-BLdS-0Bj.js +0 -1
- package/apps/web/dist/assets/esm-BdxDT9Km.js +0 -7
- package/apps/web/dist/assets/i18n-8-Sw11tB.js +0 -55
- package/apps/web/dist/assets/index-OsdQFHmh.js +0 -49
- package/apps/web/dist/assets/index-QPipX5Fi.css +0 -1
- package/apps/web/dist/assets/lock-C0uxcOlq.js +0 -1
- package/apps/web/dist/assets/logo-CGNoptDg.js +0 -1
- package/apps/web/dist/assets/oss-credits-DpRWUPjD.js +0 -1
- package/apps/web/dist/assets/session-BWI-KENJ.js +0 -2
- package/apps/web/dist/assets/theme-D7krsx0_.js +0 -11
- package/apps/web/dist/assets/ui-DSXG3f49.js +0 -83
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Audit
|
|
3
|
+
description: Every time a wizard, a chat or Goose used a connection of your space, allowed or not – what critical means, and how to try a rule before anything runs.
|
|
4
|
+
version: 0.13.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**[Capabilities](./capabilities.md) › Audit** shows every call your space’s wizards, Work chats and
|
|
8
|
+
Goose made to a connection. Each call is one line, whether it ran or not.
|
|
9
|
+
Only the owner and the admins of the organization see the audit. Members don’t find it in their menu.
|
|
10
|
+
|
|
11
|
+
## What a line says
|
|
12
|
+
|
|
13
|
+
A line reads like a sentence:
|
|
14
|
+
|
|
15
|
+
- **Who** called: a guest at a wizard’s link, a person by name, an admin, Goose for a person, a
|
|
16
|
+
plugin, or a fixed step for a guest or a person.
|
|
17
|
+
- **What** they wanted: reading, writing, deleting or sending, and the connector’s name for the
|
|
18
|
+
action, such as “Create a contact”.
|
|
19
|
+
- **On which connection**, such as “HubSpot · Sales”.
|
|
20
|
+
- **Where**: in a run of a wizard, in a test run, in a Work chat or with Goose.
|
|
21
|
+
- **What came of it**: *done*, *refused* with the reason in words, or *waiting for the admins’
|
|
22
|
+
approval*.
|
|
23
|
+
|
|
24
|
+
A refused line has a red frame. A critical line has an orange one and the mark *critical*.
|
|
25
|
+
|
|
26
|
+
Click a line to see more: when exactly it happened and how long it took, which fields went in and
|
|
27
|
+
how big the input and the result were, and which rule decided. A line from a run also shows the
|
|
28
|
+
run’s grant: what the wizard allowed that run through this connection when the run started. The
|
|
29
|
+
buttons below lead to the run, the chat or the connection.
|
|
30
|
+
|
|
31
|
+
The audit never holds a password, a token, a key or a whole email. Of the input it keeps the names of
|
|
32
|
+
the fields, their sizes and one short value that is no secret.
|
|
33
|
+
|
|
34
|
+
## Filters
|
|
35
|
+
|
|
36
|
+
Above the lines you choose:
|
|
37
|
+
|
|
38
|
+
- **All**, **Refused**, **Critical** or **Waiting for approval**;
|
|
39
|
+
- who called: guests, members, admins, Goose, plugins or fixed steps;
|
|
40
|
+
- one connection;
|
|
41
|
+
- a time range, from the last hour to all time;
|
|
42
|
+
- a search. It finds a person’s name, a connection’s, a wizard’s, an action, a reason and the
|
|
43
|
+
short value of the input.
|
|
44
|
+
|
|
45
|
+
The newest lines come first. “Load more” shows older ones.
|
|
46
|
+
|
|
47
|
+
## Critical
|
|
48
|
+
|
|
49
|
+
A line is critical when someone should hear of it:
|
|
50
|
+
|
|
51
|
+
- a write, a delete or a send was refused;
|
|
52
|
+
- a guest’s run reached a connection that is only for members or admins;
|
|
53
|
+
- a run asked for a host the wizard doesn’t allow;
|
|
54
|
+
- a limit was reached, such as the emails a guest’s run may send;
|
|
55
|
+
- a sign-in ran out or the service refused it;
|
|
56
|
+
- a connection was used for the first time;
|
|
57
|
+
- someone changed a rule.
|
|
58
|
+
|
|
59
|
+
The admins hear of a critical line at once, under the bell in Work. Where no admin was in the app,
|
|
60
|
+
they get one email an hour with the critical lines since the last one. The bell icon beside the
|
|
61
|
+
audit’s title, or **Settings › Notifications**, lets an admin turn the bell and the hourly email off
|
|
62
|
+
or on for the space.
|
|
63
|
+
|
|
64
|
+
## Who may do what?
|
|
65
|
+
|
|
66
|
+
Rules are easier to understand when you can try them. **Who may do what?**, the button beside the
|
|
67
|
+
audit’s title, answers a question before anything runs, for example “May Julia send an email in this space?”.
|
|
68
|
+
|
|
69
|
+
1. Choose **who**: a person of your organization, a guest, Goose, or a fixed step in a guest’s or
|
|
70
|
+
a member’s run.
|
|
71
|
+
2. Choose the **connection** and the **action**.
|
|
72
|
+
3. Choose **where**: in a run or in a Work chat.
|
|
73
|
+
|
|
74
|
+
The answer is one sentence:
|
|
75
|
+
|
|
76
|
+
- “Julia may send in Gmail · Orders – once the admins approve.”
|
|
77
|
+
- “A guest may not read in HubSpot · Sales – the connection is for members only.”
|
|
78
|
+
|
|
79
|
+
Below it you see which rule decided, and “Change the rules” opens the connection. The answer comes from the
|
|
80
|
+
same rules that decide every real call, and nothing runs or lands in the audit.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Skills
|
|
3
3
|
description: Instructions your wizards work by – always, or when a wizard needs one. Add them from skills.sh, upload them or write your own.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
A skill is a set of instructions your wizards work by: how you write, what a quote must hold, how
|
|
8
|
-
to handle a PDF. You find them under **
|
|
9
|
-
|
|
8
|
+
to handle a PDF. You find them under **[Capabilities](./capabilities.md) › Skills** in the app bar,
|
|
9
|
+
after Resources.
|
|
10
10
|
|
|
11
11
|
A skill is a folder in the open Agent Skills format: a `SKILL.md` with a name, a description and
|
|
12
12
|
the instructions, and any text files the instructions point to. The same skill works in Claude,
|
|
@@ -25,7 +25,8 @@ Each skill has one of three settings:
|
|
|
25
25
|
- **Off.** The skill stays in the space, and no wizard sees it.
|
|
26
26
|
|
|
27
27
|
A wizard reads a file of a skill when the skill’s instructions point to it. Goose sees the
|
|
28
|
-
space’s skills too and reads them when they help.
|
|
28
|
+
space’s skills too and reads them when they help, and so does the space’s AI in a Work chat. In a
|
|
29
|
+
Work chat a skill’s scripts run too, once you switched them on for the skill.
|
|
29
30
|
|
|
30
31
|
## Add a skill
|
|
31
32
|
|
|
@@ -46,6 +47,9 @@ such as fonts, templates or pictures, come along for the skill’s scripts, and
|
|
|
46
47
|
as “for scripts”. skills.sh hands out text files only, so a skill that needs fonts or templates
|
|
47
48
|
comes as a zip upload.
|
|
48
49
|
|
|
50
|
+
The **Discover** tab of Capabilities › Overview searches skills.sh and integrations.sh at once: you view or add a
|
|
51
|
+
skill right in the results, marked “In this space” once the space has it.
|
|
52
|
+
|
|
49
53
|
## Run a skill’s scripts
|
|
50
54
|
|
|
51
55
|
Some skills bring scripts in Python or JavaScript, such as one that fills a PDF form. A script
|
|
@@ -10,16 +10,17 @@ wizard never has to ask for your company’s name or address.
|
|
|
10
10
|
The app bar holds its places, below the space’s tile in its corner:
|
|
11
11
|
|
|
12
12
|
- The house opens the space’s wizards: the list and “New wizard”.
|
|
13
|
-
- The layers below it open the space’s
|
|
13
|
+
- The layers below it open the space’s resources (“Resources”): what your wizards know.
|
|
14
14
|
- The tray below them opens the space’s results.
|
|
15
15
|
|
|
16
16
|
On a phone the bar floats along the bottom with the house, the layers and “More” (⋯), which
|
|
17
17
|
holds the results, the settings and the rest. The space’s tile and name sit at the top left, your
|
|
18
18
|
picture at the top right.
|
|
19
19
|
|
|
20
|
-
On
|
|
21
|
-
and
|
|
22
|
-
|
|
20
|
+
On Resources, the menu on the left starts with the Overview: each of the four parts with what it
|
|
21
|
+
is for and how far it is filled, Goose on top. Then the parts themselves. Where a part lists
|
|
22
|
+
things of its own (Knowledge’s categories, Data’s tables), it opens its menu under the other parts,
|
|
23
|
+
with a search (⌘F). On a phone, the parts, a part’s menu and the page take turns.
|
|
23
24
|
|
|
24
25
|
Results have no menu: the list above them picks one wizard or all of them.
|
|
25
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Working together
|
|
3
|
-
description: How the studio shows what others change while you work, merges it with what you type, shows who else is in a wizard, page or table,
|
|
4
|
-
version: 0.
|
|
3
|
+
description: How the studio shows what others change while you work, merges it with what you type, shows who else is in a wizard, page or table, where an organization’s settings are, and who may use the studio.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
The studio shows changes made elsewhere as they happen. You don’t reload anything. That holds
|
|
@@ -62,6 +62,20 @@ On engenty.ai the settings start with the organization’s:
|
|
|
62
62
|
The person who made the organization can change its address once, in its first 14 days. The
|
|
63
63
|
studio moves with it.
|
|
64
64
|
|
|
65
|
+
### Members in the studio
|
|
66
|
+
|
|
67
|
+
Admins decide for each space whether its members may use the studio: in the space’s info, with
|
|
68
|
+
“Members can use the studio”. The rule counts for every member, not for one person.
|
|
69
|
+
|
|
70
|
+
With it on, members build and test wizards in that space. They add and change skills, knowledge
|
|
71
|
+
and data, and use the connections open to them. Admins still publish wizards and share them
|
|
72
|
+
outside the space, set up connections and change their rules. Approvals go to the admins, and only
|
|
73
|
+
they see the [Audit](./protocol.md). With it off, members work in Work and run the space’s wizards
|
|
74
|
+
there.
|
|
75
|
+
|
|
76
|
+
A new space starts with the studio closed to members. [Capabilities](./capabilities.md#who-sees-capabilities)
|
|
77
|
+
has a table of what each role sees.
|
|
78
|
+
|
|
65
79
|
## Switch it off
|
|
66
80
|
|
|
67
81
|
To turn live changes off on your computer, add this line to `~/.engenty/wizards/.features`:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Troubleshooting
|
|
3
3
|
description: What to do when a link no longer works, a client shows as not signed in, or an export fails.
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
`wizards doctor` checks engenty wizards on your computer and says what is wrong. Start there.
|
|
@@ -43,7 +43,7 @@ version: 0.11.2
|
|
|
43
43
|
| “This wizard doesn’t exist or was deleted.” | It is not published, or its link was replaced by a new one |
|
|
44
44
|
| Others can’t open the link | engenty wizards on your computer answers on `localhost` only. See [who can open the link](./test-and-share.md#who-can-open-the-link) |
|
|
45
45
|
| The camera, microphone or location doesn’t work | Allow it in the browser’s site settings (the lock icon in the address bar) |
|
|
46
|
-
| A built-in connector is missing from
|
|
46
|
+
| A built-in connector is missing from Capabilities › Connectors | It needs an OAuth client in the settings file. See [Connectors](./connectors.md) |
|
|
47
47
|
| A step stops at a plugin’s tool | That plugin is not installed here. See [Plugins](./plugins.md) |
|
|
48
48
|
|
|
49
49
|
## Updating
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Work mode
|
|
3
|
+
description: Chats with your space’s AI and with each other – the Studio · Work · Client switch, what the AI may use in a chat, approvals, and what Client shows.
|
|
4
|
+
version: 0.13.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Work mode is where your team works with the space: you write in chats, and the space’s AI
|
|
8
|
+
answers with what the space knows. Studio stays where you build wizards.
|
|
9
|
+
|
|
10
|
+
Work mode is not on for everyone yet. In the cloud, engenty switches it on for an organization. On
|
|
11
|
+
your computer you add this line to `~/.engenty/wizards/.features`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
workMode=on
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Without it, the studio looks as before: Studio alone, with no switch.
|
|
18
|
+
|
|
19
|
+
Client comes with the public page, so it shows only where `pages=on` is set as well. Work’s
|
|
20
|
+
places past the chats aren’t finished. They show with `workWip=on`.
|
|
21
|
+
|
|
22
|
+
## Studio, Work and Client
|
|
23
|
+
|
|
24
|
+
The switch sits in the app bar, right under the space. On a phone it sits in the top bar. The
|
|
25
|
+
engenty in the bar’s corner shows the mode you are in: green for Studio, blue for Work, violet
|
|
26
|
+
for Client.
|
|
27
|
+
|
|
28
|
+
| Mode | For | What it holds |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| **Studio** | The people who build | Wizards, Resources, Capabilities and the settings, as before |
|
|
31
|
+
| **Work** | Everyone in the organization | Chats with the space’s AI, and what waits for you |
|
|
32
|
+
| **Client** | A look at what your clients see | Nothing yet. “This view comes soon.” |
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
The owner and the admins see all three. A member sees Work and Client. Where the space’s admins
|
|
37
|
+
switched on **Members can use the studio**, members get Studio as well
|
|
38
|
+
([Capabilities](./capabilities.md#who-sees-capabilities)). A member who opens a Studio address of
|
|
39
|
+
a space that doesn’t let them in lands in Work. The studio remembers your mode in this browser.
|
|
40
|
+
|
|
41
|
+
## Work’s places
|
|
42
|
+
|
|
43
|
+
Work’s app bar has Chats. With `workWip=on` it also has Engenties, Files, Data, Results and
|
|
44
|
+
**Waiting for you**. Engenties,
|
|
45
|
+
Files, Data and Results show nothing yet. You reach the space’s files from a chat.
|
|
46
|
+
|
|
47
|
+
**Start**, at the top of the chats, greets you and shows:
|
|
48
|
+
|
|
49
|
+
- **Needs you**: calls waiting for your approval, and chats with something new.
|
|
50
|
+
- **Running now**: chats in which the space’s AI is answering.
|
|
51
|
+
- **Wizards**: a few of the space’s published wizards. A click opens one in its own chat, in a
|
|
52
|
+
new tab, where it runs. Work’s chats don’t run wizards yet.
|
|
53
|
+
- **Recent**: the chats of late.
|
|
54
|
+
- A field to ask the space’s AI. It starts a new chat.
|
|
55
|
+
|
|
56
|
+
## Chats
|
|
57
|
+
|
|
58
|
+
The sidebar holds a new chat, the search, your pinned chats, the sections, and the chats in no
|
|
59
|
+
section. A chat’s sub-threads sit beneath it. From a chat’s row you pin it, archive it, mark it
|
|
60
|
+
read or unread, rename it, move it to a section (or drag it there) and delete it. The filter shows
|
|
61
|
+
archived chats or unread ones only.
|
|
62
|
+
|
|
63
|
+
A chat is open to everyone in the organization, who joins it by writing in it. A **private** chat
|
|
64
|
+
is seen by its members only.
|
|
65
|
+
|
|
66
|
+
## Ask the space’s AI
|
|
67
|
+
|
|
68
|
+
The space’s AI answers under the space’s name. It runs on the same models as the studio’s chat:
|
|
69
|
+
in the cloud on the organization’s models, on your computer on the way you chose under
|
|
70
|
+
[Studio chat](./models.md#studio-chat-goose).
|
|
71
|
+
|
|
72
|
+
- Alone in a chat with the AI, every message asks it.
|
|
73
|
+
- With more people in the chat, **Ask {space}** above the message box or a message that starts
|
|
74
|
+
with `@` asks it. Other messages are for the people.
|
|
75
|
+
- A message you send while the AI answers goes into the answer under way. ⌘↩ (Ctrl+↩ on Windows
|
|
76
|
+
and Linux) sends it for after the answer instead.
|
|
77
|
+
- **Stop** ends the answer. Your message stays in the chat.
|
|
78
|
+
|
|
79
|
+
In the message box’s **+** menu you choose files from the space, switch web search off, leave
|
|
80
|
+
out a plugin’s tools, and open one of the space’s wizards. The model menu beside it switches to
|
|
81
|
+
the more capable model for the chat. You add up to 10 files to a message. The AI reads pictures
|
|
82
|
+
and PDFs itself, and each file you add lands in the space’s files.
|
|
83
|
+
|
|
84
|
+
An answer may take up to 16 steps and 20 minutes. Under it you see what the AI did: what it
|
|
85
|
+
searched in the space and on the web, which skill it read, which commands it ran. **Details**
|
|
86
|
+
opens each step with its input and its result. Where a table or a form says more than text, the
|
|
87
|
+
AI draws one in the chat. Anyone in the chat may fill in and send a form the AI drew.
|
|
88
|
+
|
|
89
|
+
## What the AI may use
|
|
90
|
+
|
|
91
|
+
| | In a chat |
|
|
92
|
+
|---|---|
|
|
93
|
+
| The space’s knowledge | It searches and reads it |
|
|
94
|
+
| [Skills](./skills.md) | It sees the space’s skills and reads one when it helps |
|
|
95
|
+
| A computer of its own | It runs commands and the scripts of skills that may run them ([Run a skill’s scripts](./skills.md#run-a-skills-scripts)) |
|
|
96
|
+
| [Connections](./capabilities.md#connectors) | The ones open to you. Where each person signs in, only the ones you signed in to |
|
|
97
|
+
| Plugins’ tools | Unless you left them out for the chat |
|
|
98
|
+
| The web | Unless you switched web search off |
|
|
99
|
+
|
|
100
|
+
The computer is a sandbox for this chat alone. It starts with the AI’s first command and keeps its
|
|
101
|
+
files while the chat is in use, so a file one answer writes is there for the next. After 30
|
|
102
|
+
minutes without a command it goes, and its files with it. Where your computer has no sandbox, the
|
|
103
|
+
AI runs no commands and reads scripts as text. [`wizards sandbox add`](./command-line.md) adds
|
|
104
|
+
one.
|
|
105
|
+
|
|
106
|
+
## Approvals
|
|
107
|
+
|
|
108
|
+
Reading and searching run without asking. A call that acts outside the space, such as sending a
|
|
109
|
+
mail, changing a record or deleting, waits for approval. The chat shows a card with **Approve**
|
|
110
|
+
and **Deny**, and the AI goes on with its answer.
|
|
111
|
+
|
|
112
|
+
| Who decides | When |
|
|
113
|
+
|---|---|
|
|
114
|
+
| The person who asked, the owner or an admin | A change through a connection, or a plugin’s tool that acts outside the space |
|
|
115
|
+
| The owner or an admin alone | A connection that signs in as the space, where the rule is With approval |
|
|
116
|
+
|
|
117
|
+
An approved call runs once, with the arguments it waited with, and the AI hears how it went. A
|
|
118
|
+
denied call doesn’t run.
|
|
119
|
+
|
|
120
|
+

|
|
121
|
+
|
|
122
|
+
**Waiting for you** lists the calls waiting for your approval, each leading to its chat. For the
|
|
123
|
+
owner and the admins it also shows the critical lines of the space’s [Audit](./protocol.md), such
|
|
124
|
+
as a refused change or a connection used for the first time. Opening it marks them seen.
|
|
125
|
+
|
|
126
|
+
## Client
|
|
127
|
+
|
|
128
|
+
Client is where you will see the space as your clients see it. It shows a placeholder for now.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { decryptToken, defineConnector, } from "../shims/connections-sdk.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { headersFromRequired } from "./import-service.js";
|
|
4
|
+
import { groupOf } from "./importer/classify.js";
|
|
4
5
|
import { executeHttpAction } from "./invoke/http-invoker.js";
|
|
5
6
|
import { mcpCallTool } from "./invoke/mcp-client.js";
|
|
6
7
|
import { connectionsRedirectUri, registerDynamicClient } from "./oauth-dcr.js";
|
|
@@ -47,11 +48,7 @@ function buildAction(record, action, live) {
|
|
|
47
48
|
if (!inputSchema) {
|
|
48
49
|
return null;
|
|
49
50
|
}
|
|
50
|
-
const group = action
|
|
51
|
-
? "read"
|
|
52
|
-
: action.classification === "destructive"
|
|
53
|
-
? "destructive"
|
|
54
|
-
: "write";
|
|
51
|
+
const group = groupOf(action);
|
|
55
52
|
return {
|
|
56
53
|
description: action.description.slice(0, 1024),
|
|
57
54
|
group,
|
|
@@ -32,3 +32,75 @@ export function classifyMcpTool(annotations) {
|
|
|
32
32
|
}
|
|
33
33
|
return "write";
|
|
34
34
|
}
|
|
35
|
+
/** Words that say an action sends something to other people. */
|
|
36
|
+
const SEND_WORDS = new Set([
|
|
37
|
+
"send",
|
|
38
|
+
"sends",
|
|
39
|
+
"mail",
|
|
40
|
+
"mails",
|
|
41
|
+
"email",
|
|
42
|
+
"emails",
|
|
43
|
+
"message",
|
|
44
|
+
"messages",
|
|
45
|
+
"post",
|
|
46
|
+
"posts",
|
|
47
|
+
"notify",
|
|
48
|
+
"notification",
|
|
49
|
+
"notifications",
|
|
50
|
+
"reply",
|
|
51
|
+
"forward",
|
|
52
|
+
"sms",
|
|
53
|
+
]);
|
|
54
|
+
/** Words that say it does not: a draft is kept, an edit or a delete is its own kind. */
|
|
55
|
+
const NOT_SEND_WORDS = new Set([
|
|
56
|
+
"draft",
|
|
57
|
+
"drafts",
|
|
58
|
+
"update",
|
|
59
|
+
"edit",
|
|
60
|
+
"delete",
|
|
61
|
+
"remove",
|
|
62
|
+
"destroy",
|
|
63
|
+
"purge",
|
|
64
|
+
"revoke",
|
|
65
|
+
"trash",
|
|
66
|
+
"archive",
|
|
67
|
+
"settings",
|
|
68
|
+
]);
|
|
69
|
+
/** The words of an id or summary: `sendEmail`, `send_email`, "Send an e-mail" alike. */
|
|
70
|
+
function wordsOf(text) {
|
|
71
|
+
return text
|
|
72
|
+
.replace(/([a-z0-9])([A-Z])/gu, "$1 $2")
|
|
73
|
+
.replace(/e-mail/giu, "email")
|
|
74
|
+
.toLowerCase()
|
|
75
|
+
.split(/[^a-z0-9]+/u)
|
|
76
|
+
.filter(Boolean);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The group an imported action runs under. Neither an OpenAPI spec nor an MCP server says that
|
|
80
|
+
* an action sends something, so until the registry carries a group this is a guess by name: an
|
|
81
|
+
* action that is no read, whose id or summary says send, mail, message, post or notify (and not
|
|
82
|
+
* draft, update or delete), is a `send`. The HTTP method an OpenAPI action's id or summary
|
|
83
|
+
* starts with (`post_users`, "POST /users") is no word of the action's. Everything else keeps
|
|
84
|
+
* its classification.
|
|
85
|
+
*/
|
|
86
|
+
export function groupOf(action) {
|
|
87
|
+
if (action.classification === "read" || action.classification === "send") {
|
|
88
|
+
return action.classification;
|
|
89
|
+
}
|
|
90
|
+
const id = wordsOf(action.id);
|
|
91
|
+
const summary = wordsOf(action.summary);
|
|
92
|
+
if (action.invoke.kind === "http") {
|
|
93
|
+
const method = action.invoke.method.toLowerCase();
|
|
94
|
+
if (id[0] === method) {
|
|
95
|
+
id.shift();
|
|
96
|
+
}
|
|
97
|
+
if (summary[0] === method) {
|
|
98
|
+
summary.shift();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const words = [...id, ...summary];
|
|
102
|
+
if (words.some((w) => NOT_SEND_WORDS.has(w))) {
|
|
103
|
+
return action.classification;
|
|
104
|
+
}
|
|
105
|
+
return words.some((w) => SEND_WORDS.has(w)) ? "send" : action.classification;
|
|
106
|
+
}
|
|
@@ -516,7 +516,7 @@ export const gmailConnector = defineConnector({
|
|
|
516
516
|
}),
|
|
517
517
|
connectorAction({
|
|
518
518
|
description: "Send an email via Gmail immediately (plain text). This delivers mail to the recipients — irreversible.",
|
|
519
|
-
group: "
|
|
519
|
+
group: "send",
|
|
520
520
|
handler: async (input, ctx) => {
|
|
521
521
|
const result = await googleJson(ctx, `${GMAIL_API}/messages/send`, {
|
|
522
522
|
body: JSON.stringify({ raw: buildRawMessage(input) }),
|
|
@@ -428,10 +428,10 @@ export const microsoftOutlookConnector = defineConnector({
|
|
|
428
428
|
},
|
|
429
429
|
summary: "Update a calendar event",
|
|
430
430
|
}),
|
|
431
|
-
// ──
|
|
431
|
+
// ── send ────────────────────────────────────────────────────────────
|
|
432
432
|
action({
|
|
433
433
|
description: "Send an email immediately on behalf of the connected account.",
|
|
434
|
-
group: "
|
|
434
|
+
group: "send",
|
|
435
435
|
id: "send_message",
|
|
436
436
|
inputSchema: z.object({
|
|
437
437
|
...messageDraftFields,
|
|
@@ -453,6 +453,7 @@ export const microsoftOutlookConnector = defineConnector({
|
|
|
453
453
|
},
|
|
454
454
|
summary: "Send an email",
|
|
455
455
|
}),
|
|
456
|
+
// ── destructive ─────────────────────────────────────────────────────
|
|
456
457
|
action({
|
|
457
458
|
description: "Delete a message (moves it to the Deleted Items folder; recoverable from there).",
|
|
458
459
|
group: "destructive",
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export const ACTION_GROUP_CONTRACTS = {
|
|
2
2
|
read: { idempotent: true, requiresApproval: false, riskLevel: "low" },
|
|
3
3
|
write: { idempotent: false, requiresApproval: true, riskLevel: "medium" },
|
|
4
|
+
send: { idempotent: false, requiresApproval: true, riskLevel: "high" },
|
|
4
5
|
destructive: { idempotent: false, requiresApproval: true, riskLevel: "high" },
|
|
5
6
|
};
|
|
6
7
|
/** Default connection policy per group when the user has not overridden it. */
|
|
7
8
|
export const ACTION_GROUP_DEFAULT_POLICY = {
|
|
8
9
|
read: "allow",
|
|
9
10
|
write: "ask",
|
|
11
|
+
send: "ask",
|
|
10
12
|
destructive: "ask",
|
|
11
13
|
};
|
|
12
14
|
export function connectorOperationId(connector, actionId) {
|
|
@@ -260,7 +260,8 @@ const actions = [
|
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
description: "Post a message to a Slack channel (or as a thread reply) as the connected user.",
|
|
263
|
-
|
|
263
|
+
// Others read it: a post is a send, not a change.
|
|
264
|
+
group: "send",
|
|
264
265
|
handler: async (input, ctx) => {
|
|
265
266
|
const args = postMessageInput.parse(input);
|
|
266
267
|
const data = await slackApi(ctx, "chat.postMessage", {
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
+
import { brokerSecret, reachesOutside, whoOf } from "../broker/index.js";
|
|
1
2
|
import { webContext } from "../render/chromium.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { guestRun } from "../safety.js";
|
|
4
|
+
import { guestSandboxEngine, sandboxEngine, } from "../sandbox/index.js";
|
|
5
|
+
import { putSecret } from "../store/index.js";
|
|
4
6
|
/** Sign-ins the person asked the wizard to keep, as Playwright storage state. */
|
|
5
7
|
const SESSION_SLOT = "browser";
|
|
8
|
+
reachesOutside("browser_session", {
|
|
9
|
+
connection: SESSION_SLOT,
|
|
10
|
+
action: "read_secret",
|
|
11
|
+
kind: "read",
|
|
12
|
+
});
|
|
6
13
|
/** A person who took the browser over and does nothing on it this long hands it back. */
|
|
7
14
|
const SEAT_IDLE_MS = 3 * 60_000;
|
|
15
|
+
/**
|
|
16
|
+
* The sandbox engine of a run: a member's (a `userId`) and a Work chat's is the server's
|
|
17
|
+
* (`SANDBOX`); a guest's – a live run with a visitor and no user, a plugin door's among them –
|
|
18
|
+
* is `SANDBOX_GUESTS`: agentOS when it is ready, else none, never Docker. The one place where a
|
|
19
|
+
* run's engine is picked (docs/plans/capabilities.md, A1).
|
|
20
|
+
*/
|
|
21
|
+
export function runSandboxEngine(run) {
|
|
22
|
+
return guestRun(run) ? guestSandboxEngine() : sandboxEngine();
|
|
23
|
+
}
|
|
8
24
|
/**
|
|
9
25
|
* What a run holds while an agent works: a browser context and a sandbox, both made on first
|
|
10
26
|
* use and released when the run stops running.
|
|
@@ -14,6 +30,8 @@ export class RunResources {
|
|
|
14
30
|
context = null;
|
|
15
31
|
page = null;
|
|
16
32
|
sandbox = null;
|
|
33
|
+
/** The engine this run's sandbox is made on; null until bound, or when the run has none. */
|
|
34
|
+
engine = null;
|
|
17
35
|
scope = null;
|
|
18
36
|
/** Changes the person allowed for the rest of this run, as "<connection>:<action>". */
|
|
19
37
|
allowed = new Set();
|
|
@@ -27,19 +45,29 @@ export class RunResources {
|
|
|
27
45
|
constructor(runId) {
|
|
28
46
|
this.runId = runId;
|
|
29
47
|
}
|
|
30
|
-
/** Whose store kept sign-ins are read from and written to. */
|
|
31
|
-
bind(scope) {
|
|
48
|
+
/** Whose store kept sign-ins are read from and written to, and whose run this is. */
|
|
49
|
+
bind(scope, run) {
|
|
32
50
|
this.scope = scope;
|
|
51
|
+
this.engine = runSandboxEngine(run);
|
|
52
|
+
}
|
|
53
|
+
/** What this run's sandbox runs, or null when the run has none (a guest's, or `SANDBOX=off`). */
|
|
54
|
+
sandboxCapabilities() {
|
|
55
|
+
return this.engine?.capabilities() ?? null;
|
|
33
56
|
}
|
|
34
57
|
async browserContext() {
|
|
35
58
|
if (!this.context) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
this.context =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
const make = (kept) => webContext({ locale: "de-DE", ...(kept ? { storageState: kept } : {}) });
|
|
60
|
+
// The kept sign-ins are read through the broker: only the browser context sees them.
|
|
61
|
+
const scope = this.scope;
|
|
62
|
+
this.context = scope
|
|
63
|
+
? await brokerSecret({
|
|
64
|
+
who: whoOf(scope.holder),
|
|
65
|
+
where: { runId: this.runId, wizardId: scope.wizardId },
|
|
66
|
+
scope,
|
|
67
|
+
slot: SESSION_SLOT,
|
|
68
|
+
handler: make,
|
|
69
|
+
}).catch(() => make(null))
|
|
70
|
+
: await make(null);
|
|
43
71
|
}
|
|
44
72
|
return this.context;
|
|
45
73
|
}
|
|
@@ -158,7 +186,10 @@ export class RunResources {
|
|
|
158
186
|
}
|
|
159
187
|
}
|
|
160
188
|
sandboxHandle() {
|
|
161
|
-
|
|
189
|
+
if (!this.engine) {
|
|
190
|
+
throw new Error("This run has no sandbox.");
|
|
191
|
+
}
|
|
192
|
+
this.sandbox ??= this.engine.create(this.runId);
|
|
162
193
|
return this.sandbox;
|
|
163
194
|
}
|
|
164
195
|
async release() {
|