@johnnywu/pi-subagents 2.1.0 → 2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.1.1](https://github.com/jwu/pi-subagents/compare/v2.1.0...v2.1.1) (2026-07-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * migrate model registry to Pi 0.80 runtime ([00026d6](https://github.com/jwu/pi-subagents/commit/00026d6e6aaea112896f358c0f86d20f48e73318))
7
+
1
8
  # [2.1.0](https://github.com/jwu/pi-subagents/compare/v2.0.0...v2.1.0) (2026-06-17)
2
9
 
3
10
 
@@ -1,4 +1,8 @@
1
- import { AuthStorage, ModelRegistry, withFileMutationQueue } from '@earendil-works/pi-coding-agent';
1
+ import {
2
+ ModelRegistry,
3
+ ModelRuntime,
4
+ withFileMutationQueue,
5
+ } from '@earendil-works/pi-coding-agent';
2
6
  import { spawn } from 'node:child_process';
3
7
  import * as fs from 'node:fs/promises';
4
8
  import * as os from 'node:os';
@@ -467,10 +471,11 @@ export async function runSubagent(options: RunSubagentOptions): Promise<AgentRes
467
471
  }
468
472
 
469
473
  const pi = await resolvePi();
470
- const modelRegistry = ModelRegistry.create(
471
- AuthStorage.create(options.agentDir ? path.join(options.agentDir, 'auth.json') : undefined),
472
- options.agentDir ? path.join(options.agentDir, 'models.json') : undefined,
473
- );
474
+ const runtime = await ModelRuntime.create({
475
+ authPath: options.agentDir ? path.join(options.agentDir, 'auth.json') : undefined,
476
+ modelsPath: options.agentDir ? path.join(options.agentDir, 'models.json') : undefined,
477
+ });
478
+ const modelRegistry = new ModelRegistry(runtime);
474
479
  const args = [pi.entryPoint, '--mode', 'json', '-p', '--no-skills', '--no-prompt-templates'];
475
480
 
476
481
  if (options.agent.systemPromptMode === 'replace-all') args.push('--no-context-files');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnnywu/pi-subagents",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Sub-agents extension for pi coding agent.",
5
5
  "homepage": "https://github.com/jwu/pi-subagents#readme",
6
6
  "repository": {
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@earendil-works/pi-ai": "*",
85
- "@earendil-works/pi-coding-agent": "*",
85
+ "@earendil-works/pi-coding-agent": ">=0.80.10",
86
86
  "@earendil-works/pi-tui": "*",
87
87
  "typebox": "*"
88
88
  },