@xopcai/xopc 0.0.115 → 0.0.117
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 +26 -10
- package/README.zh-CN.md +26 -10
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/demo-memory/src/index.d.ts +6 -0
- package/dist/extensions/demo-memory/src/index.js +132 -0
- package/dist/extensions/demo-memory/src/index.js.map +1 -0
- package/dist/extensions/demo-memory/xopc.extension.json +15 -0
- package/dist/extensions/feishu/src/schema/config-schema.d.ts +3 -3
- package/dist/extensions/telegram/src/command-handler.js +1 -2
- package/dist/extensions/telegram/src/command-handler.js.map +1 -1
- package/dist/extensions/telegram/src/config-schema.d.ts +8 -8
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/config-schema.d.ts +3 -3
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DVnBfANm.js → agent-avatar-dicebear-BBLhJ2C6.js} +1 -1
- package/dist/gateway/static/root/assets/agents-C6xgagZd.js +71 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-CBpLONvG.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-BQpPSTHD.js → appearance-settings-CGcc54yj.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-DdDx0V4z.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CXu-Csep.js → archive-plugin-DZsVqMhU.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-BAjgOoGY.js → attachment-load-CIol6JWX.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-BSBgB2hO.js → binary-plugins-B3UauMfp.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BpXw9TTR.js → block-editor-2HJoFchH.js} +3 -3
- package/dist/gateway/static/root/assets/browser-settings-page-CUOO-PQk.js +8 -0
- package/dist/gateway/static/root/assets/capability-presets-api-XQoMTI0A.js +1 -0
- package/dist/gateway/static/root/assets/capability-presets-settings-panel-CfqF-kGr.js +1 -0
- package/dist/gateway/static/root/assets/{channels-settings-BbPUpzWB.js → channels-settings-BYyRzsex.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-DIvEz4NX.js +2 -0
- package/dist/gateway/static/root/assets/cron-api-R41aQCX9.js +1 -0
- package/dist/gateway/static/root/assets/cron-page-D97nFqQD.js +3 -0
- package/dist/gateway/static/root/assets/dreaming-settings-Bceaw1PG.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-D9kgUHCc.js → extension-debug-page-DX5WRE_t.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CGyhXqzR.js → extension-page-Buah7Bw-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DL8Xquqd.js → extension-settings-page-DuroLVnf.js} +1 -1
- package/dist/gateway/static/root/assets/{fetch-D0VXA932.js → fetch-B5zdl27C.js} +1 -1
- package/dist/gateway/static/root/assets/{format-interval-label-Be8SmgUw.js → format-interval-label-Dn_QKIqb.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-config-api-gT4ZhE7h.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-iISWAZRm.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DERUH61L.js → gateway-startup-retry-B3kL8KGY.js} +1 -1
- package/dist/gateway/static/root/assets/goal-detail-page-DCUROLMQ.js +1 -0
- package/dist/gateway/static/root/assets/{goals-config-api-BPmqWk90.js → goals-config-api-AR-fVh0P.js} +1 -1
- package/dist/gateway/static/root/assets/goals-page-Cpb21ezg.js +2 -0
- package/dist/gateway/static/root/assets/goals-settings-CPAuFwoD.js +1 -0
- package/dist/gateway/static/root/assets/{heartbeat-config-api-Bfdzr8oV.js → heartbeat-config-api-D7bKFEeO.js} +1 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-CC69vNx0.js +1 -0
- package/dist/gateway/static/root/assets/index-CwhK8qCh.js +122 -0
- package/dist/gateway/static/root/assets/index-CyfhARL-.css +1 -0
- package/dist/gateway/static/root/assets/{interval-presets-utKbuCRY.js → interval-presets-0DtsnxE0.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CjqS6c6V.js → keyboard-shortcuts-settings-BPREtN8B.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DefCgF4o.js +2 -0
- package/dist/gateway/static/root/assets/{markdown-split-DW8C47iB.js → markdown-split-ChbR9LGO.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-D6HwDhDT.js → media-plugins-B82oP80n.js} +1 -1
- package/dist/gateway/static/root/assets/messages-Cf1O9JB0.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-panel-DmKiIihT.js +2 -0
- package/dist/gateway/static/root/assets/note-detail-page-CxxfLRJZ.js +2 -0
- package/dist/gateway/static/root/assets/{note-image-lightbox-pJM35Pz5.js → note-image-lightbox-CDknITM3.js} +1 -1
- package/dist/gateway/static/root/assets/notes-page-X2slSx7V.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-CVwHuyN6.js → preview-open-alternatives-DV3xQsWB.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BvmUWqgu.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-Ba-UEk7x.js → save-bar-controls-BODCXnvY.js} +1 -1
- package/dist/gateway/static/root/assets/{schedule-field-CNN9595U.js → schedule-field-CgJSCD3B.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-DnNMmtD5.js → schema-form-qtfEI6QM.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-B0yESuuL.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-q2M8RKOo.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-CmOz80i5.js → settings-collapsible-section-BHZKjVcS.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-form-section-BmK7JJOV.js → settings-form-section-5i35D-J1.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-CGozabLD.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-FoOSe6nU.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-Dp2qGrHC.js → share-preview-page-B0H63tDv.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-Cy5zWyYQ.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-DaZNFro9.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-CnwtUzvw.js +2 -0
- package/dist/gateway/static/root/assets/system-settings-panel-DXs2VmBt.js +1 -0
- package/dist/gateway/static/root/assets/typed-models-lib-4gPuydz_.js +1 -0
- package/dist/gateway/static/root/assets/{use-channel-catalog-CHlO8J9G.js → use-channel-catalog-BCjP_VHb.js} +1 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-DvKiOglO.js +1 -0
- package/dist/gateway/static/root/assets/{voice-player-store-DDDWYHvg.js → voice-player-store-BlF9V05n.js} +1 -1
- package/dist/gateway/static/root/assets/workflows-page-CAVZcONQ.js +18 -0
- package/dist/gateway/static/root/index.html +5 -5
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +1 -1
- package/dist/src/agent/agent-manager.js +7 -8
- package/dist/src/agent/agent-manager.js.map +1 -1
- package/dist/src/agent/agent-scope.js +6 -8
- package/dist/src/agent/agent-scope.js.map +1 -1
- package/dist/src/agent/background-review/coordinator.js +0 -1
- package/dist/src/agent/background-review/coordinator.js.map +1 -1
- package/dist/src/agent/background-review/run-background-review.d.ts +0 -2
- package/dist/src/agent/background-review/run-background-review.js +2 -4
- package/dist/src/agent/background-review/run-background-review.js.map +1 -1
- package/dist/src/agent/background-review/settings.js +8 -7
- package/dist/src/agent/background-review/settings.js.map +1 -1
- package/dist/src/agent/bootstrap/bootstrap-context.d.ts +2 -2
- package/dist/src/agent/bootstrap/bootstrap-context.js +4 -4
- package/dist/src/agent/bootstrap/bootstrap-context.js.map +1 -1
- package/dist/src/agent/context/workspace-seed.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js.map +1 -1
- package/dist/src/agent/fallback/candidates.js +6 -3
- package/dist/src/agent/fallback/candidates.js.map +1 -1
- package/dist/src/agent/goals/checklist-judge.d.ts +1 -0
- package/dist/src/agent/goals/checklist-judge.js +1 -1
- package/dist/src/agent/goals/checklist-judge.js.map +1 -1
- package/dist/src/agent/goals/evaluate-turn.d.ts +1 -0
- package/dist/src/agent/goals/evaluate-turn.js +1 -0
- package/dist/src/agent/goals/evaluate-turn.js.map +1 -1
- package/dist/src/agent/goals/post-turn.js +8 -1
- package/dist/src/agent/goals/post-turn.js.map +1 -1
- package/dist/src/agent/image/generation/runtime-types.d.ts +2 -0
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/generation/runtime.js.map +1 -1
- package/dist/src/agent/image/image-helpers.d.ts +1 -1
- package/dist/src/agent/image/image-helpers.js +4 -17
- package/dist/src/agent/image/image-helpers.js.map +1 -1
- package/dist/src/agent/image/image-model-fallback.js +1 -1
- package/dist/src/agent/image/image-model-fallback.js.map +1 -1
- package/dist/src/agent/image/inbound-image-handling.js +1 -1
- package/dist/src/agent/image/inbound-image-handling.js.map +1 -1
- package/dist/src/agent/image/tool-model-config.d.ts +1 -1
- package/dist/src/agent/image/tool-model-config.js +2 -2
- package/dist/src/agent/image/tool-model-config.js.map +1 -1
- package/dist/src/agent/image/understanding/pi-ai-provider.js +5 -2
- package/dist/src/agent/image/understanding/pi-ai-provider.js.map +1 -1
- package/dist/src/agent/image/understanding/provider-registry.d.ts +1 -0
- package/dist/src/agent/image/understanding/provider-registry.js +16 -2
- package/dist/src/agent/image/understanding/provider-registry.js.map +1 -1
- package/dist/src/agent/mcp/resolve-embedded-mcp-tools.js +1 -1
- package/dist/src/agent/mcp/resolve-embedded-mcp-tools.js.map +1 -1
- package/dist/src/agent/media-generation/runtime-shared.d.ts +5 -2
- package/dist/src/agent/media-generation/runtime-shared.js +1 -1
- package/dist/src/agent/media-generation/runtime-shared.js.map +1 -1
- package/dist/src/agent/memory/builtin-memory-store.d.ts +2 -0
- package/dist/src/agent/memory/builtin-memory-store.js +4 -0
- package/dist/src/agent/memory/builtin-memory-store.js.map +1 -1
- package/dist/src/agent/memory/builtin-provider.d.ts +31 -9
- package/dist/src/agent/memory/builtin-provider.js +261 -11
- package/dist/src/agent/memory/builtin-provider.js.map +1 -1
- package/dist/src/agent/memory/context-assembler.d.ts +10 -0
- package/dist/src/agent/memory/context-assembler.js +26 -0
- package/dist/src/agent/memory/context-assembler.js.map +1 -0
- package/dist/src/agent/memory/create-memory-manager.js +25 -7
- package/dist/src/agent/memory/create-memory-manager.js.map +1 -1
- package/dist/src/agent/memory/dreaming/config.d.ts +1 -6
- package/dist/src/agent/memory/dreaming/config.js +8 -8
- package/dist/src/agent/memory/dreaming/config.js.map +1 -1
- package/dist/src/agent/memory/dreaming/deep-promotion.d.ts +2 -0
- package/dist/src/agent/memory/dreaming/deep-promotion.js +24 -0
- package/dist/src/agent/memory/dreaming/deep-promotion.js.map +1 -1
- package/dist/src/agent/memory/index.d.ts +1 -0
- package/dist/src/agent/memory/index.js +4 -3
- package/dist/src/agent/memory/inject-prefetch.js +6 -2
- package/dist/src/agent/memory/inject-prefetch.js.map +1 -1
- package/dist/src/agent/memory/manager.d.ts +37 -1
- package/dist/src/agent/memory/manager.js +332 -40
- package/dist/src/agent/memory/manager.js.map +1 -1
- package/dist/src/agent/memory/memory-config.js +12 -15
- package/dist/src/agent/memory/memory-config.js.map +1 -1
- package/dist/src/agent/memory/plugin-discovery.d.ts +19 -5
- package/dist/src/agent/memory/plugin-discovery.js +97 -31
- package/dist/src/agent/memory/plugin-discovery.js.map +1 -1
- package/dist/src/agent/memory/provider.d.ts +20 -15
- package/dist/src/agent/memory/stub-memory-provider.d.ts +17 -2
- package/dist/src/agent/memory/stub-memory-provider.js +20 -3
- package/dist/src/agent/memory/stub-memory-provider.js.map +1 -1
- package/dist/src/agent/memory/types.d.ts +136 -0
- package/dist/src/agent/models/manager.d.ts +1 -1
- package/dist/src/agent/models/manager.js +1 -1
- package/dist/src/agent/models/manager.js.map +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.d.ts +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +2 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js.map +1 -1
- package/dist/src/agent/orchestration/run-agent-turn-with-fallbacks.d.ts +2 -2
- package/dist/src/agent/orchestration/run-agent-turn-with-fallbacks.js +1 -1
- package/dist/src/agent/orchestration/run-agent-turn-with-fallbacks.js.map +1 -1
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.d.ts +2 -6
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.js +2 -8
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.js.map +1 -1
- package/dist/src/agent/reply/post-compaction-context.js +11 -6
- package/dist/src/agent/reply/post-compaction-context.js.map +1 -1
- package/dist/src/agent/reply/startup-context.js +8 -9
- package/dist/src/agent/reply/startup-context.js.map +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +1 -4
- package/dist/src/agent/service/process-direct-streaming.js.map +1 -1
- package/dist/src/agent/service/session-context-report.js +1 -1
- package/dist/src/agent/service/session-context-report.js.map +1 -1
- package/dist/src/agent/service.js +21 -25
- package/dist/src/agent/service.js.map +1 -1
- package/dist/src/agent/service.types.d.ts +1 -2
- package/dist/src/agent/session/session-hydrator.js +1 -2
- package/dist/src/agent/session/session-hydrator.js.map +1 -1
- package/dist/src/agent/session/session-inspector.d.ts +1 -1
- package/dist/src/agent/session/session-inspector.js +9 -14
- package/dist/src/agent/session/session-inspector.js.map +1 -1
- package/dist/src/agent/skills/hub-pull.js +1 -1
- package/dist/src/agent/starter-agents.d.ts +1 -3
- package/dist/src/agent/starter-agents.js +13 -21
- package/dist/src/agent/starter-agents.js.map +1 -1
- package/dist/src/agent/tools/browser/tool/browser-use-tool.js +1 -2
- package/dist/src/agent/tools/browser/tool/browser-use-tool.js.map +1 -1
- package/dist/src/agent/tools/composio-tool.d.ts +8 -0
- package/dist/src/agent/tools/composio-tool.js +46 -0
- package/dist/src/agent/tools/composio-tool.js.map +1 -0
- package/dist/src/agent/tools/curated-memory-tool.d.ts +2 -5
- package/dist/src/agent/tools/curated-memory-tool.js +20 -16
- package/dist/src/agent/tools/curated-memory-tool.js.map +1 -1
- package/dist/src/agent/tools/factory.d.ts +0 -4
- package/dist/src/agent/tools/factory.js +32 -66
- package/dist/src/agent/tools/factory.js.map +1 -1
- package/dist/src/agent/tools/image-generate-tool.d.ts +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +19 -14
- package/dist/src/agent/tools/image-generate-tool.js.map +1 -1
- package/dist/src/agent/tools/image-tool.js +1 -3
- package/dist/src/agent/tools/image-tool.js.map +1 -1
- package/dist/src/agent/tools/index.d.ts +1 -0
- package/dist/src/agent/tools/index.js +2 -1
- package/dist/src/agent/tools/memory-tool.d.ts +2 -2
- package/dist/src/agent/tools/memory-tool.js +39 -14
- package/dist/src/agent/tools/memory-tool.js.map +1 -1
- package/dist/src/agent/tools/session-search-tool.js +1 -3
- package/dist/src/agent/tools/session-search-tool.js.map +1 -1
- package/dist/src/agent/tools/web-extract.js +6 -5
- package/dist/src/agent/tools/web-extract.js.map +1 -1
- package/dist/src/agent/workflow/builtins/audit-repo.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/audit-repo.js +15 -2
- package/dist/src/agent/workflow/builtins/audit-repo.js.map +1 -1
- package/dist/src/agent/workflow/builtins/client-proposal.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/client-proposal.js +10 -1
- package/dist/src/agent/workflow/builtins/client-proposal.js.map +1 -1
- package/dist/src/agent/workflow/builtins/competitor-scan.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/competitor-scan.js +16 -2
- package/dist/src/agent/workflow/builtins/competitor-scan.js.map +1 -1
- package/dist/src/agent/workflow/builtins/content-draft.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/content-draft.js +15 -2
- package/dist/src/agent/workflow/builtins/content-draft.js.map +1 -1
- package/dist/src/agent/workflow/builtins/content-repurpose.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/content-repurpose.js +10 -1
- package/dist/src/agent/workflow/builtins/content-repurpose.js.map +1 -1
- package/dist/src/agent/workflow/builtins/debug-incident.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/debug-incident.js +9 -1
- package/dist/src/agent/workflow/builtins/debug-incident.js.map +1 -1
- package/dist/src/agent/workflow/builtins/decision-compare.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/decision-compare.js +16 -2
- package/dist/src/agent/workflow/builtins/decision-compare.js.map +1 -1
- package/dist/src/agent/workflow/builtins/implementation-plan.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/implementation-plan.js +11 -1
- package/dist/src/agent/workflow/builtins/implementation-plan.js.map +1 -1
- package/dist/src/agent/workflow/builtins/inbox-triage.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/inbox-triage.js +11 -1
- package/dist/src/agent/workflow/builtins/inbox-triage.js.map +1 -1
- package/dist/src/agent/workflow/builtins/meeting-prep.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/meeting-prep.js +9 -1
- package/dist/src/agent/workflow/builtins/meeting-prep.js.map +1 -1
- package/dist/src/agent/workflow/builtins/multi-perspective-review.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/multi-perspective-review.js +9 -1
- package/dist/src/agent/workflow/builtins/multi-perspective-review.js.map +1 -1
- package/dist/src/agent/workflow/builtins/offer-design.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/offer-design.js +10 -1
- package/dist/src/agent/workflow/builtins/offer-design.js.map +1 -1
- package/dist/src/agent/workflow/builtins/pr-review.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/pr-review.js +9 -1
- package/dist/src/agent/workflow/builtins/pr-review.js.map +1 -1
- package/dist/src/agent/workflow/builtins/release-check.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/release-check.js +10 -1
- package/dist/src/agent/workflow/builtins/release-check.js.map +1 -1
- package/dist/src/agent/workflow/builtins/research.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/research.js +16 -2
- package/dist/src/agent/workflow/builtins/research.js.map +1 -1
- package/dist/src/agent/workflow/builtins/weekly-review.d.ts +1 -1
- package/dist/src/agent/workflow/builtins/weekly-review.js +9 -1
- package/dist/src/agent/workflow/builtins/weekly-review.js.map +1 -1
- package/dist/src/agent/workflow/subagent-runner.js +1 -3
- package/dist/src/agent/workflow/subagent-runner.js.map +1 -1
- package/dist/src/agent-manifest/index.d.ts +4 -0
- package/dist/src/agent-manifest/index.js +10 -0
- package/dist/src/agent-manifest/index.js.map +1 -0
- package/dist/src/agent-manifest/prompt.d.ts +2 -0
- package/dist/src/agent-manifest/prompt.js +57 -0
- package/dist/src/agent-manifest/prompt.js.map +1 -0
- package/dist/src/agent-manifest/resolver.d.ts +11 -0
- package/dist/src/agent-manifest/resolver.js +93 -0
- package/dist/src/agent-manifest/resolver.js.map +1 -0
- package/dist/src/agent-manifest/schema.d.ts +778 -0
- package/dist/src/agent-manifest/schema.js +267 -0
- package/dist/src/agent-manifest/schema.js.map +1 -0
- package/dist/src/agent-manifest/validator.d.ts +24 -0
- package/dist/src/agent-manifest/validator.js +87 -0
- package/dist/src/agent-manifest/validator.js.map +1 -0
- package/dist/src/agent-runtime/boundary-guard.d.ts +12 -0
- package/dist/src/agent-runtime/boundary-guard.js +23 -0
- package/dist/src/agent-runtime/boundary-guard.js.map +1 -0
- package/dist/src/agent-runtime/index.d.ts +7 -0
- package/dist/src/agent-runtime/index.js +8 -0
- package/dist/src/agent-runtime/memory-runtime.d.ts +21 -0
- package/dist/src/agent-runtime/memory-runtime.js +50 -0
- package/dist/src/agent-runtime/memory-runtime.js.map +1 -0
- package/dist/src/agent-runtime/model-router.d.ts +11 -0
- package/dist/src/agent-runtime/model-router.js +16 -0
- package/dist/src/agent-runtime/model-router.js.map +1 -0
- package/dist/src/agent-runtime/run-trace.d.ts +27 -0
- package/dist/src/agent-runtime/run-trace.js +53 -0
- package/dist/src/agent-runtime/run-trace.js.map +1 -0
- package/dist/src/agent-runtime/runtime-profile.d.ts +24 -0
- package/dist/src/agent-runtime/runtime-profile.js +44 -0
- package/dist/src/agent-runtime/runtime-profile.js.map +1 -0
- package/dist/src/agent-runtime/tool-registry.d.ts +28 -0
- package/dist/src/agent-runtime/tool-registry.js +52 -0
- package/dist/src/agent-runtime/tool-registry.js.map +1 -0
- package/dist/src/agent-runtime/workflow-runtime.d.ts +31 -0
- package/dist/src/agent-runtime/workflow-runtime.js +34 -0
- package/dist/src/agent-runtime/workflow-runtime.js.map +1 -0
- package/dist/src/browser/actions/extension-registry-bridge.js +1 -1
- package/dist/src/browser/actions/extension-registry-bridge.js.map +1 -1
- package/dist/src/browser/actions/registry.js +5 -8
- package/dist/src/browser/actions/registry.js.map +1 -1
- package/dist/src/browser/backend-from-config.d.ts +1 -1
- package/dist/src/browser/backend-from-config.js +50 -71
- package/dist/src/browser/backend-from-config.js.map +1 -1
- package/dist/src/browser/browser-command-timeout.d.ts +0 -1
- package/dist/src/browser/browser-command-timeout.js +3 -7
- package/dist/src/browser/browser-command-timeout.js.map +1 -1
- package/dist/src/browser/providers/browser-ext-install.d.ts +2 -12
- package/dist/src/browser/providers/browser-ext-install.js +3 -8
- package/dist/src/browser/providers/browser-ext-install.js.map +1 -1
- package/dist/src/browser/readiness.js +16 -16
- package/dist/src/browser/readiness.js.map +1 -1
- package/dist/src/browser/schemas.js +1 -1
- package/dist/src/browser/schemas.js.map +1 -1
- package/dist/src/chat-commands/builtins/config.js +4 -4
- package/dist/src/chat-commands/builtins/config.js.map +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +16 -42
- package/dist/src/chat-commands/builtins/thinking.js.map +1 -1
- package/dist/src/chat-commands/config-paths.js +1 -1
- package/dist/src/chat-commands/config-paths.js.map +1 -1
- package/dist/src/chat-commands/context.js +3 -4
- package/dist/src/chat-commands/context.js.map +1 -1
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/command-manifest.js.map +1 -1
- package/dist/src/cli/commands/agent.js +3 -1
- package/dist/src/cli/commands/agent.js.map +1 -1
- package/dist/src/cli/commands/agents.js +3 -6
- package/dist/src/cli/commands/agents.js.map +1 -1
- package/dist/src/cli/commands/browser-cli-helpers.js +9 -11
- package/dist/src/cli/commands/browser-cli-helpers.js.map +1 -1
- package/dist/src/cli/commands/config.js +5 -5
- package/dist/src/cli/commands/config.js.map +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -17
- package/dist/src/cli/commands/doctor/checks/provider-auth.js.map +1 -1
- package/dist/src/cli/commands/goal.js +1 -1
- package/dist/src/cli/commands/image.js +13 -372
- package/dist/src/cli/commands/image.js.map +1 -1
- package/dist/src/cli/commands/models.js +26 -10
- package/dist/src/cli/commands/models.js.map +1 -1
- package/dist/src/cli/commands/onboard/channels/registry.js.map +1 -1
- package/dist/src/cli/commands/onboard/model.js +20 -22
- package/dist/src/cli/commands/onboard/model.js.map +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/onboard.js.map +1 -1
- package/dist/src/cli/utils/init-workspace-core.d.ts +1 -4
- package/dist/src/cli/utils/init-workspace-core.js +7 -6
- package/dist/src/cli/utils/init-workspace-core.js.map +1 -1
- package/dist/src/commands/agents.config.d.ts +0 -1
- package/dist/src/commands/agents.config.js +66 -12
- package/dist/src/commands/agents.config.js.map +1 -1
- package/dist/src/config/agent-profile.d.ts +5 -17
- package/dist/src/config/agent-profile.js +31 -64
- package/dist/src/config/agent-profile.js.map +1 -1
- package/dist/src/config/agent-typed-models.d.ts +1 -1
- package/dist/src/config/agent-typed-models.js +0 -1
- package/dist/src/config/agent-typed-models.js.map +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/integration.d.ts +1 -1
- package/dist/src/config/reload.js +1 -1
- package/dist/src/config/reload.js.map +1 -1
- package/dist/src/config/rules.js +6 -56
- package/dist/src/config/rules.js.map +1 -1
- package/dist/src/config/schema.d.ts +925 -781
- package/dist/src/config/schema.js +157 -424
- package/dist/src/config/schema.js.map +1 -1
- package/dist/src/connectors/composio-triggers.d.ts +10 -0
- package/dist/src/connectors/composio-triggers.js +32 -0
- package/dist/src/connectors/composio-triggers.js.map +1 -0
- package/dist/src/connectors/composio.d.ts +54 -0
- package/dist/src/connectors/composio.js +334 -0
- package/dist/src/connectors/composio.js.map +1 -0
- package/dist/src/connectors/health.js +16 -1
- package/dist/src/connectors/health.js.map +1 -1
- package/dist/src/connectors/install.d.ts +2 -1
- package/dist/src/connectors/install.js +50 -13
- package/dist/src/connectors/install.js.map +1 -1
- package/dist/src/connectors/instances.js +57 -6
- package/dist/src/connectors/instances.js.map +1 -1
- package/dist/src/connectors/lifecycle.d.ts +3 -0
- package/dist/src/connectors/lifecycle.js +23 -0
- package/dist/src/connectors/lifecycle.js.map +1 -0
- package/dist/src/connectors/materialize.js +2 -1
- package/dist/src/connectors/materialize.js.map +1 -1
- package/dist/src/connectors/providers.d.ts +1 -0
- package/dist/src/connectors/providers.js +10 -2
- package/dist/src/connectors/providers.js.map +1 -1
- package/dist/src/connectors/registries/modelscope.d.ts +2 -0
- package/dist/src/connectors/registries/modelscope.js +205 -0
- package/dist/src/connectors/registries/modelscope.js.map +1 -0
- package/dist/src/connectors/registries/official-mcp.d.ts +2 -0
- package/dist/src/connectors/registries/official-mcp.js +142 -0
- package/dist/src/connectors/registries/official-mcp.js.map +1 -0
- package/dist/src/connectors/registries/search.d.ts +12 -0
- package/dist/src/connectors/registries/search.js +89 -0
- package/dist/src/connectors/registries/search.js.map +1 -0
- package/dist/src/connectors/registries/smithery.d.ts +2 -0
- package/dist/src/connectors/registries/smithery.js +98 -0
- package/dist/src/connectors/registries/smithery.js.map +1 -0
- package/dist/src/connectors/registries/types.d.ts +20 -0
- package/dist/src/connectors/registries/types.js +1 -0
- package/dist/src/connectors/secret-store.js +4 -2
- package/dist/src/connectors/secret-store.js.map +1 -1
- package/dist/src/connectors/setup-secrets.d.ts +15 -0
- package/dist/src/connectors/setup-secrets.js +64 -0
- package/dist/src/connectors/setup-secrets.js.map +1 -0
- package/dist/src/connectors/supervisor.d.ts +15 -0
- package/dist/src/connectors/supervisor.js +73 -0
- package/dist/src/connectors/supervisor.js.map +1 -0
- package/dist/src/connectors/types.d.ts +27 -3
- package/dist/src/connectors/usage.js +6 -1
- package/dist/src/connectors/usage.js.map +1 -1
- package/dist/src/cron/index.js +1 -1
- package/dist/src/cron/service.js +1 -1
- package/dist/src/cron/validation.d.ts +3 -3
- package/dist/src/extensions/activation-context.js +13 -7
- package/dist/src/extensions/activation-context.js.map +1 -1
- package/dist/src/gateway/agents-admin.d.ts +17 -18
- package/dist/src/gateway/agents-admin.js +123 -88
- package/dist/src/gateway/agents-admin.js.map +1 -1
- package/dist/src/gateway/capability-presets-admin.d.ts +56 -0
- package/dist/src/gateway/capability-presets-admin.js +214 -0
- package/dist/src/gateway/capability-presets-admin.js.map +1 -0
- package/dist/src/gateway/hono/lib/agent-model.d.ts +1 -1
- package/dist/src/gateway/hono/lib/agent-model.js +1 -1
- package/dist/src/gateway/hono/lib/agent-model.js.map +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +234 -127
- package/dist/src/gateway/hono/lib/config-payload.js +13 -37
- package/dist/src/gateway/hono/lib/config-payload.js.map +1 -1
- package/dist/src/gateway/hono/routes/agents.js +56 -33
- package/dist/src/gateway/hono/routes/agents.js.map +1 -1
- package/dist/src/gateway/hono/routes/browser.js +8 -15
- package/dist/src/gateway/hono/routes/browser.js.map +1 -1
- package/dist/src/gateway/hono/routes/capability-presets.d.ts +3 -0
- package/dist/src/gateway/hono/routes/capability-presets.js +145 -0
- package/dist/src/gateway/hono/routes/capability-presets.js.map +1 -0
- package/dist/src/gateway/hono/routes/config-patch/agents.d.ts +1 -17
- package/dist/src/gateway/hono/routes/config-patch/agents.js +2 -443
- package/dist/src/gateway/hono/routes/config-patch/agents.js.map +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +7 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js.map +1 -1
- package/dist/src/gateway/hono/routes/config.js +1 -1
- package/dist/src/gateway/hono/routes/config.js.map +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +230 -3
- package/dist/src/gateway/hono/routes/connectors.js.map +1 -1
- package/dist/src/gateway/hono/routes/dreaming.js +7 -0
- package/dist/src/gateway/hono/routes/dreaming.js.map +1 -1
- package/dist/src/gateway/hono/routes/goals.js +52 -5
- package/dist/src/gateway/hono/routes/goals.js.map +1 -1
- package/dist/src/gateway/hono/routes/index.js +2 -0
- package/dist/src/gateway/hono/routes/index.js.map +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/lazy-bundles.js.map +1 -1
- package/dist/src/gateway/hono/routes/memory.d.ts +3 -0
- package/dist/src/gateway/hono/routes/memory.js +290 -0
- package/dist/src/gateway/hono/routes/memory.js.map +1 -0
- package/dist/src/gateway/hono/routes/voice.js +14 -1
- package/dist/src/gateway/hono/routes/voice.js.map +1 -1
- package/dist/src/gateway/hono/sse.js.map +1 -1
- package/dist/src/gateway/service/agent-runner.d.ts +5 -12
- package/dist/src/gateway/service/agent-runner.js +8 -8
- package/dist/src/gateway/service/agent-runner.js.map +1 -1
- package/dist/src/gateway/service/run-gateway-agent.d.ts +2 -10
- package/dist/src/gateway/service/run-gateway-agent.js.map +1 -1
- package/dist/src/gateway/service.d.ts +2 -2
- package/dist/src/gateway/service.js +20 -16
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/gateway/user-turn-input.d.ts +18 -0
- package/dist/src/gateway/user-turn-input.js +16 -0
- package/dist/src/gateway/user-turn-input.js.map +1 -0
- package/dist/src/goals/goal-queue-store.d.ts +2 -1
- package/dist/src/goals/goal-queue-store.js +2 -2
- package/dist/src/goals/goal-queue-store.js.map +1 -1
- package/dist/src/goals/goal-queue-types.d.ts +4 -3
- package/dist/src/goals/goal-runner.js +25 -3
- package/dist/src/goals/goal-runner.js.map +1 -1
- package/dist/src/goals/goal-service.d.ts +6 -1
- package/dist/src/goals/goal-service.js +9 -2
- package/dist/src/goals/goal-service.js.map +1 -1
- package/dist/src/goals/goal-store.d.ts +7 -1
- package/dist/src/goals/goal-store.js +42 -0
- package/dist/src/goals/goal-store.js.map +1 -1
- package/dist/src/goals/types.d.ts +10 -0
- package/dist/src/notes/agent-context.js +2 -2
- package/dist/src/providers/index.d.ts +2 -2
- package/dist/src/providers/index.js +10 -14
- package/dist/src/providers/index.js.map +1 -1
- package/dist/src/session/index.js +1 -1
- package/dist/src/session/session-workspace.js +7 -2
- package/dist/src/session/session-workspace.js.map +1 -1
- package/dist/src/session/store.js +5 -0
- package/dist/src/session/store.js.map +1 -1
- package/dist/src/session/thinking-resolve.d.ts +1 -1
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/session/thinking-resolve.js.map +1 -1
- package/dist/src/storage/sqlite/connection.js +1 -1
- package/dist/src/storage/sqlite/index.d.ts +1 -0
- package/dist/src/storage/sqlite/index.js +2 -1
- package/dist/src/storage/sqlite/memory-records-repository.d.ts +101 -0
- package/dist/src/storage/sqlite/memory-records-repository.js +309 -0
- package/dist/src/storage/sqlite/memory-records-repository.js.map +1 -0
- package/dist/src/storage/sqlite/migrations/011_goal_context_messages.sql +8 -0
- package/dist/src/storage/sqlite/migrations/012_memory_records.sql +63 -0
- package/dist/src/storage/sqlite/migrations/013_memory_trace_events.sql +21 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +2 -2
- package/dist/src/storage/sqlite/migrations/runner.js +4 -4
- package/dist/src/storage/sqlite/migrations/runner.js.map +1 -1
- package/dist/src/storage/sqlite/migrations/runner.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +3 -3
- package/dist/src/storage/sqlite/schema.sql +95 -0
- package/dist/src/tui/backends/embedded-backend.js +6 -4
- package/dist/src/tui/backends/embedded-backend.js.map +1 -1
- package/dist/src/tui/extension-host/load-extensions.js.map +1 -1
- package/dist/src/voice/tts/openai-compatible-speech.d.ts +1 -1
- package/dist/src/voice/tts/openai-compatible-speech.js.map +1 -1
- package/dist/src/voice/tts/providers/edge-speech.js +14 -2
- package/dist/src/voice/tts/providers/edge-speech.js.map +1 -1
- package/dist/src/voice/tts/speak-core.js +3 -3
- package/dist/src/voice/tts/speak-core.js.map +1 -1
- package/dist/src/voice/tts/speech-provider-types.d.ts +2 -2
- package/dist/src/voice/tts/types.js +1 -1
- package/dist/src/voice/tts/types.js.map +1 -1
- package/dist/src/workflows/domain/result.d.ts +0 -1
- package/dist/src/workflows/engine/workflow-engine.js +7 -23
- package/dist/src/workflows/engine/workflow-engine.js.map +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +3 -4
- package/dist/src/workflows/service/workflow-run-service.js.map +1 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +4 -3
- package/dist/gateway/static/root/assets/agent-browser-settings-page-DPXc4hz8.js +0 -6
- package/dist/gateway/static/root/assets/agent-defaults-tabbed-page-CTJ0YnRQ.js +0 -1
- package/dist/gateway/static/root/assets/agents-zJXQfJ_W.js +0 -71
- package/dist/gateway/static/root/assets/app-management-settings-panel-DzGbdr04.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-CPjfyzSD.js +0 -1
- package/dist/gateway/static/root/assets/config-api-NOoPiIYz.js +0 -3
- package/dist/gateway/static/root/assets/connectors-settings-CAXYMOdp.js +0 -2
- package/dist/gateway/static/root/assets/cron-api-C9BOqAXd.js +0 -1
- package/dist/gateway/static/root/assets/cron-page-DuUbBeKI.js +0 -3
- package/dist/gateway/static/root/assets/dreaming-settings-DQ4DtiK1.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-api-C-xjn__h.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-BMPwIjKI.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-BJsyjJnF.js +0 -1
- package/dist/gateway/static/root/assets/goals-page-BerDgIhw.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-ByTjeAto.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-TbHgcjTn.js +0 -1
- package/dist/gateway/static/root/assets/index-AkTrf6Pb.js +0 -122
- package/dist/gateway/static/root/assets/index-fh5sXTj9.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-DGXuPf5B.js +0 -2
- package/dist/gateway/static/root/assets/messages-upgxw6Ub.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-panel-Bot16nn7.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-page-Brlyou8M.js +0 -2
- package/dist/gateway/static/root/assets/notes-page-DvZ4pwc-.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BZEDmxbZ.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-DdGGlsfn.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DlkEkPf9.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-DFPTrsPF.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-CYCCfgh4.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Bff1pGd0.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CJGKpBur.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-C6ocduTD.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-5jrIEr5b.js +0 -1
- package/dist/gateway/static/root/assets/use-agent-defaults-form-BuiXLIs5.js +0 -1
- package/dist/gateway/static/root/assets/use-settings-tab-guard-CW5JORnl.js +0 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-DDoQyghO.js +0 -1
- package/dist/gateway/static/root/assets/workflow-page.utils-CKjeEGqx.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-B604ehHG.js +0 -18
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { AgentManifestSchema, CapabilityPresetSchema, init_schema as init_schema$1 } from "../agent-manifest/schema.js";
|
|
2
3
|
import { checkCacheDir, init_cache_dir_policy } from "../browser/cache-dir-policy.js";
|
|
3
4
|
import { init_public_url, validatePublicUrl } from "./public-url.js";
|
|
4
5
|
import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, init_config_schema } from "../../extensions/telegram/src/config-schema.js";
|
|
5
6
|
import { WeixinAccountConfigSchema, WeixinConfigSchema, init_config_schema as init_config_schema$1 } from "../../extensions/weixin/src/config-schema.js";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
//#region src/config/schema.ts
|
|
8
|
-
/**
|
|
9
|
-
* Primary chat model ref from `agents.defaults.models.chat`. Returns undefined when unset.
|
|
10
|
-
*/
|
|
11
9
|
function getAgentDefaultModelRef(config) {
|
|
12
|
-
|
|
10
|
+
const legacyModel = config.agents?.defaults?.model;
|
|
11
|
+
if (typeof legacyModel === "string") {
|
|
12
|
+
const trimmed = legacyModel.trim();
|
|
13
|
+
if (trimmed) return trimmed;
|
|
14
|
+
} else if (legacyModel && typeof legacyModel === "object") {
|
|
15
|
+
const primary = legacyModel.primary?.trim();
|
|
16
|
+
if (primary) return primary;
|
|
17
|
+
}
|
|
18
|
+
const list = Array.isArray(config.agents?.list) ? config.agents.list : [];
|
|
19
|
+
const defaultId = config.agents?.default?.trim() || list.find((entry) => entry.default === true)?.id?.trim() || list[0]?.id;
|
|
20
|
+
const agent = list.find((entry) => entry.enabled !== false && entry.id === defaultId) ?? list[0];
|
|
21
|
+
if (!agent) return void 0;
|
|
22
|
+
const roles = agent.models?.roles ?? {};
|
|
23
|
+
const defaultRole = agent.models?.defaultRole ?? Object.keys(roles)[0];
|
|
24
|
+
return (defaultRole ? roles[defaultRole] : void 0)?.model.trim() || void 0;
|
|
13
25
|
}
|
|
14
26
|
/** `provider/model` or null when invalid. */
|
|
15
27
|
function parseModelRef(ref) {
|
|
@@ -21,8 +33,9 @@ function parseModelRef(ref) {
|
|
|
21
33
|
model: trimmed.slice(idx + 1).trim()
|
|
22
34
|
};
|
|
23
35
|
}
|
|
24
|
-
var AgentModelRefSchema, AgentTypedModelRoleSchema, AgentTypedModelRolesSchema, AgentModelsSchema, AgentImageGenerationModelSchema,
|
|
36
|
+
var AgentModelRefSchema, AgentTypedModelRoleSchema, AgentTypedModelRolesSchema, AgentModelsSchema, AgentImageGenerationModelSchema, AgentsConfigSchema, BrowserCloudConfigSchema, BrowserExtensionConfigSchema, BrowserCloakConfigSchema, BrowserConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, SessionDmScopeSchema, SessionStorageConfigSchema, SessionResetModeSchema, SessionResetConfigSchema, SessionResetByTypeSchema, SessionScopeSchema, SessionConfigSchema, ChannelsConfigSchema, SearchProviderEntrySchema, WebSearchConfigSchema, WebsiteBlocklistSchema, WebToolsConfigSchema, ToolsConfigSchema, GatewayAuthRateLimitSchema, GatewaySecuritySchema, GatewayTrustedProxySchema, GatewayAuthSchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayRemoteSchema, GatewayTlsSchema, GatewayModeSchema, HeartbeatConfigSchema, GatewayChannelConnectDeferModeSchema, TunnelConsentSchema, TunnelConfigSchema, WorkspaceImportConfigSchema, WorkspaceConfigSchema, GatewayBindModeSchema, GatewayConfigSchema, CronConfigSchema, ModelsDevConfigSchema, SttProviderConfigCatchallSchema, STTProviderConfigSchema, STTFallbackConfigSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, STTConfigSchema, TtsProviderConfigCatchallSchema, TTSProviderConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSEdgeConfigSchema, TTSSummarizationConfigSchema, TTSConfigSchema, MessagesConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProviderAuthConfigSchema, ProvidersConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, UpdateAutoConfigSchema, GoalNotificationEventSchema, GoalNotificationTargetSchema, GoalNotificationsConfigSchema, GoalsConfigSchema, UpdateConfigSchema, CommandsConfigSchema, McpHttpUrlSchema, ConnectorSecretReferenceSchema, McpConfigScalarSchema, McpServerSchema, McpConfigSchema, ConnectorsConfigSchema, ConfigSchema;
|
|
25
37
|
var init_schema = __esmMin((() => {
|
|
38
|
+
init_schema$1();
|
|
26
39
|
init_cache_dir_policy();
|
|
27
40
|
init_public_url();
|
|
28
41
|
init_config_schema();
|
|
@@ -45,7 +58,7 @@ var init_schema = __esmMin((() => {
|
|
|
45
58
|
});
|
|
46
59
|
AgentTypedModelRolesSchema = z.record(z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/), AgentTypedModelRoleSchema).optional();
|
|
47
60
|
AgentModelsSchema = z.object({
|
|
48
|
-
|
|
61
|
+
defaultRole: z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/).optional(),
|
|
49
62
|
roles: AgentTypedModelRolesSchema
|
|
50
63
|
}).strict().optional();
|
|
51
64
|
AgentImageGenerationModelSchema = z.object({
|
|
@@ -59,391 +72,107 @@ var init_schema = __esmMin((() => {
|
|
|
59
72
|
*/
|
|
60
73
|
autoProviderFallback: z.boolean().optional()
|
|
61
74
|
}).strict();
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"once",
|
|
103
|
-
"always"
|
|
104
|
-
]).optional(),
|
|
105
|
-
/**
|
|
106
|
-
* Controls when profile bootstrap context is injected into the system prompt:
|
|
107
|
-
* - `always`: inject on every /new and /reset (default, backward-compatible)
|
|
108
|
-
* - `continuation-skip`: inject on the first turn, skip on continuation turns
|
|
109
|
-
* - `never`: never inject bootstrap content
|
|
110
|
-
*/
|
|
111
|
-
contextInjection: z.enum([
|
|
112
|
-
"always",
|
|
113
|
-
"continuation-skip",
|
|
114
|
-
"never"
|
|
115
|
-
]).optional(),
|
|
116
|
-
startupContext: z.object({
|
|
117
|
-
enabled: z.boolean().optional(),
|
|
118
|
-
applyOn: z.array(z.enum(["new", "reset"])).optional(),
|
|
119
|
-
dailyMemoryDays: z.number().int().min(1).optional(),
|
|
120
|
-
maxFileBytes: z.number().int().positive().optional(),
|
|
121
|
-
maxFileChars: z.number().int().positive().optional(),
|
|
122
|
-
maxTotalChars: z.number().int().positive().optional()
|
|
123
|
-
}).optional(),
|
|
124
|
-
contextLimits: z.object({ postCompactionMaxChars: z.number().int().positive().optional() }).optional(),
|
|
125
|
-
compaction: z.object({
|
|
126
|
-
enabled: z.boolean().default(true),
|
|
127
|
-
mode: z.enum(["default", "safeguard"]).default("default"),
|
|
128
|
-
reserveTokens: z.number().default(8e3),
|
|
129
|
-
triggerThreshold: z.number().min(.5).max(.95).default(.8),
|
|
130
|
-
minMessagesBeforeCompact: z.number().default(10),
|
|
131
|
-
keepRecentMessages: z.number().default(5),
|
|
132
|
-
evictionWindow: z.number().min(.1).max(.5).default(.2),
|
|
133
|
-
retentionWindow: z.number().min(3).max(20).default(6),
|
|
134
|
-
postCompactionSections: z.array(z.string()).optional()
|
|
135
|
-
}).optional(),
|
|
136
|
-
pruning: z.object({
|
|
137
|
-
enabled: z.boolean().default(true),
|
|
138
|
-
maxToolResultChars: z.number().default(1e4),
|
|
139
|
-
headKeepRatio: z.number().default(.3),
|
|
140
|
-
tailKeepRatio: z.number().default(.3)
|
|
141
|
-
}).optional(),
|
|
142
|
-
memoryFlush: z.object({
|
|
143
|
-
enabled: z.boolean().default(true),
|
|
144
|
-
/** Trigger flush when usagePercent exceeds this threshold (relative to contextWindow). */
|
|
145
|
-
threshold: z.number().min(.5).max(1).default(.88),
|
|
146
|
-
/** Soft threshold: extra token buffer subtracted from contextWindow when computing threshold. */
|
|
147
|
-
softThresholdTokens: z.number().int().min(0).default(4e3),
|
|
148
|
-
/** Force flush after this many compactions in the current session. */
|
|
149
|
-
afterCompactions: z.number().int().min(1).default(2),
|
|
150
|
-
/** Max characters per flush entry written to daily notes. */
|
|
151
|
-
maxEntryChars: z.number().int().positive().default(2e3),
|
|
152
|
-
/** Include tool call history from structuredSummary in flush entry. */
|
|
153
|
-
includeToolHistory: z.boolean().default(true)
|
|
154
|
-
}).optional(),
|
|
155
|
-
/**
|
|
156
|
-
* Curated memory (`agents/<id>/memories/`) + pluggable external provider.
|
|
157
|
-
* Only one external provider at a time.
|
|
158
|
-
*/
|
|
159
|
-
memory: z.object({
|
|
160
|
-
/** Master switch: `curated_memory` tool, prefetch, and external provider. Default true. */
|
|
161
|
-
enabled: z.boolean().optional(),
|
|
162
|
-
/** When false, disable curated_memory tool and memory subsystem helpers. Default true. */
|
|
163
|
-
useEnhancedSystem: z.boolean().optional(),
|
|
164
|
-
/** Include USER.md in snapshot. Default true. */
|
|
165
|
-
userProfileEnabled: z.boolean().optional(),
|
|
166
|
-
memoryCharLimit: z.number().positive().optional(),
|
|
167
|
-
userCharLimit: z.number().positive().optional(),
|
|
168
|
-
provider: z.enum(["none", "stub"]).optional(),
|
|
169
|
-
/** How often prefetched external memory is injected into the user message. */
|
|
170
|
-
injectionFrequency: z.enum(["every-turn", "first-turn"]).optional(),
|
|
171
|
-
/** Inject prefetch on turns 1, 1+N, 1+2N, … (only when injectionFrequency is every-turn). Min 1. */
|
|
172
|
-
contextCadence: z.number().int().min(1).optional(),
|
|
173
|
-
/** Reserved for future external “dialectic” sync cadence (not wired yet). */
|
|
174
|
-
dialecticCadence: z.number().int().min(1).optional(),
|
|
175
|
-
/**
|
|
176
|
-
* Background memory consolidation ("dreaming"): three-phase sleep model that
|
|
177
|
-
* promotes short-term recall signals into long-term memory (`MEMORY.md`).
|
|
178
|
-
*
|
|
179
|
-
* Phases:
|
|
180
|
-
* - **light** — fast, frequent sweep (default every 6 h): dedup + signal collection.
|
|
181
|
-
* - **deep** — daily deep promotion (default 3 AM): score-gated write to MEMORY.md.
|
|
182
|
-
* - **rem** — weekly pattern discovery (default Sun 5 AM): cross-session insight mining.
|
|
183
|
-
*/
|
|
184
|
-
dreaming: z.object({
|
|
185
|
-
enabled: z.boolean().optional(),
|
|
186
|
-
/** Default deep-phase cron when `phases.deep.cron` is omitted. */
|
|
187
|
-
frequency: z.string().optional(),
|
|
188
|
-
timezone: z.string().optional(),
|
|
189
|
-
phases: z.object({
|
|
190
|
-
light: z.object({
|
|
191
|
-
enabled: z.boolean().optional(),
|
|
192
|
-
cron: z.string().optional(),
|
|
193
|
-
lookbackDays: z.number().int().min(1).optional(),
|
|
194
|
-
limit: z.number().int().min(0).optional(),
|
|
195
|
-
dedupeSimilarity: z.number().min(0).max(1).optional()
|
|
196
|
-
}).optional(),
|
|
197
|
-
deep: z.object({
|
|
198
|
-
enabled: z.boolean().optional(),
|
|
199
|
-
cron: z.string().optional(),
|
|
200
|
-
minScore: z.number().min(0).max(1).optional(),
|
|
201
|
-
minRecallCount: z.number().int().min(1).optional(),
|
|
202
|
-
minUniqueQueries: z.number().int().min(1).optional(),
|
|
203
|
-
limit: z.number().int().min(0).optional(),
|
|
204
|
-
recencyHalfLifeDays: z.number().min(1).optional(),
|
|
205
|
-
maxAgeDays: z.number().int().min(1).optional()
|
|
206
|
-
}).optional(),
|
|
207
|
-
rem: z.object({
|
|
208
|
-
enabled: z.boolean().optional(),
|
|
209
|
-
cron: z.string().optional(),
|
|
210
|
-
lookbackDays: z.number().int().min(1).optional(),
|
|
211
|
-
limit: z.number().int().min(0).optional(),
|
|
212
|
-
minPatternStrength: z.number().min(0).max(1).optional()
|
|
213
|
-
}).optional()
|
|
214
|
-
}).optional()
|
|
215
|
-
}).optional()
|
|
216
|
-
}).optional(),
|
|
217
|
-
/** Cross-session transcript search (`session_search` tool). */
|
|
218
|
-
sessionSearch: z.object({
|
|
219
|
-
/** Model ref for per-session summaries (e.g. openai/gpt-4o-mini). */
|
|
220
|
-
summaryModel: z.string().optional() }).optional(),
|
|
221
|
-
/**
|
|
222
|
-
* Post-turn background review (Hermes-style): optional quiet follow-up that may call
|
|
223
|
-
* `curated_memory` / `skill_manage` so durable facts and reusable workflows persist
|
|
224
|
-
* without bloating the main user-visible turn.
|
|
225
|
-
*/
|
|
226
|
-
backgroundReview: z.object({
|
|
227
|
-
/** When true, nudges may run after successful turns. Default false (opt-in). */
|
|
228
|
-
enabled: z.boolean().optional(),
|
|
229
|
-
/** User-turn cadence for memory review. 0 disables the memory channel. Default 10. */
|
|
230
|
-
memoryNudgeInterval: z.number().int().min(0).optional(),
|
|
231
|
-
/** LLM rounds without `skill_manage` before a skill review. 0 disables the skill channel. Default 10. */
|
|
232
|
-
skillNudgeInterval: z.number().int().min(0).optional(),
|
|
233
|
-
/** Max tool executions for the review agent. Default 8. */
|
|
234
|
-
maxToolRounds: z.number().int().min(1).max(32).optional(),
|
|
235
|
-
/** Max prior messages passed into the review context (tail). Default 80. */
|
|
236
|
-
maxHistoryMessages: z.number().int().min(10).max(200).optional(),
|
|
237
|
-
/** Wall-clock cap for the review run (ms). Default 120000. */
|
|
238
|
-
maxDurationMs: z.number().int().min(3e4).max(6e5).optional()
|
|
239
|
-
}).optional(),
|
|
240
|
-
/** LLM pass for `web_extract` (markdown-focused extraction). */
|
|
241
|
-
webExtract: z.object({
|
|
242
|
-
model: z.string().optional(),
|
|
243
|
-
maxLength: z.number().positive().optional()
|
|
244
|
-
}).optional(),
|
|
245
|
-
/**
|
|
246
|
-
* Browser capability via unified `browser_use` tool. Enabled by default (set `enabled: false` to disable).
|
|
247
|
-
* The local Playwright backend requires Chromium on the gateway host: `npx playwright install chromium`.
|
|
248
|
-
*/
|
|
249
|
-
browser: z.object({
|
|
250
|
-
enabled: z.boolean().optional(),
|
|
251
|
-
/** Run browser in headless mode (default: false — visible window). */
|
|
252
|
-
headless: z.boolean().optional(),
|
|
253
|
-
/** When true, skip private-IP blocking for browser navigation (cloud metadata endpoints are always blocked). */
|
|
254
|
-
allowPrivateUrls: z.boolean().optional(),
|
|
255
|
-
/** Browser command timeout in seconds (default: 30). */
|
|
256
|
-
commandTimeout: z.number().min(5).optional(),
|
|
257
|
-
/** Browser backend mode (default: 'extension'). Also: 'local' (Playwright), 'cdp', 'cloud', or 'cloakbrowser'. */
|
|
258
|
-
backend: z.enum([
|
|
259
|
-
"local",
|
|
260
|
-
"cdp",
|
|
261
|
-
"cloud",
|
|
262
|
-
"extension",
|
|
263
|
-
"cloakbrowser"
|
|
264
|
-
]).optional(),
|
|
265
|
-
/** Cloud browser backend: 'local' (default Playwright), 'browserbase', or 'browser-use'. */
|
|
266
|
-
cloudProvider: z.enum([
|
|
267
|
-
"local",
|
|
268
|
-
"browserbase",
|
|
269
|
-
"browser-use"
|
|
270
|
-
]).optional(),
|
|
271
|
-
/** Cloud browser credentials and optional session hints. */
|
|
272
|
-
cloud: z.object({
|
|
273
|
-
/** API key for the selected cloud provider. Environment variables are still supported as fallback. */
|
|
274
|
-
apiKey: z.string().optional(),
|
|
275
|
-
/** Browserbase project id. Falls back to BROWSERBASE_PROJECT_ID. */
|
|
276
|
-
projectId: z.string().optional(),
|
|
277
|
-
/** Optional cloud provider region. */
|
|
278
|
-
region: z.string().optional()
|
|
279
|
-
}).optional(),
|
|
280
|
-
/** Direct CDP WebSocket endpoint URL (bypasses cloud provider). */
|
|
281
|
-
cdpUrl: z.string().optional(),
|
|
282
|
-
/** Chrome Extension bridge settings (only used when backend = 'extension'). */
|
|
283
|
-
extension: z.object({
|
|
284
|
-
/** WebSocket server port. Default: 19820. */
|
|
285
|
-
port: z.number().min(1024).max(65535).optional(),
|
|
286
|
-
/** Host to bind. Default: 127.0.0.1. */
|
|
287
|
-
host: z.string().optional(),
|
|
288
|
-
/** Timeout waiting for extension connection (ms). Default: 30000. */
|
|
289
|
-
connectionTimeout: z.number().min(1e3).optional()
|
|
290
|
-
}).optional(),
|
|
291
|
-
/** JS dialog handling policy: 'must_respond' (agent must act), 'auto_dismiss', or 'auto_accept'. */
|
|
292
|
-
dialogPolicy: z.enum([
|
|
293
|
-
"must_respond",
|
|
294
|
-
"auto_dismiss",
|
|
295
|
-
"auto_accept"
|
|
296
|
-
]).optional(),
|
|
297
|
-
/** Dialog auto-dismiss/accept timeout in seconds (default: 300). */
|
|
298
|
-
dialogTimeoutSeconds: z.number().min(1).optional(),
|
|
299
|
-
/** Enable humanized input simulation (Bezier mouse, per-char typing, wheel scroll). Default: false. */
|
|
300
|
-
humanize: z.boolean().optional(),
|
|
301
|
-
/** Humanize behavior preset: 'default' (fast) or 'careful' (slower, more realistic). Default: 'careful'. */
|
|
302
|
-
humanPreset: z.enum(["default", "careful"]).optional(),
|
|
303
|
-
/** CloakBrowser settings (only used when backend = 'cloakbrowser'). */
|
|
304
|
-
cloakbrowser: z.object({
|
|
305
|
-
/** Keep browser process alive between tasks. Default: true. */
|
|
306
|
-
keepOpen: z.boolean().optional(),
|
|
307
|
-
/** Create a temporary profile directory, cleaned up on close. Default: false. */
|
|
308
|
-
temporaryProfile: z.boolean().optional(),
|
|
309
|
-
/** Directory for cached CloakBrowser binaries. Must live under the user's home directory. Default: ~/.xopc/bin/cloakbrowser. */
|
|
310
|
-
cacheDir: z.string().optional().superRefine((v, ctx) => {
|
|
311
|
-
const r = checkCacheDir(v);
|
|
312
|
-
if (r.ok === false) ctx.addIssue({
|
|
313
|
-
code: "custom",
|
|
314
|
-
message: r.message
|
|
315
|
-
});
|
|
316
|
-
}),
|
|
317
|
-
/** Override the CloakBrowser binary path (skip auto-download). */
|
|
318
|
-
binaryPath: z.string().optional(),
|
|
319
|
-
/** Timezone to emulate (e.g. "America/New_York"). */
|
|
320
|
-
timezone: z.string().optional(),
|
|
321
|
-
/** Locale to emulate (e.g. "en-US"). */
|
|
322
|
-
locale: z.string().optional(),
|
|
323
|
-
/** Public IP for WebRTC leak prevention. */
|
|
324
|
-
webrtcIp: z.string().optional(),
|
|
325
|
-
/** Platform to emulate in fingerprint (e.g. "windows", "macos"). */
|
|
326
|
-
fingerprintPlatform: z.string().optional(),
|
|
327
|
-
/** Extra Chromium launch args (override defaults with same --key= prefix). */
|
|
328
|
-
extraArgs: z.array(z.string()).optional()
|
|
329
|
-
}).optional()
|
|
330
|
-
}).optional(),
|
|
331
|
-
/** Sub-agent delegation (`delegate_task`). Opt-in. */
|
|
332
|
-
delegate: z.object({ enabled: z.boolean().optional() }).optional(),
|
|
333
|
-
/** Sandboxed `execute_code` (programmatic tool calls). Opt-in. */
|
|
334
|
-
executeCode: z.object({ enabled: z.boolean().optional() }).optional(),
|
|
335
|
-
/**
|
|
336
|
-
* Dynamic workflows (`workflow` tool). On by default — disable to remove the
|
|
337
|
-
* tool from the agent surface entirely. Subagents spawned by workflows still
|
|
338
|
-
* obey the global `delegate` allowlist; `maxSubagents` caps a single workflow
|
|
339
|
-
* run, `defaultTimeoutSec` caps wall-clock per run.
|
|
340
|
-
*/
|
|
341
|
-
workflow: z.object({
|
|
342
|
-
enabled: z.boolean().default(true),
|
|
343
|
-
maxConcurrency: z.number().int().min(1).max(64).default(16),
|
|
344
|
-
maxSubagents: z.number().int().min(1).max(1e4).default(1e3),
|
|
345
|
-
defaultTimeoutSec: z.number().int().min(60).max(14400).default(1800),
|
|
346
|
-
/** Subagent live progress in workflow snapshots: tool steps only, or full text stream. */
|
|
347
|
-
subagentStream: z.enum([
|
|
348
|
-
"off",
|
|
349
|
-
"steps",
|
|
350
|
-
"full"
|
|
351
|
-
]).default("steps")
|
|
352
|
-
}).optional(),
|
|
353
|
-
/** Optional full system prompt replacement (merged with per-agent entry; entry wins). */
|
|
354
|
-
systemPromptOverride: z.string().optional(),
|
|
355
|
-
/** Skill names visible to agents that inherit defaults. Omitted means all enabled skills; empty means none. */
|
|
356
|
-
skills: z.array(z.string()).optional(),
|
|
357
|
-
/** Disable built-in tools by name (e.g. `shell`, `web_search`). */
|
|
358
|
-
tools: z.object({ disable: z.array(z.string()).optional() }).optional(),
|
|
359
|
-
/** Opaque per-process params (reserved for extensions / future use). */
|
|
360
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
75
|
+
AgentsConfigSchema = z.object({
|
|
76
|
+
/** Default agent id when not specified (routing / session creation). */
|
|
77
|
+
default: z.string().optional(),
|
|
78
|
+
/** Legacy agent defaults kept for migration/tests and read defensively by runtime helpers. */
|
|
79
|
+
defaults: z.record(z.string(), z.unknown()).optional(),
|
|
80
|
+
capabilityPresets: z.record(z.string(), CapabilityPresetSchema).default({}),
|
|
81
|
+
list: z.array(AgentManifestSchema).default([])
|
|
82
|
+
}).strict().default({
|
|
83
|
+
default: "main",
|
|
84
|
+
defaults: {},
|
|
85
|
+
capabilityPresets: {},
|
|
86
|
+
list: [{
|
|
87
|
+
id: "main",
|
|
88
|
+
enabled: true,
|
|
89
|
+
identity: {
|
|
90
|
+
name: "Main",
|
|
91
|
+
role: "General assistant",
|
|
92
|
+
language: "en",
|
|
93
|
+
tone: "direct"
|
|
94
|
+
},
|
|
95
|
+
responsibilities: { primary: ["Help the user complete tasks"] },
|
|
96
|
+
workspace: { root: "~/.xopc/workspace/main" },
|
|
97
|
+
models: {
|
|
98
|
+
defaultRole: "deep",
|
|
99
|
+
roles: { deep: { model: "openai/gpt-4.1" } }
|
|
100
|
+
},
|
|
101
|
+
tools: { builtin: {} },
|
|
102
|
+
skills: { mode: "all" },
|
|
103
|
+
memory: {
|
|
104
|
+
mode: "confirmWrite",
|
|
105
|
+
sources: ["session", "curated"],
|
|
106
|
+
writePolicy: { curated: "confirm" }
|
|
107
|
+
},
|
|
108
|
+
workflows: {},
|
|
109
|
+
boundaries: {
|
|
110
|
+
requiresConfirmation: [],
|
|
111
|
+
forbidden: [],
|
|
112
|
+
escalation: []
|
|
113
|
+
}
|
|
114
|
+
}]
|
|
361
115
|
});
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
116
|
+
BrowserCloudConfigSchema = z.object({
|
|
117
|
+
apiKey: z.string().optional(),
|
|
118
|
+
projectId: z.string().optional(),
|
|
119
|
+
region: z.string().optional()
|
|
120
|
+
}).strict().optional();
|
|
121
|
+
BrowserExtensionConfigSchema = z.object({
|
|
122
|
+
port: z.number().int().min(1024).max(65535).optional(),
|
|
123
|
+
host: z.string().min(1).optional(),
|
|
124
|
+
connectionTimeout: z.number().int().positive().optional()
|
|
125
|
+
}).strict().optional();
|
|
126
|
+
BrowserCloakConfigSchema = z.object({
|
|
127
|
+
keepOpen: z.boolean().optional(),
|
|
128
|
+
temporaryProfile: z.boolean().optional(),
|
|
129
|
+
cacheDir: z.string().optional().superRefine((value, ctx) => {
|
|
130
|
+
const result = checkCacheDir(value);
|
|
131
|
+
if (result.ok === false) ctx.addIssue({
|
|
132
|
+
code: "custom",
|
|
133
|
+
message: result.message
|
|
134
|
+
});
|
|
135
|
+
}),
|
|
136
|
+
binaryPath: z.string().optional(),
|
|
137
|
+
timezone: z.string().optional(),
|
|
138
|
+
locale: z.string().optional(),
|
|
139
|
+
webrtcIp: z.string().optional(),
|
|
140
|
+
fingerprintPlatform: z.string().optional(),
|
|
141
|
+
extraArgs: z.array(z.string()).optional()
|
|
142
|
+
}).strict().optional();
|
|
143
|
+
BrowserConfigSchema = z.object({
|
|
366
144
|
enabled: z.boolean().default(true),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
"
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
"xhigh",
|
|
382
|
-
"adaptive"
|
|
145
|
+
backend: z.enum([
|
|
146
|
+
"local",
|
|
147
|
+
"cdp",
|
|
148
|
+
"cloud",
|
|
149
|
+
"extension",
|
|
150
|
+
"cloakbrowser"
|
|
151
|
+
]).default("extension"),
|
|
152
|
+
headless: z.boolean().optional(),
|
|
153
|
+
allowPrivateUrls: z.boolean().optional(),
|
|
154
|
+
commandTimeout: z.number().int().min(5).max(900).optional(),
|
|
155
|
+
cloudProvider: z.enum([
|
|
156
|
+
"local",
|
|
157
|
+
"browserbase",
|
|
158
|
+
"browser-use"
|
|
383
159
|
]).optional(),
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
160
|
+
cloud: BrowserCloudConfigSchema,
|
|
161
|
+
cdpUrl: z.string().optional(),
|
|
162
|
+
extension: BrowserExtensionConfigSchema,
|
|
163
|
+
cloakbrowser: BrowserCloakConfigSchema,
|
|
164
|
+
humanize: z.boolean().optional(),
|
|
165
|
+
humanPreset: z.enum(["default", "careful"]).optional(),
|
|
166
|
+
dialogPolicy: z.enum([
|
|
167
|
+
"must_respond",
|
|
168
|
+
"auto_dismiss",
|
|
169
|
+
"auto_accept"
|
|
388
170
|
]).optional(),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
]).optional(),
|
|
394
|
-
systemPromptOverride: z.string().optional(),
|
|
395
|
-
/** Skill names visible to this agent in `<available_skills>`. Omitted means inherit defaults (or all enabled skills). */
|
|
396
|
-
skills: z.array(z.string()).optional(),
|
|
397
|
-
tools: z.object({ disable: z.array(z.string()).optional() }).optional(),
|
|
398
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
171
|
+
dialogTimeoutSeconds: z.number().int().positive().optional()
|
|
172
|
+
}).strict().default({
|
|
173
|
+
enabled: true,
|
|
174
|
+
backend: "extension"
|
|
399
175
|
});
|
|
400
|
-
AgentsConfigSchema = z.object({
|
|
401
|
-
/** Default agent id when not specified (routing / session creation). */
|
|
402
|
-
default: z.string().optional(),
|
|
403
|
-
defaults: AgentDefaultsSchema.optional(),
|
|
404
|
-
list: z.array(AgentConfigSchema).optional(),
|
|
405
|
-
/** One-time starter agent bootstrap marker. Agents remain ordinary list entries after initialization. */
|
|
406
|
-
starterAgentsInitializedVersion: z.number().int().min(0).optional()
|
|
407
|
-
}).default({ defaults: {
|
|
408
|
-
workspace: "~/.xopc/workspace",
|
|
409
|
-
maxTokens: 8192,
|
|
410
|
-
temperature: .7,
|
|
411
|
-
maxToolIterations: 20,
|
|
412
|
-
maxRequestsPerTurn: 50,
|
|
413
|
-
maxToolFailuresPerTurn: 3,
|
|
414
|
-
thinkingDefault: "medium",
|
|
415
|
-
reasoningDefault: "stream",
|
|
416
|
-
verboseDefault: "full",
|
|
417
|
-
compaction: {
|
|
418
|
-
enabled: true,
|
|
419
|
-
mode: "default",
|
|
420
|
-
reserveTokens: 8e3,
|
|
421
|
-
triggerThreshold: .8,
|
|
422
|
-
minMessagesBeforeCompact: 10,
|
|
423
|
-
keepRecentMessages: 5,
|
|
424
|
-
evictionWindow: .2,
|
|
425
|
-
retentionWindow: 6
|
|
426
|
-
},
|
|
427
|
-
pruning: {
|
|
428
|
-
enabled: true,
|
|
429
|
-
maxToolResultChars: 1e4,
|
|
430
|
-
headKeepRatio: .3,
|
|
431
|
-
tailKeepRatio: .3
|
|
432
|
-
},
|
|
433
|
-
memoryFlush: {
|
|
434
|
-
enabled: true,
|
|
435
|
-
threshold: .88,
|
|
436
|
-
softThresholdTokens: 4e3,
|
|
437
|
-
afterCompactions: 2,
|
|
438
|
-
maxEntryChars: 2e3,
|
|
439
|
-
includeToolHistory: true
|
|
440
|
-
},
|
|
441
|
-
browser: {
|
|
442
|
-
enabled: true,
|
|
443
|
-
headless: false,
|
|
444
|
-
backend: "extension"
|
|
445
|
-
}
|
|
446
|
-
} });
|
|
447
176
|
BindingMatchSchema = z.object({
|
|
448
177
|
channel: z.string(),
|
|
449
178
|
accountId: z.string().optional(),
|
|
@@ -984,7 +713,7 @@ strict: z.boolean().optional() }).optional();
|
|
|
984
713
|
TTSConfigSchema = z.object({
|
|
985
714
|
enabled: z.boolean().default(false),
|
|
986
715
|
/** Primary provider id — any registered SpeechProviderPlugin id. */
|
|
987
|
-
provider: z.string().min(1).default("
|
|
716
|
+
provider: z.string().min(1).default("edge"),
|
|
988
717
|
trigger: z.enum([
|
|
989
718
|
"off",
|
|
990
719
|
"always",
|
|
@@ -1109,7 +838,7 @@ tts: TTSConfigSchema.optional() }).optional();
|
|
|
1109
838
|
GoalsConfigSchema = z.object({
|
|
1110
839
|
/** Max continuation turns before auto-pause (Hermes default 20). */
|
|
1111
840
|
maxTurns: z.number().int().min(1).max(500).default(20),
|
|
1112
|
-
/** Optional judge model ref; defaults to
|
|
841
|
+
/** Optional judge model ref; defaults to the active agent model. */
|
|
1113
842
|
judgeModelRef: z.string().optional(),
|
|
1114
843
|
/**
|
|
1115
844
|
* When true (default), first post-turn runs a decomposition judge to build a checklist;
|
|
@@ -1184,16 +913,19 @@ tts: TTSConfigSchema.optional() }).optional();
|
|
|
1184
913
|
servers: z.record(z.string(), McpServerSchema).optional(),
|
|
1185
914
|
sessionIdleTtlMs: z.number().finite().min(0).optional()
|
|
1186
915
|
}).strict().optional();
|
|
916
|
+
ConnectorsConfigSchema = z.object({ instances: z.record(z.string(), z.record(z.string(), z.unknown())).optional() }).strict().optional();
|
|
1187
917
|
ConfigSchema = z.object({
|
|
1188
918
|
agents: AgentsConfigSchema,
|
|
1189
919
|
bindings: BindingsConfigSchema,
|
|
1190
920
|
session: SessionConfigSchema,
|
|
1191
921
|
channels: ChannelsConfigSchema,
|
|
1192
922
|
gateway: GatewayConfigSchema,
|
|
923
|
+
browser: BrowserConfigSchema,
|
|
1193
924
|
tunnel: TunnelConfigSchema.optional(),
|
|
1194
925
|
workspace: WorkspaceConfigSchema,
|
|
1195
926
|
tools: ToolsConfigSchema,
|
|
1196
927
|
mcp: McpConfigSchema,
|
|
928
|
+
connectors: ConnectorsConfigSchema,
|
|
1197
929
|
cron: CronConfigSchema,
|
|
1198
930
|
goals: GoalsConfigSchema.optional(),
|
|
1199
931
|
extensions: ExtensionsConfigSchema.default({}),
|
|
@@ -1205,42 +937,39 @@ tts: TTSConfigSchema.optional() }).optional();
|
|
|
1205
937
|
update: UpdateConfigSchema,
|
|
1206
938
|
commands: CommandsConfigSchema
|
|
1207
939
|
}).default({
|
|
1208
|
-
agents: {
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
maxRequestsPerTurn: 50,
|
|
1214
|
-
maxToolFailuresPerTurn: 3,
|
|
1215
|
-
thinkingDefault: "medium",
|
|
1216
|
-
reasoningDefault: "stream",
|
|
1217
|
-
verboseDefault: "full",
|
|
1218
|
-
compaction: {
|
|
1219
|
-
enabled: true,
|
|
1220
|
-
mode: "default",
|
|
1221
|
-
reserveTokens: 8e3,
|
|
1222
|
-
triggerThreshold: .8,
|
|
1223
|
-
minMessagesBeforeCompact: 10,
|
|
1224
|
-
keepRecentMessages: 5,
|
|
1225
|
-
evictionWindow: .2,
|
|
1226
|
-
retentionWindow: 6
|
|
1227
|
-
},
|
|
1228
|
-
pruning: {
|
|
1229
|
-
enabled: true,
|
|
1230
|
-
maxToolResultChars: 1e4,
|
|
1231
|
-
headKeepRatio: .3,
|
|
1232
|
-
tailKeepRatio: .3
|
|
1233
|
-
},
|
|
1234
|
-
memoryFlush: {
|
|
940
|
+
agents: {
|
|
941
|
+
default: "main",
|
|
942
|
+
capabilityPresets: {},
|
|
943
|
+
list: [{
|
|
944
|
+
id: "main",
|
|
1235
945
|
enabled: true,
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
946
|
+
identity: {
|
|
947
|
+
name: "Main",
|
|
948
|
+
role: "General assistant",
|
|
949
|
+
language: "en",
|
|
950
|
+
tone: "direct"
|
|
951
|
+
},
|
|
952
|
+
responsibilities: { primary: ["Help the user complete tasks"] },
|
|
953
|
+
workspace: { root: "~/.xopc/workspace/main" },
|
|
954
|
+
models: {
|
|
955
|
+
defaultRole: "deep",
|
|
956
|
+
roles: { deep: { model: "openai/gpt-4.1" } }
|
|
957
|
+
},
|
|
958
|
+
tools: { builtin: {} },
|
|
959
|
+
skills: { mode: "all" },
|
|
960
|
+
memory: {
|
|
961
|
+
mode: "confirmWrite",
|
|
962
|
+
sources: ["session", "curated"],
|
|
963
|
+
writePolicy: { curated: "confirm" }
|
|
964
|
+
},
|
|
965
|
+
workflows: {},
|
|
966
|
+
boundaries: {
|
|
967
|
+
requiresConfirmation: [],
|
|
968
|
+
forbidden: [],
|
|
969
|
+
escalation: []
|
|
970
|
+
}
|
|
971
|
+
}]
|
|
972
|
+
},
|
|
1244
973
|
bindings: [],
|
|
1245
974
|
session: {
|
|
1246
975
|
scope: "per-sender",
|
|
@@ -1280,6 +1009,10 @@ tts: TTSConfigSchema.optional() }).optional();
|
|
|
1280
1009
|
skillsMarketplaceProvider: "skillhub",
|
|
1281
1010
|
skillsStoreBaseUrl: "https://store.xopc.ai"
|
|
1282
1011
|
},
|
|
1012
|
+
browser: {
|
|
1013
|
+
enabled: true,
|
|
1014
|
+
backend: "extension"
|
|
1015
|
+
},
|
|
1283
1016
|
tools: { web: { search: {
|
|
1284
1017
|
maxResults: 5,
|
|
1285
1018
|
providers: []
|
|
@@ -1327,6 +1060,6 @@ tts: TTSConfigSchema.optional() }).optional();
|
|
|
1327
1060
|
}));
|
|
1328
1061
|
//#endregion
|
|
1329
1062
|
init_schema();
|
|
1330
|
-
export {
|
|
1063
|
+
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, AgentTypedModelRoleSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, CronConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GoalNotificationEventSchema, GoalNotificationTargetSchema, GoalNotificationsConfigSchema, GoalsConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultModelRef, init_schema, parseModelRef };
|
|
1331
1064
|
|
|
1332
1065
|
//# sourceMappingURL=schema.js.map
|