@tuan_son.dinh/gsd 2.6.0 → 2.6.1
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
CHANGED
|
@@ -1,63 +1,3 @@
|
|
|
1
|
-
diff --git a/node_modules/@mariozechner/pi-coding-agent/dist/core/agent-session.js b/node_modules/@mariozechner/pi-coding-agent/dist/core/agent-session.js
|
|
2
|
-
index 90622c2..cff094b 100644
|
|
3
|
-
--- a/node_modules/@mariozechner/pi-coding-agent/dist/core/agent-session.js
|
|
4
|
-
+++ b/node_modules/@mariozechner/pi-coding-agent/dist/core/agent-session.js
|
|
5
|
-
@@ -1007,7 +1007,7 @@ export class AgentSession {
|
|
6
|
-
* Validates API key, saves to session and settings.
|
|
7
|
-
* @throws Error if no API key available for the model
|
|
8
|
-
*/
|
|
9
|
-
- async setModel(model) {
|
|
10
|
-
+ async setModel(model, options) {
|
|
11
|
-
const apiKey = await this._modelRegistry.getApiKey(model);
|
|
12
|
-
if (!apiKey) {
|
|
13
|
-
throw new Error(`No API key for ${model.provider}/${model.id}`);
|
|
14
|
-
@@ -1016,7 +1016,9 @@ export class AgentSession {
|
|
15
|
-
const thinkingLevel = this._getThinkingLevelForModelSwitch();
|
|
16
|
-
this.agent.setModel(model);
|
|
17
|
-
this.sessionManager.appendModelChange(model.provider, model.id);
|
|
18
|
-
- this.settingsManager.setDefaultModelAndProvider(model.provider, model.id);
|
|
19
|
-
+ if (options?.persist !== false) {
|
|
20
|
-
+ this.settingsManager.setDefaultModelAndProvider(model.provider, model.id);
|
|
21
|
-
+ }
|
|
22
|
-
// Re-clamp thinking level for new model's capabilities
|
|
23
|
-
this.setThinkingLevel(thinkingLevel);
|
|
24
|
-
await this._emitModelSelect(model, previousModel, "set");
|
|
25
|
-
@@ -1067,7 +1069,9 @@ export class AgentSession {
|
|
26
|
-
// Apply model
|
|
27
|
-
this.agent.setModel(next.model);
|
|
28
|
-
this.sessionManager.appendModelChange(next.model.provider, next.model.id);
|
|
29
|
-
- this.settingsManager.setDefaultModelAndProvider(next.model.provider, next.model.id);
|
|
30
|
-
+ if (options?.persist !== false) {
|
|
31
|
-
+ this.settingsManager.setDefaultModelAndProvider(next.model.provider, next.model.id);
|
|
32
|
-
+ }
|
|
33
|
-
// Apply thinking level.
|
|
34
|
-
// - Explicit scoped model thinking level overrides current session level
|
|
35
|
-
// - Undefined scoped model thinking level inherits the current session preference
|
|
36
|
-
@@ -1094,7 +1098,9 @@ export class AgentSession {
|
|
37
|
-
const thinkingLevel = this._getThinkingLevelForModelSwitch();
|
|
38
|
-
this.agent.setModel(nextModel);
|
|
39
|
-
this.sessionManager.appendModelChange(nextModel.provider, nextModel.id);
|
|
40
|
-
- this.settingsManager.setDefaultModelAndProvider(nextModel.provider, nextModel.id);
|
|
41
|
-
+ if (options?.persist !== false) {
|
|
42
|
-
+ this.settingsManager.setDefaultModelAndProvider(nextModel.provider, nextModel.id);
|
|
43
|
-
+ }
|
|
44
|
-
// Re-clamp thinking level for new model's capabilities
|
|
45
|
-
this.setThinkingLevel(thinkingLevel);
|
|
46
|
-
await this._emitModelSelect(nextModel, currentModel, "cycle");
|
|
47
|
-
@@ -1659,11 +1665,11 @@ export class AgentSession {
|
|
48
|
-
setActiveTools: (toolNames) => this.setActiveToolsByName(toolNames),
|
|
49
|
-
refreshTools: () => this._refreshToolRegistry(),
|
|
50
|
-
getCommands,
|
|
51
|
-
- setModel: async (model) => {
|
|
52
|
-
+ setModel: async (model, options) => {
|
|
53
|
-
const key = await this.modelRegistry.getApiKey(model);
|
|
54
|
-
if (!key)
|
|
55
|
-
return false;
|
|
56
|
-
- await this.setModel(model);
|
|
57
|
-
+ await this.setModel(model, options);
|
|
58
|
-
return true;
|
|
59
|
-
},
|
|
60
|
-
getThinkingLevel: () => this.thinkingLevel,
|
|
61
1
|
diff --git a/node_modules/@mariozechner/pi-coding-agent/dist/core/tools/bash.js b/node_modules/@mariozechner/pi-coding-agent/dist/core/tools/bash.js
|
|
62
2
|
index 27fe820..68f277f 100644
|
|
63
3
|
--- a/node_modules/@mariozechner/pi-coding-agent/dist/core/tools/bash.js
|
|
@@ -106,3 +46,24 @@ index 27fe820..68f277f 100644
|
|
|
106
46
|
if (timeoutHandle)
|
|
107
47
|
clearTimeout(timeoutHandle);
|
|
108
48
|
if (signal)
|
|
49
|
+
diff --git a/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/theme/dark.json b/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/theme/dark.json
|
|
50
|
+
index 0ca2af5..5d97539 100644
|
|
51
|
+
--- a/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/theme/dark.json
|
|
52
|
+
+++ b/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/theme/dark.json
|
|
53
|
+
@@ -4,6 +4,7 @@
|
|
54
|
+
"vars": {
|
|
55
|
+
"cyan": "#00d7ff",
|
|
56
|
+
"blue": "#5f87ff",
|
|
57
|
+
+ "darkBlue": "#1e4d8c",
|
|
58
|
+
"green": "#b5bd68",
|
|
59
|
+
"red": "#cc6666",
|
|
60
|
+
"yellow": "#ffff00",
|
|
61
|
+
@@ -20,7 +21,7 @@
|
|
62
|
+
},
|
|
63
|
+
"colors": {
|
|
64
|
+
"accent": "accent",
|
|
65
|
+
- "border": "blue",
|
|
66
|
+
+ "border": "darkBlue",
|
|
67
|
+
"borderAccent": "cyan",
|
|
68
|
+
"borderMuted": "darkGray",
|
|
69
|
+
"success": "green",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"vars": {
|
|
5
5
|
"cyan": "#00d7ff",
|
|
6
6
|
"blue": "#5f87ff",
|
|
7
|
+
"darkBlue": "#1e4d8c",
|
|
7
8
|
"green": "#b5bd68",
|
|
8
9
|
"red": "#cc6666",
|
|
9
10
|
"yellow": "#ffff00",
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
},
|
|
21
22
|
"colors": {
|
|
22
23
|
"accent": "accent",
|
|
23
|
-
"border": "
|
|
24
|
+
"border": "darkBlue",
|
|
24
25
|
"borderAccent": "cyan",
|
|
25
26
|
"borderMuted": "darkGray",
|
|
26
27
|
"success": "green",
|