@vtstech/pi-diag 1.0.8 → 1.0.9
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/diag.js +4 -6
- package/package.json +2 -2
package/diag.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
msHuman,
|
|
13
13
|
pct
|
|
14
14
|
} from "@vtstech/pi-shared/format";
|
|
15
|
-
import {
|
|
15
|
+
import { getOllamaBaseUrl, BUILTIN_PROVIDERS, readModelsJson } from "@vtstech/pi-shared/ollama";
|
|
16
16
|
import {
|
|
17
17
|
BLOCKED_COMMANDS,
|
|
18
18
|
BLOCKED_URL_PATTERNS,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "@vtstech/pi-shared/security";
|
|
24
24
|
function diag_temp_default(pi) {
|
|
25
25
|
const branding = [
|
|
26
|
-
` \u26A1 Pi Diagnostics v1.0.
|
|
26
|
+
` \u26A1 Pi Diagnostics v1.0.9`,
|
|
27
27
|
` Written by VTSTech`,
|
|
28
28
|
` GitHub: https://github.com/VTSTech`,
|
|
29
29
|
` Website: www.vts-tech.org`
|
|
@@ -182,12 +182,10 @@ function diag_temp_default(pi) {
|
|
|
182
182
|
}
|
|
183
183
|
lines.push(section("MODELS.JSON"));
|
|
184
184
|
const agentDir = path.join(os.homedir(), ".pi", "agent");
|
|
185
|
-
const modelsJsonPath = MODELS_JSON_PATH;
|
|
186
185
|
let configuredModels = [];
|
|
187
|
-
|
|
188
|
-
if (
|
|
186
|
+
const modelsJson = readModelsJson();
|
|
187
|
+
if (modelsJson && Object.keys(modelsJson.providers || {}).length > 0) {
|
|
189
188
|
try {
|
|
190
|
-
modelsJson = JSON.parse(fs.readFileSync(modelsJsonPath, "utf-8"));
|
|
191
189
|
const providers = modelsJson.providers || {};
|
|
192
190
|
lines.push(info(`Providers configured: ${Object.keys(providers).length}`));
|
|
193
191
|
for (const [providerName, providerConfig] of Object.entries(providers)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtstech/pi-diag",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Diagnostics extension for Pi Coding Agent",
|
|
5
5
|
"main": "diag.js",
|
|
6
6
|
"keywords": ["pi-extensions"],
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/VTSTech/pi-coding-agent"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@vtstech/pi-shared": "1.0.
|
|
17
|
+
"@vtstech/pi-shared": "1.0.9"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@mariozechner/pi-coding-agent": ">=0.66"
|