@serkanalgur/opencode-slim 1.1.0 → 1.2.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.
@@ -1,4 +1,5 @@
1
1
  export declare function getSystemPrompt(isCompact?: boolean): string;
2
2
  export declare function getCompressToolDescription(): string;
3
+ export declare function getPanelToolDescription(): string;
3
4
  export declare function getNudgeMessage(reason: string, tokenCount: number, maxTokens: number): string;
4
5
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../lib/prompts.ts"],"names":[],"mappings":"AAiCA,wBAAgB,eAAe,CAAC,SAAS,GAAE,OAAe,GAAG,MAAM,CAElE;AAED,wBAAgB,0BAA0B,IAAI,MAAM,CAcnD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAa7F"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../lib/prompts.ts"],"names":[],"mappings":"AAiCA,wBAAgB,eAAe,CAAC,SAAS,GAAE,OAAe,GAAG,MAAM,CAElE;AAED,wBAAgB,0BAA0B,IAAI,MAAM,CAcnD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAWhD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAa7F"}
@@ -0,0 +1,36 @@
1
+ import type { MessageWithParts, SessionState, SlimConfig, CompressionRecord } from "./types";
2
+ export interface PanelData {
3
+ sessionId: string;
4
+ timestamp: number;
5
+ currentTokens: number;
6
+ maxTokens: number;
7
+ usagePercent: number;
8
+ status: "healthy" | "warning" | "critical";
9
+ messageCount: number;
10
+ userMessages: number;
11
+ assistantMessages: number;
12
+ toolCalls: number;
13
+ toolResults: number;
14
+ tokensByRole: {
15
+ user: number;
16
+ assistant: number;
17
+ tools: number;
18
+ system: number;
19
+ };
20
+ compressionCount: number;
21
+ averageRatio: number;
22
+ totalTokensSaved: number;
23
+ lastCompression: CompressionRecord | null;
24
+ estimatedCost: number;
25
+ costSaved: number;
26
+ model: string;
27
+ topics: {
28
+ topic: string;
29
+ count: number;
30
+ tokens: number;
31
+ }[];
32
+ recommendations: string[];
33
+ }
34
+ export declare function buildPanelData(sessionId: string, messages: MessageWithParts[], state: SessionState, config: SlimConfig, modelId?: string): Promise<PanelData>;
35
+ export declare function renderPanel(data: PanelData): string;
36
+ //# sourceMappingURL=tui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../../lib/tui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAO5F,MAAM,WAAW,SAAS;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAGjB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;IAG1C,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IAGnB,YAAY,EAAE;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACjB,CAAA;IAGD,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAGzC,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IAGb,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAG1D,eAAe,EAAE,MAAM,EAAE,CAAA;CAC5B;AAID,wBAAsB,cAAc,CAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,gBAAgB,EAAE,EAC5B,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,SAAS,CAAC,CAoHpB;AAsED,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAsEnD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serkanalgur/opencode-slim",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Smart context management plugin for OpenCode - semantic compression, cost-aware pruning, adaptive thresholds",
5
5
  "keywords": [
6
6
  "opencode",