@npm7381/ai-agent-toolkit 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Marcelo Adán
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/cli.js ADDED
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from 'child_process';
3
+ import { dirname } from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ import { createRequire } from 'module';
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ const require = createRequire(import.meta.url);
8
+ const AGENTS = {
9
+ doc: '@npm7381/agent-doc-generator',
10
+ review: '@npm7381/agent-code-review',
11
+ test: '@npm7381/agent-test-generator',
12
+ refactor: '@npm7381/agent-refactor',
13
+ audit: '@npm7381/agent-security-audit',
14
+ };
15
+ const VERSION = '1.0.0';
16
+ function showGeneralHelp() {
17
+ console.log(`
18
+ AI Agent Toolkit v${VERSION}
19
+ Uso: ai-toolkit <comando> [opciones]
20
+
21
+ Comandos:
22
+ doc Generar documentación del código
23
+ Ej: ai-toolkit doc --path ./src
24
+
25
+ review Revisar calidad del código
26
+ Ej: ai-toolkit review --path ./src --format html
27
+
28
+ test Generar tests unitarios
29
+ Ej: ai-toolkit test --path ./src
30
+
31
+ refactor Sugerir y aplicar refactorizaciones
32
+ Ej: ai-toolkit refactor --path ./src --apply
33
+
34
+ audit Auditar seguridad (OWASP Top 10)
35
+ Ej: ai-toolkit audit --path ./src --severity critical
36
+
37
+ Opciones generales:
38
+ --help, -h Muestra ayuda
39
+ --version, -v Muestra versión
40
+
41
+ Más información:
42
+ ai-toolkit <comando> --help
43
+ `);
44
+ }
45
+ const subcommand = process.argv[2];
46
+ if (!subcommand || subcommand === '--help' || subcommand === '-h') {
47
+ showGeneralHelp();
48
+ process.exit(0);
49
+ }
50
+ if (subcommand === '--version' || subcommand === '-v') {
51
+ console.log(VERSION);
52
+ process.exit(0);
53
+ }
54
+ const agentName = AGENTS[subcommand];
55
+ if (!agentName) {
56
+ console.error(`Comando desconocido: "${subcommand}". Usa "ai-toolkit --help" para ver los comandos disponibles.`);
57
+ process.exit(1);
58
+ }
59
+ const agentEntry = require.resolve(`${agentName}/dist/index.js`);
60
+ const childArgs = process.argv.slice(3);
61
+ const child = spawn(process.execPath, [agentEntry, ...childArgs], { stdio: 'inherit' });
62
+ child.on('exit', (code) => {
63
+ process.exit(code ?? 1);
64
+ });
65
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,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AAgB,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAExF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@npm7381/ai-agent-toolkit",
3
+ "version": "1.0.0",
4
+ "description": "AI Agent Toolkit - CLI unificada para herramientas de desarrollo impulsadas por IA",
5
+ "type": "module",
6
+ "bin": {
7
+ "ai-toolkit": "./dist/cli.js"
8
+ },
9
+ "files": ["dist/", "README.md", "LICENSE"],
10
+ "engines": { "node": ">=18" },
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "start": "node dist/cli.js",
14
+ "typecheck": "tsc --noEmit",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "dependencies": {
18
+ "@npm7381/agent-doc-generator": "^1.0.0",
19
+ "@npm7381/agent-test-generator": "^1.0.0",
20
+ "@npm7381/agent-code-review": "^1.0.0",
21
+ "@npm7381/agent-refactor": "^1.0.0",
22
+ "@npm7381/agent-security-audit": "^1.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^22.0.0",
26
+ "typescript": "^5.7.0"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/MarceloAdan73/ai-agent-toolkit",
31
+ "directory": "toolkit"
32
+ },
33
+ "keywords": ["ai", "cli", "toolkit", "agents", "code-generation", "documentation", "testing", "code-review", "security"],
34
+ "author": "Marcelo Adan",
35
+ "license": "MIT",
36
+ "homepage": "https://github.com/MarceloAdan73/ai-agent-toolkit"
37
+ }