mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 02:57:36 +00:00
refactor: give native chat readability one concrete owner (#35231)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { isNativeChatTranscriptLocalReadable } from './native-chat-transcript-readability'
|
||||
|
||||
describe('native chat transcript readability', () => {
|
||||
it('allows local and runtime-owned hosts but rejects Model-A SSH and unresolved hosts', () => {
|
||||
expect(isNativeChatTranscriptLocalReadable(null)).toBe(true)
|
||||
expect(isNativeChatTranscriptLocalReadable('runtime-ssh-env-1')).toBe(true)
|
||||
expect(isNativeChatTranscriptLocalReadable('ssh-target-1')).toBe(false)
|
||||
expect(isNativeChatTranscriptLocalReadable(undefined)).toBe(false)
|
||||
})
|
||||
})
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { isRuntimeOwnedSshTargetId } from './execution-host'
|
||||
import { isRuntimeOwnedSshTargetId } from '../../execution-host'
|
||||
|
||||
/** Model-A SSH stores Grok transcripts on a host this renderer cannot read. */
|
||||
export function isNativeChatTranscriptLocalReadable(
|
||||
Reference in New Issue
Block a user