agentic-pi 0.2.9 → 0.2.10
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/dist/models.js +5 -3
- package/dist/models.js.map +1 -1
- package/package.json +3 -3
package/dist/models.js
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* Falls back to the ModelRegistry for custom models when a provider/id is not
|
|
5
5
|
* recognised by the built-in registry.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
// pi 0.80 moved the static catalog read off the pi-ai root: `getModel` now lives
|
|
8
|
+
// in providers/all as `getBuiltinModel` (the root/`compat` aliases are deprecated).
|
|
9
|
+
import { getBuiltinModel } from "@earendil-works/pi-ai/providers/all";
|
|
8
10
|
export function parseModelSpec(spec) {
|
|
9
11
|
const idx = spec.indexOf("/");
|
|
10
12
|
if (idx < 0)
|
|
@@ -18,9 +20,9 @@ export function parseModelSpec(spec) {
|
|
|
18
20
|
}
|
|
19
21
|
export function resolveModel(spec, registry) {
|
|
20
22
|
const { provider, modelId } = parseModelSpec(spec);
|
|
21
|
-
// The types of
|
|
23
|
+
// The types of getBuiltinModel are narrow keyof MODELS — runtime accepts strings.
|
|
22
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
-
const builtin =
|
|
25
|
+
const builtin = getBuiltinModel(provider, modelId);
|
|
24
26
|
if (builtin)
|
|
25
27
|
return builtin;
|
|
26
28
|
const custom = registry.find(provider, modelId);
|
package/dist/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,iFAAiF;AACjF,oFAAoF;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAItE,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,GAAG,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,IAAI,GAAG,CAAC,CAAC;IAChF,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IACpC,IAAI,CAAC,QAAQ,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,0CAA0C,IAAI,GAAG,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,QAAuB;IAChE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEnD,kFAAkF;IAClF,8DAA8D;IAC9D,MAAM,OAAO,GAAI,eAA+E,CAC9F,QAAQ,EACR,OAAO,CACR,CAAC;IACF,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAE5B,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAChD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAE1B,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-pi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "A drop-in coding-agent harness built on earendil-works/pi, designed to replace opencode in workflow-driven systems like lastlight.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@earendil-works/gondolin": "^0.12.0",
|
|
47
|
-
"@earendil-works/pi-ai": "^0.
|
|
48
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
47
|
+
"@earendil-works/pi-ai": "^0.80.2",
|
|
48
|
+
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
49
49
|
"@ff-labs/pi-fff": "^0.9.4",
|
|
50
50
|
"@octokit/auth-app": "^7.1.4",
|
|
51
51
|
"@octokit/rest": "^21.0.2",
|