@aiready/core 0.2.4 → 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
@@ -188,7 +188,10 @@ function mergeConfigWithDefaults(userConfig, defaults) {
188
188
  }
189
189
  if (userConfig.tools) {
190
190
  for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
191
- if (result[toolName] && typeof toolConfig === "object" && toolConfig !== null) {
191
+ if (typeof toolConfig === "object" && toolConfig !== null) {
192
+ if (toolName === "pattern-detect" || toolName === "context-analyzer") {
193
+ Object.assign(result, toolConfig);
194
+ }
192
195
  result[toolName] = { ...result[toolName], ...toolConfig };
193
196
  }
194
197
  }
package/dist/index.mjs CHANGED
@@ -158,7 +158,10 @@ function mergeConfigWithDefaults(userConfig, defaults) {
158
158
  }
159
159
  if (userConfig.tools) {
160
160
  for (const [toolName, toolConfig] of Object.entries(userConfig.tools)) {
161
- if (result[toolName] && typeof toolConfig === "object" && toolConfig !== null) {
161
+ if (typeof toolConfig === "object" && toolConfig !== null) {
162
+ if (toolName === "pattern-detect" || toolName === "context-analyzer") {
163
+ Object.assign(result, toolConfig);
164
+ }
162
165
  result[toolName] = { ...result[toolName], ...toolConfig };
163
166
  }
164
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/core",
3
- "version": "0.2.4",
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",