@korso/shepherd 0.4.2 → 0.4.3
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 +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -357,6 +357,10 @@ var WorkspaceAnnouncement = z2.object({
|
|
|
357
357
|
// (no agent session). The dashboard renders these as "me" (right-aligned).
|
|
358
358
|
// Defaulted for version-skew safety with older hubs.
|
|
359
359
|
fromAdmin: z2.boolean().default(false),
|
|
360
|
+
// True when an agent addressed the message TO the operator (the mirror of
|
|
361
|
+
// fromAdmin). The dashboard renders these as "<agent> → admin". Not delivered
|
|
362
|
+
// to other agents. Defaulted for version-skew safety with older hubs.
|
|
363
|
+
toAdmin: z2.boolean().default(false),
|
|
360
364
|
createdAt: IsoTimestamp
|
|
361
365
|
});
|
|
362
366
|
var WorkspaceLandscapeResponse = z2.object({
|
|
@@ -421,7 +425,13 @@ var AnnounceRequest = z2.object({
|
|
|
421
425
|
sessionId: z2.string().uuid(),
|
|
422
426
|
body: z2.string().min(1).max(8192),
|
|
423
427
|
// absent or null => broadcast to all agents in the workspace
|
|
424
|
-
targetAgentName: z2.string().nullable().optional()
|
|
428
|
+
targetAgentName: z2.string().nullable().optional(),
|
|
429
|
+
// true => address the human operator (the dashboard) instead of agents. The
|
|
430
|
+
// mirror of the operator's admin → agent DM: it shows in the workspace feed as
|
|
431
|
+
// "<agent> → admin" and is NOT delivered to other agents. Mutually exclusive
|
|
432
|
+
// with targetAgentName (the hub rejects setting both). Defaulted/optional for
|
|
433
|
+
// version skew with older clients.
|
|
434
|
+
toAdmin: z2.boolean().optional()
|
|
425
435
|
});
|
|
426
436
|
var AnnounceResponse = z2.object({
|
|
427
437
|
ok: z2.literal(true),
|
|
@@ -1058,7 +1068,7 @@ ${msgs}` : base }
|
|
|
1058
1068
|
"announce",
|
|
1059
1069
|
{
|
|
1060
1070
|
title: "Broadcast a message to teammates",
|
|
1061
|
-
description: "Broadcast a heads-up to the other agents,
|
|
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 (exactly as shown in the landscape) as targetAgentName; to reply to the operator (the dashboard), pass toAdmin: true; omit both to broadcast to everyone in the workspace. targetAgentName and toAdmin are mutually exclusive. Delivery is best-effort: the recipient sees it on their next work/sync, once.",
|
|
1062
1072
|
inputSchema: AnnounceAgentInput.shape
|
|
1063
1073
|
},
|
|
1064
1074
|
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.3",
|
|
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",
|