mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
refactor: apply repository naming contract
Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
This commit is contained in:
@@ -52,7 +52,7 @@ const PROMPT_SUFFIX = '\n</referenced-sessions>'
|
||||
|
||||
declare module '@deepseek-ai/cordis' {
|
||||
interface Context {
|
||||
sessionReferences: SessionReferenceService
|
||||
sessionReferenceResolver: SessionReferenceResolver
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ interface RenderedSource {
|
||||
}
|
||||
|
||||
/** Exact-read consumer that prepares immutable cross-session message context. */
|
||||
export class SessionReferenceService extends Service {
|
||||
export class SessionReferenceResolver extends Service {
|
||||
static inject = ['sessionQuery']
|
||||
static Config: z<Config> = z.object({
|
||||
maxReferences: z.number().step(1).min(1).max(MAX_REFERENCES).default(MAX_REFERENCES),
|
||||
@@ -78,7 +78,7 @@ export class SessionReferenceService extends Service {
|
||||
private readonly config: Required<Config>
|
||||
|
||||
constructor(ctx: Context, config: Config = {}) {
|
||||
super(ctx, 'sessionReferences')
|
||||
super(ctx, 'sessionReferenceResolver')
|
||||
this.config = {
|
||||
maxReferences: config.maxReferences ?? MAX_REFERENCES,
|
||||
candidateLimit: config.candidateLimit ?? DEFAULT_CANDIDATE_LIMIT,
|
||||
@@ -300,4 +300,4 @@ function cancelled(signal: AbortSignal): SessionReferenceError {
|
||||
return new SessionReferenceError('session reference preparation was cancelled', 'SESSION_REFERENCE_CANCELLED', { cause: signal.reason })
|
||||
}
|
||||
|
||||
export default SessionReferenceService
|
||||
export default SessionReferenceResolver
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/** Current-surface projection and byte-bounded rendering. */
|
||||
|
||||
import { isCompactCheckpointSource } from '@deepseek-ai/dsh-compact'
|
||||
import { isCompactCheckpointSource } from '@deepseek-ai/dsh-compaction'
|
||||
import type { SessionSurfaceSnapshot } from '@deepseek-ai/dsh-session-query'
|
||||
import { assertNever } from '@deepseek-ai/dsh-llm'
|
||||
import { TextRetainer } from '@deepseek-ai/dsh-retention'
|
||||
import { TextRetainer } from '@deepseek-ai/dsh-output-retention'
|
||||
import { stringifyTagSafeJson } from './serialization.ts'
|
||||
import type { ReferencedConversationItem } from './types.ts'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user