This commit is contained in:
parent
739a534ac2
commit
f237916291
165 changed files with 79237 additions and 0 deletions
21
.agents/skills/impeccable/scripts/detect.mjs
Normal file
21
.agents/skills/impeccable/scripts/detect.mjs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { pathToFileURL, fileURLToPath } from 'node:url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const candidates = [
|
||||
path.join(__dirname, 'detector', 'detect-antipatterns.mjs'),
|
||||
path.join(__dirname, '..', '..', 'cli', 'engine', 'detect-antipatterns.mjs'),
|
||||
];
|
||||
const detectorPath = candidates.find(p => fs.existsSync(p));
|
||||
|
||||
if (!detectorPath) {
|
||||
process.stderr.write('Error: bundled detector not found.\n');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const { detectCli } = await import(pathToFileURL(detectorPath));
|
||||
|
||||
await detectCli();
|
||||
Loading…
Add table
Add a link
Reference in a new issue