@nmzpy/pi-ember-stack 0.1.0 → 0.1.1

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 CHANGED
@@ -58,6 +58,12 @@ npm install
58
58
  npm run typecheck
59
59
  ```
60
60
 
61
+ ## Release
62
+
63
+ Run `./gacp.sh --release` to bump the patch version, typecheck, commit, tag,
64
+ push, and publish the package to npm. This only publishes the package; update
65
+ Ember's pinned package version separately when you want the project to install it.
66
+
61
67
  The package is cross-platform: bundled paths are resolved from `import.meta.url`
62
68
  and do not depend on a Windows home directory or the current working
63
69
  directory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmzpy/pi-ember-stack",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Ember's primary modes, questionnaire UI, compact edit renderer, and subagents for pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -12,10 +12,20 @@
12
12
  * are tried before assuming Anthropic.
13
13
  */
14
14
 
15
- import { getModel } from "@earendil-works/pi-ai/compat";
16
15
  import type { Model } from "@earendil-works/pi-ai";
17
16
  import type { ModelRegistry } from "@earendil-works/pi-coding-agent";
18
17
 
18
+ type BuiltInModelResolver = (provider: string, id: string) => Model<any> | undefined;
19
+
20
+ interface ModelModule {
21
+ getModel: BuiltInModelResolver;
22
+ }
23
+
24
+ // Pi 0.80 exposes getModel from /compat; 0.79 exported it from the main entry.
25
+ const { getModel } = (await import("@earendil-works/pi-ai/compat").catch(
26
+ () => import("@earendil-works/pi-ai"),
27
+ )) as ModelModule;
28
+
19
29
  export interface ResolvedModel {
20
30
  model: Model<any> | null;
21
31
  attempted: string[];