@linzumi/cli 1.0.257 → 1.0.258

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": "@linzumi/cli",
3
- "version": "1.0.257",
3
+ "version": "1.0.258",
4
4
  "description": "Linzumi CLI \u2014 point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,7 +24,7 @@ import { build } from 'esbuild';
24
24
  const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
25
25
 
26
26
  const driverSource = `
27
- import { mkdtempSync, writeFileSync } from 'node:fs';
27
+ import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs';
28
28
  import { tmpdir } from 'node:os';
29
29
  import { join } from 'node:path';
30
30
  import {
@@ -93,6 +93,7 @@ import {
93
93
  } from './src/pipeline/contracts';
94
94
  import { discoverCodexModelCatalog } from './src/channelSession';
95
95
  import { discoverClaudeCodeModelCatalog } from './src/claudeCodeSession';
96
+ import { claudeCodeRoutedProxyModel } from './src/claudeModelTransportLane';
96
97
 
97
98
  const jsonHelpers = {
98
99
  isJsonObject,
@@ -354,18 +355,18 @@ async function handle(testCase) {
354
355
  );
355
356
  return { outcome: outcomeValue, closeCount };
356
357
  }
358
+ case 'claudeCodeRoutedProxyModel':
359
+ return outcome(() =>
360
+ claudeCodeRoutedProxyModel(testCase.model, testCase.nativeModelCatalog)
361
+ );
357
362
  default:
358
363
  return { threw: true, message: 'unknown op ' + String(testCase.op) };
359
364
  }
360
365
  }
361
366
 
362
- let stdin = '';
363
- process.stdin.setEncoding('utf8');
364
- for await (const chunk of process.stdin) {
365
- stdin += chunk;
366
- }
367
+ const stdin = process.argv[2] ?? readFileSync(0, 'utf8');
367
368
  const cases = JSON.parse(stdin);
368
- process.stdout.write(JSON.stringify(await Promise.all(cases.map(handle))));
369
+ writeFileSync(1, JSON.stringify(await Promise.all(cases.map(handle))));
369
370
  `;
370
371
 
371
372
  await mkdir(join(packageRoot, '.differential'), { recursive: true });