@clawos-dev/clawd 0.2.261 → 0.2.263
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 +1611 -1365
- package/dist/dispatch/mcp-server.cjs +2001 -1491
- package/dist/rpc-tool/mcp-server.cjs +14 -4
- package/dist/share-ui/assets/{guest-DyvZnRwD.js → guest-7QpiTI6y.js} +126 -126
- package/dist/share-ui/guest.html +1 -1
- package/package.json +1 -1
|
@@ -21195,13 +21195,23 @@ function formatMethodList(methods) {
|
|
|
21195
21195
|
if (group.length === 0) continue;
|
|
21196
21196
|
lines.push(`## ${status} (${group.length}) \u2014 ${HEADINGS[status]}`);
|
|
21197
21197
|
const byReason = /* @__PURE__ */ new Map();
|
|
21198
|
-
for (const m of group) byReason.set(m.reason ?? "", [...byReason.get(m.reason ?? "") ?? [], m
|
|
21199
|
-
for (const [reason,
|
|
21200
|
-
lines.push(
|
|
21198
|
+
for (const m of group) byReason.set(m.reason ?? "", [...byReason.get(m.reason ?? "") ?? [], m]);
|
|
21199
|
+
for (const [reason, group2] of byReason) {
|
|
21200
|
+
if (reason) lines.push(`(${reason})`);
|
|
21201
|
+
for (const m of group2) {
|
|
21202
|
+
lines.push(m.description ? `- ${m.name} \u2014 ${m.description}` : `- ${m.name}`);
|
|
21203
|
+
if (m.args && m.args.length > 0) {
|
|
21204
|
+
lines.push(` args: ${m.args.map((a) => a.required ? `${a.name}*` : a.name).join(", ")}`);
|
|
21205
|
+
} else if (m.args === null) {
|
|
21206
|
+
lines.push(" args: (no central schema yet \u2014 inspect the daemon error to learn them)");
|
|
21207
|
+
} else if (m.args) {
|
|
21208
|
+
lines.push(" args: (none)");
|
|
21209
|
+
}
|
|
21210
|
+
}
|
|
21201
21211
|
}
|
|
21202
21212
|
lines.push("");
|
|
21203
21213
|
}
|
|
21204
|
-
lines.push("Call any of these with the `call` tool: call({ method, args }).");
|
|
21214
|
+
lines.push("Call any of these with the `call` tool: call({ method, args }). `*` marks required args.");
|
|
21205
21215
|
return lines.join("\n");
|
|
21206
21216
|
}
|
|
21207
21217
|
async function main() {
|