@xopcai/xopc 0.0.356 → 0.0.357
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-i0dJX4Ag.js → agent-avatar-dicebear-5q-LyRB2.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-C-gsYOIi.js → agent-defaults-settings-panel-BOojrPNq.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-D00xRE50.js → agent-plugin-dialog-3fkKAT0r.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-Bg90PJpR.js → agents-DJyRK5vN.js} +3 -3
- package/dist/gateway/static/root/assets/{app-management-settings-panel-LGezxe7p.js → app-management-settings-panel-8ODazg-Y.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-By7sj-tH.js → appearance-settings-0G9nGAsa.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DRX7wRpG.js → apps-page-CJyfU05v.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-B5ZRVvra.js → automations-page-egZn4y94.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-CQmwjCm5.js → automations-workspace-CI1EK1eb.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-C8eM0IQi.js → block-editor-Bi-NBvGE.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DonJaYJ7.js → browser-automations-page-D2AYNyC2.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-Cku_iTDi.js → browser-settings-page-DVMJRsch.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-gUGN48Ob.js → capabilities-page-CBdEzKy1.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-C3pM7xZ1.js → capabilities-settings-panel-B7f1WLgL.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-aXDBY-4S.js → capability-header-actions-BuYo4ONV.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-BSbO91V4.js → channels-COGpGGqA.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-Bn_O5W2o.js → chat-terminal-dock-DJnrcf3F.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CqzDwqcT.js → computer-settings-page-CbKp1tj0.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-BYq8YaSp.js → connector-service-page-BxJquXDl.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CXVlZmoT.js → connectors-page-DJocZ_mY.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-dIJ4tP-C.js → date-picker-CYQyKepm.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-ktHB4hRk.js → dependency-picker-dc-q0G_j.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BqXL3Ivw.js → desktop-pet-gvvvaJ51.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BspF0vWW.js → desktop-pet-settings-w8qYvD9r.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CnADxQU1.js → device-pairing-wizard-CAQ2qJIZ.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-CyR-4zZC.js → directory-picker-path-field-BfJOJnPB.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CWqtFuVa.js → extension-page-BpyU7d5e.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-92wO2TEf.js → extension-settings-page-BlzNJ6hK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-CO_50TOx.js → gateway-settings-DyreTpro.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-Ba20kfpf.js → home-page-rKyHpQpb.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-ciLLYJao.js → imports-page-BHUlyE3u.js} +1 -1
- package/dist/gateway/static/root/assets/{index-XgbDpmNc.js → index-DOFuObNM.js} +4 -4
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-7429mJN3.js → keyboard-shortcuts-settings-Pb-3Ryr9.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CQyP9KBM.js → local-app-workbench-page-yWS0QdRe.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Cht3NkYu.js → local-apps-page-DgQHDdZh.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-Bye3bESN.js → logs-page-CwTIW0J0.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BG2yeKtz.js → management-settings-Dm2Fa1QY.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-DA_6YKSN.js → note-detail-panel-D9iPUCQq.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-page-kc3CMA5c.js → notes-page-CbzhN_on.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-r0vf-oBH.js → page-context-capture-button-B6i0R1qQ.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-CmZzN99O.js → personal-page-DopSoSDc.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BdedC52J.js → product-open-page-CMmB1iyB.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-b23nMTcO.js → project-detail-page-BrGdrlhx.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DCA7oEdB.js → projects-page-CmjHjX8D.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-DeK3ATTQ.js → remote-access-hub-WKPLG5V4.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BqD6oWU5.js → runtime-tools-settings-panel-D1IEye-5.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-Ds6trhfL.js → scenes-page-CDxjO8IH.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-D-cjcRAn.js → schema-form-DrSp5o9r.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-DltxWUQd.js → sessions-page-tL7mZG6X.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Dq5CfiKV.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-BVfsQrWS.js → settings-page-CLx4gCfD.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DqkS3DKy.js → setup-status-panel-TBkyBEiM.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-CEaRXDeL.js → shares-settings-Bz0BI8lL.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-1Hp370EM.js → skill-api-Bom72qsC.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-Cgze-HZy.js → skills-page-BIQrMkmI.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-CFSQ3Qjr.js → system-settings-panel-CzAezoel.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DEDh0FPJ.js → task-detail-page-GOqAjMLD.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-WcqOMVcQ.js → tunnel-api-DtkDWId1.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-C6cnfavb.js → usage-page-ZKtrJ73f.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-C6_GMD0W.js → user-model-page-B6E9ihaw.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DVvqH1d-.js → work-discovery-overlay-cD0OrAiy.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-MDkhjfGm.js → workflow-run-setup-panel-4yISOYK9.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-Bhu13vVb.js → workflows-page-B2_1T6js.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 +15 -15
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- 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 +3 -3
- package/dist/src/agent/data-acquisition/service.js +1 -1
- 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 +4 -4
- package/dist/src/agent/embedded/run-turn.js +5 -5
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +3 -3
- 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 +2 -2
- 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-config.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-stdio-transport.js +1 -1
- 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/mcp/plugin-http-fetch.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- 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 +22 -22
- package/dist/src/agent/session/session-config-service.js +1 -1
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/hub-lock.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/source-context/index.js +2 -2
- package/dist/src/agent/tasks/task-judge-service.js +4 -4
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +16 -16
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +2 -2
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -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 +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +5 -5
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.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/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/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +3 -3
- 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 +3 -3
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +2 -2
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +4 -4
- 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/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.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/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +5 -5
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/index.js +8 -8
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +2 -2
- package/dist/src/config/schema.js +1 -1
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-understanding.js +3 -3
- package/dist/src/connectors/connection-recovery-service.js +5 -5
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/plugin-mcp-recovery.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- 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 +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/home.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 +6 -6
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +4 -4
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
- package/dist/src/gateway/hono/routes/session-input-handler.js +4 -4
- package/dist/src/gateway/hono/routes/sessions.js +2 -2
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +5 -5
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +3 -3
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.js +37 -37
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.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 +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/personal-agent/onboarding.d.ts +1 -1
- package/dist/src/personal-agent/service.d.ts +10 -4
- package/dist/src/personal-agent/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-catalog-persistence.js +1 -1
- 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/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +4 -4
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +4 -4
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/share-zip.js +1 -1
- package/dist/src/share/site-proxy.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/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.js +1 -1
- 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 +4 -4
- package/dist/src/tasks/task-application-service.js +3 -3
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-main-update-decision-service.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- 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 +8 -8
- package/dist/src/tui/tui-oauth-login.js +1 -1
- 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 +4 -4
- package/dist/src/tui/tui.js +7 -7
- package/dist/src/tunnel/frpc-binary.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/realtime/agentEngine.js +30 -11
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +4 -4
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-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/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/service.js +5 -5
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +6 -6
- package/dist/gateway/static/root/assets/settings-advanced-gate-Bqg7glTa.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.357",
|
|
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 fs 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 = fs.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
|
+
fs.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";
|
|
1
2
|
import { getMimeType } from "../../../../src/channels/media.js";
|
|
2
3
|
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 { checkMentionInTranscription } from "../../../src/voice/stt/mention.js";
|
|
5
|
+
import { normalizeTelegramCommandName, parseSlashCommand } from "../../../src/chat-commands/command-parse.js";
|
|
4
6
|
import { answerClarificationTextFromChannel } from "../../../src/gateway/clarify-runtime.js";
|
|
5
7
|
import { buildTelegramUpdateKey, telegramUpdateDedupe } from "./dedupe.js";
|
|
6
|
-
import { normalizeTelegramCommandName, parseSlashCommand } from "../../../src/chat-commands/command-parse.js";
|
|
7
8
|
import "../../../src/routing/index.js";
|
|
8
9
|
import { resolveTelegramGroupContext } from "./group-config-resolver.js";
|
|
9
10
|
import { buildTelegramConversationId } from "./conversation-id.js";
|
|
10
11
|
import { resolveTelegramFocusedConversationId } 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";
|
|
3
4
|
import { buildSendOptions, parseDataUrl, resolveMediaMethod } from "./send-options.js";
|
|
4
5
|
import { splitTelegramCaption } from "./caption.js";
|
|
5
6
|
import { markdownToTelegramChunks, renderTelegramHtmlText } from "./format.js";
|
|
6
7
|
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
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
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
|
+
import { isSTTAvailable } from "../../../src/voice/stt/availability.js";
|
|
4
5
|
import { registerChannelExecApprovalHandler } from "../../../src/channels/exec-approval-runtime.js";
|
|
6
|
+
import { generateConversationId } from "../../../src/chat-commands/session-key.js";
|
|
5
7
|
import { resolveStandardPairingPath } from "../../../src/channels/pairing/paths.js";
|
|
6
8
|
import { issuePairingChallenge } from "../../../src/channels/pairing/pairing-challenge.js";
|
|
7
9
|
import { createStandardPairingAdapter } from "../../../src/channels/pairing/pairing-store-adapter.js";
|
|
8
10
|
import "./pairing-config-resolver.js";
|
|
9
|
-
import { generateConversationId } from "../../../src/chat-commands/session-key.js";
|
|
10
11
|
import { answerClarificationChoiceFromChannel } from "../../../src/gateway/clarify-runtime.js";
|
|
11
12
|
import { createTimeoutAbortSignal } from "./timeout-abort.js";
|
|
12
13
|
import { createInboundDebouncer } from "../../../src/infra/debounce.js";
|
|
13
14
|
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.357",
|
|
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 fs 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(fs.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 fs 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 (!fs.existsSync(filePath)) return [];
|
|
20
|
+
const raw = fs.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
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
31
31
|
const existing = listIndexedWeixinAccountIds();
|
|
32
32
|
if (existing.includes(accountId)) return;
|
|
33
33
|
const updated = [...existing, accountId];
|
|
34
|
-
|
|
34
|
+
fs.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) fs.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 (fs.existsSync(filePath)) return JSON.parse(fs.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
|
+
fs.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
|
+
fs.writeFileSync(filePath, JSON.stringify(data, null, 2), "utf-8");
|
|
86
86
|
try {
|
|
87
|
-
|
|
87
|
+
fs.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
|
+
fs.unlinkSync(path.join(dir, file));
|
|
96
96
|
} catch {}
|
|
97
97
|
try {
|
|
98
|
-
|
|
98
|
+
fs.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 fs 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 = fs.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
|
+
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
29
|
+
fs.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
|
+
fs.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 fs 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
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
70
|
+
fs.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 (fs.existsSync(filePath)) {
|
|
85
|
+
const raw = fs.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 (fs.existsSync(filePath)) fs.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 (!fs.existsSync(filePath)) return void 0;
|
|
118
118
|
try {
|
|
119
|
-
const raw =
|
|
119
|
+
const raw = fs.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 (!fs.existsSync(accountsDir)) return void 0;
|
|
202
202
|
const hits = [];
|
|
203
203
|
let names;
|
|
204
204
|
try {
|
|
205
|
-
names =
|
|
205
|
+
names = fs.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 = fs.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);
|