@clawos-dev/clawd 0.2.262 → 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.
@@ -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.name]);
21199
- for (const [reason, names] of byReason) {
21200
- lines.push(reason ? `[${reason}] ${names.join(", ")}` : names.join(", "));
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() {