@howaboua/pi-shepherdr 0.2.26 → 0.2.27
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/CHANGELOG.md +5 -0
- package/package.json +3 -3
- package/src/agents-tool.ts +4 -1
- package/src/core/AGENTS.md +1 -0
- package/src/core/remote-endpoint.ts +0 -2
- package/src/core/spawn.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @howaboua/pi-shepherdr
|
|
2
2
|
|
|
3
|
+
## 0.2.27
|
|
4
|
+
|
|
5
|
+
- New remote workers retain their Core parent link for sidebar nesting.
|
|
6
|
+
- Agent guidance now requires the agents tool for supported local and remote operations, including after failures, instead of bypassing it with shell commands.
|
|
7
|
+
|
|
3
8
|
## 0.2.26
|
|
4
9
|
|
|
5
10
|
- Requires Pi 1.5 or newer.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@howaboua/pi-shepherdr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "Persistent blocking and asynchronous Pi agents through Herdr.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@howaboua/pi-notes-compaction": ">=0.0.14",
|
|
46
|
-
"@howaboua/pi-codex-conversion": ">=4.0.
|
|
46
|
+
"@howaboua/pi-codex-conversion": ">=4.0.9",
|
|
47
47
|
"@earendil-works/pi-ai": ">=1.1.0",
|
|
48
48
|
"@earendil-works/pi-coding-agent": ">=1.5.0",
|
|
49
49
|
"@earendil-works/pi-tui": ">=1.1.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@howaboua/pi-notes-compaction": "0.0.14",
|
|
65
|
-
"@howaboua/pi-codex-conversion": "4.0.
|
|
65
|
+
"@howaboua/pi-codex-conversion": "4.0.9",
|
|
66
66
|
"@biomejs/biome": "^2.6.3",
|
|
67
67
|
"@earendil-works/pi-ai": "1.5.0",
|
|
68
68
|
"@earendil-works/pi-coding-agent": "1.5.0",
|
package/src/agents-tool.ts
CHANGED
|
@@ -47,7 +47,10 @@ export function createAgentsTool(
|
|
|
47
47
|
label: "Shepherdr",
|
|
48
48
|
description:
|
|
49
49
|
"Delegate to persistent agents; {} lists additional action fields",
|
|
50
|
-
promptGuidelines: [
|
|
50
|
+
promptGuidelines: [
|
|
51
|
+
"agents: Read help alone first",
|
|
52
|
+
"agents: MUST use for supported agent operations, local or remote; never bypass with hc or shell commands, even after failure. Report blockers. hc remains available for non-agent processes",
|
|
53
|
+
],
|
|
51
54
|
parameters: AgentsParameters,
|
|
52
55
|
executionMode: "parallel",
|
|
53
56
|
async execute(_toolCallId, input: AgentsToolParams, signal, onUpdate, ctx) {
|
package/src/core/AGENTS.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
- Shared `pane_id` is an internal address key here, not a window pane identity. Emit terminal identity; never manufacture layout/focus IDs. Scope remote addresses by permanent Core ID, not session names or mutable machine aliases.
|
|
2
|
+
- Agent launches pass `caller` to the originating Core so it qualifies remote parent links. `parent` resolves on the target Core and can select an unrelated terminal with the same local ID. Keep `no_notify`, not `no_parent`: sidebar ancestry and notification delivery are separate.
|
|
2
3
|
- Remote subscriptions are invalidations: Core 0.1.14 retains old aliases after rename. Host aggregate lists omit slow machines, so supervision reads the selected Core's own list through the verified helper. An empty startup mirror requires a direct get, not rollback.
|
|
3
4
|
- Remote helper bundling reuses the unchanged native peer/session/context readers. Keep its data-URL relative-import map complete when those helpers gain dependencies; never edit or deploy over the legacy bridge.
|
|
4
5
|
- Closing a plain Core request does not cancel accepted remote execution. Keep remote watches and exec watchdogs bounded; abort local callbacks before releasing their monitor/client owner.
|
package/src/core/spawn.ts
CHANGED
|
@@ -61,7 +61,7 @@ export async function startCoreAgent(
|
|
|
61
61
|
argv: [executable, ...args],
|
|
62
62
|
name: params.name,
|
|
63
63
|
cwd,
|
|
64
|
-
|
|
64
|
+
caller: process.env["HC_TERMINAL_ID"],
|
|
65
65
|
outlive_parent: true,
|
|
66
66
|
no_notify: true,
|
|
67
67
|
// Labels request adoption only by a window connected to this Core.
|