weacpx 0.5.1 → 0.5.2
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/bridge/bridge-main.js +1 -1
- package/dist/cli.js +11 -5
- package/package.json +1 -1
|
@@ -835,7 +835,7 @@ import { join as join2 } from "node:path";
|
|
|
835
835
|
function buildWeacpxMcpServerSpec(input) {
|
|
836
836
|
const { command, args } = splitCommandLine(input.weacpxCommand);
|
|
837
837
|
return {
|
|
838
|
-
name: "weacpx
|
|
838
|
+
name: "weacpx",
|
|
839
839
|
type: "stdio",
|
|
840
840
|
command,
|
|
841
841
|
args: [
|
package/dist/cli.js
CHANGED
|
@@ -14953,6 +14953,12 @@ async function handleWeixinMessageTurn(full, deps) {
|
|
|
14953
14953
|
text: requestText,
|
|
14954
14954
|
...media.length > 0 ? { media } : {},
|
|
14955
14955
|
replyContextToken: contextToken,
|
|
14956
|
+
metadata: {
|
|
14957
|
+
channel: "weixin",
|
|
14958
|
+
chatType: full.group_id ? "group" : "direct",
|
|
14959
|
+
...full.from_user_id ? { senderId: full.from_user_id } : {},
|
|
14960
|
+
...full.group_id ? { groupId: full.group_id } : {}
|
|
14961
|
+
},
|
|
14956
14962
|
perfSpan
|
|
14957
14963
|
};
|
|
14958
14964
|
try {
|
|
@@ -26759,7 +26765,7 @@ import { join as join13 } from "node:path";
|
|
|
26759
26765
|
function buildWeacpxMcpServerSpec(input) {
|
|
26760
26766
|
const { command, args } = splitCommandLine(input.weacpxCommand);
|
|
26761
26767
|
return {
|
|
26762
|
-
name: "weacpx
|
|
26768
|
+
name: "weacpx",
|
|
26763
26769
|
type: "stdio",
|
|
26764
26770
|
command,
|
|
26765
26771
|
args: [
|
|
@@ -42176,11 +42182,11 @@ function buildWeacpxMcpToolRegistry(input) {
|
|
|
42176
42182
|
if (internalSessionTools && !isExternalCoordinator && !sourceHandle) {
|
|
42177
42183
|
tools.push({
|
|
42178
42184
|
name: "scheduled_create",
|
|
42179
|
-
description: "
|
|
42185
|
+
description: "Schedule a one-shot task to run a natural-language message at a future time, using the recorded chat route. By default — and like /later — the task runs in a FRESH TEMPORARY session (it snapshots the current agent and workspace but starts with brand-new history and is destroyed after running, so it does not pollute this conversation); the reply is still pushed back to this chat. Provide only timeText and message and OMIT mode to get this default. Routing, session, and account are resolved by weacpx.",
|
|
42180
42186
|
inputSchema: exports_external.object({
|
|
42181
42187
|
timeText: exports_external.string().min(1).describe("Time expression, e.g. 'in 2h', '30分钟后', 'tomorrow 09:00', or '周五 09:00'."),
|
|
42182
|
-
message: exports_external.string().min(1).describe("Natural-language message to
|
|
42183
|
-
mode: scheduledModeSchema.describe("
|
|
42188
|
+
message: exports_external.string().min(1).describe("Natural-language message to run at the scheduled time."),
|
|
42189
|
+
mode: scheduledModeSchema.describe("Optional; leave UNSET for the default temporary session (recommended). Set 'bound' ONLY when the user explicitly asks for the task to run inside this conversation's current session and share its context. 'temp' forces the temporary session.").optional()
|
|
42184
42190
|
}).strict(),
|
|
42185
42191
|
handler: async (args) => await asToolResult(async () => {
|
|
42186
42192
|
const input2 = args;
|
|
@@ -42655,7 +42661,7 @@ function createWeacpxMcpServer(options) {
|
|
|
42655
42661
|
const taskOptionsById = new Map;
|
|
42656
42662
|
const watchTasksById = new Map;
|
|
42657
42663
|
const server = new Server({
|
|
42658
|
-
name: "weacpx
|
|
42664
|
+
name: "weacpx",
|
|
42659
42665
|
version: readVersion()
|
|
42660
42666
|
}, {
|
|
42661
42667
|
capabilities: {
|