@xopcai/xopc 0.0.430 → 0.0.431

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.
Files changed (353) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
  3. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  4. package/dist/extensions/telegram/src/inbound-processor.js +2 -2
  5. package/dist/extensions/telegram/src/outbound-sender.js +1 -1
  6. package/dist/extensions/telegram/src/plugin.js +2 -2
  7. package/dist/extensions/telegram/xopc.extension.json +1 -1
  8. package/dist/extensions/weixin/src/api/api.js +2 -2
  9. package/dist/extensions/weixin/src/auth/accounts.js +12 -12
  10. package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
  11. package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
  12. package/dist/gateway/static/root/assets/{index-C5BhE5cA.js → index-BmUSsdwn.js} +6 -6
  13. package/dist/gateway/static/root/index.html +1 -1
  14. package/dist/package.js +1 -1
  15. package/dist/src/agent/agent-manager.js +18 -18
  16. package/dist/src/agent/agent-scope.js +2 -2
  17. package/dist/src/agent/background-review/prompts.js +1 -1
  18. package/dist/src/agent/background-review/run-background-review.js +12 -12
  19. package/dist/src/agent/child-agent-factory.js +2 -2
  20. package/dist/src/agent/context/coordinator.js +2 -2
  21. package/dist/src/agent/context/execution-context.js +4 -4
  22. package/dist/src/agent/context/project-context.js +3 -3
  23. package/dist/src/agent/data-acquisition/service.js +1 -1
  24. package/dist/src/agent/embedded/codemode-extension.js +1 -1
  25. package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
  26. package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
  27. package/dist/src/agent/embedded/run-for-session.js +6 -6
  28. package/dist/src/agent/embedded/run-turn.js +19 -19
  29. package/dist/src/agent/embedded/session-runner.js +4 -4
  30. package/dist/src/agent/embedded/session-tool-result-guard.js +1 -1
  31. package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
  32. package/dist/src/agent/external-tools/cliProvider.js +4 -4
  33. package/dist/src/agent/external-tools/composio-provider.js +4 -4
  34. package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
  35. package/dist/src/agent/external-tools/extension-provider.js +1 -1
  36. package/dist/src/agent/external-tools/gateway-tools.js +3 -3
  37. package/dist/src/agent/external-tools/memory-provider.js +1 -1
  38. package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
  39. package/dist/src/agent/image/generation/runtime.js +1 -1
  40. package/dist/src/agent/image/index.js +1 -1
  41. package/dist/src/agent/inbound/attachment-pipeline.js +2 -2
  42. package/dist/src/agent/inbound/inbound-loop.js +2 -2
  43. package/dist/src/agent/independent-execution.js +2 -2
  44. package/dist/src/agent/index.js +3 -3
  45. package/dist/src/agent/mcp/connection-drafts.js +1 -1
  46. package/dist/src/agent/mcp/connection-setup.js +1 -1
  47. package/dist/src/agent/mcp/conversation-setup.js +1 -1
  48. package/dist/src/agent/mcp/discovery.js +2 -2
  49. package/dist/src/agent/mcp/transport.js +1 -1
  50. package/dist/src/agent/memory/index.js +1 -1
  51. package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
  52. package/dist/src/agent/prompt/response-language.js +1 -1
  53. package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
  54. package/dist/src/agent/prompt/system-prompt-params.js +1 -1
  55. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  56. package/dist/src/agent/service/direct-turn-helpers.js +6 -6
  57. package/dist/src/agent/service/process-direct-streaming.js +6 -6
  58. package/dist/src/agent/service/webchat-tts.js +2 -2
  59. package/dist/src/agent/service.js +22 -22
  60. package/dist/src/agent/session/session-config-service.js +2 -2
  61. package/dist/src/agent/session/session-hydrator.js +1 -1
  62. package/dist/src/agent/session/session-inspector.js +1 -1
  63. package/dist/src/agent/skills/filesystem-watcher.js +1 -1
  64. package/dist/src/agent/skills/hub-lock.js +1 -1
  65. package/dist/src/agent/skills/hub-pull.js +2 -2
  66. package/dist/src/agent/skills/index.js +1 -1
  67. package/dist/src/agent/skills/managed-store.js +1 -1
  68. package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
  69. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
  70. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  71. package/dist/src/agent/skills/skill-manager.js +1 -1
  72. package/dist/src/agent/skills/skill-sources.js +1 -1
  73. package/dist/src/agent/source-context/index.js +1 -1
  74. package/dist/src/agent/tasks/task-judge-service.js +8 -8
  75. package/dist/src/agent/tools/create-share-tool.js +2 -2
  76. package/dist/src/agent/tools/delegate-tool.js +3 -3
  77. package/dist/src/agent/tools/exec-command.js +1 -1
  78. package/dist/src/agent/tools/executor.js +1 -1
  79. package/dist/src/agent/tools/factory.js +19 -19
  80. package/dist/src/agent/tools/fetch-text.js +1 -1
  81. package/dist/src/agent/tools/image-generate-tool.js +2 -2
  82. package/dist/src/agent/tools/index.js +4 -4
  83. package/dist/src/agent/tools/list-dir.js +1 -1
  84. package/dist/src/agent/tools/personal-attention-tool.js +2 -2
  85. package/dist/src/agent/tools/personal-read-tool.js +1 -1
  86. package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
  87. package/dist/src/agent/tools/personal-request-tool.js +4 -4
  88. package/dist/src/agent/tools/personal-result-tool.js +1 -1
  89. package/dist/src/agent/tools/personal-task-tool.js +5 -5
  90. package/dist/src/agent/tools/phone-use-tool.js +1 -1
  91. package/dist/src/agent/tools/publish-artifacts.js +1 -1
  92. package/dist/src/agent/tools/read.js +1 -1
  93. package/dist/src/agent/tools/review-workspace.js +1 -1
  94. package/dist/src/agent/tools/send-media.js +1 -1
  95. package/dist/src/agent/tools/skill-manage-tool.js +1 -1
  96. package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
  97. package/dist/src/agent/tools/tts-tool.js +1 -1
  98. package/dist/src/agent/tools/user-context-tool.js +2 -2
  99. package/dist/src/agent/tools/web.js +1 -1
  100. package/dist/src/agent/tools/write.js +1 -1
  101. package/dist/src/agent/tools/xopc-use-tool.js +12 -12
  102. package/dist/src/agent/transcript/index.js +2 -2
  103. package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
  104. package/dist/src/agent-catalog/capabilities.js +2 -2
  105. package/dist/src/agent-catalog/repository.js +1 -1
  106. package/dist/src/agent-matching/delegation-service.js +1 -1
  107. package/dist/src/ai-assist/text-assist.js +1 -1
  108. package/dist/src/auth/credentials.js +1 -1
  109. package/dist/src/auth/oauth/openai.js +1 -1
  110. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  111. package/dist/src/auth/profiles/store.js +1 -1
  112. package/dist/src/automations/api/routes.js +2 -2
  113. package/dist/src/automations/capabilities/drafts.js +1 -1
  114. package/dist/src/automations/capabilities/write.js +1 -1
  115. package/dist/src/automations/configuration-conversation.js +1 -1
  116. package/dist/src/automations/delivery/delivery-router.js +1 -1
  117. package/dist/src/automations/domain/index.js +1 -1
  118. package/dist/src/automations/draft/automation-draft-service.js +1 -1
  119. package/dist/src/automations/index.js +2 -2
  120. package/dist/src/automations/service/action-executor.js +2 -2
  121. package/dist/src/automations/service/automation-service.js +2 -2
  122. package/dist/src/browser/native-messaging-host.js +1 -1
  123. package/dist/src/browser/providers/browser-ext-install.js +2 -2
  124. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  125. package/dist/src/capabilities/runtime/product.js +1 -1
  126. package/dist/src/capabilities/store-connector.js +2 -2
  127. package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
  128. package/dist/src/channels/index.js +1 -1
  129. package/dist/src/channels/outbound-sender.js +1 -1
  130. package/dist/src/channels/pairing/allow-from-file.js +9 -9
  131. package/dist/src/channels/pairing/pairing-store.js +6 -6
  132. package/dist/src/chat-commands/agent-edit.js +1 -1
  133. package/dist/src/chat-commands/builtins/config.js +2 -2
  134. package/dist/src/chat-commands/builtins/session.js +1 -1
  135. package/dist/src/chat-commands/builtins/thinking.js +1 -1
  136. package/dist/src/chat-commands/builtins/tts.js +1 -1
  137. package/dist/src/chat-commands/context.js +1 -1
  138. package/dist/src/chat-commands/index.js +3 -3
  139. package/dist/src/cli/commands/agent.js +7 -7
  140. package/dist/src/cli/commands/agents.js +1 -1
  141. package/dist/src/cli/commands/config.js +1 -1
  142. package/dist/src/cli/commands/connectors.js +1 -1
  143. package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
  144. package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
  145. package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
  146. package/dist/src/cli/commands/extension-dev.js +1 -1
  147. package/dist/src/cli/commands/extension.js +2 -2
  148. package/dist/src/cli/commands/image.js +1 -1
  149. package/dist/src/cli/commands/init.js +1 -1
  150. package/dist/src/cli/commands/models.js +3 -3
  151. package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
  152. package/dist/src/cli/commands/onboard/model.js +1 -1
  153. package/dist/src/cli/commands/onboard.js +1 -1
  154. package/dist/src/cli/commands/project.js +1 -1
  155. package/dist/src/cli/commands/skills.js +2 -2
  156. package/dist/src/cli/commands/tunnel.js +4 -4
  157. package/dist/src/cli/extension-cli-register.js +5 -5
  158. package/dist/src/cli/utils/gateway-client.js +1 -1
  159. package/dist/src/cli/utils/init-workspace-core.js +3 -3
  160. package/dist/src/cli/utils/session.js +1 -1
  161. package/dist/src/computer/flows.js +1 -1
  162. package/dist/src/computer/model-adapter.js +1 -1
  163. package/dist/src/computer/runtime.js +4 -4
  164. package/dist/src/config/agent-profile.js +1 -1
  165. package/dist/src/config/index.js +3 -3
  166. package/dist/src/config/loader.js +1 -1
  167. package/dist/src/config/models-json.js +1 -1
  168. package/dist/src/connectors/cli/authorization.js +1 -1
  169. package/dist/src/connectors/composio-sessions.js +1 -1
  170. package/dist/src/connectors/composio.js +1 -1
  171. package/dist/src/connectors/connected-source-ingestion.js +2 -2
  172. package/dist/src/connectors/connected-source-understanding.js +5 -5
  173. package/dist/src/connectors/connection-recovery-service.js +4 -4
  174. package/dist/src/connectors/content-enrichment.js +1 -1
  175. package/dist/src/connectors/health.js +1 -1
  176. package/dist/src/connectors/instances.js +1 -1
  177. package/dist/src/connectors/runtime-adapter-registry.js +2 -2
  178. package/dist/src/discussions/live-worker.js +1 -1
  179. package/dist/src/discussions/sealer.js +1 -1
  180. package/dist/src/endpoint-tools/index.js +1 -1
  181. package/dist/src/endpoint-tools/runtime.js +2 -2
  182. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  183. package/dist/src/extensions/activation-context.js +3 -3
  184. package/dist/src/extensions/agent-plugins/auth.js +1 -1
  185. package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
  186. package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
  187. package/dist/src/extensions/agent-plugins/validation.js +1 -1
  188. package/dist/src/extensions/api.js +3 -3
  189. package/dist/src/extensions/bundled-extension-activation.js +1 -1
  190. package/dist/src/extensions/index.js +3 -3
  191. package/dist/src/extensions/loader.js +2 -2
  192. package/dist/src/extensions/lockfile.js +1 -1
  193. package/dist/src/extensions/sdk/index.js +1 -1
  194. package/dist/src/extensions/sdk/media.js +1 -1
  195. package/dist/src/gateway/agents-admin.js +2 -2
  196. package/dist/src/gateway/device-routes.js +1 -1
  197. package/dist/src/gateway/file-path-classifier.js +1 -1
  198. package/dist/src/gateway/global-defaults-admin.js +2 -2
  199. package/dist/src/gateway/hono/app.js +2 -2
  200. package/dist/src/gateway/hono/lib/config-payload.js +2 -2
  201. package/dist/src/gateway/hono/oauth-async.js +1 -1
  202. package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
  203. package/dist/src/gateway/hono/routes/agents.js +1 -1
  204. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  205. package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
  206. package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
  207. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  208. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  209. package/dist/src/gateway/hono/routes/context-sources.js +1 -1
  210. package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
  211. package/dist/src/gateway/hono/routes/home.js +1 -1
  212. package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
  213. package/dist/src/gateway/hono/routes/mcp.js +1 -1
  214. package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
  215. package/dist/src/gateway/hono/routes/models.js +4 -4
  216. package/dist/src/gateway/hono/routes/notes.js +3 -3
  217. package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
  218. package/dist/src/gateway/hono/routes/phone-setup.js +2 -2
  219. package/dist/src/gateway/hono/routes/phone.js +2 -2
  220. package/dist/src/gateway/hono/routes/projects.js +5 -5
  221. package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
  222. package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
  223. package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
  224. package/dist/src/gateway/hono/routes/sessions.js +3 -3
  225. package/dist/src/gateway/hono/routes/shares.js +1 -1
  226. package/dist/src/gateway/hono/routes/side-chats.js +1 -1
  227. package/dist/src/gateway/hono/routes/tasks.js +2 -2
  228. package/dist/src/gateway/hono/routes/user-model.js +7 -7
  229. package/dist/src/gateway/hono/routes/voice.js +7 -7
  230. package/dist/src/gateway/image-generation-setup.js +1 -1
  231. package/dist/src/gateway/lock.js +11 -11
  232. package/dist/src/gateway/media-access.js +1 -1
  233. package/dist/src/gateway/mobile-privacy.js +2 -2
  234. package/dist/src/gateway/ports.js +6 -6
  235. package/dist/src/gateway/provider-model-setup.js +1 -1
  236. package/dist/src/gateway/server.js +1 -1
  237. package/dist/src/gateway/service/agent-runner.js +2 -2
  238. package/dist/src/gateway/service/config-coordinator.js +2 -2
  239. package/dist/src/gateway/service/marketplace-service.js +2 -2
  240. package/dist/src/gateway/service/run-gateway-agent.js +5 -5
  241. package/dist/src/gateway/service/session-command-service.js +2 -2
  242. package/dist/src/gateway/service/session-input-coordinator.js +1 -1
  243. package/dist/src/gateway/service.js +45 -45
  244. package/dist/src/gateway/session-context-summary.js +4 -4
  245. package/dist/src/gateway/session-reset-service.js +1 -1
  246. package/dist/src/gateway/workspace-editor-path.js +2 -2
  247. package/dist/src/gateway/xopc-cloud-capability-setup.js +4 -4
  248. package/dist/src/home-intelligence/generator.js +2 -2
  249. package/dist/src/home-intelligence/host.js +2 -2
  250. package/dist/src/imports/importService.js +1 -1
  251. package/dist/src/imports/inventory.js +2 -2
  252. package/dist/src/imports/productImport.js +1 -1
  253. package/dist/src/imports/runtime.js +1 -1
  254. package/dist/src/infra/gateway-processes.js +2 -2
  255. package/dist/src/infra/path-env.js +3 -3
  256. package/dist/src/infra/update-global.js +9 -9
  257. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  258. package/dist/src/knowledge/index.js +1 -1
  259. package/dist/src/knowledge-memory/repository.js +1 -1
  260. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  261. package/dist/src/local-apps/service.js +3 -3
  262. package/dist/src/mcp/gateway-http-client.js +1 -1
  263. package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
  264. package/dist/src/memory-learning/source-learning.js +5 -5
  265. package/dist/src/memory-learning/task-receipts.js +1 -1
  266. package/dist/src/notes/agent-context.js +4 -4
  267. package/dist/src/notes/index.js +1 -1
  268. package/dist/src/notes/service.js +3 -3
  269. package/dist/src/personal-agent/capability-service.js +2 -2
  270. package/dist/src/personal-agent/proactivity/routes.js +1 -1
  271. package/dist/src/personal-agent/proactivity/service.js +7 -7
  272. package/dist/src/personal-agent/prompt-context.js +7 -7
  273. package/dist/src/personal-agent/prompts.js +2 -2
  274. package/dist/src/personal-agent/reply-composer.js +9 -9
  275. package/dist/src/personal-agent/request-delivery.js +2 -2
  276. package/dist/src/personal-agent/request-service.js +7 -7
  277. package/dist/src/personal-agent/result-reader.js +1 -1
  278. package/dist/src/personal-agent/service.js +2 -2
  279. package/dist/src/phone/model-adapter.js +1 -1
  280. package/dist/src/phone/repository.js +1 -1
  281. package/dist/src/phone/runtime.js +4 -4
  282. package/dist/src/projects/index.js +2 -2
  283. package/dist/src/projects/project-agent-suggestion.js +1 -1
  284. package/dist/src/projects/project-service.js +2 -2
  285. package/dist/src/projects/project-skill-service.js +2 -2
  286. package/dist/src/projects/workspace.js +1 -1
  287. package/dist/src/providers/model-reference-auditor.js +1 -1
  288. package/dist/src/realtime/runtime.js +1 -1
  289. package/dist/src/remote-access/exposure-manager.js +1 -1
  290. package/dist/src/runtime-tools/archive.js +1 -1
  291. package/dist/src/runtime-tools/phone-dependencies.js +2 -2
  292. package/dist/src/session/index.js +2 -2
  293. package/dist/src/session/init-session-turn.js +1 -1
  294. package/dist/src/session/resolve-session.js +1 -1
  295. package/dist/src/session/store.js +5 -5
  296. package/dist/src/session/thinking-resolve.js +1 -1
  297. package/dist/src/share/hosted-session-share.js +2 -2
  298. package/dist/src/share/session-share-service.js +1 -1
  299. package/dist/src/share/share-store.js +1 -1
  300. package/dist/src/share/share-thumbnail.js +1 -1
  301. package/dist/src/share/site-proxy.js +1 -1
  302. package/dist/src/share/site-share-store.js +1 -1
  303. package/dist/src/storage/sqlite/connection.js +9 -9
  304. package/dist/src/tasks/capabilities/read.js +2 -2
  305. package/dist/src/tasks/capabilities/write.js +2 -2
  306. package/dist/src/tasks/home-query-service.js +1 -1
  307. package/dist/src/tasks/index.js +5 -5
  308. package/dist/src/tasks/task-allocation-service.js +5 -5
  309. package/dist/src/tasks/task-application-service.js +5 -5
  310. package/dist/src/tasks/task-collaboration-delivery.js +1 -1
  311. package/dist/src/tasks/task-context-assembler.js +2 -2
  312. package/dist/src/tasks/task-contract-planner.js +2 -2
  313. package/dist/src/tasks/task-handoff-service.js +1 -1
  314. package/dist/src/tasks/task-handoff.js +4 -4
  315. package/dist/src/tasks/task-main-update-decision-service.js +3 -3
  316. package/dist/src/tasks/task-model-call.js +1 -1
  317. package/dist/src/tasks/task-research-result.js +4 -4
  318. package/dist/src/tasks/task-result-delivery-repository.js +1 -1
  319. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  320. package/dist/src/tasks/task-run-coordinator.js +3 -3
  321. package/dist/src/tasks/task-run-dispatcher.js +1 -1
  322. package/dist/src/tui/backends/embedded-backend.js +12 -12
  323. package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
  324. package/dist/src/tui/extension-host/load-extensions.js +1 -1
  325. package/dist/src/tui/tui-commands.js +5 -5
  326. package/dist/src/tui/tui-picker-overlay.js +1 -1
  327. package/dist/src/tui/tui-skills-autocomplete.js +1 -1
  328. package/dist/src/tui/tui-startup-resources.js +3 -3
  329. package/dist/src/tui/tui.js +4 -4
  330. package/dist/src/tunnel/gateway-lifecycle.js +1 -1
  331. package/dist/src/user-context/access-policy.js +2 -2
  332. package/dist/src/user-model/bootstrap.js +1 -1
  333. package/dist/src/user-model/capture/executor.js +1 -1
  334. package/dist/src/user-model/index.js +2 -2
  335. package/dist/src/user-model/usage-policy.js +1 -1
  336. package/dist/src/voice/realtime/memory-context.js +5 -5
  337. package/dist/src/voice/realtime/omniRoute.js +1 -1
  338. package/dist/src/voice/realtime/persona-context.js +1 -1
  339. package/dist/src/voice/realtime/runtime.js +4 -4
  340. package/dist/src/voice/stt/index.js +2 -2
  341. package/dist/src/voice/stt/preflight.js +1 -1
  342. package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
  343. package/dist/src/voice/stt/providers/bailian-plan-transcription.js +1 -1
  344. package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
  345. package/dist/src/voice/stt/transcribe-core.js +1 -1
  346. package/dist/src/voice/tts/index.js +3 -3
  347. package/dist/src/voice/tts/merge-config.js +1 -1
  348. package/dist/src/voice/tts/payload.js +1 -1
  349. package/dist/src/voice/tts/providers/bailian-plan-speech.js +1 -1
  350. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
  351. package/dist/src/voice/tts/speak-core.js +1 -1
  352. package/dist/src/work-discovery/service.js +7 -7
  353. package/package.json +1 -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.430",
6
+ "version": "0.0.431",
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 fsSync from "node:fs";
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 = fsSync.readFileSync(configPath, "utf8");
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
- fsSync.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
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
1
  import { getWorkspacePath } from "../../../../src/config/workspace-path-helpers.js";
2
- import { getMimeType } from "../../../../src/channels/media.js";
3
2
  import { checkFileSafety } from "../../../../src/agent/prompt/safety.js";
3
+ import { getMimeType } from "../../../../src/channels/media.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 { resolveStandardPairingPath } from "../../../src/channels/pairing/paths.js";
5
6
  import { issuePairingChallenge } from "../../../src/channels/pairing/pairing-challenge.js";
6
7
  import { createStandardPairingAdapter } from "../../../src/channels/pairing/pairing-store-adapter.js";
7
8
  import { registerChannelExecApprovalHandler } from "../../../src/channels/exec-approval-runtime.js";
8
- import "./pairing-config-resolver.js";
9
9
  import { generateConversationId } from "../../../src/chat-commands/session-key.js";
10
+ import "./pairing-config-resolver.js";
10
11
  import { answerClarificationChoiceFromChannel, answerClarificationDecisionFromChannel } 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.430",
5
+ "version": "0.0.431",
6
6
  "kind": "channel",
7
7
  "main": "src/index.js",
8
8
  "channels": [
@@ -2,7 +2,7 @@ import { logger } from "../util/logger.js";
2
2
  import { hasProxyEnv } from "../../../../src/infra/http-proxy-env.js";
3
3
  import { redactBody, redactUrl } from "../util/redact.js";
4
4
  import path from "node:path";
5
- import fsSync from "node:fs";
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(fsSync.readFileSync(pkgPath, "utf-8"));
14
+ return JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
15
15
  } catch {
16
16
  return {};
17
17
  }
@@ -3,7 +3,7 @@ import { resolveWeixinRootDir } from "../storage/state-dir.js";
3
3
  import { logger } from "../util/logger.js";
4
4
  import { normalizeWeixinAccountId } from "./weixin-account-id.js";
5
5
  import path from "node:path";
6
- import fsSync from "node:fs";
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 (!fsSync.existsSync(filePath)) return [];
20
- const raw = fsSync.readFileSync(filePath, "utf-8");
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
- fsSync.mkdirSync(dir, { recursive: true });
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
- fsSync.writeFileSync(resolveAccountIndexPath(), JSON.stringify(updated, null, 2), "utf-8");
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) fsSync.writeFileSync(resolveAccountIndexPath(), JSON.stringify(updated, null, 2), "utf-8");
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 (fsSync.existsSync(filePath)) return JSON.parse(fsSync.readFileSync(filePath, "utf-8"));
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
- fsSync.mkdirSync(dir, { recursive: true });
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
- fsSync.writeFileSync(filePath, JSON.stringify(data, null, 2), "utf-8");
85
+ fs.writeFileSync(filePath, JSON.stringify(data, null, 2), "utf-8");
86
86
  try {
87
- fsSync.chmodSync(filePath, 384);
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
- fsSync.unlinkSync(path.join(dir, file));
95
+ fs.unlinkSync(path.join(dir, file));
96
96
  } catch {}
97
97
  try {
98
- fsSync.unlinkSync(resolveFrameworkAllowFromPath(accountId));
98
+ fs.unlinkSync(resolveFrameworkAllowFromPath(accountId));
99
99
  } catch {}
100
100
  }
101
101
  function weixinSection(cfg) {
@@ -1,7 +1,7 @@
1
1
  import { resolveWeixinRootDir } from "../storage/state-dir.js";
2
2
  import { logger } from "../util/logger.js";
3
3
  import path from "node:path";
4
- import fsSync from "node:fs";
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 = fsSync.readFileSync(resolveDebugModePath(), "utf-8");
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
- fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
29
- fsSync.writeFileSync(filePath, JSON.stringify(state, null, 2), "utf-8");
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
- fsSync.unlinkSync(resolveDebugModePath());
53
+ fs.unlinkSync(resolveDebugModePath());
54
54
  } catch {}
55
55
  }
56
56
  //#endregion
@@ -4,7 +4,7 @@ import { canonicalWeixinPeerId, normalizeWeixinAccountId } from "../auth/weixin-
4
4
  import { generateId } from "../util/random.js";
5
5
  import { MessageItemType } from "../api/types.js";
6
6
  import path from "node:path";
7
- import fsSync from "node:fs";
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
- fsSync.mkdirSync(dir, { recursive: true });
70
- fsSync.writeFileSync(filePath, JSON.stringify(tokens, null, 0), "utf-8");
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 (fsSync.existsSync(filePath)) {
85
- const raw = fsSync.readFileSync(filePath, "utf-8");
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 (fsSync.existsSync(filePath)) fsSync.unlinkSync(filePath);
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 (!fsSync.existsSync(filePath)) return void 0;
117
+ if (!fs.existsSync(filePath)) return void 0;
118
118
  try {
119
- const raw = fsSync.readFileSync(filePath, "utf-8");
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 (!fsSync.existsSync(accountsDir)) return void 0;
201
+ if (!fs.existsSync(accountsDir)) return void 0;
202
202
  const hits = [];
203
203
  let names;
204
204
  try {
205
- names = fsSync.readdirSync(accountsDir);
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 = fsSync.readFileSync(filePath, "utf-8");
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);