@xopcai/xopc 0.0.276 → 0.0.278
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/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +2 -2
- 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/{agent-avatar-dicebear-sj_1IC5H.js → agent-avatar-dicebear-lRVOwbrK.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DAqn5DdL.js +1 -0
- package/dist/gateway/static/root/assets/{agents-CIzev0Qj.js → agents-DNQNTDkU.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-oHTY5PDs.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-BeXvF-dZ.js → appearance-settings-B0YnZ3ig.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-Bh0etSmL.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BSgaIIGE.js → archive-plugin-D4x142le.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CGNt02hP.js → attachment-load-zibD2Hod.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DoafJiVA.js → automations-page-Dkp7gp_S.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-w4McwueN.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BsAL26Aq.js → binary-plugins-CfUzu1Hc.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BxB7m8aI.js → block-editor-r5nCBBan.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-DGCqIPXT.js → browser-automation-inputs-DcVLoIzc.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-BNsO-Ip2.js → browser-automations-page-BnL4JnTM.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DxX-t0EJ.js +8 -0
- package/dist/gateway/static/root/assets/{button-B11EPpor.js → button-BA45yciM.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CvacBQAI.js +8 -0
- package/dist/gateway/static/root/assets/channels-settings-CJzSNo-L.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-ZCFwco1W.js → chat-terminal-dock-CWVnJtBp.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-DNBhBT0b.js +2 -0
- package/dist/gateway/static/root/assets/{cron-expression-C26e13YU.js → cron-expression-CjrWuy2m.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-CpxFfgpg.js → date-picker-XjPSlgq_.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-eCIGAfHa.js → dependency-picker-CkyfEP88.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-_MSZvIDO.js → desktop-pet-BAE_NVx5.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-feBnJWkV.js → desktop-pet-settings-BUw6V2R9.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DsR5NQEC.js +1 -0
- package/dist/gateway/static/root/assets/{dist-CpzYSoz7.js → dist-BGTk37IG.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-DBS3OB8K.js → dist-CI_fqRk-.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-DLmwHyAh.js → dist-Che_jiQF.js} +1 -1
- package/dist/gateway/static/root/assets/es2015-DBLcMg5B.js +41 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-CotBlxJ-.js → extension-debug-page-giBeIVUT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CFBmQ7U3.js → extension-page-Bqo9bNtx.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Cd1lfh8z.js → extension-settings-page-BX-6AA3k.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-Dil7vuyU.js +1 -0
- package/dist/gateway/static/root/assets/{heartbeat-settings-DRG0u1ON.js → heartbeat-settings-DWFAopk_.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-Dpeuvazg.js +1 -0
- package/dist/gateway/static/root/assets/index-B03HGpzt.js +74 -0
- package/dist/gateway/static/root/assets/index-CXF9-BpI.css +2 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BLHsdFIQ.js → keyboard-shortcuts-settings-BKGPpBnV.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-CBtemxFc.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BjAj1xhq.js → local-apps-page-B06ToOxB.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DibI1GsP.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-CPHxDaOw.js → management-settings-DJ6yMZCd.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-B2IR4E2r.js → markdown-view-DF3aJP_5.js} +4 -4
- package/dist/gateway/static/root/assets/{media-plugins-BUOzcXCL.js → media-plugins-CdrLNAks.js} +1 -1
- package/dist/gateway/static/root/assets/note-detail-panel-GOxomxOK.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-CQBgk3_x.js +8 -0
- package/dist/gateway/static/root/assets/{page-tabs-BgEYFhqS.js → page-tabs-B7LA4z-x.js} +1 -1
- package/dist/gateway/static/root/assets/popover-select-DGmMQt4t.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-C-pQIx6W.js → preview-open-alternatives-DTQRN7WR.js} +1 -1
- package/dist/gateway/static/root/assets/proactive-card-BF3741px.js +1 -0
- package/dist/gateway/static/root/assets/proactive-page-1EM217v0.js +1 -0
- package/dist/gateway/static/root/assets/product-open-page-BazdmFYo.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-B1Pm-fQd.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-DUrxyNR9.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-C6VzHUwx.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DkAjFJ-9.js → runtime-tools-settings-panel-D-DZf4I1.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-BpDcuSsl.js → schema-form-B-Yj9DVW.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-DtemHfkv.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-ByEVQe0c.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-RElRijJw.js → settings-form-section-BxPUqwY6.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-CaixunoA.js → settings-page-zLn8lIrs.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BwIrk3Jx.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-CC-bFOTf.js → share-preview-page-DAc_FkVc.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-Dwdv6QyS.js +1 -0
- package/dist/gateway/static/root/assets/{skill-reload-api-CcOtxf53.js → skill-reload-api-CDzQWN60.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DmRvRxtY.js → skills-page-CO5XVkbY.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page.utils-BR5bk2vT.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DRIJ5mXq.js → system-settings-panel-C0ptJutB.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-DOjcKOzQ.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-BABuQvGD.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-Cq4--C1i.js → use-autosave-Dc5aN2px.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-UhsSP_pC.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CbJ6tKGI.js → voice-api-key-field-CY0DpJui.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-Brg9yJBr.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-vw1229Fh.js → workflow-run-setup-panel-D3fq7boB.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-S7XXNBWa.js +6 -0
- package/dist/gateway/static/root/index.html +9 -9
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +6 -1
- package/dist/src/agent/agent-manager.js +17 -17
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/commands/command-isolation.d.ts +1 -0
- package/dist/src/agent/commands/command-isolation.js +17 -1
- package/dist/src/agent/commands/commandMounts.d.ts +2 -0
- package/dist/src/agent/commands/commandMounts.js +32 -0
- 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.js +4 -4
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +5 -5
- 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/image/tool-model-config.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/mcp/oauth/mcp-oauth-store.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/command-validator.js +0 -20
- package/dist/src/agent/sandbox/exec-policy.d.ts +1 -0
- package/dist/src/agent/sandbox/exec-policy.js +3 -3
- package/dist/src/agent/sandbox/fileAccess.d.ts +7 -0
- package/dist/src/agent/sandbox/fileAccess.js +100 -0
- package/dist/src/agent/sandbox/path-policy.d.ts +2 -0
- package/dist/src/agent/sandbox/path-policy.js +54 -17
- package/dist/src/agent/sandbox/sanitize-env-vars.js +10 -9
- 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 +19 -19
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-lock.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/tasks/task-judge-service.js +5 -5
- package/dist/src/agent/tools/apply-patch.js +25 -38
- package/dist/src/agent/tools/create-share-tool.js +13 -5
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +2 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +13 -13
- package/dist/src/agent/tools/find.js +5 -3
- package/dist/src/agent/tools/grep.js +21 -4
- package/dist/src/agent/tools/image-generate-tool.js +5 -6
- package/dist/src/agent/tools/index.js +5 -5
- package/dist/src/agent/tools/list-dir.js +2 -1
- package/dist/src/agent/tools/managed-job-tool.js +1 -0
- package/dist/src/agent/tools/publish-artifacts.js +4 -3
- package/dist/src/agent/tools/read.js +9 -6
- package/dist/src/agent/tools/repository-search.d.ts +2 -0
- package/dist/src/agent/tools/repository-search.js +51 -7
- package/dist/src/agent/tools/review-workspace.js +76 -10
- package/dist/src/agent/tools/send-media.js +5 -4
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tool-paths.js +3 -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 +6 -19
- package/dist/src/agent/tools/xopc-use-tool.js +6 -6
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-config/schema.d.ts +24 -0
- package/dist/src/agent-config/schema.js +2 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.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/channels.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +21 -20
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- 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/models.js +2 -2
- package/dist/src/cli/commands/onboard.js +2 -2
- 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 +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +16 -0
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/connection-recovery-service.js +3 -3
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- 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/lockfile.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +4 -4
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +2 -2
- 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/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/proactive-control.js +4 -4
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +25 -4
- 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 +10 -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/workflows.js +2 -2
- 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/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +4 -4
- 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.js +31 -31
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- 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/infra/update-runner.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media-shared/http/ssrf-guard.js +1 -1
- package/dist/src/notes/agent-context.js +3 -3
- package/dist/src/notes/service.js +3 -2
- 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.js +7 -2
- package/dist/src/proactive/follow-ups.js +1 -1
- package/dist/src/proactive/inbox/cards.js +2 -2
- 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/temporal/worker.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.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 +6 -2
- 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/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +4 -3
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/project-operating-view-service.js +7 -4
- package/dist/src/tasks/task-application-service.js +109 -5
- package/dist/src/tasks/task-context-assembler.js +8 -4
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-read-model-projector.js +7 -5
- package/dist/src/tasks/task-run-coordinator.js +3 -1
- package/dist/src/tasks/task-run-repository.js +4 -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 +5 -5
- package/dist/src/tui/tui.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- 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 +1 -1
- 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/service.js +3 -3
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +6 -6
- 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-B5MRLEy8.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-DY3Vwxjq.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Ch_9Ffgk.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-MACr99IO.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-Nvdoi0B1.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BluLJq5I.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-DYxxhcjb.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Bpcp8UyE.js +0 -2
- package/dist/gateway/static/root/assets/device-pairing-wizard-D_fB0fml.js +0 -1
- package/dist/gateway/static/root/assets/es2015-BvLh9GaE.js +0 -41
- package/dist/gateway/static/root/assets/gateway-settings-BH35C8RI.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BlZk-aD4.js +0 -1
- package/dist/gateway/static/root/assets/index-CfQor-TM.js +0 -74
- package/dist/gateway/static/root/assets/index-DKy1Qn1_.css +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-DJd71FlC.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-5MWeZ6Ae.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-panel-Bch98ut3.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-CWO5dQKN.js +0 -8
- package/dist/gateway/static/root/assets/popover-select-Dz_Qis2R.js +0 -1
- package/dist/gateway/static/root/assets/proactive-card-DfjMVJUW.js +0 -1
- package/dist/gateway/static/root/assets/proactive-page-BGVcVsbd.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-DsQcgZkI.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DZFVirjV.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-B2g6inq-.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CbkUOkQY.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page--7-w-0WS.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BvZrH_sp.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-Ul06Y5YX.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DwV2Wh7S.js +0 -1
- package/dist/gateway/static/root/assets/skills-page.utils-CT0-daZD.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-BQjLHqSk.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-IvWcgZdD.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-hwc5-nqV.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-BG2pmXL3.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DZWpJHDr.js +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TaskRepository } from "../tasks/task-repository.js";
|
|
2
1
|
import { FileServiceError } from "../files/file-service.js";
|
|
2
|
+
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
3
|
+
import { TaskRepository } from "../tasks/task-repository.js";
|
|
3
4
|
import { resolveMediaReference } from "../media/media-reference.js";
|
|
4
5
|
import { pendingTranscriptReferencesMediaUri } from "../agent/inbound/attachment-pipeline.js";
|
|
5
|
-
import { TaskContextRepository } from "../tasks/task-context-repository.js";
|
|
6
6
|
import { messagesReferenceMediaUri } from "../media/session-references.js";
|
|
7
7
|
//#region src/gateway/media-access.ts
|
|
8
8
|
/** Resolve media only when the supplied session or task references it. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
import { execFileSync } from "node:child_process";
|
|
5
5
|
import net from "node:net";
|
|
6
6
|
//#region src/gateway/ports.ts
|
|
@@ -54,7 +54,7 @@ function listPortListenersViaProc(port) {
|
|
|
54
54
|
for (const procFile of ["/proc/net/tcp", "/proc/net/tcp6"]) {
|
|
55
55
|
let content;
|
|
56
56
|
try {
|
|
57
|
-
content =
|
|
57
|
+
content = fsSync.readFileSync(procFile, "utf-8");
|
|
58
58
|
} catch {
|
|
59
59
|
continue;
|
|
60
60
|
}
|
|
@@ -68,7 +68,7 @@ function listPortListenersViaProc(port) {
|
|
|
68
68
|
if (inodeSet.size === 0) return results;
|
|
69
69
|
let pidDirs;
|
|
70
70
|
try {
|
|
71
|
-
pidDirs =
|
|
71
|
+
pidDirs = fsSync.readdirSync("/proc").filter((name) => /^\d+$/.test(name));
|
|
72
72
|
} catch {
|
|
73
73
|
return results;
|
|
74
74
|
}
|
|
@@ -76,14 +76,14 @@ function listPortListenersViaProc(port) {
|
|
|
76
76
|
const fdDir = `/proc/${pidStr}/fd`;
|
|
77
77
|
let fds;
|
|
78
78
|
try {
|
|
79
|
-
fds =
|
|
79
|
+
fds = fsSync.readdirSync(fdDir);
|
|
80
80
|
} catch {
|
|
81
81
|
continue;
|
|
82
82
|
}
|
|
83
83
|
for (const fd of fds) {
|
|
84
84
|
let target;
|
|
85
85
|
try {
|
|
86
|
-
target =
|
|
86
|
+
target = fsSync.readlinkSync(`${fdDir}/${fd}`);
|
|
87
87
|
} catch {
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@ function listPortListenersViaProc(port) {
|
|
|
93
93
|
if (!results.some((p) => p.pid === pid)) {
|
|
94
94
|
let command;
|
|
95
95
|
try {
|
|
96
|
-
command =
|
|
96
|
+
command = fsSync.readFileSync(`/proc/${pidStr}/comm`, "utf-8").trim();
|
|
97
97
|
} catch {}
|
|
98
98
|
results.push({
|
|
99
99
|
pid,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
2
1
|
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
2
|
+
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.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";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { loadConfig, saveConfig } from "../../config/loader.js";
|
|
4
3
|
import { getModelRegistry } from "../../providers/model-registry.js";
|
|
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";
|
|
6
8
|
import { disposeAllSessionMcpRuntimes } from "../../agent/mcp/bundle-mcp-runtime.js";
|
|
9
|
+
import { computeBundledExtensionExtensionsPatch } from "../../extensions/bundled-extension-activation.js";
|
|
7
10
|
import { reloadImageGenerationProviders } from "../../agent/image/generation/provider-registry.js";
|
|
8
11
|
import "../../agent/mcp/bundle-mcp-tools.js";
|
|
9
|
-
import { ConfigHotReloader } from "../../config/reload.js";
|
|
10
|
-
import "../../config/index.js";
|
|
11
12
|
import { sanitizeTunnelConfig } from "../../tunnel/tunnel-config.js";
|
|
12
|
-
import { computeBundledExtensionExtensionsPatch } from "../../extensions/bundled-extension-activation.js";
|
|
13
13
|
//#region src/gateway/service/config-coordinator.ts
|
|
14
14
|
init_providers();
|
|
15
15
|
init_logger();
|
|
@@ -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 { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
6
|
-
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
7
5
|
import { removeSkillsLockEntry } from "../../agent/skills/hub-lock.js";
|
|
8
6
|
import { deleteManagedSkill, installSkillFromZip, listManagedSkillDirs } from "../../agent/skills/managed-store.js";
|
|
9
|
-
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.js";
|
|
10
7
|
import { getExtensionLockfileManager } from "../../extensions/lockfile.js";
|
|
8
|
+
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
9
|
+
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "../../agent/skills/workspace-skills-dir.js";
|
|
10
|
+
import { normalizeSkillInstallTarget } from "../../agent/skills/install-target.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";
|
|
9
12
|
import { resolveExecutionContext } from "../../tasks/execution-context.js";
|
|
10
13
|
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";
|
|
@@ -12,47 +12,30 @@ import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
|
12
12
|
import "../storage/sqlite/index.js";
|
|
13
13
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
14
14
|
import { init_agent_scope, listAgentEntries, normalizeAgentId, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
15
|
-
import { buildSessionKey, init_session_key, sanitizeSegment } from "../routing/session-key.js";
|
|
16
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
17
|
-
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
18
15
|
import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../config/paths.js";
|
|
16
|
+
import { prewarmModelRegistry } from "../providers/model-registry.js";
|
|
19
17
|
import { areExtensionsGloballyDisabled } from "../extensions/discover-extensions.js";
|
|
20
18
|
import { buildExtensionMetadataSnapshot } from "../extensions/extension-metadata-snapshot.js";
|
|
21
19
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot, init_channel_catalog_service } from "../channels/catalog/channel-catalog-service.js";
|
|
22
20
|
import { loadConfig, saveConfig } from "../config/loader.js";
|
|
23
|
-
import {
|
|
21
|
+
import { buildSessionKey, init_session_key, sanitizeSegment } from "../routing/session-key.js";
|
|
22
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
24
23
|
import { init_providers, providers_exports } from "../providers/index.js";
|
|
25
|
-
import { TaskRepository } from "../tasks/task-repository.js";
|
|
26
|
-
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
27
|
-
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
28
|
-
import { disposeAllSessionMcpRuntimes } from "../agent/mcp/bundle-mcp-runtime.js";
|
|
29
|
-
import { ProjectService } from "../projects/project-service.js";
|
|
30
|
-
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
31
|
-
import "../projects/index.js";
|
|
32
|
-
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
33
|
-
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
34
|
-
import { ProactiveScenarioService } from "../proactive/scenarios/service.js";
|
|
35
|
-
import { ProactiveEventService } from "../proactive/service.js";
|
|
36
|
-
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
37
|
-
import { ProactiveInboxService } from "../proactive/inbox/service.js";
|
|
38
24
|
import { AutomationService } from "../automations/service/automation-service.js";
|
|
39
25
|
import { onAutomationProductEvent, publishAutomationProductEvent } from "../automations/product-events.js";
|
|
40
26
|
import "../automations/index.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import "../
|
|
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";
|
|
27
|
+
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
28
|
+
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
29
|
+
import { ChannelManager } from "../channels/manager.js";
|
|
30
|
+
import { resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
50
31
|
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
51
32
|
import "../infra/bus/index.js";
|
|
52
|
-
import { AgentService } from "../agent/service.js";
|
|
53
|
-
import { ensureStarterAgentsInitialized } from "../agent/starter-agents.js";
|
|
54
33
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
55
34
|
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";
|
|
56
39
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
57
40
|
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
58
41
|
import "../knowledge/index.js";
|
|
@@ -68,16 +51,33 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
68
51
|
import "../discussions/index.js";
|
|
69
52
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
70
53
|
import "../endpoint-tools/index.js";
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import
|
|
54
|
+
import { ProjectService } from "../projects/project-service.js";
|
|
55
|
+
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
56
|
+
import "../projects/index.js";
|
|
74
57
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
75
58
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
76
59
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
60
|
+
import { TaskRepository } from "../tasks/task-repository.js";
|
|
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
64
|
import { deliverProactiveCard } from "../proactive/inbox/delivery.js";
|
|
78
65
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
79
66
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
80
67
|
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
81
|
import { NotesStore } from "../notes/store.js";
|
|
82
82
|
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
83
83
|
import { NotesService } from "../notes/service.js";
|
|
@@ -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";
|
|
9
7
|
import { getExecutionEnvironmentForSession } from "../execution-environments/subject.js";
|
|
10
8
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
11
9
|
import { ProjectStore } from "../projects/project-store.js";
|
|
12
10
|
import { runExec } from "../infra/exec.js";
|
|
11
|
+
import { TaskRepository } from "../tasks/task-repository.js";
|
|
13
12
|
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 fsSync 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 = fsSync.realpathSync.native(resolved);
|
|
24
24
|
} catch {}
|
|
25
25
|
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
26
26
|
}
|
|
@@ -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 fsSync 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(fsSync.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 fsSync 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
|
+
fsSync.accessSync(filePath, fsSync.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 fsSync.statSync(dirPath).isDirectory();
|
|
22
22
|
} catch {
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { applyPathPrepend } from "./path-prepend.js";
|
|
2
1
|
import { resolveExecPathBinPrepend } from "./path-env.js";
|
|
2
|
+
import { applyPathPrepend } from "./path-prepend.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
|
|
6
|
+
import fsSync from "node:fs";
|
|
7
|
+
import fs 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
|
|
21
|
+
await fs.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
|
|
29
|
+
return await fs.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 fsSync.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 fsSync.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
|
|
207
|
+
entries = await fs.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
|
|
216
|
-
await fs
|
|
215
|
+
if (!(await fs.lstat(target)).isDirectory()) continue;
|
|
216
|
+
await fs.rm(target, {
|
|
217
217
|
recursive: true,
|
|
218
218
|
force: true
|
|
219
219
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { runPostUpdateExtensionSync } from "../extensions/update.js";
|
|
1
2
|
import "./update-channels.js";
|
|
2
3
|
import { compareSemver, resolveNpmChannelTag } from "./update-check.js";
|
|
3
|
-
import { runPostUpdateExtensionSync } from "../extensions/update.js";
|
|
4
4
|
import { readPackageName, readPackageVersion } from "./package-json.js";
|
|
5
5
|
import { createDefaultCommandRunner, runCommandWithTimeout } from "./run-command.js";
|
|
6
6
|
import { XOPC_PACKAGE_NAME, cleanupGlobalRenameDirs, createGlobalInstallEnv, detectGlobalInstallManagerForRoot, resolveGlobalInstallSpec, resolveGlobalInstallTarget } from "./update-global.js";
|
|
@@ -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 { LocalAppStore } from "./store.js";
|
|
6
5
|
import { slugifyProjectName } from "../projects/project-store.js";
|
|
6
|
+
import { LocalAppStore } from "./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";
|
|
@@ -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 { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
|
|
4
|
-
import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
|
|
5
|
-
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
6
3
|
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
4
|
+
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
7
5
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
8
6
|
import "../voice/stt/index.js";
|
|
9
7
|
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
|
|
@@ -36,8 +36,9 @@ function inferKind(markdown, hasAttachments, attachments) {
|
|
|
36
36
|
return "thought";
|
|
37
37
|
}
|
|
38
38
|
function deriveDefaultTitle(markdown) {
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const heading = markdown?.match(/^#{1,3}\s+(.+)$/m)?.[1];
|
|
40
|
+
const normalized = parseNoteMarkdown(heading ?? markdown ?? "").plainText.trim().split(/[\n。!?!?]/).map((line) => line.trim()).find(Boolean)?.replace(/\s+/g, " ");
|
|
41
|
+
return normalized ? Array.from(normalized).slice(0, 36).join("") : void 0;
|
|
41
42
|
}
|
|
42
43
|
function splitMeaningfulLines(markdown) {
|
|
43
44
|
return parseNoteMarkdown(markdown ?? "").plainText.split(/\n|。|;|;/).map((line) => line.trim()).filter(Boolean);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
3
2
|
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
3
|
+
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.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 { Agent } from "@earendil-works/pi-agent-core";
|
|
7
6
|
import { Type } from "@sinclair/typebox";
|
|
7
|
+
import { Agent } from "@earendil-works/pi-agent-core";
|
|
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";
|
|
4
5
|
import { authorizedConnectedSource } from "./authorization.js";
|
|
5
6
|
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 { authorizedConnectedSource } from "./authorization.js";
|
|
5
4
|
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
5
|
+
import { authorizedConnectedSource } from "./authorization.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";
|
|
@@ -2,9 +2,9 @@ import { getSqliteDatabase, runSqliteWriteTransaction } from "../storage/sqlite/
|
|
|
2
2
|
import { ProactiveConflict, effectiveProactivePolicy } from "./policy/service.js";
|
|
3
3
|
import { controlledSubscriptions, createControlledSubscription, requireSubscription, updateControlledSubscription } from "./scenarios/control.js";
|
|
4
4
|
import { ProactiveScenarioService } from "./scenarios/service.js";
|
|
5
|
+
import { getCard } from "./inbox/cards.js";
|
|
5
6
|
import { ProactiveEventService } from "./service.js";
|
|
6
7
|
import { listMailFollowUps } from "./follow-ups.js";
|
|
7
|
-
import { getCard } from "./inbox/cards.js";
|
|
8
8
|
import { scanDueProjects } from "./temporal/schedule.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
//#region src/proactive/experience.ts
|
|
@@ -36,6 +36,11 @@ function checkDelegation(workspace, id) {
|
|
|
36
36
|
if (!effectiveProactivePolicy(id).enabled) throw new Error("Resume this service before checking");
|
|
37
37
|
if (sub.scopeKind !== "project") throw new Error("This service checks when connected sources change");
|
|
38
38
|
return runSqliteWriteTransaction((db) => {
|
|
39
|
+
const retry = db.prepare("SELECT run_id FROM proactive_runs WHERE subscription_id = ? AND status = 'retryable' ORDER BY started_at DESC LIMIT 1").get(id);
|
|
40
|
+
if (retry) {
|
|
41
|
+
db.prepare("UPDATE proactive_runs SET next_attempt_at = ? WHERE run_id = ? AND status = 'retryable'").run((/* @__PURE__ */ new Date()).toISOString(), retry.run_id);
|
|
42
|
+
return { status: "queued" };
|
|
43
|
+
}
|
|
39
44
|
if (db.prepare("SELECT 1 FROM proactive_signal_batches WHERE subscription_id = ? AND status IN ('collecting', 'ready', 'processing')").get(id)) return { status: "queued" };
|
|
40
45
|
const last = db.prepare("SELECT MAX(started_at) AS at FROM proactive_runs WHERE subscription_id = ?").get(id);
|
|
41
46
|
if (last.at && Date.parse(last.at) > Date.now() - 6e4) throw new ProactiveConflict("A check just finished; try again in a minute");
|
|
@@ -64,7 +69,7 @@ function delegationOverview(workspace) {
|
|
|
64
69
|
...sub,
|
|
65
70
|
effectiveEnabled: effectiveProactivePolicy(sub.id).enabled,
|
|
66
71
|
project: sub.scopeKind === "project" ? db.prepare("SELECT name, status FROM projects WHERE project_id = ?").get(sub.scopeId) ?? null : null,
|
|
67
|
-
latestRun: db.prepare(`SELECT status, outcome_reason AS reason, completed_at AS completedAt, started_at AS startedAt, error_message AS error
|
|
72
|
+
latestRun: db.prepare(`SELECT status, outcome_reason AS reason, completed_at AS completedAt, started_at AS startedAt, error_message AS error, attempt, next_attempt_at AS nextAttemptAt
|
|
68
73
|
FROM proactive_runs WHERE subscription_id = ? ORDER BY started_at DESC LIMIT 1`).get(sub.id) ?? null,
|
|
69
74
|
pending: Boolean(db.prepare("SELECT 1 FROM proactive_signal_batches WHERE subscription_id = ? AND status IN ('collecting', 'ready', 'processing')").get(sub.id))
|
|
70
75
|
}))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
2
2
|
import { listKnowledgeSourceItems } from "../storage/sqlite/knowledge-repository.js";
|
|
3
3
|
import { getConnectorConnection } from "../storage/sqlite/connector-repository.js";
|
|
4
|
+
import { ProactiveConflict, effectiveProactivePolicy } from "./policy/service.js";
|
|
4
5
|
import { emailFields, readMailThread } from "./mail-thread.js";
|
|
5
6
|
import { authorizedConnectedSource } from "./execution/authorization.js";
|
|
6
|
-
import { ProactiveConflict, effectiveProactivePolicy } from "./policy/service.js";
|
|
7
7
|
import { listSubscriptions } from "./scenarios/repository.js";
|
|
8
8
|
import { createControlledSubscription } from "./scenarios/control.js";
|
|
9
9
|
import { ProactiveScenarioService } from "./scenarios/service.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { ProactiveCardActionSchema } from "../../../packages/gateway-contract/src/proactive.js";
|
|
3
3
|
import { getKnowledgeSourceItem } from "../../storage/sqlite/knowledge-repository.js";
|
|
4
|
-
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
5
4
|
import { ProactiveConflict, effectiveProactivePolicy, subscriptionSettings } from "../policy/service.js";
|
|
6
|
-
import {
|
|
5
|
+
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
7
6
|
import { withdrawCard } from "./lifecycle.js";
|
|
8
7
|
import { executePendingProactiveActions } from "../actions/service.js";
|
|
8
|
+
import { updateControlledSubscription } from "../scenarios/control.js";
|
|
9
9
|
import { getInboxItem } from "./repository.js";
|
|
10
10
|
import { ProactiveInboxService } from "./service.js";
|
|
11
11
|
//#region src/proactive/inbox/cards.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
3
2
|
import { effectiveProactivePolicy, localProactiveDay, nextDigestTime, quietHoursEnd, reserveProactiveNotification } from "../policy/service.js";
|
|
3
|
+
import { viewingProactiveCards } from "../policy/presence.js";
|
|
4
|
+
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
4
5
|
import { insightCorrelation } from "./lifecycle.js";
|
|
5
6
|
import { getInboxItem } from "./repository.js";
|
|
6
|
-
import { viewingProactiveCards } from "../policy/presence.js";
|
|
7
7
|
import { queueDigest } from "./digest.js";
|
|
8
8
|
import { notificationPlanFromGatewayEvent } from "../../notifications/planner.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { insightSourcesAuthorized } from "../execution/authorization.js";
|
|
3
2
|
import { effectiveProactivePolicy, localProactiveDay, nextDigestTime, proactivePreferences, quietHoursEnd } from "../policy/service.js";
|
|
3
|
+
import { viewingProactiveCards } from "../policy/presence.js";
|
|
4
|
+
import { insightSourcesAuthorized } from "../execution/authorization.js";
|
|
4
5
|
import { getInboxItem } from "./repository.js";
|
|
5
6
|
import { getCard } from "./cards.js";
|
|
6
|
-
import { viewingProactiveCards } from "../policy/presence.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
//#region src/proactive/inbox/digest.ts
|
|
9
9
|
function queueDigest(item, mode, dueAt) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
2
1
|
import { effectiveProactivePolicy, quietHoursEnd } from "../policy/service.js";
|
|
2
|
+
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
3
3
|
import { getInboxItem } from "./repository.js";
|
|
4
4
|
//#region src/proactive/inbox/notification-policy.ts
|
|
5
5
|
function recheckProactiveNotification(itemId, now = /* @__PURE__ */ new Date(), notificationRevision) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getSqliteDatabase, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
-
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
3
2
|
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
3
|
+
import { insightSourcesAuthorized, insightSourcesChanged } from "../execution/authorization.js";
|
|
4
4
|
import { decideProactiveDisposition, nextQuietHoursEnd, proactiveDispositionReason } from "../../tasks/project-monitoring-service.js";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/proactive/inbox/repository.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { publishInstructionFeedback } from "../scenarios/repository.js";
|
|
2
1
|
import { executePendingProactiveActions } from "../actions/service.js";
|
|
2
|
+
import { publishInstructionFeedback } from "../scenarios/repository.js";
|
|
3
3
|
import { getInboxItem, getInboxSubscriptionId, listInbox, projectInsightsToInbox, recordDecision, recordFeedback, transitionInboxItem, wakeSnoozedItems } from "./repository.js";
|
|
4
4
|
//#region src/proactive/inbox/service.ts
|
|
5
5
|
var ProactiveInboxService = class {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProactiveScenarioService } from "./scenarios/service.js";
|
|
2
|
+
import { ProactiveInboxService } from "./inbox/service.js";
|
|
2
3
|
import { normalizeEventEnvelope } from "./events/envelope.js";
|
|
3
4
|
import { matchScenario, matchesCondition } from "./routing/matcher.js";
|
|
4
5
|
import { ProactiveEventService } from "./service.js";
|
|
5
|
-
import { ProactiveInboxService } from "./inbox/service.js";
|
|
6
6
|
import { mapProductEventToProactive } from "./events/product-event-bridge.js";
|
|
7
7
|
import { pruneProactiveHistory } from "./maintenance.js";
|
|
8
8
|
import { AutomationStateContextProvider, ConnectedSourceContextProvider, ContextProviderRegistry, EventBatchContextProvider, InternalObjectContextProvider, MeetingWorkspaceContextProvider, ProjectStateContextProvider, UserModelContextProvider } from "./execution/context.js";
|
|
@@ -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 { listKnowledgeSourceItems } from "../../storage/sqlite/knowledge-repository.js";
|
|
4
|
-
import { authorizedConnectedSource } from "../execution/authorization.js";
|
|
5
4
|
import { effectiveProactivePolicy } from "../policy/service.js";
|
|
5
|
+
import { authorizedConnectedSource } from "../execution/authorization.js";
|
|
6
6
|
import { listSubscriptions } from "../scenarios/repository.js";
|
|
7
7
|
import { scanMailFollowUps } from "../follow-ups.js";
|
|
8
8
|
import { scanDueProjects } from "./schedule.js";
|