pi-zro-provider 1.3.23 → 1.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-zro-provider",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "Zro provider extension for pi - GLM-5.2, GLM-5.3 Flash, Kimi K3, DeepSeek V4 Flash & DeepSeek V4.1 Flash through the Zro inference endpoint",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -33,9 +33,12 @@
33
33
  "./index.ts"
34
34
  ]
35
35
  },
36
+ "overrides": {
37
+ "brace-expansion": "5.0.12"
38
+ },
36
39
  "devDependencies": {
37
- "@earendil-works/pi-ai": "1.0.0",
38
- "@earendil-works/pi-coding-agent": "1.0.0",
40
+ "@earendil-works/pi-ai": "1.1.0",
41
+ "@earendil-works/pi-coding-agent": "1.1.0",
39
42
  "@types/node": "^24.10.1",
40
43
  "typescript": "6.0.3"
41
44
  },
@@ -13,7 +13,7 @@ globalThis.fetch = async () => new Response('', { status: 503 });
13
13
  let session;
14
14
  try {
15
15
  const { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, SettingsManager, VERSION } = await import('@earendil-works/pi-coding-agent');
16
- assert.equal(VERSION, '1.0.0', 'test the actual pinned Pi host, not a stale override');
16
+ assert.equal(VERSION, '1.1.0', 'test the actual pinned Pi host, not a stale override');
17
17
  const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
18
18
  for (const name of ['@earendil-works/pi-ai', '@earendil-works/pi-agent-core', '@earendil-works/pi-coding-agent', '@earendil-works/pi-tui', 'typebox']) {
19
19
  assert.equal(manifest.dependencies?.[name], undefined, `${name}: host packages must not be runtime dependencies`);
@@ -58,7 +58,7 @@ try {
58
58
  { id: label, choices: [{ index: 0, delta: {}, finish_reason: 'stop' }], usage: { prompt_tokens: 3, completion_tokens: 2, total_tokens: 5, total_cost: 0.001 } },
59
59
  ];
60
60
  const result = await modelRuntime.streamSimple(model, { messages: [
61
- { role: 'system', content: 'Offline Pi 1.0 transcript', timestamp: 0 },
61
+ { role: 'system', content: 'Offline Pi 1.1.0 transcript', timestamp: 0 },
62
62
  { role: 'user', content: label, timestamp: 1 },
63
63
  ] }, {
64
64
  maxTokens: 32,
@@ -77,13 +77,13 @@ try {
77
77
  assert.equal(result.usage.totalTokens, 5);
78
78
  assert.equal(requestBody.user, label, 'request-scoped instrumentation must not cross concurrent streams');
79
79
  assert.equal(requestBody.max_tokens ?? requestBody.max_completion_tokens, 32);
80
- assert.ok(requestBody.messages.some(message => typeof message.content === 'string' && message.content.includes('Offline Pi 1.0 transcript')));
80
+ assert.ok(requestBody.messages.some(message => typeof message.content === 'string' && message.content.includes('Offline Pi 1.1.0 transcript')));
81
81
  assert.deepEqual(hooks.slice(0, 2), ['payload', 'response']);
82
82
  assert.equal(hooks.filter(hook => hook === 'stream').length, 2);
83
83
  }));
84
84
  assert.equal(globalThis.fetch, offlineFetch, 'Zro must never monkey-patch global fetch');
85
85
  await session.extensionRunner.emit({ type: 'session_shutdown' });
86
- assert.deepEqual(errors, [], 'Pi 1.0 startup and shutdown must be clean');
86
+ assert.deepEqual(errors, [], 'Pi 1.1.0 startup and shutdown must be clean');
87
87
  console.log(`${manifest.name}: Pi ${VERSION} manifest, ${models.length} models, startup/shutdown, concurrent streams and instrumentation OK`);
88
88
  } finally {
89
89
  session?.dispose();