@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.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +4 -6
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/messaging/process-message.js +2 -1
- package/dist/gateway/server/chunks.bin +842 -830
- package/dist/gateway/server/chunks.json +1 -1
- package/dist/gateway/static/root/assets/{automations-page-B1Ri4sh8.js → automations-page-uY_wmZY1.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-CNSza6ir.js → automations-workspace-DyQq55Rh.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-page-EENl65YY.js → capabilities-page-WCl7Fdce.js} +2 -2
- package/dist/gateway/static/root/assets/{chat-page-LOR5JxDh.js → chat-page-3fVhP77N.js} +30 -30
- package/dist/gateway/static/root/assets/command-palette-api-UrqPvWR1.js +1 -0
- package/dist/gateway/static/root/assets/{index-DE6GguFZ.js → index-790PGhZb.js} +4 -4
- package/dist/gateway/static/root/assets/{note-detail-panel-DXzfoiyk.js → note-detail-panel-Bwm_aehq.js} +2 -2
- package/dist/gateway/static/root/assets/{notes-page-BNTgiHSk.js → notes-page-DkZWV3Ds.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-D7zTHQ0K.js → personal-page-cauym9hr.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-Dgs8ImMC.js → project-detail-page-D9WKZe3z.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-7WVrzJca.js → route-preload-DF8LOfKW.js} +2 -2
- package/dist/gateway/static/root/assets/{settings-page-BOzzOS6k.js → settings-page-Cd9WZ-Ac.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-gGU0LZ5e.js → skills-page-kL8E5zgi.js} +1 -1
- package/dist/gateway/static/root/assets/{space-page-CKVuhV2i.js → space-page-DlJB7GT1.js} +2 -2
- package/dist/gateway/static/root/assets/{task-detail-page-DEpYIaok.js → task-detail-page-BFa0Px-B.js} +1 -1
- package/dist/gateway/static/root/assets/{task-header-title-Cdgp2rCs.js → task-header-title-qzNctGl5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-personal-work-Dd2jRUpz.js → use-personal-work-B1DWeBnm.js} +1 -1
- package/dist/gateway/static/root/index.html +6 -6
- package/dist/package.js +1 -1
- package/dist/src/agent/mcp/connection-drafts.d.ts +3 -1
- package/dist/src/agent/mcp/connection-drafts.js +24 -11
- package/dist/src/agent/mcp/connection-setup.js +13 -10
- package/dist/src/agent/mcp/native-mcp.js +1 -0
- package/dist/src/agent/mcp/network-policy.d.ts +6 -0
- package/dist/src/agent/mcp/network-policy.js +49 -0
- package/dist/src/agent/mcp/transport.js +14 -7
- package/dist/src/agent/messaging/message-router.js +2 -2
- package/dist/src/agent/service/direct-turn-helpers.js +9 -24
- package/dist/src/chat-commands/command-parse.d.ts +1 -0
- package/dist/src/chat-commands/command-parse.js +8 -10
- package/dist/src/chat-commands/registry.d.ts +5 -0
- package/dist/src/chat-commands/registry.js +8 -0
- package/dist/src/config/schema.d.ts +54 -4
- package/dist/src/config/schema.js +3 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +67 -0
- package/dist/src/gateway/hono/routes/mobile-capability-panels.js +16 -131
- package/dist/src/gateway/hono/routes/mobile-mcp-setup.d.ts +9 -0
- package/dist/src/gateway/hono/routes/mobile-mcp-setup.js +929 -0
- package/dist/src/gateway/hono/routes/session-command-handler.js +1 -4
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -4
- package/dist/src/gateway/next-turn-suggestions/generator.js +16 -2
- package/dist/src/gateway/next-turn-suggestions/service.d.ts +2 -1
- package/dist/src/gateway/next-turn-suggestions/service.js +17 -5
- package/dist/src/gateway/next-turn-suggestions/snapshot.d.ts +11 -0
- package/dist/src/gateway/next-turn-suggestions/snapshot.js +31 -2
- package/dist/src/gateway/service/config-coordinator.d.ts +14 -1
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/home-intelligence/host.js +5 -5
- package/dist/src/media/generation-changes.d.ts +4 -0
- package/dist/src/media/generation-changes.js +37 -0
- package/dist/src/music-generation/repository.js +12 -6
- package/dist/src/session/reset-triggers.js +1 -1
- package/dist/src/tui/tui-commands.d.ts +2 -1
- package/dist/src/tui/tui-commands.js +3 -3
- package/dist/src/tui/tui-submit.d.ts +1 -1
- package/dist/src/tui/tui-submit.js +2 -4
- package/dist/src/video-generation/drafts.js +2 -0
- package/dist/src/video-generation/repository.js +13 -6
- package/package.json +1 -1
- 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.
|
|
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 {
|
|
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
|
|
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 =
|
|
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 =
|
|
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.
|
|
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:
|
|
190
|
+
isCommand: Boolean(commandRegistry.parseRegisteredSlashCommand(body)),
|
|
190
191
|
contextToken: ctx.context_token
|
|
191
192
|
},
|
|
192
193
|
attachments: attachments.length ? attachments : void 0
|