Skip to content

Commit 7668adf

Browse files
committed
fix(zcode): reviewer findings — GUI registration, no guessed output budget, flag-order CLI parsing
- Register zcode across the GUI integration surfaces the lockstep test did not cover: FileIntegrationPage semantic/tab maps, overview labels, Integrations tab strip, INTEGRATION_TAB_HASHES (also restores the missing integrations/mcode hash), and tab/semantics i18n keys in all nine locales. - Emit only the authoritative context window in limit; no output stand-in. - ocx zcode now finds the first non-flag token as its verb, so 'ocx zcode --json enable' enables; restore forwards without --client. - Extend the lockstep test to require a routed hash per file client and add five CLI alias tests (forwarding, flag order, GET-only status, unknown verb, restore).
1 parent 1ec6c8d commit 7668adf

17 files changed

Lines changed: 109 additions & 9 deletions

‎gui/src/app-routing.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export const INTEGRATION_TAB_HASHES = [
9090
"integrations/kimi",
9191
"integrations/gajae",
9292
"integrations/dsh",
93+
"integrations/mcode",
94+
"integrations/zcode",
9395
] as const;
9496

9597
export function hashBelongsToPage(rawHash: string, page: Page): boolean {

‎gui/src/i18n/de.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ export const de: Record<TKey, string> = {
847847
"integrations.tab.gajae": "Gajae Code",
848848
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
849849
"integrations.tab.mcode": "MiniMax Code",
850+
"integrations.tab.zcode": "ZCode",
850851
"integrations.codex.title": "Codex CLI",
851852
"integrations.codex.body": "Die Codex-Anbindung wird vom Proxy-Dienst verwaltet. Beim Start von opencodex wird sie angewendet; beim Stoppen des Dienstes wird das native Routing wiederhergestellt.",
852853
"integrations.codex.openService": "Dienststeuerung öffnen",
@@ -959,6 +960,7 @@ export const de: Record<TKey, string> = {
959960
"integrations.semantics.gajae": "Gilt für eine neue Sitzung oder beim Öffnen von /model.",
960961
"integrations.semantics.dsh": "OpenCodex verwaltet nur llm-pi-ai.providers.opencodex in $DSH_HOME/settings.yaml. DSH lädt diesen Anbieter im laufenden Betrieb neu; Ihr Standardmodell und deepseek-official bleiben unverändert. Derzeit nur über Loopback; es werden keine echten Zugangsdaten geschrieben.",
961962
"integrations.semantics.mcode": "Verwaltet nur custom_provider.opencodex. Standardmodell und MiniMax-Anmeldung bleiben unverändert.",
963+
"integrations.semantics.zcode": "Verwaltet nur provider.opencodex in ~/.zcode/v2/config.json. Z.ai-Anmeldung und andere Provider bleiben unverändert. ZCode nach Änderungen neu starten.",
962964
"codexAuth.mainAccount": "Hauptkonto",
963965
"codexAuth.logLabel": "Log-Kennung",
964966
"codexAuth.codexApp": "Codex App",

‎gui/src/i18n/en.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ export const en = {
13321332
"integrations.tab.gajae": "Gajae Code",
13331333
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
13341334
"integrations.tab.mcode": "MiniMax Code",
1335+
"integrations.tab.zcode": "ZCode",
13351336
"integrations.codex.title": "Codex CLI",
13361337
"integrations.codex.body": "Codex wiring is owned by the proxy service. Starting opencodex applies it; stopping the service restores native routing.",
13371338
"integrations.codex.openService": "Open service controls",
@@ -1444,6 +1445,7 @@ export const en = {
14441445
"integrations.semantics.gajae": "Applies to a new session or when opening /model.",
14451446
"integrations.semantics.dsh": "OpenCodex manages only llm-pi-ai.providers.opencodex in $DSH_HOME/settings.yaml. DSH hot reloads this provider; your default model and deepseek-official stay unchanged. Currently loopback-only; no real credential is written.",
14461447
"integrations.semantics.mcode": "Manages only custom_provider.opencodex. Your default model and MiniMax login stay unchanged.",
1448+
"integrations.semantics.zcode": "Manages only provider.opencodex in ~/.zcode/v2/config.json. Your Z.ai login and other providers stay unchanged. Restart ZCode after changes.",
14471449
"codexAuth.mainAccount": "Main Account",
14481450
"codexAuth.logLabel": "Log label",
14491451
"codexAuth.codexApp": "Codex App",

‎gui/src/i18n/fr.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ export const fr: Record<TKey, string> = {
13051305
"integrations.tab.gajae": "Gajae Code",
13061306
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
13071307
"integrations.tab.mcode": "MiniMax Code",
1308+
"integrations.tab.zcode": "ZCode",
13081309
"integrations.codex.title": "Codex CLI",
13091310
"integrations.codex.body": "Le câblage de Codex est géré par le service proxy. Le démarrage d’opencodex l’applique ; l’arrêt du service rétablit le routage natif.",
13101311
"integrations.codex.openService": "Ouvrir les commandes du service",
@@ -1417,6 +1418,7 @@ export const fr: Record<TKey, string> = {
14171418
"integrations.semantics.gajae": "S’applique à une nouvelle session ou à l’ouverture de /model.",
14181419
"integrations.semantics.dsh": "OpenCodex gère uniquement llm-pi-ai.providers.opencodex dans $DSH_HOME/settings.yaml. DSH recharge ce fournisseur à chaud ; votre modèle par défaut et deepseek-official restent inchangés. Seule l’adresse de bouclage est actuellement prise en charge ; aucun identifiant réel n’est écrit.",
14191420
"integrations.semantics.mcode": "Gère uniquement custom_provider.opencodex. Votre modèle par défaut et votre connexion MiniMax restent inchangés.",
1421+
"integrations.semantics.zcode": "Gère uniquement provider.opencodex dans ~/.zcode/v2/config.json. Votre connexion Z.ai et les autres fournisseurs restent inchangés. Redémarrez ZCode après toute modification.",
14201422
"codexAuth.mainAccount": "Compte principal",
14211423
"codexAuth.logLabel": "Libellé du journal",
14221424
"codexAuth.codexApp": "Application Codex",

‎gui/src/i18n/ja.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ export const ja: Record<TKey, string> = {
12651265
"integrations.tab.gajae": "Gajae Code",
12661266
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
12671267
"integrations.tab.mcode": "MiniMax Code",
1268+
"integrations.tab.zcode": "ZCode",
12681269
"integrations.codex.title": "Codex CLI",
12691270
"integrations.codex.body": "Codex の接続はプロキシサービスが管理します。opencodex を起動すると適用され、サービスを停止するとネイティブのルーティングに戻ります。",
12701271
"integrations.codex.openService": "サービス制御を開く",
@@ -1377,6 +1378,7 @@ export const ja: Record<TKey, string> = {
13771378
"integrations.semantics.gajae": "新しいセッション、または /model を開いたときに適用されます。",
13781379
"integrations.semantics.dsh": "OpenCodex が管理するのは $DSH_HOME/settings.yaml 内の llm-pi-ai.providers.opencodex だけです。DSH はこのプロバイダーをホットリロードし、既定のモデルと deepseek-official は変更しません。現在はループバック専用で、実際の認証情報は書き込みません。",
13791380
"integrations.semantics.mcode": "custom_provider.opencodex のみを管理します。既定モデルと MiniMax ログインは変更しません。",
1381+
"integrations.semantics.zcode": "~/.zcode/v2/config.json の provider.opencodex のみを管理します。Z.ai ログインと他のプロバイダーは変更しません。変更後は ZCode を再起動してください。",
13801382
"codexAuth.mainAccount": "メインアカウント",
13811383
"codexAuth.logLabel": "ログラベル",
13821384
"codexAuth.codexApp": "Codex App",

‎gui/src/i18n/ko.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ export const ko: Record<TKey, string> = {
871871
"integrations.tab.gajae": "Gajae Code",
872872
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
873873
"integrations.tab.mcode": "MiniMax Code",
874+
"integrations.tab.zcode": "ZCode",
874875
"integrations.codex.title": "Codex CLI",
875876
"integrations.codex.body": "Codex 연결은 프록시 서비스가 관리합니다. opencodex를 시작하면 적용되고 서비스를 중지하면 기본 라우팅으로 복원됩니다.",
876877
"integrations.codex.openService": "서비스 제어 열기",
@@ -983,6 +984,7 @@ export const ko: Record<TKey, string> = {
983984
"integrations.semantics.gajae": "새 세션 또는 /model을 열 때 적용됩니다.",
984985
"integrations.semantics.dsh": "OpenCodex는 $DSH_HOME/settings.yaml의 llm-pi-ai.providers.opencodex만 관리합니다. DSH는 이 provider를 hot reload하며 기본 model과 deepseek-official은 변경하지 않습니다. 현재 loopback 전용이며 실제 credential을 기록하지 않습니다.",
985986
"integrations.semantics.mcode": "custom_provider.opencodex만 관리하며 기본 모델과 MiniMax 로그인은 변경하지 않습니다.",
987+
"integrations.semantics.zcode": "~/.zcode/v2/config.json의 provider.opencodex만 관리하며 Z.ai 로그인과 다른 프로바이더는 변경하지 않습니다. 변경 후 ZCode를 재시작하세요.",
986988
"codexAuth.mainAccount": "메인 계정",
987989
"codexAuth.logLabel": "로그 라벨",
988990
"codexAuth.codexApp": "Codex App",

‎gui/src/i18n/ru.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,7 @@ export const ru: Record<TKey, string> = {
13161316
"integrations.tab.gajae": "Gajae Code",
13171317
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
13181318
"integrations.tab.mcode": "MiniMax Code",
1319+
"integrations.tab.zcode": "ZCode",
13191320
"integrations.codex.title": "Codex CLI",
13201321
"integrations.codex.body": "Подключением Codex управляет прокси-сервис. При запуске opencodex оно применяется, а при остановке сервиса восстанавливается нативная маршрутизация.",
13211322
"integrations.codex.openService": "Открыть управление сервисом",
@@ -1428,6 +1429,7 @@ export const ru: Record<TKey, string> = {
14281429
"integrations.semantics.gajae": "Применяется в новом сеансе или при открытии /model.",
14291430
"integrations.semantics.dsh": "OpenCodex управляет только llm-pi-ai.providers.opencodex в $DSH_HOME/settings.yaml. DSH применяет этот провайдер горячей перезагрузкой; модель по умолчанию и deepseek-official остаются без изменений. Сейчас поддерживается только loopback; реальные учётные данные не записываются.",
14301431
"integrations.semantics.mcode": "Управляет только custom_provider.opencodex. Модель по умолчанию и вход MiniMax не меняются.",
1432+
"integrations.semantics.zcode": "Управляет только provider.opencodex в ~/.zcode/v2/config.json. Вход Z.ai и другие провайдеры не меняются. Перезапустите ZCode после изменений.",
14311433
"codexAuth.mainAccount": "Основной аккаунт",
14321434
"codexAuth.logLabel": "Метка журнала",
14331435
"codexAuth.codexApp": "Codex App",

‎gui/src/i18n/tr.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ export const tr: Record<TKey, string> = {
13231323
"integrations.tab.gajae": "Gajae Code",
13241324
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
13251325
"integrations.tab.mcode": "MiniMax Code",
1326+
"integrations.tab.zcode": "ZCode",
13261327
"integrations.codex.title": "Codex CLI",
13271328
"integrations.codex.body": "Codex bağlantısı proxy servisine aittir.",
13281329
"integrations.codex.openService": "Servis kontrollerini aç",
@@ -1434,6 +1435,7 @@ export const tr: Record<TKey, string> = {
14341435
"integrations.semantics.gajae": "Yeni oturuma uygulanır.",
14351436
"integrations.semantics.dsh": "OpenCodex yalnızca $DSH_HOME/settings.yaml içindeki llm-pi-ai.providers.opencodex bölümünü yönetir. DSH bu sağlayıcıyı çalışırken yeniden yükler; varsayılan modeliniz ve deepseek-official değişmez. Şimdilik yalnızca geri döngü desteklenir; gerçek kimlik bilgisi yazılmaz.",
14361437
"integrations.semantics.mcode": "Yalnızca custom_provider.opencodex bölümünü yönetir. Varsayılan model ve MiniMax oturumu değişmez.",
1438+
"integrations.semantics.zcode": "Yalnızca ~/.zcode/v2/config.json içindeki provider.opencodex bölümünü yönetir. Z.ai oturumu ve diğer sağlayıcılar değişmez. Değişikliklerden sonra ZCode'u yeniden başlatın.",
14371439
"integrations.semantics.omp": "Kataloğu yüklemek için OMP'yi yeniden başlatın.",
14381440
"codexAuth.mainAccount": "Ana Hesap",
14391441
"codexAuth.logLabel": "Günlük etiketi",

‎gui/src/i18n/zh-TW.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,7 @@ export const zhTW: Record<TKey, string> = {
18411841
"integrations.tab.gajae": "Gajae Code",
18421842
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
18431843
"integrations.tab.mcode": "MiniMax Code",
1844+
"integrations.tab.zcode": "ZCode",
18441845
"integrations.codex.title": "Codex CLI",
18451846
"integrations.codex.body": "Codex 連線由代理服務管理。啟動 opencodex 時套用;停止服務時還原原生路由。",
18461847
"integrations.codex.openService": "開啟服務控制",
@@ -1953,6 +1954,7 @@ export const zhTW: Record<TKey, string> = {
19531954
"integrations.semantics.gajae": "在新工作階段中或開啟 /model 時生效。",
19541955
"integrations.semantics.dsh": "OpenCodex 只管理 $DSH_HOME/settings.yaml 中的 llm-pi-ai.providers.opencodex。DSH 會熱重載該 provider;你的預設模型與 deepseek-official 維持不變。目前僅支援 loopback,且不會寫入真實憑證。",
19551956
"integrations.semantics.mcode": "僅管理 custom_provider.opencodex,不會變更預設模型或 MiniMax 登入狀態。",
1957+
"integrations.semantics.zcode": "僅管理 ~/.zcode/v2/config.json 中的 provider.opencodex,不會變更 Z.ai 登入狀態或其他供應商。變更後請重新啟動 ZCode。",
19561958
"codexAuth.pinned": "已固定",
19571959
"codexAuth.pinnedHint": "你手動選取了此帳號,因此較高的選擇順序不會越過它。此固定會持續到該帳號用盡、你改選其他帳號,或你變更任一選擇順序為止。",
19581960
"codexAuth.requestUserInput": "在 Default 模式中要求輸入",

‎gui/src/i18n/zh.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ export const zh: Record<TKey, string> = {
864864
"integrations.tab.gajae": "Gajae Code",
865865
"integrations.tab.dsh": "DeepSeek Harness (DSH)",
866866
"integrations.tab.mcode": "MiniMax Code",
867+
"integrations.tab.zcode": "ZCode",
867868
"integrations.codex.title": "Codex CLI",
868869
"integrations.codex.body": "Codex 连接由代理服务管理。启动 opencodex 时应用该连接;停止服务时恢复原生路由。",
869870
"integrations.codex.openService": "打开服务控制",
@@ -976,6 +977,7 @@ export const zh: Record<TKey, string> = {
976977
"integrations.semantics.gajae": "在新会话中或打开 /model 时生效。",
977978
"integrations.semantics.dsh": "OpenCodex 只管理 $DSH_HOME/settings.yaml 中的 llm-pi-ai.providers.opencodex。DSH 会热重载该 provider;你的默认模型和 deepseek-official 保持不变。目前仅支持环回地址,且不会写入真实凭据。",
978979
"integrations.semantics.mcode": "仅管理 custom_provider.opencodex,不会更改默认模型或 MiniMax 登录状态。",
980+
"integrations.semantics.zcode": "仅管理 ~/.zcode/v2/config.json 中的 provider.opencodex,不会更改 Z.ai 登录状态或其他提供商。更改后请重启 ZCode。",
979981
"codexAuth.mainAccount": "主账号",
980982
"codexAuth.logLabel": "日志标签",
981983
"codexAuth.codexApp": "Codex App",

0 commit comments

Comments
 (0)