@deepseek-ai/dsh-llm 0.1.2-alpha.2 → 0.1.2-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/typert.host.js +18 -10
- package/package.json +8 -8
package/lib/typert.host.js
CHANGED
|
@@ -214,6 +214,10 @@ export const TYPERT = {
|
|
|
214
214
|
"name": "AdapterRegistrationHandle",
|
|
215
215
|
"declaration": "export interface AdapterRegistrationHandle {\n (): void;\n replace(providers: string[]): void;\n}"
|
|
216
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"name": "AgentMessageSource",
|
|
219
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
220
|
+
},
|
|
217
221
|
{
|
|
218
222
|
"name": "AssistantProvenance",
|
|
219
223
|
"declaration": "export interface AssistantProvenance {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
@@ -226,6 +230,10 @@ export const TYPERT = {
|
|
|
226
230
|
"name": "Branded",
|
|
227
231
|
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
228
232
|
},
|
|
233
|
+
{
|
|
234
|
+
"name": "BrandedNumber",
|
|
235
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
236
|
+
},
|
|
229
237
|
{
|
|
230
238
|
"name": "ContentBlock",
|
|
231
239
|
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
@@ -246,10 +254,6 @@ export const TYPERT = {
|
|
|
246
254
|
"name": "ContextSnapshotSection",
|
|
247
255
|
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
248
256
|
},
|
|
249
|
-
{
|
|
250
|
-
"name": "CoordinatorMessageSource",
|
|
251
|
-
"declaration": "export interface CoordinatorMessageSource {\n readonly kind: 'coordinator';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
252
|
-
},
|
|
253
257
|
{
|
|
254
258
|
"name": "DirectoryRegistrationHandle",
|
|
255
259
|
"declaration": "export interface DirectoryRegistrationHandle {\n (): void;\n replace(entries: readonly LlmConfigurableProvider[]): void;\n}"
|
|
@@ -360,7 +364,7 @@ export const TYPERT = {
|
|
|
360
364
|
},
|
|
361
365
|
{
|
|
362
366
|
"name": "MessageSourceMap",
|
|
363
|
-
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n
|
|
367
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'session-reference': SessionReferenceSource;\n}"
|
|
364
368
|
},
|
|
365
369
|
{
|
|
366
370
|
"name": "ModelMessageSource",
|
|
@@ -374,6 +378,10 @@ export const TYPERT = {
|
|
|
374
378
|
"name": "ModelModalityMap",
|
|
375
379
|
"declaration": "export interface ModelModalityMap {\n text: 'text';\n image: 'image';\n}"
|
|
376
380
|
},
|
|
381
|
+
{
|
|
382
|
+
"name": "OptionalSessionSeq",
|
|
383
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
384
|
+
},
|
|
377
385
|
{
|
|
378
386
|
"name": "PreparedAdapterCall",
|
|
379
387
|
"declaration": "export interface PreparedAdapterCall {\n readonly model: LlmResolvedModelInfo;\n stream(options: GenerateOptions): AsyncIterable<StreamChunk>;\n}"
|
|
@@ -420,12 +428,16 @@ export const TYPERT = {
|
|
|
420
428
|
},
|
|
421
429
|
{
|
|
422
430
|
"name": "SessionReferenceSource",
|
|
423
|
-
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedThroughSeq:
|
|
431
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
424
432
|
},
|
|
425
433
|
{
|
|
426
434
|
"name": "SessionRequestId",
|
|
427
435
|
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
428
436
|
},
|
|
437
|
+
{
|
|
438
|
+
"name": "SessionSeq",
|
|
439
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
440
|
+
},
|
|
429
441
|
{
|
|
430
442
|
"name": "SkillInvocationSource",
|
|
431
443
|
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
@@ -434,10 +446,6 @@ export const TYPERT = {
|
|
|
434
446
|
"name": "StreamChunk",
|
|
435
447
|
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
436
448
|
},
|
|
437
|
-
{
|
|
438
|
-
"name": "SubagentReportMessageSource",
|
|
439
|
-
"declaration": "export interface SubagentReportMessageSource {\n readonly kind: 'subagent-report';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
440
|
-
},
|
|
441
449
|
{
|
|
442
450
|
"name": "SubagentSettledMessageSource",
|
|
443
451
|
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-llm",
|
|
3
3
|
"description": "Provider-neutral LLM service interface for the DeepSeek Harness",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"zod": "^4.4.3",
|
|
64
|
-
"@deepseek-ai/dsh-util-crypto": "^0.1.2-alpha.
|
|
64
|
+
"@deepseek-ai/dsh-util-crypto": "^0.1.2-alpha.4",
|
|
65
65
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.
|
|
66
|
+
"@deepseek-ai/dsh-brand": "^0.1.2-alpha.4",
|
|
67
|
+
"@deepseek-ai/dsh-util-values": "^0.1.2-alpha.4",
|
|
68
|
+
"@deepseek-ai/dsh-timeout": "^0.1.2-alpha.4",
|
|
69
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@deepseek-ai/dsh-attachment": "^0.1.2-alpha.
|
|
73
|
-
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.
|
|
72
|
+
"@deepseek-ai/dsh-attachment": "^0.1.2-alpha.4",
|
|
73
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.4",
|
|
74
74
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
75
75
|
}
|
|
76
76
|
}
|