Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
{
"extensions": [".ts", ".tsx", ".js", ".jsx", ".mjs"],
"exclude": ["**/*.test.*", "**/*.spec.*", "**/node_modules/**", "**/dist/**", "**/generated/**"],
"aliases": [{ "prefix": "@/", "target": "src/" }],
"layers": [
{ "name": "domain", "path": "src/domain", "mayImport": ["domain"] },
{ "name": "application", "path": "src/application", "mayImport": ["domain", "application"] },
{ "name": "infrastructure", "path": "src/infrastructure", "mayImport": ["domain", "application", "infrastructure"] },
{ "name": "ui", "path": "src/ui", "mayImport": ["application", "domain", "ui"] }
],
"forbidden": [
{ "from": "src/ui/**", "to": "src/infrastructure/**", "reason": "UI must not reach persistence directly" },
{ "from": "src/domain/**", "to": "src/ui/**", "reason": "domain must not know about UI" },
{ "from": "src/domain/**", "to": "src/application/**", "reason": "domain must not depend on use cases" }
],
"forbiddenPackages": [
{ "pattern": "moment", "reason": "use the project date utility" },
{ "pattern": "lodash", "reason": "use native helpers or the local utils module" }
],
"budgets": {
"maxFileLines": 400,
"maxFunctionLines": 60,
"maxParams": 5,
"maxNesting": 4
},
"cycles": true,
"failOn": ["layer-violation", "forbidden-import", "forbidden-package", "cycle"],
"scope": {
"allowed": ["src/**", "tests/**"],
"forbidden": ["src/auth/**", "package.json", "pnpm-lock.yaml", "**/*.sql"]
}
}