mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
* perf(orcad): keep the server bundle ASCII so V8 stores it one byte per character 129 non-ASCII characters in regex literals (and three in a String.raw plugin template) made V8 hold the whole ~11 MB orcad-server.js source as a two-byte string. Write them as \uXXXX escapes and fail the build if any return. Co-Authored-By: Claude <noreply@anthropic.com> * fix(orcad): keep license comments ASCII and name the module the guard trips on esbuild gathers legal comments at the end of the bundle; escape that comment so a dependency's license text cannot fail the ASCII guard, while licenses still ship with the code. The guard now reports the offset and, from an unminified rebuild, the module the character came from. A dark-switch build is covered. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
13 lines
566 B
TypeScript
13 lines
566 B
TypeScript
// Why: wrappers may prepend an SSH/tmux label, and OpenCode may prepend one
|
|
// status glyph. A spinner-led task from another agent must not become a wrapper.
|
|
const OPENCODE_NATIVE_TITLE_RE =
|
|
/^\s*(?:(?![\u25A3\u2800-\u28ff])[^|]+? \| )?(?:[\u25A3\u2800-\u28ff] )?OC \|[ \t]+\S/u
|
|
|
|
export function isOpenCodeNativeTitle(title: string | null | undefined): boolean {
|
|
return title ? OPENCODE_NATIVE_TITLE_RE.test(title) : false
|
|
}
|
|
|
|
export function isMeaningfulOpenCodeTerminalTitle(title: string | null | undefined): boolean {
|
|
return isOpenCodeNativeTitle(title)
|
|
}
|