@xopcai/xopc 0.0.177 → 0.0.179
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/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-Wu2ikfbM.js → activity-store-A5FUMjeV.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-B0_biISn.js → agent-avatar-dicebear-NghNiDWx.js} +1 -1
- package/dist/gateway/static/root/assets/agents-Baq8Shzy.js +2 -0
- package/dist/gateway/static/root/assets/{api-DljBt-N5.js → api-Bmzslx0Z.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CKoZRi7Y.js → app-management-settings-panel-DDWS_BBJ.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-DOdXhNDo.js → appearance-settings-C6znvVtX.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-d-Y0Jbe1.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-D18gyP76.js → archive-plugin-fvTZhPUr.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CZh9fc8u.js → attachment-load-BFEgvg-Q.js} +1 -1
- package/dist/gateway/static/root/assets/automations-page-CFYOCBlQ.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DdSyGL6M.js → binary-plugins-CuI2bOc7.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BOpNApiX.js → block-editor-Z_k8W0al.js} +46 -46
- package/dist/gateway/static/root/assets/browser-settings-page-CGApoYPr.js +8 -0
- package/dist/gateway/static/root/assets/{browser-workflow-inputs-C0SnSj_R.js → browser-workflow-inputs-gs6b5e9-.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflows-page-CzlzH7HA.js → browser-workflows-page-Cq5qXStp.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BC-8n4Hl.js +7 -0
- package/dist/gateway/static/root/assets/{capability-presets-api-RM6S7ES5.js → capability-presets-api-BTKhPoDC.js} +1 -1
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-D7WQ0oBN.js +1 -0
- package/dist/gateway/static/root/assets/{channel-recipient-api-B4sha-30.js → channel-recipient-api-TwMak0SE.js} +1 -1
- package/dist/gateway/static/root/assets/channels-settings-DysELlO_.js +1 -0
- package/dist/gateway/static/root/assets/channels-status-swr-BAC-R8IK.js +1 -0
- package/dist/gateway/static/root/assets/{connector-logo-BPsKIyoM.js → connector-logo-DBKotvNr.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-QH-0WnOo.js +2 -0
- package/dist/gateway/static/root/assets/desktop-pet-Dwml8znf.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-CyIg2jJp.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BoZGualI.js → directory-picker-path-field-B6fc_7SL.js} +1 -1
- package/dist/gateway/static/root/assets/{dreaming-settings-s3gn3f9h.js → dreaming-settings-CUQxGnDf.js} +3 -3
- package/dist/gateway/static/root/assets/{extension-debug-page-DIbMngCF.js → extension-debug-page-AbRNi2ON.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-D94f2bWQ.js → extension-page-ClYfiLXC.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-B7TI13ex.js → extension-settings-page-BGVP2hw1.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-Do77rV8R.js → gateway-config-api-B7GqtklK.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-BMeK8igT.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-WaXTw3fi.js → gateway-startup-retry-CKKL96r_.js} +1 -1
- package/dist/gateway/static/root/assets/goals-settings-Dj0ao2qA.js +1 -0
- package/dist/gateway/static/root/assets/{heartbeat-settings-C3kzg6ai.js → heartbeat-settings-CTI2nPKa.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-BgISY8i-.js → image-generation-api-BY3VQ5Mv.js} +1 -1
- package/dist/gateway/static/root/assets/index-B0Tdge_q.css +1 -0
- package/dist/gateway/static/root/assets/index-BDzspHrg.js +224 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-0KSmaPu0.js → keyboard-shortcuts-settings-CELtDFz3.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-m8CTSGix.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BMrU8u7w.js → local-apps-page-CF5uUd1n.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DVGhFXRz.js → locale-store-DIVc0AQs.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DmH7Tk4k.js +7 -0
- package/dist/gateway/static/root/assets/{markdown-split-BVqbtN9o.js → markdown-split-CN85EdB8.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-Dr_wtkNJ.js → media-plugins-CxYEc-b8.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DYqBwJAK.js +3 -0
- package/dist/gateway/static/root/assets/{notes-page-BWZRXsq6.js → notes-page-Goab4781.js} +1 -1
- package/dist/gateway/static/root/assets/notes-workbench-C4jDBVBN.js +4 -0
- package/dist/gateway/static/root/assets/outcome-detail-page-DNRfeLZp.js +1 -0
- package/dist/gateway/static/root/assets/{page-tabs-DWWgy0bF.js → page-tabs-tQNQcAts.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-Bnfs93ZP.js → preview-open-alternatives-BSTlgsDB.js} +1 -1
- package/dist/gateway/static/root/assets/product-delivery-BVG-eWQO.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-BR7QFmT-.js → product-open-page-iQ5gTCip.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-D7anK-eu.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-BePESKWy.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-CHrzBKIs.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-BzS-rRTP.js → save-bar-controls-BsPf5Gkk.js} +1 -1
- package/dist/gateway/static/root/assets/{schedule-field-Cl2IIDAN.js → schedule-field-kAytH7mq.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BjKjp5eZ.js → schema-form-Bbw8l2ri.js} +1 -1
- package/dist/gateway/static/root/assets/{schemas-DgQq6Z5S.js → schemas-C6onAggk.js} +2 -2
- package/dist/gateway/static/root/assets/sessions-page-He5YAczL.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-2eAC9GCP.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BSDNBfHn.js → settings-form-section-BqbibcnJ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BD4peoAv.js → settings-loading-skeleton-DNLNCEGT.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-S-P3U7at.js → settings-page-BR6Ss0bK.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-BQTLh-86.js → settings-page-layout-Cdb1e2Cz.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-W3p6kNyA.js → setup-status-panel-moT-D-ia.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-DQjMxyvw.js → share-preview-page-CkrASny2.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-X49zY21H.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CjpnFfOH.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-DEwfSOUE.js +2 -0
- package/dist/gateway/static/root/assets/{skills-page.utils-CXnpudm6.js → skills-page.utils-BG5dGkyA.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-BhFwdYJP.js → system-settings-panel-XdY8eyYf.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-DQI-HPL-.js → theme-store-DtwI_VLT.js} +1 -1
- package/dist/gateway/static/root/assets/time-picker-UghsQu_I.js +1 -0
- package/dist/gateway/static/root/assets/{typed-models-lib-C-M3Fv2N.js → typed-models-lib-DOnpwsrE.js} +1 -1
- package/dist/gateway/static/root/assets/{use-channel-catalog-Bndq4y4I.js → use-channel-catalog-BWDtfNvQ.js} +1 -1
- package/dist/gateway/static/root/assets/user-context-page-BtNBEtKj.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-p_g4UI1-.js → voice-api-key-field-DP80jW-W.js} +1 -1
- package/dist/gateway/static/root/assets/work-copy-hQmivDgT.js +1 -0
- package/dist/gateway/static/root/assets/work-discovery-page-CkDOVZBr.js +1 -0
- package/dist/gateway/static/root/assets/work-item-detail-page-CqvkcFcR.js +1 -0
- package/dist/gateway/static/root/assets/work-page-BL8TZW4Z.js +3 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CHEXVvhH.js → workflow-run-setup-panel-BLlVqKdA.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-BgsdRu3_.js +11 -0
- package/dist/gateway/static/root/index.html +9 -10
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/outcomes.js +137 -0
- package/dist/packages/gateway-contract/src/product-delivery.js +1 -0
- package/dist/packages/gateway-contract/src/work-intake.js +85 -0
- package/dist/src/activity/service.d.ts +1 -0
- package/dist/src/activity/service.js +4 -1
- package/dist/src/agent/code-intelligence/binary.js +1 -1
- package/dist/src/agent/context/execution-scope.d.ts +1 -1
- package/dist/src/agent/context/execution-scope.js +6 -4
- package/dist/src/agent/embedded/model-runtime.js +3 -0
- package/dist/src/agent/embedded/run-for-session.js +18 -5
- package/dist/src/agent/embedded/run-turn.js +6 -3
- package/dist/src/agent/embedded/types.d.ts +2 -0
- package/dist/src/agent/goals/post-turn.js +6 -5
- package/dist/src/agent/mcp/mcp-stdio-transport.js +1 -1
- package/dist/src/agent/memory/user-context-coordinator.d.ts +1 -0
- package/dist/src/agent/memory/user-context-coordinator.js +17 -1
- package/dist/src/agent/outcomes/{task-evaluation.d.ts → execution-evaluation.d.ts} +3 -3
- package/dist/src/agent/outcomes/{task-evaluation.js → execution-evaluation.js} +5 -5
- package/dist/src/agent/outcomes/execution-verifier.d.ts +29 -0
- package/dist/src/agent/outcomes/{task-verifier.js → execution-verifier.js} +4 -4
- package/dist/src/agent/service/process-direct-streaming.js +3 -1
- package/dist/src/agent/tools/factory.js +16 -1
- package/dist/src/agent/tools/goal-tool.js +5 -3
- package/dist/src/agent/tools/todo-tool.d.ts +5 -0
- package/dist/src/agent/tools/todo-tool.js +16 -4
- package/dist/src/agent/tools/update-plan-tool.d.ts +1 -0
- package/dist/src/agent/tools/update-plan-tool.js +6 -0
- package/dist/src/browser/providers/cloakbrowser.js +2 -2
- package/dist/src/channels/attachments/voice-stt-webchat.d.ts +0 -3
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -24
- package/dist/src/chat-commands/builtins/goal.js +5 -4
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/goal.js +6 -5
- package/dist/src/cli/commands/tunnel.js +3 -3
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +7 -1
- package/dist/src/connectors/source-change-publisher.d.ts +17 -0
- package/dist/src/connectors/source-change-publisher.js +148 -0
- package/dist/src/discussions/analyzer.d.ts +35 -0
- package/dist/src/discussions/analyzer.js +127 -0
- package/dist/src/discussions/index.d.ts +7 -0
- package/dist/src/discussions/index.js +7 -0
- package/dist/src/discussions/live-worker.d.ts +33 -0
- package/dist/src/discussions/live-worker.js +148 -0
- package/dist/src/discussions/pipeline.d.ts +33 -0
- package/dist/src/discussions/pipeline.js +205 -0
- package/dist/src/discussions/project-inference.d.ts +13 -0
- package/dist/src/discussions/project-inference.js +19 -0
- package/dist/src/discussions/repository.d.ts +29 -0
- package/dist/src/discussions/repository.js +255 -0
- package/dist/src/discussions/service.d.ts +51 -0
- package/dist/src/discussions/service.js +335 -0
- package/dist/src/discussions/transcript.d.ts +3 -0
- package/dist/src/discussions/transcript.js +15 -0
- package/dist/src/discussions/types.d.ts +116 -0
- package/dist/src/discussions/types.js +10 -0
- package/dist/src/discussions/worker.d.ts +18 -0
- package/dist/src/discussions/worker.js +74 -0
- package/dist/src/extensions/activation-context.js +2 -1
- package/dist/src/extensions/sdk/testing.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/chat-stream/mapper.js +53 -3
- package/dist/src/gateway/chat-stream/protocol.d.ts +17 -1
- package/dist/src/gateway/hono/app.js +8 -3
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +2 -2
- package/dist/src/gateway/hono/middleware/logger.js +1 -1
- package/dist/src/gateway/hono/middleware/strict-rate-limit.js +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/browser-install.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/connectors.js +79 -0
- package/dist/src/gateway/hono/routes/discussions.d.ts +3 -0
- package/dist/src/gateway/hono/routes/discussions.js +177 -0
- package/dist/src/gateway/hono/routes/execution-receipts.d.ts +3 -0
- package/dist/src/gateway/hono/routes/execution-receipts.js +163 -0
- package/dist/src/gateway/hono/routes/exposure.js +1 -1
- package/dist/src/gateway/hono/routes/goals.js +3 -288
- package/dist/src/gateway/hono/routes/home.d.ts +2 -102
- package/dist/src/gateway/hono/routes/home.js +8 -424
- package/dist/src/gateway/hono/routes/index.js +6 -2
- package/dist/src/gateway/hono/routes/memory.js +7 -7
- package/dist/src/gateway/hono/routes/notes.js +30 -0
- package/dist/src/gateway/hono/routes/projects.js +8 -152
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/status.js +2 -2
- package/dist/src/gateway/hono/routes/tunnel.js +3 -3
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/hono/routes/work.d.ts +3 -0
- package/dist/src/gateway/hono/routes/work.js +207 -0
- package/dist/src/gateway/hono/routes/you.js +12 -14
- package/dist/src/gateway/index.js +2 -2
- package/dist/src/gateway/runtime-config.js +2 -2
- package/dist/src/gateway/security/audit.js +2 -2
- package/dist/src/gateway/security/index.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +1 -1
- package/dist/src/gateway/service/run-gateway-agent.js +46 -51
- package/dist/src/gateway/service.d.ts +8 -1
- package/dist/src/gateway/service.js +139 -12
- package/dist/src/goals/goal-queue-store.d.ts +1 -0
- package/dist/src/goals/goal-queue-store.js +5 -1
- package/dist/src/goals/goal-queue-types.d.ts +11 -1
- package/dist/src/goals/goal-runner.js +10 -6
- package/dist/src/goals/goal-service.d.ts +2 -15
- package/dist/src/goals/goal-service.js +9 -42
- package/dist/src/goals/goal-store.d.ts +1 -18
- package/dist/src/goals/goal-store.js +25 -231
- package/dist/src/goals/index.d.ts +0 -4
- package/dist/src/goals/index.js +1 -3
- package/dist/src/goals/types.d.ts +4 -66
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/notes/service.d.ts +1 -0
- package/dist/src/notes/service.js +9 -0
- package/dist/src/notes/types.d.ts +1 -0
- package/dist/src/proactive/events/product-event-bridge.d.ts +7 -0
- package/dist/src/proactive/events/product-event-bridge.js +84 -0
- package/dist/src/proactive/execution/context.d.ts +27 -11
- package/dist/src/proactive/execution/context.js +259 -25
- package/dist/src/proactive/execution/repository.js +18 -5
- package/dist/src/proactive/execution/types.d.ts +7 -1
- package/dist/src/proactive/execution/worker.js +7 -6
- package/dist/src/proactive/inbox/repository.js +8 -2
- package/dist/src/proactive/index.d.ts +4 -2
- package/dist/src/proactive/index.js +5 -3
- package/dist/src/proactive/temporal/worker.d.ts +16 -0
- package/dist/src/proactive/temporal/worker.js +110 -0
- package/dist/src/providers/provider-auth-service.js +3 -0
- package/dist/src/providers/register-bundled-oauth-flows.d.ts +2 -0
- package/dist/src/providers/register-bundled-oauth-flows.js +16 -0
- package/dist/src/session/store.d.ts +2 -0
- package/dist/src/session/store.js +30 -0
- package/dist/src/share/share-zip.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/storage/sqlite/activity-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/activity-repository.js +4 -1
- package/dist/src/storage/sqlite/connector-sync-policy-repository.d.ts +20 -0
- package/dist/src/storage/sqlite/connector-sync-policy-repository.js +50 -0
- package/dist/src/storage/sqlite/execution-receipt-repository.d.ts +146 -0
- package/dist/src/storage/sqlite/execution-receipt-repository.js +235 -0
- package/dist/src/storage/sqlite/index.d.ts +4 -2
- package/dist/src/storage/sqlite/index.js +6 -4
- package/dist/src/storage/sqlite/knowledge-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/knowledge-repository.js +9 -1
- package/dist/src/storage/sqlite/memory-records-repository.js +1 -1
- package/dist/src/storage/sqlite/migrations/075_connector_sync_policies.sql +13 -0
- package/dist/src/storage/sqlite/migrations/076_meeting_preparation_scenario.sql +29 -0
- package/dist/src/storage/sqlite/migrations/077_proactive_insight_fingerprints.sql +4 -0
- package/dist/src/storage/sqlite/migrations/078_discussion_captures.sql +64 -0
- package/dist/src/storage/sqlite/migrations/079_discussion_follow_up_scenario.sql +29 -0
- package/dist/src/storage/sqlite/migrations/080_task_outcome_context.sql +15 -0
- package/dist/src/storage/sqlite/migrations/081_project_monitoring_policies.sql +10 -0
- package/dist/src/storage/sqlite/migrations/082_one_click_live_discussions.sql +100 -0
- package/dist/src/storage/sqlite/migrations/083_session_task_plans.sql +9 -0
- package/dist/src/storage/sqlite/migrations/084_work_intake_lifecycle.sql +26 -0
- package/dist/src/storage/sqlite/migrations/085_task_outcome_projection.sql +19 -0
- package/dist/src/storage/sqlite/migrations/086_outcome_aggregates.sql +168 -0
- package/dist/src/storage/sqlite/migrations/087_context_snapshots.sql +21 -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/notes-repository.js +9 -0
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/schema.sql +89 -44
- package/dist/src/storage/sqlite/session-repository.js +1 -1
- package/dist/src/storage/sqlite/session-task-plan-repository.d.ts +20 -0
- package/dist/src/storage/sqlite/session-task-plan-repository.js +77 -0
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/tunnel/frpc-binary.js +1 -1
- package/dist/src/tunnel/frpc-extract.js +1 -1
- package/dist/src/tunnel/index.js +2 -2
- package/dist/src/user-context/context-compiler.d.ts +31 -0
- package/dist/src/user-context/context-compiler.js +51 -0
- package/dist/src/voice/local/model-files.js +1 -1
- package/dist/src/voice/stt/config.d.ts +4 -0
- package/dist/src/voice/stt/config.js +26 -0
- package/dist/src/voice/stt/index.d.ts +1 -0
- package/dist/src/voice/stt/index.js +2 -1
- package/dist/src/voice/stt/list-providers.js +1 -1
- package/dist/src/work/attention-governor.d.ts +20 -0
- package/dist/src/work/attention-governor.js +46 -0
- package/dist/src/work/execution-context.d.ts +16 -0
- package/dist/src/work/execution-context.js +66 -0
- package/dist/src/work/home-query-service.d.ts +118 -0
- package/dist/src/work/home-query-service.js +389 -0
- package/dist/src/work/index.d.ts +14 -0
- package/dist/src/work/index.js +15 -0
- package/dist/src/work/outcome-contract-definition.d.ts +8 -0
- package/dist/src/work/outcome-contract-definition.js +15 -0
- package/dist/src/work/outcome-execution-service.d.ts +27 -0
- package/dist/src/work/outcome-execution-service.js +60 -0
- package/dist/src/work/outcome-projection-service.d.ts +7 -0
- package/dist/src/work/outcome-projection-service.js +51 -0
- package/dist/src/work/outcome-receipt-service.d.ts +13 -0
- package/dist/src/work/outcome-receipt-service.js +55 -0
- package/dist/src/work/outcome-repository.d.ts +50 -0
- package/dist/src/work/outcome-repository.js +112 -0
- package/dist/src/work/outcome-run-coordinator.d.ts +25 -0
- package/dist/src/work/outcome-run-coordinator.js +117 -0
- package/dist/src/work/project-monitoring-service.d.ts +21 -0
- package/dist/src/work/project-monitoring-service.js +76 -0
- package/dist/src/work/project-operating-view-service.d.ts +10 -0
- package/dist/src/work/project-operating-view-service.js +46 -0
- package/dist/src/work/work-intake-repository.d.ts +49 -0
- package/dist/src/work/work-intake-repository.js +97 -0
- package/dist/src/work/work-intake-service.d.ts +26 -0
- package/dist/src/work/work-intake-service.js +171 -0
- package/dist/src/work/work-value-metrics-service.d.ts +4 -0
- package/dist/src/work/work-value-metrics-service.js +88 -0
- package/dist/src/work-items/work-item-service.d.ts +0 -2
- package/dist/src/work-items/work-item-service.js +0 -28
- package/dist/src/workflows/service/workflow-run-service.js +1 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +2 -2
- package/package.json +3 -11
- package/dist/gateway/static/root/assets/agents-TpIpJk59.js +0 -2
- package/dist/gateway/static/root/assets/apps-page-Cxbn5hy8.js +0 -1
- package/dist/gateway/static/root/assets/automation-suggestion-card-DKrVoiiK.js +0 -1
- package/dist/gateway/static/root/assets/automations-page-DYv16QMU.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-DlcqaGu1.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-QPX4wsGZ.js +0 -7
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-DmCeusO8.js +0 -1
- package/dist/gateway/static/root/assets/channels-settings-HcKoP1wm.js +0 -1
- package/dist/gateway/static/root/assets/channels-status-swr-D3xr2enH.js +0 -1
- package/dist/gateway/static/root/assets/circle-alert-BEjgurr2.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-DwbThFvd.js +0 -2
- package/dist/gateway/static/root/assets/desktop-pet-DjL1GWON.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-u_abAXh7.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-Dt1PNJmb.js +0 -1
- package/dist/gateway/static/root/assets/goal-create-dialog-DEiOOLGU.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-C1Qj4o1K.js +0 -4
- package/dist/gateway/static/root/assets/goals-config-api-BL0fAEns.js +0 -1
- package/dist/gateway/static/root/assets/goals-page-qJDcEDzc.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-DV3ZlrdI.js +0 -1
- package/dist/gateway/static/root/assets/index-C1h0zkNo.js +0 -212
- package/dist/gateway/static/root/assets/index-Da36E3WH.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DcD4mVId.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-CW5m9Cov.js +0 -7
- package/dist/gateway/static/root/assets/messages-r8L6Ur3A.js +0 -3
- package/dist/gateway/static/root/assets/notes-workbench-DdnwNz9x.js +0 -4
- package/dist/gateway/static/root/assets/product-delivery-BTRT9kCS.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-B8GeS4dl.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-DOeu1Hk_.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-De94rxnE.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-A7p8G0OJ.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BsGzjmqx.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Xo3N99PO.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-ByPEG5t1.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-C019Ml5q.js +0 -2
- package/dist/gateway/static/root/assets/time-picker-C0DCya4U.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-fYBzpus-.js +0 -1
- package/dist/gateway/static/root/assets/work-discovery-page-DI0gCZRw.js +0 -1
- package/dist/gateway/static/root/assets/work-item-detail-page-DnBRP2wI.js +0 -1
- package/dist/gateway/static/root/assets/work-page-Z-nUaS_n.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-BDfwnM-Y.js +0 -11
- package/dist/src/agent/outcomes/task-verifier.d.ts +0 -29
- package/dist/src/gateway/hono/routes/task-outcomes.d.ts +0 -3
- package/dist/src/gateway/hono/routes/task-outcomes.js +0 -109
- package/dist/src/goals/goal-contract-draft.d.ts +0 -15
- package/dist/src/goals/goal-contract-draft.js +0 -112
- package/dist/src/goals/goal-evidence-review.d.ts +0 -15
- package/dist/src/goals/goal-evidence-review.js +0 -89
- package/dist/src/storage/sqlite/task-outcome-repository.d.ts +0 -90
- package/dist/src/storage/sqlite/task-outcome-repository.js +0 -138
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { getSqliteDatabase, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
2
|
+
import { getRelationshipSettings } from "../storage/sqlite/relationship-settings-repository.js";
|
|
3
|
+
import "../storage/sqlite/index.js";
|
|
4
|
+
import { randomUUID } from "node:crypto";
|
|
5
|
+
//#region src/user-context/context-compiler.ts
|
|
6
|
+
function fromRow(row) {
|
|
7
|
+
return {
|
|
8
|
+
id: row.snapshot_id,
|
|
9
|
+
traceId: row.trace_id,
|
|
10
|
+
sessionKey: row.session_key,
|
|
11
|
+
query: row.query,
|
|
12
|
+
selectedItems: JSON.parse(row.selected_items_json),
|
|
13
|
+
rejectedItems: JSON.parse(row.rejected_items_json),
|
|
14
|
+
consentRequests: JSON.parse(row.consent_requests_json),
|
|
15
|
+
relationshipPolicy: JSON.parse(row.relationship_policy_json),
|
|
16
|
+
estimatedTokens: row.estimated_tokens,
|
|
17
|
+
...row.outcome_id ? { outcomeId: row.outcome_id } : {},
|
|
18
|
+
...row.run_id ? { runId: row.run_id } : {},
|
|
19
|
+
createdAt: row.created_at
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
var ContextCompiler = class {
|
|
23
|
+
capture(input) {
|
|
24
|
+
const now = input.now ?? Date.now();
|
|
25
|
+
const id = randomUUID();
|
|
26
|
+
runSqliteWriteTransaction((db) => {
|
|
27
|
+
db.prepare(`INSERT INTO context_snapshots (
|
|
28
|
+
snapshot_id, trace_id, session_key, query, selected_items_json,
|
|
29
|
+
rejected_items_json, consent_requests_json, relationship_policy_json,
|
|
30
|
+
estimated_tokens, created_at
|
|
31
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(id, input.plan.traceId, input.sessionKey, input.query.trim(), JSON.stringify(input.plan.items), JSON.stringify(input.plan.rejected), JSON.stringify(input.plan.consentRequests), JSON.stringify(getRelationshipSettings()), input.plan.estimatedTokens, now);
|
|
32
|
+
});
|
|
33
|
+
return this.get(id);
|
|
34
|
+
}
|
|
35
|
+
get(id) {
|
|
36
|
+
const row = getSqliteDatabase().prepare("SELECT * FROM context_snapshots WHERE snapshot_id = ?").get(id);
|
|
37
|
+
return row ? fromRow(row) : void 0;
|
|
38
|
+
}
|
|
39
|
+
latestForSession(sessionKey, since = 0) {
|
|
40
|
+
const row = getSqliteDatabase().prepare(`SELECT * FROM context_snapshots
|
|
41
|
+
WHERE session_key = ? AND created_at >= ?
|
|
42
|
+
ORDER BY created_at DESC LIMIT 1`).get(sessionKey, since);
|
|
43
|
+
return row ? fromRow(row) : void 0;
|
|
44
|
+
}
|
|
45
|
+
linkToRun(input) {
|
|
46
|
+
getSqliteDatabase().prepare(`UPDATE context_snapshots SET outcome_id = ?, run_id = ? WHERE snapshot_id = ?`).run(input.outcomeId ?? null, input.runId, input.snapshotId);
|
|
47
|
+
return this.get(input.snapshotId);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { ContextCompiler };
|
|
@@ -2,8 +2,8 @@ import { dirname, join } from "node:path";
|
|
|
2
2
|
import { createReadStream, createWriteStream } from "node:fs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { mkdir, rm, stat } from "node:fs/promises";
|
|
5
|
-
import { Readable } from "node:stream";
|
|
6
5
|
import { pipeline } from "node:stream/promises";
|
|
6
|
+
import { Readable } from "node:stream";
|
|
7
7
|
//#region src/voice/local/model-files.ts
|
|
8
8
|
function resolveModelFileUrl(remoteHost, model, file) {
|
|
9
9
|
const base = remoteHost.endsWith("/") ? remoteHost : `${remoteHost}/`;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DEFAULT_STT_CONFIG } from "./types.js";
|
|
2
|
+
//#region src/voice/stt/config.ts
|
|
3
|
+
function mergeSttProviders(base, patch) {
|
|
4
|
+
if (!base && !patch) return void 0;
|
|
5
|
+
const merged = { ...base ?? {} };
|
|
6
|
+
for (const [id, slice] of Object.entries(patch ?? {})) merged[id] = {
|
|
7
|
+
...merged[id] ?? {},
|
|
8
|
+
...slice
|
|
9
|
+
};
|
|
10
|
+
return merged;
|
|
11
|
+
}
|
|
12
|
+
function mergeSttConfigFromAppConfig(stt, toolsMedia) {
|
|
13
|
+
const patch = stt ?? {};
|
|
14
|
+
return {
|
|
15
|
+
...DEFAULT_STT_CONFIG,
|
|
16
|
+
...patch,
|
|
17
|
+
providers: mergeSttProviders(DEFAULT_STT_CONFIG.providers, patch.providers),
|
|
18
|
+
fallback: {
|
|
19
|
+
...DEFAULT_STT_CONFIG.fallback,
|
|
20
|
+
...patch.fallback
|
|
21
|
+
},
|
|
22
|
+
...toolsMedia?.models?.length ? { sharedModels: toolsMedia.models } : {}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { mergeSttConfigFromAppConfig };
|
|
@@ -9,6 +9,7 @@ import './providers/index.js';
|
|
|
9
9
|
import type { STTConfig, STTOptions, STTResult } from './types.js';
|
|
10
10
|
export { transcribe } from './transcribe-core.js';
|
|
11
11
|
export { isSTTAvailable } from './availability.js';
|
|
12
|
+
export { mergeSttConfigFromAppConfig } from './config.js';
|
|
12
13
|
/**
|
|
13
14
|
* Single-provider transcription helper. Used by chat-commands /stt so a user
|
|
14
15
|
* can force a specific provider regardless of fallback config.
|
|
@@ -4,6 +4,7 @@ import "./providers/index.js";
|
|
|
4
4
|
import { resolveSTTProviderChain, resolveSTTProviderConfig, resolveSTTProviderOrder } from "./factory.js";
|
|
5
5
|
import { transcribe } from "./transcribe-core.js";
|
|
6
6
|
import { isSTTAvailable } from "./availability.js";
|
|
7
|
+
import { mergeSttConfigFromAppConfig } from "./config.js";
|
|
7
8
|
import { checkMentionInTranscription } from "./mention.js";
|
|
8
9
|
import { audioPreflightTranscribe } from "./preflight.js";
|
|
9
10
|
//#region src/voice/stt/index.ts
|
|
@@ -28,4 +29,4 @@ async function transcribeWithProvider(audioBuffer, providerName, config, options
|
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
//#endregion
|
|
31
|
-
export { alibabaTranscriptionProvider, audioPreflightTranscribe, checkMentionInTranscription, isSTTAvailable, openAiTranscriptionProvider, resolveSTTProviderChain, resolveSTTProviderConfig, resolveSTTProviderOrder, transcribe, transcribeWithProvider };
|
|
32
|
+
export { alibabaTranscriptionProvider, audioPreflightTranscribe, checkMentionInTranscription, isSTTAvailable, mergeSttConfigFromAppConfig, openAiTranscriptionProvider, resolveSTTProviderChain, resolveSTTProviderConfig, resolveSTTProviderOrder, transcribe, transcribeWithProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { listMediaUnderstandingProviders } from "../../media-understanding/registry.js";
|
|
2
2
|
import { resolveSTTProviderConfig } from "./factory.js";
|
|
3
|
-
import { mergeSttConfigFromAppConfig } from "
|
|
3
|
+
import { mergeSttConfigFromAppConfig } from "./config.js";
|
|
4
4
|
import { getVoiceProviderMetadata } from "../metadata/registry.js";
|
|
5
5
|
import "../metadata/index.js";
|
|
6
6
|
//#region src/voice/stt/list-providers.ts
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { WorkHomeAttention, WorkHomeDecision } from '@xopcai/gateway-contract';
|
|
2
|
+
export interface AttentionProjection {
|
|
3
|
+
decisions: WorkHomeDecision[];
|
|
4
|
+
attention: WorkHomeAttention[];
|
|
5
|
+
policy: {
|
|
6
|
+
visibleDecisionCount: number;
|
|
7
|
+
suppressedDecisionCount: number;
|
|
8
|
+
visibleAttentionCount: number;
|
|
9
|
+
suppressedAttentionCount: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare class AttentionGovernor {
|
|
13
|
+
project(input: {
|
|
14
|
+
decisions: WorkHomeDecision[];
|
|
15
|
+
attention: WorkHomeAttention[];
|
|
16
|
+
proactiveEnabled: boolean;
|
|
17
|
+
maxDecisions?: number;
|
|
18
|
+
maxAttention?: number;
|
|
19
|
+
}): AttentionProjection;
|
|
20
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/work/attention-governor.ts
|
|
2
|
+
function decisionScore(item) {
|
|
3
|
+
if (item.reason === "approval_required") return 100;
|
|
4
|
+
if (item.reason === "needs_input") return 95;
|
|
5
|
+
if (item.reason === "blocked") return 85;
|
|
6
|
+
if (item.reason === "in_review") return 80;
|
|
7
|
+
if (item.kind === "agent_judgment") return Math.round((item.judgment?.valueScore ?? 0) * 70) + (item.urgency === "now" ? 20 : 0);
|
|
8
|
+
if (item.reason === "overdue") return 70;
|
|
9
|
+
return 50;
|
|
10
|
+
}
|
|
11
|
+
function decisionKey(item) {
|
|
12
|
+
const title = item.title.trim().toLocaleLowerCase();
|
|
13
|
+
return item.response ? item.id : `${item.projectId ?? "global"}:${title}:${item.reason === "approval_required" ? item.id : ""}`;
|
|
14
|
+
}
|
|
15
|
+
function keepDecision(item, proactiveEnabled) {
|
|
16
|
+
if (item.kind !== "agent_judgment") return true;
|
|
17
|
+
if (!proactiveEnabled) return false;
|
|
18
|
+
return (item.judgment?.confidence ?? 0) >= .65 && (item.judgment?.valueScore ?? 0) >= .6;
|
|
19
|
+
}
|
|
20
|
+
var AttentionGovernor = class {
|
|
21
|
+
project(input) {
|
|
22
|
+
const maxDecisions = Math.max(1, Math.min(20, input.maxDecisions ?? 7));
|
|
23
|
+
const maxAttention = Math.max(1, Math.min(10, input.maxAttention ?? 5));
|
|
24
|
+
const seen = /* @__PURE__ */ new Set();
|
|
25
|
+
const eligible = [...input.decisions].filter((item) => keepDecision(item, input.proactiveEnabled)).sort((left, right) => decisionScore(right) - decisionScore(left) || right.updatedAt - left.updatedAt).filter((item) => {
|
|
26
|
+
const key = decisionKey(item);
|
|
27
|
+
if (seen.has(key)) return false;
|
|
28
|
+
seen.add(key);
|
|
29
|
+
return true;
|
|
30
|
+
});
|
|
31
|
+
const attention = [...input.attention].sort((left, right) => right.updatedAt - left.updatedAt).slice(0, maxAttention);
|
|
32
|
+
const decisions = eligible.slice(0, maxDecisions);
|
|
33
|
+
return {
|
|
34
|
+
decisions,
|
|
35
|
+
attention,
|
|
36
|
+
policy: {
|
|
37
|
+
visibleDecisionCount: decisions.length,
|
|
38
|
+
suppressedDecisionCount: Math.max(0, input.decisions.length - decisions.length),
|
|
39
|
+
visibleAttentionCount: attention.length,
|
|
40
|
+
suppressedAttentionCount: Math.max(0, input.attention.length - attention.length)
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { AttentionGovernor };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SessionMetadata } from '../session/types.js';
|
|
2
|
+
import type { ExecutionReceiptContext } from '../storage/sqlite/execution-receipt-repository.js';
|
|
3
|
+
export interface ExecutionContext extends ExecutionReceiptContext {
|
|
4
|
+
runId: string;
|
|
5
|
+
sessionKey: string;
|
|
6
|
+
channel: string;
|
|
7
|
+
agentId?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveExecutionContext(input: {
|
|
10
|
+
runId: string;
|
|
11
|
+
sessionKey: string;
|
|
12
|
+
channel: string;
|
|
13
|
+
metadata: SessionMetadata;
|
|
14
|
+
agentId?: string;
|
|
15
|
+
}): ExecutionContext;
|
|
16
|
+
export declare function executionReceiptContext(context: ExecutionContext): ExecutionReceiptContext;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//#region src/work/execution-context.ts
|
|
2
|
+
const ORIGINS = new Set([
|
|
3
|
+
"chat",
|
|
4
|
+
"goal",
|
|
5
|
+
"workflow",
|
|
6
|
+
"automation",
|
|
7
|
+
"browser",
|
|
8
|
+
"proactive"
|
|
9
|
+
]);
|
|
10
|
+
const TRIGGERS = new Set([
|
|
11
|
+
"user",
|
|
12
|
+
"schedule",
|
|
13
|
+
"webhook",
|
|
14
|
+
"proactive",
|
|
15
|
+
"retry"
|
|
16
|
+
]);
|
|
17
|
+
function optionalString(value) {
|
|
18
|
+
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
19
|
+
}
|
|
20
|
+
function metadataOrigin(metadata) {
|
|
21
|
+
const explicit = optionalString(metadata.customData?.origin);
|
|
22
|
+
if (explicit && ORIGINS.has(explicit)) return explicit;
|
|
23
|
+
if (optionalString(metadata.customData?.goalId)) return "goal";
|
|
24
|
+
if (metadata.sessionType === "workflow-run" || metadata.sessionType === "workflow-subagent") return "workflow";
|
|
25
|
+
if (metadata.sessionType === "cron") return "automation";
|
|
26
|
+
if (metadata.sessionType === "heartbeat") return "proactive";
|
|
27
|
+
if (optionalString(metadata.customData?.browserRecipeId)) return "browser";
|
|
28
|
+
return "chat";
|
|
29
|
+
}
|
|
30
|
+
function metadataTrigger(metadata) {
|
|
31
|
+
const explicit = optionalString(metadata.customData?.triggerKind);
|
|
32
|
+
if (explicit && TRIGGERS.has(explicit)) return explicit;
|
|
33
|
+
if (metadata.sessionType === "cron") return "schedule";
|
|
34
|
+
if (metadata.sessionType === "heartbeat") return "proactive";
|
|
35
|
+
return "user";
|
|
36
|
+
}
|
|
37
|
+
function resolveExecutionContext(input) {
|
|
38
|
+
return {
|
|
39
|
+
runId: input.runId,
|
|
40
|
+
sessionKey: input.sessionKey,
|
|
41
|
+
channel: input.channel,
|
|
42
|
+
agentId: input.agentId,
|
|
43
|
+
projectId: input.metadata.projectId,
|
|
44
|
+
outcomeId: optionalString(input.metadata.customData?.outcomeId),
|
|
45
|
+
goalId: optionalString(input.metadata.customData?.goalId),
|
|
46
|
+
workItemId: optionalString(input.metadata.customData?.workItemId),
|
|
47
|
+
origin: metadataOrigin(input.metadata),
|
|
48
|
+
triggerKind: metadataTrigger(input.metadata),
|
|
49
|
+
parentRunId: optionalString(input.metadata.customData?.parentRunId),
|
|
50
|
+
contextTraceId: optionalString(input.metadata.customData?.contextTraceId)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function executionReceiptContext(context) {
|
|
54
|
+
return {
|
|
55
|
+
outcomeId: context.outcomeId,
|
|
56
|
+
projectId: context.projectId,
|
|
57
|
+
goalId: context.goalId,
|
|
58
|
+
workItemId: context.workItemId,
|
|
59
|
+
origin: context.origin,
|
|
60
|
+
triggerKind: context.triggerKind,
|
|
61
|
+
parentRunId: context.parentRunId,
|
|
62
|
+
contextTraceId: context.contextTraceId
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { executionReceiptContext, resolveExecutionContext };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { WorkHomeResponse } from '@xopcai/gateway-contract';
|
|
2
|
+
import type { GatewayService } from '../gateway/service.js';
|
|
3
|
+
import { type AutomationRun } from '../automations/index.js';
|
|
4
|
+
type HomeDecision = WorkHomeResponse['decisions'][number];
|
|
5
|
+
type HomeAttention = WorkHomeResponse['attention'][number];
|
|
6
|
+
type HomeBriefingWin = WorkHomeResponse['briefing']['wins'][number];
|
|
7
|
+
type HomeAutomation = WorkHomeResponse['upcomingAutomations'][number];
|
|
8
|
+
type HomeAutomationRun = {
|
|
9
|
+
id: string;
|
|
10
|
+
automationId: string;
|
|
11
|
+
automationName?: string;
|
|
12
|
+
status: AutomationRun['status'];
|
|
13
|
+
createdAtMs: number;
|
|
14
|
+
startedAtMs?: number;
|
|
15
|
+
endedAtMs?: number;
|
|
16
|
+
error?: string;
|
|
17
|
+
summary?: string;
|
|
18
|
+
sessionKey?: string;
|
|
19
|
+
workflowRunId?: string;
|
|
20
|
+
};
|
|
21
|
+
type HomeSnapshot = WorkHomeResponse & {
|
|
22
|
+
recentlyOpened: unknown[];
|
|
23
|
+
inboxCount: number;
|
|
24
|
+
pendingTasks: unknown[];
|
|
25
|
+
pendingTaskCount: number;
|
|
26
|
+
recentSessions: unknown[];
|
|
27
|
+
activeAgent: {
|
|
28
|
+
id: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
};
|
|
32
|
+
gateway: Record<string, unknown>;
|
|
33
|
+
recentAutomationRuns: HomeAutomationRun[];
|
|
34
|
+
};
|
|
35
|
+
export declare function workItemAttentionRank(item: {
|
|
36
|
+
status: string;
|
|
37
|
+
dueAt?: number;
|
|
38
|
+
priority: string;
|
|
39
|
+
updatedAt: number;
|
|
40
|
+
}, nowMs: number): number;
|
|
41
|
+
export declare function buildHomeBriefing(input: {
|
|
42
|
+
locale?: string;
|
|
43
|
+
decisions: HomeDecision[];
|
|
44
|
+
attention: HomeAttention[];
|
|
45
|
+
activeWorkCount: number;
|
|
46
|
+
activeWorkflowCount: number;
|
|
47
|
+
activeGoalCount: number;
|
|
48
|
+
wins: HomeBriefingWin[];
|
|
49
|
+
nextScheduled?: HomeAutomation;
|
|
50
|
+
nowMs: number;
|
|
51
|
+
}): {
|
|
52
|
+
generatedAt: number;
|
|
53
|
+
summary: string;
|
|
54
|
+
focus: {
|
|
55
|
+
id: string;
|
|
56
|
+
kind: "work_item" | "goal" | "agent_judgment" | "connector_approval" | "goal_evidence";
|
|
57
|
+
title: string;
|
|
58
|
+
reason: "approval_required" | "blocked" | "needs_input" | "in_review" | "overdue" | "due_soon" | "decision_needed";
|
|
59
|
+
urgency: "now" | "soon";
|
|
60
|
+
href: string;
|
|
61
|
+
updatedAt: number;
|
|
62
|
+
detail?: string;
|
|
63
|
+
projectId?: string;
|
|
64
|
+
projectName?: string;
|
|
65
|
+
judgment?: {
|
|
66
|
+
inboxItemId: string;
|
|
67
|
+
whyNow: string;
|
|
68
|
+
impact: string;
|
|
69
|
+
workDone: string;
|
|
70
|
+
recommendation: string;
|
|
71
|
+
confidence: number;
|
|
72
|
+
valueScore?: number;
|
|
73
|
+
decision?: {
|
|
74
|
+
question: string;
|
|
75
|
+
options: {
|
|
76
|
+
id: string;
|
|
77
|
+
label: string;
|
|
78
|
+
consequence: string;
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
response?: {
|
|
83
|
+
kind: "connector_approval";
|
|
84
|
+
approvalId: string;
|
|
85
|
+
} | {
|
|
86
|
+
kind: "goal_evidence";
|
|
87
|
+
goalId: string;
|
|
88
|
+
requirementId: string;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
progress: {
|
|
92
|
+
activeWorkCount: number;
|
|
93
|
+
activeWorkflowCount: number;
|
|
94
|
+
activeGoalCount: number;
|
|
95
|
+
movingCount: number;
|
|
96
|
+
};
|
|
97
|
+
wins: {
|
|
98
|
+
id: string;
|
|
99
|
+
kind: "work_item" | "workflow_run" | "automation_run";
|
|
100
|
+
title: string;
|
|
101
|
+
href: string;
|
|
102
|
+
completedAt: number;
|
|
103
|
+
}[];
|
|
104
|
+
nextScheduled: {
|
|
105
|
+
id: string;
|
|
106
|
+
trigger: string;
|
|
107
|
+
action: string;
|
|
108
|
+
nextRunAt: string;
|
|
109
|
+
name?: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export declare class WorkHomeQueryService {
|
|
113
|
+
#private;
|
|
114
|
+
private readonly service;
|
|
115
|
+
constructor(service: GatewayService);
|
|
116
|
+
getSnapshot(locale?: string): Promise<HomeSnapshot>;
|
|
117
|
+
}
|
|
118
|
+
export {};
|