@xopcai/xopc 0.0.278 → 0.0.282
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/dist/browser-ext/_locales/en/messages.json +34 -4
- package/dist/browser-ext/_locales/zh_CN/messages.json +34 -4
- package/dist/browser-ext/dist/assets/{auth-ClQTK565.js → auth-DB30ywek.js} +18 -53
- package/dist/browser-ext/dist/assets/pcm-capture-worklet-CGN9Mlhg.js +39 -0
- package/dist/browser-ext/dist/assets/{sidepanel-CeGqObOa.css → sidepanel-BbSQr-6P.css} +40 -6
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +2 -2
- package/dist/browser-ext/dist/sidepanel.js +1219 -191
- package/dist/browser-ext/manifest.json +2 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{activity-store-SJZ5fS17.js → activity-store-iPtG94qr.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-lRVOwbrK.js → agent-avatar-dicebear-Cny5rATT.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-OyQ8OVZv.js +1 -0
- package/dist/gateway/static/root/assets/{agents-DNQNTDkU.js → agents-DJeh_Ewo.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CnJAVHBu.js → api-KMJzMqvZ.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-oHTY5PDs.js → app-management-settings-panel-ZqQKaZEI.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-B0YnZ3ig.js → appearance-settings-CfXsQkKO.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-k-QnVhKW.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D4x142le.js → archive-plugin-BrW53Hap.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-zibD2Hod.js → attachment-load-DkfFWHiS.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-Dkp7gp_S.js → automations-page-e-5we6kD.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-DPnlkws1.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CfUzu1Hc.js → binary-plugins-CWIswfXA.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-r5nCBBan.js → block-editor-CfeF1OmA.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-DcVLoIzc.js → browser-automation-inputs-BTIufVbM.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-BnL4JnTM.js → browser-automations-page-DnsuWKRu.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-C8xyhnxx.js +8 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CBllOLTT.js +8 -0
- package/dist/gateway/static/root/assets/channels-settings-C-A-VUE2.js +1 -0
- package/dist/gateway/static/root/assets/{channels-status-swr-BTT2sIGg.js → channels-status-swr-DMYQNs-J.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CWVnJtBp.js → chat-terminal-dock-C_Fw1R3A.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-CtsMo3H4.js +2 -0
- package/dist/gateway/static/root/assets/{date-picker-XjPSlgq_.js → date-picker-CPFxjTrN.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-CkyfEP88.js → dependency-picker-C_5KqzjI.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BAE_NVx5.js → desktop-pet-DLJsC5D6.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BUw6V2R9.js → desktop-pet-settings-BdI1iSgz.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-BnvPLhc9.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-giBeIVUT.js → extension-debug-page-BNS_TkZQ.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Bqo9bNtx.js → extension-page-DMSDZ7Mb.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BX-6AA3k.js → extension-settings-page-CeGCWMt0.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-config-swr-Cpmyrr6j.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-DKOTYUma.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CVTa5HSS.js → gateway-startup-retry-DoiPeb65.js} +1 -1
- package/dist/gateway/static/root/assets/{heartbeat-settings-DWFAopk_.js → heartbeat-settings-gsdL_Yij.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-CbeAdS1T.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DtMRG1oF.js → image-generation-api-CqjHWl2T.js} +1 -1
- package/dist/gateway/static/root/assets/index-B_Sg5BKz.css +2 -0
- package/dist/gateway/static/root/assets/index-enFXJJCU.js +74 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BKGPpBnV.js → keyboard-shortcuts-settings-CCLtJ8s8.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DzC6SrXj.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-B06ToOxB.js → local-apps-page-3LdgP3NO.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-BkJ7g35d.js → locale-store-1urrBBCQ.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-DibI1GsP.js → logs-page-DHClKtm6.js} +2 -2
- package/dist/gateway/static/root/assets/{management-settings-DJ6yMZCd.js → management-settings-BaCo9Nuo.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DF3aJP_5.js → markdown-view-BZmcFIWa.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-CdrLNAks.js → media-plugins-BMjJppvG.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DYFcjtmG.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-hYO2jNhL.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-BT66x22W.js +8 -0
- package/dist/gateway/static/root/assets/{page-tabs-B7LA4z-x.js → page-tabs-BCszXX_F.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-DTQRN7WR.js → preview-open-alternatives-CyM0sanh.js} +1 -1
- package/dist/gateway/static/root/assets/proactive-page-CVDGA5sB.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BazdmFYo.js → product-open-page-lXAbj85Z.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-Bp6TAMPM.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-UhOIiDcg.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CTq8EECj.js → registry-api-CxQstD00.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-DJIkMFT4.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-D-DZf4I1.js → runtime-tools-settings-panel-BUFCgRdZ.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-B-Yj9DVW.js → schema-form-B01ksA8M.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-CQOAwPDt.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-CFuqbGI-.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BxPUqwY6.js → settings-form-section-DvnjZBa3.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-zLn8lIrs.js → settings-page-DZRkpbCh.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DVaEiAVY.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-DAc_FkVc.js → share-preview-page-vz0UK56q.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-XiCqMDAe.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-C3D8WanU.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-CxMWwR6A.js +2 -0
- package/dist/gateway/static/root/assets/{skills-page.utils-BR5bk2vT.js → skills-page.utils-BryVNYll.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-C0ptJutB.js → system-settings-panel-mKFDe6aZ.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-Cb0RZNcJ.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-mV6Cm2vj.js → theme-store-Dc5s20V3.js} +1 -1
- package/dist/gateway/static/root/assets/tunnel-api-FcI3wKy3.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-Dc5aN2px.js → use-autosave-CDgdtjTC.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-Cnshc-Un.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CY0DpJui.js → voice-api-key-field-Ce8cb5mN.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-D3DdcH4H.js → voice-config-api-Mk78BrpP.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Brg9yJBr.js → work-discovery-overlay-CacFTtXe.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-D3fq7boB.js → workflow-run-setup-panel-V-5HuEUq.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-1OJimIfo.js +6 -0
- package/dist/gateway/static/root/index.html +10 -11
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/discussions.js +17 -0
- package/dist/packages/gateway-contract/src/proactive.js +4 -2
- package/dist/src/agent/agent-manager.js +14 -14
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +3 -3
- package/dist/src/agent/context/coordinator.js +3 -3
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.d.ts +1 -0
- package/dist/src/agent/context/project-context.js +16 -8
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/run-for-session.js +4 -4
- package/dist/src/agent/embedded/run-turn.js +2 -2
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +2 -2
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/memory/index.js +2 -2
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +5 -5
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +6 -6
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +18 -18
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +3 -3
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/source-context/task-context.d.ts +3 -0
- package/dist/src/agent/source-context/task-context.js +24 -0
- package/dist/src/agent/source-context/types.d.ts +2 -2
- package/dist/src/agent/source-context/types.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +2 -2
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +1 -0
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +13 -13
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +5 -5
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +1 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +4 -4
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +2 -2
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +6 -6
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tui.js +1 -1
- package/dist/src/cli/commands/tunnel.js +3 -3
- package/dist/src/cli/extension-cli-register.js +4 -4
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/config/index.js +2 -2
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/connection-recovery-service.js +3 -3
- package/dist/src/discussions/action-tasks.d.ts +21 -0
- package/dist/src/discussions/action-tasks.js +93 -0
- package/dist/src/discussions/analyzer.d.ts +21 -1
- package/dist/src/discussions/analyzer.js +229 -62
- package/dist/src/discussions/audio-repair.d.ts +8 -0
- package/dist/src/discussions/audio-repair.js +41 -0
- package/dist/src/discussions/edits.d.ts +22 -0
- package/dist/src/discussions/edits.js +81 -0
- package/dist/src/discussions/errors.d.ts +4 -0
- package/dist/src/discussions/errors.js +10 -0
- package/dist/src/discussions/export.d.ts +2 -0
- package/dist/src/discussions/export.js +23 -0
- package/dist/src/discussions/index.js +3 -2
- package/dist/src/discussions/live-worker.js +2 -2
- package/dist/src/discussions/organizer-worker.js +14 -5
- package/dist/src/discussions/organizer.d.ts +1 -1
- package/dist/src/discussions/organizer.js +60 -24
- package/dist/src/discussions/reconcile.d.ts +22 -0
- package/dist/src/discussions/reconcile.js +55 -0
- package/dist/src/discussions/recording.d.ts +9 -0
- package/dist/src/discussions/recording.js +219 -0
- package/dist/src/discussions/recordingJobs.d.ts +14 -0
- package/dist/src/discussions/recordingJobs.js +69 -0
- package/dist/src/discussions/repository.d.ts +4 -2
- package/dist/src/discussions/repository.js +15 -10
- package/dist/src/discussions/revisions.d.ts +12 -0
- package/dist/src/discussions/revisions.js +36 -0
- package/dist/src/discussions/sealer.d.ts +1 -0
- package/dist/src/discussions/sealer.js +62 -12
- package/dist/src/discussions/service.d.ts +16 -15
- package/dist/src/discussions/service.js +177 -91
- package/dist/src/discussions/types.d.ts +4 -139
- package/dist/src/discussions/types.js +1 -11
- package/dist/src/extensions/api.js +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +1 -1
- package/dist/src/extensions/loader.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/files/file-service.d.ts +1 -0
- package/dist/src/files/file-service.js +77 -0
- package/dist/src/gateway/agents-admin.js +3 -3
- package/dist/src/gateway/chat-stream/mapper.js +2 -2
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/heartbeat/service.js +1 -1
- package/dist/src/gateway/hono/app.js +6 -5
- package/dist/src/gateway/hono/lib/config-payload.js +2 -2
- package/dist/src/gateway/hono/lib/static-ui.js +1 -0
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -2
- package/dist/src/gateway/hono/routes/discussions.js +126 -19
- package/dist/src/gateway/hono/routes/files.js +1 -22
- package/dist/src/gateway/hono/routes/index.js +0 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +16 -0
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +4 -4
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/proactive-control.js +4 -38
- package/dist/src/gateway/hono/routes/project-understanding.d.ts +3 -0
- package/dist/src/gateway/hono/routes/project-understanding.js +65 -0
- package/dist/src/gateway/hono/routes/projects.js +22 -6
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +4 -3
- package/dist/src/gateway/hono/routes/user-model.js +4 -4
- package/dist/src/gateway/hono/routes/voice.js +3 -3
- package/dist/src/gateway/hono/routes/work-discovery.d.ts +0 -2
- package/dist/src/gateway/hono/routes/work-discovery.js +2 -16
- package/dist/src/gateway/hono/routes/workflows.js +4 -4
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +10 -10
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/security/gateway-scopes.js +1 -2
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +2 -2
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/marketplace-service.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service.d.ts +3 -0
- package/dist/src/gateway/service.js +42 -27
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/knowledge-memory/repository.d.ts +2 -0
- package/dist/src/knowledge-memory/repository.js +3 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media-shared/http/ssrf-guard.js +1 -1
- package/dist/src/media-understanding/audio-transcription-runner.d.ts +1 -0
- package/dist/src/media-understanding/audio-transcription-runner.js +1 -0
- package/dist/src/media-understanding/runner.js +1 -0
- package/dist/src/media-understanding/types.d.ts +8 -0
- package/dist/src/notes/agent-context.js +3 -3
- package/dist/src/notes/service.d.ts +3 -1
- package/dist/src/notes/store.d.ts +3 -1
- package/dist/src/notes/store.js +5 -3
- package/dist/src/proactive/actions/service.js +1 -1
- package/dist/src/proactive/execution/agent-executor.js +1 -1
- package/dist/src/proactive/execution/context.js +1 -1
- package/dist/src/proactive/execution/worker.js +1 -1
- package/dist/src/proactive/experience.d.ts +38 -21
- package/dist/src/proactive/experience.js +109 -13
- package/dist/src/proactive/follow-ups.js +1 -1
- package/dist/src/proactive/inbox/cards.js +9 -3
- package/dist/src/proactive/inbox/delivery.js +2 -2
- package/dist/src/proactive/inbox/digest.js +2 -2
- package/dist/src/proactive/inbox/notification-policy.js +1 -1
- package/dist/src/proactive/inbox/repository.js +1 -1
- package/dist/src/proactive/inbox/service.js +1 -1
- package/dist/src/proactive/index.js +1 -1
- package/dist/src/proactive/maintenance.js +0 -1
- package/dist/src/proactive/scenarios/control.d.ts +0 -35
- package/dist/src/proactive/scenarios/control.js +7 -53
- package/dist/src/proactive/temporal/worker.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/project-store.js +6 -4
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/session/client-history.d.ts +1 -1
- package/dist/src/session/client-history.js +1 -1
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +3 -3
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/migrations/166_remove_proactive_previews.sql +1 -0
- package/dist/src/storage/sqlite/migrations/167_discussion_recording_chunks.sql +7 -0
- package/dist/src/storage/sqlite/migrations/168_discussion_evidence.sql +16 -0
- package/dist/src/storage/sqlite/migrations/169_discussion_action_tasks.sql +8 -0
- package/dist/src/storage/sqlite/migrations/170_discussion_edits.sql +8 -0
- package/dist/src/storage/sqlite/migrations/171_discussion_recording_jobs.sql +14 -0
- package/dist/src/storage/sqlite/migrations/172_project_understanding.sql +3 -0
- package/dist/src/storage/sqlite/migrations/173_mobile_discussion_source.sql +5 -0
- package/dist/src/storage/sqlite/migrations/__tests__/mobile-discussion-source.test.ts +20 -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.ts +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +1 -1
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/task-application-service.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-repository.d.ts +1 -0
- package/dist/src/tasks/task-repository.js +4 -0
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +9 -9
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +2 -2
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/audio/normalize.js +28 -5
- package/dist/src/voice/local/runtime-worker.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/local-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +2 -1
- package/dist/src/voice/stt/types.d.ts +1 -0
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/analyzer.d.ts +1 -0
- package/dist/src/work-discovery/analyzer.js +28 -22
- package/dist/src/work-discovery/index.js +3 -3
- package/dist/src/work-discovery/investigator.js +1 -1
- package/dist/src/work-discovery/project-understanding.d.ts +7 -0
- package/dist/src/work-discovery/project-understanding.js +38 -0
- package/dist/src/work-discovery/repository.d.ts +3 -1
- package/dist/src/work-discovery/repository.js +18 -5
- package/dist/src/work-discovery/service.d.ts +8 -0
- package/dist/src/work-discovery/service.js +164 -16
- package/dist/src/work-discovery/types.d.ts +2 -0
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +4 -4
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DAqn5DdL.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Bh0etSmL.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-w4McwueN.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-DxX-t0EJ.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CvacBQAI.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-CJzSNo-L.js +0 -1
- package/dist/gateway/static/root/assets/config-reload-event-Bjh2zoKp.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DNBhBT0b.js +0 -2
- package/dist/gateway/static/root/assets/device-pairing-wizard-DsR5NQEC.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-swr-cd8owslz.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-Dil7vuyU.js +0 -1
- package/dist/gateway/static/root/assets/home-page-Dpeuvazg.js +0 -1
- package/dist/gateway/static/root/assets/index-B03HGpzt.js +0 -74
- package/dist/gateway/static/root/assets/index-CXF9-BpI.css +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-CBtemxFc.js +0 -2
- package/dist/gateway/static/root/assets/messages-BGc-OJWg.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-GOxomxOK.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-CQBgk3_x.js +0 -8
- package/dist/gateway/static/root/assets/proactive-card-BF3741px.js +0 -1
- package/dist/gateway/static/root/assets/proactive-page-1EM217v0.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-B1Pm-fQd.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-DUrxyNR9.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-C6VzHUwx.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-DtemHfkv.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-ByEVQe0c.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BwIrk3Jx.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Dwdv6QyS.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CDzQWN60.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-CO5XVkbY.js +0 -2
- package/dist/gateway/static/root/assets/task-detail-page-DOjcKOzQ.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-BABuQvGD.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-UhsSP_pC.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-S7XXNBWa.js +0 -6
- package/dist/src/proactive/scenarios/preview.d.ts +0 -13
- package/dist/src/proactive/scenarios/preview.js +0 -81
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
2
1
|
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
2
|
+
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
3
3
|
import { resolveGatewayListenPlan } from "./listen.js";
|
|
4
4
|
import { GatewayService } from "./service.js";
|
|
5
5
|
import { handleSiteShareUpgrade } from "../share/site-share-router.js";
|
|
@@ -85,9 +85,9 @@ var GatewayAgentRunner = class {
|
|
|
85
85
|
sourceId
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
if (unique.size > MAX_TURN_CONTEXTS) throw new Error(`A message can reference at most ${MAX_TURN_CONTEXTS}
|
|
88
|
+
if (unique.size > MAX_TURN_CONTEXTS) throw new Error(`A message can reference at most ${MAX_TURN_CONTEXTS} sources`);
|
|
89
89
|
const contexts = await Promise.all([...unique.values()].map((ref) => opts.resolveTurnContext(ref)));
|
|
90
|
-
if (contexts.some((context) => context === null)) throw new Error("A referenced
|
|
90
|
+
if (contexts.some((context) => context === null)) throw new Error("A referenced source is unavailable or has changed; select it again");
|
|
91
91
|
return fitSourceContextsToBudget(contexts.filter((context) => context !== null));
|
|
92
92
|
},
|
|
93
93
|
steer: (sessionKey, content) => opts.getAgentService().turnDispatcher.steerWebchatSession(sessionKey, content),
|
|
@@ -3,12 +3,12 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { getModelRegistry } from "../../providers/model-registry.js";
|
|
4
4
|
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
5
5
|
import { init_providers } from "../../providers/index.js";
|
|
6
|
-
import { ConfigHotReloader } from "../../config/reload.js";
|
|
7
|
-
import "../../config/index.js";
|
|
8
6
|
import { disposeAllSessionMcpRuntimes } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
9
|
-
import { computeBundledExtensionExtensionsPatch } from "../../extensions/bundled-extension-activation.js";
|
|
10
7
|
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
11
8
|
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
9
|
+
import { ConfigHotReloader } from "../../config/reload.js";
|
|
10
|
+
import "../../config/index.js";
|
|
11
|
+
import { computeBundledExtensionExtensionsPatch } from "../../extensions/bundled-extension-activation.js";
|
|
12
12
|
import { sanitizeTunnelConfig } from "../../tunnel/tunnel-config.js";
|
|
13
13
|
//#region src/gateway/service/config-coordinator.ts
|
|
14
14
|
init_providers();
|
|
@@ -2,12 +2,12 @@ import { resolveStateDir } from "../../config/paths-state.js";
|
|
|
2
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
4
|
import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
|
|
5
|
-
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
6
|
-
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
7
|
-
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
8
5
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
9
6
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
7
|
+
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
8
|
+
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
10
9
|
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.js";
|
|
10
|
+
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
11
11
|
import { existsSync, rmSync } from "node:fs";
|
|
12
12
|
//#region src/gateway/service/marketplace-service.ts
|
|
13
13
|
/**
|
|
@@ -6,11 +6,11 @@ import { updateInteractionStateFromMessage } from "../../storage/sqlite/interact
|
|
|
6
6
|
import { getConnectionResumeInput, isConnectionSuspended } from "../../storage/sqlite/connection-wait-repository.js";
|
|
7
7
|
import "../../storage/sqlite/index.js";
|
|
8
8
|
import { init_session_key, parseSessionKey } from "../../routing/session-key.js";
|
|
9
|
-
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
10
|
-
import "../chat-limits.js";
|
|
11
|
-
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
12
9
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
13
10
|
import { TaskRunCoordinator } from "../../tasks/task-run-coordinator.js";
|
|
11
|
+
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
12
|
+
import "../chat-limits.js";
|
|
13
|
+
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
14
14
|
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
15
15
|
import { resolveWebchatSessionKey } from "../resolve-webchat-session-key.js";
|
|
16
16
|
import { recordExplicitRelationshipFollowUp } from "../../user-context/relationship-continuity.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WorkDiscoveryService } from '../work-discovery/service.js';
|
|
1
2
|
import { ConnectionRecoveryService } from '../connectors/connection-recovery-service.js';
|
|
2
3
|
import { AgentService } from '../agent/service.js';
|
|
3
4
|
import { MessageBus } from '../infra/bus/index.js';
|
|
@@ -98,6 +99,8 @@ export declare class GatewayService {
|
|
|
98
99
|
readonly marketplace: GatewayMarketplaceService;
|
|
99
100
|
/** First-class project grouping surface. */
|
|
100
101
|
readonly projects: ProjectService;
|
|
102
|
+
private _workDiscovery;
|
|
103
|
+
get workDiscovery(): WorkDiscoveryService;
|
|
101
104
|
readonly discussions: DiscussionService;
|
|
102
105
|
readonly discussionWorker: DiscussionOrganizerWorker;
|
|
103
106
|
readonly discussionLiveWorker: DiscussionLiveWorker;
|
|
@@ -24,18 +24,38 @@ import { init_providers, providers_exports } from "../providers/index.js";
|
|
|
24
24
|
import { AutomationService } from "../automations/service/automation-service.js";
|
|
25
25
|
import { onAutomationProductEvent, publishAutomationProductEvent } from "../automations/product-events.js";
|
|
26
26
|
import "../automations/index.js";
|
|
27
|
-
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
28
|
-
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
29
|
-
import { ChannelManager } from "../channels/manager.js";
|
|
30
27
|
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
28
|
+
import { TaskRepository } from "../tasks/task-repository.js";
|
|
29
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
30
|
+
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
31
|
+
import { disposeAllSessionMcpRuntimes } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
32
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
33
|
+
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
34
|
+
import "../projects/index.js";
|
|
35
|
+
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
36
|
+
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
37
|
+
import { ProactiveScenarioService } from "../proactive/scenarios/service.js";
|
|
38
|
+
import { ProactiveEventService } from "../proactive/service.js";
|
|
39
|
+
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
40
|
+
import { ProactiveInboxService } from "../proactive/inbox/service.js";
|
|
41
|
+
import { TaskOutboxDispatcher } from "../tasks/task-outbox-dispatcher.js";
|
|
42
|
+
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
43
|
+
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
44
|
+
import "../tasks/index.js";
|
|
45
|
+
import "../agent/mcp/bundle-mcp-tools.js";
|
|
46
|
+
import { SessionIndex } from "../session/manager.js";
|
|
47
|
+
import "../session/index.js";
|
|
48
|
+
import { ExtensionLoader } from "../extensions/loader.js";
|
|
49
|
+
import "../extensions/index.js";
|
|
31
50
|
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
32
51
|
import "../infra/bus/index.js";
|
|
52
|
+
import { AgentService } from "../agent/service.js";
|
|
53
|
+
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
54
|
+
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
55
|
+
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
56
|
+
import { ChannelManager } from "../channels/manager.js";
|
|
33
57
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
34
58
|
import "../config/index.js";
|
|
35
|
-
import { ExtensionLoader } from "../extensions/loader.js";
|
|
36
|
-
import "../extensions/index.js";
|
|
37
|
-
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
38
|
-
import { disposeAllSessionMcpRuntimes } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
39
59
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
40
60
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
41
61
|
import "../knowledge/index.js";
|
|
@@ -51,33 +71,15 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
51
71
|
import "../discussions/index.js";
|
|
52
72
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
53
73
|
import "../endpoint-tools/index.js";
|
|
54
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
55
|
-
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
56
|
-
import "../projects/index.js";
|
|
57
74
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
58
75
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
59
76
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
60
|
-
import {
|
|
61
|
-
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
62
|
-
import { ProactiveScenarioService } from "../proactive/scenarios/service.js";
|
|
63
|
-
import { ProactiveInboxService } from "../proactive/inbox/service.js";
|
|
77
|
+
import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
64
78
|
import { deliverProactiveCard } from "../proactive/inbox/delivery.js";
|
|
79
|
+
import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
65
80
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
66
81
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
67
82
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
68
|
-
import { SessionIndex } from "../session/manager.js";
|
|
69
|
-
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
70
|
-
import "../session/index.js";
|
|
71
|
-
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
72
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
73
|
-
import { ProactiveEventService } from "../proactive/service.js";
|
|
74
|
-
import { TaskOutboxDispatcher } from "../tasks/task-outbox-dispatcher.js";
|
|
75
|
-
import { TaskRunDispatcher } from "../tasks/task-run-dispatcher.js";
|
|
76
|
-
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
77
|
-
import "../tasks/index.js";
|
|
78
|
-
import "../agent/mcp/bundle-mcp-tools.js";
|
|
79
|
-
import { AgentService } from "../agent/service.js";
|
|
80
|
-
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
81
83
|
import { NotesStore } from "../notes/store.js";
|
|
82
84
|
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
83
85
|
import { NotesService } from "../notes/service.js";
|
|
@@ -305,6 +307,15 @@ var GatewayService = class {
|
|
|
305
307
|
marketplace;
|
|
306
308
|
/** First-class project grouping surface. */
|
|
307
309
|
projects;
|
|
310
|
+
_workDiscovery;
|
|
311
|
+
get workDiscovery() {
|
|
312
|
+
return this._workDiscovery ??= new WorkDiscoveryService({
|
|
313
|
+
projects: this.projects,
|
|
314
|
+
sessions: this.sessionIndex,
|
|
315
|
+
getConfig: () => this.config,
|
|
316
|
+
emit: (type, payload) => this.emit(type, payload)
|
|
317
|
+
});
|
|
318
|
+
}
|
|
308
319
|
discussions;
|
|
309
320
|
discussionWorker;
|
|
310
321
|
discussionLiveWorker;
|
|
@@ -440,6 +451,7 @@ var GatewayService = class {
|
|
|
440
451
|
}
|
|
441
452
|
});
|
|
442
453
|
this.discussionSealer = new DiscussionSealer({
|
|
454
|
+
processRecordingJob: () => this.discussions.processRecordingJob(),
|
|
443
455
|
notes: this.notesService,
|
|
444
456
|
getConfig: () => this.config,
|
|
445
457
|
onUpdated: emitDiscussion
|
|
@@ -460,6 +472,7 @@ var GatewayService = class {
|
|
|
460
472
|
getChannelManager: () => this.channelManager,
|
|
461
473
|
getConfig: () => this.config,
|
|
462
474
|
resolveTurnContext: async (ref) => {
|
|
475
|
+
if (ref.kind === "task") return buildTaskAgentContext(new TaskRepository().get(ref.sourceId), ref.expectedVersion);
|
|
463
476
|
if (ref.kind !== "note") return null;
|
|
464
477
|
const note = await this.notesService.getNote(ref.sourceId);
|
|
465
478
|
if (!note || note.status === "trashed") return null;
|
|
@@ -918,6 +931,7 @@ var GatewayService = class {
|
|
|
918
931
|
}, `Model registry prewarm failed: ${em}`);
|
|
919
932
|
}
|
|
920
933
|
this.modelCatalogSync.start();
|
|
934
|
+
if (this.running) this.workDiscovery.resumeProjectUnderstanding();
|
|
921
935
|
if (!this.extensionLoader || areExtensionsGloballyDisabled(this.config)) return;
|
|
922
936
|
try {
|
|
923
937
|
if (trace) await trace.measure("extensions.deferred-load", () => this.loadDeferredExtensions());
|
|
@@ -1226,6 +1240,7 @@ var GatewayService = class {
|
|
|
1226
1240
|
this.stopRealtimeLogBridge?.();
|
|
1227
1241
|
this.stopRealtimeLogBridge = null;
|
|
1228
1242
|
log.debug("Stopping gateway service...");
|
|
1243
|
+
await this._workDiscovery?.stop();
|
|
1229
1244
|
this.readiness.markStarting();
|
|
1230
1245
|
this.endpointTools.close();
|
|
1231
1246
|
await this.sideChats.disposeAll();
|
|
@@ -4,13 +4,13 @@ import { getSqliteDatabase } from "../storage/sqlite/transaction.js";
|
|
|
4
4
|
import { hasGatewayScope } from "./security/gateway-scopes.js";
|
|
5
5
|
import { getSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
6
6
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
7
|
+
import { TaskRepository } from "../tasks/task-repository.js";
|
|
8
|
+
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
7
9
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
8
10
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
9
11
|
import { ProjectStore } from "../projects/project-store.js";
|
|
10
12
|
import { runExec } from "../infra/exec.js";
|
|
11
|
-
import { TaskRepository } from "../tasks/task-repository.js";
|
|
12
13
|
import { isSessionSourceBinding } from "../agent/source-context/types.js";
|
|
13
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
14
14
|
import { realpath, stat } from "node:fs/promises";
|
|
15
15
|
//#region src/gateway/session-context-summary.ts
|
|
16
16
|
init_logger();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path, { relative, resolve } from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fs from "node:fs";
|
|
3
3
|
//#region src/gateway/workspace-editor-path.ts
|
|
4
4
|
/** Resolve a workspace-relative POSIX path safely (no `..`, stays under root). */
|
|
5
5
|
function resolveWorkspaceSafePath(workspaceRoot, rel) {
|
|
@@ -20,7 +20,7 @@ function isPathUnderWorkspace(workspaceRoot, absPath) {
|
|
|
20
20
|
function normalizeComparablePath(input) {
|
|
21
21
|
let resolved = resolve(input);
|
|
22
22
|
try {
|
|
23
|
-
resolved =
|
|
23
|
+
resolved = fs.realpathSync.native(resolved);
|
|
24
24
|
} catch {}
|
|
25
25
|
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
26
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_ACK_MAX_CHARS, HEARTBEAT_OK, NO_REPLY, shouldSilence, stripHeartbeatToken } from "./tokens.js";
|
|
2
|
-
import { appendCronEventLines } from "./event-prompt.js";
|
|
3
2
|
import { isWithinActiveHours } from "./active-hours.js";
|
|
4
3
|
import { isHeartbeatContentEmpty } from "./content-check.js";
|
|
4
|
+
import { appendCronEventLines } from "./event-prompt.js";
|
|
5
5
|
import { createHeartbeatWake } from "./wake.js";
|
|
6
6
|
export { DEFAULT_ACK_MAX_CHARS, HEARTBEAT_OK, NO_REPLY, appendCronEventLines, createHeartbeatWake, isHeartbeatContentEmpty, isWithinActiveHours, shouldSilence, stripHeartbeatToken };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { listPortListeners } from "../gateway/ports.js";
|
|
2
2
|
import { isGatewayArgv, parseProcCmdline } from "./gateway-process-argv.js";
|
|
3
|
-
import
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/infra/gateway-processes.ts
|
|
6
6
|
function readGatewayProcessArgsSync(pid) {
|
|
7
7
|
if (process.platform === "linux") try {
|
|
8
|
-
return parseProcCmdline(
|
|
8
|
+
return parseProcCmdline(fs.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
|
|
9
9
|
} catch {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveBrewPathDirs } from "./brew.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
//#region src/infra/path-env.ts
|
|
6
6
|
function isTruthyEnvValue(value) {
|
|
7
7
|
if (!value) return false;
|
|
@@ -10,7 +10,7 @@ function isTruthyEnvValue(value) {
|
|
|
10
10
|
}
|
|
11
11
|
function isExecutable(filePath) {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
fs.accessSync(filePath, fs.constants.X_OK);
|
|
14
14
|
return true;
|
|
15
15
|
} catch {
|
|
16
16
|
return false;
|
|
@@ -18,7 +18,7 @@ function isExecutable(filePath) {
|
|
|
18
18
|
}
|
|
19
19
|
function isDirectory(dirPath) {
|
|
20
20
|
try {
|
|
21
|
-
return
|
|
21
|
+
return fs.statSync(dirPath).isDirectory();
|
|
22
22
|
} catch {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { resolveExecPathBinPrepend } from "./path-env.js";
|
|
2
1
|
import { applyPathPrepend } from "./path-prepend.js";
|
|
2
|
+
import { resolveExecPathBinPrepend } from "./path-env.js";
|
|
3
3
|
import { readPackageVersion } from "./package-json.js";
|
|
4
4
|
import { createDefaultCommandRunner } from "./run-command.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
7
|
-
import fs from "node:fs/promises";
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import fs$1 from "node:fs/promises";
|
|
8
8
|
//#region src/infra/update-global.ts
|
|
9
9
|
const XOPC_PACKAGE_NAME = "@xopcai/xopc";
|
|
10
10
|
const GLOBAL_RENAME_PREFIX = ".";
|
|
@@ -18,7 +18,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL
|
|
|
18
18
|
const GLOBAL_DETECT_TIMEOUT_MS = 15e3;
|
|
19
19
|
async function pathExists(targetPath) {
|
|
20
20
|
try {
|
|
21
|
-
await fs.access(targetPath);
|
|
21
|
+
await fs$1.access(targetPath);
|
|
22
22
|
return true;
|
|
23
23
|
} catch {
|
|
24
24
|
return false;
|
|
@@ -26,7 +26,7 @@ async function pathExists(targetPath) {
|
|
|
26
26
|
}
|
|
27
27
|
async function tryRealpath(targetPath) {
|
|
28
28
|
try {
|
|
29
|
-
return await fs.realpath(targetPath);
|
|
29
|
+
return await fs$1.realpath(targetPath);
|
|
30
30
|
} catch {
|
|
31
31
|
return path.resolve(targetPath);
|
|
32
32
|
}
|
|
@@ -49,14 +49,14 @@ function resolvePreferredNpmCommand(pkgRoot) {
|
|
|
49
49
|
const prefix = inferNpmPrefixFromPackageRoot(pkgRoot);
|
|
50
50
|
if (!prefix) return null;
|
|
51
51
|
const candidate = process.platform === "win32" ? path.join(prefix, "npm.cmd") : path.join(prefix, "bin", "npm");
|
|
52
|
-
return
|
|
52
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
53
53
|
}
|
|
54
54
|
function resolveNpmFromExecPath() {
|
|
55
55
|
const execPath = process.execPath?.trim();
|
|
56
56
|
if (!execPath) return null;
|
|
57
57
|
const binDir = path.dirname(execPath);
|
|
58
58
|
const candidate = process.platform === "win32" ? path.join(binDir, "npm.cmd") : path.join(binDir, "npm");
|
|
59
|
-
return
|
|
59
|
+
return fs.existsSync(candidate) ? candidate : null;
|
|
60
60
|
}
|
|
61
61
|
function resolvePreferredGlobalManagerCommand(manager, pkgRoot) {
|
|
62
62
|
if (manager !== "npm") return manager;
|
|
@@ -204,7 +204,7 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
204
204
|
const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
|
|
205
205
|
let entries = [];
|
|
206
206
|
try {
|
|
207
|
-
entries = await fs.readdir(root);
|
|
207
|
+
entries = await fs$1.readdir(root);
|
|
208
208
|
} catch {
|
|
209
209
|
return { removed };
|
|
210
210
|
}
|
|
@@ -212,8 +212,8 @@ async function cleanupGlobalRenameDirs(params) {
|
|
|
212
212
|
if (!entry.startsWith(prefix)) continue;
|
|
213
213
|
const target = path.join(root, entry);
|
|
214
214
|
try {
|
|
215
|
-
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
216
|
-
await fs.rm(target, {
|
|
215
|
+
if (!(await fs$1.lstat(target)).isDirectory()) continue;
|
|
216
|
+
await fs$1.rm(target, {
|
|
217
217
|
recursive: true,
|
|
218
218
|
force: true
|
|
219
219
|
});
|
|
@@ -30,6 +30,8 @@ export declare function writeKnowledgeItem(input: WriteKnowledgeInput): {
|
|
|
30
30
|
export declare function getKnowledgeItem(id: string): KnowledgeItem | undefined;
|
|
31
31
|
export declare function listKnowledgeItems(input?: {
|
|
32
32
|
principalId?: string;
|
|
33
|
+
scope?: UserModelScope;
|
|
34
|
+
canonicalKey?: string;
|
|
33
35
|
statuses?: KnowledgeStatus[];
|
|
34
36
|
recordClass?: KnowledgeRecordClass;
|
|
35
37
|
limit?: number;
|
|
@@ -106,7 +106,9 @@ function listKnowledgeItems(input = {}) {
|
|
|
106
106
|
return getSqliteDatabase().prepare(`SELECT * FROM knowledge_items
|
|
107
107
|
WHERE principal_id = ? AND status IN (${placeholders})
|
|
108
108
|
${input.recordClass ? "AND record_class = ?" : ""}
|
|
109
|
-
|
|
109
|
+
${input.scope ? "AND scope_type = ? AND COALESCE(scope_id, '') = COALESCE(?, '')" : ""}
|
|
110
|
+
${input.canonicalKey ? "AND canonical_key = ?" : ""}
|
|
111
|
+
ORDER BY importance DESC, updated_at DESC LIMIT ?`).all(input.principalId ?? "local-owner", ...statuses, ...input.recordClass ? [input.recordClass] : [], ...input.scope ? [input.scope.type, input.scope.id ?? null] : [], ...input.canonicalKey ? [input.canonicalKey] : [], Math.max(1, Math.min(2e3, input.limit ?? 200))).map(fromRow);
|
|
110
112
|
}
|
|
111
113
|
function setKnowledgeStatus(id, status, now = Date.now()) {
|
|
112
114
|
return getSqliteDatabase().prepare(`UPDATE knowledge_items SET status = ?, updated_at = ?
|
|
@@ -2,8 +2,8 @@ import { resolveStateDir } from "../config/paths-state.js";
|
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
5
|
-
import { slugifyProjectName } from "../projects/project-store.js";
|
|
6
5
|
import { LocalAppStore } from "./store.js";
|
|
6
|
+
import { slugifyProjectName } from "../projects/project-store.js";
|
|
7
7
|
import { readLocalAppAcceptanceConfig } from "./acceptance.js";
|
|
8
8
|
import { LOCAL_APP_RUNTIME_ENTRY, LOCAL_APP_RUNTIME_SOURCE, legacyLocalAppRuntimeSource } from "./runtime-entry.js";
|
|
9
9
|
import { readLocalAppPermissions, scaffoldLocalApp } from "./scaffold.js";
|
|
@@ -24,6 +24,7 @@ async function runAudioTranscription(options) {
|
|
|
24
24
|
const outputs = result.outputs.map((entry) => ({
|
|
25
25
|
attachmentIndex: entry.attachmentIndex,
|
|
26
26
|
text: entry.text,
|
|
27
|
+
...entry.segments ? { segments: entry.segments } : {},
|
|
27
28
|
provider: entry.provider,
|
|
28
29
|
...entry.model ? { model: entry.model } : {},
|
|
29
30
|
...entry.language ? { language: entry.language } : {},
|
|
@@ -118,6 +118,7 @@ async function runCapability(options) {
|
|
|
118
118
|
provider: provider.id,
|
|
119
119
|
model: callResult.model,
|
|
120
120
|
...callResult.language ? { language: callResult.language } : {},
|
|
121
|
+
...callResult.segments ? { segments: callResult.segments } : {},
|
|
121
122
|
...callResult.durationSeconds !== void 0 ? { durationSeconds: callResult.durationSeconds } : {}
|
|
122
123
|
});
|
|
123
124
|
break;
|
|
@@ -58,6 +58,7 @@ export interface CapabilityAttachmentInput {
|
|
|
58
58
|
mime?: string;
|
|
59
59
|
}
|
|
60
60
|
export interface MediaUnderstandingOutput {
|
|
61
|
+
segments?: AudioTranscriptionSegment[];
|
|
61
62
|
kind: MediaUnderstandingKind;
|
|
62
63
|
attachmentIndex: number;
|
|
63
64
|
text: string;
|
|
@@ -104,7 +105,14 @@ export interface AudioTranscriptionRequest {
|
|
|
104
105
|
timeoutMs: number;
|
|
105
106
|
signal?: AbortSignal;
|
|
106
107
|
}
|
|
108
|
+
export interface AudioTranscriptionSegment {
|
|
109
|
+
text: string;
|
|
110
|
+
startMs: number;
|
|
111
|
+
endMs: number;
|
|
112
|
+
speaker?: string;
|
|
113
|
+
}
|
|
107
114
|
export interface AudioTranscriptionResult {
|
|
115
|
+
segments?: AudioTranscriptionSegment[];
|
|
108
116
|
text: string;
|
|
109
117
|
model?: string;
|
|
110
118
|
/** Provider-reported language (e.g. 'zh', 'en'). */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
|
|
2
2
|
import "../storage/sqlite/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
4
|
+
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
4
5
|
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
6
|
+
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
5
7
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
6
8
|
import "../voice/stt/index.js";
|
|
7
9
|
import { extractDocumentText } from "../document-understanding/extract.js";
|
|
8
|
-
import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
9
|
-
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
10
10
|
import { extname } from "node:path";
|
|
11
11
|
import { readFile } from "node:fs/promises";
|
|
12
12
|
//#region src/notes/agent-context.ts
|
|
@@ -49,7 +49,9 @@ export declare class NotesService {
|
|
|
49
49
|
listProjectSummaries(): import("./types.js").NoteProjectSummary[];
|
|
50
50
|
addAttachment(noteId: string, file: {
|
|
51
51
|
name: string;
|
|
52
|
-
buffer: Buffer
|
|
52
|
+
buffer: Buffer | {
|
|
53
|
+
filePath: string;
|
|
54
|
+
};
|
|
53
55
|
mimeType: string;
|
|
54
56
|
duration?: number;
|
|
55
57
|
retainWithoutReference?: boolean;
|
|
@@ -14,7 +14,9 @@ export declare class NotesStore {
|
|
|
14
14
|
offset: number;
|
|
15
15
|
hasMore: boolean;
|
|
16
16
|
}>;
|
|
17
|
-
saveAttachment(noteId: string, fileName: string, buffer: Buffer
|
|
17
|
+
saveAttachment(noteId: string, fileName: string, buffer: Buffer | {
|
|
18
|
+
filePath: string;
|
|
19
|
+
}): Promise<{
|
|
18
20
|
relativePath: string;
|
|
19
21
|
size: number;
|
|
20
22
|
}>;
|
package/dist/src/notes/store.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../storage/sqlite/index.js";
|
|
|
9
9
|
import { resolveNoteMediaDir } from "./paths.js";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
|
-
import { mkdir, rm, writeFile } from "node:fs/promises";
|
|
12
|
+
import { copyFile, mkdir, rm, stat, writeFile } from "node:fs/promises";
|
|
13
13
|
//#region src/notes/store.ts
|
|
14
14
|
init_logger();
|
|
15
15
|
const log = createLogger("NotesStore");
|
|
@@ -61,10 +61,12 @@ var NotesStore = class {
|
|
|
61
61
|
const mediaDir = resolveNoteMediaDir(noteId);
|
|
62
62
|
await mkdir(mediaDir, { recursive: true });
|
|
63
63
|
const safeName = `${randomUUID().slice(0, 8)}_${fileName.replace(/[^a-zA-Z0-9._-]/g, "_")}`;
|
|
64
|
-
|
|
64
|
+
const filePath = join(mediaDir, safeName);
|
|
65
|
+
if (Buffer.isBuffer(buffer)) await writeFile(filePath, buffer);
|
|
66
|
+
else await copyFile(buffer.filePath, filePath);
|
|
65
67
|
return {
|
|
66
68
|
relativePath: safeName,
|
|
67
|
-
size:
|
|
69
|
+
size: (await stat(filePath)).size
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
72
|
resolveAttachmentPath(noteId, relativePath) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
3
2
|
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
3
|
+
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
4
4
|
import { insightCorrelation } from "../inbox/lifecycle.js";
|
|
5
5
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
6
6
|
//#region src/proactive/actions/service.ts
|
|
@@ -3,8 +3,8 @@ import { getApiKeySync, getDefaultModelSync, init_providers, resolveModel } from
|
|
|
3
3
|
import { createExtensionAwareStreamFn } from "../../providers/extension-stream-bridge.js";
|
|
4
4
|
import { isAssistantTurnAborted, isAssistantTurnFailed } from "../../agent/orchestration/llm-turn-retry.js";
|
|
5
5
|
import { runAgentTurnWithTimeout } from "../../agent/orchestration/run-agent-turn-with-timeout.js";
|
|
6
|
-
import { Type } from "@sinclair/typebox";
|
|
7
6
|
import { Agent } from "@earendil-works/pi-agent-core";
|
|
7
|
+
import { Type } from "@sinclair/typebox";
|
|
8
8
|
//#region src/proactive/execution/agent-executor.ts
|
|
9
9
|
init_sync_provider_auth();
|
|
10
10
|
init_providers();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getSqliteDatabase } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { getAssertionSlot, listUserAssertions } from "../../user-model/repository.js";
|
|
3
3
|
import "../../user-model/index.js";
|
|
4
|
-
import { getDiscussionCapture, getLatestDiscussionOrganization } from "../../discussions/repository.js";
|
|
5
4
|
import { authorizedConnectedSource } from "./authorization.js";
|
|
6
5
|
import { authorizedMailThread, requireMailFollowUp } from "../follow-ups.js";
|
|
6
|
+
import { getDiscussionCapture, getLatestDiscussionOrganization } from "../../discussions/repository.js";
|
|
7
7
|
import { wrapExternalContent } from "../../gateway/security/external-content.js";
|
|
8
8
|
//#region src/proactive/execution/context.ts
|
|
9
9
|
const MAX_EVENT_COUNT = 50;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { getSqliteDatabase } from "../../storage/sqlite/transaction.js";
|
|
4
|
-
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
5
4
|
import { authorizedConnectedSource } from "./authorization.js";
|
|
5
|
+
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
6
6
|
import { getPromptRevision, getScenario } from "../scenarios/repository.js";
|
|
7
7
|
import { composeScenarioPrompt } from "../scenarios/prompt-composer.js";
|
|
8
8
|
import { markReadyBatches } from "../routing/batch-repository.js";
|