@linzumi/cli 1.0.257 → 1.0.259
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 +1 -1
- package/dist/impl-res/cloud-supervisor.mjs +89 -89
- package/dist/impl-res/index.js +255 -251
- package/dist/impl-ts/cloud-supervisor.mjs +89 -89
- package/dist/impl-ts/index.js +461 -461
- package/package.json +2 -1
- package/scripts/build-protocol-parity-oracle.mjs +8 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linzumi/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.259",
|
|
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": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"scripts"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
+
"test:agent-source": "LINZUMI_CI_QUARANTINE=0 pnpm exec vitest run --config vitest.config.mjs test/channelSession.test.ts test/kandanQueue.test.ts test/llmProxySessionCredential.test.ts test/runnerBridge.test.ts test/threadCodexWorkerIpc.test.ts -t '(?:^| )(retains three busy accepted source snapshots without fusing or interrupting|keeps different accepted agent sources distinct through interrupt pickup|does not install an old mint after its credential is (replaced|stopped)|worker agent capability requires an exact true ready flag|starts an explicitly server-keyed OpenAI agent worker without local OpenAI credentials|applies the accepted OpenAI follow-up model on an existing worker|refuses explicit OpenAI worker creation with (passthrough|missing-token|blank-origin) binding|refuses a private agent turn without an owned relay before Codex|explicitly capable worker receives a private request through ordinary IPC|old worker receives no private agent source descriptor)$'",
|
|
16
17
|
"build": "rescript build ../linzumi-cli-rescript && node scripts/build.mjs",
|
|
17
18
|
"test:actual-commander-parity": "pnpm --dir ../linzumi-cli-rescript build && node --test --test-concurrency=1 ../linzumi-cli-rescript/src/parity/ActualCommanderParityConformance.res.mjs",
|
|
18
19
|
"bump-version": "node scripts/bump-cli-version.mjs",
|
|
@@ -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
|
-
|
|
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
|
-
|
|
369
|
+
writeFileSync(1, JSON.stringify(await Promise.all(cases.map(handle))));
|
|
369
370
|
`;
|
|
370
371
|
|
|
371
372
|
await mkdir(join(packageRoot, '.differential'), { recursive: true });
|