pi-prompt-template-model 0.6.0 → 0.6.2
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 +27 -0
- package/README.md +210 -289
- package/args.ts +72 -0
- package/chain-parser.ts +3 -2
- package/index.ts +176 -149
- package/loop-utils.ts +65 -19
- package/model-selection.ts +1 -1
- package/package.json +5 -1
- package/prompt-execution.ts +31 -7
- package/prompt-loader.ts +153 -3
- package/subagent-renderer.ts +162 -0
- package/subagent-runtime.ts +211 -0
- package/subagent-step.ts +327 -0
- package/subagent-widget.ts +99 -0
- package/tool-manager.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.2] - 2026-03-20
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Added delegated-subprocess working directory controls via `cwd` frontmatter (for `subagent` prompts and chain-template defaults) plus runtime `--cwd=<path>` overrides.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Rewrote README for clarity: fixed default subagent name (`delegate`, not `worker`), corrected provider priority to include `openai-codex`, merged broken frontmatter table into grouped sections with readable descriptions, cut redundant examples, and tightened prose throughout.
|
|
12
|
+
|
|
13
|
+
## [0.6.1] - 2026-03-20
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Added delegated prompt execution via direct extension event bus communication with `subagent` (`prompt-template:subagent:*` channels), including delegated custom-message persistence for loop summaries and context carry-forward.
|
|
17
|
+
- Added prompt frontmatter support for `subagent` and `inheritContext`, with `inheritContext: true` mapped to delegated fork context.
|
|
18
|
+
- Fork context preamble is handled by the subagent extension directly (via `DEFAULT_FORK_PREAMBLE` in `types.ts`), applying to all fork-context subagent runs universally.
|
|
19
|
+
- Added runtime delegation override flags: `--subagent`, `--subagent=<name>`, and `--subagent:<name>`.
|
|
20
|
+
- Added live progress widget above editor during delegated subagent runs showing elapsed time, tool count, tokens, current tool, and task preview — matching the native subagent tool card layout.
|
|
21
|
+
- Added styled completion card with task preview, tool call history, expandable output (Ctrl+O), and usage stats footer.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Updated provider priority for ambiguous bare model IDs to prefer `openai-codex` before `anthropic`, `github-copilot`, and `openrouter`.
|
|
25
|
+
- Updated loop convergence and fresh-summary analysis to account for delegated subagent message payloads.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
- Delegated start-time hangs now fail fast with explicit timeout errors when a subagent run never emits a start signal.
|
|
29
|
+
- Delegated runs no longer treat arbitrary escape-sequence-bearing terminal input as an Esc cancellation signal; only literal Esc cancels.
|
|
30
|
+
- Chain and loop restore paths now use live runtime model/thinking state during cleanup, preventing skipped restore on mid-step failures.
|
|
31
|
+
|
|
5
32
|
## [0.6.0] - 2026-03-19
|
|
6
33
|
|
|
7
34
|
### Changed
|