@xopcai/xopc 0.0.277 → 0.0.278
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/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Cavbls0E.js → agent-avatar-dicebear-lRVOwbrK.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DyCyuJpi.js → agent-defaults-settings-panel-DAqn5DdL.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DlDTItrB.js → agents-DNQNTDkU.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-5gS0_LWl.js → app-management-settings-panel-oHTY5PDs.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-DHzZCJon.js → appearance-settings-B0YnZ3ig.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-__yzruGu.js → apps-page-Bh0etSmL.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-Ia98yZe3.js → archive-plugin-D4x142le.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-DiWW88c8.js → attachment-load-zibD2Hod.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BuhTeGRJ.js → automations-page-Dkp7gp_S.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DaisbmEh.js → automations-workspace-w4McwueN.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-DDD48cJv.js → binary-plugins-CfUzu1Hc.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-0AWVCD3F.js → block-editor-r5nCBBan.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-BKOYX5xV.js → browser-automations-page-BnL4JnTM.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-C7zjxscU.js → browser-settings-page-DxX-t0EJ.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-7kZMT1r6.js → capabilities-settings-panel-CvacBQAI.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-settings-BKUh6hzO.js → channels-settings-CJzSNo-L.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CW9Byi8V.js → chat-terminal-dock-CWVnJtBp.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-m8J-F3u8.js → connectors-page-DNBhBT0b.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-gdYmKC8W.js → date-picker-XjPSlgq_.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-40BYmiMc.js → dependency-picker-CkyfEP88.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-By1z6tKE.js → desktop-pet-BAE_NVx5.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-ByjJqx9H.js → desktop-pet-settings-BUw6V2R9.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CfWQfz7a.js → device-pairing-wizard-DsR5NQEC.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DQO65KbM.js → extension-debug-page-giBeIVUT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Db32jip6.js → extension-page-Bqo9bNtx.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-CL8Wx8lf.js → extension-settings-page-BX-6AA3k.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-wLly-Kc1.js → gateway-settings-Dil7vuyU.js} +1 -1
- package/dist/gateway/static/root/assets/{heartbeat-settings-CRXWu2q6.js → heartbeat-settings-DWFAopk_.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-FqgSwpmy.js → home-page-Dpeuvazg.js} +1 -1
- package/dist/gateway/static/root/assets/{index-5UchbidQ.js → index-B03HGpzt.js} +9 -9
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CjehhHPz.js → keyboard-shortcuts-settings-BKGPpBnV.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DtYZa4GK.js → local-app-workbench-page-CBtemxFc.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-CrIdaTrK.js → local-apps-page-B06ToOxB.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-FfSwV_VH.js → logs-page-DibI1GsP.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BakV5aOw.js → management-settings-DJ6yMZCd.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-Blv9U6Jp.js → media-plugins-CdrLNAks.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-JbvyGdEX.js → note-detail-panel-GOxomxOK.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-Dm7mE2FK.js → notes-page-CQBgk3_x.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-BQfVtLLC.js → page-tabs-B7LA4z-x.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-kjHFiO81.js → preview-open-alternatives-DTQRN7WR.js} +1 -1
- package/dist/gateway/static/root/assets/proactive-card-BF3741px.js +1 -0
- package/dist/gateway/static/root/assets/proactive-page-1EM217v0.js +1 -0
- package/dist/gateway/static/root/assets/{project-detail-page-h00lfcVI.js → project-detail-page-B1Pm-fQd.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-C2Bo1FAL.js → projects-page-DUrxyNR9.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-_bZYAl49.js → remote-access-hub-C6VzHUwx.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BhJlopSW.js → runtime-tools-settings-panel-D-DZf4I1.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-cxoO_5I1.js → schema-form-B-Yj9DVW.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-F7CHsvPa.js → sessions-page-DtemHfkv.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-ByEVQe0c.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BiRTWiBi.js → settings-form-section-BxPUqwY6.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-D-Cb71pq.js → settings-page-zLn8lIrs.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BwIrk3Jx.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-DciHfTay.js → share-preview-page-DAc_FkVc.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BS2pnWO0.js → shares-settings-Dwdv6QyS.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-DX344nVV.js → skill-reload-api-CDzQWN60.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-BhfKUsv7.js → skills-page-CO5XVkbY.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-CU7PALQB.js → skills-page.utils-BR5bk2vT.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-GpjNbqvM.js → system-settings-panel-C0ptJutB.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-DOjcKOzQ.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-Bhi_x_h4.js → tunnel-api-BABuQvGD.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-LvCiBidm.js → use-autosave-Dc5aN2px.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BydARq2C.js → user-model-page-UhsSP_pC.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-BlGysZxj.js → voice-api-key-field-CY0DpJui.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DvIQOR5x.js → work-discovery-overlay-Brg9yJBr.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-JIp60bXT.js → workflow-run-setup-panel-D3fq7boB.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-B972t6zx.js → workflows-page-S7XXNBWa.js} +1 -1
- package/dist/gateway/static/root/index.html +1 -1
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +17 -17
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/commands/command-isolation.d.ts +1 -0
- package/dist/src/agent/commands/command-isolation.js +17 -1
- package/dist/src/agent/commands/commandMounts.d.ts +2 -0
- package/dist/src/agent/commands/commandMounts.js +32 -0
- package/dist/src/agent/context/coordinator.js +3 -3
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.js +4 -4
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +5 -5
- package/dist/src/agent/embedded/run-turn.js +2 -2
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +2 -2
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -1
- package/dist/src/agent/memory/index.js +2 -2
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +5 -5
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/command-validator.js +0 -20
- package/dist/src/agent/sandbox/exec-policy.d.ts +1 -0
- package/dist/src/agent/sandbox/exec-policy.js +3 -3
- package/dist/src/agent/sandbox/fileAccess.d.ts +7 -0
- package/dist/src/agent/sandbox/fileAccess.js +100 -0
- package/dist/src/agent/sandbox/path-policy.d.ts +2 -0
- package/dist/src/agent/sandbox/path-policy.js +54 -17
- package/dist/src/agent/sandbox/sanitize-env-vars.js +10 -9
- package/dist/src/agent/service/direct-turn-helpers.js +6 -6
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +19 -19
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +3 -3
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +5 -5
- package/dist/src/agent/tools/apply-patch.js +25 -38
- package/dist/src/agent/tools/create-share-tool.js +13 -5
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +2 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +13 -13
- package/dist/src/agent/tools/find.js +5 -3
- package/dist/src/agent/tools/grep.js +21 -4
- package/dist/src/agent/tools/image-generate-tool.js +5 -6
- package/dist/src/agent/tools/index.js +5 -5
- package/dist/src/agent/tools/list-dir.js +2 -1
- package/dist/src/agent/tools/managed-job-tool.js +1 -0
- package/dist/src/agent/tools/publish-artifacts.js +4 -3
- package/dist/src/agent/tools/read.js +9 -6
- package/dist/src/agent/tools/repository-search.d.ts +2 -0
- package/dist/src/agent/tools/repository-search.js +51 -7
- package/dist/src/agent/tools/review-workspace.js +76 -10
- package/dist/src/agent/tools/send-media.js +5 -4
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tool-paths.js +3 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +6 -19
- package/dist/src/agent/tools/xopc-use-tool.js +6 -6
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-config/schema.d.ts +24 -0
- package/dist/src/agent-config/schema.js +2 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +2 -2
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +6 -6
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +21 -20
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tui.js +1 -1
- package/dist/src/cli/commands/tunnel.js +3 -3
- package/dist/src/cli/extension-cli-register.js +4 -4
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +16 -0
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/connection-recovery-service.js +3 -3
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/api.js +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +1 -1
- package/dist/src/extensions/loader.js +1 -1
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/gateway/agents-admin.js +4 -4
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/heartbeat/service.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/proactive-control.js +4 -4
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +25 -4
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +4 -4
- package/dist/src/gateway/hono/routes/user-model.js +4 -4
- package/dist/src/gateway/hono/routes/voice.js +3 -3
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +10 -10
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +4 -4
- package/dist/src/gateway/service/marketplace-service.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service.js +36 -36
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media-shared/http/ssrf-guard.js +1 -1
- package/dist/src/notes/agent-context.js +3 -3
- package/dist/src/proactive/actions/service.js +1 -1
- package/dist/src/proactive/execution/agent-executor.js +1 -1
- package/dist/src/proactive/execution/context.js +1 -1
- package/dist/src/proactive/execution/worker.js +1 -1
- package/dist/src/proactive/experience.js +7 -2
- package/dist/src/proactive/follow-ups.js +1 -1
- package/dist/src/proactive/inbox/cards.js +2 -2
- package/dist/src/proactive/inbox/delivery.js +2 -2
- package/dist/src/proactive/inbox/digest.js +2 -2
- package/dist/src/proactive/inbox/notification-policy.js +1 -1
- package/dist/src/proactive/inbox/repository.js +1 -1
- package/dist/src/proactive/inbox/service.js +1 -1
- package/dist/src/proactive/index.js +1 -1
- package/dist/src/proactive/temporal/worker.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +3 -3
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +6 -2
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +3 -3
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/task-application-service.js +78 -4
- package/dist/src/tasks/task-context-assembler.js +2 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +9 -9
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +5 -5
- package/dist/src/tui/tui.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/local/runtime-worker.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/local-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/service.js +3 -3
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +6 -6
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/proactive-card-Ap_wfos3.js +0 -1
- package/dist/gateway/static/root/assets/proactive-page-D1lEuanT.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DtZSUX4H.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-VPfBsNVv.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-CElcQ9Sh.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"minimum_chrome_version": "120",
|
|
4
4
|
"default_locale": "en",
|
|
5
5
|
"name": "__MSG_appName__",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.278",
|
|
7
7
|
"description": "__MSG_appDescription__",
|
|
8
8
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqnpr4vpLC/nmvy+wiOWk3SWlp2nEZkFijfk8ivGw7StNZgCK90nOMvwhdEtlkk3GOWDvdVnq8HxCsM3UNQ8FnGUyerpH1FJXqXuradxeHf8ZxFjiQU/mIWfnKbUuONWQORon3/pigyoXoK/VUXgg0Wbm/rbVwsS0bv+25R6m+mZgBspOLeKuoH7ivhL+48WV6POtMBsFPZweY26477EM7ukh+56Ff5ENevB8ymxBBn7qK5ZoeZd2a23U8ioX5TsHfe6fnrjitPWjIxD8G0NoKQxcaa/Mo+xs+T6UiLKxP0wjz5bm7jB5H+CXtkRJqzBWUB0h+RSLJckzZfA8BAJrRwIDAQAB",
|
|
9
9
|
"permissions": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeDistinctSenderIds } from "../../../../src/channels/pairing/preseed-allow-from.js";
|
|
2
2
|
import { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } from "../auth/app-registration.js";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
import { confirm, input, select } from "@inquirer/prompts";
|
|
5
5
|
//#region extensions/feishu/src/adapters/cli-login.ts
|
|
6
6
|
/**
|
|
@@ -11,14 +11,14 @@ import { confirm, input, select } from "@inquirer/prompts";
|
|
|
11
11
|
*/
|
|
12
12
|
function loadConfigFromPath(configPath) {
|
|
13
13
|
try {
|
|
14
|
-
const raw =
|
|
14
|
+
const raw = fsSync.readFileSync(configPath, "utf8");
|
|
15
15
|
return JSON.parse(raw);
|
|
16
16
|
} catch {
|
|
17
17
|
return {};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
function writeConfigToPath(configPath, config) {
|
|
21
|
-
|
|
21
|
+
fsSync.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
|
|
22
22
|
}
|
|
23
23
|
function isFeishuConfigured(config) {
|
|
24
24
|
const feishu = config.channels?.feishu;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { checkFileSafety } from "../../../../src/agent/prompt/safety.js";
|
|
2
1
|
import { getMimeType } from "../../../../src/channels/media.js";
|
|
3
2
|
import { getWorkspacePath } from "../../../../src/config/workspace-path-helpers.js";
|
|
3
|
+
import { checkFileSafety } from "../../../../src/agent/prompt/safety.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { promises } from "node:fs";
|
|
6
6
|
import { Readable } from "node:stream";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createLogger } from "../../../src/utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../../src/utils/logger.js";
|
|
3
3
|
import { resolveRoute } from "../../../src/routing/resolve-route.js";
|
|
4
|
-
import { normalizeTelegramCommandName, parseSlashCommand } from "../../../src/chat-commands/command-parse.js";
|
|
5
|
-
import { checkMentionInTranscription } from "../../../src/voice/stt/mention.js";
|
|
6
4
|
import { answerClarificationTextFromChannel } from "../../../src/gateway/clarify-runtime.js";
|
|
7
5
|
import { buildTelegramUpdateKey, telegramUpdateDedupe } from "./dedupe.js";
|
|
6
|
+
import { normalizeTelegramCommandName, parseSlashCommand } from "../../../src/chat-commands/command-parse.js";
|
|
8
7
|
import "../../../src/routing/index.js";
|
|
9
8
|
import { resolveTelegramGroupContext } from "./group-config-resolver.js";
|
|
10
9
|
import { buildTelegramConversationId } from "./conversation-id.js";
|
|
11
10
|
import { resolveTelegramFocusedSessionKey } from "./focus-handler.js";
|
|
11
|
+
import { checkMentionInTranscription } from "../../../src/voice/stt/mention.js";
|
|
12
12
|
//#region extensions/telegram/src/inbound-processor.ts
|
|
13
13
|
init_logger();
|
|
14
14
|
const log = createLogger("TelegramInboundProcessor");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../../../src/utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../../src/utils/logger.js";
|
|
3
|
-
import { createRetryRunner, isRecoverableNetworkError } from "../../../src/infra/retry.js";
|
|
4
3
|
import { buildSendOptions, parseDataUrl, resolveMediaMethod } from "./send-options.js";
|
|
5
4
|
import { splitTelegramCaption } from "./caption.js";
|
|
6
5
|
import { markdownToTelegramChunks, renderTelegramHtmlText } from "./format.js";
|
|
7
6
|
import { sentMessageCache } from "./sent-cache.js";
|
|
7
|
+
import { createRetryRunner, isRecoverableNetworkError } from "../../../src/infra/retry.js";
|
|
8
8
|
import { isTelegramHtmlParseError } from "./errors.js";
|
|
9
9
|
import { InputFile } from "grammy";
|
|
10
10
|
//#region extensions/telegram/src/outbound-sender.ts
|
|
@@ -2,16 +2,16 @@ import { createLogger } from "../../../src/utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../../src/utils/logger.js";
|
|
3
3
|
import { TelegramConfigSchema, init_config_schema } from "./config-schema.js";
|
|
4
4
|
import { registerChannelExecApprovalHandler } from "../../../src/channels/exec-approval-runtime.js";
|
|
5
|
-
import { isSTTAvailable } from "../../../src/voice/stt/availability.js";
|
|
6
|
-
import { generateSessionKey } from "../../../src/chat-commands/session-key.js";
|
|
7
5
|
import { resolveStandardPairingPath } from "../../../src/channels/pairing/paths.js";
|
|
8
6
|
import { issuePairingChallenge } from "../../../src/channels/pairing/pairing-challenge.js";
|
|
9
7
|
import { createStandardPairingAdapter } from "../../../src/channels/pairing/pairing-store-adapter.js";
|
|
10
8
|
import "./pairing-config-resolver.js";
|
|
9
|
+
import { generateSessionKey } from "../../../src/chat-commands/session-key.js";
|
|
11
10
|
import { answerClarificationChoiceFromChannel } from "../../../src/gateway/clarify-runtime.js";
|
|
12
11
|
import { createTimeoutAbortSignal } from "./timeout-abort.js";
|
|
13
12
|
import { createInboundDebouncer } from "../../../src/infra/debounce.js";
|
|
14
13
|
import { getMimeType } from "../../../src/channels/media.js";
|
|
14
|
+
import { isSTTAvailable } from "../../../src/voice/stt/availability.js";
|
|
15
15
|
import { TelegramAccountManager } from "./account-manager.js";
|
|
16
16
|
import { createOutboundSender } from "./outbound-sender.js";
|
|
17
17
|
import { createTelegramCommandHandler } from "./command-handler.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "telegram",
|
|
3
3
|
"name": "Telegram Channel",
|
|
4
4
|
"description": "Bundled Telegram Bot channel (private workspace sources; ships inside @xopcai/xopc dist/)",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.278",
|
|
6
6
|
"kind": "channel",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"channels": [
|
|
@@ -2,7 +2,7 @@ import { hasProxyEnv } from "../../../../src/infra/http-proxy-env.js";
|
|
|
2
2
|
import { logger } from "../util/logger.js";
|
|
3
3
|
import { redactBody, redactUrl } from "../util/redact.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import fsSync from "node:fs";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import crypto from "node:crypto";
|
|
8
8
|
import { Agent, EnvHttpProxyAgent, fetch as fetch$1 } from "undici";
|
|
@@ -11,7 +11,7 @@ function readPackageJson() {
|
|
|
11
11
|
try {
|
|
12
12
|
const dir = path.dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
const pkgPath = path.resolve(dir, "..", "..", "package.json");
|
|
14
|
-
return JSON.parse(
|
|
14
|
+
return JSON.parse(fsSync.readFileSync(pkgPath, "utf-8"));
|
|
15
15
|
} catch {
|
|
16
16
|
return {};
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@ import { normalizeWeixinAccountId } from "./weixin-account-id.js";
|
|
|
3
3
|
import { resolveWeixinRootDir } from "../storage/state-dir.js";
|
|
4
4
|
import { deleteGetUpdatesBuf } from "../storage/sync-buf.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fsSync from "node:fs";
|
|
7
7
|
//#region extensions/weixin/src/auth/accounts.ts
|
|
8
8
|
const DEFAULT_BASE_URL = "https://ilinkai.weixin.qq.com";
|
|
9
9
|
const CDN_BASE_URL = "https://novac2c.cdn.weixin.qq.com/c2c";
|
|
@@ -16,8 +16,8 @@ function resolveAccountIndexPath() {
|
|
|
16
16
|
function listIndexedWeixinAccountIds() {
|
|
17
17
|
const filePath = resolveAccountIndexPath();
|
|
18
18
|
try {
|
|
19
|
-
if (!
|
|
20
|
-
const raw =
|
|
19
|
+
if (!fsSync.existsSync(filePath)) return [];
|
|
20
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
21
21
|
const parsed = JSON.parse(raw);
|
|
22
22
|
if (!Array.isArray(parsed)) return [];
|
|
23
23
|
return parsed.filter((id) => typeof id === "string" && id.trim() !== "");
|
|
@@ -27,16 +27,16 @@ function listIndexedWeixinAccountIds() {
|
|
|
27
27
|
}
|
|
28
28
|
function registerWeixinAccountId(accountId) {
|
|
29
29
|
const dir = resolveWeixinStateDir();
|
|
30
|
-
|
|
30
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
31
31
|
const existing = listIndexedWeixinAccountIds();
|
|
32
32
|
if (existing.includes(accountId)) return;
|
|
33
33
|
const updated = [...existing, accountId];
|
|
34
|
-
|
|
34
|
+
fsSync.writeFileSync(resolveAccountIndexPath(), JSON.stringify(updated, null, 2), "utf-8");
|
|
35
35
|
}
|
|
36
36
|
function unregisterWeixinAccountId(accountId) {
|
|
37
37
|
const existing = listIndexedWeixinAccountIds();
|
|
38
38
|
const updated = existing.filter((id) => id !== accountId);
|
|
39
|
-
if (updated.length !== existing.length)
|
|
39
|
+
if (updated.length !== existing.length) fsSync.writeFileSync(resolveAccountIndexPath(), JSON.stringify(updated, null, 2), "utf-8");
|
|
40
40
|
}
|
|
41
41
|
function clearStaleAccountsForUserId(currentAccountId, userId, onClearContextTokens) {
|
|
42
42
|
if (!userId) return;
|
|
@@ -59,7 +59,7 @@ function resolveAccountPath(accountId) {
|
|
|
59
59
|
}
|
|
60
60
|
function readAccountFile(filePath) {
|
|
61
61
|
try {
|
|
62
|
-
if (
|
|
62
|
+
if (fsSync.existsSync(filePath)) return JSON.parse(fsSync.readFileSync(filePath, "utf-8"));
|
|
63
63
|
} catch {}
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -68,7 +68,7 @@ function loadWeixinAccount(accountId) {
|
|
|
68
68
|
}
|
|
69
69
|
function saveWeixinAccount(accountId, update) {
|
|
70
70
|
const dir = resolveAccountsDir();
|
|
71
|
-
|
|
71
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
72
72
|
const existing = loadWeixinAccount(accountId) ?? {};
|
|
73
73
|
const token = update.token?.trim() || existing.token;
|
|
74
74
|
const baseUrl = update.baseUrl?.trim() || existing.baseUrl;
|
|
@@ -82,9 +82,9 @@ function saveWeixinAccount(accountId, update) {
|
|
|
82
82
|
...userId ? { userId } : {}
|
|
83
83
|
};
|
|
84
84
|
const filePath = resolveAccountPath(accountId);
|
|
85
|
-
|
|
85
|
+
fsSync.writeFileSync(filePath, JSON.stringify(data, null, 2), "utf-8");
|
|
86
86
|
try {
|
|
87
|
-
|
|
87
|
+
fsSync.chmodSync(filePath, 384);
|
|
88
88
|
} catch {}
|
|
89
89
|
}
|
|
90
90
|
function clearWeixinAccount(accountId) {
|
|
@@ -92,10 +92,10 @@ function clearWeixinAccount(accountId) {
|
|
|
92
92
|
const dir = resolveAccountsDir();
|
|
93
93
|
const accountFiles = [`${accountId}.json`, `${accountId}.context-tokens.json`];
|
|
94
94
|
for (const file of accountFiles) try {
|
|
95
|
-
|
|
95
|
+
fsSync.unlinkSync(path.join(dir, file));
|
|
96
96
|
} catch {}
|
|
97
97
|
try {
|
|
98
|
-
|
|
98
|
+
fsSync.unlinkSync(resolveFrameworkAllowFromPath(accountId));
|
|
99
99
|
} catch {}
|
|
100
100
|
}
|
|
101
101
|
function weixinSection(cfg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { logger } from "../util/logger.js";
|
|
2
2
|
import { resolveWeixinRootDir } from "../storage/state-dir.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsSync from "node:fs";
|
|
5
5
|
//#region extensions/weixin/src/messaging/debug-mode.ts
|
|
6
6
|
/**
|
|
7
7
|
* Per-bot debug mode toggle, persisted to disk so it survives gateway restarts.
|
|
@@ -17,7 +17,7 @@ function resolveDebugModePath() {
|
|
|
17
17
|
}
|
|
18
18
|
function loadState() {
|
|
19
19
|
try {
|
|
20
|
-
const raw =
|
|
20
|
+
const raw = fsSync.readFileSync(resolveDebugModePath(), "utf-8");
|
|
21
21
|
const parsed = JSON.parse(raw);
|
|
22
22
|
if (parsed && typeof parsed.accounts === "object") return parsed;
|
|
23
23
|
} catch {}
|
|
@@ -25,8 +25,8 @@ function loadState() {
|
|
|
25
25
|
}
|
|
26
26
|
function saveState(state) {
|
|
27
27
|
const filePath = resolveDebugModePath();
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
29
|
+
fsSync.writeFileSync(filePath, JSON.stringify(state, null, 2), "utf-8");
|
|
30
30
|
}
|
|
31
31
|
/** Toggle debug mode for a bot account. Returns the new state. */
|
|
32
32
|
function toggleDebugMode(accountId) {
|
|
@@ -50,7 +50,7 @@ function isDebugMode(accountId) {
|
|
|
50
50
|
*/
|
|
51
51
|
function _resetForTest() {
|
|
52
52
|
try {
|
|
53
|
-
|
|
53
|
+
fsSync.unlinkSync(resolveDebugModePath());
|
|
54
54
|
} catch {}
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
@@ -4,7 +4,7 @@ import { MessageItemType } from "../api/types.js";
|
|
|
4
4
|
import { canonicalWeixinPeerId, normalizeWeixinAccountId } from "../auth/weixin-account-id.js";
|
|
5
5
|
import { resolveWeixinRootDir } from "../storage/state-dir.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
8
|
//#region extensions/weixin/src/messaging/inbound.ts
|
|
9
9
|
/**
|
|
10
10
|
* contextToken is issued per-message by the Weixin getupdates API and must
|
|
@@ -66,8 +66,8 @@ function persistContextTokens(accountId) {
|
|
|
66
66
|
const filePath = canonicalContextTokenFilePath(accountId);
|
|
67
67
|
try {
|
|
68
68
|
const dir = path.dirname(filePath);
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
70
|
+
fsSync.writeFileSync(filePath, JSON.stringify(tokens, null, 0), "utf-8");
|
|
71
71
|
} catch (err) {
|
|
72
72
|
logger.warn(`persistContextTokens: failed to write ${filePath}: ${String(err)}`);
|
|
73
73
|
}
|
|
@@ -81,8 +81,8 @@ function restoreContextTokens(accountId) {
|
|
|
81
81
|
const norm = normalizeWeixinAccountId(accountId);
|
|
82
82
|
const filePath = canonicalContextTokenFilePath(accountId);
|
|
83
83
|
try {
|
|
84
|
-
if (
|
|
85
|
-
const raw =
|
|
84
|
+
if (fsSync.existsSync(filePath)) {
|
|
85
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
86
86
|
const tokens = JSON.parse(raw);
|
|
87
87
|
for (const [userId, val] of Object.entries(tokens)) {
|
|
88
88
|
const entry = parsePersistedPeerVal(val);
|
|
@@ -104,7 +104,7 @@ function clearContextTokensForAccount(accountId) {
|
|
|
104
104
|
for (const k of [...contextTokenStore.keys()]) if (k.startsWith(prefix)) contextTokenStore.delete(k);
|
|
105
105
|
try {
|
|
106
106
|
const filePath = canonicalContextTokenFilePath(accountId);
|
|
107
|
-
if (
|
|
107
|
+
if (fsSync.existsSync(filePath)) fsSync.unlinkSync(filePath);
|
|
108
108
|
} catch (err) {
|
|
109
109
|
logger.warn(`clearContextTokensForAccount: failed to remove context tokens file: ${String(err)}`);
|
|
110
110
|
}
|
|
@@ -114,9 +114,9 @@ function tryHydratePeerEntryFromDisk(accountId, userId) {
|
|
|
114
114
|
const peer = normalizeIlinkUserIdForContext(userId);
|
|
115
115
|
const norm = normalizeWeixinAccountId(accountId);
|
|
116
116
|
const filePath = canonicalContextTokenFilePath(accountId);
|
|
117
|
-
if (!
|
|
117
|
+
if (!fsSync.existsSync(filePath)) return void 0;
|
|
118
118
|
try {
|
|
119
|
-
const raw =
|
|
119
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
120
120
|
const tokens = JSON.parse(raw);
|
|
121
121
|
for (const [jsonKey, val] of Object.entries(tokens)) {
|
|
122
122
|
const entry = parsePersistedPeerVal(val);
|
|
@@ -198,11 +198,11 @@ function findContextTokenEntriesByPeer(peerUserId) {
|
|
|
198
198
|
function tryHydrateAnyAccountContextTokenFromDisk(peerUserId) {
|
|
199
199
|
const peer = normalizeIlinkUserIdForContext(peerUserId);
|
|
200
200
|
const accountsDir = path.join(resolveWeixinRootDir(), "accounts");
|
|
201
|
-
if (!
|
|
201
|
+
if (!fsSync.existsSync(accountsDir)) return void 0;
|
|
202
202
|
const hits = [];
|
|
203
203
|
let names;
|
|
204
204
|
try {
|
|
205
|
-
names =
|
|
205
|
+
names = fsSync.readdirSync(accountsDir);
|
|
206
206
|
} catch {
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
@@ -212,7 +212,7 @@ function tryHydrateAnyAccountContextTokenFromDisk(peerUserId) {
|
|
|
212
212
|
const accountFromFile = name.slice(0, -20);
|
|
213
213
|
const filePath = path.join(accountsDir, name);
|
|
214
214
|
try {
|
|
215
|
-
const raw =
|
|
215
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
216
216
|
const tokens = JSON.parse(raw);
|
|
217
217
|
for (const [jsonKey, val] of Object.entries(tokens)) {
|
|
218
218
|
const entry = parsePersistedPeerVal(val);
|