@aiready/cli 0.3.6 → 0.3.7

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/cli@0.3.6 build /Users/pengcao/projects/aiready/packages/cli
3
+ > @aiready/cli@0.3.7 build /Users/pengcao/projects/aiready/packages/cli
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -11,19 +11,14 @@
11
11
  ESM Build start
12
12
  CJS dist/index.js 2.57 KB
13
13
  CJS dist/cli.js 10.77 KB
14
- CJS ⚡️ Build success in 51ms
14
+ CJS ⚡️ Build success in 58ms
15
15
  ESM dist/index.mjs 138.00 B
16
- ESM dist/chunk-KZKXZKES.mjs 1.45 KB
17
16
  ESM dist/cli.mjs 7.92 KB
18
- ESM ⚡️ Build success in 51ms
17
+ ESM dist/chunk-KZKXZKES.mjs 1.45 KB
18
+ ESM ⚡️ Build success in 58ms
19
19
  DTS Build start
20
- src/cli.ts(57,17): error TS2339: Property 'getSmartDefaults' does not exist on type '{ default: typeof import("/Users/pengcao/projects/aiready/packages/pattern-detect/dist/index"); analyzePatterns: (options: PatternDetectOptions) => Promise<{ results: AnalysisResult[]; duplicates: DuplicatePattern[]; files: string[]; }>; detectDuplicatePatterns: (files: FileContent[], options: DetectionOptions) => P...'.
21
-
22
- Error: error occurred in dts build
23
- at Worker.<anonymous> (/Users/pengcao/projects/aiready/node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/dist/index.js:1545:26)
24
- at Worker.emit (node:events:519:28)
25
- at MessagePort.<anonymous> (node:internal/worker:269:53)
26
- at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
27
- at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
28
- DTS Build error
29
-  ELIFECYCLE  Command failed with exit code 1.
20
+ DTS ⚡️ Build success in 534ms
21
+ DTS dist/cli.d.ts 20.00 B
22
+ DTS dist/index.d.ts 880.00 B
23
+ DTS dist/cli.d.mts 20.00 B
24
+ DTS dist/index.d.mts 880.00 B
package/dist/index.d.mts CHANGED
@@ -3,6 +3,11 @@ import { ContextAnalysisResult } from '@aiready/context-analyzer';
3
3
 
4
4
  interface UnifiedAnalysisOptions extends ScanOptions {
5
5
  tools?: ('patterns' | 'context')[];
6
+ minSimilarity?: number;
7
+ minLines?: number;
8
+ maxCandidatesPerBlock?: number;
9
+ minSharedTokens?: number;
10
+ useSmartDefaults?: boolean;
6
11
  }
7
12
  interface UnifiedAnalysisResult {
8
13
  patterns?: AnalysisResult[];
package/dist/index.d.ts CHANGED
@@ -3,6 +3,11 @@ import { ContextAnalysisResult } from '@aiready/context-analyzer';
3
3
 
4
4
  interface UnifiedAnalysisOptions extends ScanOptions {
5
5
  tools?: ('patterns' | 'context')[];
6
+ minSimilarity?: number;
7
+ minLines?: number;
8
+ maxCandidatesPerBlock?: number;
9
+ minSharedTokens?: number;
10
+ useSmartDefaults?: boolean;
6
11
  }
7
12
  interface UnifiedAnalysisResult {
8
13
  patterns?: AnalysisResult[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Unified CLI for AIReady analysis tools",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,9 +11,9 @@
11
11
  "dependencies": {
12
12
  "commander": "^12.1.0",
13
13
  "chalk": "^5.3.0",
14
- "@aiready/pattern-detect": "0.7.9",
15
14
  "@aiready/core": "0.3.6",
16
- "@aiready/context-analyzer": "0.3.7"
15
+ "@aiready/context-analyzer": "0.3.7",
16
+ "@aiready/pattern-detect": "0.7.11"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tsup": "^8.3.5",