pi-open-agents 0.1.16 → 0.1.17
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 +1 -1
- package/src/primary/executor.ts +2 -1
- package/src/primary/manager.ts +2 -2
- package/src/types.ts +2 -2
package/package.json
CHANGED
package/src/primary/executor.ts
CHANGED
|
@@ -64,7 +64,8 @@ async function applyModel(agent: AgentDefinition, pi: ExtensionAPI, ctx: Extensi
|
|
|
64
64
|
* Falls back to the session's current thinking level if agent doesn't specify one.
|
|
65
65
|
*/
|
|
66
66
|
function applyThinking(agent: AgentDefinition, pi: ExtensionAPI): void {
|
|
67
|
-
pi
|
|
67
|
+
// Cast: pi-open-agents accepts "max" (aligned with CLI); pi-agent-core type lags behind
|
|
68
|
+
pi.setThinkingLevel(agent.thinking as any);
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
// ─── Tool Filtering ──────────────────────────────────────────────────────────
|
package/src/primary/manager.ts
CHANGED
|
@@ -82,8 +82,8 @@ export class AgentManager {
|
|
|
82
82
|
if (this.originalState.model) {
|
|
83
83
|
await pi.setModel(this.originalState.model);
|
|
84
84
|
}
|
|
85
|
-
// Restore thinking level
|
|
86
|
-
pi.setThinkingLevel(this.originalState.thinkingLevel);
|
|
85
|
+
// Restore thinking level (cast: pi-agent-core type lags behind on "max")
|
|
86
|
+
pi.setThinkingLevel(this.originalState.thinkingLevel as any);
|
|
87
87
|
// Restore tools
|
|
88
88
|
pi.setActiveTools(this.originalState.toolNames);
|
|
89
89
|
} else {
|
package/src/types.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
export type AgentMode = "primary" | "subagent" | "all";
|
|
12
12
|
|
|
13
|
-
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
13
|
+
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
14
14
|
|
|
15
15
|
export type SystemPromptMode = "append" | "replace" | "replace-all";
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ export type PermissionAction = "allow" | "deny" | "ask";
|
|
|
19
19
|
export type AgentSource = "global" | "project";
|
|
20
20
|
|
|
21
21
|
export const THINKING_LEVELS: readonly ThinkingLevel[] = [
|
|
22
|
-
"off", "minimal", "low", "medium", "high", "xhigh",
|
|
22
|
+
"off", "minimal", "low", "medium", "high", "xhigh", "max",
|
|
23
23
|
] as const;
|
|
24
24
|
|
|
25
25
|
export const SYSTEM_PROMPT_MODES: readonly SystemPromptMode[] = [
|