|
|
@@ -7,15 +7,25 @@
|
|
|
* must stub); implementation-internal entry points (history staging, wire-frame
|
|
|
* dispatch) stay on the class, invisible out here.
|
|
|
*/
|
|
|
-import type { AttachmentIdType, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
|
|
|
+import type { AttachmentIdType, ImageAttachmentRef, ImageMediaType } from '@deepseek-ai/dsh-attachment'
|
|
|
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
|
|
|
import type { SessionId } from '@deepseek-ai/dsh-session/types'
|
|
|
import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'
|
|
|
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
|
|
|
-import type { PromptContentPart, QueueAction, SessionRequestId } from '../../types.ts'
|
|
|
+import type { QueueAction, SessionRequestId } from '../../types.ts'
|
|
|
import type { ClientResult } from './result.ts'
|
|
|
import type { PendingSubmissionImage, SessionSnapshot } from './snapshot.ts'
|
|
|
|
|
|
+/** Browser-submitted prompt content; the Host promotes image bytes to durable references. */
|
|
|
+export type PromptContentPart =
|
|
|
+ | { readonly type: 'text'; readonly text: string }
|
|
|
+ | {
|
|
|
+ readonly type: 'image'
|
|
|
+ readonly mediaType: ImageMediaType
|
|
|
+ readonly data: string
|
|
|
+ readonly name?: string
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Why a local submission echo left the snapshot: `observed` when its durable
|
|
|
* `user/message` event or host queue occurrence arrived (with the admitted
|