@sebasgc0399/agents-md 0.2.0 → 0.2.1
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/README.md +207 -203
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/render/data-builder.d.ts.map +1 -1
- package/dist/render/data-builder.js +2 -0
- package/dist/render/data-builder.js.map +1 -1
- package/dist/templates/base.mustache +112 -112
- package/dist/templates/firebase.mustache +1 -1
- package/dist/templates/monorepo.mustache +1 -1
- package/dist/templates/react.mustache +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/version.d.ts +6 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +33 -0
- package/dist/utils/version.js.map +1 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,203 +1,207 @@
|
|
|
1
|
-
# agents-md
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- [
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Opcion
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
agents-md init
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
agents-md init --
|
|
86
|
-
|
|
87
|
-
#
|
|
88
|
-
agents-md init --
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
##
|
|
100
|
-
|
|
101
|
-
- `compact
|
|
102
|
-
- `standard`:
|
|
103
|
-
- `full`:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
1
|
+
# agents-md
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@sebasgc0399/agents-md)
|
|
4
|
+
[](https://www.npmjs.com/package/@sebasgc0399/agents-md)
|
|
5
|
+
[](https://github.com/sebasgc0399/agents-md/actions/workflows/ci.yml)
|
|
6
|
+
[](https://github.com/sebasgc0399/agents-md/releases/latest)
|
|
7
|
+
[](https://github.com/sebasgc0399/agents-md/blob/main/LICENSE)
|
|
8
|
+
|
|
9
|
+
CLI para generar archivos `AGENTS.md` automaticamente para proyectos Node.js.
|
|
10
|
+
|
|
11
|
+
## Tabla de contenido
|
|
12
|
+
|
|
13
|
+
- [¿Que es AGENTS.md?](#que-es-agentsmd)
|
|
14
|
+
- [Quickstart](#quickstart)
|
|
15
|
+
- [Instalacion](#instalacion)
|
|
16
|
+
- [Uso](#uso)
|
|
17
|
+
- [Perfiles de salida](#perfiles-de-salida)
|
|
18
|
+
- [Proyectos soportados](#proyectos-soportados)
|
|
19
|
+
- [Releases y novedades](#releases-y-novedades)
|
|
20
|
+
- [Desarrollo](#desarrollo)
|
|
21
|
+
- [Contribuciones](#contribuciones)
|
|
22
|
+
- [Soporte](#soporte)
|
|
23
|
+
- [Licencia](#licencia)
|
|
24
|
+
|
|
25
|
+
## ¿Que es AGENTS.md?
|
|
26
|
+
|
|
27
|
+
`AGENTS.md` es un "README para AI agents" que reduce alucinaciones al proporcionar:
|
|
28
|
+
|
|
29
|
+
- Comandos canonicos (setup, test, build, lint)
|
|
30
|
+
- Convenciones de codigo y estilo
|
|
31
|
+
- Guias de testing
|
|
32
|
+
- Reglas de seguridad
|
|
33
|
+
- Definition of Done
|
|
34
|
+
|
|
35
|
+
## Quickstart
|
|
36
|
+
|
|
37
|
+
Nombres importantes para evitar confusion:
|
|
38
|
+
|
|
39
|
+
- Package en npm: `@sebasgc0399/agents-md`
|
|
40
|
+
- Comando instalado: `agents-md`
|
|
41
|
+
- No usar `npx agents-md ...` sin scope
|
|
42
|
+
|
|
43
|
+
Uso sin instalacion (recomendado):
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx -p @sebasgc0399/agents-md agents-md init
|
|
47
|
+
npx -p @sebasgc0399/agents-md agents-md init --dry-run
|
|
48
|
+
npx -p @sebasgc0399/agents-md agents-md init --profile compact
|
|
49
|
+
npx -p @sebasgc0399/agents-md agents-md init --profile standard
|
|
50
|
+
npx -p @sebasgc0399/agents-md agents-md init --profile full
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Instalacion
|
|
54
|
+
|
|
55
|
+
Opcion 1: sin instalacion (npx)
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx -p @sebasgc0399/agents-md agents-md init
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Opcion 2: instalacion global
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npm install -g @sebasgc0399/agents-md
|
|
65
|
+
agents-md init
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Requisitos:
|
|
69
|
+
|
|
70
|
+
- Node.js >= 18
|
|
71
|
+
- `package.json` en la raiz del proyecto
|
|
72
|
+
|
|
73
|
+
## Uso
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Generar AGENTS.md en el directorio actual
|
|
77
|
+
agents-md init
|
|
78
|
+
|
|
79
|
+
# Preview sin escribir archivo
|
|
80
|
+
agents-md init --dry-run
|
|
81
|
+
|
|
82
|
+
# Elegir perfil de salida (default: compact)
|
|
83
|
+
agents-md init --profile compact
|
|
84
|
+
agents-md init --profile standard
|
|
85
|
+
agents-md init --profile full
|
|
86
|
+
|
|
87
|
+
# Sobrescribir archivo existente
|
|
88
|
+
agents-md init --force
|
|
89
|
+
|
|
90
|
+
# Modo verbose (mostrar detalles de deteccion)
|
|
91
|
+
agents-md init --verbose
|
|
92
|
+
|
|
93
|
+
# Especificar ruta de salida
|
|
94
|
+
agents-md init --out ./docs/AGENTS.md
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Nota: actualmente las flags `-y/--yes` y `-i/--interactive` estan reservadas y no cambian el comportamiento del comando.
|
|
98
|
+
|
|
99
|
+
## Perfiles de salida
|
|
100
|
+
|
|
101
|
+
- `compact` (default): salida corta y directa (hasta ~110 lineas)
|
|
102
|
+
- `standard`: salida mas completa para equipos (~150-230 lineas)
|
|
103
|
+
- `full`: salida mas detallada para handoff y CI (~220-360 lineas)
|
|
104
|
+
|
|
105
|
+
## Limites de salida (soft limits)
|
|
106
|
+
|
|
107
|
+
- `compact`: 50-110 lines, max ~900 tokens
|
|
108
|
+
- `standard`: 150-230 lines, max ~1600 tokens
|
|
109
|
+
- `full`: 220-360 lines, max ~2400 tokens
|
|
110
|
+
|
|
111
|
+
Exceder estos rangos genera warnings y no bloquea la generacion. La generacion solo se bloquea cuando hay errors de validacion.
|
|
112
|
+
|
|
113
|
+
## Proyectos soportados
|
|
114
|
+
|
|
115
|
+
- React (Vite, CRA, Next.js)
|
|
116
|
+
- Vue (Vite, Nuxt)
|
|
117
|
+
- Firebase Functions
|
|
118
|
+
- Proyectos Node.js genericos
|
|
119
|
+
- Monorepos (Turborepo/Nx)
|
|
120
|
+
|
|
121
|
+
## Como funciona
|
|
122
|
+
|
|
123
|
+
1. Lee `package.json`.
|
|
124
|
+
2. Detecta framework y estructura de carpetas.
|
|
125
|
+
3. Extrae comandos canonicos desde scripts.
|
|
126
|
+
4. Genera un `AGENTS.md` limpio y conciso segun el perfil seleccionado.
|
|
127
|
+
|
|
128
|
+
## Releases y novedades
|
|
129
|
+
|
|
130
|
+
Cambios en esta version actual:
|
|
131
|
+
|
|
132
|
+
- Benchmark de calidad P0/P1/P2 integrado (`benchmark:lite`, `benchmark:p1`, `benchmark:p2`)
|
|
133
|
+
- Gates de calidad en CI para benchmark lite + baseline semantico P1
|
|
134
|
+
- Workflow semanal/manual de tendencias (`benchmark-trends`) con reporte JSON/Markdown
|
|
135
|
+
|
|
136
|
+
Actualizar a la ultima version global:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
npm update -g @sebasgc0399/agents-md
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
[Ver historial completo de versiones](https://github.com/sebasgc0399/agents-md/releases)
|
|
143
|
+
|
|
144
|
+
## Desarrollo
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Instalar dependencias
|
|
148
|
+
npm install
|
|
149
|
+
|
|
150
|
+
# Build
|
|
151
|
+
npm run build
|
|
152
|
+
|
|
153
|
+
# Modo desarrollo (watch)
|
|
154
|
+
npm run dev
|
|
155
|
+
|
|
156
|
+
# Tests
|
|
157
|
+
npm test
|
|
158
|
+
|
|
159
|
+
# Coverage
|
|
160
|
+
npm run test:coverage
|
|
161
|
+
|
|
162
|
+
# Lint (verificar tipos)
|
|
163
|
+
npm run lint
|
|
164
|
+
|
|
165
|
+
# Benchmark lite (P0 quality gate)
|
|
166
|
+
npm run benchmark:lite
|
|
167
|
+
|
|
168
|
+
# Benchmark P1 (semantic baseline + regression budget)
|
|
169
|
+
npm run benchmark:p1
|
|
170
|
+
|
|
171
|
+
# Regenerar baseline P1 (solo cuando el cambio es intencional)
|
|
172
|
+
npm run benchmark:p1:update
|
|
173
|
+
|
|
174
|
+
# Benchmark P2 (weekly trends report, non-blocking)
|
|
175
|
+
npm run benchmark:p2
|
|
176
|
+
|
|
177
|
+
# Smoke del CLI compilado
|
|
178
|
+
node dist/cli.js init --dry-run
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Contribuciones
|
|
182
|
+
|
|
183
|
+
Gracias por ayudar a mejorar `agents-md`.
|
|
184
|
+
|
|
185
|
+
Para mantener el proyecto de alta calidad:
|
|
186
|
+
|
|
187
|
+
- Abre un issue primero para cambios no triviales.
|
|
188
|
+
- Incluye problema, solucion propuesta y trade-off tecnico.
|
|
189
|
+
- Si usaste IA, revisa manualmente el resultado antes de abrir PR.
|
|
190
|
+
- Manten los PRs pequenos y enfocados.
|
|
191
|
+
- Agrega o actualiza tests cuando cambie el comportamiento.
|
|
192
|
+
- Ejecuta `npm test` antes de enviar.
|
|
193
|
+
|
|
194
|
+
Comandos de desarrollo y validacion: ver seccion `## Desarrollo`.
|
|
195
|
+
|
|
196
|
+
## Soporte
|
|
197
|
+
|
|
198
|
+
Si esta herramienta te resulta util, puedes apoyar el proyecto de estas formas:
|
|
199
|
+
|
|
200
|
+
- Dar estrella al repo
|
|
201
|
+
- Compartirlo con tu equipo
|
|
202
|
+
- Reportar bugs con pasos reproducibles
|
|
203
|
+
- Proponer mejoras via issues o PRs acotados
|
|
204
|
+
|
|
205
|
+
## Licencia
|
|
206
|
+
|
|
207
|
+
MIT © 2026 sebasgc0399
|
package/dist/cli.js
CHANGED
|
@@ -9,12 +9,13 @@ import { detectProject } from './detect/index.js';
|
|
|
9
9
|
import { renderAgentsMd } from './render/index.js';
|
|
10
10
|
import { Logger } from './utils/logger.js';
|
|
11
11
|
import { directoryExists, isPathSafe } from './utils/fs-utils.js';
|
|
12
|
+
import { getPackageVersion } from './utils/version.js';
|
|
12
13
|
const program = new Command();
|
|
13
14
|
const VALID_PROFILES = ['compact', 'standard', 'full'];
|
|
14
15
|
program
|
|
15
16
|
.name('agents-md')
|
|
16
17
|
.description('Generate AGENTS.md files for AI coding agents')
|
|
17
|
-
.version(
|
|
18
|
+
.version(getPackageVersion());
|
|
18
19
|
program
|
|
19
20
|
.command('init')
|
|
20
21
|
.description('Generate AGENTS.md file')
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,M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AAC,CAAC;YAEtD,MAAM,CAAC,OAAO,CAAC,aAAa,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;YAE3C,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACrB,MAAM,CAAC,IAAI,CACT,aAAa,SAAS,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,EAAE,CACrG,CAAC;gBACF,MAAM,CAAC,IAAI,CACT,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,YAAY,MAAM,CAAC,UAAU,CAAC,eAAe,SAAS,CACrF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,sBAAsB;AACtB,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-builder.d.ts","sourceRoot":"","sources":["../../src/render/data-builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"data-builder.d.ts","sourceRoot":"","sources":["../../src/render/data-builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAe,OAAO,EAAE,MAAM,aAAa,CAAC;AAoIrF;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,eAAe,EAC1B,OAAO,GAAE,OAAmB,GAC3B,eAAe,CAuCjB"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Build template context from detection results
|
|
3
3
|
*/
|
|
4
4
|
import { detectBuildTools } from '../detect/framework-detector.js';
|
|
5
|
+
import { getPackageVersion } from '../utils/version.js';
|
|
5
6
|
/**
|
|
6
7
|
* Default values when data is missing
|
|
7
8
|
*/
|
|
@@ -107,6 +108,7 @@ export function buildTemplateContext(detection, profile = 'compact') {
|
|
|
107
108
|
return {
|
|
108
109
|
project_name: packageInfo?.name || 'unknown-project',
|
|
109
110
|
project_description: description,
|
|
111
|
+
generator_version: getPackageVersion(),
|
|
110
112
|
profile,
|
|
111
113
|
stacks,
|
|
112
114
|
commands: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-builder.js","sourceRoot":"","sources":["../../src/render/data-builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"data-builder.js","sourceRoot":"","sources":["../../src/render/data-builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,QAAQ,GAAG;IACf,mBAAmB,EACjB,gGAAgG;IAElG,WAAW,EACT,uCAAuC;QACvC,yDAAyD;QACzD,mCAAmC;IAErC,aAAa,EACX,2CAA2C;QAC3C,iCAAiC;QACjC,qCAAqC;IAEvC,cAAc,EACZ,4CAA4C;QAC5C,2DAA2D;QAC3D,+BAA+B;QAC/B,4DAA4D;CAC/D,CAAC;AAEF;;GAEG;AACH,SAAS,eAAe,CAAC,SAAuC;IAC9D,QAAQ,SAAS,CAAC,IAAI,EAAE,CAAC;QACvB,KAAK,OAAO;YACV,OAAO,CACL,QAAQ,CAAC,WA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S,EAAE,QAAQ,CAAC,KAAK,KAAK,IAAI;QAClC,WAAW,EAAE,eAAe,CAAC,UAAU;QACvC,SAAS,EAAE,OAAO,KAAK,SAAS;QAChC,UAAU,EAAE,OAAO,KAAK,UAAU;QAClC,MAAM,EAAE,OAAO,KAAK,MAAM;QAC1B,gBAAgB,EAAE,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,MAAM;QAC9D,kBAAkB,EAAE,SAAS,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,eAAe,CAAC,UAAU;QAC/E,cAAc,EAAE,SAAS,CAAC,IAAI;QAC9B,YAAY,EAAE,OAAO,CAAC,IAAI;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -81,90 +81,90 @@ Antes de considerar una tarea completa:
|
|
|
81
81
|
- Validate generated content length and formatting.
|
|
82
82
|
- Re-run minimal targeted tests before full suite.
|
|
83
83
|
|
|
84
|
-
## Testing strategy
|
|
85
|
-
- Prefer fast deterministic tests over broad flaky integration tests.
|
|
86
|
-
- Keep fixtures small and representative.
|
|
87
|
-
- Assert on stable output fragments, not volatile wording.
|
|
88
|
-
{{#has_tests}}
|
|
89
|
-
- Verify canonical test command: `{{commands.test}}`.
|
|
90
|
-
- Add regression tests for every bug fix in rendering or detection.
|
|
91
|
-
{{/has_tests}}
|
|
92
|
-
{{^has_tests}}
|
|
93
|
-
- If no test script exists, document manual verification steps.
|
|
94
|
-
{{/has_tests}}
|
|
95
|
-
|
|
96
|
-
{{#is_unknown_generic}}
|
|
97
|
-
## Generic project execution playbook
|
|
98
|
-
|
|
99
|
-
### Scope and boundaries
|
|
100
|
-
- Prefer minimal, reversible changes over broad refactors.
|
|
101
|
-
- Keep runtime and package-manager assumptions explicit.
|
|
102
|
-
- Reuse existing folder conventions before introducing new structure.
|
|
103
|
-
- Document any intentional tradeoff in the final handoff notes.
|
|
104
|
-
- Keep public behavior stable unless the task explicitly requires change.
|
|
105
|
-
|
|
106
|
-
### Baseline repository map
|
|
107
|
-
- Confirm current source folders (`src`, `lib`, `app`, `scripts`) before editing.
|
|
108
|
-
- Confirm test locations (`tests`, `__tests__`, `spec`) before adding files.
|
|
109
|
-
- Confirm config entrypoints (`tsconfig`, linter, formatter, CI workflow) before updates.
|
|
110
|
-
- Keep generated output deterministic across Windows and Linux runners.
|
|
111
|
-
- Confirm output path and file ownership rules before writing AGENTS.md.
|
|
112
|
-
|
|
113
|
-
### Change workflow
|
|
114
|
-
1. Reproduce the issue with one deterministic command.
|
|
115
|
-
2. Isolate the minimal layer to update (detect, render, validate, or cli).
|
|
116
|
-
3. Add or update targeted tests before broad regression checks.
|
|
117
|
-
4. Report changed files, commands run, and residual risks.
|
|
118
|
-
|
|
119
|
-
### Validation when canonical scripts are missing
|
|
120
|
-
- Run every available canonical command and capture output.
|
|
121
|
-
{{^has_dev}}
|
|
122
|
-
- If no dev script exists, describe the manual startup path in PR notes.
|
|
123
|
-
{{/has_dev}}
|
|
124
|
-
{{^has_build}}
|
|
125
|
-
- If no build script exists, validate TypeScript or bundler config syntax directly.
|
|
126
|
-
{{/has_build}}
|
|
127
|
-
{{^has_tests}}
|
|
128
|
-
- If no test script exists, add manual verification steps with deterministic inputs.
|
|
129
|
-
{{/has_tests}}
|
|
130
|
-
{{^has_lint}}
|
|
131
|
-
- If no lint script exists, document style checks applied during review.
|
|
132
|
-
{{/has_lint}}
|
|
133
|
-
{{^has_format}}
|
|
134
|
-
- If no format script exists, keep formatting changes isolated and minimal.
|
|
135
|
-
{{/has_format}}
|
|
136
|
-
|
|
137
|
-
### Generic PR checklist
|
|
138
|
-
- [ ] Scope and files changed match the original request.
|
|
139
|
-
- [ ] Validation evidence is attached for each claimed behavior change.
|
|
140
|
-
- [ ] Backward compatibility assumptions are explicit.
|
|
141
|
-
- [ ] Deterministic output is preserved for the same inputs.
|
|
142
|
-
- [ ] Follow-up tasks are listed when work is intentionally deferred.
|
|
143
|
-
|
|
144
|
-
### Handoff notes to include (generic repos)
|
|
145
|
-
- What changed: list files and why.
|
|
146
|
-
- How to validate: exact commands and expected outputs.
|
|
147
|
-
- Risks: what could break and how to detect it fast.
|
|
148
|
-
- Rollback: safest revert path if needed.
|
|
149
|
-
|
|
150
|
-
### Updating scripts and docs safely
|
|
151
|
-
- If a `package.json` script changes, update "Comandos canónicos".
|
|
152
|
-
- For build/test/lint edits, include before/after command output.
|
|
153
|
-
- Keep CI changes minimal and cross-platform.
|
|
154
|
-
- Prefer reversible config updates scoped to the task.
|
|
155
|
-
|
|
156
|
-
### Pre-merge sanity checks
|
|
157
|
-
- Preview headings and checklist readability.
|
|
158
|
-
- Re-run command examples on a clean clone.
|
|
159
|
-
- Confirm profile output stays inside limits.
|
|
160
|
-
- Confirm no placeholder content leaked.
|
|
161
|
-
{{/is_unknown_generic}}
|
|
162
|
-
|
|
163
|
-
## Do / Don't
|
|
164
|
-
### Do
|
|
165
|
-
- Do preserve existing behavior unless a change is requested.
|
|
166
|
-
- Do keep commits minimal and reviewable.
|
|
167
|
-
- Do fail fast on invalid user input.
|
|
84
|
+
## Testing strategy
|
|
85
|
+
- Prefer fast deterministic tests over broad flaky integration tests.
|
|
86
|
+
- Keep fixtures small and representative.
|
|
87
|
+
- Assert on stable output fragments, not volatile wording.
|
|
88
|
+
{{#has_tests}}
|
|
89
|
+
- Verify canonical test command: `{{commands.test}}`.
|
|
90
|
+
- Add regression tests for every bug fix in rendering or detection.
|
|
91
|
+
{{/has_tests}}
|
|
92
|
+
{{^has_tests}}
|
|
93
|
+
- If no test script exists, document manual verification steps.
|
|
94
|
+
{{/has_tests}}
|
|
95
|
+
|
|
96
|
+
{{#is_unknown_generic}}
|
|
97
|
+
## Generic project execution playbook
|
|
98
|
+
|
|
99
|
+
### Scope and boundaries
|
|
100
|
+
- Prefer minimal, reversible changes over broad refactors.
|
|
101
|
+
- Keep runtime and package-manager assumptions explicit.
|
|
102
|
+
- Reuse existing folder conventions before introducing new structure.
|
|
103
|
+
- Document any intentional tradeoff in the final handoff notes.
|
|
104
|
+
- Keep public behavior stable unless the task explicitly requires change.
|
|
105
|
+
|
|
106
|
+
### Baseline repository map
|
|
107
|
+
- Confirm current source folders (`src`, `lib`, `app`, `scripts`) before editing.
|
|
108
|
+
- Confirm test locations (`tests`, `__tests__`, `spec`) before adding files.
|
|
109
|
+
- Confirm config entrypoints (`tsconfig`, linter, formatter, CI workflow) before updates.
|
|
110
|
+
- Keep generated output deterministic across Windows and Linux runners.
|
|
111
|
+
- Confirm output path and file ownership rules before writing AGENTS.md.
|
|
112
|
+
|
|
113
|
+
### Change workflow
|
|
114
|
+
1. Reproduce the issue with one deterministic command.
|
|
115
|
+
2. Isolate the minimal layer to update (detect, render, validate, or cli).
|
|
116
|
+
3. Add or update targeted tests before broad regression checks.
|
|
117
|
+
4. Report changed files, commands run, and residual risks.
|
|
118
|
+
|
|
119
|
+
### Validation when canonical scripts are missing
|
|
120
|
+
- Run every available canonical command and capture output.
|
|
121
|
+
{{^has_dev}}
|
|
122
|
+
- If no dev script exists, describe the manual startup path in PR notes.
|
|
123
|
+
{{/has_dev}}
|
|
124
|
+
{{^has_build}}
|
|
125
|
+
- If no build script exists, validate TypeScript or bundler config syntax directly.
|
|
126
|
+
{{/has_build}}
|
|
127
|
+
{{^has_tests}}
|
|
128
|
+
- If no test script exists, add manual verification steps with deterministic inputs.
|
|
129
|
+
{{/has_tests}}
|
|
130
|
+
{{^has_lint}}
|
|
131
|
+
- If no lint script exists, document style checks applied during review.
|
|
132
|
+
{{/has_lint}}
|
|
133
|
+
{{^has_format}}
|
|
134
|
+
- If no format script exists, keep formatting changes isolated and minimal.
|
|
135
|
+
{{/has_format}}
|
|
136
|
+
|
|
137
|
+
### Generic PR checklist
|
|
138
|
+
- [ ] Scope and files changed match the original request.
|
|
139
|
+
- [ ] Validation evidence is attached for each claimed behavior change.
|
|
140
|
+
- [ ] Backward compatibility assumptions are explicit.
|
|
141
|
+
- [ ] Deterministic output is preserved for the same inputs.
|
|
142
|
+
- [ ] Follow-up tasks are listed when work is intentionally deferred.
|
|
143
|
+
|
|
144
|
+
### Handoff notes to include (generic repos)
|
|
145
|
+
- What changed: list files and why.
|
|
146
|
+
- How to validate: exact commands and expected outputs.
|
|
147
|
+
- Risks: what could break and how to detect it fast.
|
|
148
|
+
- Rollback: safest revert path if needed.
|
|
149
|
+
|
|
150
|
+
### Updating scripts and docs safely
|
|
151
|
+
- If a `package.json` script changes, update "Comandos canónicos".
|
|
152
|
+
- For build/test/lint edits, include before/after command output.
|
|
153
|
+
- Keep CI changes minimal and cross-platform.
|
|
154
|
+
- Prefer reversible config updates scoped to the task.
|
|
155
|
+
|
|
156
|
+
### Pre-merge sanity checks
|
|
157
|
+
- Preview headings and checklist readability.
|
|
158
|
+
- Re-run command examples on a clean clone.
|
|
159
|
+
- Confirm profile output stays inside limits.
|
|
160
|
+
- Confirm no placeholder content leaked.
|
|
161
|
+
{{/is_unknown_generic}}
|
|
162
|
+
|
|
163
|
+
## Do / Don't
|
|
164
|
+
### Do
|
|
165
|
+
- Do preserve existing behavior unless a change is requested.
|
|
166
|
+
- Do keep commits minimal and reviewable.
|
|
167
|
+
- Do fail fast on invalid user input.
|
|
168
168
|
- Do prefer explicit conditions over hidden heuristics.
|
|
169
169
|
|
|
170
170
|
### Don't
|
|
@@ -264,33 +264,33 @@ Antes de considerar una tarea completa:
|
|
|
264
264
|
- Suspected layer: detect/render/validate/cli
|
|
265
265
|
- Reproduction fixture: path used
|
|
266
266
|
|
|
267
|
-
### Final release gate
|
|
268
|
-
- Confirm profile-specific limits pass validator.
|
|
269
|
-
- Confirm placeholder checks remain strict.
|
|
270
|
-
- Confirm default compact output is unchanged.
|
|
271
|
-
- Confirm docs match implemented flags.
|
|
272
|
-
- Confirm test suite is green in CI mode.
|
|
273
|
-
- Confirm no unrelated files changed.
|
|
274
|
-
- Confirm generated markdown still starts with # AGENTS.
|
|
275
|
-
- Confirm profile ordering full > standard > compact.
|
|
276
|
-
|
|
277
|
-
{{#is_unknown_generic}}
|
|
278
|
-
## Generic full-profile operations guide
|
|
279
|
-
|
|
280
|
-
### CI and branching policy
|
|
281
|
-
- Require build, lint, and tests (or documented manual checks) before merge.
|
|
282
|
-
- Keep branch names tied to one task or issue identifier.
|
|
283
|
-
- Add rollback notes when behavior or templates change.
|
|
284
|
-
|
|
285
|
-
### Extra verification for generic repos
|
|
286
|
-
- Verify command paths for npm/yarn/pnpm when scripts are touched.
|
|
287
|
-
- Capture before/after output for affected profile sections.
|
|
288
|
-
- Include one failure-path test for validator or CLI behavior changes.
|
|
289
|
-
{{/is_unknown_generic}}
|
|
290
|
-
{{/isFull}}
|
|
291
|
-
|
|
292
|
-
## Seguridad
|
|
293
|
-
{{security_notes}}
|
|
267
|
+
### Final release gate
|
|
268
|
+
- Confirm profile-specific limits pass validator.
|
|
269
|
+
- Confirm placeholder checks remain strict.
|
|
270
|
+
- Confirm default compact output is unchanged.
|
|
271
|
+
- Confirm docs match implemented flags.
|
|
272
|
+
- Confirm test suite is green in CI mode.
|
|
273
|
+
- Confirm no unrelated files changed.
|
|
274
|
+
- Confirm generated markdown still starts with # AGENTS.
|
|
275
|
+
- Confirm profile ordering full > standard > compact.
|
|
276
|
+
|
|
277
|
+
{{#is_unknown_generic}}
|
|
278
|
+
## Generic full-profile operations guide
|
|
279
|
+
|
|
280
|
+
### CI and branching policy
|
|
281
|
+
- Require build, lint, and tests (or documented manual checks) before merge.
|
|
282
|
+
- Keep branch names tied to one task or issue identifier.
|
|
283
|
+
- Add rollback notes when behavior or templates change.
|
|
284
|
+
|
|
285
|
+
### Extra verification for generic repos
|
|
286
|
+
- Verify command paths for npm/yarn/pnpm when scripts are touched.
|
|
287
|
+
- Capture before/after output for affected profile sections.
|
|
288
|
+
- Include one failure-path test for validator or CLI behavior changes.
|
|
289
|
+
{{/is_unknown_generic}}
|
|
290
|
+
{{/isFull}}
|
|
291
|
+
|
|
292
|
+
## Seguridad
|
|
293
|
+
{{security_notes}}
|
|
294
294
|
|
|
295
295
|
---
|
|
296
|
-
*Generated by agents-md
|
|
296
|
+
*Generated by agents-md v{{generator_version}}*
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,EAAE,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB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@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,wBAAgB,iBAAiB,IAAI,MAAM,CAO1C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Version utilities
|
|
3
|
+
* Single source of truth: root package.json
|
|
4
|
+
*/
|
|
5
|
+
import fs from 'fs';
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
const FALLBACK_VERSION = '0.0.0';
|
|
9
|
+
let cachedVersion = null;
|
|
10
|
+
export function getPackageVersion() {
|
|
11
|
+
if (cachedVersion) {
|
|
12
|
+
return cachedVersion;
|
|
13
|
+
}
|
|
14
|
+
cachedVersion = readPackageVersion();
|
|
15
|
+
return cachedVersion;
|
|
16
|
+
}
|
|
17
|
+
function readPackageVersion() {
|
|
18
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
19
|
+
const __dirname = path.dirname(__filename);
|
|
20
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
21
|
+
try {
|
|
22
|
+
const raw = fs.readFileSync(packageJsonPath, 'utf-8');
|
|
23
|
+
const parsed = JSON.parse(raw);
|
|
24
|
+
if (typeof parsed.version === 'string' && parsed.version.trim().length > 0) {
|
|
25
|
+
return parsed.version.trim();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
// Keep fallback for environments where package.json cannot be resolved.
|
|
30
|
+
}
|
|
31
|
+
return FALLBACK_VERSION;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AACjC,IAAI,aAAa,GAAkB,IAAI,CAAC;AAExC,MAAM,UAAU,iBAAiB;IAC/B,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,aAAa,GAAG,kBAAkB,EAAE,CAAC;IACrC,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,SAAS,kBAAkB;IACzB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAE5E,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA0B,CAAC;QAExD,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3E,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,wEAAwE;IAC1E,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebasgc0399/agents-md",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/sebasgc0399/agents-md.git"
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/sebasgc0399/agents-md#readme",
|
|
12
12
|
"description": "Generate AGENTS.md files for AI coding agents",
|
|
13
|
-
"type": "module",
|
|
14
|
-
"bin": {
|
|
15
|
-
"agents-md": "dist/cli.js"
|
|
16
|
-
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"bin": {
|
|
15
|
+
"agents-md": "dist/cli.js"
|
|
16
|
+
},
|
|
17
17
|
"main": "./dist/index.js",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"exports": {
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
"benchmark:p1": "node scripts/benchmark/p1.mjs",
|
|
29
29
|
"benchmark:p1:update": "node scripts/benchmark/p1.mjs --update-baseline",
|
|
30
30
|
"benchmark:p2": "node scripts/benchmark/p2.mjs",
|
|
31
|
+
"coverage:p0:report": "node scripts/coverage/p0-report.mjs",
|
|
32
|
+
"coverage:p1:gate": "node scripts/coverage-p1-gate.mjs",
|
|
31
33
|
"copy-templates": "node -e \"require('fs').cpSync('src/templates', 'dist/templates', {recursive: true})\"",
|
|
32
34
|
"dev": "tsc --watch",
|
|
33
35
|
"start": "node dist/cli.js",
|