@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.
Files changed (2) hide show
  1. package/lib/index.js +5 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Schema } from '@deepseek-ai/schemastery';
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 = Schema.object({
10
- compressionMode: Schema.string().default('balanced').description('Log compression aggressiveness (raw/balanced/aggressive)'),
11
- astSkeletonMaxDepth: Schema.number().default(3).description('Max depth for AST skeleton generation'),
12
- tokenSavingsTracking: Schema.boolean().default(true).description('Track and display token budget savings')
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-context-lens",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DSH plugin for AST context compression, test log filtering, and token budget guard",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",