fix claude login
This commit is contained in:
parent
3a7cda6d74
commit
ef554b694e
|
|
@ -36,9 +36,13 @@ export async function ensure(): Promise<void> {
|
|||
const tmpSettings = `${home}/.sandlot-tmp-settings.json`
|
||||
await Bun.write(tmpHelper, helperScript, { mode: 0o755 })
|
||||
await Bun.write(tmpSettings, settingsJson)
|
||||
await $`limactl shell ${VM_NAME} -- bash -c "mkdir -p ~/.claude && cp ${tmpHelper} ~/.claude/api-key-helper.sh && chmod +x ~/.claude/api-key-helper.sh && cp ${tmpSettings} ~/.claude/settings.json"`.quiet()
|
||||
const claudeJson = JSON.stringify({ hasCompletedOnboarding: true })
|
||||
const tmpClaudeJson = `${home}/.sandlot-tmp-claude.json`
|
||||
await Bun.write(tmpClaudeJson, claudeJson)
|
||||
await $`limactl shell ${VM_NAME} -- bash -c "mkdir -p ~/.claude && cp ${tmpHelper} ~/.claude/api-key-helper.sh && chmod +x ~/.claude/api-key-helper.sh && cp ${tmpSettings} ~/.claude/settings.json && cp ${tmpClaudeJson} ~/.claude.json"`.quiet()
|
||||
await Bun.file(tmpHelper).delete()
|
||||
await Bun.file(tmpSettings).delete()
|
||||
await Bun.file(tmpClaudeJson).delete()
|
||||
}
|
||||
|
||||
/** Check VM status. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user