openclaw-remote 0.5.6 → 0.5.7
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 +53 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2816,6 +2816,20 @@ async function updateGoal(account, goalId, updates) {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
);
|
|
2818
2818
|
}
|
|
2819
|
+
async function updateRoleBundle(account, roleId, data) {
|
|
2820
|
+
return apiFetch(
|
|
2821
|
+
buildUrl(account, `/api/v1/roles/${encodeURIComponent(roleId)}/bundle`),
|
|
2822
|
+
{
|
|
2823
|
+
method: "PATCH",
|
|
2824
|
+
headers: buildHeaders(account),
|
|
2825
|
+
body: JSON.stringify({
|
|
2826
|
+
bundle_slug: data.bundle_slug,
|
|
2827
|
+
bundle_version: data.bundle_version,
|
|
2828
|
+
status: data.generation_status
|
|
2829
|
+
})
|
|
2830
|
+
}
|
|
2831
|
+
);
|
|
2832
|
+
}
|
|
2819
2833
|
async function getTeam(account) {
|
|
2820
2834
|
return apiFetch(
|
|
2821
2835
|
buildUrl(account, "/api/v1/team"),
|
|
@@ -3660,6 +3674,44 @@ function createRemotePlugin() {
|
|
|
3660
3674
|
details: { ok: true, goal }
|
|
3661
3675
|
};
|
|
3662
3676
|
}
|
|
3677
|
+
},
|
|
3678
|
+
// remote_update_role — update role bundle info (agent callback)
|
|
3679
|
+
{
|
|
3680
|
+
name: "remote_update_role",
|
|
3681
|
+
label: "Update a role's agent bundle info",
|
|
3682
|
+
description: "Update a role's bundle_slug, bundle_version, and generation_status. Used by the agent-builder to report back after generating a bundle.",
|
|
3683
|
+
parameters: Type.Object({
|
|
3684
|
+
role_id: Type.String({ description: "ID of the role to update" }),
|
|
3685
|
+
bundle_slug: Type.Optional(Type.String({ description: "Published bundle slug (e.g. @org/agent-name)" })),
|
|
3686
|
+
bundle_version: Type.Optional(Type.String({ description: "Published bundle version" })),
|
|
3687
|
+
generation_status: optionalStringEnum(["published", "failed"], {
|
|
3688
|
+
description: "Generation status: published or failed"
|
|
3689
|
+
})
|
|
3690
|
+
}),
|
|
3691
|
+
execute: async (_toolCallId, args) => {
|
|
3692
|
+
const account = resolveToolAccount();
|
|
3693
|
+
const result = await updateRoleBundle(account, args.role_id, {
|
|
3694
|
+
bundle_slug: args.bundle_slug,
|
|
3695
|
+
bundle_version: args.bundle_version,
|
|
3696
|
+
generation_status: args.generation_status
|
|
3697
|
+
});
|
|
3698
|
+
if (!result.ok) {
|
|
3699
|
+
return {
|
|
3700
|
+
content: [{ type: "text", text: `\u274C Failed to update role bundle: ${result.error}` }],
|
|
3701
|
+
details: { ok: false, error: result.error }
|
|
3702
|
+
};
|
|
3703
|
+
}
|
|
3704
|
+
const text = [
|
|
3705
|
+
`\u2705 Role bundle updated!`,
|
|
3706
|
+
args.bundle_slug ? `- **Bundle**: ${args.bundle_slug}` : "",
|
|
3707
|
+
args.bundle_version ? `- **Version**: ${args.bundle_version}` : "",
|
|
3708
|
+
args.generation_status ? `- **Status**: ${args.generation_status}` : ""
|
|
3709
|
+
].filter(Boolean).join("\n");
|
|
3710
|
+
return {
|
|
3711
|
+
content: [{ type: "text", text }],
|
|
3712
|
+
details: { ok: true }
|
|
3713
|
+
};
|
|
3714
|
+
}
|
|
3663
3715
|
}
|
|
3664
3716
|
];
|
|
3665
3717
|
}),
|
|
@@ -3683,6 +3735,7 @@ function createRemotePlugin() {
|
|
|
3683
3735
|
"- `remote_list_goals` \u2014 List goals with progress (filter by status, parent_id, assigned_to)",
|
|
3684
3736
|
"- `remote_create_goal` \u2014 Create a goal (title, description, success_criteria, parent_id, owner_role_id, target_date)",
|
|
3685
3737
|
"- `remote_update_goal` \u2014 Update a goal (status, title, description, success_criteria, target_date, owner_role_id)",
|
|
3738
|
+
"- `remote_update_role` \u2014 Update a role's bundle info (bundle_slug, bundle_version, generation_status)",
|
|
3686
3739
|
"",
|
|
3687
3740
|
"**Task lifecycle**: todo \u2192 in_progress \u2192 review \u2192 done",
|
|
3688
3741
|
"**Task types**: feature, task, bug",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-remote",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Remote project board channel plugin for OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"openclaw": "*"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|