@oculum/cli 1.0.13 → 1.0.14
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.js +46 -73
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46394,6 +46394,48 @@ var esm_default = { watch, FSWatcher };
|
|
|
46394
46394
|
// src/commands/watch.ts
|
|
46395
46395
|
var import_scanner2 = __toESM(require_dist());
|
|
46396
46396
|
var import_formatters2 = __toESM(require_formatters());
|
|
46397
|
+
var WATCH_IGNORE_PATTERNS = [
|
|
46398
|
+
"**/node_modules/**",
|
|
46399
|
+
"**/dist/**",
|
|
46400
|
+
"**/build/**",
|
|
46401
|
+
"**/.git/**",
|
|
46402
|
+
"**/vendor/**",
|
|
46403
|
+
"**/__pycache__/**",
|
|
46404
|
+
"**/venv/**",
|
|
46405
|
+
"**/.venv/**",
|
|
46406
|
+
"**/coverage/**",
|
|
46407
|
+
"**/.next/**",
|
|
46408
|
+
"**/.nuxt/**",
|
|
46409
|
+
"**/.turbo/**",
|
|
46410
|
+
"**/out/**",
|
|
46411
|
+
"**/.cache/**",
|
|
46412
|
+
"**/.vercel/**",
|
|
46413
|
+
"**/.netlify/**",
|
|
46414
|
+
"**/target/**",
|
|
46415
|
+
"**/bin/**",
|
|
46416
|
+
"**/obj/**",
|
|
46417
|
+
"**/.gradle/**",
|
|
46418
|
+
"**/.mvn/**",
|
|
46419
|
+
"**/bower_components/**",
|
|
46420
|
+
"**/jspm_packages/**",
|
|
46421
|
+
"**/.yarn/**",
|
|
46422
|
+
"**/.pnp.*",
|
|
46423
|
+
"**/package-lock.json",
|
|
46424
|
+
"**/yarn.lock",
|
|
46425
|
+
"**/pnpm-lock.yaml",
|
|
46426
|
+
"**/*.min.js",
|
|
46427
|
+
"**/*.min.css",
|
|
46428
|
+
"**/*.bundle.js",
|
|
46429
|
+
"**/validation-test/**",
|
|
46430
|
+
"**/validation-repos/**",
|
|
46431
|
+
"**/validation-results/**",
|
|
46432
|
+
"**/test-files/**",
|
|
46433
|
+
"**/.env",
|
|
46434
|
+
"**/.env.*",
|
|
46435
|
+
"**/.env.local",
|
|
46436
|
+
"**/.env.*.local",
|
|
46437
|
+
"**/**.env"
|
|
46438
|
+
];
|
|
46397
46439
|
function isScannableFile2(filePath) {
|
|
46398
46440
|
const ext2 = (0, import_path5.extname)(filePath).toLowerCase();
|
|
46399
46441
|
const fileName = (0, import_path5.basename)(filePath);
|
|
@@ -46563,17 +46605,9 @@ async function watch2(targetPath, options) {
|
|
|
46563
46605
|
"**/*.cs",
|
|
46564
46606
|
"**/package.json"
|
|
46565
46607
|
];
|
|
46566
|
-
const ignorePatterns2 = [
|
|
46567
|
-
"**/node_modules/**",
|
|
46568
|
-
"**/dist/**",
|
|
46569
|
-
"**/build/**",
|
|
46570
|
-
"**/.git/**",
|
|
46571
|
-
"**/vendor/**",
|
|
46572
|
-
"**/__pycache__/**"
|
|
46573
|
-
];
|
|
46574
46608
|
const allFiles2 = await glob3(patterns2, {
|
|
46575
46609
|
cwd: absolutePath,
|
|
46576
|
-
ignore:
|
|
46610
|
+
ignore: WATCH_IGNORE_PATTERNS,
|
|
46577
46611
|
nodir: true,
|
|
46578
46612
|
absolute: true
|
|
46579
46613
|
});
|
|
@@ -46584,35 +46618,7 @@ async function watch2(targetPath, options) {
|
|
|
46584
46618
|
isScanning = false;
|
|
46585
46619
|
runScanOnChanges();
|
|
46586
46620
|
};
|
|
46587
|
-
const watcherIgnore =
|
|
46588
|
-
"**/node_modules/**",
|
|
46589
|
-
"**/dist/**",
|
|
46590
|
-
"**/build/**",
|
|
46591
|
-
"**/.git/**",
|
|
46592
|
-
"**/vendor/**",
|
|
46593
|
-
"**/__pycache__/**",
|
|
46594
|
-
"**/venv/**",
|
|
46595
|
-
"**/.venv/**",
|
|
46596
|
-
"**/coverage/**",
|
|
46597
|
-
"**/.next/**",
|
|
46598
|
-
"**/.nuxt/**",
|
|
46599
|
-
"**/.turbo/**",
|
|
46600
|
-
"**/out/**",
|
|
46601
|
-
"**/.cache/**",
|
|
46602
|
-
"**/.vercel/**",
|
|
46603
|
-
"**/.netlify/**",
|
|
46604
|
-
"**/target/**",
|
|
46605
|
-
"**/.gradle/**",
|
|
46606
|
-
"**/.mvn/**",
|
|
46607
|
-
"**/bower_components/**",
|
|
46608
|
-
"**/.yarn/**",
|
|
46609
|
-
"**/package-lock.json",
|
|
46610
|
-
"**/yarn.lock",
|
|
46611
|
-
"**/pnpm-lock.yaml",
|
|
46612
|
-
"**/*.min.js",
|
|
46613
|
-
"**/*.min.css",
|
|
46614
|
-
"**/*.bundle.js"
|
|
46615
|
-
];
|
|
46621
|
+
const watcherIgnore = WATCH_IGNORE_PATTERNS;
|
|
46616
46622
|
const watcher = esm_default.watch(absolutePath, {
|
|
46617
46623
|
ignored: watcherIgnore,
|
|
46618
46624
|
persistent: true,
|
|
@@ -46696,42 +46702,9 @@ async function watch2(targetPath, options) {
|
|
|
46696
46702
|
"**/*.cs",
|
|
46697
46703
|
"**/package.json"
|
|
46698
46704
|
];
|
|
46699
|
-
const ignorePatterns = [
|
|
46700
|
-
"**/node_modules/**",
|
|
46701
|
-
"**/dist/**",
|
|
46702
|
-
"**/build/**",
|
|
46703
|
-
"**/.git/**",
|
|
46704
|
-
"**/vendor/**",
|
|
46705
|
-
"**/__pycache__/**",
|
|
46706
|
-
"**/venv/**",
|
|
46707
|
-
"**/.venv/**",
|
|
46708
|
-
"**/coverage/**",
|
|
46709
|
-
"**/.next/**",
|
|
46710
|
-
"**/.nuxt/**",
|
|
46711
|
-
"**/.turbo/**",
|
|
46712
|
-
"**/out/**",
|
|
46713
|
-
"**/.cache/**",
|
|
46714
|
-
"**/.vercel/**",
|
|
46715
|
-
"**/.netlify/**",
|
|
46716
|
-
"**/target/**",
|
|
46717
|
-
"**/bin/**",
|
|
46718
|
-
"**/obj/**",
|
|
46719
|
-
"**/.gradle/**",
|
|
46720
|
-
"**/.mvn/**",
|
|
46721
|
-
"**/bower_components/**",
|
|
46722
|
-
"**/jspm_packages/**",
|
|
46723
|
-
"**/.yarn/**",
|
|
46724
|
-
"**/.pnp.*",
|
|
46725
|
-
"**/package-lock.json",
|
|
46726
|
-
"**/yarn.lock",
|
|
46727
|
-
"**/pnpm-lock.yaml",
|
|
46728
|
-
"**/*.min.js",
|
|
46729
|
-
"**/*.min.css",
|
|
46730
|
-
"**/*.bundle.js"
|
|
46731
|
-
];
|
|
46732
46705
|
const allFiles = await glob2(patterns, {
|
|
46733
46706
|
cwd: absolutePath,
|
|
46734
|
-
ignore:
|
|
46707
|
+
ignore: WATCH_IGNORE_PATTERNS,
|
|
46735
46708
|
nodir: true,
|
|
46736
46709
|
absolute: true
|
|
46737
46710
|
});
|
|
@@ -47453,7 +47426,7 @@ function showLogo() {
|
|
|
47453
47426
|
async function showWelcomeScreen() {
|
|
47454
47427
|
console.clear();
|
|
47455
47428
|
showLogo();
|
|
47456
|
-
console.log(source_default.bold.white(" AI-Native
|
|
47429
|
+
console.log(source_default.bold.white(" AI-Native Security Scanner for Modern Codebases\n"));
|
|
47457
47430
|
console.log(source_default.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n"));
|
|
47458
47431
|
console.log(source_default.white(" Oculum detects security vulnerabilities in AI-generated"));
|
|
47459
47432
|
console.log(source_default.white(" code and LLM-powered applications, including:\n"));
|
package/package.json
CHANGED