mirror of
https://github.com/stablyai/orca.git
synced 2026-11-05 19:47:27 +00:00
refactor(runtime-core): clean up Phase 3-3.8 code (#26894)
* refactor(runtime-core): clean up Phase 3-3.8 code - worktree.ps: summary lookup is a closure, not a 4-arg callback - relay: shared RelayStreamAckWindow for fs and git response streams - relay: terminal-frame slots live on RelayStreamRegistry - one isBinaryBuffer/BINARY_PROBE_BYTES in shared/binary-buffer - one automation owner fence on the controller, no casts - drop unchecked Store cast in remote repo registration - speech download reuses the shared abort-aware delay, no casts - RelayRuntimeServices: drop leftover handler list and param casts - use shared errorMessage() in audited files Co-Authored-By: Claude <noreply@anthropic.com> * test(cross-version-wire): pass worktree ps summary lookup in both builds' shapes --------- Co-authored-by: m4air <m4air@Mac.localdomain> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>
This commit is contained in:
co-authored by
Claude
m4air
m4air
parent
3eea6a5368
commit
cbc6f54e1c
@@ -1,8 +1,8 @@
|
||||
// A NUL byte in the first chunk is git's own heuristic for "this is binary".
|
||||
const BINARY_SNIFF_BYTES = 8192
|
||||
export const BINARY_PROBE_BYTES = 8192
|
||||
|
||||
export function isBinaryBuffer(buffer: Buffer): boolean {
|
||||
const len = Math.min(buffer.length, BINARY_SNIFF_BYTES)
|
||||
const len = Math.min(buffer.length, BINARY_PROBE_BYTES)
|
||||
for (let i = 0; i < len; i += 1) {
|
||||
if (buffer[i] === 0) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user