@averyyy/pi-coding-agent 0.80.6-piclient.9 → 0.80.7-piclient.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/CHANGELOG.md +19 -1
- package/dist/core/agent-session-services.d.ts +1 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +1 -0
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +4 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +7 -5
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +16 -2
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +1 -0
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +7 -2
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +1 -0
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/radius.d.ts +21 -0
- package/dist/core/radius.d.ts.map +1 -0
- package/dist/core/radius.js +30 -0
- package/dist/core/radius.js.map +1 -0
- package/dist/core/sdk.d.ts +2 -0
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +1 -11
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +2 -2
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/custom-provider.md +2 -0
- package/docs/models.md +2 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
|
@@ -195,6 +195,7 @@ export class AgentSession {
|
|
|
195
195
|
_extensionShutdownHandler;
|
|
196
196
|
_extensionErrorListener;
|
|
197
197
|
_extensionErrorUnsubscriber;
|
|
198
|
+
_autoSessionNameEnabled;
|
|
198
199
|
_autoSessionNameAttempted = false;
|
|
199
200
|
// Model registry for API key resolution
|
|
200
201
|
_modelRegistry;
|
|
@@ -222,6 +223,7 @@ export class AgentSession {
|
|
|
222
223
|
this._excludedToolNames = config.excludedToolNames ? new Set(config.excludedToolNames) : undefined;
|
|
223
224
|
this._baseToolsOverride = config.baseToolsOverride;
|
|
224
225
|
this._sessionStartEvent = config.sessionStartEvent ?? { type: "session_start", reason: "startup" };
|
|
226
|
+
this._autoSessionNameEnabled = config.autoSessionName ?? true;
|
|
225
227
|
if (isPiServerMode()) {
|
|
226
228
|
this._detachPiServerTerminalAssistantFailure();
|
|
227
229
|
}
|
|
@@ -268,7 +270,7 @@ export class AgentSession {
|
|
|
268
270
|
}
|
|
269
271
|
throw new Error(formatNoApiKeyFoundMessage(model.provider));
|
|
270
272
|
}
|
|
271
|
-
async
|
|
273
|
+
async _getSummarizationRequestAuth(model) {
|
|
272
274
|
if (this.agent.streamFn === streamSimple) {
|
|
273
275
|
return this._getRequiredRequestAuth(model);
|
|
274
276
|
}
|
|
@@ -1001,7 +1003,7 @@ export class AgentSession {
|
|
|
1001
1003
|
return transcript ? truncateForSessionNameInput(transcript) : undefined;
|
|
1002
1004
|
}
|
|
1003
1005
|
_shouldGenerateSessionName() {
|
|
1004
|
-
if (this._autoSessionNameAttempted || this._sessionHasInfoEntry())
|
|
1006
|
+
if (!this._autoSessionNameEnabled || this._autoSessionNameAttempted || this._sessionHasInfoEntry())
|
|
1005
1007
|
return false;
|
|
1006
1008
|
const userMessages = this.agent.state.messages.filter((message) => message.role === "user");
|
|
1007
1009
|
if (userMessages.length !== 1)
|
|
@@ -1691,7 +1693,7 @@ export class AgentSession {
|
|
|
1691
1693
|
if (!this.model) {
|
|
1692
1694
|
throw new Error(formatNoModelSelectedMessage());
|
|
1693
1695
|
}
|
|
1694
|
-
const { apiKey, headers, env } = await this.
|
|
1696
|
+
const { apiKey, headers, env } = await this._getSummarizationRequestAuth(this.model);
|
|
1695
1697
|
if (isPiServerMode()) {
|
|
1696
1698
|
this._detachPiServerTerminalAssistantFailure();
|
|
1697
1699
|
const piServerResult = await compactPiServer(this.model, {
|
|
@@ -1960,7 +1962,7 @@ export class AgentSession {
|
|
|
1960
1962
|
env = authResult.env;
|
|
1961
1963
|
}
|
|
1962
1964
|
else {
|
|
1963
|
-
({ apiKey, headers, env } = await this.
|
|
1965
|
+
({ apiKey, headers, env } = await this._getSummarizationRequestAuth(this.model));
|
|
1964
1966
|
}
|
|
1965
1967
|
if (isPiServerMode()) {
|
|
1966
1968
|
this._emit({ type: "compaction_start", reason });
|
|
@@ -2786,7 +2788,7 @@ export class AgentSession {
|
|
|
2786
2788
|
let summaryDetails;
|
|
2787
2789
|
if (options.summarize && entriesToSummarize.length > 0 && !extensionSummary) {
|
|
2788
2790
|
const model = this.model;
|
|
2789
|
-
const { apiKey, headers, env } = await this.
|
|
2791
|
+
const { apiKey, headers, env } = await this._getSummarizationRequestAuth(model);
|
|
2790
2792
|
const branchSummarySettings = this.settingsManager.getBranchSummarySettings();
|
|
2791
2793
|
const result = await generateBranchSummary(entriesToSummarize, {
|
|
2792
2794
|
model,
|