@klarkxy/dsh-session-manager 0.3.3 → 0.3.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/index.d.ts CHANGED
@@ -2,6 +2,8 @@ import Schema from "@deepseek-ai/schemastery";
2
2
  import { Context } from "@deepseek-ai/cordis";
3
3
  //#region src/contracts.d.ts
4
4
  type ContinueMode = 'fixed' | 'auto';
5
+ /** Per-session automatic continuation stance; 'off' never sends one. */
6
+ type AutoContinueMode = 'off' | 'cautious' | 'bold';
5
7
  interface Config$1 {
6
8
  /** Maximum serialized UTF-8 bytes of one read_session details/handoff page, including item metadata. Conversation turn previews do not use this budget. */
7
9
  pageChars?: number;
@@ -17,6 +19,10 @@ interface Config$1 {
17
19
  continueText?: string;
18
20
  /** fixed: send continueText; auto: generate the ghost once after the previous turn ends and cache it in the session. */
19
21
  continueMode?: ContinueMode;
22
+ /** Initial auto-continue mode for sessions created later. */
23
+ autoContinueMode?: AutoContinueMode;
24
+ /** Automatic continuations allowed after each human message in an auto-continue session. */
25
+ autoContinueMax?: number;
20
26
  }
21
27
  //#endregion
22
28
  //#region src/index.d.ts
@@ -30,6 +36,8 @@ interface Config {
30
36
  compactMinutes?: number;
31
37
  continueText?: string;
32
38
  continueMode?: 'fixed' | 'auto';
39
+ autoContinueMode?: 'off' | 'cautious' | 'bold';
40
+ autoContinueMax?: number;
33
41
  }
34
42
  declare const Config: Schema<Config>;
35
43
  declare function apply(ctx: Context, config?: Config$1): void;