fix: coverage

This commit is contained in:
imccyu
2026-08-09 18:56:29 +08:00
parent 1b1e170c1f
commit 924cfcef95
12 changed files with 46 additions and 28 deletions

View File

@@ -1,6 +1,10 @@
import type { SessionEvent } from '@deepseek-ai/dsh-session/types'
import type { ToolEventView } from '@deepseek-ai/dsh-client-connection/client'
/* oxlint-disable typescript/no-duplicate-type-constituents, typescript/no-redundant-type-constituents --
* The unaugmented declaration-merge maps intentionally resolve to never in the Runtime program;
* installed business packages supply their concrete keys in consuming Client programs. */
/** One raw log event plus its optional envelope-level presentation view. */
export interface ConversationEventInput {
readonly event: SessionEvent

View File

@@ -712,9 +712,8 @@ export class ConversationNodeAssembler {
context: InternalContext,
scope: ConversationLocationDataScope,
): ConversationLocationData | null {
const build = context.definition.buildLocationData
if (build === undefined) return null
const data = build(contextSnapshot(context), scope)
if (context.definition.buildLocationData === undefined) return null
const data = context.definition.buildLocationData(contextSnapshot(context), scope)
if (data === null) return null
if (data.kind !== scope) {
throw new Error(

View File

@@ -20,7 +20,7 @@ export interface ConversationLocationDataChange {
class MutableLocationDataStore {
private entries = new Map<string, OwnedLocationData>()
get<Key extends string>(key: Key): unknown {
get(key: string): unknown {
return this.entries.get(key)?.value
}