auditor-lambda 0.2.4 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auditor-lambda",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "description": "Portable hybrid code-auditing framework for arbitrary repositories.",
6
6
  "type": "module",
@@ -13,10 +13,12 @@
13
13
  "audit-code-wrapper-lib.mjs",
14
14
  "schemas/**",
15
15
  "skills/audit-code/**",
16
+ "scripts/postinstall.mjs",
16
17
  "README.md",
17
18
  "docs/**"
18
19
  ],
19
20
  "scripts": {
21
+ "postinstall": "node scripts/postinstall.mjs",
20
22
  "build": "tsc -p tsconfig.json",
21
23
  "check": "tsc -p tsconfig.json --noEmit",
22
24
  "test": "npm run build && node --test tests/*.test.mjs",
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ import { homedir } from 'os';
3
+ import { join, dirname } from 'path';
4
+ import { mkdirSync, copyFileSync, existsSync } from 'fs';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const pkgRoot = dirname(fileURLToPath(new URL('.', import.meta.url)));
8
+ const sourceFile = join(pkgRoot, '..', 'skills', 'audit-code', 'audit-code.prompt.md');
9
+ const destDir = join(homedir(), '.claude', 'commands');
10
+ const destFile = join(destDir, 'audit-code.md');
11
+
12
+ try {
13
+ mkdirSync(destDir, { recursive: true });
14
+ copyFileSync(sourceFile, destFile);
15
+ console.log(`audit-code: installed /audit-code Claude command → ${destFile}`);
16
+ } catch (err) {
17
+ // Non-fatal — CLI still works, just no slash command autocomplete
18
+ console.warn(`audit-code: could not install Claude command (${err.message})`);
19
+ }
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: Code Auditing Skill
3
- command: /audit-code
4
- description: Autonomous local loop code auditing
2
+ description: Autonomous local loop code auditing — steps the audit-code orchestrator and acts as the LLM worker until the audit completes
3
+ argument-hint: [target-dir]
4
+ allowed-tools: [Read, Write, Edit, Bash, Glob, Grep]
5
5
  ---
6
6
 
7
7
  # `/audit-code` Execution Directive