@xopcai/xopc 0.0.142 → 0.0.144
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/README.md +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/src/adapters/streaming-adapter.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/src/routing-integration.js +2 -2
- package/dist/extensions/telegram/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +1 -1
- package/dist/extensions/weixin/src/plugin.js +1 -1
- package/dist/extensions/weixin/src/workflow-progress.js +1 -1
- package/dist/gateway/static/root/assets/activity-center-store-jITiX2vJ.js +1 -0
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BawPxiu5.js → agent-avatar-dicebear-EAVnrCAs.js} +1 -1
- package/dist/gateway/static/root/assets/agents-5rTuJOtT.js +2 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-81xd1p9R.js → app-management-settings-panel-Bu568NpC.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-DYeQsYU8.js → appearance-settings-DSkm9bp_.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-DWetalKp.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D_oa7oti.js → archive-plugin-C99N0vV6.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-Cd-bwI2N.js → attachment-load-CHTDqME5.js} +1 -1
- package/dist/gateway/static/root/assets/automation-suggestion-card-CBt6U3-S.js +1 -0
- package/dist/gateway/static/root/assets/automations-page-ICUfxeOz.js +4 -0
- package/dist/gateway/static/root/assets/{binary-plugins-O8svLKWw.js → binary-plugins-BRtxOLlM.js} +1 -1
- package/dist/gateway/static/root/assets/block-editor-CUlXfgXd.js +184 -0
- package/dist/gateway/static/root/assets/browser-settings-page-D7Bj4MKi.js +8 -0
- package/dist/gateway/static/root/assets/{capability-presets-api-dJy1Eqgx.js → capability-presets-api-Bg1ntFSD.js} +1 -1
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-C-8I-Ktn.js +2 -0
- package/dist/gateway/static/root/assets/{channel-recipient-api-Bfuhp2ty.js → channel-recipient-api-DuulnhIj.js} +1 -1
- package/dist/gateway/static/root/assets/channels-settings-Dm5EqQyK.js +1 -0
- package/dist/gateway/static/root/assets/channels-status-swr-B5lVrUsN.js +1 -0
- package/dist/gateway/static/root/assets/check-BODqo66o.js +1 -0
- package/dist/gateway/static/root/assets/chunk-QUQL4437-DXsxWP7r.js +4 -0
- package/dist/gateway/static/root/assets/circle-alert-RzVebuX2.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-BOzjh-OK.js +2 -0
- package/dist/gateway/static/root/assets/{desktop-pet-DFMfIb5F.js → desktop-pet-C-Drhqyk.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CRGiolqF.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BrYt1gAr.js → directory-picker-path-field-Dw1L3M84.js} +1 -1
- package/dist/gateway/static/root/assets/dist-SwiI0Xu3.js +1 -0
- package/dist/gateway/static/root/assets/dreaming-settings-CF21cbjo.js +3 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-Bh630pLD.js → extension-debug-page-Dcl8LJG_.js} +1 -1
- package/dist/gateway/static/root/assets/extension-page-i_BXmO_x.js +1 -0
- package/dist/gateway/static/root/assets/extension-settings-page-CWIi7xsn.js +1 -0
- package/dist/gateway/static/root/assets/{fetch-B1WtuprY.js → fetch-8QNN25Sh.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-De2N821l.js → gateway-config-api-2sLP2kkA.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-DMHiZc-2.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-nEujFSDj.js → gateway-startup-retry-5YBnS9Fj.js} +1 -1
- package/dist/gateway/static/root/assets/goal-create-dialog-CAODVDiA.js +1 -0
- package/dist/gateway/static/root/assets/goal-detail-page-_d4DjmeX.js +4 -0
- package/dist/gateway/static/root/assets/{goals-config-api-DUy3eEse.js → goals-config-api-B4qeLKQS.js} +1 -1
- package/dist/gateway/static/root/assets/goals-page-lgsop664.js +2 -0
- package/dist/gateway/static/root/assets/goals-settings-Dx_1ZNgb.js +1 -0
- package/dist/gateway/static/root/assets/heartbeat-settings-DeTseEk_.js +1 -0
- package/dist/gateway/static/root/assets/index-CphxClbs.css +1 -0
- package/dist/gateway/static/root/assets/index-VWvztcst.js +257 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CVIwwM15.js → keyboard-shortcuts-settings-BpwpMmlk.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-9_hbTg3j.js +7 -0
- package/dist/gateway/static/root/assets/{markdown-split-B_6us9j7.js → markdown-split-BTRFTK0w.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-D_fryIyj.js → media-plugins-BABfIZPU.js} +1 -1
- package/dist/gateway/static/root/assets/messages-CzKxM6I4.js +5 -0
- package/dist/gateway/static/root/assets/models-hub-panel-B1CUvZxh.js +2 -0
- package/dist/gateway/static/root/assets/notes-page-88QBHW9a.js +1 -0
- package/dist/gateway/static/root/assets/notes-workbench-CerZOeLW.js +2 -0
- package/dist/gateway/static/root/assets/{page-tabs-D_8jGlqx.js → page-tabs-je95DZOf.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BBLMK8Mp.js → preview-open-alternatives-BJbwi7Rc.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-BmrApldl.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-tTn-k76N.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-DeA2-pOi.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-DVS3FR5r.js → save-bar-controls-qWMQ9mod.js} +1 -1
- package/dist/gateway/static/root/assets/{schedule-field-D6vKd6-T.js → schedule-field-kxd270Gs.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BPy4lbIh.js → schema-form-DLnD-MuD.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-D4kvvcL1.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-CI1OG4gq.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-WzdikxPt.js → settings-collapsible-section-DQprvu5J.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-form-section-CvfzhBV-.js → settings-form-section-Cqq7Y98y.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BxR-Ulhi.js → settings-loading-skeleton-b6rXULL5.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-BtBVz3cX.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-layout-CKefvbYi.js → settings-page-layout-BNJbtklV.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-cmclUJzS.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page--zO-A1W1.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-DNJvqA67.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-DWr_0Xgn.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-DEGsTbJx.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-BokgAgf7.js → system-settings-panel-Cq9J7i7v.js} +1 -1
- package/dist/gateway/static/root/assets/{typed-models-lib-BwHlNL3L.js → typed-models-lib-CdSwi1gT.js} +1 -1
- package/dist/gateway/static/root/assets/{use-channel-catalog-DR11ap3A.js → use-channel-catalog-COXIfXcl.js} +1 -1
- package/dist/gateway/static/root/assets/user-context-page-C-V73ZaJ.js +1 -0
- package/dist/gateway/static/root/assets/user-profile-fields-editor-B1cxoGkh.js +1 -0
- package/dist/gateway/static/root/assets/user-profile-settings-panel-B8hlamVB.js +1 -0
- package/dist/gateway/static/root/assets/{utils-BKUWB-TT.js → utils-Dx01V8qF.js} +1 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-DGpIUelZ.js +1 -0
- package/dist/gateway/static/root/assets/with-selector-aYPsXwdl.js +1 -0
- package/dist/gateway/static/root/assets/work-item-detail-page-fzWTxF26.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CL_rnAUB.js → workflow-run-setup-panel-Dt_x8LGg.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-Bg02zEUh.js +11 -0
- package/dist/gateway/static/root/assets/workflows-page-DLioOiRN.css +1 -0
- package/dist/gateway/static/root/connector-icons/README.md +11 -0
- package/dist/gateway/static/root/connector-icons/airtable.svg +13 -0
- package/dist/gateway/static/root/connector-icons/asana.svg +15 -0
- package/dist/gateway/static/root/connector-icons/brave-search.svg +1 -0
- package/dist/gateway/static/root/connector-icons/clickup.svg +19 -0
- package/dist/gateway/static/root/connector-icons/composio.svg +266 -0
- package/dist/gateway/static/root/connector-icons/discord.svg +15 -0
- package/dist/gateway/static/root/connector-icons/dropbox.svg +152 -0
- package/dist/gateway/static/root/connector-icons/excel.svg +56 -0
- package/dist/gateway/static/root/connector-icons/fetch.svg +6 -0
- package/dist/gateway/static/root/connector-icons/figma.svg +178 -0
- package/dist/gateway/static/root/connector-icons/filesystem.svg +6 -0
- package/dist/gateway/static/root/connector-icons/github.svg +10 -0
- package/dist/gateway/static/root/connector-icons/gmail.svg +3 -0
- package/dist/gateway/static/root/connector-icons/google-calendar.svg +3 -0
- package/dist/gateway/static/root/connector-icons/google-docs.svg +25 -0
- package/dist/gateway/static/root/connector-icons/google-drive.svg +25 -0
- package/dist/gateway/static/root/connector-icons/google-sheets.svg +1 -0
- package/dist/gateway/static/root/connector-icons/hubspot.svg +142 -0
- package/dist/gateway/static/root/connector-icons/jira.svg +15 -0
- package/dist/gateway/static/root/connector-icons/linear.svg +5 -0
- package/dist/gateway/static/root/connector-icons/memory.svg +5 -0
- package/dist/gateway/static/root/connector-icons/microsoft-teams.svg +33 -0
- package/dist/gateway/static/root/connector-icons/notion.svg +5 -0
- package/dist/gateway/static/root/connector-icons/one-drive.svg +13 -0
- package/dist/gateway/static/root/connector-icons/outlook.svg +76 -0
- package/dist/gateway/static/root/connector-icons/playwright.svg +9 -0
- package/dist/gateway/static/root/connector-icons/salesforce.svg +17 -0
- package/dist/gateway/static/root/connector-icons/sequential-thinking.svg +8 -0
- package/dist/gateway/static/root/connector-icons/shopify.svg +5 -0
- package/dist/gateway/static/root/connector-icons/slack.svg +9 -0
- package/dist/gateway/static/root/connector-icons/spotify.svg +43 -0
- package/dist/gateway/static/root/connector-icons/stripe.svg +11 -0
- package/dist/gateway/static/root/connector-icons/telegram.svg +130 -0
- package/dist/gateway/static/root/connector-icons/time.svg +6 -0
- package/dist/gateway/static/root/connector-icons/todoist.svg +277 -0
- package/dist/gateway/static/root/connector-icons/trello.svg +19 -0
- package/dist/gateway/static/root/connector-icons/twitter.svg +128 -0
- package/dist/gateway/static/root/connector-icons/whatsapp.svg +61 -0
- package/dist/gateway/static/root/connector-icons/youtube.svg +11 -0
- package/dist/gateway/static/root/index.html +10 -7
- package/dist/package.js +1 -1
- package/dist/src/activity/emitter.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +2 -0
- package/dist/src/agent/agent-manager.js +12 -4
- package/dist/src/agent/agent-manager.js.map +1 -1
- package/dist/src/agent/background-review/prompts.d.ts +1 -1
- package/dist/src/agent/background-review/prompts.js +3 -2
- package/dist/src/agent/background-review/prompts.js.map +1 -1
- package/dist/src/agent/code-intelligence/binary.js +1 -1
- package/dist/src/agent/context/project-context.js +2 -2
- package/dist/src/agent/context/workspace-seed.js +2 -2
- package/dist/src/agent/embedded/run-for-session.js +1 -1
- package/dist/src/agent/embedded/session-tool-result-guard.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.d.ts +9 -0
- package/dist/src/agent/embedded/xopc-tools-bridge.js +71 -3
- package/dist/src/agent/embedded/xopc-tools-bridge.js.map +1 -1
- package/dist/src/agent/goals/post-turn.js +7 -6
- package/dist/src/agent/goals/post-turn.js.map +1 -1
- package/dist/src/agent/ipc/bus.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-materialize.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
- package/dist/src/agent/mcp/mcp-transport-config.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +5 -2
- package/dist/src/agent/mcp/mcp-transport.js.map +1 -1
- package/dist/src/agent/memory/context/planner.d.ts +1 -0
- package/dist/src/agent/memory/context/planner.js +60 -14
- package/dist/src/agent/memory/context/planner.js.map +1 -1
- package/dist/src/agent/memory/context/types.d.ts +3 -1
- package/dist/src/agent/memory/lifecycle.d.ts +11 -0
- package/dist/src/agent/memory/lifecycle.js +50 -0
- package/dist/src/agent/memory/lifecycle.js.map +1 -0
- package/dist/src/agent/memory/plugin-discovery.js +1 -1
- package/dist/src/agent/memory/source-origin.d.ts +3 -0
- package/dist/src/agent/memory/source-origin.js +19 -0
- package/dist/src/agent/memory/source-origin.js.map +1 -0
- package/dist/src/agent/memory/understanding/service.js +5 -0
- package/dist/src/agent/memory/understanding/service.js.map +1 -1
- package/dist/src/agent/memory/user-context-coordinator.js +7 -2
- package/dist/src/agent/memory/user-context-coordinator.js.map +1 -1
- package/dist/src/agent/models/manager.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/prompt/sections/behavior.d.ts +2 -0
- package/dist/src/agent/prompt/sections/behavior.js +30 -1
- package/dist/src/agent/prompt/sections/behavior.js.map +1 -1
- package/dist/src/agent/prompt/sections/tooling.js +1 -1
- package/dist/src/agent/prompt/sections/tooling.js.map +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +8 -1
- package/dist/src/agent/prompt/service-prompt-builder.js.map +1 -1
- package/dist/src/agent/prompt/system-prompt.d.ts +2 -0
- package/dist/src/agent/prompt/system-prompt.js +6 -3
- package/dist/src/agent/prompt/system-prompt.js.map +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +22 -0
- package/dist/src/agent/service/process-direct-streaming.js.map +1 -1
- package/dist/src/agent/service.d.ts +2 -0
- package/dist/src/agent/service.js +12 -6
- package/dist/src/agent/service.js.map +1 -1
- package/dist/src/agent/session/session-inspector.js +2 -2
- package/dist/src/agent/skills/hub-pull.js +1 -1
- package/dist/src/agent/starter-agents.js +1 -1
- package/dist/src/agent/starter-agents.js.map +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js.map +1 -1
- package/dist/src/agent/tools/composio-tool.d.ts +18 -5
- package/dist/src/agent/tools/composio-tool.js +252 -35
- package/dist/src/agent/tools/composio-tool.js.map +1 -1
- package/dist/src/agent/tools/factory.js +7 -3
- package/dist/src/agent/tools/factory.js.map +1 -1
- package/dist/src/agent/tools/goal-tool.js +2 -2
- package/dist/src/agent/tools/index.d.ts +1 -1
- package/dist/src/agent/tools/index.js +2 -2
- package/dist/src/agent/tools/workflow-tool.d.ts +0 -1
- package/dist/src/agent/tools/workflow-tool.js +4 -17
- package/dist/src/agent/tools/workflow-tool.js.map +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent/workflow/builtins/index.d.ts +2 -28
- package/dist/src/agent/workflow/builtins/index.js +226 -41
- package/dist/src/agent/workflow/builtins/index.js.map +1 -1
- package/dist/src/agent/workflow/catalog.d.ts +32 -34
- package/dist/src/agent/workflow/catalog.js +158 -154
- package/dist/src/agent/workflow/catalog.js.map +1 -1
- package/dist/src/agent/workflow/index.d.ts +4 -6
- package/dist/src/agent/workflow/index.js +2 -5
- package/dist/src/agent/workflow/snapshot.d.ts +2 -2
- package/dist/src/agent/workflow/snapshot.js +2 -2
- package/dist/src/agent/workflow/snapshot.js.map +1 -1
- package/dist/src/agent/workflow/structured-output-tool.d.ts +2 -2
- package/dist/src/agent/workflow/structured-output-tool.js +2 -2
- package/dist/src/agent/workflow/structured-output-tool.js.map +1 -1
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent/workflow/types.d.ts +31 -26
- package/dist/src/agent/workspace-runtime/registry.js +2 -2
- package/dist/src/agent-manifest/index.d.ts +1 -0
- package/dist/src/agent-manifest/index.js +3 -1
- package/dist/src/agent-manifest/index.js.map +1 -1
- package/dist/src/agent-manifest/preset-chain.d.ts +10 -0
- package/dist/src/agent-manifest/preset-chain.js +32 -0
- package/dist/src/agent-manifest/preset-chain.js.map +1 -0
- package/dist/src/agent-manifest/resolver.js +3 -10
- package/dist/src/agent-manifest/resolver.js.map +1 -1
- package/dist/src/agent-manifest/schema.d.ts +4 -4
- package/dist/src/automations/api/routes.js +14 -2
- package/dist/src/automations/api/routes.js.map +1 -1
- package/dist/src/automations/domain/validation.d.ts +14 -14
- package/dist/src/automations/draft/automation-draft-validator.d.ts +3 -3
- package/dist/src/automations/service/action-executor.js +2 -2
- package/dist/src/browser/cdp-local-launcher.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.d.ts +11 -1
- package/dist/src/browser/providers/browser-ext-install.js +42 -17
- package/dist/src/browser/providers/browser-ext-install.js.map +1 -1
- package/dist/src/browser/providers/cloakbrowser.js +2 -2
- package/dist/src/browser/providers/playwright-doctor.js +1 -1
- package/dist/src/browser/stealth.js +1 -1
- package/dist/src/capabilities/store-connector.d.ts +0 -1
- package/dist/src/capabilities/store-connector.js +4 -6
- package/dist/src/capabilities/store-connector.js.map +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-commands/builtins/goal.js +2 -2
- package/dist/src/chat-commands/builtins/review.js +72 -73
- package/dist/src/chat-commands/builtins/review.js.map +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +9 -54
- package/dist/src/chat-commands/builtins/workflow.js.map +1 -1
- package/dist/src/chat-commands/context.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +2 -2
- package/dist/src/cli/commands/doctor/checks/session-integrity.js +1 -1
- package/dist/src/cli/commands/extension-create.js +2 -2
- package/dist/src/cli/commands/extension-create.js.map +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +43 -37
- package/dist/src/cli/commands/extension-marketplace.js.map +1 -1
- package/dist/src/cli/commands/extension-pack.d.ts +6 -0
- package/dist/src/cli/commands/extension-pack.js +4 -3
- package/dist/src/cli/commands/extension-pack.js.map +1 -1
- package/dist/src/cli/commands/goal.js +2 -2
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/project.js +3 -3
- package/dist/src/commands/agents.config.d.ts +1 -0
- package/dist/src/commands/agents.config.js +1 -0
- package/dist/src/commands/agents.config.js.map +1 -1
- package/dist/src/config/gateway-bind.js +1 -1
- package/dist/src/config/index.js +1 -1
- package/dist/src/config/loader.js +1 -1
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +6 -6
- package/dist/src/config/schema.js +6 -22
- package/dist/src/config/schema.js.map +1 -1
- package/dist/src/config/web-patch.d.ts +1 -1
- package/dist/src/connectors/approval.d.ts +2 -0
- package/dist/src/connectors/approval.js +33 -0
- package/dist/src/connectors/approval.js.map +1 -0
- package/dist/src/connectors/auth-provider-registry.d.ts +9 -0
- package/dist/src/connectors/auth-provider-registry.js +17 -0
- package/dist/src/connectors/auth-provider-registry.js.map +1 -0
- package/dist/src/connectors/builtin-catalog.js +55 -116
- package/dist/src/connectors/builtin-catalog.js.map +1 -1
- package/dist/src/connectors/catalog.js +7 -2
- package/dist/src/connectors/catalog.js.map +1 -1
- package/dist/src/connectors/composio-catalog.d.ts +19 -0
- package/dist/src/connectors/composio-catalog.js +237 -0
- package/dist/src/connectors/composio-catalog.js.map +1 -0
- package/dist/src/connectors/composio-logo.d.ts +1 -0
- package/dist/src/connectors/composio-logo.js +51 -0
- package/dist/src/connectors/composio-logo.js.map +1 -0
- package/dist/src/connectors/composio-sessions.d.ts +116 -0
- package/dist/src/connectors/composio-sessions.js +296 -0
- package/dist/src/connectors/composio-sessions.js.map +1 -0
- package/dist/src/connectors/composio-triggers.d.ts +17 -0
- package/dist/src/connectors/composio-triggers.js +48 -5
- package/dist/src/connectors/composio-triggers.js.map +1 -1
- package/dist/src/connectors/composio.d.ts +31 -2
- package/dist/src/connectors/composio.js +374 -151
- package/dist/src/connectors/composio.js.map +1 -1
- package/dist/src/connectors/connector-memory-sync.d.ts +15 -0
- package/dist/src/connectors/connector-memory-sync.js +90 -0
- package/dist/src/connectors/connector-memory-sync.js.map +1 -0
- package/dist/src/connectors/install.js +35 -92
- package/dist/src/connectors/install.js.map +1 -1
- package/dist/src/connectors/instances.js +6 -2
- package/dist/src/connectors/instances.js.map +1 -1
- package/dist/src/connectors/integration-strategy.d.ts +3 -0
- package/dist/src/connectors/integration-strategy.js +29 -0
- package/dist/src/connectors/integration-strategy.js.map +1 -0
- package/dist/src/connectors/policy.d.ts +13 -0
- package/dist/src/connectors/policy.js +48 -0
- package/dist/src/connectors/policy.js.map +1 -0
- package/dist/src/connectors/providers.js +1 -1
- package/dist/src/connectors/runtime-adapter-registry.d.ts +25 -0
- package/dist/src/connectors/runtime-adapter-registry.js +154 -0
- package/dist/src/connectors/runtime-adapter-registry.js.map +1 -0
- package/dist/src/connectors/types.d.ts +113 -4
- package/dist/src/connectors/workflow-preflight.d.ts +20 -0
- package/dist/src/connectors/workflow-preflight.js +70 -0
- package/dist/src/connectors/workflow-preflight.js.map +1 -0
- package/dist/src/daemon/launchd.js +1 -1
- package/dist/src/daemon/systemd.js +1 -1
- package/dist/src/extensions/discover-extensions.js +1 -1
- package/dist/src/extensions/install-transaction.d.ts +16 -0
- package/dist/src/extensions/install-transaction.js +76 -0
- package/dist/src/extensions/install-transaction.js.map +1 -0
- package/dist/src/extensions/install.d.ts +2 -0
- package/dist/src/extensions/install.js +23 -1
- package/dist/src/extensions/install.js.map +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/gateway/agents-admin.d.ts +2 -0
- package/dist/src/gateway/agents-admin.js +7 -0
- package/dist/src/gateway/agents-admin.js.map +1 -1
- package/dist/src/gateway/capability-presets-admin.d.ts +11 -0
- package/dist/src/gateway/capability-presets-admin.js +11 -4
- package/dist/src/gateway/capability-presets-admin.js.map +1 -1
- package/dist/src/gateway/chat-stream/mapper.js +17 -0
- package/dist/src/gateway/chat-stream/mapper.js.map +1 -1
- package/dist/src/gateway/chat-stream/protocol.d.ts +18 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +3 -3
- package/dist/src/gateway/hono/lib/static-ui.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +3 -0
- package/dist/src/gateway/hono/routes/agents.js.map +1 -1
- package/dist/src/gateway/hono/routes/capability-presets.js +19 -1
- package/dist/src/gateway/hono/routes/capability-presets.js.map +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +188 -25
- package/dist/src/gateway/hono/routes/connectors.js.map +1 -1
- package/dist/src/gateway/hono/routes/goals.js +22 -3
- package/dist/src/gateway/hono/routes/goals.js.map +1 -1
- package/dist/src/gateway/hono/routes/home.d.ts +60 -1
- package/dist/src/gateway/hono/routes/home.js +244 -18
- package/dist/src/gateway/hono/routes/home.js.map +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/lazy-bundles.js.map +1 -1
- package/dist/src/gateway/hono/routes/memory.js +17 -4
- package/dist/src/gateway/hono/routes/memory.js.map +1 -1
- package/dist/src/gateway/hono/routes/projects.js +106 -5
- package/dist/src/gateway/hono/routes/projects.js.map +1 -1
- package/dist/src/gateway/hono/routes/public-gateway.js +93 -0
- package/dist/src/gateway/hono/routes/public-gateway.js.map +1 -1
- package/dist/src/gateway/hono/routes/workflows.js +137 -22
- package/dist/src/gateway/hono/routes/workflows.js.map +1 -1
- package/dist/src/gateway/hono/routes/you.d.ts +23 -0
- package/dist/src/gateway/hono/routes/you.js +538 -0
- package/dist/src/gateway/hono/routes/you.js.map +1 -0
- package/dist/src/gateway/hono/sse.d.ts +2 -1
- package/dist/src/gateway/hono/sse.js +2 -1
- package/dist/src/gateway/hono/sse.js.map +1 -1
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/ports.js +1 -1
- package/dist/src/gateway/service/marketplace-service.d.ts +13 -1
- package/dist/src/gateway/service/marketplace-service.js +96 -40
- package/dist/src/gateway/service/marketplace-service.js.map +1 -1
- package/dist/src/gateway/service.d.ts +2 -0
- package/dist/src/gateway/service.js +13 -7
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/goals/goal-service.d.ts +7 -5
- package/dist/src/goals/goal-service.js +25 -13
- package/dist/src/goals/goal-service.js.map +1 -1
- package/dist/src/goals/goal-store.js +46 -7
- package/dist/src/goals/goal-store.js.map +1 -1
- package/dist/src/goals/goal-workflow-judge.js +1 -1
- package/dist/src/goals/types.d.ts +24 -0
- package/dist/src/infra/ports.js +1 -1
- package/dist/src/infra/ssh-tunnel.js +1 -1
- package/dist/src/infra/update-check.js +1 -1
- package/dist/src/migrations/runner.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/notes/store.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/resolve-tui-session-key.js +1 -1
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/session-title.js +2 -2
- package/dist/src/session/store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +1 -1
- package/dist/src/storage/sqlite/connector-repository.d.ts +49 -0
- package/dist/src/storage/sqlite/connector-repository.js +385 -0
- package/dist/src/storage/sqlite/connector-repository.js.map +1 -0
- package/dist/src/storage/sqlite/index.d.ts +3 -0
- package/dist/src/storage/sqlite/index.js +4 -1
- package/dist/src/storage/sqlite/migrations/030_connectors.sql +94 -0
- package/dist/src/storage/sqlite/migrations/031_connector_approvals.sql +24 -0
- package/dist/src/storage/sqlite/migrations/032_connector_webhook_deliveries.sql +15 -0
- package/dist/src/storage/sqlite/migrations/033_user_trust_policies.sql +6 -0
- package/dist/src/storage/sqlite/migrations/034_allow_global_auto_trust.sql +14 -0
- package/dist/src/storage/sqlite/migrations/035_user_profile_prompt_state.sql +7 -0
- package/dist/src/storage/sqlite/migrations/036_goal_outcome_metric.sql +12 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/migrations/runner.js.map +1 -1
- package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/row-mappers.js +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/user-profile-setup-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/user-profile-setup-repository.js +34 -0
- package/dist/src/storage/sqlite/user-profile-setup-repository.js.map +1 -0
- package/dist/src/storage/sqlite/user-trust-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/user-trust-repository.js +34 -0
- package/dist/src/storage/sqlite/user-trust-repository.js.map +1 -0
- package/dist/src/tui/backends/embedded-backend.js +4 -4
- package/dist/src/tui/clipboard-image.js +1 -1
- package/dist/src/tui/components/assistant-message.js +15 -0
- package/dist/src/tui/components/assistant-message.js.map +1 -1
- package/dist/src/tui/tui-agent-events.js +85 -1
- package/dist/src/tui/tui-agent-events.js.map +1 -1
- package/dist/src/tui/tui-command-formatters.js +9 -9
- package/dist/src/tui/tui-command-formatters.js.map +1 -1
- package/dist/src/tui/tui-commands.js +4 -4
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/tui/tui.js +1 -1
- package/dist/src/user-context/import.d.ts +12 -0
- package/dist/src/user-context/import.js +48 -0
- package/dist/src/user-context/import.js.map +1 -0
- package/dist/src/user-context/profile.d.ts +37 -0
- package/dist/src/user-context/profile.js +165 -0
- package/dist/src/user-context/profile.js.map +1 -0
- package/dist/src/user-context/projection.d.ts +54 -0
- package/dist/src/user-context/projection.js +121 -0
- package/dist/src/user-context/projection.js.map +1 -0
- package/dist/src/user-context/source-recommendations.d.ts +13 -0
- package/dist/src/user-context/source-recommendations.js +86 -0
- package/dist/src/user-context/source-recommendations.js.map +1 -0
- package/dist/src/user-context/trust-policy.d.ts +11 -0
- package/dist/src/user-context/trust-policy.js +31 -0
- package/dist/src/user-context/trust-policy.js.map +1 -0
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/logger/index.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/dist/src/work-items/work-item-service.js +1 -1
- package/dist/src/workflows/authoring/index.d.ts +1 -0
- package/dist/src/workflows/authoring/index.js +2 -0
- package/dist/src/workflows/authoring/workflow-draft-store.d.ts +33 -0
- package/dist/src/workflows/authoring/workflow-draft-store.js +74 -0
- package/dist/src/workflows/authoring/workflow-draft-store.js.map +1 -0
- package/dist/src/workflows/domain/definition-utils.d.ts +6 -4
- package/dist/src/workflows/domain/definition-utils.js +28 -26
- package/dist/src/workflows/domain/definition-utils.js.map +1 -1
- package/dist/src/workflows/domain/definition.d.ts +79 -6
- package/dist/src/workflows/domain/event.d.ts +18 -2
- package/dist/src/workflows/domain/index.js +3 -3
- package/dist/src/workflows/domain/run.d.ts +16 -2
- package/dist/src/workflows/domain/run.js.map +1 -1
- package/dist/src/workflows/domain/validation.d.ts +9 -5
- package/dist/src/workflows/domain/validation.js +183 -40
- package/dist/src/workflows/domain/validation.js.map +1 -1
- package/dist/src/workflows/draft/workflow-draft-prompt.d.ts +2 -3
- package/dist/src/workflows/draft/workflow-draft-prompt.js +31 -73
- package/dist/src/workflows/draft/workflow-draft-prompt.js.map +1 -1
- package/dist/src/workflows/draft/workflow-draft-service.js +5 -9
- package/dist/src/workflows/draft/workflow-draft-service.js.map +1 -1
- package/dist/src/workflows/draft/workflow-draft-validator.js +29 -37
- package/dist/src/workflows/draft/workflow-draft-validator.js.map +1 -1
- package/dist/src/workflows/draft/workflow-draft.types.d.ts +4 -4
- package/dist/src/workflows/engine/projector.js +43 -1
- package/dist/src/workflows/engine/projector.js.map +1 -1
- package/dist/src/workflows/engine/workflow-engine.d.ts +2 -3
- package/dist/src/workflows/engine/workflow-engine.js +24 -4
- package/dist/src/workflows/engine/workflow-engine.js.map +1 -1
- package/dist/src/workflows/index.js +4 -7
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.js +1 -9
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.js.map +1 -1
- package/dist/src/workflows/runtime/graph-workflow-runtime.d.ts +10 -0
- package/dist/src/workflows/runtime/graph-workflow-runtime.js +295 -0
- package/dist/src/workflows/runtime/graph-workflow-runtime.js.map +1 -0
- package/dist/src/workflows/runtime/index.d.ts +1 -2
- package/dist/src/workflows/runtime/index.js +2 -5
- package/dist/src/workflows/runtime/workflow-runtime-port.d.ts +5 -8
- package/dist/src/workflows/service/workflow-run-service.js +15 -1
- package/dist/src/workflows/service/workflow-run-service.js.map +1 -1
- package/dist/src/workflows/service/workflow-run-service.types.d.ts +2 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +3 -3
- package/package.json +5 -4
- package/dist/gateway/static/root/assets/agents-CyvCIHnB.js +0 -2
- package/dist/gateway/static/root/assets/apps-page-DK_Vx6nl.js +0 -1
- package/dist/gateway/static/root/assets/automation-suggestion-card-B1LV3YYv.js +0 -1
- package/dist/gateway/static/root/assets/automations-page-fzrovqhv.js +0 -4
- package/dist/gateway/static/root/assets/block-editor-Dhj5f4Bx.js +0 -184
- package/dist/gateway/static/root/assets/browser-settings-page-BDn-n-UB.js +0 -8
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-Co5ipo_Q.js +0 -1
- package/dist/gateway/static/root/assets/channels-settings-BWlpaxg9.js +0 -1
- package/dist/gateway/static/root/assets/channels-status-swr-D_jkIZLV.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-BcekbW4q.js +0 -2
- package/dist/gateway/static/root/assets/desktop-pet-settings-BJCUuL8Y.js +0 -1
- package/dist/gateway/static/root/assets/dist-Mys7eFJ5.js +0 -1
- package/dist/gateway/static/root/assets/dreaming-settings-BN1Z2mIo.js +0 -3
- package/dist/gateway/static/root/assets/extension-page-B-1KxvVy.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BF9NACI3.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-DN9sNREz.js +0 -1
- package/dist/gateway/static/root/assets/goal-create-dialog-BpoQW8cD.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-CBRSPd0b.js +0 -4
- package/dist/gateway/static/root/assets/goals-page-BCcBi407.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-pkTXzXkh.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-ezsufgLQ.js +0 -1
- package/dist/gateway/static/root/assets/index-B8s8Pq5U.css +0 -1
- package/dist/gateway/static/root/assets/index-DcUaXYeb.js +0 -262
- package/dist/gateway/static/root/assets/logs-page-DQtTRXtj.js +0 -7
- package/dist/gateway/static/root/assets/messages-BXNELNBa.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-panel-BP2M9n6Q.js +0 -2
- package/dist/gateway/static/root/assets/notes-page-CspveYaO.js +0 -1
- package/dist/gateway/static/root/assets/notes-workbench-BHwzJ0OC.js +0 -2
- package/dist/gateway/static/root/assets/project-detail-page-Dy3rsobs.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-CWKpPE0L.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CqNRyXEo.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-MEME7ivF.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-JVd0qaSF.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-DYEbB1EV.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-dWN8BJ3z.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-D8foINzP.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-Tgbv1s7G.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-D_YK0b_Z.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-DGytfoZK.js +0 -2
- package/dist/gateway/static/root/assets/toast-z0toXu32.js +0 -1
- package/dist/gateway/static/root/assets/user-profile-settings-panel-8YtygcJp.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-BVH71EFf.js +0 -1
- package/dist/gateway/static/root/assets/work-item-detail-page-JeTE7XNM.js +0 -1
- package/dist/gateway/static/root/assets/workflow-start-dialog-_u8Uc1ze.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-ixgk_y1l.js +0 -18
- package/dist/src/agent/workflow/builtins/audit-repo.d.ts +0 -13
- package/dist/src/agent/workflow/builtins/audit-repo.js +0 -183
- package/dist/src/agent/workflow/builtins/audit-repo.js.map +0 -1
- package/dist/src/agent/workflow/builtins/client-proposal.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/client-proposal.js +0 -164
- package/dist/src/agent/workflow/builtins/client-proposal.js.map +0 -1
- package/dist/src/agent/workflow/builtins/competitor-scan.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/competitor-scan.js +0 -164
- package/dist/src/agent/workflow/builtins/competitor-scan.js.map +0 -1
- package/dist/src/agent/workflow/builtins/content-draft.d.ts +0 -13
- package/dist/src/agent/workflow/builtins/content-draft.js +0 -159
- package/dist/src/agent/workflow/builtins/content-draft.js.map +0 -1
- package/dist/src/agent/workflow/builtins/content-repurpose.d.ts +0 -11
- package/dist/src/agent/workflow/builtins/content-repurpose.js +0 -146
- package/dist/src/agent/workflow/builtins/content-repurpose.js.map +0 -1
- package/dist/src/agent/workflow/builtins/debug-incident.d.ts +0 -13
- package/dist/src/agent/workflow/builtins/debug-incident.js +0 -177
- package/dist/src/agent/workflow/builtins/debug-incident.js.map +0 -1
- package/dist/src/agent/workflow/builtins/decision-compare.d.ts +0 -13
- package/dist/src/agent/workflow/builtins/decision-compare.js +0 -187
- package/dist/src/agent/workflow/builtins/decision-compare.js.map +0 -1
- package/dist/src/agent/workflow/builtins/implementation-plan.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/implementation-plan.js +0 -185
- package/dist/src/agent/workflow/builtins/implementation-plan.js.map +0 -1
- package/dist/src/agent/workflow/builtins/inbox-triage.d.ts +0 -11
- package/dist/src/agent/workflow/builtins/inbox-triage.js +0 -158
- package/dist/src/agent/workflow/builtins/inbox-triage.js.map +0 -1
- package/dist/src/agent/workflow/builtins/meeting-prep.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/meeting-prep.js +0 -152
- package/dist/src/agent/workflow/builtins/meeting-prep.js.map +0 -1
- package/dist/src/agent/workflow/builtins/multi-perspective-review.d.ts +0 -14
- package/dist/src/agent/workflow/builtins/multi-perspective-review.js +0 -171
- package/dist/src/agent/workflow/builtins/multi-perspective-review.js.map +0 -1
- package/dist/src/agent/workflow/builtins/offer-design.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/offer-design.js +0 -170
- package/dist/src/agent/workflow/builtins/offer-design.js.map +0 -1
- package/dist/src/agent/workflow/builtins/pr-review.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/pr-review.js +0 -178
- package/dist/src/agent/workflow/builtins/pr-review.js.map +0 -1
- package/dist/src/agent/workflow/builtins/release-check.d.ts +0 -11
- package/dist/src/agent/workflow/builtins/release-check.js +0 -174
- package/dist/src/agent/workflow/builtins/release-check.js.map +0 -1
- package/dist/src/agent/workflow/builtins/research.d.ts +0 -13
- package/dist/src/agent/workflow/builtins/research.js +0 -188
- package/dist/src/agent/workflow/builtins/research.js.map +0 -1
- package/dist/src/agent/workflow/builtins/weekly-review.d.ts +0 -12
- package/dist/src/agent/workflow/builtins/weekly-review.js +0 -139
- package/dist/src/agent/workflow/builtins/weekly-review.js.map +0 -1
- package/dist/src/agent/workflow/last-run-memory.d.ts +0 -42
- package/dist/src/agent/workflow/last-run-memory.js +0 -60
- package/dist/src/agent/workflow/last-run-memory.js.map +0 -1
- package/dist/src/agent/workflow/lint.d.ts +0 -38
- package/dist/src/agent/workflow/lint.js +0 -74
- package/dist/src/agent/workflow/lint.js.map +0 -1
- package/dist/src/agent/workflow/meta-locale.d.ts +0 -12
- package/dist/src/agent/workflow/meta-locale.js +0 -62
- package/dist/src/agent/workflow/meta-locale.js.map +0 -1
- package/dist/src/agent/workflow/parser.d.ts +0 -20
- package/dist/src/agent/workflow/parser.js +0 -152
- package/dist/src/agent/workflow/parser.js.map +0 -1
- package/dist/src/agent/workflow/runtime.d.ts +0 -34
- package/dist/src/agent/workflow/runtime.js +0 -402
- package/dist/src/agent/workflow/runtime.js.map +0 -1
- package/dist/src/connectors/oauth.d.ts +0 -22
- package/dist/src/connectors/oauth.js +0 -99
- package/dist/src/connectors/oauth.js.map +0 -1
- package/dist/src/workflows/runtime/script-runtime.d.ts +0 -3
- package/dist/src/workflows/runtime/script-runtime.js +0 -3
- package/dist/src/workflows/runtime/script-workflow-runtime.d.ts +0 -5
- package/dist/src/workflows/runtime/script-workflow-runtime.js +0 -15
- package/dist/src/workflows/runtime/script-workflow-runtime.js.map +0 -1
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
//#region src/agent/workflow/builtins/implementation-plan.ts
|
|
2
|
-
/**
|
|
3
|
-
* Built-in workflow: `implementation_plan`
|
|
4
|
-
*
|
|
5
|
-
* Turns a feature or refactor request into an actionable implementation plan.
|
|
6
|
-
* It first frames the goal, then explores relevant code areas in parallel, and
|
|
7
|
-
* finally synthesizes phased tasks with risks and validation steps.
|
|
8
|
-
*
|
|
9
|
-
* Args:
|
|
10
|
-
* - request: feature, bugfix, or refactor request
|
|
11
|
-
* - scope: optional repo path or subsystem hint
|
|
12
|
-
*/
|
|
13
|
-
const IMPLEMENTATION_PLAN_SCRIPT = `export const meta = {
|
|
14
|
-
name: 'implementation_plan',
|
|
15
|
-
description: 'Create an actionable implementation plan from a feature, refactor, or bugfix request.',
|
|
16
|
-
whenToUse: 'User wants a technical plan before coding, especially for multi-file or unfamiliar code changes.',
|
|
17
|
-
examplePrompts: [
|
|
18
|
-
{ field: 'request', text: 'Plan a refactor of the session store' },
|
|
19
|
-
{ field: 'request', text: 'Design implementation steps for OAuth login' },
|
|
20
|
-
],
|
|
21
|
-
i18n: {
|
|
22
|
-
zh: {
|
|
23
|
-
description: '将功能、重构或修复需求转化为可执行的实现计划。',
|
|
24
|
-
whenToUse: '用户想在动手写代码前拿到技术方案,尤其是多文件或不熟悉代码的改动。',
|
|
25
|
-
examplePrompts: [
|
|
26
|
-
{ field: 'request', text: '规划 session store 的重构步骤' },
|
|
27
|
-
{ field: 'request', text: '设计 OAuth 登录的实现步骤' },
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
tags: ['planning', 'implementation', 'architecture'],
|
|
32
|
-
estimatedAgents: { min: 5, max: 6 },
|
|
33
|
-
phases: [
|
|
34
|
-
{ title: 'Frame' },
|
|
35
|
-
{ title: 'Explore' },
|
|
36
|
-
{ title: 'Plan' },
|
|
37
|
-
{ title: 'Validate' },
|
|
38
|
-
],
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const READ_ONLY_TOOLS = ['read_file', 'grep', 'find', 'list_dir']
|
|
42
|
-
|
|
43
|
-
const request = args && typeof args === 'object' && args.request
|
|
44
|
-
? String(args.request)
|
|
45
|
-
: 'Infer the implementation request from the current conversation context.'
|
|
46
|
-
|
|
47
|
-
const scope = args && typeof args === 'object' && args.scope
|
|
48
|
-
? String(args.scope)
|
|
49
|
-
: '.'
|
|
50
|
-
|
|
51
|
-
phase('Frame')
|
|
52
|
-
const frame = await agent(
|
|
53
|
-
'Frame this implementation request. Identify the desired outcome, non-goals, likely affected domains, and open questions. Be concrete and avoid generic advice.\\n\\n' +
|
|
54
|
-
'REQUEST:\\n' + request + '\\n\\nSCOPE HINT:\\n' + scope,
|
|
55
|
-
{
|
|
56
|
-
label: 'request framing',
|
|
57
|
-
toolset: READ_ONLY_TOOLS,
|
|
58
|
-
schema: {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
outcome: { type: 'string' },
|
|
62
|
-
nonGoals: { type: 'array', items: { type: 'string' } },
|
|
63
|
-
affectedDomains: { type: 'array', items: { type: 'string' } },
|
|
64
|
-
openQuestions: { type: 'array', items: { type: 'string' } },
|
|
65
|
-
},
|
|
66
|
-
required: ['outcome', 'affectedDomains'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const AREAS = [
|
|
72
|
-
{ key: 'entrypoints', focus: 'Routes, commands, UI pages, public APIs, and user-facing surfaces that must change.' },
|
|
73
|
-
{ key: 'domain', focus: 'Core domain model, state transitions, stores, services, and invariants.' },
|
|
74
|
-
{ key: 'integration', focus: 'Cross-module dependencies, config, events, async jobs, persistence, and external APIs.' },
|
|
75
|
-
{ key: 'validation', focus: 'Existing tests, missing regression tests, build/type/lint commands, and release validation.' },
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
phase('Explore')
|
|
79
|
-
const explorations = await parallel(
|
|
80
|
-
AREAS.map((area) => () =>
|
|
81
|
-
agent(
|
|
82
|
-
'Explore the repository for this implementation plan through the ' + area.key + ' lens.\\n' +
|
|
83
|
-
'Focus: ' + area.focus + '\\n\\n' +
|
|
84
|
-
'REQUEST:\\n' + request + '\\n\\n' +
|
|
85
|
-
'FRAME:\\n' + JSON.stringify(frame, null, 2) + '\\n\\n' +
|
|
86
|
-
'Return concrete files/functions/modules to inspect or modify, existing patterns to follow, and constraints that affect the plan.',
|
|
87
|
-
{
|
|
88
|
-
label: area.key + ' exploration',
|
|
89
|
-
toolset: READ_ONLY_TOOLS,
|
|
90
|
-
schema: {
|
|
91
|
-
type: 'object',
|
|
92
|
-
properties: {
|
|
93
|
-
targets: {
|
|
94
|
-
type: 'array',
|
|
95
|
-
items: {
|
|
96
|
-
type: 'object',
|
|
97
|
-
properties: {
|
|
98
|
-
path: { type: 'string' },
|
|
99
|
-
reason: { type: 'string' },
|
|
100
|
-
},
|
|
101
|
-
required: ['path', 'reason'],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
patterns: { type: 'array', items: { type: 'string' } },
|
|
105
|
-
constraints: { type: 'array', items: { type: 'string' } },
|
|
106
|
-
},
|
|
107
|
-
required: ['targets', 'constraints'],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
),
|
|
111
|
-
),
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
phase('Plan')
|
|
115
|
-
const plan = await agent(
|
|
116
|
-
'Synthesize an implementation plan from the framing and explorations. Make it executable by an engineer or coding agent. ' +
|
|
117
|
-
'Use phased tasks, name the concrete files/modules, include sequencing/dependencies, and call out decisions that need user confirmation.\\n\\n' +
|
|
118
|
-
JSON.stringify({ request, scope, frame, explorations }, null, 2),
|
|
119
|
-
{
|
|
120
|
-
label: 'plan synthesis',
|
|
121
|
-
schema: {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: {
|
|
124
|
-
summary: { type: 'string' },
|
|
125
|
-
phases: {
|
|
126
|
-
type: 'array',
|
|
127
|
-
items: {
|
|
128
|
-
type: 'object',
|
|
129
|
-
properties: {
|
|
130
|
-
title: { type: 'string' },
|
|
131
|
-
tasks: { type: 'array', items: { type: 'string' } },
|
|
132
|
-
files: { type: 'array', items: { type: 'string' } },
|
|
133
|
-
},
|
|
134
|
-
required: ['title', 'tasks'],
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
decisions: { type: 'array', items: { type: 'string' } },
|
|
138
|
-
risks: { type: 'array', items: { type: 'string' } },
|
|
139
|
-
},
|
|
140
|
-
required: ['summary', 'phases', 'risks'],
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
)
|
|
144
|
-
|
|
145
|
-
phase('Validate')
|
|
146
|
-
const validation = await agent(
|
|
147
|
-
'Create a validation checklist for this implementation plan. Include targeted tests, full commands, manual UI/API checks if relevant, and rollback/recovery notes.\\n\\n' +
|
|
148
|
-
JSON.stringify({ request, plan }, null, 2),
|
|
149
|
-
{
|
|
150
|
-
label: 'validation checklist',
|
|
151
|
-
toolset: READ_ONLY_TOOLS,
|
|
152
|
-
schema: {
|
|
153
|
-
type: 'object',
|
|
154
|
-
properties: {
|
|
155
|
-
testCommands: { type: 'array', items: { type: 'string' } },
|
|
156
|
-
manualChecks: { type: 'array', items: { type: 'string' } },
|
|
157
|
-
rollbackNotes: { type: 'array', items: { type: 'string' } },
|
|
158
|
-
},
|
|
159
|
-
required: ['testCommands', 'manualChecks'],
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
)
|
|
163
|
-
|
|
164
|
-
const output = {
|
|
165
|
-
ok: true,
|
|
166
|
-
request,
|
|
167
|
-
scope,
|
|
168
|
-
...(plan ?? { summary: 'plan synthesis failed', phases: [], decisions: [], risks: [] }),
|
|
169
|
-
validation: validation ?? { testCommands: [], manualChecks: [], rollbackNotes: [] },
|
|
170
|
-
}
|
|
171
|
-
return {
|
|
172
|
-
summary: output.summary,
|
|
173
|
-
sections: [
|
|
174
|
-
{ kind: 'json', title: 'Plan phases', value: output.phases },
|
|
175
|
-
{ kind: 'questions', title: 'Decisions', items: output.decisions ?? [] },
|
|
176
|
-
{ kind: 'risks', title: 'Risks', items: output.risks.map((title) => ({ title })) },
|
|
177
|
-
{ kind: 'json', title: 'Validation', value: output.validation },
|
|
178
|
-
],
|
|
179
|
-
structuredOutput: output,
|
|
180
|
-
}
|
|
181
|
-
`;
|
|
182
|
-
//#endregion
|
|
183
|
-
export { IMPLEMENTATION_PLAN_SCRIPT };
|
|
184
|
-
|
|
185
|
-
//# sourceMappingURL=implementation-plan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"implementation-plan.js","names":[],"sources":["../../../../../src/agent/workflow/builtins/implementation-plan.ts"],"sourcesContent":["/**\n * Built-in workflow: `implementation_plan`\n *\n * Turns a feature or refactor request into an actionable implementation plan.\n * It first frames the goal, then explores relevant code areas in parallel, and\n * finally synthesizes phased tasks with risks and validation steps.\n *\n * Args:\n * - request: feature, bugfix, or refactor request\n * - scope: optional repo path or subsystem hint\n */\n\nexport const IMPLEMENTATION_PLAN_SCRIPT = `export const meta = {\n name: 'implementation_plan',\n description: 'Create an actionable implementation plan from a feature, refactor, or bugfix request.',\n whenToUse: 'User wants a technical plan before coding, especially for multi-file or unfamiliar code changes.',\n examplePrompts: [\n { field: 'request', text: 'Plan a refactor of the session store' },\n { field: 'request', text: 'Design implementation steps for OAuth login' },\n ],\n i18n: {\n zh: {\n description: '将功能、重构或修复需求转化为可执行的实现计划。',\n whenToUse: '用户想在动手写代码前拿到技术方案,尤其是多文件或不熟悉代码的改动。',\n examplePrompts: [\n { field: 'request', text: '规划 session store 的重构步骤' },\n { field: 'request', text: '设计 OAuth 登录的实现步骤' },\n ],\n },\n },\n tags: ['planning', 'implementation', 'architecture'],\n estimatedAgents: { min: 5, max: 6 },\n phases: [\n { title: 'Frame' },\n { title: 'Explore' },\n { title: 'Plan' },\n { title: 'Validate' },\n ],\n}\n\nconst READ_ONLY_TOOLS = ['read_file', 'grep', 'find', 'list_dir']\n\nconst request = args && typeof args === 'object' && args.request\n ? String(args.request)\n : 'Infer the implementation request from the current conversation context.'\n\nconst scope = args && typeof args === 'object' && args.scope\n ? String(args.scope)\n : '.'\n\nphase('Frame')\nconst frame = await agent(\n 'Frame this implementation request. Identify the desired outcome, non-goals, likely affected domains, and open questions. Be concrete and avoid generic advice.\\\\n\\\\n' +\n 'REQUEST:\\\\n' + request + '\\\\n\\\\nSCOPE HINT:\\\\n' + scope,\n {\n label: 'request framing',\n toolset: READ_ONLY_TOOLS,\n schema: {\n type: 'object',\n properties: {\n outcome: { type: 'string' },\n nonGoals: { type: 'array', items: { type: 'string' } },\n affectedDomains: { type: 'array', items: { type: 'string' } },\n openQuestions: { type: 'array', items: { type: 'string' } },\n },\n required: ['outcome', 'affectedDomains'],\n },\n },\n)\n\nconst AREAS = [\n { key: 'entrypoints', focus: 'Routes, commands, UI pages, public APIs, and user-facing surfaces that must change.' },\n { key: 'domain', focus: 'Core domain model, state transitions, stores, services, and invariants.' },\n { key: 'integration', focus: 'Cross-module dependencies, config, events, async jobs, persistence, and external APIs.' },\n { key: 'validation', focus: 'Existing tests, missing regression tests, build/type/lint commands, and release validation.' },\n]\n\nphase('Explore')\nconst explorations = await parallel(\n AREAS.map((area) => () =>\n agent(\n 'Explore the repository for this implementation plan through the ' + area.key + ' lens.\\\\n' +\n 'Focus: ' + area.focus + '\\\\n\\\\n' +\n 'REQUEST:\\\\n' + request + '\\\\n\\\\n' +\n 'FRAME:\\\\n' + JSON.stringify(frame, null, 2) + '\\\\n\\\\n' +\n 'Return concrete files/functions/modules to inspect or modify, existing patterns to follow, and constraints that affect the plan.',\n {\n label: area.key + ' exploration',\n toolset: READ_ONLY_TOOLS,\n schema: {\n type: 'object',\n properties: {\n targets: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n path: { type: 'string' },\n reason: { type: 'string' },\n },\n required: ['path', 'reason'],\n },\n },\n patterns: { type: 'array', items: { type: 'string' } },\n constraints: { type: 'array', items: { type: 'string' } },\n },\n required: ['targets', 'constraints'],\n },\n },\n ),\n ),\n)\n\nphase('Plan')\nconst plan = await agent(\n 'Synthesize an implementation plan from the framing and explorations. Make it executable by an engineer or coding agent. ' +\n 'Use phased tasks, name the concrete files/modules, include sequencing/dependencies, and call out decisions that need user confirmation.\\\\n\\\\n' +\n JSON.stringify({ request, scope, frame, explorations }, null, 2),\n {\n label: 'plan synthesis',\n schema: {\n type: 'object',\n properties: {\n summary: { type: 'string' },\n phases: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n title: { type: 'string' },\n tasks: { type: 'array', items: { type: 'string' } },\n files: { type: 'array', items: { type: 'string' } },\n },\n required: ['title', 'tasks'],\n },\n },\n decisions: { type: 'array', items: { type: 'string' } },\n risks: { type: 'array', items: { type: 'string' } },\n },\n required: ['summary', 'phases', 'risks'],\n },\n },\n)\n\nphase('Validate')\nconst validation = await agent(\n 'Create a validation checklist for this implementation plan. Include targeted tests, full commands, manual UI/API checks if relevant, and rollback/recovery notes.\\\\n\\\\n' +\n JSON.stringify({ request, plan }, null, 2),\n {\n label: 'validation checklist',\n toolset: READ_ONLY_TOOLS,\n schema: {\n type: 'object',\n properties: {\n testCommands: { type: 'array', items: { type: 'string' } },\n manualChecks: { type: 'array', items: { type: 'string' } },\n rollbackNotes: { type: 'array', items: { type: 'string' } },\n },\n required: ['testCommands', 'manualChecks'],\n },\n },\n)\n\nconst output = {\n ok: true,\n request,\n scope,\n ...(plan ?? { summary: 'plan synthesis failed', phases: [], decisions: [], risks: [] }),\n validation: validation ?? { testCommands: [], manualChecks: [], rollbackNotes: [] },\n}\nreturn {\n summary: output.summary,\n sections: [\n { kind: 'json', title: 'Plan phases', value: output.phases },\n { kind: 'questions', title: 'Decisions', items: output.decisions ?? [] },\n { kind: 'risks', title: 'Risks', items: output.risks.map((title) => ({ title })) },\n { kind: 'json', title: 'Validation', value: output.validation },\n ],\n structuredOutput: output,\n}\n`\n"],"mappings":";;;;;;;;;;;;AAYA,MAAa,6BAA6B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in workflow: `inbox_triage`
|
|
3
|
-
*
|
|
4
|
-
* Triage messy inbox input — emails, messages, todos, ideas — into prioritized
|
|
5
|
-
* action buckets for a solo operator with limited hours.
|
|
6
|
-
*
|
|
7
|
-
* Args:
|
|
8
|
-
* - inbox: pasted items to triage
|
|
9
|
-
* - priorities: this week's focus (optional)
|
|
10
|
-
*/
|
|
11
|
-
export declare const INBOX_TRIAGE_SCRIPT = "export const meta = {\n name: 'inbox_triage',\n description: 'Sort messy inbox input into today-must-do, delegate/automate, defer, and drop \u2014 with priorities.',\n whenToUse: 'Solo operator starting the day with emails, messages, and todos to sort in limited time.',\n examplePrompts: [\n { field: 'inbox', text: 'Client email re: deadline, newsletter idea, tax reminder, Slack ping, bug report' },\n { field: 'priorities', text: 'Ship v1 landing page and close one sales call this week' },\n ],\n i18n: {\n zh: {\n description: '\u5C06\u90AE\u4EF6\u3001\u6D88\u606F\u3001\u5F85\u529E\u7B49\u6742\u4E71\u8F93\u5165\u5206\u62E3\u4E3A\u4ECA\u65E5\u5FC5\u505A\u3001\u53EF\u59D4\u6D3E/\u81EA\u52A8\u5316\u3001\u5EF6\u540E\u3001\u53EF\u5220\u9664\uFF0C\u5E76\u6392\u5E8F\u3002',\n whenToUse: '\u8D85\u7EA7\u4E2A\u4F53\u5F00\u5DE5\u524D\u9700\u8981\u7406\u6E05\u4FE1\u606F\u3001\u4EFB\u52A1\u4F18\u5148\u7EA7\uFF0C\u4E14\u65F6\u95F4\u6709\u9650\u65F6\u3002',\n examplePrompts: [\n { field: 'inbox', text: '\u5BA2\u6237\u50AC\u8FDB\u5EA6\u90AE\u4EF6\u3001newsletter \u7075\u611F\u3001\u62A5\u7A0E\u63D0\u9192\u3001Slack @\u3001\u4E00\u4E2A bug \u53CD\u9988' },\n { field: 'priorities', text: '\u672C\u5468\u8981\u4E0A\u7EBF v1 \u843D\u5730\u9875\u5E76\u5B8C\u6210\u4E00\u6B21\u9500\u552E\u901A\u8BDD' },\n ],\n },\n },\n tags: ['productivity', 'brainstorm'],\n estimatedAgents: { min: 3, max: 4 },\n phases: [\n { title: 'Classify' },\n { title: 'Prioritize' },\n { title: 'Action list' },\n ],\n}\n\nconst inbox = args && typeof args === 'object' && args.inbox\n ? String(args.inbox)\n : 'Infer inbox items from the most recent user turn.'\n\nconst priorities = args && typeof args === 'object' && args.priorities\n ? String(args.priorities)\n : ''\n\nphase('Classify')\nconst classified = await agent(\n 'Classify each inbox item. Buckets: do_today, schedule_later, delegate_or_automate, drop, idea_parking. Extract implicit tasks and estimated minutes.\\n\\n' +\n 'INBOX:\\n' + inbox + '\\nWEEKLY PRIORITIES:\\n' + (priorities || '(not specified)'),\n {\n label: 'classify',\n schema: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n raw: { type: 'string' },\n bucket: {\n type: 'string',\n enum: ['do_today', 'schedule_later', 'delegate_or_automate', 'drop', 'idea_parking'],\n },\n task: { type: 'string' },\n minutes: { type: 'number' },\n },\n required: ['raw', 'bucket', 'task'],\n },\n },\n },\n required: ['items'],\n },\n },\n)\n\nphase('Prioritize')\nconst prioritized = await agent(\n 'Prioritize do_today items for a solo operator with ~4\u20136 focused hours. Rank by impact vs effort. Flag conflicts with weekly priorities. Suggest what to batch.\\n\\n' +\n JSON.stringify({ priorities, classified }, null, 2),\n {\n label: 'prioritize',\n schema: {\n type: 'object',\n properties: {\n rankedToday: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n task: { type: 'string' },\n rank: { type: 'number' },\n impact: { type: 'string', enum: ['low', 'med', 'high'] },\n reason: { type: 'string' },\n },\n required: ['task', 'rank', 'impact'],\n },\n },\n conflicts: { type: 'array', items: { type: 'string' } },\n batchSuggestions: { type: 'array', items: { type: 'string' } },\n },\n required: ['rankedToday'],\n },\n },\n)\n\nphase('Action list')\nconst actionList = await agent(\n 'Produce a concrete action list: top 3 for today with time blocks, quick wins under 15 min, delegate/automate suggestions, and parking lot for ideas. End with one sentence focus theme for the day.\\n\\n' +\n JSON.stringify({ classified, prioritized }, null, 2),\n {\n label: 'action list',\n schema: {\n type: 'object',\n properties: {\n focusTheme: { type: 'string' },\n topThree: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n task: { type: 'string' },\n timeBlock: { type: 'string' },\n },\n required: ['task'],\n },\n },\n quickWins: { type: 'array', items: { type: 'string' } },\n delegateOrAutomate: { type: 'array', items: { type: 'string' } },\n parkingLot: { type: 'array', items: { type: 'string' } },\n },\n required: ['focusTheme', 'topThree'],\n },\n },\n)\n\nconst output = {\n ok: true,\n classified,\n prioritized,\n ...(actionList ?? { focusTheme: 'triage failed', topThree: [] }),\n}\nreturn {\n summary: output.focusTheme,\n sections: [\n { kind: 'json', title: 'Top three', value: output.topThree },\n { kind: 'questions', title: 'Quick wins', items: output.quickWins ?? [] },\n { kind: 'questions', title: 'Delegate or automate', items: output.delegateOrAutomate ?? [] },\n { kind: 'questions', title: 'Parking lot', items: output.parkingLot ?? [] },\n ],\n structuredOutput: output,\n}\n";
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
//#region src/agent/workflow/builtins/inbox-triage.ts
|
|
2
|
-
/**
|
|
3
|
-
* Built-in workflow: `inbox_triage`
|
|
4
|
-
*
|
|
5
|
-
* Triage messy inbox input — emails, messages, todos, ideas — into prioritized
|
|
6
|
-
* action buckets for a solo operator with limited hours.
|
|
7
|
-
*
|
|
8
|
-
* Args:
|
|
9
|
-
* - inbox: pasted items to triage
|
|
10
|
-
* - priorities: this week's focus (optional)
|
|
11
|
-
*/
|
|
12
|
-
const INBOX_TRIAGE_SCRIPT = `export const meta = {
|
|
13
|
-
name: 'inbox_triage',
|
|
14
|
-
description: 'Sort messy inbox input into today-must-do, delegate/automate, defer, and drop — with priorities.',
|
|
15
|
-
whenToUse: 'Solo operator starting the day with emails, messages, and todos to sort in limited time.',
|
|
16
|
-
examplePrompts: [
|
|
17
|
-
{ field: 'inbox', text: 'Client email re: deadline, newsletter idea, tax reminder, Slack ping, bug report' },
|
|
18
|
-
{ field: 'priorities', text: 'Ship v1 landing page and close one sales call this week' },
|
|
19
|
-
],
|
|
20
|
-
i18n: {
|
|
21
|
-
zh: {
|
|
22
|
-
description: '将邮件、消息、待办等杂乱输入分拣为今日必做、可委派/自动化、延后、可删除,并排序。',
|
|
23
|
-
whenToUse: '超级个体开工前需要理清信息、任务优先级,且时间有限时。',
|
|
24
|
-
examplePrompts: [
|
|
25
|
-
{ field: 'inbox', text: '客户催进度邮件、newsletter 灵感、报税提醒、Slack @、一个 bug 反馈' },
|
|
26
|
-
{ field: 'priorities', text: '本周要上线 v1 落地页并完成一次销售通话' },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
tags: ['productivity', 'brainstorm'],
|
|
31
|
-
estimatedAgents: { min: 3, max: 4 },
|
|
32
|
-
phases: [
|
|
33
|
-
{ title: 'Classify' },
|
|
34
|
-
{ title: 'Prioritize' },
|
|
35
|
-
{ title: 'Action list' },
|
|
36
|
-
],
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const inbox = args && typeof args === 'object' && args.inbox
|
|
40
|
-
? String(args.inbox)
|
|
41
|
-
: 'Infer inbox items from the most recent user turn.'
|
|
42
|
-
|
|
43
|
-
const priorities = args && typeof args === 'object' && args.priorities
|
|
44
|
-
? String(args.priorities)
|
|
45
|
-
: ''
|
|
46
|
-
|
|
47
|
-
phase('Classify')
|
|
48
|
-
const classified = await agent(
|
|
49
|
-
'Classify each inbox item. Buckets: do_today, schedule_later, delegate_or_automate, drop, idea_parking. Extract implicit tasks and estimated minutes.\\n\\n' +
|
|
50
|
-
'INBOX:\\n' + inbox + '\\nWEEKLY PRIORITIES:\\n' + (priorities || '(not specified)'),
|
|
51
|
-
{
|
|
52
|
-
label: 'classify',
|
|
53
|
-
schema: {
|
|
54
|
-
type: 'object',
|
|
55
|
-
properties: {
|
|
56
|
-
items: {
|
|
57
|
-
type: 'array',
|
|
58
|
-
items: {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
raw: { type: 'string' },
|
|
62
|
-
bucket: {
|
|
63
|
-
type: 'string',
|
|
64
|
-
enum: ['do_today', 'schedule_later', 'delegate_or_automate', 'drop', 'idea_parking'],
|
|
65
|
-
},
|
|
66
|
-
task: { type: 'string' },
|
|
67
|
-
minutes: { type: 'number' },
|
|
68
|
-
},
|
|
69
|
-
required: ['raw', 'bucket', 'task'],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
required: ['items'],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
phase('Prioritize')
|
|
79
|
-
const prioritized = await agent(
|
|
80
|
-
'Prioritize do_today items for a solo operator with ~4–6 focused hours. Rank by impact vs effort. Flag conflicts with weekly priorities. Suggest what to batch.\\n\\n' +
|
|
81
|
-
JSON.stringify({ priorities, classified }, null, 2),
|
|
82
|
-
{
|
|
83
|
-
label: 'prioritize',
|
|
84
|
-
schema: {
|
|
85
|
-
type: 'object',
|
|
86
|
-
properties: {
|
|
87
|
-
rankedToday: {
|
|
88
|
-
type: 'array',
|
|
89
|
-
items: {
|
|
90
|
-
type: 'object',
|
|
91
|
-
properties: {
|
|
92
|
-
task: { type: 'string' },
|
|
93
|
-
rank: { type: 'number' },
|
|
94
|
-
impact: { type: 'string', enum: ['low', 'med', 'high'] },
|
|
95
|
-
reason: { type: 'string' },
|
|
96
|
-
},
|
|
97
|
-
required: ['task', 'rank', 'impact'],
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
conflicts: { type: 'array', items: { type: 'string' } },
|
|
101
|
-
batchSuggestions: { type: 'array', items: { type: 'string' } },
|
|
102
|
-
},
|
|
103
|
-
required: ['rankedToday'],
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
phase('Action list')
|
|
109
|
-
const actionList = await agent(
|
|
110
|
-
'Produce a concrete action list: top 3 for today with time blocks, quick wins under 15 min, delegate/automate suggestions, and parking lot for ideas. End with one sentence focus theme for the day.\\n\\n' +
|
|
111
|
-
JSON.stringify({ classified, prioritized }, null, 2),
|
|
112
|
-
{
|
|
113
|
-
label: 'action list',
|
|
114
|
-
schema: {
|
|
115
|
-
type: 'object',
|
|
116
|
-
properties: {
|
|
117
|
-
focusTheme: { type: 'string' },
|
|
118
|
-
topThree: {
|
|
119
|
-
type: 'array',
|
|
120
|
-
items: {
|
|
121
|
-
type: 'object',
|
|
122
|
-
properties: {
|
|
123
|
-
task: { type: 'string' },
|
|
124
|
-
timeBlock: { type: 'string' },
|
|
125
|
-
},
|
|
126
|
-
required: ['task'],
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
quickWins: { type: 'array', items: { type: 'string' } },
|
|
130
|
-
delegateOrAutomate: { type: 'array', items: { type: 'string' } },
|
|
131
|
-
parkingLot: { type: 'array', items: { type: 'string' } },
|
|
132
|
-
},
|
|
133
|
-
required: ['focusTheme', 'topThree'],
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
const output = {
|
|
139
|
-
ok: true,
|
|
140
|
-
classified,
|
|
141
|
-
prioritized,
|
|
142
|
-
...(actionList ?? { focusTheme: 'triage failed', topThree: [] }),
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
summary: output.focusTheme,
|
|
146
|
-
sections: [
|
|
147
|
-
{ kind: 'json', title: 'Top three', value: output.topThree },
|
|
148
|
-
{ kind: 'questions', title: 'Quick wins', items: output.quickWins ?? [] },
|
|
149
|
-
{ kind: 'questions', title: 'Delegate or automate', items: output.delegateOrAutomate ?? [] },
|
|
150
|
-
{ kind: 'questions', title: 'Parking lot', items: output.parkingLot ?? [] },
|
|
151
|
-
],
|
|
152
|
-
structuredOutput: output,
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
|
-
//#endregion
|
|
156
|
-
export { INBOX_TRIAGE_SCRIPT };
|
|
157
|
-
|
|
158
|
-
//# sourceMappingURL=inbox-triage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-triage.js","names":[],"sources":["../../../../../src/agent/workflow/builtins/inbox-triage.ts"],"sourcesContent":["/**\n * Built-in workflow: `inbox_triage`\n *\n * Triage messy inbox input — emails, messages, todos, ideas — into prioritized\n * action buckets for a solo operator with limited hours.\n *\n * Args:\n * - inbox: pasted items to triage\n * - priorities: this week's focus (optional)\n */\n\nexport const INBOX_TRIAGE_SCRIPT = `export const meta = {\n name: 'inbox_triage',\n description: 'Sort messy inbox input into today-must-do, delegate/automate, defer, and drop — with priorities.',\n whenToUse: 'Solo operator starting the day with emails, messages, and todos to sort in limited time.',\n examplePrompts: [\n { field: 'inbox', text: 'Client email re: deadline, newsletter idea, tax reminder, Slack ping, bug report' },\n { field: 'priorities', text: 'Ship v1 landing page and close one sales call this week' },\n ],\n i18n: {\n zh: {\n description: '将邮件、消息、待办等杂乱输入分拣为今日必做、可委派/自动化、延后、可删除,并排序。',\n whenToUse: '超级个体开工前需要理清信息、任务优先级,且时间有限时。',\n examplePrompts: [\n { field: 'inbox', text: '客户催进度邮件、newsletter 灵感、报税提醒、Slack @、一个 bug 反馈' },\n { field: 'priorities', text: '本周要上线 v1 落地页并完成一次销售通话' },\n ],\n },\n },\n tags: ['productivity', 'brainstorm'],\n estimatedAgents: { min: 3, max: 4 },\n phases: [\n { title: 'Classify' },\n { title: 'Prioritize' },\n { title: 'Action list' },\n ],\n}\n\nconst inbox = args && typeof args === 'object' && args.inbox\n ? String(args.inbox)\n : 'Infer inbox items from the most recent user turn.'\n\nconst priorities = args && typeof args === 'object' && args.priorities\n ? String(args.priorities)\n : ''\n\nphase('Classify')\nconst classified = await agent(\n 'Classify each inbox item. Buckets: do_today, schedule_later, delegate_or_automate, drop, idea_parking. Extract implicit tasks and estimated minutes.\\\\n\\\\n' +\n 'INBOX:\\\\n' + inbox + '\\\\nWEEKLY PRIORITIES:\\\\n' + (priorities || '(not specified)'),\n {\n label: 'classify',\n schema: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n raw: { type: 'string' },\n bucket: {\n type: 'string',\n enum: ['do_today', 'schedule_later', 'delegate_or_automate', 'drop', 'idea_parking'],\n },\n task: { type: 'string' },\n minutes: { type: 'number' },\n },\n required: ['raw', 'bucket', 'task'],\n },\n },\n },\n required: ['items'],\n },\n },\n)\n\nphase('Prioritize')\nconst prioritized = await agent(\n 'Prioritize do_today items for a solo operator with ~4–6 focused hours. Rank by impact vs effort. Flag conflicts with weekly priorities. Suggest what to batch.\\\\n\\\\n' +\n JSON.stringify({ priorities, classified }, null, 2),\n {\n label: 'prioritize',\n schema: {\n type: 'object',\n properties: {\n rankedToday: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n task: { type: 'string' },\n rank: { type: 'number' },\n impact: { type: 'string', enum: ['low', 'med', 'high'] },\n reason: { type: 'string' },\n },\n required: ['task', 'rank', 'impact'],\n },\n },\n conflicts: { type: 'array', items: { type: 'string' } },\n batchSuggestions: { type: 'array', items: { type: 'string' } },\n },\n required: ['rankedToday'],\n },\n },\n)\n\nphase('Action list')\nconst actionList = await agent(\n 'Produce a concrete action list: top 3 for today with time blocks, quick wins under 15 min, delegate/automate suggestions, and parking lot for ideas. End with one sentence focus theme for the day.\\\\n\\\\n' +\n JSON.stringify({ classified, prioritized }, null, 2),\n {\n label: 'action list',\n schema: {\n type: 'object',\n properties: {\n focusTheme: { type: 'string' },\n topThree: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n task: { type: 'string' },\n timeBlock: { type: 'string' },\n },\n required: ['task'],\n },\n },\n quickWins: { type: 'array', items: { type: 'string' } },\n delegateOrAutomate: { type: 'array', items: { type: 'string' } },\n parkingLot: { type: 'array', items: { type: 'string' } },\n },\n required: ['focusTheme', 'topThree'],\n },\n },\n)\n\nconst output = {\n ok: true,\n classified,\n prioritized,\n ...(actionList ?? { focusTheme: 'triage failed', topThree: [] }),\n}\nreturn {\n summary: output.focusTheme,\n sections: [\n { kind: 'json', title: 'Top three', value: output.topThree },\n { kind: 'questions', title: 'Quick wins', items: output.quickWins ?? [] },\n { kind: 'questions', title: 'Delegate or automate', items: output.delegateOrAutomate ?? [] },\n { kind: 'questions', title: 'Parking lot', items: output.parkingLot ?? [] },\n ],\n structuredOutput: output,\n}\n`\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,sBAAsB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in workflow: `meeting_prep`
|
|
3
|
-
*
|
|
4
|
-
* Prepares for a meeting by building context, an agenda, and talking points.
|
|
5
|
-
* Useful for 1:1s, client calls, interviews, or team syncs — no code required.
|
|
6
|
-
*
|
|
7
|
-
* Args:
|
|
8
|
-
* - meeting_topic: what the meeting is about
|
|
9
|
-
* - attendees: who is involved (optional)
|
|
10
|
-
* - goal: desired outcome (optional)
|
|
11
|
-
*/
|
|
12
|
-
export declare const MEETING_PREP_SCRIPT = "export const meta = {\n name: 'meeting_prep',\n description: 'Build meeting context, a tight agenda, and prioritized talking points.',\n whenToUse: 'User has an upcoming meeting and wants prep \u2014 agenda, questions, and key messages.',\n examplePrompts: [\n { field: 'meeting_topic', text: 'Prep for a quarterly business review with leadership' },\n { field: 'meeting_topic', text: 'Prepare talking points for a vendor negotiation call' },\n ],\n i18n: {\n zh: {\n description: '\u6574\u7406\u4F1A\u8BAE\u80CC\u666F\u3001\u7D27\u51D1\u8BAE\u7A0B\u4E0E\u4F18\u5148\u53D1\u8A00\u8981\u70B9\u3002',\n whenToUse: '\u7528\u6237\u5373\u5C06\u53C2\u52A0\u4F1A\u8BAE\uFF0C\u9700\u8981\u8BAE\u7A0B\u3001\u63D0\u95EE\u4E0E\u5173\u952E\u4FE1\u606F\u51C6\u5907\u65F6\u3002',\n examplePrompts: [\n { field: 'meeting_topic', text: '\u51C6\u5907\u4E0E\u9886\u5BFC\u5C42\u7684\u5B63\u5EA6\u4E1A\u52A1\u590D\u76D8\u4F1A' },\n { field: 'meeting_topic', text: '\u51C6\u5907\u4F9B\u5E94\u5546\u8C08\u5224\u7535\u8BDD\u7684\u53D1\u8A00\u8981\u70B9' },\n ],\n },\n },\n tags: ['meeting', 'productivity'],\n estimatedAgents: { min: 3, max: 5 },\n phases: [\n { title: 'Context' },\n { title: 'Agenda' },\n { title: 'Talking points' },\n ],\n}\n\nconst meetingTopic = args && typeof args === 'object' && args.meeting_topic\n ? String(args.meeting_topic)\n : 'Infer the meeting topic from the most recent user turn.'\n\nconst attendees = args && typeof args === 'object' && args.attendees\n ? String(args.attendees)\n : 'not specified'\n\nconst goal = args && typeof args === 'object' && args.goal\n ? String(args.goal)\n : 'achieve a clear outcome and aligned next steps'\n\nphase('Context')\nconst context = await agent(\n 'Summarize meeting context. Identify stakeholder interests, likely tensions, information gaps, and success criteria.\\n\\n' +\n 'MEETING:\\n' + meetingTopic + '\\nATTENDEES:\\n' + attendees + '\\nGOAL:\\n' + goal,\n {\n label: 'context',\n schema: {\n type: 'object',\n properties: {\n summary: { type: 'string' },\n stakeholderInterests: { type: 'array', items: { type: 'string' } },\n tensions: { type: 'array', items: { type: 'string' } },\n informationGaps: { type: 'array', items: { type: 'string' } },\n successCriteria: { type: 'array', items: { type: 'string' } },\n },\n required: ['summary', 'successCriteria'],\n },\n },\n)\n\nphase('Agenda')\nconst agenda = await agent(\n 'Draft a time-boxed agenda (30\u201360 min unless context suggests otherwise). Each item needs an owner hint and desired output. Prioritize decisions over status updates.\\n\\n' +\n JSON.stringify({ meetingTopic, attendees, goal, context }, null, 2),\n {\n label: 'agenda',\n schema: {\n type: 'object',\n properties: {\n durationMin: { type: 'number' },\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n title: { type: 'string' },\n minutes: { type: 'number' },\n owner: { type: 'string' },\n output: { type: 'string' },\n },\n required: ['title', 'minutes', 'output'],\n },\n },\n },\n required: ['items'],\n },\n },\n)\n\nphase('Talking points')\nconst talkingPoints = await agent(\n 'Produce prioritized talking points: opening line, 3\u20135 key messages, smart questions to ask, objections to anticipate with responses, and a crisp closing ask.\\n\\n' +\n JSON.stringify({ meetingTopic, context, agenda }, null, 2),\n {\n label: 'talking points',\n schema: {\n type: 'object',\n properties: {\n openingLine: { type: 'string' },\n keyMessages: { type: 'array', items: { type: 'string' } },\n questionsToAsk: { type: 'array', items: { type: 'string' } },\n objections: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n objection: { type: 'string' },\n response: { type: 'string' },\n },\n required: ['objection', 'response'],\n },\n },\n closingAsk: { type: 'string' },\n },\n required: ['keyMessages', 'closingAsk'],\n },\n },\n)\n\nconst output = {\n ok: true,\n meetingTopic,\n attendees,\n goal,\n context,\n agenda,\n talkingPoints,\n}\nreturn {\n summary: output.talkingPoints?.closingAsk ?? output.goal,\n sections: [\n { kind: 'json', title: 'Agenda', value: output.agenda },\n { kind: 'json', title: 'Talking points', value: output.talkingPoints },\n ],\n structuredOutput: output,\n}\n";
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
//#region src/agent/workflow/builtins/meeting-prep.ts
|
|
2
|
-
/**
|
|
3
|
-
* Built-in workflow: `meeting_prep`
|
|
4
|
-
*
|
|
5
|
-
* Prepares for a meeting by building context, an agenda, and talking points.
|
|
6
|
-
* Useful for 1:1s, client calls, interviews, or team syncs — no code required.
|
|
7
|
-
*
|
|
8
|
-
* Args:
|
|
9
|
-
* - meeting_topic: what the meeting is about
|
|
10
|
-
* - attendees: who is involved (optional)
|
|
11
|
-
* - goal: desired outcome (optional)
|
|
12
|
-
*/
|
|
13
|
-
const MEETING_PREP_SCRIPT = `export const meta = {
|
|
14
|
-
name: 'meeting_prep',
|
|
15
|
-
description: 'Build meeting context, a tight agenda, and prioritized talking points.',
|
|
16
|
-
whenToUse: 'User has an upcoming meeting and wants prep — agenda, questions, and key messages.',
|
|
17
|
-
examplePrompts: [
|
|
18
|
-
{ field: 'meeting_topic', text: 'Prep for a quarterly business review with leadership' },
|
|
19
|
-
{ field: 'meeting_topic', text: 'Prepare talking points for a vendor negotiation call' },
|
|
20
|
-
],
|
|
21
|
-
i18n: {
|
|
22
|
-
zh: {
|
|
23
|
-
description: '整理会议背景、紧凑议程与优先发言要点。',
|
|
24
|
-
whenToUse: '用户即将参加会议,需要议程、提问与关键信息准备时。',
|
|
25
|
-
examplePrompts: [
|
|
26
|
-
{ field: 'meeting_topic', text: '准备与领导层的季度业务复盘会' },
|
|
27
|
-
{ field: 'meeting_topic', text: '准备供应商谈判电话的发言要点' },
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
tags: ['meeting', 'productivity'],
|
|
32
|
-
estimatedAgents: { min: 3, max: 5 },
|
|
33
|
-
phases: [
|
|
34
|
-
{ title: 'Context' },
|
|
35
|
-
{ title: 'Agenda' },
|
|
36
|
-
{ title: 'Talking points' },
|
|
37
|
-
],
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const meetingTopic = args && typeof args === 'object' && args.meeting_topic
|
|
41
|
-
? String(args.meeting_topic)
|
|
42
|
-
: 'Infer the meeting topic from the most recent user turn.'
|
|
43
|
-
|
|
44
|
-
const attendees = args && typeof args === 'object' && args.attendees
|
|
45
|
-
? String(args.attendees)
|
|
46
|
-
: 'not specified'
|
|
47
|
-
|
|
48
|
-
const goal = args && typeof args === 'object' && args.goal
|
|
49
|
-
? String(args.goal)
|
|
50
|
-
: 'achieve a clear outcome and aligned next steps'
|
|
51
|
-
|
|
52
|
-
phase('Context')
|
|
53
|
-
const context = await agent(
|
|
54
|
-
'Summarize meeting context. Identify stakeholder interests, likely tensions, information gaps, and success criteria.\\n\\n' +
|
|
55
|
-
'MEETING:\\n' + meetingTopic + '\\nATTENDEES:\\n' + attendees + '\\nGOAL:\\n' + goal,
|
|
56
|
-
{
|
|
57
|
-
label: 'context',
|
|
58
|
-
schema: {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
summary: { type: 'string' },
|
|
62
|
-
stakeholderInterests: { type: 'array', items: { type: 'string' } },
|
|
63
|
-
tensions: { type: 'array', items: { type: 'string' } },
|
|
64
|
-
informationGaps: { type: 'array', items: { type: 'string' } },
|
|
65
|
-
successCriteria: { type: 'array', items: { type: 'string' } },
|
|
66
|
-
},
|
|
67
|
-
required: ['summary', 'successCriteria'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
phase('Agenda')
|
|
73
|
-
const agenda = await agent(
|
|
74
|
-
'Draft a time-boxed agenda (30–60 min unless context suggests otherwise). Each item needs an owner hint and desired output. Prioritize decisions over status updates.\\n\\n' +
|
|
75
|
-
JSON.stringify({ meetingTopic, attendees, goal, context }, null, 2),
|
|
76
|
-
{
|
|
77
|
-
label: 'agenda',
|
|
78
|
-
schema: {
|
|
79
|
-
type: 'object',
|
|
80
|
-
properties: {
|
|
81
|
-
durationMin: { type: 'number' },
|
|
82
|
-
items: {
|
|
83
|
-
type: 'array',
|
|
84
|
-
items: {
|
|
85
|
-
type: 'object',
|
|
86
|
-
properties: {
|
|
87
|
-
title: { type: 'string' },
|
|
88
|
-
minutes: { type: 'number' },
|
|
89
|
-
owner: { type: 'string' },
|
|
90
|
-
output: { type: 'string' },
|
|
91
|
-
},
|
|
92
|
-
required: ['title', 'minutes', 'output'],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
required: ['items'],
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
phase('Talking points')
|
|
102
|
-
const talkingPoints = await agent(
|
|
103
|
-
'Produce prioritized talking points: opening line, 3–5 key messages, smart questions to ask, objections to anticipate with responses, and a crisp closing ask.\\n\\n' +
|
|
104
|
-
JSON.stringify({ meetingTopic, context, agenda }, null, 2),
|
|
105
|
-
{
|
|
106
|
-
label: 'talking points',
|
|
107
|
-
schema: {
|
|
108
|
-
type: 'object',
|
|
109
|
-
properties: {
|
|
110
|
-
openingLine: { type: 'string' },
|
|
111
|
-
keyMessages: { type: 'array', items: { type: 'string' } },
|
|
112
|
-
questionsToAsk: { type: 'array', items: { type: 'string' } },
|
|
113
|
-
objections: {
|
|
114
|
-
type: 'array',
|
|
115
|
-
items: {
|
|
116
|
-
type: 'object',
|
|
117
|
-
properties: {
|
|
118
|
-
objection: { type: 'string' },
|
|
119
|
-
response: { type: 'string' },
|
|
120
|
-
},
|
|
121
|
-
required: ['objection', 'response'],
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
closingAsk: { type: 'string' },
|
|
125
|
-
},
|
|
126
|
-
required: ['keyMessages', 'closingAsk'],
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
)
|
|
130
|
-
|
|
131
|
-
const output = {
|
|
132
|
-
ok: true,
|
|
133
|
-
meetingTopic,
|
|
134
|
-
attendees,
|
|
135
|
-
goal,
|
|
136
|
-
context,
|
|
137
|
-
agenda,
|
|
138
|
-
talkingPoints,
|
|
139
|
-
}
|
|
140
|
-
return {
|
|
141
|
-
summary: output.talkingPoints?.closingAsk ?? output.goal,
|
|
142
|
-
sections: [
|
|
143
|
-
{ kind: 'json', title: 'Agenda', value: output.agenda },
|
|
144
|
-
{ kind: 'json', title: 'Talking points', value: output.talkingPoints },
|
|
145
|
-
],
|
|
146
|
-
structuredOutput: output,
|
|
147
|
-
}
|
|
148
|
-
`;
|
|
149
|
-
//#endregion
|
|
150
|
-
export { MEETING_PREP_SCRIPT };
|
|
151
|
-
|
|
152
|
-
//# sourceMappingURL=meeting-prep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meeting-prep.js","names":[],"sources":["../../../../../src/agent/workflow/builtins/meeting-prep.ts"],"sourcesContent":["/**\n * Built-in workflow: `meeting_prep`\n *\n * Prepares for a meeting by building context, an agenda, and talking points.\n * Useful for 1:1s, client calls, interviews, or team syncs — no code required.\n *\n * Args:\n * - meeting_topic: what the meeting is about\n * - attendees: who is involved (optional)\n * - goal: desired outcome (optional)\n */\n\nexport const MEETING_PREP_SCRIPT = `export const meta = {\n name: 'meeting_prep',\n description: 'Build meeting context, a tight agenda, and prioritized talking points.',\n whenToUse: 'User has an upcoming meeting and wants prep — agenda, questions, and key messages.',\n examplePrompts: [\n { field: 'meeting_topic', text: 'Prep for a quarterly business review with leadership' },\n { field: 'meeting_topic', text: 'Prepare talking points for a vendor negotiation call' },\n ],\n i18n: {\n zh: {\n description: '整理会议背景、紧凑议程与优先发言要点。',\n whenToUse: '用户即将参加会议,需要议程、提问与关键信息准备时。',\n examplePrompts: [\n { field: 'meeting_topic', text: '准备与领导层的季度业务复盘会' },\n { field: 'meeting_topic', text: '准备供应商谈判电话的发言要点' },\n ],\n },\n },\n tags: ['meeting', 'productivity'],\n estimatedAgents: { min: 3, max: 5 },\n phases: [\n { title: 'Context' },\n { title: 'Agenda' },\n { title: 'Talking points' },\n ],\n}\n\nconst meetingTopic = args && typeof args === 'object' && args.meeting_topic\n ? String(args.meeting_topic)\n : 'Infer the meeting topic from the most recent user turn.'\n\nconst attendees = args && typeof args === 'object' && args.attendees\n ? String(args.attendees)\n : 'not specified'\n\nconst goal = args && typeof args === 'object' && args.goal\n ? String(args.goal)\n : 'achieve a clear outcome and aligned next steps'\n\nphase('Context')\nconst context = await agent(\n 'Summarize meeting context. Identify stakeholder interests, likely tensions, information gaps, and success criteria.\\\\n\\\\n' +\n 'MEETING:\\\\n' + meetingTopic + '\\\\nATTENDEES:\\\\n' + attendees + '\\\\nGOAL:\\\\n' + goal,\n {\n label: 'context',\n schema: {\n type: 'object',\n properties: {\n summary: { type: 'string' },\n stakeholderInterests: { type: 'array', items: { type: 'string' } },\n tensions: { type: 'array', items: { type: 'string' } },\n informationGaps: { type: 'array', items: { type: 'string' } },\n successCriteria: { type: 'array', items: { type: 'string' } },\n },\n required: ['summary', 'successCriteria'],\n },\n },\n)\n\nphase('Agenda')\nconst agenda = await agent(\n 'Draft a time-boxed agenda (30–60 min unless context suggests otherwise). Each item needs an owner hint and desired output. Prioritize decisions over status updates.\\\\n\\\\n' +\n JSON.stringify({ meetingTopic, attendees, goal, context }, null, 2),\n {\n label: 'agenda',\n schema: {\n type: 'object',\n properties: {\n durationMin: { type: 'number' },\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n title: { type: 'string' },\n minutes: { type: 'number' },\n owner: { type: 'string' },\n output: { type: 'string' },\n },\n required: ['title', 'minutes', 'output'],\n },\n },\n },\n required: ['items'],\n },\n },\n)\n\nphase('Talking points')\nconst talkingPoints = await agent(\n 'Produce prioritized talking points: opening line, 3–5 key messages, smart questions to ask, objections to anticipate with responses, and a crisp closing ask.\\\\n\\\\n' +\n JSON.stringify({ meetingTopic, context, agenda }, null, 2),\n {\n label: 'talking points',\n schema: {\n type: 'object',\n properties: {\n openingLine: { type: 'string' },\n keyMessages: { type: 'array', items: { type: 'string' } },\n questionsToAsk: { type: 'array', items: { type: 'string' } },\n objections: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n objection: { type: 'string' },\n response: { type: 'string' },\n },\n required: ['objection', 'response'],\n },\n },\n closingAsk: { type: 'string' },\n },\n required: ['keyMessages', 'closingAsk'],\n },\n },\n)\n\nconst output = {\n ok: true,\n meetingTopic,\n attendees,\n goal,\n context,\n agenda,\n talkingPoints,\n}\nreturn {\n summary: output.talkingPoints?.closingAsk ?? output.goal,\n sections: [\n { kind: 'json', title: 'Agenda', value: output.agenda },\n { kind: 'json', title: 'Talking points', value: output.talkingPoints },\n ],\n structuredOutput: output,\n}\n`\n"],"mappings":";;;;;;;;;;;;AAYA,MAAa,sBAAsB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Built-in workflow: `multi_perspective_review`
|
|
3
|
-
*
|
|
4
|
-
* Reviews a target (file, PR, design doc, plan — passed via args.target) from
|
|
5
|
-
* several independent perspectives, then asks an adversarial judge to decide
|
|
6
|
-
* what would actually break in practice. Useful for sanity-checking decisions
|
|
7
|
-
* before they ship.
|
|
8
|
-
*
|
|
9
|
-
* Args:
|
|
10
|
-
* - target: what to review
|
|
11
|
-
* - lenses: optional array of { name, angle } to override default lenses
|
|
12
|
-
* - skipAdversarial: when true, skip the adversarial judge phase
|
|
13
|
-
*/
|
|
14
|
-
export declare const MULTI_PERSPECTIVE_REVIEW_SCRIPT = "export const meta = {\n name: 'multi_perspective_review',\n description: 'Review a target from N independent perspectives, then adversarially judge what would actually break.',\n whenToUse: 'User wants a stress-test of a design, plan, PR, or proposal before committing to it.',\n examplePrompts: [\n { field: 'target', text: 'Stress-test this API redesign before we ship' },\n { field: 'target', text: 'Review the migration plan from multiple angles' },\n ],\n i18n: {\n zh: {\n description: '\u4ECE\u591A\u4E2A\u72EC\u7ACB\u89C6\u89D2\u8BC4\u5BA1\u76EE\u6807\uFF0C\u5E76\u7531\u5BF9\u6297\u6027\u8BC4\u5BA1\u5224\u65AD\u5B9E\u9645\u4F1A\u51FA\u4EC0\u4E48\u95EE\u9898\u3002',\n whenToUse: '\u7528\u6237\u60F3\u5728\u843D\u5730\u524D\u5BF9\u8BBE\u8BA1\u3001\u65B9\u6848\u3001PR \u6216\u63D0\u6848\u505A\u538B\u529B\u6D4B\u8BD5\u65F6\u3002',\n examplePrompts: [\n { field: 'target', text: '\u4E0A\u7EBF\u524D\u4ECE\u591A\u89D2\u5EA6\u538B\u529B\u6D4B\u8BD5\u8FD9\u4E2A API redesign' },\n { field: 'target', text: '\u4ECE\u591A\u4E2A\u89C6\u89D2\u8BC4\u5BA1\u8FD9\u4EFD\u8FC1\u79FB\u65B9\u6848' },\n ],\n },\n },\n tags: ['review', 'planning', 'decision'],\n estimatedAgents: { min: 5, max: 6 },\n phases: [\n { title: 'Lenses' },\n { title: 'Adversarial' },\n { title: 'Synthesize' },\n ],\n}\n\nconst READ_ONLY_TOOLS = ['read_file', 'grep', 'find', 'list_dir']\n\nconst target = args && typeof args === 'object' && args.target\n ? String(args.target)\n : 'No explicit target was provided. Treat the currently focused file or recent context as the target.'\n\nconst skipAdversarial = Boolean(args && typeof args === 'object' && args.skipAdversarial)\n\nconst DEFAULT_LENSES = [\n { name: 'User', angle: 'How a real user experiences this. Friction, confusion, surprise paths, accessibility.' },\n { name: 'Operator', angle: 'How an on-call engineer experiences this in production. Failure modes, observability, rollback.' },\n { name: 'Skeptic', angle: 'Hidden assumptions. What is being implied but not stated. What would break under load or weird input.' },\n { name: 'Maintainer', angle: 'Six-month-later view. Clarity, naming, layering, ease of changing nearby code.' },\n]\n\nlet lenses = DEFAULT_LENSES\nif (args && typeof args === 'object' && Array.isArray(args.lenses) && args.lenses.length) {\n lenses = args.lenses\n .filter((l) => l && typeof l === 'object' && l.name && l.angle)\n .map((l) => ({ name: String(l.name), angle: String(l.angle) }))\n if (!lenses.length) lenses = DEFAULT_LENSES\n}\n\nphase('Lenses')\nconst lensViews = await parallel(\n lenses.map((l) => () =>\n agent(\n 'Review the following target through the ' + l.name + ' lens.\\n' +\n 'Lens focus: ' + l.angle + '\\n\\n' +\n 'TARGET:\\n' + target + '\\n\\n' +\n 'Return 3\u20137 concrete observations. Each entry: title (5\u201310 words), why-it-matters (1 sentence), risk (low/med/high).',\n {\n label: l.name + ' lens',\n toolset: READ_ONLY_TOOLS,\n schema: {\n type: 'object',\n properties: {\n observations: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n title: { type: 'string' },\n why: { type: 'string' },\n risk: { type: 'string', enum: ['low', 'med', 'high'] },\n },\n required: ['title', 'why', 'risk'],\n },\n },\n },\n required: ['observations'],\n },\n },\n ),\n ),\n)\n\nconst valid = lensViews.filter(Boolean)\nconst allObs = valid.flatMap((v, i) =>\n (v?.observations ?? []).map((o) => ({ lens: lenses[i].name, ...o })),\n)\n\nlet verdict = null\nif (!skipAdversarial) {\n phase('Adversarial')\n verdict = await agent(\n 'You are an adversarial judge. Given these multi-lens observations of a target, decide which would actually cause real harm if shipped as-is. ' +\n 'Default to realRisk=false unless an observation has clear, mechanism-level evidence. ' +\n 'Rate evidenceStrength as weak | moderate | strong.\\n\\n' +\n JSON.stringify(allObs, null, 2),\n {\n label: 'adversarial verdict',\n schema: {\n type: 'object',\n properties: {\n verdicts: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n title: { type: 'string' },\n lens: { type: 'string' },\n realRisk: { type: 'boolean' },\n evidenceStrength: { type: 'string', enum: ['weak', 'moderate', 'strong'] },\n reason: { type: 'string' },\n },\n required: ['title', 'lens', 'realRisk', 'evidenceStrength', 'reason'],\n },\n },\n },\n required: ['verdicts'],\n },\n },\n )\n}\n\nphase('Synthesize')\nconst confirmed = (verdict?.verdicts ?? []).filter((v) => v.realRisk)\nconst goNoGo = skipAdversarial\n ? (allObs.some((o) => o.risk === 'high') ? 'fix_first' : 'ship')\n : confirmed.some((v) => v.evidenceStrength === 'strong')\n ? 'fix_first'\n : confirmed.length\n ? 'fix_first'\n : 'ship'\n\nconst output = {\n ok: true,\n target,\n lenses: lenses.map((l) => l.name),\n skipAdversarial,\n observationCount: allObs.length,\n confirmedRiskCount: confirmed.length,\n goNoGo,\n topRisks: confirmed.slice(0, 10),\n allVerdicts: verdict?.verdicts ?? [],\n}\nreturn {\n summary: output.goNoGo === 'ship' ? 'No confirmed blocking risks.' : 'Confirmed risks need attention before shipping.',\n sections: [\n { kind: 'risks', title: 'Top risks', items: output.topRisks.map((item) => ({ title: item.title, severity: item.evidenceStrength === 'strong' ? 'high' : 'medium', detail: item.reason })) },\n { kind: 'json', title: 'All verdicts', value: output.allVerdicts },\n ],\n structuredOutput: output,\n}\n";
|