opensec-pi-subagents 0.20.5 → 0.20.6

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 CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.20.6] - 2026-10-17
11
+
12
+ Restores four fixes the Bun build had in 0.19.5-bun.6 to bun.8 (and 0.19.4-bun.0) that were lost when 0.20.x was
13
+ cut from the Node sources. Both builds have them again.
14
+
15
+ ### Added
16
+
17
+ - **Codemode scripts get a deadline.** Pi runs a `codemode` script with no time limit unless its first line sets
18
+ `timeout_ms`, so one stuck call held the agent forever. Scripts that set none now get `codemodeTimeoutSeconds`
19
+ (setting; default 1800, 0 = off), in the main session and in subagents; a deadline the script sets is kept.
20
+ - **Codemode audit trail.** Every call a codemode script makes is written to
21
+ `$PI_CODEMODE_AUDIT_DIR/<session>/<call id>.log` (default `<agent dir>/opensec/codemode/`): the structured output
22
+ the script received (bash: up to 1 MiB), the exit code and the full-output path, capped per script by
23
+ `PI_CODEMODE_AUDIT_MAX_BYTES` (default 16 MiB). The script's result names the file and says that its filtered
24
+ output is not proof that something is absent; the script's structured result is kept.
25
+
26
+ ### Fixed
27
+
28
+ - **A subagent's `bash` calls made by another tool are bounded too.** The subagent tool timeout only reached calls
29
+ the model made directly; calls a codemode script, `ctx.executeTool()` or a deferred tool made ran without a limit.
30
+ Since 0.20.3 loads codemode in every subagent, that was most of them. The subagent's tool-scope guard now sets the
31
+ timeout on every call path.
32
+ - **Workflow scripts report the right line numbers on Bun.** Bun ignores a negative `lineOffset`, so every stack
33
+ frame pointed one line below the line the author wrote. The wrapper now needs no offset on either runtime.
34
+
10
35
  ## [0.20.5] - 2026-10-16
11
36
 
12
37
  Orchestration results the main agent can act on: failed runs are error results with what they produced, unfinished
package/README.md CHANGED
@@ -117,6 +117,7 @@ locations are those of `@tintinweb/pi-subagents`.
117
117
 
118
118
  Based on `@tintinweb/pi-subagents` 0.19:
119
119
 
120
+ - **0.20.6:** four fixes this build had in 0.19.5-bun.6 to bun.8 are back: a subagent's `bash` calls made by another tool (a codemode script, `ctx.executeTool()`) get the tool timeout; codemode scripts that set no `timeout_ms` get `codemodeTimeoutSeconds` (default 1800 s, 0 = off); every call a codemode script makes is logged raw to `$PI_CODEMODE_AUDIT_DIR/<session>/<call id>.log` (default `<agent dir>/opensec/codemode/`, capped by `PI_CODEMODE_AUDIT_MAX_BYTES`, default 16 MiB) and the script's result names the file; workflow scripts report the right line numbers on Bun again.
120
121
  - **0.20.5:** failed, aborted and stopped agents come back as error results with their last output and session file; weak models' malformed tool arguments are repaired; a running agent's reply asks the model to wait for its notification instead of polling; notifications preview 10 lines and give the result's size; each run's model is recorded and shown; an ambiguous model name is no longer settled by a guess across providers.
121
122
  - **0.20.4:** the conversation viewer draws a subagent's transcript with Pi's own chat components, as Pi's main session does; `ctrl+o` expands and collapses tool output. The `viewerMarkdown` setting and the `m` key are gone.
122
123
  - **0.20.3:**