mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 11:24:37 +00:00
* refactor(shared): organize session contracts and projections * chore: tighten dropped-path flaky pattern allowance * docs: preserve current agent instructions with valid formatting
11 lines
476 B
TypeScript
11 lines
476 B
TypeScript
import { structuredAgentSessionTabId } from './agent-session/view/structured-agent-session-projection'
|
|
|
|
const STRUCTURED_AGENT_SESSION_TAB_PREFIX = structuredAgentSessionTabId('')
|
|
|
|
/** The chat session a structured tab id names; null for any other tab. */
|
|
export function structuredAgentSessionIdFromTabId(tabId: string): string | null {
|
|
return tabId.startsWith(STRUCTURED_AGENT_SESSION_TAB_PREFIX)
|
|
? tabId.slice(STRUCTURED_AGENT_SESSION_TAB_PREFIX.length)
|
|
: null
|
|
}
|