auditor-lambda 0.6.5 → 0.6.6

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.
@@ -2781,9 +2781,14 @@ async function runDistCommandInline(commandName, argv) {
2781
2781
  await mkdir(artifactsDir, { recursive: true });
2782
2782
  await ensureBuilt();
2783
2783
 
2784
- const distUrl = new URL(`file:///${distEntry.replace(/\\/g, '/')}`);
2784
+ // Import the module that exports runCli (dist/cli.js). dist/index.js has no
2785
+ // exports — it is the bare entrypoint that runs `runCli(process.argv)` as an
2786
+ // import side effect — so importing it here both fails to provide runCli and
2787
+ // double-starts the command from this process's argv.
2788
+ const distCliEntry = join(repoRoot, 'dist', 'cli.js');
2789
+ const distUrl = new URL(`file:///${distCliEntry.replace(/\\/g, '/')}`);
2785
2790
  const cli = await import(distUrl.href);
2786
- await cli.runCli([process.execPath, distEntry, commandName, ...commandArgs]);
2791
+ await cli.runCli([process.execPath, distCliEntry, commandName, ...commandArgs]);
2787
2792
  }
2788
2793
 
2789
2794
  export async function runAuditCodeWrapper({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auditor-lambda",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "private": false,
5
5
  "description": "Portable hybrid code-auditing framework for arbitrary repositories.",
6
6
  "type": "module",
@@ -83,10 +83,12 @@ audit-code
83
83
 
84
84
  from the target repository root.
85
85
 
86
- When developing inside the `auditor-lambda` repository itself, prefer:
86
+ When developing `auditor-lambda` itself, prefer the local wrapper at
87
+ `packages/audit-code/audit-code.mjs` (there is no `audit-code.mjs` at the
88
+ monorepo root):
87
89
 
88
90
  ```bash
89
- node audit-code.mjs
91
+ node packages/audit-code/audit-code.mjs # from the monorepo root
90
92
  ```
91
93
 
92
94
  That keeps the run pinned to the local wrapper and local `dist/` output instead
@@ -17,10 +17,12 @@ First, make sure the repository has current local audit assets:
17
17
  audit-code ensure --quiet
18
18
  ```
19
19
 
20
- Inside the `auditor-lambda` repository itself, use:
20
+ When developing `auditor-lambda` itself, the entrypoint lives at
21
+ `packages/audit-code/audit-code.mjs` (there is no `audit-code.mjs` at the
22
+ monorepo root). From the monorepo root use:
21
23
 
22
24
  ```bash
23
- node audit-code.mjs ensure --quiet
25
+ node packages/audit-code/audit-code.mjs ensure --quiet
24
26
  ```
25
27
 
26
28
  Then ask the backend for exactly one next step:
@@ -29,10 +31,10 @@ Then ask the backend for exactly one next step:
29
31
  audit-code next-step
30
32
  ```
31
33
 
32
- Inside the `auditor-lambda` repository itself, use:
34
+ When developing `auditor-lambda` itself, from the monorepo root use:
33
35
 
34
36
  ```bash
35
- node audit-code.mjs next-step
37
+ node packages/audit-code/audit-code.mjs next-step
36
38
  ```
37
39
 
38
40
  Read the returned JSON only far enough to find `prompt_path`, then read and