nsauditor-ai 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. package/cli.mjs +5 -1
  2. package/package.json +1 -1
package/cli.mjs CHANGED
@@ -3,6 +3,10 @@ import 'dotenv/config';
3
3
  import PluginManager from './plugin_manager.mjs';
4
4
  import { buildHtmlReport } from './utils/report_html.mjs';
5
5
  import fsp from 'node:fs/promises';
6
+ import { dirname } from 'node:path';
7
+ import { fileURLToPath } from 'node:url';
8
+
9
+ const __dirname = dirname(fileURLToPath(import.meta.url));
6
10
  import path from 'node:path';
7
11
  import { openaiSimplePrompt, openaiPrompt as openaiProPrompt, openaiPromptOptimized } from './utils/prompts.mjs';
8
12
  import { parseHostArg, parseHostFile } from './utils/host_iterator.mjs';
@@ -790,7 +794,7 @@ async function main() {
790
794
 
791
795
  const opts = { insecureHttps };
792
796
  if (ports) opts.ports = ports;
793
- const pm = await PluginManager.create('./plugins');
797
+ const pm = await PluginManager.create(`${__dirname}/plugins`);
794
798
  const promptMode = String(process.env.OPENAI_PROMPT_MODE || 'basic').toLowerCase().trim();
795
799
 
796
800
  // --- CTEM: continuous watch mode ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsauditor-ai",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Modular AI-assisted network security audit platform — Community Edition",
5
5
  "type": "module",
6
6
  "private": false,