@aiready/cli 0.9.43 → 0.9.45
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/.turbo/turbo-build.log +8 -8
- package/README.md +22 -1
- package/dist/cli.js +404 -257
- package/dist/cli.mjs +364 -211
- package/package.json +12 -12
- package/src/cli.ts +18 -0
- package/src/commands/index.ts +1 -0
- package/src/commands/scan.ts +113 -7
- package/src/commands/upload.ts +87 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/cli@0.9.
|
|
3
|
+
> @aiready/cli@0.9.45 build /Users/pengcao/projects/aiready/packages/cli
|
|
4
4
|
> tsup src/index.ts src/cli.ts --format cjs,esm
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
|
|
13
|
-
[90m[[
|
|
13
|
+
[90m[[90m2:01:22 PM[90m][39m [43m[30m WARN [39m[49m [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
14
14
|
|
|
15
|
-
src/cli.ts:
|
|
16
|
-
[37m
|
|
15
|
+
src/cli.ts:25:31:
|
|
16
|
+
[37m 25 │ return dirname(fileURLToPath([32mimport.meta[37m.url));
|
|
17
17
|
╵ [32m~~~~~~~~~~~[0m
|
|
18
18
|
|
|
19
19
|
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
[32mCJS[39m [1mdist/index.js [22m[32m9.42 KB[39m
|
|
24
|
-
[32mCJS[39m [1mdist/cli.js [22m[
|
|
25
|
-
[32mCJS[39m ⚡️ Build success in
|
|
26
|
-
[32mESM[39m [1mdist/cli.mjs [22m[
|
|
24
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m88.27 KB[39m
|
|
25
|
+
[32mCJS[39m ⚡️ Build success in 107ms
|
|
26
|
+
[32mESM[39m [1mdist/cli.mjs [22m[32m77.34 KB[39m
|
|
27
27
|
[32mESM[39m [1mdist/chunk-LLJMKNBI.mjs [22m[32m8.07 KB[39m
|
|
28
28
|
[32mESM[39m [1mdist/index.mjs [22m[32m138.00 B[39m
|
|
29
|
-
[32mESM[39m ⚡️ Build success in
|
|
29
|
+
[32mESM[39m ⚡️ Build success in 107ms
|
package/README.md
CHANGED
|
@@ -37,7 +37,28 @@ The CLI provides both unified analysis (scan multiple tools at once) and individ
|
|
|
37
37
|
aiready scan .
|
|
38
38
|
|
|
39
39
|
# Run a specific tool
|
|
40
|
-
aiready
|
|
40
|
+
aiready patterns . --similarity 0.6
|
|
41
|
+
|
|
42
|
+
## 🌐 Platform Integration
|
|
43
|
+
|
|
44
|
+
Connect your local scans to the [AIReady Dashboard](https://getaiready.dev/dashboard).
|
|
45
|
+
|
|
46
|
+
### Automatic Upload
|
|
47
|
+
Scan and upload results in one step:
|
|
48
|
+
```bash
|
|
49
|
+
aiready scan . --upload --api-key ar_...
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Manual Upload
|
|
53
|
+
Upload an existing report JSON:
|
|
54
|
+
```bash
|
|
55
|
+
aiready upload .aiready/latest.json --api-key ar_...
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Options
|
|
59
|
+
- `--upload`: Automatically upload results after scan
|
|
60
|
+
- `--api-key <key>`: Your platform API key (or set `AIREADY_API_KEY`)
|
|
61
|
+
- `--server <url>`: Custom platform URL (optional)
|
|
41
62
|
```
|
|
42
63
|
|
|
43
64
|
## License
|