@johnnywu/pi-subagents 1.4.0 → 1.5.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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/extensions/agent-loader.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.5.0](https://github.com/jwu/pi-subagents/compare/v1.4.0...v1.5.0) (2026-06-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* support extended thinking levels ([0721713](https://github.com/jwu/pi-subagents/commit/07217133b20b37c5e2c5a4a3c262b7cf6cabc242))
|
|
7
|
+
|
|
1
8
|
# [1.4.0](https://github.com/jwu/pi-subagents/compare/v1.3.0...v1.4.0) (2026-06-02)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Agents are Markdown files with YAML frontmatter.
|
|
|
93
93
|
| `description` | no | — | Human-readable summary |
|
|
94
94
|
| `tools` | no | _none_ | Comma-separated tool whitelist (`read, write, bash, grep`, etc.) |
|
|
95
95
|
| `model` | no | parent's model | Provider/model-id (`anthropic/claude-sonnet-4-6`) |
|
|
96
|
-
| `thinking` | no | `off` | Reasoning level: `off`, `low`, `medium`, `high` |
|
|
96
|
+
| `thinking` | no | `off` | Reasoning level: `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
97
97
|
| `systemPrompt` | no | `append` | How the body is applied: `append` (append to pi default system prompt and project context) or `replace` (replace default prompt and skip project context) |
|
|
98
98
|
| `skills` | no | _none_ | Comma-separated skill names or simple wildcard patterns (`*`, `obsidian-*`) to load (resolved from project `.agents/skills/`, `.pi/skills/`, global `~/.pi/agent/skills/`, or npm packages) |
|
|
99
99
|
| `allowedAgents` | no | _all_ | Comma-separated list of sub-agents this agent may spawn |
|
|
@@ -2,7 +2,7 @@ import * as fs from 'node:fs/promises';
|
|
|
2
2
|
import * as os from 'node:os';
|
|
3
3
|
import * as path from 'node:path';
|
|
4
4
|
|
|
5
|
-
export type ThinkingLevel = 'off' | 'low' | 'medium' | 'high';
|
|
5
|
+
export type ThinkingLevel = 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
|
|
6
6
|
export type SystemPromptMode = 'replace' | 'append';
|
|
7
7
|
export type AgentSource = 'global' | 'project';
|
|
8
8
|
|
|
@@ -104,7 +104,7 @@ function parseAgentFile(content: string, filePath: string, source: AgentSource):
|
|
|
104
104
|
if (!data.name) throw new Error('missing required field: name');
|
|
105
105
|
|
|
106
106
|
const thinking = (data.thinking ?? 'off') as ThinkingLevel;
|
|
107
|
-
if (!['off', 'low', 'medium', 'high'].includes(thinking)) {
|
|
107
|
+
if (!['off', 'minimal', 'low', 'medium', 'high', 'xhigh'].includes(thinking)) {
|
|
108
108
|
throw new Error(`invalid thinking: ${data.thinking}`);
|
|
109
109
|
}
|
|
110
110
|
|