@goodandready/dsh-context-lens 0.1.0 → 0.1.2

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/LICENSE CHANGED
@@ -11,3 +11,11 @@ furnished to do so, subject to the following conditions:
11
11
 
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/cordis.patch.yml CHANGED
@@ -1,2 +1,4 @@
1
- - id: dsh-context-lens
2
- name: '@goodandready/dsh-context-lens'
1
+ # dsh-context-lens: строка плагина в дереве загрузчика профиля.
2
+ - insert:
3
+ - id: dsh-context-lens
4
+ name: '@goodandready/dsh-context-lens'
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.2",
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",