@kunal_dutt/token-lens 0.2.23 → 0.2.24

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/token-lens.mcpb CHANGED
Binary file
@@ -4,7 +4,7 @@
4
4
  * depends on the model, the task and the conversation, so they change as the
5
5
  * user switches model or types a different kind of prompt.
6
6
  */
7
- import type { ContextUsage } from "./budget";
7
+ import { type ContextUsage } from "./budget";
8
8
  import type { ModelProfile } from "./models";
9
9
  import type { Task, TaskSignals } from "./tasks";
10
10
  export interface Tip {
@@ -21,6 +21,11 @@ export declare const LONG_CHAT_TOKENS = 40000;
21
21
  export declare function contextUsage(conversationTokens: number, promptTokens: number, profile: ModelProfile, windowOverride?: number): ContextUsage;
22
22
  /** "auto" tightens compression as the context fills; an explicit level is respected. */
23
23
  export declare function chooseLevel(setting: Level | "auto", usage: ContextUsage): Level;
24
+ /**
25
+ * A handoff changes what the model can see: the new chat only knows what the
26
+ * brief keeps, so later answers can differ. Every handoff tip carries this.
27
+ */
28
+ export declare const HANDOFF_CAVEAT = "Optional: the new chat only knows what the brief keeps, so later answers can differ. Check the brief before you rely on it.";
24
29
  /**
25
30
  * A prompt that asks the current model to compress the chat into a brief the
26
31
  * user can paste into a new chat, so the next turns stop re-reading history.