@goodandready/dsh-context-lens 0.1.0 → 0.1.1
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.js +5 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z from '@deepseek-ai/schemastery';
|
|
2
2
|
import { compressLog, estimateTokens as estLog } from './compression/log-compressor.js';
|
|
3
3
|
import { skeletonize } from './ast/skeletonizer.js';
|
|
4
4
|
import * as tracker from './tokens/tracker.js';
|
|
@@ -6,10 +6,10 @@ import * as tracker from './tokens/tracker.js';
|
|
|
6
6
|
export const name = '@goodandready/dsh-context-lens';
|
|
7
7
|
export const inject = ['tools', 'settings', 'webServer'];
|
|
8
8
|
|
|
9
|
-
export const Config =
|
|
10
|
-
compressionMode:
|
|
11
|
-
astSkeletonMaxDepth:
|
|
12
|
-
tokenSavingsTracking:
|
|
9
|
+
export const Config = z.object({
|
|
10
|
+
compressionMode: z.string().default('balanced').description('Log compression aggressiveness (raw/balanced/aggressive)'),
|
|
11
|
+
astSkeletonMaxDepth: z.number().default(3).description('Max depth for AST skeleton generation'),
|
|
12
|
+
tokenSavingsTracking: z.boolean().default(true).description('Track and display token budget savings')
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const NS = '@goodandready/dsh-context-lens';
|