@xopcai/xopc 0.0.410 → 0.0.412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -6
- package/README.zh-CN.md +12 -6
- package/dist/browser-ext/dist/assets/{page-context-A5RCibM_.js → page-context-MuzjMBlJ.js} +1 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/gateway-setup.js +9 -3
- package/dist/extensions/feishu/src/plugin.d.ts +0 -3
- package/dist/extensions/feishu/src/plugin.js +1 -11
- package/dist/extensions/feishu/src/schema/config-schema.d.ts +0 -2
- package/dist/extensions/feishu/src/schema/config-schema.js +9 -21
- package/dist/extensions/feishu/src/state/accounts.js +3 -7
- package/dist/extensions/telegram/src/plugin.d.ts +0 -3
- package/dist/extensions/telegram/src/plugin.js +0 -9
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/plugin.d.ts +0 -3
- package/dist/extensions/weixin/src/plugin.js +1 -12
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-BrGZdh5N.js +1 -0
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BjZpom5V.js +1 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-D0UyB0Y_.js → agents-admin-api-uGDeJR1f.js} +1 -1
- package/dist/gateway/static/root/assets/agents-s3ws5Qi-.js +77 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-C6DHuX0L.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-byEnJz9H.js → appearance-settings-DYGY92Yr.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-PpT_YMmD.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BXssEuq3.js → archive-plugin-DAmsio91.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-display-DCkjVzA0.js → automation-display-BFN7zWBg.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-C-puATkS.js → automations-page-BVutrwON.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-G6-9IYbR.js +8 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DBz_2AhG.js → binary-plugins-41QCRAxz.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BOO5kjIl.js → block-editor-BQ8AA-Ot.js} +40 -40
- package/dist/gateway/static/root/assets/{browser-automation-inputs-D8bZ9iz2.js → browser-automation-inputs-D4-vQc4g.js} +1 -1
- package/dist/gateway/static/root/assets/browser-automations-page-o3jNFlCb.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-G0dVwiX4.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-B9b5KCBb.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-BZQanmZY.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-D-YadSx_.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-yfPUz5Wt.js → capability-header-actions-CDgI-YZF.js} +1 -1
- package/dist/gateway/static/root/assets/channels-3WX3f0bR.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-Dlzn80cK.js → chat-terminal-dock-CUkCx_9x.js} +2 -2
- package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-B2HK1psj.js → chunk-KS7C4IRE-BvcCCgTW.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-CuZrL9gL.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-49mgdRET.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-Bjj2wAeG.js +1 -0
- package/dist/gateway/static/root/assets/date-formatters-DukWSVwc.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DGjpqOKx.js → date-picker-BpBjADAk.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-R8kdHLr3.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-BpiosRqb.js +1 -0
- package/dist/gateway/static/root/assets/desktop-pet-settings-9h6evrKB.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-CZ5lwiLE.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-CwT1LcLR.js → directory-picker-path-field-DwXqp_iu.js} +1 -1
- package/dist/gateway/static/root/assets/electron-env-Dit0bHgy.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DX-hX_d0.js → extension-debug-page-Bj93A2Gn.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Cji87mN9.js → extension-page-Bri62YsN.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BulzpwBD.js → extension-settings-page-BSo6vRhS.js} +1 -1
- package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-CTXr917C.js → gateway-config-swr-BVqYVaGy.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CY1LBGBS.js +1 -0
- package/dist/gateway/static/root/assets/gateway-realtime-store-Dafw95ol.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-DgEwWJwz.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DD2fsxdd.js → gateway-startup-retry-CPKGkr6D.js} +1 -1
- package/dist/gateway/static/root/assets/highlight-code-CSFBakwF.js +1 -0
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BgTqMa_d.js → highlighted-body-KQOG7T2V-Ci1QpkBn.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-BKj-aPsL.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-N5MYXlxr.js +1 -0
- package/dist/gateway/static/root/assets/imports-page-YfaRnpk1.js +1 -0
- package/dist/gateway/static/root/assets/index-CiDVRMmX.js +710 -0
- package/dist/gateway/static/root/assets/index-caRW34rg.css +1 -0
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-BTQcPOix.js +1 -0
- package/dist/gateway/static/root/assets/languages-byq_L2Ae.js +2 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-kCZ_fbSZ.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-BjzaB1ls.js +1 -0
- package/dist/gateway/static/root/assets/{local-session-drafts-TqLFKwYo.js → local-session-drafts-BCaC-1rH.js} +1 -1
- package/dist/gateway/static/root/assets/locale-store-DAgpZxAS.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-5Jt3uqYt.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-DOQMLPrI.js +1 -0
- package/dist/gateway/static/root/assets/markdown-editor-phTQ0mox.js +1 -0
- package/dist/gateway/static/root/assets/{media-plugins-DQJXvbr_.js → media-plugins-8mlDAjD6.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-B4nztFE4.js +1 -0
- package/dist/gateway/static/root/assets/messages-DMXSIJUO.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-1wsKlkk3.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-B82cToeV.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-DKREWOku.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-oSJIFF3E.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-CoqQTkkS.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-BgcJLmZN.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-CdOJ3Tir.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-n6Shdp3u.js +1 -0
- package/dist/gateway/static/root/assets/product-delivery-BqNm-8S5.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-Bfqez8Je.js → product-open-page-BPF5rRTI.js} +1 -1
- package/dist/gateway/static/root/assets/product-preview-content-BOsGPNbw.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-ZADyvA7-.js +7 -0
- package/dist/gateway/static/root/assets/projects-page-BkRe6Z8S.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-4NZOh0iz.js → registry-api-B6kqbuw8.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CCGf5kF4.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-api-CY3R7unQ.js +5 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DSsANtha.js → runtime-tools-settings-panel-BxaxVlwM.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-vbhv4JE6.js → schema-form-cXD1BC02.js} +1 -1
- package/dist/gateway/static/root/assets/session-api-D6-Vz8xK.js +1 -0
- package/dist/gateway/static/root/assets/{session-manager-D2sLfkw-.js → session-manager-DWbcMHcj.js} +3 -3
- package/dist/gateway/static/root/assets/sessions-page-B81rRu2-.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DLHGV-I-.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-4nn0sb6v.js → settings-form-section-BXeszXR7.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-_HB9FC08.js → settings-page-CNmh4YmR.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-gEqkJWyw.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-CS9cOCgX.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-D9Ul96XW.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-CyO89DKl.js → skill-api-B5lDCuOH.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-NLAaNaDn.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-dWeFt-6J.js +2 -0
- package/dist/gateway/static/root/assets/source-workspace-editor-BIvi89Zx.js +1 -0
- package/dist/gateway/static/root/assets/system-settings-panel-DdDsFdCh.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-DO3FM--W.js +2 -0
- package/dist/gateway/static/root/assets/task-result-evidence-HJO1BlJm.js +1 -0
- package/dist/gateway/static/root/assets/tasks-TVRjEggr.js +1 -0
- package/dist/gateway/static/root/assets/tracing-settings-page-Dm3yToJ1.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-DOUyF9Ew.js → tunnel-api-DXU94F2Y.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-Bv3fdfw1.js → usage-page-DJJhACRJ.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D0MhLMD2.js → use-autosave-B1z_TIBu.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-DnZ4qFaO.js +2 -0
- package/dist/gateway/static/root/assets/{vendor-codemirror-DFxP3B9T.js → vendor-codemirror-Qdcjid65.js} +16 -16
- package/dist/gateway/static/root/assets/{voice-api-key-field-Ds_ADBQH.js → voice-api-key-field-HOLjEhh3.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-4yGMrp7J.js → voice-config-api-CPKzUb4R.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-C9RklDaR.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Di-oEpCt.js → xopc-cloud-account-card-CWwGTBib.js} +1 -1
- package/dist/gateway/static/root/index.html +27 -35
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-protocol/src/index.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +0 -12
- package/dist/packages/gateway-contract/src/home.js +3 -3
- package/dist/packages/gateway-contract/src/product-delivery.js +0 -4
- package/dist/packages/gateway-contract/src/project-operating.js +0 -6
- package/dist/packages/gateway-contract/src/session-identity.js +0 -1
- package/dist/packages/gateway-contract/src/task-runs.js +0 -1
- package/dist/packages/gateway-contract/src/tasks.js +0 -6
- package/dist/src/activity/types.d.ts +4 -4
- package/dist/src/agent/agent-manager.d.ts +0 -3
- package/dist/src/agent/agent-manager.js +0 -43
- package/dist/src/agent/background-review/run-background-review.js +2 -2
- package/dist/src/agent/capabilities/definitions.d.ts +2 -18
- package/dist/src/agent/capabilities/definitions.js +0 -17
- package/dist/src/agent/child-agent-factory.d.ts +1 -1
- package/dist/src/agent/client-error-format.d.ts +1 -1
- package/dist/src/agent/client-error-format.js +1 -1
- package/dist/src/agent/commands/command-registry.js +1 -1
- package/dist/src/agent/context/execution-scope.d.ts +2 -8
- package/dist/src/agent/context/execution-scope.js +6 -23
- package/dist/src/agent/embedded/index.d.ts +0 -1
- package/dist/src/agent/embedded/index.js +1 -2
- package/dist/src/agent/embedded/run-turn.js +25 -2
- package/dist/src/agent/embedded/sqlite-hydrating-session-manager.js +0 -2
- package/dist/src/agent/external-tools/gateway-tools.js +6 -6
- package/dist/src/agent/mcp/connection-setup.js +2 -2
- package/dist/src/agent/memory/compaction-ledger.d.ts +1 -1
- package/dist/src/agent/memory/compaction-ledger.js +1 -1
- package/dist/src/agent/memory/compaction-promotion.js +1 -1
- package/dist/src/agent/memory/source-origin.js +1 -5
- package/dist/src/agent/memory/turn-provenance.js +1 -3
- package/dist/src/agent/memory/types.d.ts +1 -1
- package/dist/src/agent/messaging/command-handler.d.ts +0 -3
- package/dist/src/agent/messaging/command-handler.js +1 -4
- package/dist/src/agent/prompt/sections/behavior.js +2 -2
- package/dist/src/agent/prompt/sections/tooling.js +1 -5
- package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
- package/dist/src/agent/prompt/voice-presentation.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +0 -6
- package/dist/src/agent/service.d.ts +0 -2
- package/dist/src/agent/service.js +0 -11
- package/dist/src/agent/service.types.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.d.ts +0 -2
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-inspector.d.ts +0 -1
- package/dist/src/agent/session/session-inspector.js +0 -1
- package/dist/src/agent/skills/required-env-vars.d.ts +1 -1
- package/dist/src/agent/skills/required-env-vars.js +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +2 -5
- package/dist/src/agent/tools/automation-tool.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +0 -3
- package/dist/src/agent/tools/factory.js +6 -9
- package/dist/src/agent/tools/index.d.ts +0 -2
- package/dist/src/agent/tools/index.js +1 -3
- package/dist/src/agent/tools/knowledge-memory-tool.d.ts +1 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +13 -4
- package/dist/src/agent/tools/personal-task-tool.js +8 -22
- package/dist/src/agent/tools/search/errors.js +2 -2
- package/dist/src/agent/tools/session-recall-tool.js +5 -1
- package/dist/src/agent/tools/user-context-tool.js +7 -1
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent-catalog/index.d.ts +0 -1
- package/dist/src/agent-catalog/index.js +1 -2
- package/dist/src/agent-catalog/repository.js +4 -0
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/resolver.js +0 -6
- package/dist/src/agent-config/schema.d.ts +0 -16
- package/dist/src/agent-config/schema.js +2 -9
- package/dist/src/agent-matching/selection-repository.d.ts +1 -1
- package/dist/src/agent-matching/selection-repository.js +1 -1
- package/dist/src/agent-matching/service.d.ts +1 -2
- package/dist/src/agent-matching/service.js +3 -7
- package/dist/src/ai-assist/text-assist.d.ts +1 -1
- package/dist/src/ai-assist/text-assist.js +0 -72
- package/dist/src/automations/capabilities/write.d.ts +0 -40
- package/dist/src/automations/domain/types.d.ts +0 -15
- package/dist/src/automations/domain/validation.d.ts +0 -80
- package/dist/src/automations/domain/validation.js +0 -17
- package/dist/src/automations/draft/automation-draft-prompt.js +0 -3
- package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -20
- package/dist/src/automations/draft/automation-draft-validator.js +0 -1
- package/dist/src/automations/events/event-catalog.js +0 -6
- package/dist/src/automations/service/action-executor.d.ts +0 -1
- package/dist/src/automations/service/action-executor.js +1 -110
- package/dist/src/automations/service/automation-service.js +0 -2
- package/dist/src/automations/storage/automation-run-repository.js +6 -7
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.d.ts +2 -10
- package/dist/src/bootstrap/application-state.js +5 -18
- package/dist/src/channels/manager.d.ts +0 -2
- package/dist/src/channels/manager.js +0 -4
- package/dist/src/channels/pairing/index.d.ts +2 -1
- package/dist/src/channels/pairing/pairing-service.d.ts +0 -1
- package/dist/src/chat-commands/context.d.ts +0 -3
- package/dist/src/chat-commands/context.js +0 -5
- package/dist/src/chat-commands/index.d.ts +0 -1
- package/dist/src/chat-commands/index.js +1 -3
- package/dist/src/chat-commands/types.d.ts +0 -5
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/config.js +2 -10
- package/dist/src/cli/commands/doctor/checks/database-relations.js +0 -3
- package/dist/src/cli/commands/doctor/checks/database-schema.js +4 -25
- package/dist/src/cli/commands/gateway/run-foreground.js +1 -1
- package/dist/src/cli/commands/setup-shared/prompts.d.ts +2 -2
- package/dist/src/cli/commands/setup-shared/prompts.js +2 -2
- package/dist/src/cli/commands/tui-runner.js +2 -2
- package/dist/src/cli/extension-cli-register.js +1 -1
- package/dist/src/cli/index.d.ts +0 -1
- package/dist/src/cli/index.js +2 -2
- package/dist/src/cli/utils/init-workspace-core.js +8 -9
- package/dist/src/config/config-file.d.ts +6 -0
- package/dist/src/config/config-file.js +35 -0
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/loader.d.ts +0 -1
- package/dist/src/config/loader.js +6 -17
- package/dist/src/config/paths.d.ts +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/connectors/composio-catalog.js +1 -3
- package/dist/src/connectors/composio.js +1 -2
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +1 -1
- package/dist/src/connectors/principal.js +1 -22
- package/dist/src/connectors/{workflow-preflight.d.ts → requirements-preflight.d.ts} +9 -8
- package/dist/src/connectors/{workflow-preflight.js → requirements-preflight.js} +2 -10
- package/dist/src/connectors/types.d.ts +1 -1
- package/dist/src/daemon/types.d.ts +0 -9
- package/dist/src/discussions/long-review.js +0 -11
- package/dist/src/endpoint-tools/policy.js +13 -14
- package/dist/src/extensions/agent-plugins/auth.js +1 -3
- package/dist/src/extensions/agent-plugins/formats.js +2 -4
- package/dist/src/extensions/agent-plugins/mcp-format.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/mcp-format.js +2 -2
- package/dist/src/extensions/bundled-extension-activation.d.ts +0 -2
- package/dist/src/extensions/bundled-extension-activation.js +1 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/types/tui.d.ts +1 -2
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -7
- package/dist/src/gateway/agent-builtin-tools.js +0 -7
- package/dist/src/gateway/agents-admin.d.ts +0 -1
- package/dist/src/gateway/agents-admin.js +0 -1
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +0 -8
- package/dist/src/gateway/hono/lib/config-payload.js +1 -2
- package/dist/src/gateway/hono/lib/config-write-lock.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-write-lock.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +2 -2
- package/dist/src/gateway/hono/routes/activity.js +0 -1
- package/dist/src/gateway/hono/routes/agents.js +2 -9
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +0 -22
- package/dist/src/gateway/hono/routes/chat-model-config.d.ts +0 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -3
- package/dist/src/gateway/hono/routes/config.js +2 -21
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/devices.js +2 -2
- package/dist/src/gateway/hono/routes/home.js +3 -20
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -8
- package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +0 -16
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +0 -3
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +1 -1
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/run-loop.js +2 -2
- package/dist/src/gateway/security/device-request-proof.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +0 -1
- package/dist/src/gateway/service/active-execution.d.ts +1 -1
- package/dist/src/gateway/service/active-execution.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.d.ts +1 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service/task-conversation-query-service.d.ts +0 -4
- package/dist/src/gateway/service/types.d.ts +2 -0
- package/dist/src/gateway/service.d.ts +1 -8
- package/dist/src/gateway/service.js +13 -60
- package/dist/src/history/ctx/format.js +1 -1
- package/dist/src/home-intelligence/capability-preflight.js +1 -1
- package/dist/src/infra/unhandled-rejections.js +2 -2
- package/dist/src/infra/update-runner.d.ts +1 -2
- package/dist/src/infra/update-runner.js +2 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
- package/dist/src/knowledge/local-folder-adapter.js +2 -5
- package/dist/src/knowledge-memory/usage-policy.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/memory-learning/forget-capture.js +3 -2
- package/dist/src/memory-learning/forgotten-history.d.ts +10 -0
- package/dist/src/memory-learning/forgotten-history.js +117 -13
- package/dist/src/memory-learning/owner-directive.d.ts +2 -0
- package/dist/src/memory-learning/owner-directive.js +10 -0
- package/dist/src/memory-learning/service.js +0 -2
- package/dist/src/memory-learning/source-learning.js +1 -1
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/migrations/index.js +2 -2
- package/dist/src/migrations/runner.d.ts +1 -2
- package/dist/src/migrations/runner.js +2 -5
- package/dist/src/notes/service.js +3 -3
- package/dist/src/notes/types.d.ts +1 -2
- package/dist/src/personal-agent/communication.d.ts +0 -3
- package/dist/src/personal-agent/communication.js +1 -12
- package/dist/src/personal-agent/persona.d.ts +0 -4
- package/dist/src/personal-agent/persona.js +1 -5
- package/dist/src/personal-agent/proactivity/repository.js +2 -6
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.d.ts +0 -3
- package/dist/src/personal-agent/prompts.js +7 -146
- package/dist/src/personal-agent/reply-composer.js +3 -3
- package/dist/src/personal-agent/reply-style.d.ts +1 -13
- package/dist/src/personal-agent/reply-style.js +3 -123
- package/dist/src/personal-agent/request-delivery.d.ts +1 -1
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +2 -2
- package/dist/src/personal-agent/specialist-capabilities.js +0 -1
- package/dist/src/personal-agent/task-cancel.js +2 -1
- package/dist/src/platform/client.d.ts +0 -1
- package/dist/src/platform/contracts.d.ts +0 -1
- package/dist/src/platform/contracts.js +1 -4
- package/dist/src/projects/index.d.ts +0 -1
- package/dist/src/projects/index.js +1 -2
- package/dist/src/projects/project-loop.d.ts +2 -12
- package/dist/src/projects/project-loop.js +19 -42
- package/dist/src/projects/project-store.d.ts +0 -1
- package/dist/src/projects/project-store.js +0 -11
- package/dist/src/projects/types.d.ts +0 -6
- package/dist/src/providers/model-usage.js +0 -5
- package/dist/src/realtime/runtime.js +0 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/session/manager.js +1 -1
- package/dist/src/session/types.d.ts +2 -6
- package/dist/src/storage/sqlite/connection-wait-repository.js +0 -33
- package/dist/src/storage/sqlite/connection.js +2 -2
- package/dist/src/storage/sqlite/device-access-repository.d.ts +2 -2
- package/dist/src/storage/sqlite/device-access-repository.js +4 -8
- package/dist/src/storage/sqlite/home-attention-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/index.d.ts +1 -3
- package/dist/src/storage/sqlite/index.js +4 -8
- package/dist/src/storage/sqlite/{migrations/conversation-backup.d.ts → offline-access.d.ts} +1 -4
- package/dist/src/storage/sqlite/{migrations/conversation-backup.js → offline-access.js} +6 -25
- package/dist/src/storage/sqlite/row-mappers.d.ts +0 -8
- package/dist/src/storage/sqlite/row-mappers.js +0 -8
- package/dist/src/storage/sqlite/{migrations/errors.d.ts → schema-errors.d.ts} +0 -6
- package/dist/src/storage/sqlite/schema-errors.js +28 -0
- package/dist/src/storage/sqlite/schema.d.ts +4 -5
- package/dist/src/storage/sqlite/schema.js +23 -19
- package/dist/src/storage/sqlite/schema.sql +1099 -427
- package/dist/src/storage/sqlite/session-identity-sql.js +1 -2
- package/dist/src/storage/sqlite/session-read-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/session-read-repository.js +1 -2
- package/dist/src/storage/sqlite/session-repository.js +4 -33
- package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.js → windows-database-owners.js} +3 -3
- package/dist/src/tasks/attention-governor.d.ts +1 -0
- package/dist/src/tasks/attention-governor.js +2 -2
- package/dist/src/tasks/capabilities/management.d.ts +0 -1
- package/dist/src/tasks/capabilities/relations.d.ts +2 -2
- package/dist/src/tasks/execution-context.d.ts +1 -1
- package/dist/src/tasks/execution-context.js +0 -2
- package/dist/src/tasks/home-query-service.d.ts +2 -16
- package/dist/src/tasks/home-query-service.js +37 -67
- package/dist/src/tasks/index.d.ts +0 -1
- package/dist/src/tasks/index.js +1 -2
- package/dist/src/tasks/project-operating-view-service.js +0 -1
- package/dist/src/tasks/task-application-service.js +0 -5
- package/dist/src/tasks/task-repository.d.ts +1 -1
- package/dist/src/tasks/task-run-coordinator.js +4 -2
- package/dist/src/tui/backends/embedded-backend.d.ts +1 -4
- package/dist/src/tui/backends/embedded-backend.js +3 -59
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +1 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -27
- package/dist/src/tui/components/chat-log.d.ts +0 -2
- package/dist/src/tui/components/chat-log.js +0 -18
- package/dist/src/tui/extension-host/runtime-context.js +0 -1
- package/dist/src/tui/tui-backend.d.ts +0 -15
- package/dist/src/tui/tui-command-formatters.d.ts +0 -3
- package/dist/src/tui/tui-command-formatters.js +1 -28
- package/dist/src/tui/tui-commands.d.ts +1 -14
- package/dist/src/tui/tui-commands.js +4 -89
- package/dist/src/tui/tui-startup-resources.js +0 -2
- package/dist/src/tui/tui-startup-text.js +2 -3
- package/dist/src/tui/tui.js +1 -49
- package/dist/src/user-context/trust-policy.js +1 -1
- package/dist/src/user-model/usage-policy.js +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/logger/index.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/dist/src/voice/realtime/agentBroker.js +2 -3
- package/dist/src/voice/realtime/memory-context.js +2 -2
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/service.js +2 -2
- package/package.json +5 -6
- package/dist/extensions/feishu/src/workflow-progress.d.ts +0 -27
- package/dist/extensions/feishu/src/workflow-progress.js +0 -98
- package/dist/extensions/telegram/src/workflow-progress.d.ts +0 -24
- package/dist/extensions/telegram/src/workflow-progress.js +0 -72
- package/dist/extensions/weixin/src/workflow-progress.d.ts +0 -26
- package/dist/extensions/weixin/src/workflow-progress.js +0 -98
- package/dist/gateway/static/root/assets/agent-avatar-dicebear-ColV_Z1C.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-rgRXzBCX.js +0 -1
- package/dist/gateway/static/root/assets/agents-C1rSl_yE.js +0 -77
- package/dist/gateway/static/root/assets/app-link-BV_eGr7l.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-B-Cl1lzt.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-BfVMfjkC.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-b7MTHd-X.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-DMqDOJgO.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-KZStwhX7.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-CD6PzNK7.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-DeJuO2rf.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DPxL_3Km.js +0 -8
- package/dist/gateway/static/root/assets/channels-Cp4F9zPz.js +0 -1
- package/dist/gateway/static/root/assets/code-editor-CXIH8jQw.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-BXhmUWbA.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-B1oJCj74.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Da_M7h3m.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-BfWUD3LG.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-CPEi55Vt.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-CmQ_H-nM.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-BeTjXc3C.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +0 -1
- package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CP6L2jIR.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-yXB4a40_.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CIdEroWr.js +0 -1
- package/dist/gateway/static/root/assets/highlight-code-BH65IIbJ.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BSbYrVda.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-BfPYnMoc.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-DYSOfHfw.js +0 -1
- package/dist/gateway/static/root/assets/index-D2hEKnTM.js +0 -267
- package/dist/gateway/static/root/assets/index-SmKNPEmJ.css +0 -1
- package/dist/gateway/static/root/assets/keyboard-shortcuts-settings-BwsGM6Yd.js +0 -1
- package/dist/gateway/static/root/assets/languages-BFe8nIOO.js +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-K6UR6cAx.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-gkdwtjDE.js +0 -1
- package/dist/gateway/static/root/assets/locale-store-D_migb9R.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-BAQNYk0e.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CMVRLGox.js +0 -1
- package/dist/gateway/static/root/assets/markdown-editor-BhBJANcx.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-Ljt0bhfF.js +0 -324
- package/dist/gateway/static/root/assets/markdown-view-ixUWAmoy.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Cx0bXBqu.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-render-604gISVe.js +0 -134
- package/dist/gateway/static/root/assets/messages-D__oW2yE.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-1GCqp26U.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-B7RA-WsY.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DnjlEdzM.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-BAwI_3uh.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-XoLrcR0U.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +0 -1
- package/dist/gateway/static/root/assets/plugin-details-dialog-BjzIp3T5.js +0 -1
- package/dist/gateway/static/root/assets/plus-Q2yW6OE7.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-2YjwlRHu.js +0 -1
- package/dist/gateway/static/root/assets/product-delivery-DwmnNJvk.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-D7wLwrqj.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-1ueRCmXg.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-CDQycMPo.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-YvVmZA4K.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-api-CmEWVrOg.js +0 -5
- package/dist/gateway/static/root/assets/session-api-aQLptIs9.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-B3rPljgr.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Ch20Ptzp.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-L1HHrvzi.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-C4lC0W3d.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-DtHZ9z5K.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-Drg356Pb.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-XhCLHKlK.js +0 -2
- package/dist/gateway/static/root/assets/source-workspace-editor-DunRD1gY.js +0 -1
- package/dist/gateway/static/root/assets/style-DTLpCnuA.js +0 -7
- package/dist/gateway/static/root/assets/system-settings-panel-bSogz4S-.js +0 -1
- package/dist/gateway/static/root/assets/tab-completion-input.utils-BP3NH_du.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-CSv2x4q-.js +0 -2
- package/dist/gateway/static/root/assets/task-expandable-content-4s_FTl-9.js +0 -1
- package/dist/gateway/static/root/assets/tasks-B4bZpO6O.js +0 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-CZ5XLQmX.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-BD7WvhI0.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-CDJp2_l2.js +0 -1
- package/dist/gateway/static/root/assets/workflow-run-setup-panel-CR4fRhZZ.js +0 -3
- package/dist/gateway/static/root/assets/workflows-page-BeJw5liC.js +0 -6
- package/dist/gateway/static/root/assets/x-B_N4OPjy.js +0 -1
- package/dist/gateway/static/root/assets/xml-_d7dTN2Q.js +0 -3
- package/dist/src/agent/embedded/session-manager-init.d.ts +0 -4
- package/dist/src/agent/embedded/session-manager-init.js +0 -48
- package/dist/src/agent/tools/workflow-manage-tool.d.ts +0 -2
- package/dist/src/agent/tools/workflow-manage-tool.js +0 -225
- package/dist/src/agent/tools/workflow-tool.d.ts +0 -20
- package/dist/src/agent/tools/workflow-tool.js +0 -155
- package/dist/src/agent/workflow/agent-progress.d.ts +0 -5
- package/dist/src/agent/workflow/agent-progress.js +0 -65
- package/dist/src/agent/workflow/builtins/index.d.ts +0 -2
- package/dist/src/agent/workflow/builtins/index.js +0 -374
- package/dist/src/agent/workflow/catalog.d.ts +0 -52
- package/dist/src/agent/workflow/catalog.js +0 -150
- package/dist/src/agent/workflow/channel-capability.d.ts +0 -76
- package/dist/src/agent/workflow/channel-capability.js +0 -1
- package/dist/src/agent/workflow/index.d.ts +0 -10
- package/dist/src/agent/workflow/index.js +0 -9
- package/dist/src/agent/workflow/progress-broker.d.ts +0 -80
- package/dist/src/agent/workflow/progress-broker.js +0 -261
- package/dist/src/agent/workflow/snapshot-empty.d.ts +0 -2
- package/dist/src/agent/workflow/snapshot-empty.js +0 -17
- package/dist/src/agent/workflow/snapshot.d.ts +0 -28
- package/dist/src/agent/workflow/snapshot.js +0 -267
- package/dist/src/agent/workflow/step-labels.d.ts +0 -8
- package/dist/src/agent/workflow/step-labels.js +0 -50
- package/dist/src/agent/workflow/structured-output-tool.d.ts +0 -33
- package/dist/src/agent/workflow/structured-output-tool.js +0 -56
- package/dist/src/agent/workflow/subagent-runner.d.ts +0 -46
- package/dist/src/agent/workflow/subagent-runner.js +0 -221
- package/dist/src/agent/workflow/types.d.ts +0 -252
- package/dist/src/agent/workflow/types.js +0 -1
- package/dist/src/agent/workflow/workflow-child-tools.d.ts +0 -4
- package/dist/src/agent/workflow/workflow-child-tools.js +0 -38
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.d.ts +0 -5
- package/dist/src/agent-catalog/migrations/identity-markdown-cutover.js +0 -94
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.d.ts +0 -11
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +0 -194
- package/dist/src/chat-commands/builtins/workflow.d.ts +0 -18
- package/dist/src/chat-commands/builtins/workflow.js +0 -249
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +0 -23
- package/dist/src/gateway/gateway-workflow-host.types.js +0 -1
- package/dist/src/gateway/hono/routes/workflows.d.ts +0 -3
- package/dist/src/gateway/hono/routes/workflows.js +0 -572
- package/dist/src/knowledge-memory/repair-evidence.d.ts +0 -2
- package/dist/src/knowledge-memory/repair-evidence.js +0 -57
- package/dist/src/migrations/cloud-public-models.d.ts +0 -7
- package/dist/src/migrations/cloud-public-models.js +0 -157
- package/dist/src/migrations/memory-config.d.ts +0 -2
- package/dist/src/migrations/memory-config.js +0 -76
- package/dist/src/migrations/retired-local-stt.d.ts +0 -2
- package/dist/src/migrations/retired-local-stt.js +0 -52
- package/dist/src/projects/workflow-bind.d.ts +0 -1
- package/dist/src/projects/workflow-bind.js +0 -15
- package/dist/src/storage/sqlite/migrations/218_core_relation_indexes.sql +0 -26
- package/dist/src/storage/sqlite/migrations/219_json_contracts.sql +0 -123
- package/dist/src/storage/sqlite/migrations/220_normalize_timestamps.sql +0 -339
- package/dist/src/storage/sqlite/migrations/221_ai_usage_retention_index.sql +0 -2
- package/dist/src/storage/sqlite/migrations/222_session_config_authority.sql +0 -13
- package/dist/src/storage/sqlite/migrations/223_session_creation_receipts.sql +0 -59
- package/dist/src/storage/sqlite/migrations/224_task_origin_links.sql +0 -8
- package/dist/src/storage/sqlite/migrations/225_task_collaboration.sql +0 -32
- package/dist/src/storage/sqlite/migrations/226_task_main_updates.sql +0 -9
- package/dist/src/storage/sqlite/migrations/227_task_main_update_decisions.sql +0 -8
- package/dist/src/storage/sqlite/migrations/228_task_main_agent_links.sql +0 -14
- package/dist/src/storage/sqlite/migrations/229_task_criterion_reviews.sql +0 -12
- package/dist/src/storage/sqlite/migrations/230_personal_agent_onboarding.sql +0 -8
- package/dist/src/storage/sqlite/migrations/231_task_result_deliveries.sql +0 -32
- package/dist/src/storage/sqlite/migrations/232_personal_requests.sql +0 -28
- package/dist/src/storage/sqlite/migrations/233_observability_usage_links.sql +0 -3
- package/dist/src/storage/sqlite/migrations/234_task_result_reply.sql +0 -14
- package/dist/src/storage/sqlite/migrations/235_personal_conversation_priority.sql +0 -3
- package/dist/src/storage/sqlite/migrations/236_personal_proactivity.sql +0 -53
- package/dist/src/storage/sqlite/migrations/237_personal_strategy_versions.sql +0 -18
- package/dist/src/storage/sqlite/migrations/238_browser_record_replay.sql +0 -45
- package/dist/src/storage/sqlite/migrations/239_clarification_notifications.sql +0 -26
- package/dist/src/storage/sqlite/migrations/240_device_settings.sql +0 -5
- package/dist/src/storage/sqlite/migrations/241_device_grant_audit.sql +0 -13
- package/dist/src/storage/sqlite/migrations/242_cloud_usage_receipts.sql +0 -5
- package/dist/src/storage/sqlite/migrations/243_voice_opening_greetings.sql +0 -12
- package/dist/src/storage/sqlite/migrations/244_device_request_proofs.sql +0 -8
- package/dist/src/storage/sqlite/migrations/245_memory_learning.sql +0 -125
- package/dist/src/storage/sqlite/migrations/246_personal_session_thinking.sql +0 -22
- package/dist/src/storage/sqlite/migrations/247_agent_selection_records.sql +0 -32
- package/dist/src/storage/sqlite/migrations/248_next_turn_suggestions.sql +0 -20
- package/dist/src/storage/sqlite/migrations/249_task_allocations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/250_research_checkpoints.sql +0 -15
- package/dist/src/storage/sqlite/migrations/251_personal_result_reads.sql +0 -40
- package/dist/src/storage/sqlite/migrations/252_task_work_revisions.sql +0 -15
- package/dist/src/storage/sqlite/migrations/253_discussion_processing_recovery.sql +0 -20
- package/dist/src/storage/sqlite/migrations/254_discussion_annotations.sql +0 -17
- package/dist/src/storage/sqlite/migrations/255_discussion_chapter_progress.sql +0 -10
- package/dist/src/storage/sqlite/migrations/256_task_main_update_retries.sql +0 -21
- package/dist/src/storage/sqlite/migrations/257_session_composer_history.sql +0 -11
- package/dist/src/storage/sqlite/migrations/258_task_phase_changes.sql +0 -20
- package/dist/src/storage/sqlite/migrations/259_personal_default_style.sql +0 -10
- package/dist/src/storage/sqlite/migrations/discover.d.ts +0 -4
- package/dist/src/storage/sqlite/migrations/discover.js +0 -40
- package/dist/src/storage/sqlite/migrations/errors.js +0 -40
- package/dist/src/storage/sqlite/migrations/runner.d.ts +0 -22
- package/dist/src/storage/sqlite/migrations/runner.js +0 -112
- package/dist/src/storage/sqlite/migrations/types.d.ts +0 -12
- package/dist/src/storage/sqlite/migrations/types.js +0 -1
- package/dist/src/tasks/task-workflow-coordinator.d.ts +0 -5
- package/dist/src/tasks/task-workflow-coordinator.js +0 -55
- package/dist/src/tui/tui-workflow-slash.d.ts +0 -29
- package/dist/src/tui/tui-workflow-slash.js +0 -58
- package/dist/src/workflows/authoring/index.d.ts +0 -2
- package/dist/src/workflows/authoring/index.js +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.d.ts +0 -3
- package/dist/src/workflows/authoring/workflow-draft-defaults.js +0 -63
- package/dist/src/workflows/authoring/workflow-draft-store.d.ts +0 -29
- package/dist/src/workflows/authoring/workflow-draft-store.js +0 -52
- package/dist/src/workflows/context/workflow-context-snapshot-repository.d.ts +0 -21
- package/dist/src/workflows/context/workflow-context-snapshot-repository.js +0 -41
- package/dist/src/workflows/context/workflow-context.d.ts +0 -18
- package/dist/src/workflows/context/workflow-context.js +0 -164
- package/dist/src/workflows/domain/command.d.ts +0 -19
- package/dist/src/workflows/domain/command.js +0 -1
- package/dist/src/workflows/domain/definition-utils.d.ts +0 -18
- package/dist/src/workflows/domain/definition-utils.js +0 -90
- package/dist/src/workflows/domain/definition.d.ts +0 -164
- package/dist/src/workflows/domain/definition.js +0 -1
- package/dist/src/workflows/domain/event.d.ts +0 -88
- package/dist/src/workflows/domain/event.js +0 -1
- package/dist/src/workflows/domain/index.d.ts +0 -8
- package/dist/src/workflows/domain/index.js +0 -5
- package/dist/src/workflows/domain/result.d.ts +0 -68
- package/dist/src/workflows/domain/result.js +0 -1
- package/dist/src/workflows/domain/run.d.ts +0 -257
- package/dist/src/workflows/domain/run.js +0 -12
- package/dist/src/workflows/domain/schema-validation.d.ts +0 -8
- package/dist/src/workflows/domain/schema-validation.js +0 -26
- package/dist/src/workflows/domain/validation.d.ts +0 -22
- package/dist/src/workflows/domain/validation.js +0 -318
- package/dist/src/workflows/engine/index.d.ts +0 -2
- package/dist/src/workflows/engine/index.js +0 -3
- package/dist/src/workflows/engine/projector.d.ts +0 -3
- package/dist/src/workflows/engine/projector.js +0 -276
- package/dist/src/workflows/engine/workflow-engine.d.ts +0 -88
- package/dist/src/workflows/engine/workflow-engine.js +0 -719
- package/dist/src/workflows/index.d.ts +0 -11
- package/dist/src/workflows/index.js +0 -19
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.d.ts +0 -20
- package/dist/src/workflows/project-presets/project-workflow-preset-repository.js +0 -39
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.d.ts +0 -9
- package/dist/src/workflows/registry/catalog-workflow-definition-registry.js +0 -30
- package/dist/src/workflows/registry/index.d.ts +0 -2
- package/dist/src/workflows/registry/index.js +0 -2
- package/dist/src/workflows/registry/workflow-definition-registry.d.ts +0 -15
- package/dist/src/workflows/registry/workflow-definition-registry.js +0 -1
- package/dist/src/workflows/runtime/graph-workflow-runtime.d.ts +0 -10
- package/dist/src/workflows/runtime/graph-workflow-runtime.js +0 -289
- package/dist/src/workflows/runtime/index.d.ts +0 -2
- package/dist/src/workflows/runtime/index.js +0 -2
- package/dist/src/workflows/runtime/workflow-runtime-port.d.ts +0 -13
- package/dist/src/workflows/runtime/workflow-runtime-port.js +0 -1
- package/dist/src/workflows/service/run-view-to-snapshot.d.ts +0 -4
- package/dist/src/workflows/service/run-view-to-snapshot.js +0 -64
- package/dist/src/workflows/service/workflow-run-service.d.ts +0 -63
- package/dist/src/workflows/service/workflow-run-service.js +0 -892
- package/dist/src/workflows/service/workflow-run-service.types.d.ts +0 -62
- package/dist/src/workflows/service/workflow-run-service.types.js +0 -1
- package/dist/src/workflows/service/workflow-session-bridge.d.ts +0 -33
- package/dist/src/workflows/service/workflow-session-bridge.js +0 -244
- package/dist/src/workflows/service/workflow-session-key.d.ts +0 -3
- package/dist/src/workflows/service/workflow-session-key.js +0 -19
- package/dist/src/workflows/service/workflow-writeback-service.d.ts +0 -9
- package/dist/src/workflows/service/workflow-writeback-service.js +0 -107
- package/dist/src/workflows/store/event-store.d.ts +0 -16
- package/dist/src/workflows/store/event-store.js +0 -38
- package/dist/src/workflows/store/paths.d.ts +0 -5
- package/dist/src/workflows/store/paths.js +0 -18
- package/dist/src/workflows/store/run-index-store.d.ts +0 -9
- package/dist/src/workflows/store/run-index-store.js +0 -64
- package/dist/src/workflows/store/run-store.d.ts +0 -16
- package/dist/src/workflows/store/run-store.js +0 -40
- package/skills/engineering/workflow-authoring/SKILL.md +0 -32
- /package/dist/gateway/static/root/assets/{style-DLioOiRN.css → project-detail-page-DLioOiRN.css} +0 -0
- /package/dist/src/storage/sqlite/{migrations/conversation-windows-owners.d.ts → windows-database-owners.d.ts} +0 -0
|
@@ -32,27 +32,12 @@ function taskObjective(conversationId) {
|
|
|
32
32
|
expectedOutputs: contract?.expectedOutputs.slice(0, MAX_CRITERIA) ?? []
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
function workflowObjective(conversationId) {
|
|
36
|
-
const metadata = getSessionMetadata(conversationId);
|
|
37
|
-
if (!metadata) return void 0;
|
|
38
|
-
if (metadata.sessionType === "workflow-subagent" && metadata.parentConversationId) return workflowObjective(metadata.parentConversationId);
|
|
39
|
-
if (metadata.sessionType !== "workflow-run") return void 0;
|
|
40
|
-
const objective = bounded(typeof metadata.customData?.workflowGoal === "string" ? metadata.customData.workflowGoal : void 0);
|
|
41
|
-
const definitionId = metadata.workflowDefinitionId?.trim() || (typeof metadata.customData?.workflowDefinitionId === "string" ? metadata.customData.workflowDefinitionId.trim() : "workflow");
|
|
42
|
-
return {
|
|
43
|
-
kind: "workflow",
|
|
44
|
-
id: metadata.workflowRunId,
|
|
45
|
-
title: definitionId,
|
|
46
|
-
objective: objective || definitionId,
|
|
47
|
-
status: "running"
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
35
|
function resolveExecutionScope(conversationId) {
|
|
51
36
|
if (!isXopcDatabaseOpen()) return { conversationId };
|
|
52
37
|
return {
|
|
53
38
|
conversationId,
|
|
54
39
|
projectId: getSessionMetadata(conversationId)?.projectId,
|
|
55
|
-
objective: taskObjective(conversationId)
|
|
40
|
+
objective: taskObjective(conversationId)
|
|
56
41
|
};
|
|
57
42
|
}
|
|
58
43
|
function formatCurrentWorkForPrompt(scope) {
|
|
@@ -69,13 +54,11 @@ function formatCurrentWorkForPrompt(scope) {
|
|
|
69
54
|
"## Objective",
|
|
70
55
|
sanitizeForPromptLiteral(objective.objective)
|
|
71
56
|
];
|
|
72
|
-
if (objective.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (objective.blockedReason) lines.push("", "Blocked reason:", sanitizeForPromptLiteral(objective.blockedReason));
|
|
78
|
-
}
|
|
57
|
+
if (objective.scopeBoundary) lines.push("", "## Scope Boundary", sanitizeForPromptLiteral(objective.scopeBoundary));
|
|
58
|
+
if (objective.acceptanceCriteria.length > 0) lines.push("", "## Acceptance Criteria", ...objective.acceptanceCriteria.map((item) => `- ${sanitizeForPromptLiteral(item)}`));
|
|
59
|
+
if (objective.expectedOutputs.length > 0) lines.push("", "## Expected outputs", ...objective.expectedOutputs.map((item) => `- ${sanitizeForPromptLiteral(item)}`));
|
|
60
|
+
if (objective.nextAction) lines.push("", "Next action:", sanitizeForPromptLiteral(objective.nextAction));
|
|
61
|
+
if (objective.blockedReason) lines.push("", "Blocked reason:", sanitizeForPromptLiteral(objective.blockedReason));
|
|
79
62
|
lines.push("", "Keep work inside this objective and its project scope. Treat the acceptance criteria and completion evidence as the definition of done.");
|
|
80
63
|
return lines.join("\n");
|
|
81
64
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { PiTranscriptManager, CURRENT_SESSION_VERSION } from './pi-transcript.js';
|
|
2
2
|
export type { SessionManager as PiTranscriptManagerType } from './pi-transcript.js';
|
|
3
3
|
export { installSessionToolResultGuard, guardSessionManager, getRawSessionAppendMessage, type GuardedPiTranscriptManager, type ToolResultGuardOptions, } from './session-tool-result-guard.js';
|
|
4
|
-
export { repairAssistantUsageInSessionManager } from './session-manager-init.js';
|
|
5
4
|
export { openSqliteHydratingSessionManager } from './sqlite-hydrating-session-manager.js';
|
|
6
5
|
export { createSqliteTranscriptRuntime, InMemoryTranscriptRuntime, type EmbeddedTranscriptRuntime, } from './transcript-runtime.js';
|
|
7
6
|
export { getEmbeddedExecutionRunId, getEmbeddedExecutionSession, runWithEmbeddedExecutionSession, } from './execution-context.js';
|
|
@@ -3,10 +3,9 @@ import { abortEmbeddedRun, getEmbeddedRunByConversationId, queueEmbeddedSteer }
|
|
|
3
3
|
import { DEFAULT_MAX_LIVE_TOOL_RESULT_CHARS, resolveLiveToolResultMaxChars, truncateToolResultMessage } from "./tool-result-truncation.js";
|
|
4
4
|
import { getRawSessionAppendMessage, guardSessionManager, installSessionToolResultGuard } from "./session-tool-result-guard.js";
|
|
5
5
|
import { acquireEmbeddedSessionRunner, buildEmbeddedRunnerFingerprint, evictAllEmbeddedSessionRunners, evictEmbeddedSessionRunner, getEmbeddedSessionRunnerIdleTtlMs, getEmbeddedSessionRunnerStats, isEmbeddedSessionRunnerEnabled, resetEmbeddedSessionRunnerForTest } from "./session-runner.js";
|
|
6
|
-
import { repairAssistantUsageInSessionManager } from "./session-manager-init.js";
|
|
7
6
|
import { openSqliteHydratingSessionManager } from "./sqlite-hydrating-session-manager.js";
|
|
8
7
|
import { InMemoryTranscriptRuntime, createSqliteTranscriptRuntime } from "./transcript-runtime.js";
|
|
9
8
|
import { runXopcEmbeddedTurn } from "./run-turn.js";
|
|
10
9
|
import { runEmbeddedTurnForSession } from "./run-for-session.js";
|
|
11
10
|
import { CURRENT_SESSION_VERSION, PiTranscriptManager } from "./pi-transcript.js";
|
|
12
|
-
export { CURRENT_SESSION_VERSION, DEFAULT_MAX_LIVE_TOOL_RESULT_CHARS, InMemoryTranscriptRuntime, PiTranscriptManager, abortEmbeddedRun, acquireEmbeddedSessionRunner, buildEmbeddedRunnerFingerprint, createSqliteTranscriptRuntime, evictAllEmbeddedSessionRunners, evictEmbeddedSessionRunner, getEmbeddedExecutionRunId, getEmbeddedExecutionSession, getEmbeddedRunByConversationId, getEmbeddedSessionRunnerIdleTtlMs, getEmbeddedSessionRunnerStats, getRawSessionAppendMessage, guardSessionManager, installSessionToolResultGuard, isEmbeddedSessionRunnerEnabled, openSqliteHydratingSessionManager, queueEmbeddedSteer,
|
|
11
|
+
export { CURRENT_SESSION_VERSION, DEFAULT_MAX_LIVE_TOOL_RESULT_CHARS, InMemoryTranscriptRuntime, PiTranscriptManager, abortEmbeddedRun, acquireEmbeddedSessionRunner, buildEmbeddedRunnerFingerprint, createSqliteTranscriptRuntime, evictAllEmbeddedSessionRunners, evictEmbeddedSessionRunner, getEmbeddedExecutionRunId, getEmbeddedExecutionSession, getEmbeddedRunByConversationId, getEmbeddedSessionRunnerIdleTtlMs, getEmbeddedSessionRunnerStats, getRawSessionAppendMessage, guardSessionManager, installSessionToolResultGuard, isEmbeddedSessionRunnerEnabled, openSqliteHydratingSessionManager, queueEmbeddedSteer, resetEmbeddedSessionRunnerForTest, resolveLiveToolResultMaxChars, runEmbeddedTurnForSession, runWithEmbeddedExecutionSession, runXopcEmbeddedTurn, truncateToolResultMessage };
|
|
@@ -19,6 +19,7 @@ import { getAssistantTurnErrorMessage, isAssistantTurnAborted, isAssistantTurnFa
|
|
|
19
19
|
import { allowsExecutionTool, filterExecutionTools, resolveExecutionToolPolicy } from "./execution-tool-policy.js";
|
|
20
20
|
import { externalPolicyContext, getXopcToolMetadata } from "./tool-metadata.js";
|
|
21
21
|
import { runWithEmbeddedExecutionSession } from "./execution-context.js";
|
|
22
|
+
import { originalReadAuthorizationNotice, projectForgottenHistoryMessages, projectSuppressedMemoryBlocks } from "../../memory-learning/forgotten-history.js";
|
|
22
23
|
import { isNestedCodemodePolicy } from "./codemode-extension.js";
|
|
23
24
|
import { isComputerControlActive, isComputerLeaseTool, stopComputerControl } from "../../computer/control-guard.js";
|
|
24
25
|
import { EmbeddedRunConflictError, abortEmbeddedRun, acquireEmbeddedRunLease, queueEmbeddedSteer } from "./runs.js";
|
|
@@ -26,6 +27,7 @@ import { lastAssistantPlainText, subscribeEmbeddedSessionEvents } from "./subscr
|
|
|
26
27
|
import { detectToolLoops } from "../orchestration/loop-guard.js";
|
|
27
28
|
import { tryApplySessionTranscriptHygiene } from "../transcript/transcript-hygiene.js";
|
|
28
29
|
import { restoreCurrentTurnImages } from "./current-turn-images.js";
|
|
30
|
+
import { getActiveTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
29
31
|
import { resolvePromptCachePolicy } from "../../providers/prompt-cache-plan.js";
|
|
30
32
|
import { wrapStreamFnForXopcExtensions } from "./xopc-stream-bridge.js";
|
|
31
33
|
import { acquireEmbeddedSessionRunner, evictEmbeddedSessionRunner } from "./session-runner.js";
|
|
@@ -486,16 +488,37 @@ async function runXopcEmbeddedTurnInner(params) {
|
|
|
486
488
|
};
|
|
487
489
|
const loggingStreamFn = (streamModel, context, options) => {
|
|
488
490
|
instructions.acknowledge();
|
|
489
|
-
const
|
|
491
|
+
const memoryMetadata = isXopcDatabaseOpen() ? getSessionMetadata(conversationId) : void 0;
|
|
492
|
+
const historyContext = {
|
|
493
|
+
conversationId,
|
|
494
|
+
agentId: memoryMetadata?.agentId ?? "",
|
|
495
|
+
workspaceId: workspaceDir,
|
|
496
|
+
projectId: memoryMetadata?.projectId
|
|
497
|
+
};
|
|
498
|
+
const sourceMessages = projectForgottenHistoryMessages([...context.messages], historyContext, getActiveTranscriptUserText(conversationId) ?? (typeof userMessage === "string" ? userMessage : "")).map((message) => message.role !== "system" ? message : {
|
|
499
|
+
...message,
|
|
500
|
+
...typeof message.content === "string" ? { content: projectSuppressedMemoryBlocks(message.content, historyContext) } : {},
|
|
501
|
+
...message.sections ? { sections: Object.fromEntries(Object.entries(message.sections).map(([key, value]) => [key, projectSuppressedMemoryBlocks(value, historyContext)])) } : {}
|
|
502
|
+
});
|
|
490
503
|
const hygienicMessages = tryApplySessionTranscriptHygiene(sourceMessages, streamModel);
|
|
491
504
|
const loopGuard = detectToolLoops(extractRecentToolCalls(session.agent.state.messages));
|
|
492
505
|
let effectiveContext = {
|
|
493
506
|
...context,
|
|
494
507
|
messages: hygienicMessages
|
|
495
508
|
};
|
|
509
|
+
const readAuthorization = originalReadAuthorizationNotice(historyContext, getActiveTranscriptUserText(conversationId) ?? (typeof userMessage === "string" ? userMessage : ""));
|
|
510
|
+
if (readAuthorization) effectiveContext = {
|
|
511
|
+
...effectiveContext,
|
|
512
|
+
messages: [...effectiveContext.messages, {
|
|
513
|
+
role: "system",
|
|
514
|
+
content: "",
|
|
515
|
+
sections: { "xopc.original-read-authorization": readAuthorization },
|
|
516
|
+
timestamp: 0
|
|
517
|
+
}]
|
|
518
|
+
};
|
|
496
519
|
if (loopGuard.injection) effectiveContext = {
|
|
497
520
|
...effectiveContext,
|
|
498
|
-
messages: [...
|
|
521
|
+
messages: [...effectiveContext.messages, {
|
|
499
522
|
role: "user",
|
|
500
523
|
content: loopGuard.injection,
|
|
501
524
|
timestamp: Date.now()
|
|
@@ -3,7 +3,6 @@ import { ensureSessionRecord } from "../../storage/sqlite/session-repository.js"
|
|
|
3
3
|
import { loadTranscriptRowsForSession } from "../../storage/sqlite/transcript-repository.js";
|
|
4
4
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
5
5
|
import { storedRowsToFileEntries } from "../../session/stored-rows-to-file-entries.js";
|
|
6
|
-
import { repairAssistantUsageInSessionManager } from "./session-manager-init.js";
|
|
7
6
|
import { SessionManager } from "@earendil-works/pi-coding-agent";
|
|
8
7
|
//#region src/agent/embedded/sqlite-hydrating-session-manager.ts
|
|
9
8
|
init_sqlite();
|
|
@@ -26,7 +25,6 @@ function openSqliteHydratingSessionManager(params) {
|
|
|
26
25
|
internal.sessionId = params.transcriptId;
|
|
27
26
|
internal.flushed = true;
|
|
28
27
|
internal._buildIndex();
|
|
29
|
-
repairAssistantUsageInSessionManager(sm);
|
|
30
28
|
return sm;
|
|
31
29
|
}
|
|
32
30
|
//#endregion
|
|
@@ -64,14 +64,14 @@ function textResult(value, details = {}) {
|
|
|
64
64
|
}
|
|
65
65
|
function createExternalToolGatewayTools(providers, getContext, getConfig, getExecutionConversationId, nativeSources = [], executorConfig) {
|
|
66
66
|
const service = new ExternalToolService(providers);
|
|
67
|
-
const
|
|
68
|
-
const
|
|
67
|
+
const gatewaySources = EXTERNAL_TOOL_SOURCES.filter((source) => !nativeSources.includes(source));
|
|
68
|
+
const assertGatewayRef = (ref) => {
|
|
69
69
|
if (nativeSources.some((source) => ref.startsWith(`${source}:`))) throw new Error("Use tool_search to load this native tool, then call it directly.");
|
|
70
70
|
};
|
|
71
71
|
const searchTool = {
|
|
72
72
|
name: EXTERNAL_TOOL_NAMES.search,
|
|
73
73
|
label: "🔎 External Tool Search",
|
|
74
|
-
description: `Search external tools from these sources: ${
|
|
74
|
+
description: `Search external tools from these sources: ${gatewaySources.join(", ")}.${nativeSources.length ? ` Use tool_search for native ${nativeSources.join(", ")} tools.` : ""} CLI connectors include Feishu/Lark, WeCom and WPS 365. Omit sources unless intentionally restricting the search; do not guess a source list. Use concise English capability keywords, e.g. "wecom doc.search". Returns executable tools, connection candidates, or reviewed Store install candidates. Call xopc_tool_describe before executing a tool. When no executable tool exists but a connection or install candidate is returned, use xopc_require_connection instead of falling back to browser automation. If a source-filtered search finds no relevant tools, retry without sources before concluding a capability is unavailable.`,
|
|
75
75
|
parameters: ToolSearchSchema,
|
|
76
76
|
async execute(_toolCallId, params) {
|
|
77
77
|
const selectedSources = new Set(params.sources ?? []);
|
|
@@ -82,7 +82,7 @@ function createExternalToolGatewayTools(providers, getContext, getConfig, getExe
|
|
|
82
82
|
});
|
|
83
83
|
const result = await service.search({
|
|
84
84
|
...params,
|
|
85
|
-
sources: (params.sources?.length ? params.sources :
|
|
85
|
+
sources: (params.sources?.length ? params.sources : gatewaySources).filter((source) => !nativeSources.includes(source))
|
|
86
86
|
});
|
|
87
87
|
const candidates = [...result.connectionCandidates, ...connectionCandidates(params.query)].filter((candidate, index, all) => all.findIndex((item) => item.candidateRef === candidate.candidateRef) === index);
|
|
88
88
|
let installCandidates = [];
|
|
@@ -115,7 +115,7 @@ function createExternalToolGatewayTools(providers, getContext, getConfig, getExe
|
|
|
115
115
|
description: "Load exact contracts for up to three external tools returned by xopc_tool_search.",
|
|
116
116
|
parameters: ToolDescribeSchema,
|
|
117
117
|
async execute(_toolCallId, params) {
|
|
118
|
-
params.toolRefs.forEach(
|
|
118
|
+
params.toolRefs.forEach(assertGatewayRef);
|
|
119
119
|
const result = await service.describe(params.toolRefs);
|
|
120
120
|
return textResult({
|
|
121
121
|
...result,
|
|
@@ -183,7 +183,7 @@ function createExternalToolGatewayTools(providers, getContext, getConfig, getExe
|
|
|
183
183
|
};
|
|
184
184
|
const nativeExecute = executeTool.execute.bind(executeTool);
|
|
185
185
|
executeTool.execute = async (id, params, signal, update) => {
|
|
186
|
-
|
|
186
|
+
assertGatewayRef(params.toolRef);
|
|
187
187
|
return nativeExecute(id, params, signal, update);
|
|
188
188
|
};
|
|
189
189
|
bindExternalToolRegistry(executeTool, {
|
|
@@ -80,8 +80,8 @@ async function advertisesOAuth(config, workspace, serverId, signal) {
|
|
|
80
80
|
})) return true;
|
|
81
81
|
}
|
|
82
82
|
if (!/\bBearer\b/i.test(challenge)) return false;
|
|
83
|
-
const
|
|
84
|
-
return Boolean(
|
|
83
|
+
const authorizationServer = await metadata(new URL("/.well-known/oauth-authorization-server", url), signal);
|
|
84
|
+
return Boolean(authorizationServer && authorizationServer.issuer === url.origin && typeof authorizationServer.authorization_endpoint === "string" && typeof authorizationServer.token_endpoint === "string");
|
|
85
85
|
}
|
|
86
86
|
async function probeMcpConnection(config, workspace, serverId, options) {
|
|
87
87
|
config = resolveMcpSetupConfig(config, serverId);
|
|
@@ -2,7 +2,7 @@ import { type CompactionHandover } from '../../session/compaction-types.js';
|
|
|
2
2
|
import type { TranscriptSourceEntry } from '../../storage/sqlite/transcript-repository.js';
|
|
3
3
|
export type { CompactionAudit, CompactionHandover, CompactionHandoverItem, HandoverItemKind, } from '../../session/compaction-types.js';
|
|
4
4
|
export declare const MAX_HANDOVER_ITEMS = 120;
|
|
5
|
-
/** Normalize
|
|
5
|
+
/** Normalize model-produced ledgers into the bounded durable form. */
|
|
6
6
|
export declare function consolidateCompactionHandover(handover: CompactionHandover): CompactionHandover;
|
|
7
7
|
/** Apply a bounded model-produced delta to the trusted local handover. */
|
|
8
8
|
export declare function applyCompactionHandoverDelta(params: {
|
|
@@ -125,7 +125,7 @@ function consolidateItems(items) {
|
|
|
125
125
|
const retainedIds = new Set([...perKindBounded].sort(compareRetentionPriority).slice(0, 120).map((item) => item.id));
|
|
126
126
|
return perKindBounded.filter((item) => retainedIds.has(item.id));
|
|
127
127
|
}
|
|
128
|
-
/** Normalize
|
|
128
|
+
/** Normalize model-produced ledgers into the bounded durable form. */
|
|
129
129
|
function consolidateCompactionHandover(handover) {
|
|
130
130
|
return {
|
|
131
131
|
...handover,
|
|
@@ -123,7 +123,7 @@ function promoteCompactionLedger(input) {
|
|
|
123
123
|
const sensitivity = inferMemorySensitivity(item.text);
|
|
124
124
|
if (sensitivity === "secret" || sensitivity === "regulated") continue;
|
|
125
125
|
const classified = classifyItemProvenance(item, sourceById, entriesByTurn, entriesByRound);
|
|
126
|
-
const originClass = sessionKind === "automation" || sessionKind === "
|
|
126
|
+
const originClass = sessionKind === "automation" || sessionKind === "background" ? "system" : sessionKind === "group" ? "untrusted" : classified.originClass;
|
|
127
127
|
const active = item.status === "active";
|
|
128
128
|
const supportingSources = item.sources.flatMap((ref) => sourceById.get(ref.entryId) ?? []);
|
|
129
129
|
const independentlySupported = supportingSources.some((entry) => rowRole(entry) === "user") || supportingSources.some((entry) => entriesByRound.get(entry.entryId)?.some((peer) => rowRole(peer) === "user"));
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
//#region src/agent/memory/source-origin.ts
|
|
2
|
-
const INTERNAL_MEMORY_PROVIDERS = new Set([
|
|
3
|
-
"local",
|
|
4
|
-
"builtin",
|
|
5
|
-
"workflow-run"
|
|
6
|
-
]);
|
|
2
|
+
const INTERNAL_MEMORY_PROVIDERS = new Set(["local", "builtin"]);
|
|
7
3
|
function classifyMemoryContextOrigin(record) {
|
|
8
4
|
const provider = record.source.provider?.trim().toLowerCase();
|
|
9
5
|
if (provider && !INTERNAL_MEMORY_PROVIDERS.has(provider)) return "connected_source";
|
|
@@ -14,10 +14,8 @@ function stateKey(conversationId, turnId) {
|
|
|
14
14
|
function resolveMemorySessionKind(conversationId) {
|
|
15
15
|
const parsed = getConversationRouting(conversationId);
|
|
16
16
|
if (!parsed) return "unknown";
|
|
17
|
-
|
|
18
|
-
if (kind === "workflow-subagent") return "subagent";
|
|
17
|
+
if (getSessionMetadata(conversationId)?.sessionType === "subagent") return "subagent";
|
|
19
18
|
if (parsed.source === "cron") return "automation";
|
|
20
|
-
if (kind === "workflow-run") return "workflow";
|
|
21
19
|
if (parsed.peerKind === "group" || parsed.peerKind === "channel") return "group";
|
|
22
20
|
return "interactive";
|
|
23
21
|
}
|
|
@@ -5,7 +5,7 @@ export type MemoryExplicitness = 'explicit' | 'observed' | 'inferred';
|
|
|
5
5
|
export type MemoryDurability = 'ephemeral' | 'durable' | 'recurring';
|
|
6
6
|
export type MemoryDisclosurePolicy = 'silent' | 'referenceable' | 'ask_before_reference';
|
|
7
7
|
export type MemoryOriginClass = 'owner' | 'agent' | 'untrusted' | 'system';
|
|
8
|
-
export type MemorySessionKind = 'interactive' | 'group' | 'automation' | '
|
|
8
|
+
export type MemorySessionKind = 'interactive' | 'group' | 'automation' | 'subagent' | 'background' | 'unknown';
|
|
9
9
|
export interface MemoryProvenance {
|
|
10
10
|
sourceAgentId: string;
|
|
11
11
|
originClass: MemoryOriginClass;
|
|
@@ -10,7 +10,6 @@ import type { ThinkLevel } from '../transcript/thinking-types.js';
|
|
|
10
10
|
import type { CompactionResult } from '../memory/compaction.js';
|
|
11
11
|
import type { AgentSourceContext } from '../source-context/types.js';
|
|
12
12
|
import { type BtwQueryOptions, type CommandStreamEvent } from '../../chat-commands/index.js';
|
|
13
|
-
import type { WorkflowRunServiceLike } from '../../workflows/service/workflow-run-service.types.js';
|
|
14
13
|
import type { SkillInstallToolOptions, SkillInstallToolResult } from '../tools/skill-install-tool.js';
|
|
15
14
|
export interface CommandContext {
|
|
16
15
|
conversationId: string;
|
|
@@ -53,7 +52,6 @@ export interface CommandHandlerConfig {
|
|
|
53
52
|
error?: string;
|
|
54
53
|
}>;
|
|
55
54
|
getSessionContextReport?: (conversationId: string, mode: 'list' | 'detail' | 'json') => Promise<string>;
|
|
56
|
-
getWorkflowRunService?: () => WorkflowRunServiceLike | undefined;
|
|
57
55
|
}
|
|
58
56
|
export declare class CommandHandler {
|
|
59
57
|
private config;
|
|
@@ -71,7 +69,6 @@ export declare class CommandHandler {
|
|
|
71
69
|
private btwQuery?;
|
|
72
70
|
private getSessionContextReport?;
|
|
73
71
|
private resetSession?;
|
|
74
|
-
private getWorkflowRunService?;
|
|
75
72
|
constructor(handlerConfig: CommandHandlerConfig);
|
|
76
73
|
/** Replace config reference after hot reload or gateway PATCH so commands see current defaults. */
|
|
77
74
|
updateAgentConfig(config: Config): void;
|
|
@@ -28,7 +28,6 @@ var CommandHandler = class {
|
|
|
28
28
|
btwQuery;
|
|
29
29
|
getSessionContextReport;
|
|
30
30
|
resetSession;
|
|
31
|
-
getWorkflowRunService;
|
|
32
31
|
constructor(handlerConfig) {
|
|
33
32
|
this.config = handlerConfig.config;
|
|
34
33
|
this.bus = handlerConfig.bus;
|
|
@@ -45,7 +44,6 @@ var CommandHandler = class {
|
|
|
45
44
|
this.btwQuery = handlerConfig.btwQuery;
|
|
46
45
|
this.getSessionContextReport = handlerConfig.getSessionContextReport;
|
|
47
46
|
this.resetSession = handlerConfig.resetSession;
|
|
48
|
-
this.getWorkflowRunService = handlerConfig.getWorkflowRunService;
|
|
49
47
|
}
|
|
50
48
|
/** Replace config reference after hot reload or gateway PATCH so commands see current defaults. */
|
|
51
49
|
updateAgentConfig(config) {
|
|
@@ -138,8 +136,7 @@ var CommandHandler = class {
|
|
|
138
136
|
compactSession: this.compactSession,
|
|
139
137
|
btwQuery: this.btwQuery,
|
|
140
138
|
emitEvent,
|
|
141
|
-
getSessionContextReport: this.getSessionContextReport
|
|
142
|
-
workflowRunService: this.getWorkflowRunService?.()
|
|
139
|
+
getSessionContextReport: this.getSessionContextReport
|
|
143
140
|
});
|
|
144
141
|
commandContext.sourceContexts = context.sourceContexts;
|
|
145
142
|
return commandContext;
|
|
@@ -59,7 +59,7 @@ function buildHumanCollaborationSection(includeExecutionContract = true) {
|
|
|
59
59
|
"",
|
|
60
60
|
"### Task Contract",
|
|
61
61
|
"- For non-trivial actionable work, privately establish: desired task, completion criteria, constraints, plan, and verification evidence.",
|
|
62
|
-
"- Keep implementation concepts such as agents,
|
|
62
|
+
"- Keep implementation concepts such as agents, tools, and memory providers behind the experience unless naming them helps the user decide or debug.",
|
|
63
63
|
"- Communicate task state in human terms: working, needs a decision, blocked, or done.",
|
|
64
64
|
"- Completion requires the requested result and proportionate evidence. State unresolved blockers and skipped verification."
|
|
65
65
|
] : []
|
|
@@ -72,7 +72,7 @@ function buildWorkContinuitySection() {
|
|
|
72
72
|
"- Continue in the current project when the conversation is already bound to one. Reuse relevant context before creating anything new.",
|
|
73
73
|
"- When work clearly spans sessions, files, decisions, or dependencies, first make useful progress, then offer in one plain sentence to keep it moving over time. Create durable project/work state only when the user asks for continuity or accepts the offer.",
|
|
74
74
|
"- When the user names a future time or cadence, recognize that it may be scheduled. Create an automation only after explicit confirmation of the timing and action; otherwise make a concise offer.",
|
|
75
|
-
"- When continuity or scheduling is explicit and safe, act with the available product tools instead of explaining agents, Tasks, Projects,
|
|
75
|
+
"- When continuity or scheduling is explicit and safe, act with the available product tools instead of explaining agents, Tasks, Projects, or automations.",
|
|
76
76
|
"- Phrase offers around the benefit: “keep this moving”, “pick up where we left off”, or “do this for you regularly”. Avoid internal system terminology unless the user asks or it is needed to resolve a problem.",
|
|
77
77
|
"- Do not repeatedly upsell continuity. Offer only when it materially reduces future effort."
|
|
78
78
|
].join("\n");
|
|
@@ -27,7 +27,6 @@ const CORE_TOOL_ORDER = [
|
|
|
27
27
|
"session_status",
|
|
28
28
|
"tool_manual",
|
|
29
29
|
"delegate_task",
|
|
30
|
-
"workflow",
|
|
31
30
|
"automation",
|
|
32
31
|
"skills_list",
|
|
33
32
|
"skill_view",
|
|
@@ -69,7 +68,6 @@ const CORE_TOOL_SUMMARIES = {
|
|
|
69
68
|
session_status: "Show session usage/time/model state",
|
|
70
69
|
tool_manual: "Load built-in usage manuals for complex tools",
|
|
71
70
|
delegate_task: "Spawn an isolated sub-agent for a delegated task",
|
|
72
|
-
workflow: "Start a persisted multi-phase workflow run",
|
|
73
71
|
automation: "Manage product automations",
|
|
74
72
|
skills_list: "List available skills",
|
|
75
73
|
skill_view: "Load a skill SKILL.md or sub-documents",
|
|
@@ -118,7 +116,6 @@ function buildToolingSection(params) {
|
|
|
118
116
|
const grepToolName = resolveToolName("grep");
|
|
119
117
|
const findToolName = resolveToolName("find");
|
|
120
118
|
const hasDelegate = availableTools.has("delegate_task");
|
|
121
|
-
const hasWorkflow = availableTools.has("workflow");
|
|
122
119
|
const hasToolManual = availableTools.has("tool_manual");
|
|
123
120
|
const hasRead = availableTools.has("read_file");
|
|
124
121
|
const hasPatch = availableTools.has("apply_patch");
|
|
@@ -131,7 +128,6 @@ function buildToolingSection(params) {
|
|
|
131
128
|
const hasXopcUse = availableTools.has("xopc_use");
|
|
132
129
|
const orchestrationLines = [];
|
|
133
130
|
if (hasDelegate) orchestrationLines.push("- Sub-agent delegation → use `delegate_task(goal, context?, mode?, capabilities?, toolset?, budgetTier?, maxIterations?)`. Choose light for narrow lookups, standard for bounded research, and deep for broader investigations. Supply relevant facts and a clear stopping condition; search before reading targeted chunks. Default research inherits available read capabilities. Use implement for isolated worktree changes. Inspect stopReason, budget usage, handoff and rejectedTools; resume incomplete work from the handoff rather than repeating the investigation.");
|
|
134
|
-
if (hasWorkflow) orchestrationLines.push("- Multi-phase workflows → use `workflow` to start persisted runs with subagents when a script defines phases.");
|
|
135
131
|
return [
|
|
136
132
|
"## Tooling",
|
|
137
133
|
"Tool availability (filtered by policy):",
|
|
@@ -154,7 +150,7 @@ function buildToolingSection(params) {
|
|
|
154
150
|
hasPlan ? `Use \`${planToolName}\` for multi-step coding work: keep exactly one active step when work is in progress, and update it after meaningful progress or review.` : "",
|
|
155
151
|
hasToolManual ? "Some complex tools have built-in manuals. Use `tool_manual(tool)` before non-trivial use." : "",
|
|
156
152
|
...orchestrationLines,
|
|
157
|
-
hasDelegate
|
|
153
|
+
hasDelegate ? "Do not poll delegate status in a tight loop; check on-demand or wait for completion." : ""
|
|
158
154
|
].filter(Boolean).join("\n");
|
|
159
155
|
}
|
|
160
156
|
function hasSkillsTools(toolNames) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Per-turn presentation only; never persisted as a user message or Agent identity. */
|
|
2
|
-
export declare const voicePresentationPrompt = "This turn is a live voice conversation in the same Chat.\nLead with the useful answer. Prefer one to three natural spoken sentences unless the user asks for detail.\nAllow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.\nFor work, briefly say what you are doing, use the available tools, then report the actual result.\nKeep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.\nDo not imply a task continues in the background unless an existing task
|
|
2
|
+
export declare const voicePresentationPrompt = "This turn is a live voice conversation in the same Chat.\nLead with the useful answer. Prefer one to three natural spoken sentences unless the user asks for detail.\nAllow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.\nFor work, briefly say what you are doing, use the available tools, then report the actual result.\nKeep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.\nDo not imply a task continues in the background unless an existing task actually started it.\nAsk ordinary follow-up questions directly in speech, then let the user answer in the next turn; do not use a blocking clarification form. Keep formal action approvals in the existing approval mechanism. A background sound or ambiguous interjection is not permission for an action.\nStopping speech does not undo a completed tool action. State consequential results accurately.";
|
|
@@ -5,7 +5,7 @@ Lead with the useful answer. Prefer one to three natural spoken sentences unless
|
|
|
5
5
|
Allow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.
|
|
6
6
|
For work, briefly say what you are doing, use the available tools, then report the actual result.
|
|
7
7
|
Keep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.
|
|
8
|
-
Do not imply a task continues in the background unless an existing task
|
|
8
|
+
Do not imply a task continues in the background unless an existing task actually started it.
|
|
9
9
|
Ask ordinary follow-up questions directly in speech, then let the user answer in the next turn; do not use a blocking clarification form. Keep formal action approvals in the existing approval mechanism. A background sound or ambiguous interjection is not permission for an action.
|
|
10
10
|
Stopping speech does not undo a completed tool action. State consequential results accurately.`;
|
|
11
11
|
//#endregion
|
|
@@ -35,7 +35,7 @@ async function hydratePerTurnState(deps, conversationId, thinking) {
|
|
|
35
35
|
* can persist the receipt or stream it as a token.
|
|
36
36
|
*/
|
|
37
37
|
async function tryRunSlashCommand(deps, ctx, content, options) {
|
|
38
|
-
if (options?.origin?.type === "system" && options.origin.source === "
|
|
38
|
+
if (options?.origin?.type === "system" && options.origin.source === "task") return {
|
|
39
39
|
matched: false,
|
|
40
40
|
aggregatedText: ""
|
|
41
41
|
};
|
|
@@ -291,12 +291,6 @@ async function* runProcessDirectStreamingInner(deps, input) {
|
|
|
291
291
|
webchatSlashReceipt = "Command finished with no assistant text. A task continuation may still be scheduled automatically.";
|
|
292
292
|
pushAssistantReceipt(queue, webchatSlashReceipt, input.runId);
|
|
293
293
|
}
|
|
294
|
-
const workflowRun = slash.metadata?.workflowRun;
|
|
295
|
-
if (workflowRun && typeof workflowRun === "object") queue.push({
|
|
296
|
-
type: "workflow_run_started",
|
|
297
|
-
runId: input.runId,
|
|
298
|
-
payload: { workflowRun }
|
|
299
|
-
});
|
|
300
294
|
return;
|
|
301
295
|
}
|
|
302
296
|
const skillTurn = deps.agentManager.prepareSkillTurn(conversationId, authoredText);
|
|
@@ -79,7 +79,6 @@ export declare class AgentService {
|
|
|
79
79
|
private sessionLifecycleManager;
|
|
80
80
|
private agentOrchestrator;
|
|
81
81
|
private agentEventHandler;
|
|
82
|
-
private workflowProgressBrokerHandle;
|
|
83
82
|
private agentManager;
|
|
84
83
|
/**
|
|
85
84
|
* Unified per-session state container (replaces six ad-hoc Maps). Owns webchat
|
|
@@ -118,7 +117,6 @@ export declare class AgentService {
|
|
|
118
117
|
setWorkspaceTrust(workspacePath: string, trusted: boolean): WorkspaceTrustState;
|
|
119
118
|
getCapabilityCatalog(conversationId?: string): AgentCapabilityCatalogEntry[];
|
|
120
119
|
getSkillMarkdownSource(skillName: string): SkillMarkdownPreviewPayload | null;
|
|
121
|
-
getWorkflowSkillInstructions(agentId: string, names: readonly string[]): string | undefined;
|
|
122
120
|
refreshSkillsAfterDiskChange(): void;
|
|
123
121
|
refreshSkillsAfterTrustChange(): void;
|
|
124
122
|
installSkillFromSource(opts: SkillInstallToolOptions): Promise<SkillInstallToolResult>;
|
|
@@ -68,8 +68,6 @@ import "./session/index.js";
|
|
|
68
68
|
import { AgentOrchestrator } from "./orchestration/agent-orchestrator.js";
|
|
69
69
|
import { AgentEventHandler } from "./orchestration/agent-event-handler.js";
|
|
70
70
|
import "./orchestration/index.js";
|
|
71
|
-
import { getWorkflowProgressBroker } from "./workflow/progress-broker.js";
|
|
72
|
-
import "./workflow/index.js";
|
|
73
71
|
import { TaskJudgeService } from "./tasks/task-judge-service.js";
|
|
74
72
|
import { analyzeResponseLanguage } from "../i18n/language-consistency.js";
|
|
75
73
|
import { readFile } from "node:fs/promises";
|
|
@@ -154,7 +152,6 @@ var AgentService = class {
|
|
|
154
152
|
sessionLifecycleManager;
|
|
155
153
|
agentOrchestrator;
|
|
156
154
|
agentEventHandler;
|
|
157
|
-
workflowProgressBrokerHandle = null;
|
|
158
155
|
agentManager;
|
|
159
156
|
/**
|
|
160
157
|
* Unified per-session state container (replaces six ad-hoc Maps). Owns webchat
|
|
@@ -246,7 +243,6 @@ var AgentService = class {
|
|
|
246
243
|
dispatchTaskEvents: config.dispatchTaskEvents,
|
|
247
244
|
dispatchTaskRuns: config.dispatchTaskRuns,
|
|
248
245
|
onAgentCatalogMutate: config.onAgentCatalogMutate,
|
|
249
|
-
getWorkflowRunService: config.getWorkflowRunService,
|
|
250
246
|
onSkillsUpdated: config.onSkillsUpdated,
|
|
251
247
|
installSkillFromSource: (opts) => this.installSkillFromSource(opts),
|
|
252
248
|
installSkillFromMarketplace: (opts) => this.installSkillFromMarketplace(opts),
|
|
@@ -273,7 +269,6 @@ var AgentService = class {
|
|
|
273
269
|
if (analysis.compliant) log.debug(fields, "Assistant response language check passed");
|
|
274
270
|
else log.warn(fields, "Assistant response language did not match the active preference");
|
|
275
271
|
});
|
|
276
|
-
this.workflowProgressBrokerHandle = getWorkflowProgressBroker().attachTo(this.agentEventHandler);
|
|
277
272
|
this.sessionHydrator = new SessionHydrator({
|
|
278
273
|
sessionConfigStore: this.sessionConfigStore,
|
|
279
274
|
agentManager: this.agentManager,
|
|
@@ -311,7 +306,6 @@ var AgentService = class {
|
|
|
311
306
|
bus,
|
|
312
307
|
sessionStore: this.sessionStore,
|
|
313
308
|
sessionConfigStore: this.sessionConfigStore,
|
|
314
|
-
getWorkflowRunService: config.getWorkflowRunService,
|
|
315
309
|
applySessionThinkingLevel: (conversationId, level) => {
|
|
316
310
|
this.agentManager.setThinkingLevel(conversationId, level);
|
|
317
311
|
},
|
|
@@ -528,9 +522,6 @@ var AgentService = class {
|
|
|
528
522
|
getSkillMarkdownSource(skillName) {
|
|
529
523
|
return this.agentManager.getSkillMarkdownSource(skillName);
|
|
530
524
|
}
|
|
531
|
-
getWorkflowSkillInstructions(agentId, names) {
|
|
532
|
-
return this.agentManager.getWorkflowSkillInstructions(agentId, names);
|
|
533
|
-
}
|
|
534
525
|
refreshSkillsAfterDiskChange() {
|
|
535
526
|
this.agentManager.refreshSkillsAfterDiskChange();
|
|
536
527
|
}
|
|
@@ -885,8 +876,6 @@ var AgentService = class {
|
|
|
885
876
|
this.sessionTracker.dispose();
|
|
886
877
|
this.sessionState.disposeAll();
|
|
887
878
|
this.agentManager.dispose();
|
|
888
|
-
this.workflowProgressBrokerHandle?.dispose();
|
|
889
|
-
this.workflowProgressBrokerHandle = null;
|
|
890
879
|
}
|
|
891
880
|
};
|
|
892
881
|
//#endregion
|
|
@@ -60,8 +60,6 @@ export interface AgentServiceConfig {
|
|
|
60
60
|
* without persisting a trust entry; gateway mode leaves trust fully persistent.
|
|
61
61
|
*/
|
|
62
62
|
isWorkspaceTrusted?: (workspaceDir: string) => boolean | null | undefined;
|
|
63
|
-
/** Gateway: persisted workflow runs. */
|
|
64
|
-
getWorkflowRunService?: () => import('../workflows/service/workflow-run-service.types.js').WorkflowRunServiceLike;
|
|
65
63
|
/** Gateway: resolves bound source context (e.g. Note-grounded chat) before each turn. */
|
|
66
64
|
sourceContextResolver?: AgentSourceContextResolver;
|
|
67
65
|
}
|
|
@@ -32,8 +32,6 @@ export interface PatchSessionAgentConfigInput {
|
|
|
32
32
|
model?: string | null;
|
|
33
33
|
/** Preferred activity-detail field. `null` clears the session override. */
|
|
34
34
|
activityDetailLevel?: string | null;
|
|
35
|
-
/** @deprecated Use activityDetailLevel. */
|
|
36
|
-
reasoningLevel?: string | null;
|
|
37
35
|
verboseLevel?: string;
|
|
38
36
|
workingDirectory?: string;
|
|
39
37
|
responseLanguage?: string | null;
|
|
@@ -76,7 +76,7 @@ var SessionConfigService = class {
|
|
|
76
76
|
this.opts.modelManager.restoreSessionModel(conversationId, modelRef, updated.fixedModel === true);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
const activityDetailLevel = partial.activityDetailLevel
|
|
79
|
+
const activityDetailLevel = partial.activityDetailLevel;
|
|
80
80
|
if (activityDetailLevel !== void 0) if (activityDetailLevel === null) await this.opts.sessionConfigStore.update(conversationId, { reasoningLevel: void 0 });
|
|
81
81
|
else {
|
|
82
82
|
const normalized = normalizeReasoningLevel(activityDetailLevel);
|
|
@@ -146,7 +146,6 @@ var SessionInspector = class {
|
|
|
146
146
|
model: sc?.modelOverride ?? model,
|
|
147
147
|
configVersion: sc?.updatedAt ?? 0,
|
|
148
148
|
fixedModel: sc?.fixedModel === true,
|
|
149
|
-
reasoningLevel,
|
|
150
149
|
activityDetail: {
|
|
151
150
|
default: defReason,
|
|
152
151
|
override: sc?.reasoningLevel ?? null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse Hermes-style `required_environment_variables` and
|
|
2
|
+
* Parse Hermes-style `required_environment_variables` and xopc `requires.env` into a deduped name list.
|
|
3
3
|
*/
|
|
4
4
|
/** POSIX-style env var names we allow for passthrough registration. */
|
|
5
5
|
export declare const SKILL_ENV_VAR_NAME_RE: RegExp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizeStringList } from "./skill-tool-gating.js";
|
|
2
2
|
//#region src/agent/skills/required-env-vars.ts
|
|
3
3
|
/**
|
|
4
|
-
* Parse Hermes-style `required_environment_variables` and
|
|
4
|
+
* Parse Hermes-style `required_environment_variables` and xopc `requires.env` into a deduped name list.
|
|
5
5
|
*/
|
|
6
6
|
/** POSIX-style env var names we allow for passthrough registration. */
|
|
7
7
|
const SKILL_ENV_VAR_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|