@zergai/ztc 0.11.0-beta.1 → 0.11.1-dev.202611072103
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 +7 -4
- package/bin/zmux-darwin-arm64 +0 -0
- package/bin/ztc-audio-darwin-arm64 +0 -0
- package/bin/ztc-capture-darwin-arm64 +0 -0
- package/bin/ztc-computer-darwin-arm64 +0 -0
- package/bin/ztc-llm-darwin-arm64 +0 -0
- package/bin/ztc-tts-darwin-arm64 +0 -0
- package/bin/ztc-tui-darwin-arm64 +0 -0
- package/bin/zterm-darwin-arm64 +0 -0
- package/dist/agent/backends/codex_auth.js +4 -4
- package/dist/zlm-embed.mjs +2823 -36899
- package/package.json +14 -6
package/README.md
CHANGED
|
@@ -36,8 +36,8 @@ authentication, your first plan, named sessions, platform support, and licensing
|
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
# Check the published beta and install the public CLI
|
|
39
|
-
npm view @zergai/ztc
|
|
40
|
-
npm install -g @zergai/ztc
|
|
39
|
+
npm view @zergai/ztc version
|
|
40
|
+
npm install -g @zergai/ztc
|
|
41
41
|
ztc --version
|
|
42
42
|
|
|
43
43
|
# Start with a read-only inspection of a real project
|
|
@@ -204,8 +204,11 @@ and every 6 hours, downloads and verifies a newer release in the background,
|
|
|
204
204
|
and installs it when you quit ZTC; it never restarts while you work. Turning
|
|
205
205
|
off **Update ZTC automatically** in the Updates window restores manual
|
|
206
206
|
download and installation. Inside the app, `/update` explains this instead of
|
|
207
|
-
running npm.
|
|
208
|
-
|
|
207
|
+
running npm. The Updates window says what's new in a release (its highlights,
|
|
208
|
+
every change a click away and a link to its release notes), and after an in-app
|
|
209
|
+
update installs, the next launch shows what's new in it. See
|
|
210
|
+
[desktop release details](packages/zterm/RELEASES.md) for the trust, packaging
|
|
211
|
+
and publication contract.
|
|
209
212
|
|
|
210
213
|
### Voice & Media
|
|
211
214
|
- **Voice dictation** — native Whisper transcription (Ctrl+R)
|
package/bin/zmux-darwin-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/ztc-llm-darwin-arm64
CHANGED
|
Binary file
|
package/bin/ztc-tts-darwin-arm64
CHANGED
|
Binary file
|
package/bin/ztc-tui-darwin-arm64
CHANGED
|
Binary file
|
package/bin/zterm-darwin-arm64
CHANGED
|
Binary file
|
|
@@ -292,7 +292,7 @@ export class CodexAuthManager {
|
|
|
292
292
|
throw new Error("Failed to refresh Codex token. Run 'codex' to re-authenticate.");
|
|
293
293
|
}
|
|
294
294
|
if (!res.ok) {
|
|
295
|
-
await res.body?.cancel();
|
|
295
|
+
await res.body?.cancel().catch(() => undefined);
|
|
296
296
|
throw new Error(`Failed to refresh Codex token (HTTP ${res.status}). Run 'codex' to re-authenticate.`);
|
|
297
297
|
}
|
|
298
298
|
let rawData;
|
|
@@ -467,14 +467,14 @@ export class CodexAuthBackend {
|
|
|
467
467
|
});
|
|
468
468
|
if (!response.ok) {
|
|
469
469
|
if (response.status === 401 && !_retried && (!recovery || recovery.canPost())) {
|
|
470
|
-
await response.body?.cancel();
|
|
470
|
+
await response.body?.cancel().catch(() => undefined);
|
|
471
471
|
await this.authManager.refreshToken(request.signal, true);
|
|
472
472
|
return this.fetchResponses(request, true, recovery);
|
|
473
473
|
}
|
|
474
474
|
// A 429 body only classifies the limit window; provider text is never surfaced.
|
|
475
475
|
const limitText = response.status === 429 ? await readBoundedProviderError(response).catch(() => '') : '';
|
|
476
476
|
if (response.status !== 429)
|
|
477
|
-
await response.body?.cancel();
|
|
477
|
+
await response.body?.cancel().catch(() => undefined);
|
|
478
478
|
const rawRequestId = response.headers.get('x-request-id') || '';
|
|
479
479
|
const requestId = /^[A-Za-z0-9._:-]{1,128}$/.test(rawRequestId) ? rawRequestId : '';
|
|
480
480
|
const errorText = `Codex API error (${response.status})${requestId ? ` request_id=${requestId}` : ''}`;
|
|
@@ -501,7 +501,7 @@ export class CodexAuthBackend {
|
|
|
501
501
|
}
|
|
502
502
|
boundResponse(response, maxBytes) {
|
|
503
503
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1) {
|
|
504
|
-
void response.body?.cancel();
|
|
504
|
+
void response.body?.cancel().catch(() => undefined);
|
|
505
505
|
throw new Error('Codex response byte budget must be a positive integer');
|
|
506
506
|
}
|
|
507
507
|
if (!response.body)
|