dsh-context 0.69.1 → 0.71.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
@@ -57,6 +57,9 @@ interface TimelineState {
57
57
  provider?: string;
58
58
  lastModel?: string;
59
59
  contextWindow?: number;
60
+ /** The newest `request/header` envelope's routed output cap (dsh materializes the adapter default
61
+ * into it). Last-wins: a header omitting the cap clears it. */
62
+ maxOutputTokens?: number;
60
63
  requests: RequestRecord[];
61
64
  /** The number of turn runs in `requests` (a run = consecutive records sharing one `turn`). Maintained
62
65
  * incrementally at the single append site and recomputed when a trim replaces the array, so the retention
@@ -249,6 +252,9 @@ interface Snapshot {
249
252
  model?: string;
250
253
  provider?: string;
251
254
  contextWindow?: number;
255
+ /** The newest request envelope's routed output cap, which auto-compaction reserves before pricing
256
+ * its pressure trigger. Absent = no cap in the log (or a row folded before the field existed). */
257
+ maxOutputTokens?: number;
252
258
  current: {
253
259
  system: number;
254
260
  tools: number;
@@ -594,4 +600,5 @@ export declare const name = "dsh-context";
594
600
  export declare const inject: string[];
595
601
  export declare function apply(ctx: Context, config: Config): void;
596
602
  //#endregion
597
- export type { ActivityDay, ActivityState, Category, ContextActivity, ContextEventRecord, ContextHeaders, ContextTimeline, ContextTimelineDetail, HeaderRecord, HeaderTool, HeadersState, PlatformBalance, PlatformBalanceEntry, RequestRecord, SkillInfo, Snapshot, SurfaceNode, TimelineCounts, TimelineLast, TimelineState };
603
+ export type { ActivityDay, ActivityState, Category, ContextActivity, ContextEventRecord, ContextHeaders, ContextTimeline, ContextTimelineDetail, HeaderRecord, HeaderTool, HeadersState, PlatformBalance, PlatformBalanceEntry, RequestRecord, SkillInfo, Snapshot, SurfaceNode, TimelineCounts, TimelineLast, TimelineState };
604
+ //# sourceMappingURL=index.d.ts.map