pi-subagents-lite 1.4.8 → 1.4.10
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/package.json +5 -5
- package/src/agents/agent-runner.ts +1 -1
- package/src/types.ts +3 -3
- package/src/utils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-subagents-lite",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "Lightweight sub-agents for pi — spawn specialized agents with isolated sessions, tools, and models.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"url": "https://github.com/AlexParamonov/pi-subagents-lite/issues"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@earendil-works/pi-ai": "^0.80.
|
|
32
|
-
"@earendil-works/pi-coding-agent": "^0.80.
|
|
33
|
-
"@earendil-works/pi-tui": "^0.80.
|
|
31
|
+
"@earendil-works/pi-ai": "^0.80.10",
|
|
32
|
+
"@earendil-works/pi-coding-agent": "^0.80.10",
|
|
33
|
+
"@earendil-works/pi-tui": "^0.80.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@earendil-works/pi-agent-core": "^0.80.
|
|
36
|
+
"@earendil-works/pi-agent-core": "^0.80.10",
|
|
37
37
|
"@sinclair/typebox": "^0.34.49"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
@@ -399,7 +399,7 @@ async function initSession(
|
|
|
399
399
|
cwd, agentDir,
|
|
400
400
|
sessionManager: SessionManager.inMemory(cwd),
|
|
401
401
|
settingsManager: SettingsManager.create(cwd, agentDir),
|
|
402
|
-
|
|
402
|
+
model,
|
|
403
403
|
tools: getToolNamesForType(type), resourceLoader: loader,
|
|
404
404
|
};
|
|
405
405
|
if (thinkingLevel) sessionOpts.thinkingLevel = thinkingLevel;
|
package/src/types.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Type definitions for the subagent system.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { Model } from "@earendil-works/pi-ai";
|
|
5
|
+
import type { Model, ModelThinkingLevel } from "@earendil-works/pi-ai";
|
|
6
6
|
import type { AgentSession } from "@earendil-works/pi-coding-agent";
|
|
7
7
|
import type { AgentOutputLog } from "./agents/output-file.js";
|
|
8
8
|
import type { LifetimeUsage, AgentUsage } from "./agents/usage.js";
|
|
9
9
|
import type { SubagentType, AgentInvocation } from "./agents/types.js";
|
|
10
10
|
|
|
11
|
-
/** Thinking level for agent models. */
|
|
12
|
-
export type ThinkingLevel =
|
|
11
|
+
/** Thinking level for agent models (sourced from @earendil-works/pi-ai). */
|
|
12
|
+
export type ThinkingLevel = ModelThinkingLevel;
|
|
13
13
|
|
|
14
14
|
/** Tool activity event: start/end of a tool invocation. */
|
|
15
15
|
export interface ToolActivity {
|
package/src/utils.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function safeReadFile(filePath: string): string | undefined {
|
|
|
43
43
|
|
|
44
44
|
/** All valid thinking levels. */
|
|
45
45
|
export const VALID_THINKING_LEVELS: readonly ThinkingLevel[] = [
|
|
46
|
-
"off", "minimal", "low", "medium", "high", "xhigh",
|
|
46
|
+
"off", "minimal", "low", "medium", "high", "xhigh", "max",
|
|
47
47
|
] as const;
|
|
48
48
|
|
|
49
49
|
/**
|