From b9b51f29d1b0737ee9eb7420a0ba962461f45723 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Sun, 10 May 2026 14:41:08 +0000 Subject: [PATCH] fix(config): use inherited stdio for opencode handoff --- changelog.md | 3 +++ package.json | 2 +- pnpm-lock.yaml | 58 +++++++++++++++++++++++++----------------- ts/mod_config/index.ts | 2 +- 4 files changed, 40 insertions(+), 25 deletions(-) diff --git a/changelog.md b/changelog.md index d09c43b..531dfb3 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,9 @@ ## Pending +### Fixes + +- Run `gitzone config fix` opencode handoff with inherited terminal I/O. ## 2026-05-10 - 2.18.0 diff --git a/package.json b/package.json index bdb1d53..30738c7 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "@push.rocks/smartpath": "^6.0.0", "@push.rocks/smartpromise": "^4.2.3", "@push.rocks/smartscaf": "^4.0.21", - "@push.rocks/smartshell": "^3.3.7", + "@push.rocks/smartshell": "^3.5.0", "@push.rocks/smartunique": "^3.0.9", "@push.rocks/smartupdate": "^2.0.6", "prettier": "^3.8.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 104e60d..6f21f59 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -81,8 +81,8 @@ importers: specifier: ^4.0.21 version: 4.0.21 '@push.rocks/smartshell': - specifier: ^3.3.7 - version: 3.3.7 + specifier: ^3.5.0 + version: 3.5.0 '@push.rocks/smartunique': specifier: ^3.0.9 version: 3.0.9 @@ -1063,6 +1063,9 @@ packages: '@push.rocks/smartdelay@3.0.5': resolution: {integrity: sha512-mUuI7kj2f7ztjpic96FvRIlf2RsKBa5arw81AHNsndbxO6asRcxuWL8dTVxouEIK8YsBUlj0AsrCkHhMbLQdHw==} + '@push.rocks/smartdelay@3.1.0': + resolution: {integrity: sha512-59xveBMbWmbFhh/rqhQnYG/klg/VONG9hV8+RQ7ftqsNRkcmUT+VM5etAbODgAUvsF4lxK+xVR0tbZOo0kGhRQ==} + '@push.rocks/smartdiff@1.1.0': resolution: {integrity: sha512-AAz/unmko0C+g+60odOoK32PE3Ci3YLoB+zfg1LGLyVRCthcdzjqa1C2Km0MfG7IyJQKPdj8J5HPubtpm3ZeaQ==} @@ -1192,6 +1195,9 @@ packages: '@push.rocks/smartpromise@4.2.3': resolution: {integrity: sha512-Ycg/TJR+tMt+S3wSFurOpEoW6nXv12QBtKXgBcjMZ4RsdO28geN46U09osPn9N9WuwQy1PkmTV5J/V4F9U8qEw==} + '@push.rocks/smartpromise@4.2.4': + resolution: {integrity: sha512-8FUyYt94hOIY9mqHjitn4h69u0jbEtTF2RKKw2DpiTVFjpDTk9gXbVHZ/V+xEcBrN4mrzdQES0OiDmkNPoddEQ==} + '@push.rocks/smartpuppeteer@2.0.5': resolution: {integrity: sha512-yK/qSeWVHIGWRp3c8S5tfdGP6WCKllZC4DR8d8CQlEjszOSBmHtlTdyyqOMBZ/BA4kd+eU5f3A1r4K2tGYty1g==} @@ -1222,8 +1228,8 @@ packages: '@push.rocks/smartserve@2.0.1': resolution: {integrity: sha512-YQb2qexfCzCqOlLWBBXKMg6xG4zahCPAxomz/KEKAwHtW6wMTtuHKSTSkRTQ0vl9jssLMAmRz2OyafiL9XGJXQ==} - '@push.rocks/smartshell@3.3.7': - resolution: {integrity: sha512-b3st2+FjHUVhZZRlXfw93+SQA0UMVlURqe55uVpWdjJX7jeGXTTeszuYygtiR99zC5iZ8WZhGDct3N2L1qc/qw==} + '@push.rocks/smartshell@3.5.0': + resolution: {integrity: sha512-Hx9TVvC/AWxZsnm1GDb+W4Fe58nf1FkKbSBABUgkxct4XRYugBI2z9Twnjm3R9vdRry8oy0enfR9NPVhisGaGA==} '@push.rocks/smartspawn@3.0.3': resolution: {integrity: sha512-DyrGPV69wwOiJgKkyruk5hS3UEGZ99xFAqBE9O2nM8VXCRLbbty3xt1Ug5Z092ZZmJYaaGMSnMw3ijyZJFCT0Q==} @@ -3917,9 +3923,9 @@ packages: engines: {node: '>= 8'} hasBin: true - which@6.0.1: - resolution: {integrity: sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==} - engines: {node: ^20.17.0 || >=22.9.0} + which@7.0.0: + resolution: {integrity: sha512-RancgH2dmbLdHl6LRhEqvklWMgl/Hdnun0Y90KhBOLkMefg8Qa7/Zel8Sm+8HEcP6DEjzsWzpkuBQEZok58isA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} hasBin: true wordwrap@1.0.0: @@ -4802,7 +4808,7 @@ snapshots: '@push.rocks/smartlog': 3.2.1 '@push.rocks/smartlog-destination-local': 9.0.2 '@push.rocks/smartpath': 6.0.0 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@push.rocks/smarttime': 4.2.3 typedoc: 0.28.17(typescript@5.9.3) typescript: 5.9.3 @@ -4832,7 +4838,7 @@ snapshots: '@push.rocks/smartnpm': 2.0.6 '@push.rocks/smartpath': 6.0.0 '@push.rocks/smartrequest': 5.0.1 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 transitivePeerDependencies: - '@nuxt/kit' - aws-crt @@ -4845,7 +4851,7 @@ snapshots: '@git.zone/tsrun@2.0.1': dependencies: '@push.rocks/smartfile': 13.1.2 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 tsx: 4.21.0 '@git.zone/tstest@3.3.2(socks@2.8.7)(typescript@5.9.3)': @@ -4870,7 +4876,7 @@ snapshots: '@push.rocks/smartrequest': 5.0.1 '@push.rocks/smarts3': 5.3.0 '@push.rocks/smartserve': 2.0.1 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@push.rocks/smarttime': 4.2.3 '@push.rocks/smartwatch': 6.3.0 '@types/ws': 8.18.1 @@ -5590,7 +5596,7 @@ snapshots: '@push.rocks/smartai': 2.0.0(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76) '@push.rocks/smartfs': 1.5.0 '@push.rocks/smartrequest': 5.0.1 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 ai: 6.0.116(zod@3.25.76) zod: 3.25.76 transitivePeerDependencies: @@ -5775,6 +5781,10 @@ snapshots: dependencies: '@push.rocks/smartpromise': 4.2.3 + '@push.rocks/smartdelay@3.1.0': + dependencies: + '@push.rocks/smartpromise': 4.2.4 + '@push.rocks/smartdiff@1.1.0': dependencies: diff: 8.0.3 @@ -5818,7 +5828,7 @@ snapshots: '@push.rocks/smartexit@2.0.3': dependencies: '@push.rocks/lik': 6.3.1 - '@push.rocks/smartpromise': 4.2.3 + '@push.rocks/smartpromise': 4.2.4 '@push.rocks/smartexpect@2.5.0': dependencies: @@ -5897,7 +5907,7 @@ snapshots: '@push.rocks/smartfile': 11.2.7 '@push.rocks/smartpath': 6.0.0 '@push.rocks/smartpromise': 4.2.3 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@push.rocks/smartstring': 4.1.0 '@push.rocks/smarttime': 4.2.3 '@types/diff': 8.0.0 @@ -5968,7 +5978,7 @@ snapshots: '@push.rocks/smartmustache': 3.0.2 '@push.rocks/smartpnpm': 1.0.6 '@push.rocks/smartpromise': 4.2.3 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@tsclass/tsclass': 4.4.4 transitivePeerDependencies: - supports-color @@ -6159,14 +6169,16 @@ snapshots: '@push.rocks/smartpnpm@1.0.6': dependencies: - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@push.rocks/smartpromise@4.2.3': {} + '@push.rocks/smartpromise@4.2.4': {} + '@push.rocks/smartpuppeteer@2.0.5(typescript@5.9.3)': dependencies: '@push.rocks/smartdelay': 3.0.5 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 puppeteer: 24.35.0(typescript@5.9.3) tree-kill: 1.2.2 transitivePeerDependencies: @@ -6233,7 +6245,7 @@ snapshots: '@push.rocks/smartinteract': 2.0.16 '@push.rocks/smartobject': 1.0.12 '@push.rocks/smartpromise': 4.2.3 - '@push.rocks/smartshell': 3.3.7 + '@push.rocks/smartshell': 3.5.0 '@push.rocks/smartyaml': 3.0.4 '@push.rocks/smartserve@2.0.1': @@ -6249,13 +6261,13 @@ snapshots: - bufferutil - utf-8-validate - '@push.rocks/smartshell@3.3.7': + '@push.rocks/smartshell@3.5.0': dependencies: - '@push.rocks/smartdelay': 3.0.5 + '@push.rocks/smartdelay': 3.1.0 '@push.rocks/smartexit': 2.0.3 - '@push.rocks/smartpromise': 4.2.3 + '@push.rocks/smartpromise': 4.2.4 '@types/which': 3.0.4 - which: 6.0.1 + which: 7.0.0 '@push.rocks/smartspawn@3.0.3': dependencies: @@ -9513,7 +9525,7 @@ snapshots: dependencies: isexe: 2.0.0 - which@6.0.1: + which@7.0.0: dependencies: isexe: 4.0.0 diff --git a/ts/mod_config/index.ts b/ts/mod_config/index.ts index 91f8027..e79c109 100644 --- a/ts/mod_config/index.ts +++ b/ts/mod_config/index.ts @@ -959,7 +959,7 @@ async function handleFix(argvArg: any, mode: ICliMode): Promise { let result: plugins.smartshell.IExecResult; try { result = await smartshellInstance.execSpawn("opencode", opencodeArgs, { - passthrough: true, + stdio: "inherit", }); } catch (error) { throw new Error(`Failed to run opencode: ${error instanceof Error ? error.message : String(error)}`);