@deepseek-ai/dsh-session-title-llm 0.1.6-alpha.2 → 0.1.7-alpha.2
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/index.js +1 -4
- package/lib/types/index.d.ts +15 -7
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -199,10 +199,7 @@ async function generateSessionTitleWithLlm(ctx, config, request, selectedMessage
|
|
|
199
199
|
type: "text",
|
|
200
200
|
text: framedInput
|
|
201
201
|
}],
|
|
202
|
-
source: {
|
|
203
|
-
kind: "plugin",
|
|
204
|
-
plugin: "dsh-session-title-llm"
|
|
205
|
-
}
|
|
202
|
+
source: { kind: "dsh-session-title-llm" }
|
|
206
203
|
})];
|
|
207
204
|
const system = systemPrompt(config);
|
|
208
205
|
const callDeadline = __addDisposableResource(env_1, deadline(request.signal, config.timeoutMs, SESSION_TITLE_TIMEOUT_CODE), false);
|
package/lib/types/index.d.ts
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Context } from '@deepseek-ai/cordis';
|
|
7
7
|
import z from '@deepseek-ai/schemastery';
|
|
8
|
+
import type { ContextFormed } from '@deepseek-ai/dsh-llm';
|
|
9
|
+
declare module '@deepseek-ai/dsh-llm' {
|
|
10
|
+
interface MessageSourceMap {
|
|
11
|
+
'dsh-session-title-llm': {
|
|
12
|
+
kind: 'dsh-session-title-llm';
|
|
13
|
+
} & ContextFormed;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
8
16
|
import type { Message } from '@deepseek-ai/dsh-llm';
|
|
9
17
|
import type { SessionSeq } from '@deepseek-ai/dsh-session';
|
|
10
18
|
import { SessionTitleProviderId } from '@deepseek-ai/dsh-session-title';
|
|
@@ -54,13 +62,13 @@ export interface ResolvedSessionTitleLlmConfig extends SessionTitleLlmConfig {
|
|
|
54
62
|
}
|
|
55
63
|
/** Shared Loader field schemas with no library defaults. */
|
|
56
64
|
export declare const SessionTitleLlmConfigFields: {
|
|
57
|
-
targetWords: z<number, number>;
|
|
58
|
-
targetCjkCharacters: z<number, number>;
|
|
59
|
-
maxInputBytes: z<number, number>;
|
|
60
|
-
maxOutputTokens: z<number, number>;
|
|
61
|
-
timeoutMs: z<number, number>;
|
|
62
|
-
provider: z<string, string>;
|
|
63
|
-
model: z<string, string>;
|
|
65
|
+
targetWords: z<number, number, "defined">;
|
|
66
|
+
targetCjkCharacters: z<number, number, "defined">;
|
|
67
|
+
maxInputBytes: z<number, number, "defined">;
|
|
68
|
+
maxOutputTokens: z<number, number, "defined">;
|
|
69
|
+
timeoutMs: z<number, number, "defined">;
|
|
70
|
+
provider: z<string, string, "plain">;
|
|
71
|
+
model: z<string, string, "plain">;
|
|
64
72
|
};
|
|
65
73
|
/** Shared Loader schema with no library defaults. */
|
|
66
74
|
export declare const SessionTitleLlmConfigSchema: z<SessionTitleLlmConfig>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-title-llm",
|
|
3
3
|
"description": "Shared LLM generation policy for DeepSeek Harness session-title providers",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/
|
|
31
|
-
"@deepseek-ai/dsh-session": "
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
33
|
-
"@deepseek-ai/
|
|
34
|
-
"@deepseek-ai/dsh-
|
|
30
|
+
"@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
|
|
31
|
+
"@deepseek-ai/dsh-session": "0.1.7-alpha.2",
|
|
32
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-alpha.2",
|
|
33
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
34
|
+
"@deepseek-ai/dsh-timeout": "0.1.7-alpha.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@deepseek-ai/dsh-util-values": "
|
|
38
|
-
"@deepseek-ai/schemastery": "
|
|
37
|
+
"@deepseek-ai/dsh-util-values": "0.1.7-alpha.2",
|
|
38
|
+
"@deepseek-ai/schemastery": "~3.18.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@deepseek-ai/cordis": "
|
|
42
|
-
"@deepseek-ai/dsh-llm": "
|
|
43
|
-
"@deepseek-ai/dsh-session": "
|
|
44
|
-
"@deepseek-ai/dsh-session-title": "
|
|
45
|
-
"@deepseek-ai/dsh-timeout": "
|
|
41
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
42
|
+
"@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-session": "0.1.7-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-session-title": "0.1.7-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-timeout": "0.1.7-alpha.2"
|
|
46
46
|
}
|
|
47
47
|
}
|