Add project Windows runtime selection (#5519)

* Add project Windows runtime selection

* Fix project Windows runtime selection

Co-authored-by: Orca <help@stably.ai>

* fix: preserve WSL shell variables

---------

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Neil <neil@stably.ai>
This commit is contained in:
slashdevcorpse
2026-06-17 16:08:14 -07:00
committed by GitHub
co-authored by Orca Jinwoo-H Neil
parent 25d2053b25
commit 0ec3882cb8
333 changed files with 21039 additions and 5507 deletions
+5 -1
View File
@@ -50,7 +50,11 @@ describe('CommandCodeHookService', () => {
expect(config.hooks.Stop[0].matcher).toBeUndefined()
expect(config.hooks.PreToolUse[0].hooks[0].command).toContain('command-code-hook')
expect(config.hooks.PreToolUse[0].hooks[0].command).toContain(join(homeDir, '.orca'))
expect(config.hooks.PreToolUse[0].hooks[0].command).toMatch(/^if \[ -x /)
if (process.platform === 'win32') {
expect(config.hooks.PreToolUse[0].hooks[0].command).toContain('command-code-hook.cmd')
} else {
expect(config.hooks.PreToolUse[0].hooks[0].command).toMatch(/^if \[ -x /)
}
})
it('installs a hook script that can recover the endpoint when Command Code strips token env', () => {