@caupulican/pi-adaptative 0.81.16 → 0.81.18
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 +20 -0
- package/dist/bundled-resources/skills/tool-call-repair/references/repair-catalogue.md +18 -0
- package/dist/core/agent-session.d.ts +6 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +109 -9
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/models/adaptation-store.d.ts +3 -0
- package/dist/core/models/adaptation-store.d.ts.map +1 -1
- package/dist/core/models/adaptation-store.js +12 -0
- package/dist/core/models/adaptation-store.js.map +1 -1
- package/dist/core/models/context-sizing.d.ts +30 -0
- package/dist/core/models/context-sizing.d.ts.map +1 -0
- package/dist/core/models/context-sizing.js +90 -0
- package/dist/core/models/context-sizing.js.map +1 -0
- package/dist/core/models/default-model-suggestions.d.ts.map +1 -1
- package/dist/core/models/default-model-suggestions.js +9 -0
- package/dist/core/models/default-model-suggestions.js.map +1 -1
- package/dist/core/models/local-runtime.d.ts +19 -0
- package/dist/core/models/local-runtime.d.ts.map +1 -1
- package/dist/core/models/local-runtime.js +43 -0
- package/dist/core/models/local-runtime.js.map +1 -1
- package/dist/core/models/perf-profile.d.ts +36 -0
- package/dist/core/models/perf-profile.d.ts.map +1 -0
- package/dist/core/models/perf-profile.js +163 -0
- package/dist/core/models/perf-profile.js.map +1 -0
- package/dist/core/models/runtime-arbiter.d.ts +57 -0
- package/dist/core/models/runtime-arbiter.d.ts.map +1 -0
- package/dist/core/models/runtime-arbiter.js +49 -0
- package/dist/core/models/runtime-arbiter.js.map +1 -0
- package/dist/modes/interactive/local-model-commands.d.ts.map +1 -1
- package/dist/modes/interactive/local-model-commands.js +30 -3
- package/dist/modes/interactive/local-model-commands.js.map +1 -1
- package/docs/models.md +1 -0
- 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/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 +34 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [0.81.18] - 2026-07-08
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
- Added an exact Bonsai-4B GGUF Q1_0 curated local-model suggestion for one-step managed Ollama setup and curator-role probing.
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
- Excluded local-only planning docs from npm package file selection even when they exist in a local checkout.
|
|
8
|
+
|
|
9
|
+
## [0.81.17] - 2026-07-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Added host-local model perf profiles that record streamed prefill/decode rates and adapt quiet stall bounds from measured throughput.
|
|
13
|
+
- Added local OpenAI-compatible prefix warming and longer managed Ollama residency defaults for local-model startup.
|
|
14
|
+
- Added local-model context sizing that derives `num_ctx` from host RAM and model metadata, then creates a sized Ollama Modelfile alias for managed installs.
|
|
15
|
+
- Added a runtime residency arbiter core for fitting, evicting, refusing, and reserving local model loads across runtime adapters.
|
|
16
|
+
- Added local acceptance/bench perf-profile hydration so live protocol checks and opt-in local benches feed adaptive stall bounds.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- Documented every tool-repair registry mode in the bundled repair catalogue and covered the registry/docs link with tests.
|
|
20
|
+
|
|
1
21
|
## [0.81.16] - 2026-07-08
|
|
2
22
|
|
|
3
23
|
### Added
|
|
@@ -17,6 +17,24 @@ will repair; the same entry powers the repair, the teach note, the telemetry
|
|
|
17
17
|
tag, and the docs table. Adding a repair means adding one entry plus its
|
|
18
18
|
fixtures, nothing else.
|
|
19
19
|
|
|
20
|
+
Registry mode names currently in force:
|
|
21
|
+
|
|
22
|
+
- `nullOptionalDrop`
|
|
23
|
+
- `nullRequiredBounce`
|
|
24
|
+
- `jsonStringParse`
|
|
25
|
+
- `jsonObjectPropertySalvage`
|
|
26
|
+
- `singleObjectWrap`
|
|
27
|
+
- `bareScalarWrap`
|
|
28
|
+
- `emptyObjectPlaceholder`
|
|
29
|
+
- `numberFromString`
|
|
30
|
+
- `boolFromString`
|
|
31
|
+
- `enumCaseNormalize`
|
|
32
|
+
- `propertyCaseNormalize`
|
|
33
|
+
- `singleElementUnwrap`
|
|
34
|
+
- `stringifiedNumberInArray`
|
|
35
|
+
- `bashCommandArgvJoin`
|
|
36
|
+
- `bashCommandUnwrap`
|
|
37
|
+
|
|
20
38
|
### 1. null-for-optional (`nullOptionalDrop`)
|
|
21
39
|
- Error signature: type mismatch at path P, received `null`, P not in the
|
|
22
40
|
parent's `required` list.
|
|
@@ -373,6 +373,8 @@ export declare class AgentSession {
|
|
|
373
373
|
private _collectWorkspaceSources;
|
|
374
374
|
private readonly _localRuntimeController;
|
|
375
375
|
private readonly _modelAdaptationStore;
|
|
376
|
+
private _prefixWarmer;
|
|
377
|
+
private readonly _completedPrefixWarms;
|
|
376
378
|
private readonly _repairModeSessionCounts;
|
|
377
379
|
private readonly _textProtocolParseFailures;
|
|
378
380
|
private _textProtocolParseObservedThisTurn;
|
|
@@ -445,6 +447,10 @@ export declare class AgentSession {
|
|
|
445
447
|
constructor(config: AgentSessionConfig);
|
|
446
448
|
/** Model registry for API key resolution and model discovery */
|
|
447
449
|
get modelRegistry(): ModelRegistry;
|
|
450
|
+
private _scheduleLocalPrefixWarm;
|
|
451
|
+
private _cancelPrefixWarm;
|
|
452
|
+
private _runLocalPrefixWarm;
|
|
453
|
+
private _isWarmableLocalModel;
|
|
448
454
|
/**
|
|
449
455
|
* True when the session's stream fn is the raw `streamSimple` provider entry (directly, or as the
|
|
450
456
|
* base wrapped by the idle watchdog at construction). Callers use this to decide whether request
|