@xopcai/xopc 0.0.484 → 0.0.485

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 (67) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/src/inbound-processor.js +4 -6
  3. package/dist/extensions/telegram/xopc.extension.json +1 -1
  4. package/dist/extensions/weixin/src/messaging/process-message.js +2 -1
  5. package/dist/gateway/server/chunks.bin +842 -830
  6. package/dist/gateway/server/chunks.json +1 -1
  7. package/dist/gateway/static/root/assets/{automations-page-B1Ri4sh8.js → automations-page-uY_wmZY1.js} +1 -1
  8. package/dist/gateway/static/root/assets/{automations-workspace-CNSza6ir.js → automations-workspace-DyQq55Rh.js} +2 -2
  9. package/dist/gateway/static/root/assets/{capabilities-page-EENl65YY.js → capabilities-page-WCl7Fdce.js} +2 -2
  10. package/dist/gateway/static/root/assets/{chat-page-LOR5JxDh.js → chat-page-3fVhP77N.js} +30 -30
  11. package/dist/gateway/static/root/assets/command-palette-api-UrqPvWR1.js +1 -0
  12. package/dist/gateway/static/root/assets/{index-DE6GguFZ.js → index-790PGhZb.js} +4 -4
  13. package/dist/gateway/static/root/assets/{note-detail-panel-DXzfoiyk.js → note-detail-panel-Bwm_aehq.js} +2 -2
  14. package/dist/gateway/static/root/assets/{notes-page-BNTgiHSk.js → notes-page-DkZWV3Ds.js} +1 -1
  15. package/dist/gateway/static/root/assets/{personal-page-D7zTHQ0K.js → personal-page-cauym9hr.js} +1 -1
  16. package/dist/gateway/static/root/assets/{project-detail-page-Dgs8ImMC.js → project-detail-page-D9WKZe3z.js} +1 -1
  17. package/dist/gateway/static/root/assets/{route-preload-7WVrzJca.js → route-preload-DF8LOfKW.js} +2 -2
  18. package/dist/gateway/static/root/assets/{settings-page-BOzzOS6k.js → settings-page-Cd9WZ-Ac.js} +1 -1
  19. package/dist/gateway/static/root/assets/{skills-page-gGU0LZ5e.js → skills-page-kL8E5zgi.js} +1 -1
  20. package/dist/gateway/static/root/assets/{space-page-CKVuhV2i.js → space-page-DlJB7GT1.js} +2 -2
  21. package/dist/gateway/static/root/assets/{task-detail-page-DEpYIaok.js → task-detail-page-BFa0Px-B.js} +1 -1
  22. package/dist/gateway/static/root/assets/{task-header-title-Cdgp2rCs.js → task-header-title-qzNctGl5.js} +1 -1
  23. package/dist/gateway/static/root/assets/{use-personal-work-Dd2jRUpz.js → use-personal-work-B1DWeBnm.js} +1 -1
  24. package/dist/gateway/static/root/index.html +6 -6
  25. package/dist/package.js +1 -1
  26. package/dist/src/agent/mcp/connection-drafts.d.ts +3 -1
  27. package/dist/src/agent/mcp/connection-drafts.js +24 -11
  28. package/dist/src/agent/mcp/connection-setup.js +13 -10
  29. package/dist/src/agent/mcp/native-mcp.js +1 -0
  30. package/dist/src/agent/mcp/network-policy.d.ts +6 -0
  31. package/dist/src/agent/mcp/network-policy.js +49 -0
  32. package/dist/src/agent/mcp/transport.js +14 -7
  33. package/dist/src/agent/messaging/message-router.js +2 -2
  34. package/dist/src/agent/service/direct-turn-helpers.js +9 -24
  35. package/dist/src/chat-commands/command-parse.d.ts +1 -0
  36. package/dist/src/chat-commands/command-parse.js +8 -10
  37. package/dist/src/chat-commands/registry.d.ts +5 -0
  38. package/dist/src/chat-commands/registry.js +8 -0
  39. package/dist/src/config/schema.d.ts +54 -4
  40. package/dist/src/config/schema.js +3 -1
  41. package/dist/src/gateway/hono/routes/home.js +1 -1
  42. package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +67 -0
  43. package/dist/src/gateway/hono/routes/mobile-capability-panels.js +16 -131
  44. package/dist/src/gateway/hono/routes/mobile-mcp-setup.d.ts +9 -0
  45. package/dist/src/gateway/hono/routes/mobile-mcp-setup.js +929 -0
  46. package/dist/src/gateway/hono/routes/session-command-handler.js +1 -4
  47. package/dist/src/gateway/hono/routes/session-input-handler.js +1 -4
  48. package/dist/src/gateway/next-turn-suggestions/generator.js +16 -2
  49. package/dist/src/gateway/next-turn-suggestions/service.d.ts +2 -1
  50. package/dist/src/gateway/next-turn-suggestions/service.js +17 -5
  51. package/dist/src/gateway/next-turn-suggestions/snapshot.d.ts +11 -0
  52. package/dist/src/gateway/next-turn-suggestions/snapshot.js +31 -2
  53. package/dist/src/gateway/service/config-coordinator.d.ts +14 -1
  54. package/dist/src/gateway/service.js +4 -4
  55. package/dist/src/home-intelligence/host.js +5 -5
  56. package/dist/src/media/generation-changes.d.ts +4 -0
  57. package/dist/src/media/generation-changes.js +37 -0
  58. package/dist/src/music-generation/repository.js +12 -6
  59. package/dist/src/session/reset-triggers.js +1 -1
  60. package/dist/src/tui/tui-commands.d.ts +2 -1
  61. package/dist/src/tui/tui-commands.js +3 -3
  62. package/dist/src/tui/tui-submit.d.ts +1 -1
  63. package/dist/src/tui/tui-submit.js +2 -4
  64. package/dist/src/video-generation/drafts.js +2 -0
  65. package/dist/src/video-generation/repository.js +13 -6
  66. package/package.json +1 -1
  67. package/dist/gateway/static/root/assets/command-palette-api-YP0zV_Ol.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.484",
6
+ "version": "0.0.485",
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": [
@@ -2,7 +2,7 @@ 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
4
  import { checkMentionInTranscription } from "../../../src/voice/stt/mention.js";
5
- import { normalizeTelegramCommandName, parseSlashCommand } from "../../../src/chat-commands/command-parse.js";
5
+ import { commandRegistry } from "../../../src/chat-commands/registry.js";
6
6
  import { answerClarificationTextFromChannel } from "../../../src/gateway/clarify-runtime.js";
7
7
  import { telegramInboundScope } from "./update-offset-store.js";
8
8
  import { buildTelegramUpdateKey, telegramUpdateDedupe } from "./dedupe.js";
@@ -15,9 +15,7 @@ init_logger();
15
15
  const log = createLogger("TelegramInboundProcessor");
16
16
  /** Must bypass the per-chat queue so /abort can cancel an in-flight turn. */
17
17
  function isAbortSlashCommand(text) {
18
- const parsed = parseSlashCommand(text);
19
- if (!parsed) return false;
20
- const cmd = normalizeTelegramCommandName(parsed.command);
18
+ const cmd = commandRegistry.parseRegisteredSlashCommand(text)?.command;
21
19
  return cmd === "abort" || cmd === "stop" || cmd === "cancel";
22
20
  }
23
21
  /** Maximum voice message duration for STT in seconds */
@@ -327,11 +325,11 @@ function createInboundProcessor(deps) {
327
325
  attachments = mediaResult.attachments;
328
326
  transcribedText = mediaResult.transcribedText;
329
327
  }
330
- const captionIsCommand = cleanContent.trim().startsWith("/");
328
+ const captionIsCommand = Boolean(commandRegistry.parseRegisteredSlashCommand(cleanContent));
331
329
  let finalContent = transcribedText ? captionIsCommand && cleanContent ? cleanContent.trim() + (transcribedText ? `\n\n${transcribedText}` : "") : transcribedText + (cleanContent ? "\n\n" + cleanContent : "") : cleanContent;
332
330
  const stickerItem = media.find((m) => m.type === "sticker");
333
331
  if (stickerItem && !finalContent.trim()) finalContent = stickerItem.emoji?.trim() ? `[Sticker ${stickerItem.emoji}]` : "[Sticker]";
334
- const isCommand = cleanContent.trim().startsWith("/");
332
+ const isCommand = captionIsCommand || Boolean(transcribedText && commandRegistry.parseRegisteredSlashCommand(finalContent));
335
333
  log.info({
336
334
  accountId,
337
335
  chatId,
@@ -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.484",
5
+ "version": "0.0.485",
6
6
  "kind": "channel",
7
7
  "main": "src/index.js",
8
8
  "channels": [
@@ -4,6 +4,7 @@ import { logger } from "../util/logger.js";
4
4
  import { resolveWeixinPairingPath } from "../../../../src/channels/pairing/paths.js";
5
5
  import { issuePairingChallenge } from "../../../../src/channels/pairing/pairing-challenge.js";
6
6
  import { evaluateAccess } from "../../../../src/channels/security.js";
7
+ import { commandRegistry } from "../../../../src/chat-commands/registry.js";
7
8
  import { handleChannelConnectionProbe } from "../../../../src/channels/connection-probe.js";
8
9
  import { MessageItemType } from "../api/types.js";
9
10
  import { isMediaItem, setContextToken, weixinMessageToMsgContext } from "./inbound.js";
@@ -186,7 +187,7 @@ async function processWeixinInboundMessage(full, deps) {
186
187
  conversationId,
187
188
  messageId: full.message_id != null ? String(full.message_id) : void 0,
188
189
  isGroup: false,
189
- isCommand: body.trim().startsWith("/"),
190
+ isCommand: Boolean(commandRegistry.parseRegisteredSlashCommand(body)),
190
191
  contextToken: ctx.context_token
191
192
  },
192
193
  attachments: attachments.length ? attachments : void 0