@xopcai/xopc 0.0.385 → 0.0.386
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Cb9eaXxR.js → agent-avatar-dicebear-D-86VOlb.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DEV-xtgm.js → agent-defaults-settings-panel-SmeUVHY8.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DXKc3Luj.js → agent-plugin-dialog-BVT3wXq5.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DcNxwpJQ.js → agents-D7rLQFhX.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-X5i0Tz7_.js → app-management-settings-panel-CUR7n5iP.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CmHHzquT.js → appearance-settings-BCotSGep.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-ChFA4Zp0.js → apps-page-hk0bo9LT.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BFqsIqOI.js → automations-page-CqxuUwox.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-Blfak-fT.js → automations-workspace-11_Z69pr.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CpOLG3Co.js → block-editor-eldB84Mj.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-BSbTJ9j2.js → browser-automations-page-D4TaUPYT.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-BUlILJrB.js → browser-settings-page-BXRlxeGV.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-XFwwUNU3.js → capabilities-BkKgImWi.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-2Do3eKMM.js → capabilities-DVj9n65C.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-CeRdkwRf.js → capabilities-page-CyYlueEd.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-S-cKsGja.js → capabilities-settings-panel-uVEgfvo0.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-6w8pQhnn.js → capability-header-actions-BXv0xu56.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-DfNTGBmp.js → channels-fNb3SOzm.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DnoQHpDc.js → chat-terminal-dock-CnLtparQ.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-7yliE7sG.js → computer-settings-page-xM0AnOlP.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-DOLAUFSW.js → connector-service-page-CdG2WUb6.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-DAsn97XG.js → connectors-page-BRd08GH6.js} +1 -1
- package/dist/gateway/static/root/assets/constants-CpWu0oHS.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DNDqr4Fk.js → date-picker-DIBbE-O8.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-B5oG7RgE.js → dependency-picker-DDD8zokD.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-K7kUCX1O.js → desktop-pet-KlF390Xn.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-KgOAuqSh.js → desktop-pet-settings-CgqQMKDC.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-DvqniZDm.js → device-pairing-wizard-BR6isfG2.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BmOguLDl.js → directory-picker-path-field-vPQsW05P.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DtHNy4TE.js → extension-debug-page-ZHLPrLbH.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DSSuMQxp.js → extension-page-DJ42KFRN.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-nbgU7xBS.js → extension-provider-6IcsyNaV.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DSd__mNd.js → extension-settings-page-D7-5v0V4.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-D7bjbiwZ.js → fallback-models-DnYn7qOV.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-hSXGWumL.js → gateway-settings-Bwe3JWX-.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-C7xJwE61.js → highlighted-body-KQOG7T2V-DefTxF3q.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-DJNmlMfH.js → home-page-BtSy2hRV.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BufZPzGE.js → imports-page-CTdBYZib.js} +1 -1
- package/dist/gateway/static/root/assets/{index-K8SXDtxr.js → index-B08iR7fT.js} +9 -9
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-B8pPP5RF.js → keyboard-shortcuts-settings-CXKp57O_.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-zEtvE7pJ.js → local-app-workbench-page-DzD_OzGY.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Bli7e_eg.js → local-apps-page-B0E0vttg.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-BimZk3R4.js → logs-page-eL4fYcMl.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-5Y4COyU9.js → management-settings-DSpjodMC.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-BTrk2wWv.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-KLDPLVg7.js → note-detail-panel-CsY5tQp5.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-DST0oPXD.js → notes-page-D09LjNoj.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-Bmed83-6.js → page-context-capture-button-DO-aP3D9.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BG4Ystrm.js → personal-page-E8F2aGNB.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-CXkYP9xE.js → product-open-page-aUoA-uPw.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-DjmupQSq.js → product-preview-content-B-cz-pIV.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-CzBmV0P6.js → project-detail-page-WhefAh8E.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DByqe5Em.js → projects-page-CyqAs0tO.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-DTjj-odF.js → remote-access-hub-BwhRGL6m.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-B_ptn3T8.js → runtime-tools-settings-panel-o26dmPNq.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-wkua4l5y.js → scenes-page-D_e19kv_.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-VvOSM84Y.js → schema-form-DLLdqUC3.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-BCAF-Ikt.js → send-session-input-2I-nFJcE.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-Co5ozD0l.js +16 -0
- package/dist/gateway/static/root/assets/{sessions-page-D06XwYAT.js → sessions-page-DX6INsiS.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-C4_gW1vw.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-C-6BJdb1.js → settings-page-Bc_zxxRu.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-L0JSG0K-.js → setup-status-panel-FpF_cPPr.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-nJ2FWAEP.js → share-preview-page-BOCcPBqQ.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BbgAUM3v.js → shares-settings-CInxjxgJ.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-BFU1tPyw.js → skill-api-Bjd8WAA4.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DZw6el4o.js → skills-page-8CKS3Oo2.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DshSGWNg.js → system-settings-panel-BgQdsrNw.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-BnG5ehZ6.js +2 -0
- package/dist/gateway/static/root/assets/task-expandable-content-BCuc70Vc.js +1 -0
- package/dist/gateway/static/root/assets/{tasks-DJIeIk9C.js → tasks-PuIUgF9L.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-DFDXwWnU.js → tunnel-api-CY7MoDGf.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-2RJLg54s.js → usage-page-s8Sv_PIG.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-BFP3k6oC.js → use-composer-attachments-D0S2iZF4.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-B1BiTQNS.js → use-file-preview-expanded-BElqELib.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-y1gjGYPI.js → user-model-page-CyWrEtHY.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Ch-KfpCF.js → work-discovery-overlay-DmZXLs1v.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CTu297Hc.js → workflow-run-setup-panel-BdLOzHm4.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-CRZXG_rm.js → workflows-page-Cx3I3AV5.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-Xr3wz8T3.js → workspace-api-Du7-xJ0q.js} +2 -2
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-hEfjVjnc.js → xopc-cloud-account-card-D8B136vW.js} +1 -1
- package/dist/gateway/static/root/index.html +11 -11
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/index.js +2 -0
- package/dist/packages/gateway-contract/src/task-research-result.js +89 -0
- package/dist/packages/gateway-contract/src/tasks.js +7 -1
- package/dist/packages/gateway-contract/src/turn-outcome.js +3 -0
- package/dist/src/agent/child-agent-factory.d.ts +4 -1
- package/dist/src/agent/child-agent-factory.js +86 -12
- package/dist/src/agent/context/connection-objective-context.d.ts +1 -0
- package/dist/src/agent/context/connection-objective-context.js +33 -0
- package/dist/src/agent/data-acquisition/service.js +41 -6
- package/dist/src/agent/data-acquisition/types.d.ts +2 -0
- package/dist/src/agent/embedded/agent-profile-context.d.ts +7 -0
- package/dist/src/agent/embedded/agent-profile-context.js +92 -0
- package/dist/src/agent/embedded/run-for-session.js +5 -2
- package/dist/src/agent/embedded/run-turn.js +19 -6
- package/dist/src/agent/embedded/runs.d.ts +9 -2
- package/dist/src/agent/embedded/runs.js +30 -7
- package/dist/src/agent/embedded/session-runner.js +5 -2
- package/dist/src/agent/embedded/types.d.ts +4 -0
- package/dist/src/agent/external-tools/gateway-tools.js +7 -3
- package/dist/src/agent/orchestration/agent-run-supervisor.js +2 -1
- package/dist/src/agent/orchestration/agent-turn-policy.js +5 -1
- package/dist/src/agent/orchestration/delegation-budget.d.ts +7 -1
- package/dist/src/agent/orchestration/delegation-budget.js +17 -9
- package/dist/src/agent/orchestration/research-checkpoint.d.ts +56 -0
- package/dist/src/agent/orchestration/research-checkpoint.js +64 -0
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.d.ts +3 -1
- package/dist/src/agent/orchestration/run-agent-turn-with-timeout.js +15 -2
- package/dist/src/agent/orchestration/run-termination.d.ts +12 -0
- package/dist/src/agent/orchestration/run-termination.js +24 -0
- package/dist/src/agent/orchestration/turn-recovery.d.ts +4 -1
- package/dist/src/agent/orchestration/turn-recovery.js +19 -3
- package/dist/src/agent/prompt/sections/agent-identity.js +12 -7
- package/dist/src/agent/prompt/sections/messaging-runtime.js +1 -1
- package/dist/src/agent/prompt/sections/project-context.js +1 -1
- package/dist/src/agent/prompt/sections/response-language.d.ts +1 -1
- package/dist/src/agent/prompt/sections/response-language.js +6 -2
- package/dist/src/agent/prompt/subagent-context.js +1 -1
- package/dist/src/agent/prompt/system-prompt.js +4 -6
- package/dist/src/agent/tasks/task-judge-service.js +3 -1
- package/dist/src/agent/tools/apply-patch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +216 -121
- package/dist/src/agent/tools/delegation-policy.js +13 -1
- package/dist/src/agent/tools/factory.js +2 -0
- package/dist/src/agent/tools/index.d.ts +1 -0
- package/dist/src/agent/tools/index.js +2 -1
- package/dist/src/agent/tools/language-diagnostics.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +8 -13
- package/dist/src/agent/tools/personal-task-tool.d.ts +1 -2
- package/dist/src/agent/tools/personal-task-tool.js +9 -8
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/research-checkpoint-tool.d.ts +3 -0
- package/dist/src/agent/tools/research-checkpoint-tool.js +28 -0
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/search/cache.d.ts +20 -0
- package/dist/src/agent/tools/search/cache.js +19 -0
- package/dist/src/agent/tools/search/errors.d.ts +19 -0
- package/dist/src/agent/tools/search/errors.js +69 -0
- package/dist/src/agent/tools/search/providers/bing-api.js +2 -1
- package/dist/src/agent/tools/search/providers/bing-html.js +2 -1
- package/dist/src/agent/tools/search/providers/brave.js +2 -1
- package/dist/src/agent/tools/search/providers/duckduckgo-html.js +2 -1
- package/dist/src/agent/tools/search/providers/searxng.js +2 -1
- package/dist/src/agent/tools/search/providers/tavily.js +2 -1
- package/dist/src/agent/tools/search/providers/xopc-cloud.d.ts +1 -0
- package/dist/src/agent/tools/search/providers/xopc-cloud.js +7 -2
- package/dist/src/agent/tools/search/registry.d.ts +21 -5
- package/dist/src/agent/tools/search/registry.js +252 -25
- package/dist/src/agent/tools/search/types.d.ts +25 -0
- package/dist/src/agent/tools/task-result-tool.d.ts +2 -0
- package/dist/src/agent/tools/task-result-tool.js +73 -0
- package/dist/src/agent/tools/web.d.ts +16 -2
- package/dist/src/agent/tools/web.js +74 -29
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/automations/capabilities/write.d.ts +4 -4
- package/dist/src/automations/domain/validation.d.ts +8 -8
- package/dist/src/automations/draft/automation-draft-validator.d.ts +2 -2
- package/dist/src/browser/automations/schema.d.ts +2 -2
- package/dist/src/browser/automations/service.d.ts +2 -2
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/config/index.js +2 -2
- package/dist/src/config/schema.d.ts +1 -0
- package/dist/src/config/schema.js +4 -1
- package/dist/src/connectors/connection-recovery-service.d.ts +3 -1
- package/dist/src/connectors/connection-recovery-service.js +66 -5
- package/dist/src/discussions/action-tasks.d.ts +2 -2
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/hono/routes/projects.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +16 -0
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/service/agent-runner.d.ts +2 -0
- package/dist/src/gateway/service/agent-runner.js +30 -17
- package/dist/src/gateway/service/run-gateway-agent.js +12 -1
- package/dist/src/gateway/service/session-input-coordinator.d.ts +10 -1
- package/dist/src/gateway/service/session-input-coordinator.js +213 -26
- package/dist/src/gateway/service.d.ts +1 -0
- package/dist/src/gateway/service.js +9 -7
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/personal-agent/prompts.js +4 -1
- package/dist/src/personal-agent/reply-composer.d.ts +1 -0
- package/dist/src/personal-agent/reply-composer.js +70 -12
- package/dist/src/personal-agent/reply-style.d.ts +1 -1
- package/dist/src/personal-agent/reply-style.js +1 -0
- package/dist/src/personal-agent/repository.d.ts +1 -1
- package/dist/src/personal-agent/repository.js +1 -1
- package/dist/src/personal-agent/request-repository.d.ts +2 -0
- package/dist/src/personal-agent/request-service.d.ts +4 -0
- package/dist/src/personal-agent/request-service.js +90 -19
- package/dist/src/personal-agent/result-file-links.d.ts +3 -0
- package/dist/src/personal-agent/result-file-links.js +21 -0
- package/dist/src/personal-agent/task-cancel.js +85 -35
- package/dist/src/scenes/taskFollowUp/service.d.ts +15 -5
- package/dist/src/session/session-context-for-llm.js +2 -2
- package/dist/src/session/store.d.ts +3 -1
- package/dist/src/session/store.js +13 -3
- package/dist/src/storage/sqlite/connection-wait-repository.d.ts +5 -2
- package/dist/src/storage/sqlite/connection-wait-repository.js +42 -17
- package/dist/src/storage/sqlite/index.d.ts +1 -0
- package/dist/src/storage/sqlite/index.js +3 -1
- package/dist/src/storage/sqlite/migrations/250_research_checkpoints.sql +15 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/research-checkpoint-repository.d.ts +24 -0
- package/dist/src/storage/sqlite/research-checkpoint-repository.js +91 -0
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/session-creation-repository.js +3 -2
- package/dist/src/storage/sqlite/session-input-repository.d.ts +16 -0
- package/dist/src/storage/sqlite/session-input-repository.js +41 -7
- package/dist/src/tasks/capabilities/management.d.ts +2 -2
- package/dist/src/tasks/capabilities/relations.d.ts +7 -7
- package/dist/src/tasks/capabilities/write.d.ts +2 -2
- package/dist/src/tasks/index.js +1 -1
- package/dist/src/tasks/task-allocation-service.d.ts +2 -0
- package/dist/src/tasks/task-allocation-service.js +43 -2
- package/dist/src/tasks/task-application-service.js +2 -2
- package/dist/src/tasks/task-context-assembler.js +6 -1
- package/dist/src/tasks/task-continuation.d.ts +1 -0
- package/dist/src/tasks/task-continuation.js +1 -0
- package/dist/src/tasks/task-contract-planner.d.ts +1 -0
- package/dist/src/tasks/task-contract-planner.js +22 -15
- package/dist/src/tasks/task-model-call.d.ts +7 -0
- package/dist/src/tasks/task-model-call.js +35 -0
- package/dist/src/tasks/task-research-repair.d.ts +19 -0
- package/dist/src/tasks/task-research-repair.js +75 -0
- package/dist/src/tasks/task-research-result.d.ts +85 -0
- package/dist/src/tasks/task-research-result.js +394 -0
- package/dist/src/tasks/task-result-delivery-repository.js +13 -2
- package/dist/src/tasks/task-result-delivery-service.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +69 -15
- package/dist/src/tasks/task-run-dispatcher.js +1 -0
- package/dist/src/tasks/task-run-repository.d.ts +5 -0
- package/dist/src/tasks/task-run-repository.js +88 -1
- package/package.json +9 -5
- package/dist/gateway/static/root/assets/constants-Dy8Gw0sF.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-DBRj4-1-.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-_yy4bxhT.js +0 -16
- package/dist/gateway/static/root/assets/settings-advanced-gate-DoAHy1wj.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-CfZhq4XZ.js +0 -2
- package/dist/gateway/static/root/assets/task-expandable-content-CF6Bj-Qa.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SearchFailureInfo } from './errors.js';
|
|
1
2
|
export interface SearchResult {
|
|
2
3
|
title: string;
|
|
3
4
|
url: string;
|
|
@@ -8,7 +9,10 @@ export interface SearchResult {
|
|
|
8
9
|
export interface SearchProvider {
|
|
9
10
|
name: string;
|
|
10
11
|
isAvailable(): boolean;
|
|
12
|
+
cacheIdentity?(): string;
|
|
11
13
|
search(query: string, count: number, signal?: AbortSignal): Promise<SearchResult[]>;
|
|
14
|
+
/** Optional host-implemented batch transport; ids must be echoed for partial results. */
|
|
15
|
+
searchBatch?(requests: SearchRequest[], signal?: AbortSignal): Promise<SearchBatchItem[]>;
|
|
12
16
|
}
|
|
13
17
|
export interface ResolvedSearchProviderEntry {
|
|
14
18
|
type: 'brave' | 'tavily' | 'bing' | 'searxng';
|
|
@@ -22,3 +26,24 @@ export interface ResolvedWebSearchConfig {
|
|
|
22
26
|
maxResults: number;
|
|
23
27
|
providers: ResolvedSearchProviderEntry[];
|
|
24
28
|
}
|
|
29
|
+
export interface SearchRequest {
|
|
30
|
+
id: string;
|
|
31
|
+
query: string;
|
|
32
|
+
count: number;
|
|
33
|
+
}
|
|
34
|
+
export interface SearchBatchItem {
|
|
35
|
+
id: string;
|
|
36
|
+
results?: SearchResult[];
|
|
37
|
+
error?: SearchFailureInfo;
|
|
38
|
+
}
|
|
39
|
+
export interface SearchResponse {
|
|
40
|
+
results: SearchResult[];
|
|
41
|
+
provider: string;
|
|
42
|
+
cached?: boolean;
|
|
43
|
+
capturedAt?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface SearchBatchResponse extends SearchRequest {
|
|
46
|
+
response?: SearchResponse;
|
|
47
|
+
error?: SearchFailureInfo;
|
|
48
|
+
fallback?: 'individual';
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { submitTaskResearchResult } from "../../tasks/task-research-result.js";
|
|
2
|
+
import { Type } from "@sinclair/typebox";
|
|
3
|
+
//#region src/agent/tools/task-result-tool.ts
|
|
4
|
+
const id = Type.String({
|
|
5
|
+
minLength: 1,
|
|
6
|
+
maxLength: 120
|
|
7
|
+
});
|
|
8
|
+
const schema = Type.Object({
|
|
9
|
+
mode: Type.Optional(Type.Union([Type.Literal("replace"), Type.Literal("amend")])),
|
|
10
|
+
retireClaimIds: Type.Optional(Type.Array(id, { maxItems: 40 })),
|
|
11
|
+
sources: Type.Array(Type.Object({
|
|
12
|
+
id,
|
|
13
|
+
toolCallId: Type.Optional(Type.String()),
|
|
14
|
+
excerpt: Type.String({
|
|
15
|
+
minLength: 1,
|
|
16
|
+
maxLength: 2e3
|
|
17
|
+
}),
|
|
18
|
+
url: Type.Optional(Type.String())
|
|
19
|
+
}), {
|
|
20
|
+
minItems: 1,
|
|
21
|
+
maxItems: 40
|
|
22
|
+
}),
|
|
23
|
+
claims: Type.Array(Type.Object({
|
|
24
|
+
id,
|
|
25
|
+
statement: Type.String({
|
|
26
|
+
minLength: 1,
|
|
27
|
+
maxLength: 2e3
|
|
28
|
+
}),
|
|
29
|
+
kind: Type.Union([
|
|
30
|
+
Type.Literal("fact"),
|
|
31
|
+
Type.Literal("inference"),
|
|
32
|
+
Type.Literal("recommendation")
|
|
33
|
+
]),
|
|
34
|
+
sourceIds: Type.Array(id, {
|
|
35
|
+
minItems: 1,
|
|
36
|
+
maxItems: 8
|
|
37
|
+
})
|
|
38
|
+
}), {
|
|
39
|
+
minItems: 1,
|
|
40
|
+
maxItems: 40
|
|
41
|
+
})
|
|
42
|
+
}, { additionalProperties: false });
|
|
43
|
+
function createTaskResultTool(getConversationId) {
|
|
44
|
+
return {
|
|
45
|
+
name: "publish_task_result",
|
|
46
|
+
label: "Publish research conclusions",
|
|
47
|
+
parameters: schema,
|
|
48
|
+
description: "Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Never drop valid calculation/input evidence merely to fix a file. Sources require short contiguous exact excerpts from successful read_file/read_media/web/exec/session_status results or publication receipts in this TaskRun. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
|
|
49
|
+
supportsParallel: false,
|
|
50
|
+
mutationScope: "none",
|
|
51
|
+
idempotent: false,
|
|
52
|
+
async execute(toolCallId, input, signal) {
|
|
53
|
+
const conversationId = getConversationId();
|
|
54
|
+
if (!conversationId) throw new Error("Task conversation is required");
|
|
55
|
+
const research = await submitTaskResearchResult(conversationId, toolCallId, input, signal);
|
|
56
|
+
return {
|
|
57
|
+
content: [{
|
|
58
|
+
type: "text",
|
|
59
|
+
text: JSON.stringify({
|
|
60
|
+
saved: true,
|
|
61
|
+
review: research.review,
|
|
62
|
+
claims: research.claims,
|
|
63
|
+
checks: research.checks,
|
|
64
|
+
instructionChecks: research.instructionChecks
|
|
65
|
+
})
|
|
66
|
+
}],
|
|
67
|
+
details: { research }
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { createTaskResultTool };
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type { AgentTool } from '@earendil-works/pi-agent-core';
|
|
1
|
+
import type { AgentTool, AgentToolResult } from '@earendil-works/pi-agent-core';
|
|
2
2
|
import type { Config } from '../../config/schema.js';
|
|
3
|
-
export
|
|
3
|
+
export interface WebSearchBatchTool extends AgentTool {
|
|
4
|
+
executeSearchBatch(requests: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
query: string;
|
|
7
|
+
count?: number;
|
|
8
|
+
}>, signal?: AbortSignal, authorize?: () => void): Promise<{
|
|
9
|
+
items: Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
result: AgentToolResult<any>;
|
|
12
|
+
}>;
|
|
13
|
+
sourceRequests: number;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export declare function createWebSearchTool(getConfig: () => Config | undefined): WebSearchBatchTool;
|
|
17
|
+
export declare function extractReadableText(html: string, pageUrl: string): Promise<string>;
|
|
4
18
|
export declare function createWebFetchTool(getConfig: () => Config | undefined): AgentTool;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SearchError, classifySearchError, searchFailureInfo } from "./search/errors.js";
|
|
1
2
|
import { SearchProviderRegistry } from "./search/registry.js";
|
|
2
3
|
import { resolveWebSearchConfig } from "./search/resolve-config.js";
|
|
3
4
|
import { fetchPublicText } from "./fetch-text.js";
|
|
@@ -10,52 +11,93 @@ const WebSearchSchema = Type.Object({
|
|
|
10
11
|
function formatSearchResults(results) {
|
|
11
12
|
return results.map((r, i) => `${i + 1}. ${r.title}\n ${r.url}\n ${r.description ? `${r.description}` : ""}`).join("\n\n");
|
|
12
13
|
}
|
|
14
|
+
function searchToolResult(query, count, response) {
|
|
15
|
+
return {
|
|
16
|
+
content: [{
|
|
17
|
+
type: "text",
|
|
18
|
+
text: response.results.length ? formatSearchResults(response.results) : "No results found."
|
|
19
|
+
}],
|
|
20
|
+
details: {
|
|
21
|
+
results: response.results,
|
|
22
|
+
provider: response.provider,
|
|
23
|
+
query,
|
|
24
|
+
count,
|
|
25
|
+
cached: response.cached ?? false,
|
|
26
|
+
capturedAt: response.capturedAt
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function searchToolError(error, signal) {
|
|
31
|
+
const failure = classifySearchError(error, signal);
|
|
32
|
+
return {
|
|
33
|
+
content: [{
|
|
34
|
+
type: "text",
|
|
35
|
+
text: `Search error (${failure.kind}): ${failure.message}`
|
|
36
|
+
}],
|
|
37
|
+
details: {
|
|
38
|
+
results: [],
|
|
39
|
+
error: failure.message,
|
|
40
|
+
failure: searchFailureInfo(failure),
|
|
41
|
+
status: failure.kind === "cancelled" ? "cancelled" : "failed"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
13
45
|
function createWebSearchTool(getConfig) {
|
|
14
46
|
return {
|
|
15
47
|
name: "web_search",
|
|
16
|
-
description: "Search the web
|
|
48
|
+
description: "Search the web using authorized configured providers or the region-aware HTML fallback. Search failures retain permission, rate-limit and timeout reasons. Research reuses recent successful queries; permission refusals are not bypassed.",
|
|
17
49
|
parameters: WebSearchSchema,
|
|
18
50
|
label: "🔍 Web Search",
|
|
19
51
|
supportsParallel: true,
|
|
20
|
-
async execute(
|
|
21
|
-
const p = params;
|
|
52
|
+
async execute(_id, params, signal) {
|
|
22
53
|
const cfg = resolveWebSearchConfig(getConfig()?.tools?.web);
|
|
23
54
|
const registry = new SearchProviderRegistry(cfg);
|
|
24
|
-
const count =
|
|
55
|
+
const count = Math.max(1, Math.min(20, Math.floor(params.count ?? cfg.maxResults ?? 5)));
|
|
25
56
|
try {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
content: [{
|
|
29
|
-
type: "text",
|
|
30
|
-
text: "No results found."
|
|
31
|
-
}],
|
|
32
|
-
details: {
|
|
33
|
-
results: [],
|
|
34
|
-
provider
|
|
35
|
-
}
|
|
36
|
-
};
|
|
57
|
+
const response = await registry.search(params.query, count, signal);
|
|
58
|
+
const result = searchToolResult(params.query, count, response);
|
|
37
59
|
return {
|
|
38
|
-
|
|
39
|
-
type: "text",
|
|
40
|
-
text: formatSearchResults(results)
|
|
41
|
-
}],
|
|
60
|
+
...result,
|
|
42
61
|
details: {
|
|
43
|
-
|
|
44
|
-
|
|
62
|
+
...result.details,
|
|
63
|
+
sourceRequests: registry.sourceRequests
|
|
45
64
|
}
|
|
46
65
|
};
|
|
47
66
|
} catch (error) {
|
|
67
|
+
const result = searchToolError(error, signal);
|
|
48
68
|
return {
|
|
49
|
-
|
|
50
|
-
type: "text",
|
|
51
|
-
text: `Search error: ${error instanceof Error ? error.message : String(error)}`
|
|
52
|
-
}],
|
|
69
|
+
...result,
|
|
53
70
|
details: {
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
...result.details,
|
|
72
|
+
sourceRequests: registry.sourceRequests
|
|
56
73
|
}
|
|
57
74
|
};
|
|
58
75
|
}
|
|
76
|
+
},
|
|
77
|
+
async executeSearchBatch(requests, signal, authorize = () => {}) {
|
|
78
|
+
const cfg = resolveWebSearchConfig(getConfig()?.tools?.web);
|
|
79
|
+
const registry = new SearchProviderRegistry(cfg);
|
|
80
|
+
const inputs = requests.map((request) => ({
|
|
81
|
+
...request,
|
|
82
|
+
count: Math.max(1, Math.min(20, Math.floor(request.count ?? cfg.maxResults ?? 5)))
|
|
83
|
+
}));
|
|
84
|
+
const responses = await registry.searchBatch(inputs, signal, authorize);
|
|
85
|
+
return {
|
|
86
|
+
sourceRequests: registry.sourceRequests,
|
|
87
|
+
items: responses.map((item) => {
|
|
88
|
+
const result = item.response ? searchToolResult(item.query, item.count, item.response) : searchToolError(new SearchError(item.error), signal);
|
|
89
|
+
return {
|
|
90
|
+
id: item.id,
|
|
91
|
+
result: {
|
|
92
|
+
...result,
|
|
93
|
+
details: {
|
|
94
|
+
...result.details,
|
|
95
|
+
fallback: item.fallback
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
})
|
|
100
|
+
};
|
|
59
101
|
}
|
|
60
102
|
};
|
|
61
103
|
}
|
|
@@ -70,8 +112,11 @@ async function extractReadableText(html, pageUrl) {
|
|
|
70
112
|
const { parseHTML } = await import("linkedom");
|
|
71
113
|
const { Readability } = await import("@mozilla/readability");
|
|
72
114
|
const { document } = parseHTML(html);
|
|
115
|
+
const paragraphs = [...document.querySelector("main, [role=\"main\"]")?.querySelectorAll("p") ?? []].filter((element) => !element.closest("nav, aside, footer, header")).map((element) => element.textContent?.replace(/\s+/g, " ").trim() ?? "").filter((text) => text.length >= 40 && text.length <= 2e3);
|
|
73
116
|
Object.defineProperty(document, "documentURI", { value: pageUrl });
|
|
74
|
-
|
|
117
|
+
const text = new Readability(document).parse()?.textContent?.trim() ?? "";
|
|
118
|
+
const normalized = text.replace(/\s+/g, " ");
|
|
119
|
+
return [...[...new Set(paragraphs)].filter((paragraph) => !normalized.includes(paragraph)), text].filter(Boolean).join("\n\n");
|
|
75
120
|
}
|
|
76
121
|
function createWebFetchTool(getConfig) {
|
|
77
122
|
return {
|
|
@@ -122,4 +167,4 @@ function createWebFetchTool(getConfig) {
|
|
|
122
167
|
};
|
|
123
168
|
}
|
|
124
169
|
//#endregion
|
|
125
|
-
export { createWebFetchTool, createWebSearchTool };
|
|
170
|
+
export { createWebFetchTool, createWebSearchTool, extractReadableText };
|
|
@@ -20,16 +20,16 @@ import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
|
20
20
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
21
21
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
22
22
|
import "../../projects/index.js";
|
|
23
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
24
|
+
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
23
25
|
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
24
26
|
import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
|
|
25
27
|
import { TaskDeleteOutputSchema } from "../../tasks/capabilities/management.js";
|
|
26
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
27
28
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
28
29
|
import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
|
|
29
30
|
import { TaskMutationOutputSchema } from "../../tasks/capabilities/write.js";
|
|
30
31
|
import { createProductDispatcher } from "../../capabilities/runtime/product.js";
|
|
31
32
|
import { localAppCapabilities } from "../../local-apps/capabilities/runtime.js";
|
|
32
|
-
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
33
33
|
import "../../tasks/index.js";
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
35
35
|
import { Type } from "@sinclair/typebox";
|
|
@@ -42,10 +42,10 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
43
|
type: z.ZodLiteral<"move">;
|
|
44
44
|
phase: z.ZodEnum<{
|
|
45
|
+
review: "review";
|
|
45
46
|
backlog: "backlog";
|
|
46
47
|
ready: "ready";
|
|
47
48
|
active: "active";
|
|
48
|
-
review: "review";
|
|
49
49
|
}>;
|
|
50
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
51
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -81,10 +81,10 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
|
|
|
81
81
|
}, z.core.$strip>, z.ZodObject<{
|
|
82
82
|
type: z.ZodLiteral<"reopen">;
|
|
83
83
|
phase: z.ZodEnum<{
|
|
84
|
+
review: "review";
|
|
84
85
|
backlog: "backlog";
|
|
85
86
|
ready: "ready";
|
|
86
87
|
active: "active";
|
|
87
|
-
review: "review";
|
|
88
88
|
}>;
|
|
89
89
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
90
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -245,10 +245,10 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
245
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
246
246
|
type: z.ZodLiteral<"move">;
|
|
247
247
|
phase: z.ZodEnum<{
|
|
248
|
+
review: "review";
|
|
248
249
|
backlog: "backlog";
|
|
249
250
|
ready: "ready";
|
|
250
251
|
active: "active";
|
|
251
|
-
review: "review";
|
|
252
252
|
}>;
|
|
253
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
254
254
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -284,10 +284,10 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
|
|
|
284
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
285
|
type: z.ZodLiteral<"reopen">;
|
|
286
286
|
phase: z.ZodEnum<{
|
|
287
|
+
review: "review";
|
|
287
288
|
backlog: "backlog";
|
|
288
289
|
ready: "ready";
|
|
289
290
|
active: "active";
|
|
290
|
-
review: "review";
|
|
291
291
|
}>;
|
|
292
292
|
}, z.core.$strip>, z.ZodObject<{
|
|
293
293
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -72,10 +72,10 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
72
72
|
}, z.core.$strip>, z.ZodObject<{
|
|
73
73
|
type: z.ZodLiteral<"move">;
|
|
74
74
|
phase: z.ZodEnum<{
|
|
75
|
+
review: "review";
|
|
75
76
|
backlog: "backlog";
|
|
76
77
|
ready: "ready";
|
|
77
78
|
active: "active";
|
|
78
|
-
review: "review";
|
|
79
79
|
}>;
|
|
80
80
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
81
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -111,10 +111,10 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
111
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
112
112
|
type: z.ZodLiteral<"reopen">;
|
|
113
113
|
phase: z.ZodEnum<{
|
|
114
|
+
review: "review";
|
|
114
115
|
backlog: "backlog";
|
|
115
116
|
ready: "ready";
|
|
116
117
|
active: "active";
|
|
117
|
-
review: "review";
|
|
118
118
|
}>;
|
|
119
119
|
}, z.core.$strip>, z.ZodObject<{
|
|
120
120
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -295,10 +295,10 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
295
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
296
296
|
type: z.ZodLiteral<"move">;
|
|
297
297
|
phase: z.ZodEnum<{
|
|
298
|
+
review: "review";
|
|
298
299
|
backlog: "backlog";
|
|
299
300
|
ready: "ready";
|
|
300
301
|
active: "active";
|
|
301
|
-
review: "review";
|
|
302
302
|
}>;
|
|
303
303
|
}, z.core.$strip>, z.ZodObject<{
|
|
304
304
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -334,10 +334,10 @@ export declare const AutomationSchema: z.ZodObject<{
|
|
|
334
334
|
}, z.core.$strip>, z.ZodObject<{
|
|
335
335
|
type: z.ZodLiteral<"reopen">;
|
|
336
336
|
phase: z.ZodEnum<{
|
|
337
|
+
review: "review";
|
|
337
338
|
backlog: "backlog";
|
|
338
339
|
ready: "ready";
|
|
339
340
|
active: "active";
|
|
340
|
-
review: "review";
|
|
341
341
|
}>;
|
|
342
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
343
343
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -497,10 +497,10 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
497
497
|
}, z.core.$strip>, z.ZodObject<{
|
|
498
498
|
type: z.ZodLiteral<"move">;
|
|
499
499
|
phase: z.ZodEnum<{
|
|
500
|
+
review: "review";
|
|
500
501
|
backlog: "backlog";
|
|
501
502
|
ready: "ready";
|
|
502
503
|
active: "active";
|
|
503
|
-
review: "review";
|
|
504
504
|
}>;
|
|
505
505
|
}, z.core.$strip>, z.ZodObject<{
|
|
506
506
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -536,10 +536,10 @@ export declare const CreateAutomationSchema: z.ZodObject<{
|
|
|
536
536
|
}, z.core.$strip>, z.ZodObject<{
|
|
537
537
|
type: z.ZodLiteral<"reopen">;
|
|
538
538
|
phase: z.ZodEnum<{
|
|
539
|
+
review: "review";
|
|
539
540
|
backlog: "backlog";
|
|
540
541
|
ready: "ready";
|
|
541
542
|
active: "active";
|
|
542
|
-
review: "review";
|
|
543
543
|
}>;
|
|
544
544
|
}, z.core.$strip>, z.ZodObject<{
|
|
545
545
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -726,10 +726,10 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
726
726
|
}, z.core.$strip>, z.ZodObject<{
|
|
727
727
|
type: z.ZodLiteral<"move">;
|
|
728
728
|
phase: z.ZodEnum<{
|
|
729
|
+
review: "review";
|
|
729
730
|
backlog: "backlog";
|
|
730
731
|
ready: "ready";
|
|
731
732
|
active: "active";
|
|
732
|
-
review: "review";
|
|
733
733
|
}>;
|
|
734
734
|
}, z.core.$strip>, z.ZodObject<{
|
|
735
735
|
type: z.ZodLiteral<"mark_ready">;
|
|
@@ -765,10 +765,10 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
|
|
|
765
765
|
}, z.core.$strip>, z.ZodObject<{
|
|
766
766
|
type: z.ZodLiteral<"reopen">;
|
|
767
767
|
phase: z.ZodEnum<{
|
|
768
|
+
review: "review";
|
|
768
769
|
backlog: "backlog";
|
|
769
770
|
ready: "ready";
|
|
770
771
|
active: "active";
|
|
771
|
-
review: "review";
|
|
772
772
|
}>;
|
|
773
773
|
}, z.core.$strip>, z.ZodObject<{
|
|
774
774
|
type: z.ZodLiteral<"add_wait">;
|
|
@@ -70,7 +70,7 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
70
70
|
type: "retry_allocation";
|
|
71
71
|
} | {
|
|
72
72
|
type: "move";
|
|
73
|
-
phase: "
|
|
73
|
+
phase: "review" | "backlog" | "ready" | "active";
|
|
74
74
|
} | {
|
|
75
75
|
type: "mark_ready";
|
|
76
76
|
} | {
|
|
@@ -99,7 +99,7 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
|
|
|
99
99
|
resolution: "cancelled" | "done" | "duplicate" | "wont_do";
|
|
100
100
|
} | {
|
|
101
101
|
type: "reopen";
|
|
102
|
-
phase: "
|
|
102
|
+
phase: "review" | "backlog" | "ready" | "active";
|
|
103
103
|
} | {
|
|
104
104
|
type: "add_wait";
|
|
105
105
|
wait: {
|
|
@@ -198,8 +198,8 @@ export declare const BrowserAutomationDefinitionSchema: z.ZodObject<{
|
|
|
198
198
|
field: z.ZodEnum<{
|
|
199
199
|
value: "value";
|
|
200
200
|
text: "text";
|
|
201
|
-
title: "title";
|
|
202
201
|
url: "url";
|
|
202
|
+
title: "title";
|
|
203
203
|
checked: "checked";
|
|
204
204
|
}>;
|
|
205
205
|
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
@@ -219,8 +219,8 @@ export declare const BrowserAutomationDefinitionSchema: z.ZodObject<{
|
|
|
219
219
|
field: z.ZodEnum<{
|
|
220
220
|
value: "value";
|
|
221
221
|
text: "text";
|
|
222
|
-
title: "title";
|
|
223
222
|
url: "url";
|
|
223
|
+
title: "title";
|
|
224
224
|
href: "href";
|
|
225
225
|
}>;
|
|
226
226
|
}, z.core.$strict>>>;
|
|
@@ -177,7 +177,7 @@ export declare class BrowserAutomationService {
|
|
|
177
177
|
})[];
|
|
178
178
|
description?: string;
|
|
179
179
|
successCriteria?: {
|
|
180
|
-
field: "value" | "text" | "
|
|
180
|
+
field: "value" | "text" | "url" | "title" | "checked";
|
|
181
181
|
target?: {
|
|
182
182
|
role: string;
|
|
183
183
|
name?: string;
|
|
@@ -192,7 +192,7 @@ export declare class BrowserAutomationService {
|
|
|
192
192
|
includes?: string;
|
|
193
193
|
}[];
|
|
194
194
|
outputs?: Record<string, {
|
|
195
|
-
field: "value" | "text" | "
|
|
195
|
+
field: "value" | "text" | "url" | "title" | "href";
|
|
196
196
|
target?: {
|
|
197
197
|
role: string;
|
|
198
198
|
name?: string;
|
|
@@ -53,7 +53,7 @@ async function checkDatabaseSchema(ctx) {
|
|
|
53
53
|
id: "database-schema",
|
|
54
54
|
label: "Database schema",
|
|
55
55
|
status: "pass",
|
|
56
|
-
message: `SQLite schema v${status.dbVersion} (current release
|
|
56
|
+
message: `SQLite schema v${status.dbVersion} (current release v250).`,
|
|
57
57
|
hints: []
|
|
58
58
|
};
|
|
59
59
|
}
|
package/dist/src/config/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
|
5
5
|
import { extractProfileAgentId, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
|
|
6
6
|
import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema } from "../../extensions/telegram/src/config-schema.js";
|
|
7
7
|
import { WeixinAccountConfigSchema, WeixinConfigSchema } from "../../extensions/weixin/src/config-schema.js";
|
|
8
|
-
import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
|
|
8
|
+
import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultChatModelConfig, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
|
|
9
9
|
import { clearConfigValueCache, getAllowedCommands, getCacheStats, init_resolve_config_value, resolveConfigValue, resolveHeaders, testApiKeyResolution } from "./resolve-config-value.js";
|
|
10
10
|
import { FILENAMES, WORKSPACE_FILES, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath } from "./paths.js";
|
|
11
11
|
import { CustomModelSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, ModelOverrideSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProviderConfigSchema, VercelGatewayRoutingSchema, getDefaultModelValues, init_models_json, loadModelsJson, modelsJsonExists, saveModelsJson, validateModelsConfig } from "./models-json.js";
|
|
@@ -26,4 +26,4 @@ init_workspace_path();
|
|
|
26
26
|
init_models_json();
|
|
27
27
|
init_resolve_config_value();
|
|
28
28
|
//#endregion
|
|
29
|
-
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, assertConfigRewriteSafeForRunningGateway, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcCloudCatalogCachePath, resolveXopcDatabasePath, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
|
|
29
|
+
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, assertConfigRewriteSafeForRunningGateway, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultChatModelConfig, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcCloudCatalogCachePath, resolveXopcDatabasePath, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
|
|
@@ -2126,6 +2126,7 @@ export interface ParsedModelRef {
|
|
|
2126
2126
|
model: string;
|
|
2127
2127
|
}
|
|
2128
2128
|
export declare function getAgentDefaultModelRef(): string | undefined;
|
|
2129
|
+
export declare function getAgentDefaultChatModelConfig(): AgentModelConfig | undefined;
|
|
2129
2130
|
export declare function getAgentDefaultImageModelConfig(): AgentModelConfig | undefined;
|
|
2130
2131
|
export declare function getAgentDefaultImageGenerationModelConfig(agentId: string): AgentImageGenerationModelConfig | undefined;
|
|
2131
2132
|
/** `provider/model` or null when invalid. */
|
|
@@ -16,6 +16,9 @@ import semver from "semver";
|
|
|
16
16
|
function getAgentDefaultModelRef() {
|
|
17
17
|
return getAgentDefaultModelsConfig()?.chat.primary;
|
|
18
18
|
}
|
|
19
|
+
function getAgentDefaultChatModelConfig() {
|
|
20
|
+
return getAgentDefaultModelsConfig()?.chat;
|
|
21
|
+
}
|
|
19
22
|
function getAgentDefaultModelsConfig(requestedAgentId) {
|
|
20
23
|
const catalog = new AgentCatalogRepository().snapshot();
|
|
21
24
|
const id = requestedAgentId?.trim() || catalog.defaultAgentId;
|
|
@@ -1146,4 +1149,4 @@ workDiscoveryOnboarding: z.boolean().default(true) }).strict().default({ workDis
|
|
|
1146
1149
|
}));
|
|
1147
1150
|
//#endregion
|
|
1148
1151
|
init_schema();
|
|
1149
|
-
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef };
|
|
1152
|
+
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelBrokerUrlSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultChatModelConfig, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config } from '../config/schema.js';
|
|
2
2
|
import type { SessionInput } from '../storage/sqlite/session-input-repository.js';
|
|
3
3
|
import { ComposioSessionsAdapter } from './composio-sessions.js';
|
|
4
|
-
import type { ConnectionWaitSnapshot } from '@xopcai/gateway-contract';
|
|
4
|
+
import type { ConnectionWait, ConnectionWaitSnapshot } from '@xopcai/gateway-contract';
|
|
5
5
|
export type ConnectionAction = {
|
|
6
6
|
waitId: string;
|
|
7
7
|
expectedTranscriptId: string;
|
|
@@ -37,6 +37,8 @@ export declare class ConnectionRecoveryService {
|
|
|
37
37
|
checkTimeoutMs?: number;
|
|
38
38
|
});
|
|
39
39
|
private get adapter();
|
|
40
|
+
cancelObjective(target: ConnectionWait): void;
|
|
41
|
+
continueObjective(target: ConnectionWait, idempotencyKey: string): Promise<void>;
|
|
40
42
|
private markChecking;
|
|
41
43
|
/** Readiness checks never execute the objective; late results cannot advance a newer wait. */
|
|
42
44
|
private boundedCheck;
|