agentgui 1.0.664 → 1.0.665
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/lib/claude-runner.js +1 -1
- package/package.json +1 -1
package/lib/claude-runner.js
CHANGED
|
@@ -623,7 +623,7 @@ registry.register({
|
|
|
623
623
|
closeStdin: false, // keep stdin open for JSON-RPC steering commands
|
|
624
624
|
useJsonRpcStdin: false,
|
|
625
625
|
supportedFeatures: ['streaming', 'resume', 'system-prompt', 'permissions-skip', 'steering'],
|
|
626
|
-
spawnEnv: { MAX_THINKING_TOKENS: '0', AGENTGUI_SUBPROCESS: '1', CLAUDECODE: undefined },
|
|
626
|
+
spawnEnv: { MAX_THINKING_TOKENS: '0', AGENTGUI_SUBPROCESS: '1', CLAUDECODE: undefined, ANTHROPIC_API_KEY: (() => { try { return JSON.parse(require('fs').readFileSync(require('os').homedir() + '/.claude/.credentials.json', 'utf8')).claudeAiOauth?.accessToken; } catch { return undefined; } })() },
|
|
627
627
|
|
|
628
628
|
buildArgs(prompt, config) {
|
|
629
629
|
const {
|