Add Claude Agent Teams native pane launcher (#4892)
* Add Claude Agent Teams native pane launcher Co-authored-by: Orca <help@stably.ai> * Fix Agent Teams CI coverage checks Co-authored-by: Orca <help@stably.ai> * Fix Claude Agent Teams split direction mapping Co-authored-by: Orca <help@stably.ai> --------- Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -154,6 +154,9 @@ describe('CliInstaller', () => {
|
||||
expect(installed.commandPath).toBe(join(commandDir, 'orca-dev'))
|
||||
expect(installed.launcherPath).toBe(join(fixture.userDataPath, 'cli', 'bin', 'orca-dev'))
|
||||
await expect(readlink(installed.commandPath as string)).resolves.toBe(installed.launcherPath)
|
||||
await expect(
|
||||
readFile(join(fixture.userDataPath, 'cli', 'bin', 'orca'), 'utf8')
|
||||
).resolves.toBe(await readFile(installed.launcherPath as string, 'utf8'))
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -801,6 +801,15 @@ async function ensureDevLauncher(args: {
|
||||
encoding: 'utf8',
|
||||
mode: args.platform === 'win32' ? undefined : 0o755
|
||||
})
|
||||
if (args.commandName === DEV_COMMAND_NAME && args.platform !== 'win32') {
|
||||
// Why: dev PTYs prepend userData/cli/bin to PATH, and product-owned
|
||||
// commands are documented as `orca ...`. Keep that local alias fresh
|
||||
// without claiming the global production command.
|
||||
await writeFile(join(dirname(launcherPath), 'orca'), content, {
|
||||
encoding: 'utf8',
|
||||
mode: 0o755
|
||||
})
|
||||
}
|
||||
return launcherPath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user