mirror of
https://github.com/stablyai/orca.git
synced 2026-11-01 17:47:40 +00:00
* fix(agent-resume): resume Claude sessions at their own effort level * fix(agent-resume): keep effort through persistence and /clear; simplify ensure shaping
7 lines
328 B
TypeScript
7 lines
328 B
TypeScript
// Why a shape, not Claude's level list: a level a newer Claude adds must still round-trip into argv.
|
|
export const AGENT_EFFORT_LEVEL = /^[a-z][a-z0-9-]{0,31}$/
|
|
|
|
export function readAgentEffortLevel(value: unknown): string | undefined {
|
|
return typeof value === 'string' && AGENT_EFFORT_LEVEL.test(value) ? value : undefined
|
|
}
|