@korso/shepherd 0.4.3 → 0.4.4
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 +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,9 +109,17 @@ function createHubClient({
|
|
|
109
109
|
clearTimeout(timer);
|
|
110
110
|
}
|
|
111
111
|
if (!response.ok) {
|
|
112
|
+
let detail = "";
|
|
113
|
+
try {
|
|
114
|
+
const data = await response.json();
|
|
115
|
+
if (data && typeof data === "object" && "error" in data && typeof data.error === "string") {
|
|
116
|
+
detail = `: ${data.error}`;
|
|
117
|
+
}
|
|
118
|
+
} catch {
|
|
119
|
+
}
|
|
112
120
|
throw new HubRequestError(
|
|
113
121
|
response.status,
|
|
114
|
-
`Hub returned HTTP ${response.status} for ${path2}`
|
|
122
|
+
`Hub returned HTTP ${response.status} for ${path2}${detail}`
|
|
115
123
|
);
|
|
116
124
|
}
|
|
117
125
|
return response.json();
|
|
@@ -1068,7 +1076,7 @@ ${msgs}` : base }
|
|
|
1068
1076
|
"announce",
|
|
1069
1077
|
{
|
|
1070
1078
|
title: "Broadcast a message to teammates",
|
|
1071
|
-
description: "Broadcast a heads-up to the other agents, direct a finding to a specific agent, or reply to the human operator. This is awareness only \u2014 not a task assignment. To direct it to an agent, pass that agent's name
|
|
1079
|
+
description: "Broadcast a heads-up to the other agents, direct a finding to a specific agent, or reply to the human operator. This is awareness only \u2014 not a task assignment. To direct it to an agent, pass that agent's EXACT name as shown in the landscape \u2014 including its numeric suffix (e.g. 'alex-rivera-2', NOT the bare handle 'alex-rivera') \u2014 as targetAgentName. Several agents can share one handle (alex-rivera-1, alex-rivera-2, \u2026); the suffix is what picks one, so the bare handle is rejected. The hub rejects any targetAgentName that doesn't match a live agent in your repo \u2014 if you mean the whole team, omit it to broadcast. To reply to the operator (the dashboard), pass toAdmin: true. targetAgentName and toAdmin are mutually exclusive. Delivery is best-effort: the recipient sees it on their next work/sync, once.",
|
|
1072
1080
|
inputSchema: AnnounceAgentInput.shape
|
|
1073
1081
|
},
|
|
1074
1082
|
async (args) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korso/shepherd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Shepherd MCP server — gives any MCP-capable agent (Claude Code, Codex, etc.) four advisory cross-session coordination tools (work/done/announce/sync) backed by the shared Shepherd hub. Joins the workspace automatically and ships standing instructions so the agent self-coordinates.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|