@ancleto/spec 0.6.31 → 0.6.32
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 +1 -1
- package/package.json +1 -1
- package/src/cli/index.js +22 -2
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ ancleto init # Crea .ancletorc, aspec/, AGENTS.md y PRODUCT.md
|
|
|
209
209
|
### 2. Descubrir contexto técnico
|
|
210
210
|
|
|
211
211
|
```bash
|
|
212
|
-
ancleto discovery --check # Estado del technical seed (READY / STALE)
|
|
212
|
+
ancleto discovery --check # Estado del technical seed (READY / STALE / PARTIAL / MISSING) + config
|
|
213
213
|
ancleto discovery # Genera .discovery-map.json y empaqueta el repo
|
|
214
214
|
```
|
|
215
215
|
|
package/package.json
CHANGED
package/src/cli/index.js
CHANGED
|
@@ -1073,7 +1073,9 @@ function flagValue(args, flag) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
async function checkDiscovery() {
|
|
1076
|
-
const
|
|
1076
|
+
const config = await loadDiscoveryConfig()
|
|
1077
|
+
const { outputDir } = config
|
|
1078
|
+
const tier = readProjectTier(process.cwd())
|
|
1077
1079
|
const present = await presentDocs(outputDir)
|
|
1078
1080
|
let state, action, message, missingDocs
|
|
1079
1081
|
if (present.length === 0) {
|
|
@@ -1116,7 +1118,12 @@ async function checkDiscovery() {
|
|
|
1116
1118
|
state,
|
|
1117
1119
|
recommendedAction: action,
|
|
1118
1120
|
message,
|
|
1119
|
-
missingDocs
|
|
1121
|
+
missingDocs,
|
|
1122
|
+
config: {
|
|
1123
|
+
outputDir,
|
|
1124
|
+
exclude: config.exclude,
|
|
1125
|
+
tier
|
|
1126
|
+
}
|
|
1120
1127
|
}, null, 2))
|
|
1121
1128
|
}
|
|
1122
1129
|
|
|
@@ -1175,6 +1182,19 @@ async function discovery(flags) {
|
|
|
1175
1182
|
await checkDiscovery()
|
|
1176
1183
|
return
|
|
1177
1184
|
}
|
|
1185
|
+
if (flags.includes('--help') || flags.includes('-h')) {
|
|
1186
|
+
console.log(`ancleto discovery [--compress] [--include G] [--ignore G] [--token-budget N]
|
|
1187
|
+
Genera el pack Repomix del repo y guarda el estado del seed.
|
|
1188
|
+
|
|
1189
|
+
--check Estado del seed en JSON (READY/STALE/PARTIAL/MISSING) + config
|
|
1190
|
+
--compress Pack comprimido (tree-sitter)
|
|
1191
|
+
--include <glob> Incluir solo paths que matcheen
|
|
1192
|
+
--ignore <glob> Excluir paths (ademas de los de .ancletorc)
|
|
1193
|
+
--token-budget N Presupuesto de tokens del tier
|
|
1194
|
+
|
|
1195
|
+
El seed en si lo genera la skill ancleto-technical-discovery a partir del pack.`)
|
|
1196
|
+
return
|
|
1197
|
+
}
|
|
1178
1198
|
await packDiscovery(flags)
|
|
1179
1199
|
}
|
|
1180
1200
|
|