@xopcai/xopc 0.0.407 → 0.0.409
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-CPNoFyoV.js → agent-avatar-dicebear-lMrejpsz.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-lXwR3Rff.js +1 -0
- package/dist/gateway/static/root/assets/agents-DFwBf95X.js +77 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-Cja3eV7H.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-Dzhmj_ZO.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-C3xbCdYa.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CNjE6PYZ.js → archive-plugin-D4r4P5uG.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BsP4j7Nw.js → automations-page-BlNe3DXU.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-CWvHbJBK.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-AFWJskT6.js → binary-plugins-DuN5L6lm.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-SQ53S4oy.js → block-editor-DUSVn51h.js} +4 -4
- package/dist/gateway/static/root/assets/browser-automation-inputs-D8bZ9iz2.js +1 -0
- package/dist/gateway/static/root/assets/browser-automations-page-BtvOURHQ.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-C_OeE79S.js +3 -0
- package/dist/gateway/static/root/assets/button-aIC072nz.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-BKF6q_tC.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-B7qOaUZs.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-oBPqUlbj.js +1 -0
- package/dist/gateway/static/root/assets/channels-3M9-anCN.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BC4EyhTx.js → chat-terminal-dock-BLs3NaOP.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-LaekhDG6.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-DJP1n1_n.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-DmQqMy6l.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-DVlbwrYg.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-BhElpD_6.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-B-RDVNqR.js → desktop-pet-ByvV-cDD.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-BBruQu-_.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-C3zOy8PO.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-1rEGI8IE.js → directory-picker-path-field-QZ0p-uNa.js} +1 -1
- package/dist/gateway/static/root/assets/dist-C3DSFZCi.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BaswNoXz.js → extension-debug-page-DoVPUHu_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-uCMJMnc_.js → extension-page-BNe8n3iJ.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DxNpjGJD.js +1 -0
- package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +1 -0
- package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +1 -0
- package/dist/gateway/static/root/assets/file-image-CDUPkZvG.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-CzrFZ0lB.js +1 -0
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +1 -0
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-B62h4sJ4.js → highlighted-body-KQOG7T2V-DrZq5KTj.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-cXmd8x0S.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-C6su4n9B.js +1 -0
- package/dist/gateway/static/root/assets/imports-page-CsXYryWS.js +1 -0
- package/dist/gateway/static/root/assets/index-BZlryZm8.css +1 -0
- package/dist/gateway/static/root/assets/index-uAJlrGvo.js +267 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-D1Q1kTMI.js → keyboard-shortcuts-settings-GYKLt0oF.js} +1 -1
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-Dw-i6VkX.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-DslilwNE.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-4N8bGPIE.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-CPmxI1k0.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-vQSMUUY_.js → markdown-view-Ljt0bhfF.js} +6 -6
- package/dist/gateway/static/root/assets/markdown-view-ixUWAmoy.css +1 -0
- package/dist/gateway/static/root/assets/{media-plugins-CrHXsih_.js → media-plugins-s6EqtAUQ.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Ba-WQCki.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-CjTm5gxS.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-hbSbEEfN.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-DkESStKc.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-eyzTNrCe.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-DZxbFQvF.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-BjVLbxZM.js +1 -0
- package/dist/gateway/static/root/assets/popover-select-DGKUpVsz.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-BW7P2akd.js → preview-open-alternatives-7pUtUL4O.js} +1 -1
- package/dist/gateway/static/root/assets/product-open-page-BPWSqtRt.js +1 -0
- package/dist/gateway/static/root/assets/product-preview-content-COo4zwp9.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-CrIH6nEy.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-D4swvBmH.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-DltfIMtv.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-CNCx2RnO.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-nRDA2XfI.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-CfYU53aw.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BJBoWYbO.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BA2RkU1S.js → settings-form-section-_ALUREPr.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-BUT0FzfI.js → settings-page-29ptuMYZ.js} +1 -1
- package/dist/gateway/static/root/assets/settings-shell-dialog-layer-BU3UuiJr.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-DZgVMRXr.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-C2LHd_Nl.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-C5MTc6t-.js +1 -0
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-BWi0G9Ii.js → skill-api-C-T0K7Oo.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BcdA9ezU.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-BMw8XbKL.js +2 -0
- package/dist/gateway/static/root/assets/style-DR0-RKaL.js +7 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DbS1qtOh.js → system-settings-panel-2Kr9Y-FJ.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-7kPco8Ys.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-D0ahXP9o.js → task-expandable-content-4s_FTl-9.js} +1 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-D53wxq60.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-DcDUSAjv.js +1 -0
- package/dist/gateway/static/root/assets/usage-page-Hut0SDqn.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-C4TUlpsu.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-KRy50OBd.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-C_iOzfIt.js → voice-api-key-field-CMdihbPb.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-Bd9HLsds.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-Lp6Vumxc.js → workflow-run-setup-panel-C9mAiHBd.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-CGg4GWwt.js +6 -0
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-ClQKM2RA.js +1 -0
- package/dist/gateway/static/root/index.html +14 -8
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +2 -2
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +1 -1
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/agent-plugins/cli-authorization.js +7 -3
- package/dist/src/extensions/agent-plugins/mcp-adapter.js +3 -1
- package/dist/src/extensions/agent-plugins/node-runtime.d.ts +5 -0
- package/dist/src/extensions/agent-plugins/node-runtime.js +14 -0
- package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/service.js +7 -7
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/imports/importService.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/personal-agent/communication.d.ts +1 -1
- package/dist/src/personal-agent/communication.js +1 -0
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/providers/domestic-presets.d.ts +12 -5
- package/dist/src/providers/domestic-presets.js +27 -28
- package/dist/src/providers/presentation.js +7 -19
- package/dist/src/providers/setup/engine.js +2 -2
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/session/client-history.js +3 -0
- package/dist/src/session/session-context-for-llm.js +4 -0
- package/dist/src/session/task-allocation-status.d.ts +2 -0
- package/dist/src/session/task-allocation-status.js +14 -0
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/task-allocation-repository.js +8 -5
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/package.json +8 -8
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BB0O3b4I.js +0 -1
- package/dist/gateway/static/root/assets/agents-Y7XtlqVm.js +0 -77
- package/dist/gateway/static/root/assets/app-management-settings-panel-BOAkMTQ7.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-BWPt4-vh.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Ln5N1PK3.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-lq17XY3n.js +0 -6
- package/dist/gateway/static/root/assets/browser-automation-inputs-C2SC9h-c.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-kRoqj1qn.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-dZhjL3oj.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-Dnp_ilKR.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BA9kBBqE.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-Cq5XWEDs.js +0 -1
- package/dist/gateway/static/root/assets/channels-BZCzeWtD.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-MxcoTOP1.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-tSQ3a_Ti.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-h5FTgews.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-CavoWXMc.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-Cl-3upFX.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-rttWyUzY.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-6hqiv1ui.js +0 -1
- package/dist/gateway/static/root/assets/ellipsis-0k4rZLoy.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DiczmHyl.js +0 -1
- package/dist/gateway/static/root/assets/eye-CABVeTq0.js +0 -1
- package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +0 -1
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-DH5MOwxf.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BsjMhloP.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-Di7HnFSL.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-DpKfYZMT.js +0 -1
- package/dist/gateway/static/root/assets/index-BUv4J0JN.js +0 -267
- package/dist/gateway/static/root/assets/index-Cr4I4q1J.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-CnaLbgJb.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-CSO0RkyG.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-DruO5LTf.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-Dw3tQKNe.js +0 -1
- package/dist/gateway/static/root/assets/markdown-view-Ct4sKkUf.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CNzdVIcE.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-DCZ6Vgd_.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-BXNZw7lJ.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-Bqy9Rh_j.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-DQHbuYER.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-C--WEB5c.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-Cwgc13ls.js +0 -1
- package/dist/gateway/static/root/assets/plugin-details-dialog-DxkFHaU-.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-BnlpaYs-.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-DkXx1Vt8.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CtyCpIx8.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-CJ0s-bI5.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-yItNjAR3.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-BGRbt79f.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-B9VP7ldU.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-3O5S9efw.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BE-SKsf6.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-1oWs6iPS.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-CVNey8Lq.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-Bb6YoDmU.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DspV2olR.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-SbNv1vpY.js +0 -2
- package/dist/gateway/static/root/assets/style-DlOTU5bN.js +0 -7
- package/dist/gateway/static/root/assets/task-detail-page-uSwizzx8.js +0 -2
- package/dist/gateway/static/root/assets/tracing-settings-page-BMhVvXXd.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-CO9rJLFh.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-DVzIDec4.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-DqPaXiX2.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-BYZCHCzG.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-n59s18s0.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-B5BqN1Y1.js +0 -6
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-QSDUy0uF.js +0 -1
|
@@ -5,9 +5,9 @@ import { endpointContextSchema } from "../../../../packages/gateway-contract/src
|
|
|
5
5
|
import { parseUserTurnDocument, userTurnDocumentRefIds } from "../../../../packages/gateway-contract/src/user-turn-document.js";
|
|
6
6
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
7
7
|
import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
8
|
-
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
9
8
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
10
9
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
10
|
+
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
11
11
|
import { getModelThinking } from "../../../providers/model-thinking.js";
|
|
12
12
|
import { parseTurnContextRefs } from "../../../agent/source-context/types.js";
|
|
13
13
|
import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
|
|
@@ -6,9 +6,9 @@ import { hasGatewayScope, init_gateway_scopes } from "../../security/gateway-sco
|
|
|
6
6
|
import { enqueueTaskChangedEvent, init_task_change_events } from "../../../tasks/task-change-events.js";
|
|
7
7
|
import { TaskRepository, init_task_repository } from "../../../tasks/task-repository.js";
|
|
8
8
|
import { TaskRunRepository, init_task_run_repository } from "../../../tasks/task-run-repository.js";
|
|
9
|
-
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
10
9
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
11
10
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
11
|
+
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
12
12
|
import { TaskCollaborationRepository } from "../../../tasks/task-collaboration-repository.js";
|
|
13
13
|
import { TaskCriterionReviewRepository } from "../../../tasks/task-criterion-review-repository.js";
|
|
14
14
|
import { TaskContextMutationOutputSchema } from "../../../tasks/capabilities/relations.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope } from "../agent/agent-scope.js";
|
|
4
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
4
5
|
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
5
6
|
import { resolveEffectiveAgentConfigForAgent } from "../config/agent-profile.js";
|
|
6
7
|
import { fetchWithTimeoutGuarded } from "../media-shared/http/provider-http.js";
|
|
7
8
|
import "../media-shared/http/index.js";
|
|
8
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
9
9
|
import { getImageGenerationProvider, listImageGenerationProvidersSummary } from "../agent/image/generation/provider-registry.js";
|
|
10
10
|
//#region src/gateway/image-generation-setup.ts
|
|
11
11
|
init_repository();
|
|
@@ -88,13 +88,6 @@ import { ChatPreviewService } from "../chat-previews/service.js";
|
|
|
88
88
|
import "../chat-previews/index.js";
|
|
89
89
|
import { configureGatewayHttpProxy } from "../infra/http-proxy-env.js";
|
|
90
90
|
import "../config/index.js";
|
|
91
|
-
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
92
|
-
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
93
|
-
import "../knowledge/index.js";
|
|
94
|
-
import { PersonalReplyComposer } from "../personal-agent/reply-composer.js";
|
|
95
|
-
import { ConnectionRecoveryService } from "../connectors/connection-recovery-service.js";
|
|
96
|
-
import { startConnectorLearningCoordinator } from "../connectors/learning-coordinator.js";
|
|
97
|
-
import { startConnectorSupervisor } from "../connectors/supervisor.js";
|
|
98
91
|
import { DiscussionService } from "../discussions/service.js";
|
|
99
92
|
import { DiscussionOrganizer } from "../discussions/organizer.js";
|
|
100
93
|
import { DiscussionLiveWorker } from "../discussions/live-worker.js";
|
|
@@ -103,6 +96,13 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
103
96
|
import "../discussions/index.js";
|
|
104
97
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
105
98
|
import "../endpoint-tools/index.js";
|
|
99
|
+
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
100
|
+
import { startConnectedKnowledgeCoordinator } from "../knowledge/coordinator.js";
|
|
101
|
+
import "../knowledge/index.js";
|
|
102
|
+
import { PersonalReplyComposer } from "../personal-agent/reply-composer.js";
|
|
103
|
+
import { ConnectionRecoveryService } from "../connectors/connection-recovery-service.js";
|
|
104
|
+
import { startConnectorLearningCoordinator } from "../connectors/learning-coordinator.js";
|
|
105
|
+
import { startConnectorSupervisor } from "../connectors/supervisor.js";
|
|
106
106
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
107
107
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
108
108
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../agent-config/schema.js";
|
|
2
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
4
5
|
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
5
6
|
import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
6
7
|
import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
7
8
|
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
8
9
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
9
10
|
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
10
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
11
11
|
import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
|
|
12
12
|
//#region src/gateway/xopc-cloud-capability-setup.ts
|
|
13
13
|
init_voice();
|
|
@@ -11,8 +11,8 @@ import { scanLocal } from "./scanner.js";
|
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { existsSync, lstatSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
14
|
-
import lockfile from "proper-lockfile";
|
|
15
14
|
import yaml from "js-yaml";
|
|
15
|
+
import lockfile from "proper-lockfile";
|
|
16
16
|
//#region src/imports/importService.ts
|
|
17
17
|
init_write_file_atomic();
|
|
18
18
|
init_logger();
|
|
@@ -5,10 +5,10 @@ import { currentOperationId, init_operation_context } from "../infra/operation-c
|
|
|
5
5
|
import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
6
6
|
import { ExtensionCapabilityBindingsSchema, extensionCapabilityPermissions } from "../../packages/gateway-contract/src/extension-capabilities.js";
|
|
7
7
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
8
|
+
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
8
9
|
import { init_paths, resolveExtensionsDir } from "../config/paths.js";
|
|
9
10
|
import { slugifyProjectName } from "../projects/project-store.js";
|
|
10
11
|
import { LocalAppStore } from "./store.js";
|
|
11
|
-
import { CapabilityError } from "../capabilities/runtime/errors.js";
|
|
12
12
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
13
13
|
import { validateLocalAppCapabilityContracts } from "./capabilities/contracts.js";
|
|
14
14
|
import { buildLocalAppFixGuidance } from "./fix-guidance.js";
|
|
@@ -2,6 +2,6 @@ export declare const PERSONAL_PREVIOUS_RESULT_COMMUNICATION = "For completed wor
|
|
|
2
2
|
export { PERSONAL_PERSONA_GUIDANCE } from './persona.js';
|
|
3
3
|
export declare const PERSONAL_RELIABILITY_RULES: readonly ["For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.", "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.", "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future notification preference belongs to that attention thread. Preserve unrelated settings. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.", "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."];
|
|
4
4
|
export declare const PRE_COMPACT_PERSONAL_COMMUNICATION_RULES: readonly [string, "The user is talking to you and entrusting you with an outcome. Keep ownership through delivery in this conversation. Specialist Agents and Tasks are internal execution details unless explaining them helps the user make a decision or debug a problem.", "Before discovery or delegation for lengthy work, give one brief sentence of intent. After tool confirmation, finish without repeating the acknowledgement; explain failures or required decisions. Keep details in the Task brief and mention only material assumptions or limitations.", "Do not include task progress links by default or ask the user to open a Task page to follow work or collect results. Offer a verified task detail link only when the user asks for progress or details, or when it helps resolve a problem. Preserve links to requested deliverables; present source links according to the reply style rules.", "Describe only the state confirmed by tool results. Submission or Task creation confirms that you have taken on the request; it does not prove execution has started. Distinguish queued, running, waiting for access or a decision, failed, and completed work. Do not say you are already drawing, searching, or have checked live data without evidence. Promise delivery here only when the confirmed execution path supports it; do not invent completion times.", "Keep routine progress private unless the user requests it. Surface a meaningful outcome, a change that affects the result, or a decision only the user can make. Resolve worker questions from the conversation first. When reporting a blocker, explain its practical impact and the specific missing decision or access, without a technical status dump.", "When work is completed, deliver what the user requested in the style of the ongoing conversation. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible where they matter. Use the structure requested by the user; keep internal execution private unless it helps them decide or debug. Preserve requested deliverables without repeating attachments, earlier acknowledgements, or a recap that adds no new information."];
|
|
5
|
-
export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.", "Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."];
|
|
5
|
+
export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.", "Hide submission, routing, and queue/start narration. Use the task card for routine status.", "Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."];
|
|
6
6
|
export declare const PERSONAL_WORKER_RESULT_GUIDANCE: string;
|
|
7
7
|
export declare const PERSONAL_PREVIOUS_DELEGATION_COMMUNICATION = "After successful delegation, acknowledge what you have taken on in one or two natural sentences, then finish the turn. Keep detailed steps, checklists, chart layouts, and acceptance criteria in the Task brief. Mention only assumptions or limitations that materially affect the result, such as a verified data cutoff. Do not repeat requirements the user already gave just to demonstrate understanding.";
|
|
@@ -23,6 +23,7 @@ const PERSONAL_COMMUNICATION_RULES = [
|
|
|
23
23
|
"Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.",
|
|
24
24
|
"Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.",
|
|
25
25
|
"Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.",
|
|
26
|
+
"Hide submission, routing, and queue/start narration. Use the task card for routine status.",
|
|
26
27
|
"Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."
|
|
27
28
|
];
|
|
28
29
|
const PERSONAL_WORKER_RESULT_GUIDANCE = [
|
|
@@ -2,13 +2,13 @@ import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js
|
|
|
2
2
|
import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
|
|
3
3
|
import { init_config_repository, setSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
5
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
5
6
|
import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
|
|
6
7
|
import { getAvailableModels, init_providers } from "../providers/index.js";
|
|
7
8
|
import { getPersonalAgent, personalAgentId } from "./repository.js";
|
|
8
9
|
import { PERSONAL_MAIN_TOOL_IDS, PERSONAL_READ_TOOL_ALIASES } from "./policy.js";
|
|
9
10
|
import { getModelThinking } from "../providers/model-thinking.js";
|
|
10
11
|
import { personalInstructions } from "./prompts.js";
|
|
11
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
12
12
|
import { completePersonalOnboarding } from "./onboarding.js";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
//#region src/personal-agent/service.ts
|
|
@@ -390,8 +390,15 @@ export declare const DOMESTIC_PROVIDER_PRESETS: readonly [{
|
|
|
390
390
|
readonly baseUrl: "https://api.xiaomimimo.com/v1";
|
|
391
391
|
}];
|
|
392
392
|
readonly defaultBaseUrlPreset: "api";
|
|
393
|
-
readonly defaultModel: "mimo-v2.
|
|
394
|
-
readonly models: DomesticProviderModelPreset[]
|
|
393
|
+
readonly defaultModel: "mimo-v2.6-pro";
|
|
394
|
+
readonly models: [...DomesticProviderModelPreset[], {
|
|
395
|
+
readonly id: "mimo-v2.6-pro-ultraspeed";
|
|
396
|
+
readonly name: "MiMo V2.6 Pro UltraSpeed";
|
|
397
|
+
readonly contextWindow: 1048576;
|
|
398
|
+
readonly maxTokens: 131072;
|
|
399
|
+
readonly reasoning: true;
|
|
400
|
+
readonly input: ["text", "image"];
|
|
401
|
+
}];
|
|
395
402
|
readonly aliases: ["xiaomi", "mimo", "xiaomimimo"];
|
|
396
403
|
readonly quirks: ["Some MiMo plans document api-key style auth; keep auth header behavior configurable if needed."];
|
|
397
404
|
}, {
|
|
@@ -409,7 +416,7 @@ export declare const DOMESTIC_PROVIDER_PRESETS: readonly [{
|
|
|
409
416
|
readonly baseUrl: "https://token-plan-cn.xiaomimimo.com/v1";
|
|
410
417
|
}];
|
|
411
418
|
readonly defaultBaseUrlPreset: "cn";
|
|
412
|
-
readonly defaultModel: "mimo-v2.
|
|
419
|
+
readonly defaultModel: "mimo-v2.6-pro";
|
|
413
420
|
readonly models: DomesticProviderModelPreset[];
|
|
414
421
|
readonly aliases: ["xiaomi token plan cn", "mimo token plan cn"];
|
|
415
422
|
}, {
|
|
@@ -427,7 +434,7 @@ export declare const DOMESTIC_PROVIDER_PRESETS: readonly [{
|
|
|
427
434
|
readonly baseUrl: "https://token-plan-ams.xiaomimimo.com/v1";
|
|
428
435
|
}];
|
|
429
436
|
readonly defaultBaseUrlPreset: "ams";
|
|
430
|
-
readonly defaultModel: "mimo-v2.
|
|
437
|
+
readonly defaultModel: "mimo-v2.6-pro";
|
|
431
438
|
readonly models: DomesticProviderModelPreset[];
|
|
432
439
|
readonly aliases: ["xiaomi token plan ams", "mimo token plan ams"];
|
|
433
440
|
}, {
|
|
@@ -445,7 +452,7 @@ export declare const DOMESTIC_PROVIDER_PRESETS: readonly [{
|
|
|
445
452
|
readonly baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1";
|
|
446
453
|
}];
|
|
447
454
|
readonly defaultBaseUrlPreset: "sgp";
|
|
448
|
-
readonly defaultModel: "mimo-v2.
|
|
455
|
+
readonly defaultModel: "mimo-v2.6-pro";
|
|
449
456
|
readonly models: DomesticProviderModelPreset[];
|
|
450
457
|
readonly aliases: ["xiaomi token plan sgp", "mimo token plan sgp"];
|
|
451
458
|
}, {
|
|
@@ -42,29 +42,21 @@ const STEPFUN_MODELS = [
|
|
|
42
42
|
input: ["text"]
|
|
43
43
|
}
|
|
44
44
|
];
|
|
45
|
-
const MIMO_MODELS = [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
id: "mimo-v2.5",
|
|
62
|
-
name: "MiMo V2.5",
|
|
63
|
-
contextWindow: 1e6,
|
|
64
|
-
reasoning: true,
|
|
65
|
-
input: ["text", "image"]
|
|
66
|
-
}
|
|
67
|
-
];
|
|
45
|
+
const MIMO_MODELS = [{
|
|
46
|
+
id: "mimo-v2.6-pro",
|
|
47
|
+
name: "MiMo V2.6 Pro",
|
|
48
|
+
contextWindow: 1048576,
|
|
49
|
+
maxTokens: 131072,
|
|
50
|
+
reasoning: true,
|
|
51
|
+
input: ["text", "image"]
|
|
52
|
+
}, {
|
|
53
|
+
id: "mimo-v2.6-flash",
|
|
54
|
+
name: "MiMo V2.6 Flash",
|
|
55
|
+
contextWindow: 1048576,
|
|
56
|
+
maxTokens: 131072,
|
|
57
|
+
reasoning: true,
|
|
58
|
+
input: ["text", "image"]
|
|
59
|
+
}];
|
|
68
60
|
const MINIMAX_MODELS = [
|
|
69
61
|
{
|
|
70
62
|
id: "MiniMax-M3",
|
|
@@ -527,8 +519,15 @@ const DOMESTIC_PROVIDER_PRESETS = [
|
|
|
527
519
|
baseUrl: "https://api.xiaomimimo.com/v1"
|
|
528
520
|
}],
|
|
529
521
|
defaultBaseUrlPreset: "api",
|
|
530
|
-
defaultModel: "mimo-v2.
|
|
531
|
-
models: MIMO_MODELS,
|
|
522
|
+
defaultModel: "mimo-v2.6-pro",
|
|
523
|
+
models: [...MIMO_MODELS, {
|
|
524
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
525
|
+
name: "MiMo V2.6 Pro UltraSpeed",
|
|
526
|
+
contextWindow: 1048576,
|
|
527
|
+
maxTokens: 131072,
|
|
528
|
+
reasoning: true,
|
|
529
|
+
input: ["text", "image"]
|
|
530
|
+
}],
|
|
532
531
|
aliases: [
|
|
533
532
|
"xiaomi",
|
|
534
533
|
"mimo",
|
|
@@ -551,7 +550,7 @@ const DOMESTIC_PROVIDER_PRESETS = [
|
|
|
551
550
|
baseUrl: "https://token-plan-cn.xiaomimimo.com/v1"
|
|
552
551
|
}],
|
|
553
552
|
defaultBaseUrlPreset: "cn",
|
|
554
|
-
defaultModel: "mimo-v2.
|
|
553
|
+
defaultModel: "mimo-v2.6-pro",
|
|
555
554
|
models: MIMO_MODELS,
|
|
556
555
|
aliases: ["xiaomi token plan cn", "mimo token plan cn"]
|
|
557
556
|
},
|
|
@@ -570,7 +569,7 @@ const DOMESTIC_PROVIDER_PRESETS = [
|
|
|
570
569
|
baseUrl: "https://token-plan-ams.xiaomimimo.com/v1"
|
|
571
570
|
}],
|
|
572
571
|
defaultBaseUrlPreset: "ams",
|
|
573
|
-
defaultModel: "mimo-v2.
|
|
572
|
+
defaultModel: "mimo-v2.6-pro",
|
|
574
573
|
models: MIMO_MODELS,
|
|
575
574
|
aliases: ["xiaomi token plan ams", "mimo token plan ams"]
|
|
576
575
|
},
|
|
@@ -589,7 +588,7 @@ const DOMESTIC_PROVIDER_PRESETS = [
|
|
|
589
588
|
baseUrl: "https://token-plan-sgp.xiaomimimo.com/v1"
|
|
590
589
|
}],
|
|
591
590
|
defaultBaseUrlPreset: "sgp",
|
|
592
|
-
defaultModel: "mimo-v2.
|
|
591
|
+
defaultModel: "mimo-v2.6-pro",
|
|
593
592
|
models: MIMO_MODELS,
|
|
594
593
|
aliases: ["xiaomi token plan sgp", "mimo token plan sgp"]
|
|
595
594
|
},
|
|
@@ -54,7 +54,7 @@ const PROVIDER_HINTS = {
|
|
|
54
54
|
deepseek: "DeepSeek V4 models with strong price/performance.",
|
|
55
55
|
moonshotai: "Kimi models through Moonshot International.",
|
|
56
56
|
"moonshotai-cn": "Kimi models through Moonshot China.",
|
|
57
|
-
"kimi-coding": "Kimi dedicated coding endpoint with
|
|
57
|
+
"kimi-coding": "Kimi dedicated coding endpoint with OpenAI-compatible Chat Completions requests.",
|
|
58
58
|
stepfun: "StepFun OpenAI-compatible endpoint.",
|
|
59
59
|
"stepfun-cn": "StepFun China OpenAI-compatible endpoint.",
|
|
60
60
|
"stepfun-intl": "StepFun international OpenAI-compatible endpoint.",
|
|
@@ -184,25 +184,13 @@ const RECOMMENDED_MODEL_PATTERNS = {
|
|
|
184
184
|
/^step-3\.5-flash$/i
|
|
185
185
|
],
|
|
186
186
|
xiaomi: [
|
|
187
|
-
/^mimo-v2\.
|
|
188
|
-
/^mimo-v2\.
|
|
189
|
-
/^mimo-v2\.
|
|
190
|
-
],
|
|
191
|
-
"xiaomi-token-plan-cn": [
|
|
192
|
-
/^mimo-v2\.5-pro$/i,
|
|
193
|
-
/^mimo-v2\.5-pro-ultraspeed$/i,
|
|
194
|
-
/^mimo-v2\.5$/i
|
|
195
|
-
],
|
|
196
|
-
"xiaomi-token-plan-ams": [
|
|
197
|
-
/^mimo-v2\.5-pro$/i,
|
|
198
|
-
/^mimo-v2\.5-pro-ultraspeed$/i,
|
|
199
|
-
/^mimo-v2\.5$/i
|
|
200
|
-
],
|
|
201
|
-
"xiaomi-token-plan-sgp": [
|
|
202
|
-
/^mimo-v2\.5-pro$/i,
|
|
203
|
-
/^mimo-v2\.5-pro-ultraspeed$/i,
|
|
204
|
-
/^mimo-v2\.5$/i
|
|
187
|
+
/^mimo-v2\.6-pro$/i,
|
|
188
|
+
/^mimo-v2\.6-pro-ultraspeed$/i,
|
|
189
|
+
/^mimo-v2\.6-flash$/i
|
|
205
190
|
],
|
|
191
|
+
"xiaomi-token-plan-cn": [/^mimo-v2\.6-pro$/i, /^mimo-v2\.6-flash$/i],
|
|
192
|
+
"xiaomi-token-plan-ams": [/^mimo-v2\.6-pro$/i, /^mimo-v2\.6-flash$/i],
|
|
193
|
+
"xiaomi-token-plan-sgp": [/^mimo-v2\.6-pro$/i, /^mimo-v2\.6-flash$/i],
|
|
206
194
|
"ant-ling": [
|
|
207
195
|
/^Ling-2\.6-1T$/i,
|
|
208
196
|
/^Ling-2\.6-flash$/i,
|
|
@@ -20,8 +20,8 @@ const preferred = {
|
|
|
20
20
|
reasoning: ["advanced", "auto"]
|
|
21
21
|
},
|
|
22
22
|
"xiaomi-token-plan-cn": {
|
|
23
|
-
fast: ["mimo-v2.
|
|
24
|
-
reasoning: ["mimo-v2.
|
|
23
|
+
fast: ["mimo-v2.6-flash", "mimo-v2.6-pro"],
|
|
24
|
+
reasoning: ["mimo-v2.6-pro", "mimo-v2.6-flash"]
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
const uses = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RuntimeError } from "./errors.js";
|
|
2
2
|
import { isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
|
-
import AdmZip from "adm-zip";
|
|
5
4
|
import { lstat, mkdir, readdir, readlink, rename, rm, stat } from "node:fs/promises";
|
|
5
|
+
import AdmZip from "adm-zip";
|
|
6
6
|
//#region src/runtime-tools/archive.ts
|
|
7
7
|
const MAX_ARCHIVE_ENTRIES = 5e4;
|
|
8
8
|
const MAX_TAR_OUTPUT_BYTES = 16 * 1024 * 1024;
|
|
@@ -3,10 +3,12 @@ import { isUserTurnDocument } from "../../packages/gateway-contract/src/user-tur
|
|
|
3
3
|
import { parseTaskResultDelivery } from "../../packages/gateway-contract/src/task-result-delivery.js";
|
|
4
4
|
import { PersonalProvenanceSchema, parsePersonalProactiveMessage } from "../../packages/gateway-contract/src/personal-proactivity.js";
|
|
5
5
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
6
|
+
import { init_task_allocation_status, isRoutineTaskAllocationStatus } from "./task-allocation-status.js";
|
|
6
7
|
import { stripRuntimeContextFromUserMessage } from "./user-message-display.js";
|
|
7
8
|
import { buildTranscriptOutline } from "./transcript-outline.js";
|
|
8
9
|
//#region src/session/client-history.ts
|
|
9
10
|
init_src();
|
|
11
|
+
init_task_allocation_status();
|
|
10
12
|
function taskTriggerFromMetadata(metadata) {
|
|
11
13
|
if (!metadata || typeof metadata !== "object" || Array.isArray(metadata)) return void 0;
|
|
12
14
|
const value = metadata.taskTrigger;
|
|
@@ -329,6 +331,7 @@ function customRowToClientHistory(row) {
|
|
|
329
331
|
if (r.role !== "custom" && r.type !== "custom_message") return null;
|
|
330
332
|
const customType = optionalString(r.customType)?.trim();
|
|
331
333
|
if (!customType) return null;
|
|
334
|
+
if (customType === "task_allocation_status" && (r.display === false || isRoutineTaskAllocationStatus(r.details))) return null;
|
|
332
335
|
if (customType === "personal_request_status" || customType === "task_allocation_status") {
|
|
333
336
|
const content = typeof r.content === "string" ? r.content : "";
|
|
334
337
|
return {
|
|
@@ -2,6 +2,7 @@ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { parseTaskResultDelivery } from "../../packages/gateway-contract/src/task-result-delivery.js";
|
|
3
3
|
import { parsePersonalProactiveMessage } from "../../packages/gateway-contract/src/personal-proactivity.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
|
+
import { init_task_allocation_status, isRoutineTaskAllocationStatus } from "./task-allocation-status.js";
|
|
5
6
|
import { init_voice_transcript, voiceTranscriptMessage } from "./voice-transcript.js";
|
|
6
7
|
import { init_compaction_types, isCompactionAudit, isCompactionHandover } from "./compaction-types.js";
|
|
7
8
|
//#region src/session/session-context-for-llm.ts
|
|
@@ -297,6 +298,7 @@ function buildSessionContextForLlm(rows) {
|
|
|
297
298
|
continue;
|
|
298
299
|
}
|
|
299
300
|
if (isTranscriptCustomMessageEntry(r)) {
|
|
301
|
+
if (r.customType === "task_allocation_status" && isRoutineTaskAllocationStatus(r.details)) continue;
|
|
300
302
|
if (r.customType === "personal_request_status" || r.customType === "connection_control_status") continue;
|
|
301
303
|
if (r.customType === "personal_proactive_message") {
|
|
302
304
|
const message = parsePersonalProactiveMessage(r.details);
|
|
@@ -352,6 +354,7 @@ function buildSessionDisplayMessages(rows) {
|
|
|
352
354
|
const out = [];
|
|
353
355
|
for (const r of rows) {
|
|
354
356
|
if (isTranscriptCustomMessageEntry(r)) {
|
|
357
|
+
if (r.customType === "task_allocation_status" && isRoutineTaskAllocationStatus(r.details)) continue;
|
|
355
358
|
if (r.customType === "personal_request_status" || r.customType === "connection_control_status") {
|
|
356
359
|
out.push({
|
|
357
360
|
role: "assistant",
|
|
@@ -427,6 +430,7 @@ function mergeLlmMessagesPreservingContextRows(prevRows, llmMessages) {
|
|
|
427
430
|
var LLM_ROLES;
|
|
428
431
|
var init_session_context_for_llm = __esmMin((() => {
|
|
429
432
|
init_src();
|
|
433
|
+
init_task_allocation_status();
|
|
430
434
|
init_voice_transcript();
|
|
431
435
|
init_compaction_types();
|
|
432
436
|
LLM_ROLES = new Set([
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/session/task-allocation-status.ts
|
|
3
|
+
/** Routine allocation receipts remain available for audit, outside the conversation. */
|
|
4
|
+
function isRoutineTaskAllocationStatus(details) {
|
|
5
|
+
if (!details || typeof details !== "object") return false;
|
|
6
|
+
const allocation = details.allocation;
|
|
7
|
+
if (!allocation || typeof allocation !== "object") return false;
|
|
8
|
+
const status = allocation.status;
|
|
9
|
+
return status === "pending" || status === "selecting" || status === "assigned";
|
|
10
|
+
}
|
|
11
|
+
var init_task_allocation_status = __esmMin((() => {}));
|
|
12
|
+
//#endregion
|
|
13
|
+
init_task_allocation_status();
|
|
14
|
+
export { init_task_allocation_status, isRoutineTaskAllocationStatus };
|
|
@@ -2,10 +2,10 @@ import { ProductReadContracts } from "../../../packages/gateway-contract/src/cap
|
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
|
-
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
6
|
-
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
7
5
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
8
6
|
import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
+
import { TaskReadModelProjector } from "../task-read-model-projector.js";
|
|
8
|
+
import { TaskConversationRepository } from "../task-conversation-repository.js";
|
|
9
9
|
import { TaskContextRepository } from "../task-context-repository.js";
|
|
10
10
|
import { TaskDependencyService } from "../task-dependency-service.js";
|
|
11
11
|
import { TaskCriterionReviewRepository } from "../task-criterion-review-repository.js";
|
|
@@ -2,9 +2,9 @@ import { TaskCommandRequestSchema, TaskCreateRequestSchema, TaskDetailResponseSc
|
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
3
|
import { TaskRepository, init_task_repository } from "../task-repository.js";
|
|
4
4
|
import { TaskRunRepository, init_task_run_repository } from "../task-run-repository.js";
|
|
5
|
-
import { resolveTaskLocale } from "../task-language.js";
|
|
6
5
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
7
6
|
import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
|
|
7
|
+
import { resolveTaskLocale } from "../task-language.js";
|
|
8
8
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
9
9
|
import { resolveResponseLanguageForSession } from "../../agent/prompt/response-language.js";
|
|
10
10
|
import { TaskApplicationService } from "../task-application-service.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { afterSqliteCommit, getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
2
2
|
import { enqueueTaskChangedEvent, init_task_change_events } from "./task-change-events.js";
|
|
3
|
+
import { init_task_allocation_status, isRoutineTaskAllocationStatus } from "../session/task-allocation-status.js";
|
|
3
4
|
import { appendTranscriptEntry, init_transcript_repository } from "../storage/sqlite/transcript-repository.js";
|
|
4
5
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
5
6
|
import { resolveTaskLocale } from "./task-language.js";
|
|
@@ -7,6 +8,7 @@ import { randomUUID } from "node:crypto";
|
|
|
7
8
|
//#region src/tasks/task-allocation-repository.ts
|
|
8
9
|
init_transaction();
|
|
9
10
|
init_transcript_repository();
|
|
11
|
+
init_task_allocation_status();
|
|
10
12
|
init_task_change_events();
|
|
11
13
|
var TaskAllocationRepository = class {
|
|
12
14
|
get(taskId) {
|
|
@@ -57,15 +59,16 @@ var TaskAllocationRepository = class {
|
|
|
57
59
|
if (!row) return;
|
|
58
60
|
const db = getSqliteDatabase();
|
|
59
61
|
const task = db.prepare("SELECT version, project_id FROM tasks WHERE task_id = ?").get(taskId);
|
|
62
|
+
const details = {
|
|
63
|
+
taskId,
|
|
64
|
+
allocation: this.summary(taskId)
|
|
65
|
+
};
|
|
60
66
|
appendTranscriptEntry(row.origin_conversation_id, {
|
|
61
67
|
role: "custom",
|
|
62
68
|
customType: "task_allocation_status",
|
|
63
69
|
content,
|
|
64
|
-
display:
|
|
65
|
-
details
|
|
66
|
-
taskId,
|
|
67
|
-
allocation: this.summary(taskId)
|
|
68
|
-
},
|
|
70
|
+
display: !isRoutineTaskAllocationStatus(details),
|
|
71
|
+
details,
|
|
69
72
|
timestamp: Date.now()
|
|
70
73
|
});
|
|
71
74
|
enqueueTaskChangedEvent(db, {
|
|
@@ -10,6 +10,7 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
10
10
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
11
11
|
import { normalizeAgentId } from "../../agent-catalog/id.js";
|
|
12
12
|
import { init_agent_scope, listAgentEntries } from "../../agent/agent-scope.js";
|
|
13
|
+
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
13
14
|
import { init_paths } from "../../config/paths.js";
|
|
14
15
|
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
15
16
|
import { init_agent_session_key, resolveAgentIdFromConversationId } from "../../routing/agent-session-key.js";
|
|
@@ -23,7 +24,6 @@ import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
|
23
24
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
24
25
|
import { createCreateShareTool, isShareToolAvailable } from "../../agent/tools/create-share-tool.js";
|
|
25
26
|
import { evictEmbeddedSessionRunner } from "../../agent/embedded/session-runner.js";
|
|
26
|
-
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
27
27
|
import { SessionIndex } from "../../session/manager.js";
|
|
28
28
|
import "../../session/index.js";
|
|
29
29
|
import { parseModelRef } from "../../agent/models/selection.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { init_agent_scope, resolveAgentProfileDir } from "../../agent/agent-scope.js";
|
|
2
|
-
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
3
2
|
import { DEFAULT_SOUL_FILENAME } from "../../agent/context/workspace.js";
|
|
3
|
+
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
4
4
|
import { loadProfileBootstrapFiles } from "../../agent/bootstrap/load-bootstrap-files.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { statSync } from "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.409",
|
|
4
4
|
"description": "Local-first personal AI with Ada, task delegation, files, projects, workflows, and automations. Use cloud or local models.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"@composio/core": "0.21.0",
|
|
70
70
|
"@dicebear/collection": "9.4.2",
|
|
71
71
|
"@dicebear/core": "9.4.2",
|
|
72
|
-
"@earendil-works/chord": "1.
|
|
73
|
-
"@earendil-works/pi-agent-core": "1.
|
|
74
|
-
"@earendil-works/pi-ai": "1.
|
|
75
|
-
"@earendil-works/pi-codemode": "1.
|
|
76
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
77
|
-
"@earendil-works/pi-mcp": "1.
|
|
78
|
-
"@earendil-works/pi-tui": "1.
|
|
72
|
+
"@earendil-works/chord": "1.4.0",
|
|
73
|
+
"@earendil-works/pi-agent-core": "1.4.0",
|
|
74
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
75
|
+
"@earendil-works/pi-codemode": "1.4.0",
|
|
76
|
+
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
77
|
+
"@earendil-works/pi-mcp": "1.4.0",
|
|
78
|
+
"@earendil-works/pi-tui": "1.4.0",
|
|
79
79
|
"@grammyjs/runner": "^2.0.3",
|
|
80
80
|
"@hono/node-server": "^2.0.4",
|
|
81
81
|
"@inquirer/prompts": "^8.5.0",
|