mirror of
https://github.com/stablyai/orca.git
synced 2026-10-08 00:02:38 +00:00
* feat(agents): integrate CodeBuddy launch, status and session history * docs: record CodeBuddy lifecycle verification * fix(codebuddy): backfill scoped history and negotiate remote resume * test(cli): include CodeBuddy in known search agents
14 lines
524 B
TypeScript
14 lines
524 B
TypeScript
import { agentArgOptionTokens } from './agent-session-option-agent-args'
|
|
import { isPrintModeHeadlessOneShotCommand, optionName } from './print-mode-headless-command'
|
|
|
|
const NON_INTERACTIVE_FLAGS = new Set(['--serve', '--acp', '--bg', '--background'])
|
|
|
|
export function isCodebuddyNonInteractiveCommand(tokens: readonly string[]): boolean {
|
|
return (
|
|
isPrintModeHeadlessOneShotCommand(tokens) ||
|
|
agentArgOptionTokens(tokens)
|
|
.slice(1)
|
|
.some((token) => NON_INTERACTIVE_FLAGS.has(optionName(token)))
|
|
)
|
|
}
|