@oh-my-pi/pi-coding-agent 12.8.0 → 12.8.2
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 +10 -0
- package/package.json +7 -7
- package/src/session/agent-session.ts +0 -5
- package/src/system-prompt.ts +10 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [12.8.2] - 2026-02-17
|
|
6
|
+
### Changed
|
|
7
|
+
|
|
8
|
+
- Changed system environment context to use built-in `os` values for distro, kernel, and CPU model instead of native system-info data
|
|
9
|
+
- Changed environment info generation to stop including unavailable native system detail fallbacks
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
|
|
13
|
+
- Removed the `Disk` field from generated environment information
|
|
14
|
+
|
|
5
15
|
## [12.8.0] - 2026-02-16
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-coding-agent",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.2",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@mozilla/readability": "0.6.0",
|
|
87
|
-
"@oh-my-pi/omp-stats": "12.8.
|
|
88
|
-
"@oh-my-pi/pi-agent-core": "12.8.
|
|
89
|
-
"@oh-my-pi/pi-ai": "12.8.
|
|
90
|
-
"@oh-my-pi/pi-natives": "12.8.
|
|
91
|
-
"@oh-my-pi/pi-tui": "12.8.
|
|
92
|
-
"@oh-my-pi/pi-utils": "12.8.
|
|
87
|
+
"@oh-my-pi/omp-stats": "12.8.2",
|
|
88
|
+
"@oh-my-pi/pi-agent-core": "12.8.2",
|
|
89
|
+
"@oh-my-pi/pi-ai": "12.8.2",
|
|
90
|
+
"@oh-my-pi/pi-natives": "12.8.2",
|
|
91
|
+
"@oh-my-pi/pi-tui": "12.8.2",
|
|
92
|
+
"@oh-my-pi/pi-utils": "12.8.2",
|
|
93
93
|
"@sinclair/typebox": "^0.34.48",
|
|
94
94
|
"@xterm/headless": "^6.0.0",
|
|
95
95
|
"ajv": "^8.18.0",
|
|
@@ -2898,11 +2898,6 @@ Be thorough - include exact file paths, function names, error messages, and tech
|
|
|
2898
2898
|
)
|
|
2899
2899
|
.sort((a, b) => a.contextWindow - b.contextWindow);
|
|
2900
2900
|
addCandidate(sameProviderLarger[0]);
|
|
2901
|
-
|
|
2902
|
-
const anyLarger = [...availableModels]
|
|
2903
|
-
.filter(m => m.contextWindow > contextWindow)
|
|
2904
|
-
.sort((a, b) => a.contextWindow - b.contextWindow);
|
|
2905
|
-
addCandidate(anyLarger[0]);
|
|
2906
2901
|
for (const candidate of candidates) {
|
|
2907
2902
|
if (modelsAreEqual(candidate, currentModel)) continue;
|
|
2908
2903
|
if (candidate.contextWindow <= contextWindow) continue;
|
package/src/system-prompt.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* System prompt construction and project context loading
|
|
3
3
|
*/
|
|
4
4
|
import * as os from "node:os";
|
|
5
|
-
import { getSystemInfo as getNativeSystemInfo, type SystemInfo } from "@oh-my-pi/pi-natives";
|
|
6
5
|
import { $env, hasFsCode, isEnoent, logger } from "@oh-my-pi/pi-utils";
|
|
7
6
|
import { getGpuCachePath, getProjectDir } from "@oh-my-pi/pi-utils/dirs";
|
|
8
7
|
import { $ } from "bun";
|
|
@@ -310,35 +309,33 @@ async function saveGpuCache(info: GpuCache): Promise<void> {
|
|
|
310
309
|
}
|
|
311
310
|
|
|
312
311
|
async function getCachedGpu(): Promise<string | undefined> {
|
|
312
|
+
debugStartup("system-prompt:getEnvironmentInfo:getCachedGpu:start");
|
|
313
313
|
const cached = await loadGpuCache();
|
|
314
314
|
if (cached) return cached.gpu;
|
|
315
|
+
debugStartup("system-prompt:getEnvironmentInfo:getGpuModel");
|
|
315
316
|
const gpu = await getGpuModel();
|
|
317
|
+
debugStartup("system-prompt:getEnvironmentInfo:saveGpuCache");
|
|
316
318
|
if (gpu) await saveGpuCache({ gpu });
|
|
317
319
|
return gpu ?? undefined;
|
|
318
320
|
}
|
|
319
321
|
async function getEnvironmentInfo(): Promise<Array<{ label: string; value: string }>> {
|
|
320
|
-
|
|
321
|
-
try {
|
|
322
|
-
nativeInfo = getNativeSystemInfo();
|
|
323
|
-
} catch {
|
|
324
|
-
nativeInfo = null;
|
|
325
|
-
}
|
|
326
|
-
|
|
322
|
+
debugStartup("system-prompt:getEnvironmentInfo:getCachedGpu");
|
|
327
323
|
const gpu = await getCachedGpu();
|
|
324
|
+
debugStartup("system-prompt:getEnvironmentInfo:getCpuInfo");
|
|
328
325
|
const cpus = os.cpus();
|
|
326
|
+
debugStartup("system-prompt:getEnvironmentInfo:buildEntries");
|
|
329
327
|
const entries: Array<{ label: string; value: string | undefined }> = [
|
|
330
328
|
{ label: "OS", value: `${os.platform()} ${os.release()}` },
|
|
331
|
-
{ label: "Distro", value:
|
|
332
|
-
{ label: "Kernel", value:
|
|
329
|
+
{ label: "Distro", value: os.type() },
|
|
330
|
+
{ label: "Kernel", value: os.version() },
|
|
333
331
|
{ label: "Arch", value: os.arch() },
|
|
334
|
-
{ label: "CPU", value: `${cpus.length}x ${
|
|
332
|
+
{ label: "CPU", value: `${cpus.length}x ${cpus[0]?.model}` },
|
|
335
333
|
{ label: "GPU", value: gpu },
|
|
336
|
-
{ label: "Disk", value: nativeInfo?.disk ?? undefined },
|
|
337
334
|
{ label: "Terminal", value: getTerminalName() },
|
|
338
335
|
{ label: "DE", value: getDesktopEnvironment() },
|
|
339
336
|
{ label: "WM", value: getWindowManager() },
|
|
340
337
|
];
|
|
341
|
-
|
|
338
|
+
debugStartup("system-prompt:getEnvironmentInfo:done");
|
|
342
339
|
return entries.filter((e): e is { label: string; value: string } => e.value != null && e.value !== "unknown");
|
|
343
340
|
}
|
|
344
341
|
|