@vtstech/pi-shared 1.1.5 → 1.1.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.
- package/README.md +4 -1
- package/ollama.js +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -8,8 +8,11 @@ This is an internal dependency — you don't need to install it directly. It's p
|
|
|
8
8
|
|
|
9
9
|
| Module | Description |
|
|
10
10
|
|--------|-------------|
|
|
11
|
+
| `debug` | Conditional debug logging via `PI_EXTENSIONS_DEBUG=1` env var — `debugLog(module, message, ...args)` |
|
|
11
12
|
| `format` | Section headers, indicators (ok/fail/warn/info), numeric formatters (bytes, ms, percentages), string utilities |
|
|
13
|
+
| `model-test-utils` | Shared test utilities — `ChatFn` abstraction, unified test functions (tool usage, reasoning, instruction following), scoring helpers, tool support cache |
|
|
12
14
|
| `ollama` | Ollama base URL resolution, models.json I/O with TTL cache, model family detection, provider detection, Ollama API helpers |
|
|
15
|
+
| `react-parser` | Multi-dialect ReAct text parser — 4 dialects (react, function, tool, call), `parseReact()`, `detectReactDialect()`, `fuzzyMatchToolName()` |
|
|
13
16
|
| `security` | Security mode toggle (`basic`/`max`), partitioned command blocklist (41 CRITICAL + 25 EXTENDED), mode-aware SSRF (19 + 7 patterns), path validation with symlink dereference, URL validation, command sanitization, audit logging with mode tracking (`AUDIT_LOG_PATH` exported) |
|
|
14
17
|
| `types` | Type definitions (ToolSupportLevel, AuditEntry, etc.) |
|
|
15
18
|
|
|
@@ -27,4 +30,4 @@ import { readModelsJson, getOllamaBaseUrl } from "@vtstech/pi-shared/ollama";
|
|
|
27
30
|
|
|
28
31
|
## License
|
|
29
32
|
|
|
30
|
-
MIT — [VTSTech](https://www.vts-tech.org)
|
|
33
|
+
MIT — [VTSTech](https://www.vts-tech.org)
|
package/ollama.js
CHANGED
|
@@ -12,7 +12,7 @@ function debugLog(module, message, ...args) {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// shared/ollama.ts
|
|
15
|
-
var EXTENSION_VERSION = "1.1.
|
|
15
|
+
var EXTENSION_VERSION = "1.1.6";
|
|
16
16
|
var MODELS_JSON_PATH = path.join(os.homedir(), ".pi", "agent", "models.json");
|
|
17
17
|
var _modelsJsonCache = null;
|
|
18
18
|
var _ollamaBaseUrlCache = null;
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtstech/pi-shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Shared utilities for Pi Coding Agent extensions",
|
|
5
5
|
"exports": {
|
|
6
|
+
"./debug": "./debug.js",
|
|
6
7
|
"./format": "./format.js",
|
|
8
|
+
"./model-test-utils": "./model-test-utils.js",
|
|
7
9
|
"./ollama": "./ollama.js",
|
|
10
|
+
"./react-parser": "./react-parser.js",
|
|
8
11
|
"./security": "./security.js",
|
|
9
12
|
"./types": "./types.js"
|
|
10
13
|
},
|