@vtstech/pi-diag 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/diag.js +2 -15
  2. 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 { MODELS_JSON_PATH, getOllamaBaseUrl } from "@vtstech/pi-shared/ollama";
15
+ import { MODELS_JSON_PATH, getOllamaBaseUrl, BUILTIN_PROVIDERS } 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.5`,
26
+ ` \u26A1 Pi Diagnostics v1.0.6`,
27
27
  ` Written by VTSTech`,
28
28
  ` GitHub: https://github.com/VTSTech`,
29
29
  ` Website: www.vts-tech.org`
@@ -393,19 +393,6 @@ function diag_temp_default(pi) {
393
393
  if (model) {
394
394
  lines.push(info(`Model: ${model.id || "unknown"}`));
395
395
  lines.push(info(`Provider: ${model.provider || "unknown"}`));
396
- const BUILTIN_PROVIDERS = {
397
- openrouter: { api: "openai-completions", baseUrl: "https://openrouter.ai/api/v1" },
398
- anthropic: { api: "anthropic-messages", baseUrl: "https://api.anthropic.com" },
399
- google: { api: "gemini", baseUrl: "https://generativelanguage.googleapis.com" },
400
- openai: { api: "openai-completions", baseUrl: "https://api.openai.com" },
401
- groq: { api: "openai-completions", baseUrl: "https://api.groq.com" },
402
- deepseek: { api: "openai-completions", baseUrl: "https://api.deepseek.com" },
403
- mistral: { api: "openai-completions", baseUrl: "https://api.mistral.ai" },
404
- xai: { api: "openai-completions", baseUrl: "https://api.x.ai" },
405
- together: { api: "openai-completions", baseUrl: "https://api.together.xyz" },
406
- fireworks: { api: "openai-completions", baseUrl: "https://api.fireworks.ai" },
407
- cohere: { api: "cohere-chat", baseUrl: "https://api.cohere.com" }
408
- };
409
396
  const providerName = model.provider || "";
410
397
  const userProviderCfg = modelsJson ? (modelsJson.providers || {})[providerName] : null;
411
398
  if (userProviderCfg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtstech/pi-diag",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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.5"
17
+ "@vtstech/pi-shared": "1.0.6"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@mariozechner/pi-coding-agent": ">=0.66"