@klarkxy/dsh-session-manager 0.2.0 → 0.3.0

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.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import Schema from "@deepseek-ai/schemastery";
2
2
  import { Context } from "@deepseek-ai/cordis";
3
3
  //#region src/contracts.d.ts
4
+ type ContinueMode = 'fixed' | 'auto';
4
5
  interface Config$1 {
5
6
  /** Maximum serialized UTF-8 bytes of one read_session details/handoff page, including item metadata. Conversation turn previews do not use this budget. */
6
7
  pageChars?: number;
@@ -8,6 +9,14 @@ interface Config$1 {
8
9
  listLimit?: number;
9
10
  /** Maximum sessions returned by one search_sessions page. */
10
11
  searchLimit?: number;
12
+ /** Idle minutes since the last response before the welcome-back recap card may appear; 0 disables it. */
13
+ recapMinutes?: number;
14
+ /** Idle minutes since the last response before the card also suggests context compaction; 0 disables it. */
15
+ compactMinutes?: number;
16
+ /** Fixed ghost continuation text; empty falls back to the localized default ("继续"/"Continue"). */
17
+ continueText?: string;
18
+ /** fixed: send continueText; auto: generate the ghost once after the previous turn ends and cache it in the session. */
19
+ continueMode?: ContinueMode;
11
20
  }
12
21
  //#endregion
13
22
  //#region src/index.d.ts
@@ -17,6 +26,10 @@ interface Config {
17
26
  pageChars?: number;
18
27
  listLimit?: number;
19
28
  searchLimit?: number;
29
+ recapMinutes?: number;
30
+ compactMinutes?: number;
31
+ continueText?: string;
32
+ continueMode?: 'fixed' | 'auto';
20
33
  }
21
34
  declare const Config: Schema<Config>;
22
35
  declare function apply(ctx: Context, config?: Config$1): void;