@earendil-works/pi-coding-agent 0.79.9 → 0.79.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/CHANGELOG.md +22 -0
- package/README.md +2 -1
- package/dist/config.d.ts +6 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -13
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +10 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/types.d.ts +8 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +19 -11
- package/dist/core/tools/find.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +30 -24
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +29 -16
- package/dist/package-manager-cli.js.map +1 -1
- package/docs/compaction.md +3 -1
- package/docs/extensions.md +6 -1
- package/docs/tui.md +3 -3
- package/docs/usage.md +3 -1
- 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/plan-mode/README.md +3 -2
- package/examples/extensions/plan-mode/index.ts +87 -37
- 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/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
|
@@ -1300,6 +1300,8 @@ export class AgentSession {
|
|
|
1300
1300
|
preparation,
|
|
1301
1301
|
branchEntries: pathEntries,
|
|
1302
1302
|
customInstructions,
|
|
1303
|
+
reason: "manual",
|
|
1304
|
+
willRetry: false,
|
|
1303
1305
|
signal: this._compactionAbortController.signal,
|
|
1304
1306
|
}));
|
|
1305
1307
|
if (result?.cancel) {
|
|
@@ -1344,6 +1346,8 @@ export class AgentSession {
|
|
|
1344
1346
|
type: "session_compact",
|
|
1345
1347
|
compactionEntry: savedCompactionEntry,
|
|
1346
1348
|
fromExtension,
|
|
1349
|
+
reason: "manual",
|
|
1350
|
+
willRetry: false,
|
|
1347
1351
|
});
|
|
1348
1352
|
}
|
|
1349
1353
|
const compactionResult = {
|
|
@@ -1523,6 +1527,8 @@ export class AgentSession {
|
|
|
1523
1527
|
preparation,
|
|
1524
1528
|
branchEntries: pathEntries,
|
|
1525
1529
|
customInstructions: undefined,
|
|
1530
|
+
reason,
|
|
1531
|
+
willRetry,
|
|
1526
1532
|
signal: this._autoCompactionAbortController.signal,
|
|
1527
1533
|
}));
|
|
1528
1534
|
if (extensionResult?.cancel) {
|
|
@@ -1581,6 +1587,8 @@ export class AgentSession {
|
|
|
1581
1587
|
type: "session_compact",
|
|
1582
1588
|
compactionEntry: savedCompactionEntry,
|
|
1583
1589
|
fromExtension,
|
|
1590
|
+
reason,
|
|
1591
|
+
willRetry,
|
|
1584
1592
|
});
|
|
1585
1593
|
}
|
|
1586
1594
|
const result = {
|
|
@@ -1935,7 +1943,7 @@ export class AgentSession {
|
|
|
1935
1943
|
includeAllExtensionTools: options.includeAllExtensionTools,
|
|
1936
1944
|
});
|
|
1937
1945
|
}
|
|
1938
|
-
async reload() {
|
|
1946
|
+
async reload(options) {
|
|
1939
1947
|
const previousFlagValues = this._extensionRunner.getFlagValues();
|
|
1940
1948
|
await emitSessionShutdownEvent(this._extensionRunner, { type: "session_shutdown", reason: "reload" });
|
|
1941
1949
|
await this.settingsManager.reload();
|
|
@@ -1952,6 +1960,7 @@ export class AgentSession {
|
|
|
1952
1960
|
this._extensionShutdownHandler ||
|
|
1953
1961
|
this._extensionErrorListener;
|
|
1954
1962
|
if (hasBindings) {
|
|
1963
|
+
await options?.beforeSessionStart?.();
|
|
1955
1964
|
await this._extensionRunner.emit({ type: "session_start", reason: "reload" });
|
|
1956
1965
|
await this.extendResourcesFromExtensions("reload");
|
|
1957
1966
|
}
|