Merge remote-tracking branch 'origin/master' into feat/session-workspace-root
# Conflicts: # docs/capability-seams.i18n.yaml # docs/persistence-catalog.i18n.yaml # docs/persistence-catalog.md # docs/persistence-catalog.zh.md # docs/persistence-schema.json # docs/subsystems/worktrees.i18n.yaml # docs/subsystems/worktrees.md # docs/subsystems/worktrees.zh.md # docs/tool-catalog.i18n.yaml # packages/acp/acp/tests/bridge.spec.ts # packages/acp/acp/tsconfig.json # packages/experimental/tool-worktree/tests/loader-composition.spec.ts # packages/experimental/worktree/README.i18n.yaml # packages/experimental/worktree/src/index.ts # packages/sdk/server/tests/server.spec.ts # packages/session/tool-working-directory/package.json # packages/session/working-directory/tests/working-directory.spec.ts # snapshots/sdk/tool-error-details/notifications.expected.jsonl # snapshots/sdk/tool-error-details/session.v4.jsonl # snapshots/session/advanced-toolchain/session.v4.jsonl # snapshots/session/ptc-python-turn/system-prompt.expected.md
This commit is contained in:
commit
d1d553049c
3156 files changed
+76744
-35686
No files matched your search
@@ -8,7 +8,7 @@
|
||||
* invisible out here.
|
||||
*/
|
||||
import type { FileAttachmentRef, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
|
||||
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
|
||||
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
|
||||
import type { SessionId, SessionSeq } from '@deepseek-ai/dsh-session/types'
|
||||
import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'
|
||||
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
} from '../../types.ts'
|
||||
import { expandAssistantStream } from '@deepseek-ai/dsh-llm/assistant-stream'
|
||||
import type { AssistantStreamRecord } from '@deepseek-ai/dsh-llm/assistant-stream'
|
||||
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/brand'
|
||||
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/types'
|
||||
import type {
|
||||
SessionAssistantSettlementEntry,
|
||||
SessionEventLikeEntry,
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { InboxState, InboxTarget } from '@deepseek-ai/dsh-agent/types'
|
||||
import { randomUUID } from '@deepseek-ai/dsh-util-crypto'
|
||||
import type { FileAttachmentRef, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
|
||||
import type { SubagentAddress } from '@deepseek-ai/dsh-subagent/client'
|
||||
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
|
||||
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
|
||||
import type { UserMessage } from '@deepseek-ai/dsh-llm/types'
|
||||
import { SessionLogOffset, SessionSeq, type SessionId } from '@deepseek-ai/dsh-session/types'
|
||||
import { SessionEventStream } from '../transport.ts'
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
RemoteSnapshotStream,
|
||||
RemoteStreamCarrierError,
|
||||
type ClientRemote,
|
||||
type RemoteStreamCarrierFailure,
|
||||
type RemoteJournalChange,
|
||||
type RemoteJournalFrame,
|
||||
} from '@deepseek-ai/dsh-api-gateway/client'
|
||||
@@ -91,7 +92,7 @@ export interface SessionControlStreamOptions {
|
||||
/** Apply a complete baseline or one later update. */
|
||||
readonly accept: (frame: SessionControlFrame) => void
|
||||
/** Observe a retryable carrier loss before reconnection. */
|
||||
readonly carrierFailed?: (error: RemoteStreamCarrierError) => void
|
||||
readonly carrierFailed?: (error: RemoteStreamCarrierFailure) => void
|
||||
/** Publish a terminal business or protocol failure. */
|
||||
readonly failed: (error: unknown) => void
|
||||
}
|
||||
@@ -101,7 +102,7 @@ export interface SessionEventStreamOptions {
|
||||
/** Apply one complete event-window change. */
|
||||
readonly publish: (change: SessionJournalChange) => void
|
||||
/** Observe a retryable carrier loss before reconnection. */
|
||||
readonly carrierFailed?: (error: RemoteStreamCarrierError) => void
|
||||
readonly carrierFailed?: (error: RemoteStreamCarrierFailure) => void
|
||||
/** Publish a terminal stream, page, or protocol failure after opening. */
|
||||
readonly failed: (error: unknown) => void
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import type {
|
||||
import type { FileUploadReceiptId, StagedAttachment } from '@deepseek-ai/dsh-client-file-upload/types'
|
||||
import type {} from '@deepseek-ai/dsh-client-file-upload'
|
||||
import {
|
||||
ReasoningEffortId, createUserMessage, freezeMessage,
|
||||
type ReasoningEffortId, createUserMessage, freezeMessage,
|
||||
} from '@deepseek-ai/dsh-llm'
|
||||
import type { MessageId, MessageSource } from '@deepseek-ai/dsh-llm'
|
||||
import { buildForkSeed } from '@deepseek-ai/dsh-session/fork'
|
||||
@@ -173,7 +173,7 @@ export class SessionCommandController {
|
||||
model: request.model,
|
||||
...(request.reasoningEffort === undefined
|
||||
? {}
|
||||
: { reasoningEffort: ReasoningEffortId(request.reasoningEffort) }),
|
||||
: { reasoningEffort: brandString<ReasoningEffortId>(request.reasoningEffort) }),
|
||||
}
|
||||
await this.ctx.llm.resolveCallConfig(selected)
|
||||
agent.model.select(selected)
|
||||
|
||||
@@ -6,7 +6,8 @@ import type { Agent } from '@deepseek-ai/dsh-agent'
|
||||
import type {} from '@deepseek-ai/dsh-fs'
|
||||
import { Context, Service } from '@deepseek-ai/cordis'
|
||||
import z from '@deepseek-ai/schemastery'
|
||||
import { errorChain, ReasoningEffortId, type MessageSource } from '@deepseek-ai/dsh-llm'
|
||||
import { brandString } from '@deepseek-ai/dsh-brand'
|
||||
import { errorChain, type ReasoningEffortId, type MessageSource } from '@deepseek-ai/dsh-llm'
|
||||
import type {} from '@deepseek-ai/dsh-client-file-upload'
|
||||
import { canOpenNativePath, nativeFileManager, nativeFileApplications, openNativeFileApplication, openNativeAssociatedPath, revealNativePath } from '@deepseek-ai/dsh-native-command'
|
||||
import type { SessionId } from '@deepseek-ai/dsh-session'
|
||||
@@ -331,7 +332,8 @@ export class SessionController extends TypertRemoteService {
|
||||
if (model === undefined) throw new RemoteError('session/provider-models-unavailable',
|
||||
`provider "${provider}" has no available models`, { provider })
|
||||
const selection = { provider, model: model.id,
|
||||
...model.reasoning?.defaultEffort === undefined ? {} : { reasoningEffort: ReasoningEffortId(model.reasoning.defaultEffort) },
|
||||
...model.reasoning?.defaultEffort === undefined ? {}
|
||||
: { reasoningEffort: brandString<ReasoningEffortId>(model.reasoning.defaultEffort) },
|
||||
}
|
||||
await this.ctx.agentDefaultModel.saveSelection(selection)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
ImageAttachmentLimits, ImageAttachmentRef, ImageMediaType,
|
||||
} from '@deepseek-ai/dsh-attachment'
|
||||
import type { Branded } from '@deepseek-ai/dsh-brand'
|
||||
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/brand'
|
||||
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/types'
|
||||
import type { LlmModelBadge, TextBlock } from '@deepseek-ai/dsh-llm'
|
||||
import type { SessionId, SessionSeq, SessionSeqCursor } from '@deepseek-ai/dsh-session/types'
|
||||
import type { SessionProjectionMap, SessionProjectionSummaryExcluded, SessionProjectionSummaryValues } from '@deepseek-ai/dsh-session-projection/types'
|
||||
|
||||
Reference in new issue
Block a user