pi-herdsman 0.6.2 → 0.7.0
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/SKILL.md +3 -1
- package/dist/index.js +64 -62
- package/docs/reference/agent.md +6 -0
- package/docs/reference/commands.md +2 -1
- package/docs/reference/configuration.md +10 -0
- package/package.json +1 -1
package/docs/reference/agent.md
CHANGED
|
@@ -61,6 +61,12 @@ session fail closed. The controller's own active Pi session cannot be continued
|
|
|
61
61
|
to itself; use `delegate` with `fork` when a separate derived context is
|
|
62
62
|
required.
|
|
63
63
|
|
|
64
|
+
When `contextRetirement` is enabled, `continue` is rejected for a retired
|
|
65
|
+
managed-agent session. A `delegate` with `fork` is also rejected when its
|
|
66
|
+
source is a retired managed-agent session; delegate a fresh agent and pass the
|
|
67
|
+
previous handoff/resultRef and relevant files instead. Retired results
|
|
68
|
+
explicitly instruct the controller to delegate a fresh agent.
|
|
69
|
+
|
|
64
70
|
The saved session's logical label is inherited exactly for the continued
|
|
65
71
|
generation. A caller cannot provide a continuation label; if the inherited
|
|
66
72
|
label is occupied, continuation fails with `agent_label_exists`.
|
|
@@ -19,7 +19,8 @@ plain `/agents` remains available as a setup diagnostic.
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
The plain command opens a native Pi selection menu with `Running`,
|
|
22
|
-
`Definitions`, `Layout`, `Message limits`, and
|
|
22
|
+
`Definitions`, `Layout`, `Context retirement on|off`, `Message limits`, and
|
|
23
|
+
`Stop all…` destinations. The
|
|
23
24
|
Message limits view edits the user-wide inline attachment and mailbox payload
|
|
24
25
|
limits. It is available only to a lead Pi session with UI. Current
|
|
25
26
|
values and presets show a rough token equivalent using four UTF-8 bytes per
|
|
@@ -26,6 +26,7 @@ schema is:
|
|
|
26
26
|
```json
|
|
27
27
|
{
|
|
28
28
|
"spawnPlacement": "subtree",
|
|
29
|
+
"contextRetirement": true,
|
|
29
30
|
"inlineAttachmentLimitBytes": 131072,
|
|
30
31
|
"mailboxPayloadLimitBytes": 131072
|
|
31
32
|
}
|
|
@@ -36,6 +37,7 @@ An absent file means these defaults:
|
|
|
36
37
|
| Field | Default | Allowed values |
|
|
37
38
|
| ---------------------------- | -----------------: | ------------------------------------------------- |
|
|
38
39
|
| `spawnPlacement` | `subtree` | `tab`, `subtree`, `split` |
|
|
40
|
+
| `contextRetirement` | true | boolean |
|
|
39
41
|
| `inlineAttachmentLimitBytes` | `131072` (128 KiB) | integer from 1024 (1 KiB) through 1048576 (1 MiB) |
|
|
40
42
|
| `mailboxPayloadLimitBytes` | `131072` (128 KiB) | integer from 1024 (1 KiB) through 1048576 (1 MiB) |
|
|
41
43
|
|
|
@@ -49,6 +51,14 @@ files remain canonical references. `mailboxPayloadLimitBytes` limits the exact
|
|
|
49
51
|
serialized request, ask, or chief message record. Chief messages also retain
|
|
50
52
|
their fixed 8 KiB protocol ceiling.
|
|
51
53
|
|
|
54
|
+
When `contextRetirement` is enabled, automatic context pressure retires a
|
|
55
|
+
managed-agent session. Herdsman suppresses preventive threshold compaction
|
|
56
|
+
while the assignment finalizes and leaves Pi's overflow recovery available.
|
|
57
|
+
The session receives a finalization instruction, and its result requires a
|
|
58
|
+
fresh agent for follow-up. Disabling it bypasses retirement completely,
|
|
59
|
+
including existing retirement markers, and leaves Pi's native compaction and
|
|
60
|
+
session reuse behavior untouched.
|
|
61
|
+
|
|
52
62
|
Placement affects future starts, not existing agents. `tab` uses one lead-owned
|
|
53
63
|
agents tab, `subtree` gives each lead-direct agent its own tab, and `split`
|
|
54
64
|
splits from the caller's pane. Nested delegation always splits in its owner's
|
package/package.json
CHANGED