openclaw-remote 0.3.0 → 0.3.1
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/index.js +48 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2783,6 +2783,15 @@ async function getBoardHealth(account) {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
);
|
|
2785
2785
|
}
|
|
2786
|
+
async function getTeam(account) {
|
|
2787
|
+
return apiFetch(
|
|
2788
|
+
buildUrl(account, "/api/v1/team"),
|
|
2789
|
+
{
|
|
2790
|
+
method: "GET",
|
|
2791
|
+
headers: buildHeaders(account)
|
|
2792
|
+
}
|
|
2793
|
+
);
|
|
2794
|
+
}
|
|
2786
2795
|
|
|
2787
2796
|
// src/realtime-listener.ts
|
|
2788
2797
|
import { createClient } from "@supabase/supabase-js";
|
|
@@ -3560,6 +3569,41 @@ function createRemotePlugin() {
|
|
|
3560
3569
|
details: { ok: true, epic }
|
|
3561
3570
|
};
|
|
3562
3571
|
}
|
|
3572
|
+
},
|
|
3573
|
+
// 8. remote_list_team
|
|
3574
|
+
{
|
|
3575
|
+
name: "remote_list_team",
|
|
3576
|
+
label: "List team members",
|
|
3577
|
+
description: "List all team members (humans and agents) with their roles and @mention handles. Use to find who to tag in comments or assign tasks to.",
|
|
3578
|
+
parameters: Type.Object({}),
|
|
3579
|
+
execute: async (_toolCallId, _args) => {
|
|
3580
|
+
const account = resolveAccount(cfg ?? {});
|
|
3581
|
+
const result = await getTeam(account);
|
|
3582
|
+
if (!result.ok) {
|
|
3583
|
+
return {
|
|
3584
|
+
content: [{ type: "text", text: `\u274C Failed to list team: ${result.error}` }],
|
|
3585
|
+
details: { ok: false, error: result.error }
|
|
3586
|
+
};
|
|
3587
|
+
}
|
|
3588
|
+
const { team, total, humans, agents } = result.data;
|
|
3589
|
+
if (team.length === 0) {
|
|
3590
|
+
return {
|
|
3591
|
+
content: [{ type: "text", text: "\u{1F465} No team members found." }],
|
|
3592
|
+
details: { ok: true, team: [] }
|
|
3593
|
+
};
|
|
3594
|
+
}
|
|
3595
|
+
const lines = [`\u{1F465} **Team** (${total} members: ${humans} human, ${agents} agent)`, ""];
|
|
3596
|
+
for (const m of team) {
|
|
3597
|
+
const roles = m.project_roles.length > 0 ? m.project_roles.map((r) => r.name).join(", ") : "no role";
|
|
3598
|
+
const me = m.is_me ? " \u2B50 (you)" : "";
|
|
3599
|
+
const status = m.type === "agent" && m.status ? ` [${m.status}]` : "";
|
|
3600
|
+
lines.push(`- **${m.name}** (${m.type}${status}) \u2014 ${roles} \u2014 mention: \`${m.mention}\`${me}`);
|
|
3601
|
+
}
|
|
3602
|
+
return {
|
|
3603
|
+
content: [{ type: "text", text: lines.join("\n") }],
|
|
3604
|
+
details: { ok: true, team, total, humans, agents }
|
|
3605
|
+
};
|
|
3606
|
+
}
|
|
3563
3607
|
}
|
|
3564
3608
|
];
|
|
3565
3609
|
}),
|
|
@@ -3579,6 +3623,7 @@ function createRemotePlugin() {
|
|
|
3579
3623
|
"- `remote_list_roles` \u2014 List project roles with vacancy info (find valid assigned_role_id values)",
|
|
3580
3624
|
"- `remote_list_epics` \u2014 List epics with task counts (find valid epic_id values)",
|
|
3581
3625
|
"- `remote_create_epic` \u2014 Create a new epic (name, description, color)",
|
|
3626
|
+
"- `remote_list_team` \u2014 List all team members with roles and @mention handles",
|
|
3582
3627
|
"",
|
|
3583
3628
|
"**Task lifecycle**: todo \u2192 in_progress \u2192 review \u2192 done",
|
|
3584
3629
|
"**Task types**: feature, task, bug",
|
|
@@ -3590,7 +3635,9 @@ function createRemotePlugin() {
|
|
|
3590
3635
|
"- Move tasks to review when ready for review, done when complete",
|
|
3591
3636
|
"- Keep task descriptions and comments clear and actionable",
|
|
3592
3637
|
"- Use `remote_list_roles` before creating tasks to find valid role IDs for assignment",
|
|
3593
|
-
"- Use `remote_list_epics` before creating tasks to find valid epic IDs for grouping"
|
|
3638
|
+
"- Use `remote_list_epics` before creating tasks to find valid epic IDs for grouping",
|
|
3639
|
+
"- Use `remote_list_team` to find teammates and their @mention handles for tagging in comments",
|
|
3640
|
+
"- Tag team members with @name in comments when you need their input or want to delegate"
|
|
3594
3641
|
]
|
|
3595
3642
|
}
|
|
3596
3643
|
};
|