Files
orca/src/shared/agent-detection.ts
T
NeilandOrca 879aad7dd6 oom(foundation): bound shared readers/limits + add BoundedMap primitive (#10299)
* oom(01): A1-shared-readers — reintroduce #10179 subset

Files: 18 applied, 0 deleted (from 6eb70d8370)

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

* oom(02): A2-shared-image-media — reintroduce #10179 subset

Files: 7 applied, 0 deleted (from 6eb70d8370)

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

* oom(03): A3-shared-fs-listing — reintroduce #10179 subset

Files: 21 applied, 0 deleted (from 6eb70d8370)

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

* oom(04): A4-shared-remote-relay — reintroduce #10179 subset

Files: 8 applied, 0 deleted (from 6eb70d8370)

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

* oom(05): A5-shared-misc — reintroduce #10179 subset

Files: 28 applied, 0 deleted (from 6eb70d8370)

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

* oom(06): B-shared-wiring — reintroduce #10179 subset

Files: 81 applied, 0 deleted (from 6eb70d8370)

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

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-24 21:36:57 -07:00

39 lines
1.4 KiB
TypeScript

/**
* Compatibility barrel for shared terminal agent-title detection.
*
* Why shared: main and renderer both consume OSC titles for facts, stats, and
* UI state. Keep existing imports stable while the implementation stays split
* into focused modules that satisfy max-lines. (main's #7612 split into
* `terminal-title-*` modules coexists — those files stay on disk for their
* direct `resolveTerminalTitleAgentType`/`synthetic-agent-title` consumers.)
*/
export type { AgentStatus } from './agent-title-core'
export {
isClaudeManagementTitle,
isCursorAgentTitle,
isCursorNativeAgentTitle,
isGeminiTerminalTitle,
isPiTerminalTitle,
STRONG_IDLE_KEYWORDS_RE,
STRONG_WORKING_KEYWORDS_RE
} from './agent-title-core'
export { isOpenCodeNativeTitle, isMeaningfulOpenCodeTerminalTitle } from './opencode-terminal-title'
export { getAgentLabel, isClaudeAgent } from './agent-title-identity'
export {
clearWorkingIndicators,
createAgentStatusTracker,
detectAgentStatusFromTitle,
normalizeTerminalTitle
} from './agent-title-status'
// Re-export so existing `agent-detection` importers keep working.
export { AGENT_NAMES, titleHasAgentName } from './agent-name-token-match'
export {
extractAllOscTitles,
extractLastOscTitle,
MAX_OSC_TITLE_CHARS,
MAX_OSC_TITLES_PER_CHUNK
} from './osc-title-extraction'
export { isShellProcess } from './shell-process-detection'