@clawos-dev/clawd 0.2.384 → 0.2.385
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/cli.cjs +5 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -61825,7 +61825,7 @@ function computeMethodAccess(args) {
|
|
|
61825
61825
|
}
|
|
61826
61826
|
|
|
61827
61827
|
// src/version.ts
|
|
61828
|
-
var version = "0.2.
|
|
61828
|
+
var version = "0.2.385".length > 0 ? "0.2.385" : "dev";
|
|
61829
61829
|
|
|
61830
61830
|
// src/cli-probe/probe.ts
|
|
61831
61831
|
var fs66 = __toESM(require("fs"), 1);
|
|
@@ -64065,7 +64065,7 @@ function buildTopicHandlers(deps) {
|
|
|
64065
64065
|
if (!deps.channelStore.get(args.channelId)) {
|
|
64066
64066
|
throw new ClawdError(ERROR_CODES.INVALID_PARAM, `channel not found: ${args.channelId}`);
|
|
64067
64067
|
}
|
|
64068
|
-
const { sessionId } = deps.createMasterSession({ label: args.title ?? "\u65B0\u8BDD\u9898" });
|
|
64068
|
+
const { sessionId, file } = deps.createMasterSession({ label: args.title ?? "\u65B0\u8BDD\u9898" });
|
|
64069
64069
|
const topic = deps.topicStore.create({
|
|
64070
64070
|
channelId: args.channelId,
|
|
64071
64071
|
...args.title ? { title: args.title } : {},
|
|
@@ -64075,7 +64075,8 @@ function buildTopicHandlers(deps) {
|
|
|
64075
64075
|
response: TopicCreateResultSchema.parse({
|
|
64076
64076
|
topicId: topic.id,
|
|
64077
64077
|
masterSessionId: sessionId
|
|
64078
|
-
})
|
|
64078
|
+
}),
|
|
64079
|
+
broadcast: [{ frame: { type: "session:info", ...file }, target: "all" }]
|
|
64079
64080
|
};
|
|
64080
64081
|
},
|
|
64081
64082
|
"topic:setPlan": async (frame) => {
|
|
@@ -66457,7 +66458,7 @@ async function startDaemon(config) {
|
|
|
66457
66458
|
if (typeof sessionId !== "string" || !sessionId) {
|
|
66458
66459
|
throw new Error("createMasterSession: manager.create \u6CA1\u6709\u8FD4\u56DE sessionId");
|
|
66459
66460
|
}
|
|
66460
|
-
return { sessionId };
|
|
66461
|
+
return { sessionId, file: response };
|
|
66461
66462
|
},
|
|
66462
66463
|
// meta:methods 自省:飞书 gate getter + 最终 handler 表(下面还会 spread 进
|
|
66463
66464
|
// dispatch / shift-internal 两组,只看 buildMethodHandlers 内部表会误报死方法)
|