@event4u/agent-config 9.10.0 → 9.12.0
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/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +111 -0
- package/README.md +20 -16
- package/agents/templates/.ai-council.yml.example +481 -0
- package/agents/templates/.ai-video.xml.example +247 -0
- package/dist/agent-src/commands/fix/ci.md +29 -0
- package/dist/agent-src/commands/pr/create.md +60 -0
- package/dist/agent-src/contexts/authority/kernel-rule-edits.md +18 -2
- package/dist/agent-src/rules/design-fidelity.md +2 -2
- package/dist/agent-src/skills/ai-code-blindspots/SKILL.md +1 -0
- package/dist/agent-src/skills/design-intelligence/SKILL.md +27 -1
- package/dist/agent-src/skills/design-intelligence/data/font-pairings-reference.csv +74 -74
- package/dist/agent-src/skills/design-intelligence/data/manifest.json +2 -0
- package/dist/agent-src/skills/design-tokens/scripts/tokens.ts +0 -7
- package/dist/agent-src/skills/existing-ui-audit/SKILL.md +15 -2
- package/dist/agent-src/skills/fe-design/SKILL.md +10 -0
- package/dist/agent-src/skills/typography-system/SKILL.md +55 -11
- package/dist/agent-src/skills/ui-apply-generic/SKILL.md +180 -0
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/apply.ts +34 -30
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/design.ts +88 -33
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/polish.ts +23 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/review.ts +24 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/stack_bundles.ts +332 -0
- package/dist/agent-src/templates/scripts/work_engine/stack/detect.ts +449 -11
- package/dist/agent-src/templates/scripts/work_engine/state.ts +21 -4
- package/dist/cli/initRouting.js +74 -11
- package/dist/cli/initRouting.js.map +1 -1
- package/dist/cli/main.js +14 -3
- package/dist/cli/main.js.map +1 -1
- package/dist/cli-delegate/chunk-523HCFYO.js +90 -0
- package/dist/cli-delegate/chunk-736JCWLM.js +1104 -0
- package/dist/cli-delegate/chunk-7HQ52DHU.js +74 -0
- package/dist/cli-delegate/chunk-A3HJ6NTI.js +1084 -0
- package/dist/cli-delegate/chunk-EJYIGZ3T.js +125 -0
- package/dist/cli-delegate/chunk-FTAISGDQ.js +117 -0
- package/dist/cli-delegate/chunk-GME3Q44L.js +82 -0
- package/dist/cli-delegate/chunk-GRRPEPRN.js +336 -0
- package/dist/cli-delegate/chunk-HJ6DAJHR.js +502 -0
- package/dist/cli-delegate/chunk-HYWSRNUX.js +179 -0
- package/dist/cli-delegate/chunk-J55WI3RR.js +47 -0
- package/dist/cli-delegate/chunk-MCJYCQPF.js +35 -0
- package/dist/cli-delegate/chunk-NDJLNC6Q.js +169 -0
- package/dist/cli-delegate/chunk-OMIVVCG2.js +26 -0
- package/dist/cli-delegate/chunk-OY53J6II.js +7336 -0
- package/dist/cli-delegate/chunk-QFKQLQ7X.js +10835 -0
- package/dist/cli-delegate/chunk-TEGJU2JX.js +6908 -0
- package/dist/cli-delegate/chunk-TJIAM5FW.js +133 -0
- package/dist/cli-delegate/chunk-XX6TOPD7.js +715 -0
- package/dist/cli-delegate/cmd_analyze_session.js +294 -0
- package/dist/cli-delegate/cmd_conformance.js +643 -0
- package/dist/cli-delegate/cmd_converge.js +326 -0
- package/dist/cli-delegate/cmd_doctor.js +142 -0
- package/dist/cli-delegate/cmd_explain.js +2576 -0
- package/dist/cli-delegate/cmd_export.js +298 -0
- package/dist/cli-delegate/cmd_fleet.js +333 -0
- package/dist/cli-delegate/cmd_memory_get.js +3878 -0
- package/dist/cli-delegate/cmd_migrate.js +11 -0
- package/dist/cli-delegate/cmd_preflight.js +153 -0
- package/dist/cli-delegate/cmd_prune.js +446 -0
- package/dist/cli-delegate/cmd_refresh.js +28 -0
- package/dist/cli-delegate/cmd_settings_check.js +574 -0
- package/dist/cli-delegate/cmd_settings_migrate.js +225 -0
- package/dist/cli-delegate/cmd_sync.js +266 -0
- package/dist/cli-delegate/cmd_uninstall.js +657 -0
- package/dist/cli-delegate/cmd_update.js +425 -0
- package/dist/cli-delegate/cmd_upgrade.js +444 -0
- package/dist/cli-delegate/cmd_validate.js +307 -0
- package/dist/cli-delegate/cmd_versions.js +370 -0
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +45 -16
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +3 -3
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +13 -7
- package/dist/discovery/trust-report.md +2 -2
- package/dist/discovery/workspaces.json +6 -4
- package/dist/install/emit_host_rules_cli.js +2 -1
- package/dist/install/emit_host_rules_cli.js.map +1 -1
- package/dist/install/install.mjs +634 -409
- package/dist/install/ruleInScope.js +123 -0
- package/dist/install/ruleInScope.js.map +1 -0
- package/dist/install/rule_scope.js +7 -3
- package/dist/install/rule_scope.js.map +1 -1
- package/dist/install/toolDetection.js +40 -12
- package/dist/install/toolDetection.js.map +1 -1
- package/dist/install/wizard-plan.js +12 -3
- package/dist/install/wizard-plan.js.map +1 -1
- package/dist/mcp/registry-manifest.json +3 -3
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +1553 -2728
- package/dist/router.json +1 -1
- package/dist/scripts/condense.js +6 -22
- package/dist/scripts/condense.js.map +1 -1
- package/docs/guidelines/design-fidelity-mechanics.md +14 -0
- package/package.json +4 -2
- package/src/agent-src/templates/scripts/work_engine/directives/ui/apply.ts +34 -30
- package/src/agent-src/templates/scripts/work_engine/directives/ui/design.ts +88 -33
- package/src/agent-src/templates/scripts/work_engine/directives/ui/polish.ts +23 -0
- package/src/agent-src/templates/scripts/work_engine/directives/ui/review.ts +24 -1
- package/src/agent-src/templates/scripts/work_engine/directives/ui/stack_bundles.ts +332 -0
- package/src/agent-src/templates/scripts/work_engine/stack/detect.ts +449 -11
- package/src/agent-src/templates/scripts/work_engine/state.ts +21 -4
- package/src/config/discovery/packs.yml +7 -0
- package/src/config/evaluator-budgets.json +1 -1
- package/src/config/pack-size-budget.json +27 -0
- package/src/install/emit_host_rules_cli.ts +2 -1
- package/src/install/ruleInScope.ts +133 -0
- package/src/install/rule_scope.ts +7 -3
- package/src/install/toolDetection.ts +39 -8
- package/src/install/wizard-plan.ts +13 -3
- package/src/scripts/_cli/cmd_conformance.ts +2 -1
- package/src/scripts/_cli/cmd_converge.ts +2 -1
- package/src/scripts/_cli/cmd_doctor.ts +214 -13
- package/src/scripts/_cli/cmd_export.ts +2 -1
- package/src/scripts/_cli/cmd_fleet.ts +2 -1
- package/src/scripts/_cli/cmd_migrate.ts +2 -1
- package/src/scripts/_cli/cmd_preflight.ts +2 -1
- package/src/scripts/_cli/cmd_refresh.ts +2 -1
- package/src/scripts/_cli/cmd_update.ts +2 -1
- package/src/scripts/_cli/cmd_upgrade.ts +2 -1
- package/src/scripts/_cli/cmd_versions.ts +2 -1
- package/src/scripts/_cli/detection_report.ts +480 -0
- package/src/scripts/_dispatch.bash +52 -14
- package/src/scripts/_lib/changelog_eras.ts +103 -9
- package/src/scripts/_lib/environment_detector.ts +441 -0
- package/src/scripts/_lib/global_deploy_inventory.ts +38 -2
- package/src/scripts/_lib/package_root.ts +72 -0
- package/src/scripts/ai_council/config.ts +15 -7
- package/src/scripts/ai_council/modes.ts +68 -2
- package/src/scripts/ai_council/transport_resolver.ts +331 -0
- package/src/scripts/check_bundle_path_leakage.ts +10 -4
- package/src/scripts/check_dependency_floors.ts +153 -0
- package/src/scripts/check_installer_import_purity.ts +295 -0
- package/src/scripts/check_pack_size.ts +188 -0
- package/src/scripts/condense.ts +7 -28
- package/src/scripts/council_cli.ts +6 -2
- package/src/scripts/evaluator_umbrella.sh +34 -1
- package/src/scripts/install-hooks.sh +36 -4
- package/src/scripts/install.ts +210 -5
- package/src/scripts/lint_eval_fixture_citations.ts +113 -0
- package/src/scripts/lint_ui_stack_bundles.ts +201 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
require_dist
|
|
4
|
+
} from "./chunk-OY53J6II.js";
|
|
5
|
+
import {
|
|
6
|
+
__toESM
|
|
7
|
+
} from "./chunk-J55WI3RR.js";
|
|
8
|
+
|
|
9
|
+
// src/install/rule_scope.ts
|
|
10
|
+
import * as fs2 from "node:fs";
|
|
11
|
+
import * as path from "node:path";
|
|
12
|
+
|
|
13
|
+
// src/install/ruleInScope.ts
|
|
14
|
+
var YAML = __toESM(require_dist(), 1);
|
|
15
|
+
import * as fs from "node:fs";
|
|
16
|
+
function parseYaml(text) {
|
|
17
|
+
try {
|
|
18
|
+
const data = YAML.parse(text, { version: "1.1" });
|
|
19
|
+
return data === void 0 ? null : data;
|
|
20
|
+
} catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function strip(s) {
|
|
25
|
+
return s.replace(/^\s+/u, "").replace(/\s+$/u, "");
|
|
26
|
+
}
|
|
27
|
+
function lstripNewlines(s) {
|
|
28
|
+
return s.replace(/^\n+/, "");
|
|
29
|
+
}
|
|
30
|
+
function parseFrontmatter(content) {
|
|
31
|
+
if (!content.startsWith("---")) {
|
|
32
|
+
return [{}, content];
|
|
33
|
+
}
|
|
34
|
+
const end = content.indexOf("\n---", 3);
|
|
35
|
+
if (end === -1) {
|
|
36
|
+
return [{}, content];
|
|
37
|
+
}
|
|
38
|
+
const raw = strip(content.slice(3, end));
|
|
39
|
+
const body = lstripNewlines(content.slice(end + 4));
|
|
40
|
+
let meta = parseYaml(raw);
|
|
41
|
+
if (meta === null || meta === void 0) {
|
|
42
|
+
meta = {};
|
|
43
|
+
}
|
|
44
|
+
if (typeof meta === "object" && meta !== null && !Array.isArray(meta)) {
|
|
45
|
+
return [meta, body];
|
|
46
|
+
}
|
|
47
|
+
return [{}, body];
|
|
48
|
+
}
|
|
49
|
+
function rule_in_scope(source_path, scope, pack_scope = null, role_scope = null) {
|
|
50
|
+
if (scope === null && pack_scope === null && role_scope === null) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
const [meta] = parseFrontmatter(fs.readFileSync(source_path, "utf-8"));
|
|
54
|
+
if (meta["type"] === "always" || meta["alwaysApply"] === true) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
const axis = (key, configured) => {
|
|
58
|
+
if (configured === null) {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
const values = Array.isArray(meta[key]) ? meta[key].map((w) => String(w)) : [];
|
|
62
|
+
if (values.length === 0) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
return values.some((v) => configured.includes(v));
|
|
66
|
+
};
|
|
67
|
+
return axis("workspaces", scope) && axis("packs", pack_scope) && axis("roles", role_scope);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// src/install/rule_scope.ts
|
|
71
|
+
var COMPAT_ALWAYS_EXCLUDED = ["source-of-truth.md"];
|
|
72
|
+
var LEGACY_ALL = { workspaces: null, packs: null };
|
|
73
|
+
function _list(value) {
|
|
74
|
+
if (Array.isArray(value) && value.length > 0) {
|
|
75
|
+
return value.map((v) => String(v));
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
function ruleScopeFromSettings(settings) {
|
|
80
|
+
const proj = settings["projection"];
|
|
81
|
+
if (typeof proj !== "object" || proj === null || Array.isArray(proj)) {
|
|
82
|
+
return LEGACY_ALL;
|
|
83
|
+
}
|
|
84
|
+
const p = proj;
|
|
85
|
+
return {
|
|
86
|
+
workspaces: _list(p["rule_workspaces"]),
|
|
87
|
+
packs: _list(p["rule_packs"]),
|
|
88
|
+
roles: _list(p["rule_roles"])
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function ruleFileArrives(sourcePath, scope) {
|
|
92
|
+
if (!sourcePath.endsWith(".md")) {
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
const basename2 = path.basename(sourcePath);
|
|
96
|
+
if (COMPAT_ALWAYS_EXCLUDED.includes(basename2)) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
return rule_in_scope(sourcePath, scope.workspaces, scope.packs, scope.roles ?? null);
|
|
100
|
+
}
|
|
101
|
+
function excludedRuleBasenames(rulesDir, scope) {
|
|
102
|
+
let entries;
|
|
103
|
+
try {
|
|
104
|
+
entries = fs2.readdirSync(rulesDir).sort();
|
|
105
|
+
} catch {
|
|
106
|
+
return [];
|
|
107
|
+
}
|
|
108
|
+
const out = [];
|
|
109
|
+
for (const name of entries) {
|
|
110
|
+
if (!name.endsWith(".md")) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const full = path.join(rulesDir, name);
|
|
114
|
+
try {
|
|
115
|
+
if (!fs2.statSync(full).isFile()) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
} catch {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (!ruleFileArrives(full, scope)) {
|
|
122
|
+
out.push(name);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return out;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
LEGACY_ALL,
|
|
130
|
+
ruleScopeFromSettings,
|
|
131
|
+
ruleFileArrives,
|
|
132
|
+
excludedRuleBasenames
|
|
133
|
+
};
|