@aiready/core 0.2.5 → 0.3.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/dist/index.d.mts CHANGED
@@ -44,6 +44,7 @@ interface AIReadyConfig {
44
44
  minSharedTokens?: number;
45
45
  maxCandidatesPerBlock?: number;
46
46
  streamResults?: boolean;
47
+ maxResults?: number;
47
48
  };
48
49
  'context-analyzer'?: {
49
50
  maxDepth?: number;
@@ -52,6 +53,7 @@ interface AIReadyConfig {
52
53
  maxFragmentation?: number;
53
54
  focus?: 'fragmentation' | 'cohesion' | 'depth' | 'all';
54
55
  includeNodeModules?: boolean;
56
+ maxResults?: number;
55
57
  };
56
58
  };
57
59
  output?: {
package/dist/index.d.ts CHANGED
@@ -44,6 +44,7 @@ interface AIReadyConfig {
44
44
  minSharedTokens?: number;
45
45
  maxCandidatesPerBlock?: number;
46
46
  streamResults?: boolean;
47
+ maxResults?: number;
47
48
  };
48
49
  'context-analyzer'?: {
49
50
  maxDepth?: number;
@@ -52,6 +53,7 @@ interface AIReadyConfig {
52
53
  maxFragmentation?: number;
53
54
  focus?: 'fragmentation' | 'cohesion' | 'depth' | 'all';
54
55
  includeNodeModules?: boolean;
56
+ maxResults?: number;
55
57
  };
56
58
  };
57
59
  output?: {
package/dist/index.js CHANGED
@@ -189,7 +189,7 @@ function mergeConfigWithDefaults(userConfig, defaults) {
189
189
  if (userConfig.tools) {
190
190
  for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
191
191
  if (typeof toolConfig === "object" && toolConfig !== null) {
192
- if (toolName === "pattern-detect") {
192
+ if (toolName === "pattern-detect" || toolName === "context-analyzer") {
193
193
  Object.assign(result, toolConfig);
194
194
  }
195
195
  result[toolName] = { ...result[toolName], ...toolConfig };
package/dist/index.mjs CHANGED
@@ -159,7 +159,7 @@ function mergeConfigWithDefaults(userConfig, defaults) {
159
159
  if (userConfig.tools) {
160
160
  for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
161
161
  if (typeof toolConfig === "object" && toolConfig !== null) {
162
- if (toolName === "pattern-detect") {
162
+ if (toolName === "pattern-detect" || toolName === "context-analyzer") {
163
163
  Object.assign(result, toolConfig);
164
164
  }
165
165
  result[toolName] = { ...result[toolName], ...toolConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/core",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "description": "Shared utilities for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",