commit.scopes
Každý scope, který historie commitů tohoto repozitáře používá, jak často, a adresáře, o kterých se pro každý píše — naučeno z historie, nikoli deklarováno v tabulce, takže subsystém commitnutý dnes je ve slovníku dnes a ten, kterého se nikdo nedotkl, sám klesne dolů.
Každý scope, který historie commitů tohoto repozitáře používá, jak často, a adresáře, o kterých se pro každý píše — naučeno z historie, nikoli deklarováno v tabulce, takže subsystém commitnutý dnes je ve slovníku dnes a ten, kterého se nikdo nedotkl, sám klesne dolů.
- query
- behaviorally_verified
- module commit
- #commit
- #git
- #introspection
Zpřístupnění
Kde je tato jedna definice dosažitelná. Absence je explicitní: povrch, který není uveden, ji nenese.
| povrch | jako |
|---|---|
| MCP | nástroj majordomus_commit_scopes zdroj majordomus://commit/scopes |
| HTTP | GET /api/v1/commit/scopes operationId commit.scopes |
| příkazová řádka | majordomus commit scopes |
Schémata
Kanonický vstup a výstup z typů Rustu; schéma nástroje MCP a parametry a odpovědi OpenAPI se odvozují z nich.
vstup · Prázdné
Žádné vlastnosti: schopnost nebere žádný vstup.
JSON Schema
{
"additionalProperties": false,
"description": "No input.",
"title": "Empty",
"type": "object"
}výstup · ScopesReport
use majordomus_cli::capability::builtin::commit::ScopesReport;
use majordomus_cli::commit::ScopeVocabulary;
let r = ScopesReport { vocabulary: ScopeVocabulary::default(), sample: 1500 };
assert_eq!(r.sample, majordomus_cli::commit::scopes::SAMPLE);| vlastnost | typ | povinné | popis |
|---|---|---|---|
| vzorek | integer | ano | Kolik commitů zpět se slovník učí. |
| slovník | reference | ano | Každý rozsah, který historie používá, nejpoužívanější první, s adresáři, o nichž se používá. |
JSON Schema
{
"$defs": {
"ScopeUse": {
"description": "One scope the history uses, and how much.\n```\nuse majordomus_cli::commit::scopes::ScopeUse;\nlet u = ScopeUse { scope: \"commit\".into(), commits: 40, directories: vec![\"src/commit\".into()] };\nassert_eq!(u.commits, 40);\n```",
"properties": {
"commits": {
"description": "How many of the sampled commits used it.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"directories": {
"description": "The directory prefixes those commits touched, most often first, at most five.",
"items": {
"type": "string"
},
"type": "array"
},
"scope": {
"description": "The scope word, as commits spell it.",
"type": "string"
}
},
"required": [
"scope",
"commits",
"directories"
],
"type": "object"
},
"ScopeVocabulary": {
"description": "The vocabulary as observed, with what was observed.\n```\nuse majordomus_cli::commit::ScopeVocabulary;\n// an empty vocabulary knows nothing and says so, rather than guessing\nlet v = ScopeVocabulary::default();\nassert!(!v.knows(\"anything\"));\nassert!(v.words().is_empty());\n```",
"properties": {
"sampled": {
"description": "How many commits were read to learn it.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"scopes": {
"description": "Every scope, by how often it is used, then by name. The order is the answer to\n\"which scopes does this repository use\", so it is the order a person reads.",
"items": {
"$ref": "#/$defs/ScopeUse"
},
"type": "array"
},
"unavailable": {
"description": "Set when git could not be asked; the vocabulary is then empty rather than wrong.",
"type": [
"string",
"null"
]
}
},
"required": [
"scopes",
"sampled"
],
"type": "object"
}
},
"description": "The vocabulary, with the policy that reads it.\n```\nuse majordomus_cli::capability::builtin::commit::ScopesReport;\nuse majordomus_cli::commit::ScopeVocabulary;\nlet r = ScopesReport { vocabulary: ScopeVocabulary::default(), sample: 1500 };\nassert_eq!(r.sample, majordomus_cli::commit::scopes::SAMPLE);\n```",
"properties": {
"sample": {
"description": "How many commits back the vocabulary is learned from.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"vocabulary": {
"$ref": "#/$defs/ScopeVocabulary",
"description": "Every scope the history uses, most used first, with the directories it is used about."
}
},
"required": [
"vocabulary",
"sample"
],
"title": "ScopesReport",
"type": "object"
}Politiky
- benchmark
- povinné — cíl na každém transportu, který expozice deklaruje; případy jsou ty ze vstupního typu
- cache
- vypnuto — každé volání spustí handler
Cíle benchmarku
Odvozeno z registru pro tento repozitář: jeden požadavek na transport a případy, které poskytuje typ vstupu. Celá matice je na stránce měření výkonu.