mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 16:02:15 +00:00
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:
co-authored by
Orca
Jinwoo-H
Neil
parent
25d2053b25
commit
0ec3882cb8
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user