mirror of
https://github.com/stablyai/orca.git
synced 2026-10-27 00:02:48 +00:00
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -52,7 +52,6 @@ import {
|
||||
isGitHubProjectRefInputTooLarge
|
||||
} from '../../shared/github-project-ref-input'
|
||||
import { githubProjectHost } from '../../shared/github-project-identity'
|
||||
import { cacheIdentityDigest } from '../cache-identity-digest'
|
||||
|
||||
// Re-export the public API so existing `./project-view` call sites keep working; the split is internal-only.
|
||||
export { isValidOwnerSlug, isValidRepoSlug, isValidSlug } from './project-view/internals'
|
||||
@@ -130,11 +129,12 @@ const parentFieldProbeInFlight = new Map<string, Promise<void>>()
|
||||
// host's probe result can't leak into another. Normalize github.com so
|
||||
// host-less callers share the same probe state as explicitly pinned calls.
|
||||
function ownerScopeKey(owner: string, ownerType: GitHubProjectOwnerType, host?: string): string {
|
||||
return cacheIdentityDigest([owner, ownerType, githubProjectHost(host)])
|
||||
const base = `${owner}\u0000${ownerType}`
|
||||
return `${base}\u0000${githubProjectHost(host)}`
|
||||
}
|
||||
|
||||
function ownerTypeCacheKey(owner: string, host?: string): string {
|
||||
return cacheIdentityDigest([owner, githubProjectHost(host)])
|
||||
return `${owner}\u0000${githubProjectHost(host)}`
|
||||
}
|
||||
|
||||
function rememberOwnerType(
|
||||
|
||||
Reference in New Issue
Block a user