Add a one-shot map command with bounded defaults and a one-screen summary
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reading the existing analyze command and the Linguist-compatible dircue --json path, then review the map document and golden-corpus work referenced by #74 and #75. The change is done when dircue map produces deterministic schema-valid JSON, a bounded one-screen summary, and visible partial-coverage reasons with documented budget and exit-status behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Why
The product is "one-shot profiling": a pipeline receiving many heterogeneous repositories runs one command and gets the whole map with predictable cost. Today that takes knowing roughly ten flags (analyze all --discovery --declarations --environments --projects --metrics --formats --availability --registries …). The results come back in separate sections with separate populations, and the human output is a dump:
analyze declarationson astral-sh/uv prints 6,210 lines.analyze allon Jellyfin prints ~100 lines, most of themnuget\t<dir>.analyze environmentsrepeats "applicability follows its recorded state and condition" on every line.
Proposal
dircue map [PATH]. The name is a proposal. It should:
- Run every cheap native observer by default: languages, discovery, components and edges, environments, deployables, declared interfaces, capabilities, formats/non-source identification, availability. Use a documented work budget (files, bytes, wall time). When the budget is hit, return
partialwith reasons rather than silently truncating. Expensive observers stay opt-in: the structural worker, and full-content metrics until #73 lands. - Accept deeper-tool results with
--attach syft=sbom.json --attach noir=endpoints.json --attach sarif=analyzer.sarif …(#77), producing one map with the coverage ledger (#78). - Write the map document (#74) to stdout as JSON.
--summary(the default on a TTY) prints a one-screen summary:- what it is: the content mix, with roles;
- components by ecosystem, and the graph shape;
- deployables and what they build/run;
- interfaces;
- capabilities;
- suggested deeper analyzers and their prerequisites (#79);
- coverage and unknowns, with the top reasons.
- Keep the Linguist-compatible
dircue --jsonpath untouched.
Acceptance
- On every golden-corpus entry (#75), the summary fits in about 40 lines and names the top unknowns.
- JSON validates against the map schema, and is deterministic and portable.
- Published time/RSS budgets per corpus entry. The kernel from Git has a stated target.
-
--budget-style overrides are explicit, and a hit budget is visible in the output and the exit status contract. Exit remains 0 for partial coverage; document how to detect it. -
capabilities --guideleads with this command.
Related: #40 (CLI ergonomics). Epic: #81.
- Lingua principale
- Go
- Stelle
- 0
- Fork
- 0
- Merge medio
- 4h 47m
- PR unite (30g)
- 52
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di war-and-code/dircue
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
war-and-code/dircue#200 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement follow-up
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
war-and-code/dircue#201 ·
I maintainer di solito rispondono entro 1 giorno
-
follow-up
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
war-and-code/dircue#179 ·
I maintainer di solito rispondono entro 1 giorno
-
follow-up
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
war-and-code/dircue#178 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement follow-up
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
war-and-code/dircue#172 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di war-and-code/dircue
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
-
✨ Propose the missing gate after three same-class findings instead of filing a fourthForse già presa @hivecommons-hive l’ha presa oggi. Apertaenhancement help wanted hive/claimed-by-scanner stage/040-covered-by-pr
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hivecommons/hive#13428 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
🕷️ bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
sysadminsmedia/homebox#1805 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100