@event4u/agent-config 9.10.0 → 9.11.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 +59 -0
- package/README.md +12 -15
- package/agents/templates/.ai-council.yml.example +481 -0
- package/agents/templates/.ai-video.xml.example +247 -0
- package/dist/agent-src/rules/design-fidelity.md +1 -1
- 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/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/apply.ts +30 -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 +20 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/review.ts +20 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/ui/stack_bundles.ts +179 -0
- package/dist/agent-src/templates/scripts/work_engine/stack/detect.ts +155 -4
- 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-4SV3XGFA.js +6910 -0
- package/dist/cli-delegate/chunk-736JCWLM.js +1104 -0
- package/dist/cli-delegate/chunk-7DSAMZFU.js +356 -0
- package/dist/cli-delegate/chunk-7HQ52DHU.js +74 -0
- package/dist/cli-delegate/chunk-BJGXZNPM.js +266 -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-IR7P7JWA.js +872 -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-RDGRHAAB.js +259 -0
- package/dist/cli-delegate/chunk-TFG57JJM.js +1969 -0
- package/dist/cli-delegate/chunk-XX6TOPD7.js +715 -0
- package/dist/cli-delegate/chunk-YMFO6FDN.js +10603 -0
- package/dist/cli-delegate/cmd_analyze_session.js +294 -0
- package/dist/cli-delegate/cmd_conformance.js +646 -0
- package/dist/cli-delegate/cmd_converge.js +326 -0
- package/dist/cli-delegate/cmd_doctor.js +144 -0
- package/dist/cli-delegate/cmd_explain.js +2508 -0
- package/dist/cli-delegate/cmd_export.js +296 -0
- package/dist/cli-delegate/cmd_fleet.js +332 -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 +270 -0
- package/dist/cli-delegate/cmd_prune.js +444 -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 +223 -0
- package/dist/cli-delegate/cmd_sync.js +264 -0
- package/dist/cli-delegate/cmd_uninstall.js +656 -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 +305 -0
- package/dist/cli-delegate/cmd_versions.js +370 -0
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +14 -7
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +2 -2
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +12 -7
- package/dist/discovery/trust-report.md +1 -1
- package/dist/discovery/workspaces.json +4 -3
- 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 +410 -378
- package/dist/install/rule_scope.js +5 -1
- 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 +2 -2
- package/dist/install/wizard-plan.js.map +1 -1
- package/dist/mcp/registry-manifest.json +1 -1
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +1614 -765
- package/dist/router.json +1 -1
- package/package.json +4 -2
- package/src/agent-src/templates/scripts/work_engine/directives/ui/apply.ts +30 -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 +20 -0
- package/src/agent-src/templates/scripts/work_engine/directives/ui/review.ts +20 -1
- package/src/agent-src/templates/scripts/work_engine/directives/ui/stack_bundles.ts +179 -0
- package/src/agent-src/templates/scripts/work_engine/stack/detect.ts +155 -4
- 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/rule_scope.ts +5 -1
- package/src/install/toolDetection.ts +39 -8
- package/src/install/wizard-plan.ts +2 -2
- 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/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_pack_size.ts +188 -0
- package/src/scripts/council_cli.ts +6 -2
- package/src/scripts/evaluator_umbrella.sh +34 -1
- package/src/scripts/lint_eval_fixture_citations.ts +113 -0
- package/src/scripts/lint_ui_stack_bundles.ts +170 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
main
|
|
4
|
+
} from "./chunk-XX6TOPD7.js";
|
|
5
|
+
import "./chunk-HJ6DAJHR.js";
|
|
6
|
+
import "./chunk-NDJLNC6Q.js";
|
|
7
|
+
import "./chunk-MCJYCQPF.js";
|
|
8
|
+
import "./chunk-J55WI3RR.js";
|
|
9
|
+
export {
|
|
10
|
+
main
|
|
11
|
+
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
LEGACY_ALL,
|
|
4
|
+
ruleFileArrives
|
|
5
|
+
} from "./chunk-TFG57JJM.js";
|
|
6
|
+
import "./chunk-BJGXZNPM.js";
|
|
7
|
+
import "./chunk-7DSAMZFU.js";
|
|
8
|
+
import "./chunk-HJ6DAJHR.js";
|
|
9
|
+
import "./chunk-NDJLNC6Q.js";
|
|
10
|
+
import {
|
|
11
|
+
hasBlockingFinding,
|
|
12
|
+
runPreflight
|
|
13
|
+
} from "./chunk-RDGRHAAB.js";
|
|
14
|
+
import "./chunk-OMIVVCG2.js";
|
|
15
|
+
import {
|
|
16
|
+
resolvePackageRoot
|
|
17
|
+
} from "./chunk-MCJYCQPF.js";
|
|
18
|
+
import "./chunk-OY53J6II.js";
|
|
19
|
+
import "./chunk-J55WI3RR.js";
|
|
20
|
+
|
|
21
|
+
// src/scripts/_cli/cmd_preflight.ts
|
|
22
|
+
import * as os from "node:os";
|
|
23
|
+
import * as path from "node:path";
|
|
24
|
+
import process from "node:process";
|
|
25
|
+
import * as fs from "node:fs";
|
|
26
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
27
|
+
|
|
28
|
+
// src/install/wizard-plan.ts
|
|
29
|
+
import { homedir } from "node:os";
|
|
30
|
+
import { isAbsolute, join, resolve } from "node:path";
|
|
31
|
+
var USER_SCOPE_PATHS = {
|
|
32
|
+
"claude-code": "~/.claude/",
|
|
33
|
+
"claude-desktop": "~/Library/Application Support/Claude/",
|
|
34
|
+
cursor: "~/.cursor/",
|
|
35
|
+
windsurf: "~/.codeium/windsurf/",
|
|
36
|
+
cline: "~/Documents/Cline/Rules/",
|
|
37
|
+
"gemini-cli": "~/.gemini/",
|
|
38
|
+
copilot: "~/.copilot/",
|
|
39
|
+
augment: "~/.augment/",
|
|
40
|
+
aider: "~/.aider.conf.yml",
|
|
41
|
+
codex: "~/.codex/",
|
|
42
|
+
roocode: "~/.roo/",
|
|
43
|
+
continue: "~/.continue/",
|
|
44
|
+
kilocode: "~/.kilocode/",
|
|
45
|
+
zed: "~/.config/zed/",
|
|
46
|
+
jetbrains: "~/.config/JetBrains/",
|
|
47
|
+
kiro: "~/.kiro/",
|
|
48
|
+
qoder: "~/.qoder/",
|
|
49
|
+
opencode: "~/.opencode/",
|
|
50
|
+
trae: "~/.trae/",
|
|
51
|
+
antigravity: "~/.agents/",
|
|
52
|
+
codebuddy: "~/.codebuddy/",
|
|
53
|
+
droid: "~/.factory/",
|
|
54
|
+
warp: "~/.warp/"
|
|
55
|
+
};
|
|
56
|
+
var CLAUDE_SKILL_BUNDLE = [
|
|
57
|
+
["dist/agent-src/rules", "rules"],
|
|
58
|
+
["dist/agent-src/skills", "skills"],
|
|
59
|
+
// Commands ship to ~/.claude/commands/ — native Claude Code slash-
|
|
60
|
+
// command surface. Verified empirically 2026-05-28: rich frontmatter
|
|
61
|
+
// (disable-model-invocation, custom fields) tolerated; nested
|
|
62
|
+
// subdirs route as `/<cluster>:<sub>`. Council session 2026-05-28
|
|
63
|
+
// converged on Option B (native slash-only) — see
|
|
64
|
+
// agents/runtime/council/responses/claude-code-distribution.json
|
|
65
|
+
// and scripts/install.py:_CLAUDE_SKILL_BUNDLE for the Python mirror.
|
|
66
|
+
["dist/agent-src/commands", "commands"],
|
|
67
|
+
["dist/agent-src/personas", "personas"]
|
|
68
|
+
];
|
|
69
|
+
var GLOBAL_DEPLOY_SOURCES = {
|
|
70
|
+
"claude-code": CLAUDE_SKILL_BUNDLE,
|
|
71
|
+
augment: [
|
|
72
|
+
["dist/agent-src/rules", "rules"],
|
|
73
|
+
["dist/agent-src/skills", "skills"],
|
|
74
|
+
["dist/agent-src/commands", "commands"],
|
|
75
|
+
["dist/agent-src/contexts", "contexts"],
|
|
76
|
+
["dist/agent-src/personas", "personas"],
|
|
77
|
+
["dist/agent-src/templates", "templates"]
|
|
78
|
+
],
|
|
79
|
+
cursor: [
|
|
80
|
+
["dist/agent-src/rules", "rules"],
|
|
81
|
+
["dist/agent-src/commands", "commands"],
|
|
82
|
+
["dist/agent-src/personas", "personas"]
|
|
83
|
+
],
|
|
84
|
+
windsurf: [
|
|
85
|
+
["dist/agent-src/rules", "rules"]
|
|
86
|
+
],
|
|
87
|
+
cline: [
|
|
88
|
+
["dist/agent-src/rules", ""]
|
|
89
|
+
],
|
|
90
|
+
"gemini-cli": CLAUDE_SKILL_BUNDLE,
|
|
91
|
+
codex: CLAUDE_SKILL_BUNDLE,
|
|
92
|
+
continue: CLAUDE_SKILL_BUNDLE,
|
|
93
|
+
roocode: CLAUDE_SKILL_BUNDLE,
|
|
94
|
+
kilocode: CLAUDE_SKILL_BUNDLE,
|
|
95
|
+
qoder: CLAUDE_SKILL_BUNDLE,
|
|
96
|
+
opencode: CLAUDE_SKILL_BUNDLE,
|
|
97
|
+
trae: CLAUDE_SKILL_BUNDLE,
|
|
98
|
+
antigravity: CLAUDE_SKILL_BUNDLE,
|
|
99
|
+
codebuddy: CLAUDE_SKILL_BUNDLE,
|
|
100
|
+
droid: CLAUDE_SKILL_BUNDLE,
|
|
101
|
+
warp: CLAUDE_SKILL_BUNDLE,
|
|
102
|
+
kiro: [
|
|
103
|
+
["dist/agent-src/rules", "rules"],
|
|
104
|
+
["dist/agent-src/skills", "steering"],
|
|
105
|
+
["dist/agent-src/personas", "personas"]
|
|
106
|
+
]
|
|
107
|
+
};
|
|
108
|
+
function expandAnchor(anchor, home) {
|
|
109
|
+
const h = home ?? homedir();
|
|
110
|
+
if (anchor === "~") return h;
|
|
111
|
+
if (anchor.startsWith("~/")) return join(h, anchor.slice(2));
|
|
112
|
+
if (isAbsolute(anchor)) return anchor;
|
|
113
|
+
return resolve(anchor);
|
|
114
|
+
}
|
|
115
|
+
function expandWizardSources(inputs) {
|
|
116
|
+
const { toolIds, packageRoot, home } = inputs;
|
|
117
|
+
const scope = inputs.ruleScope ?? LEGACY_ALL;
|
|
118
|
+
const ruleFilter = (srcFile) => ruleFileArrives(srcFile, scope);
|
|
119
|
+
const out = [];
|
|
120
|
+
for (const toolId of toolIds) {
|
|
121
|
+
const deploy = GLOBAL_DEPLOY_SOURCES[toolId];
|
|
122
|
+
const anchor = USER_SCOPE_PATHS[toolId];
|
|
123
|
+
if (!deploy || !anchor) continue;
|
|
124
|
+
const destRoot = expandAnchor(anchor, home);
|
|
125
|
+
for (const [srcRel, destSub] of deploy) {
|
|
126
|
+
const srcDir = join(packageRoot, srcRel);
|
|
127
|
+
const destDir = destSub.length === 0 ? destRoot : join(destRoot, destSub);
|
|
128
|
+
const isRuleSource = srcRel === "dist/agent-src/rules";
|
|
129
|
+
out.push({
|
|
130
|
+
toolId,
|
|
131
|
+
srcDir,
|
|
132
|
+
destDir,
|
|
133
|
+
kind: "deployed",
|
|
134
|
+
...isRuleSource ? { fileFilter: ruleFilter } : {}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// src/scripts/_cli/cmd_preflight.ts
|
|
142
|
+
var _HERE = fileURLToPath(import.meta.url);
|
|
143
|
+
var PACKAGE_ROOT = resolvePackageRoot(import.meta.url);
|
|
144
|
+
var USAGE = "usage: cmd_preflight [-h] [--tools a,b,...] [--target DIR] [--json]\n";
|
|
145
|
+
var SEVERITY_SYMBOL = {
|
|
146
|
+
blocking: "\u274C",
|
|
147
|
+
warning: "\u26A0\uFE0F ",
|
|
148
|
+
info: "\u2139\uFE0F "
|
|
149
|
+
};
|
|
150
|
+
var ArgError = class extends Error {
|
|
151
|
+
};
|
|
152
|
+
function parse(argv) {
|
|
153
|
+
const opts = {
|
|
154
|
+
tools: Object.keys(GLOBAL_DEPLOY_SOURCES),
|
|
155
|
+
target: os.homedir(),
|
|
156
|
+
json: false
|
|
157
|
+
};
|
|
158
|
+
let i = 0;
|
|
159
|
+
while (i < argv.length) {
|
|
160
|
+
const a = argv[i];
|
|
161
|
+
if (a === "-h" || a === "--help") {
|
|
162
|
+
process.stdout.write(USAGE);
|
|
163
|
+
process.exit(0);
|
|
164
|
+
}
|
|
165
|
+
if (a === "--json") {
|
|
166
|
+
opts.json = true;
|
|
167
|
+
} else if (a === "--tools" || a.startsWith("--tools=")) {
|
|
168
|
+
let raw;
|
|
169
|
+
if (a.includes("=")) {
|
|
170
|
+
raw = a.slice(a.indexOf("=") + 1);
|
|
171
|
+
} else {
|
|
172
|
+
raw = String(argv[i + 1] ?? "");
|
|
173
|
+
i += 1;
|
|
174
|
+
}
|
|
175
|
+
const list = raw.split(",").map((t) => t.trim()).filter((t) => t.length > 0 && t !== "all");
|
|
176
|
+
if (list.length > 0) {
|
|
177
|
+
opts.tools = list;
|
|
178
|
+
}
|
|
179
|
+
} else if (a === "--target" || a.startsWith("--target=")) {
|
|
180
|
+
if (a.includes("=")) {
|
|
181
|
+
opts.target = a.slice(a.indexOf("=") + 1);
|
|
182
|
+
} else {
|
|
183
|
+
opts.target = String(argv[i + 1] ?? "");
|
|
184
|
+
i += 1;
|
|
185
|
+
}
|
|
186
|
+
if (!opts.target) {
|
|
187
|
+
throw new ArgError("--target expects a value");
|
|
188
|
+
}
|
|
189
|
+
} else {
|
|
190
|
+
throw new ArgError(`unrecognized argument ${a}`);
|
|
191
|
+
}
|
|
192
|
+
i += 1;
|
|
193
|
+
}
|
|
194
|
+
return opts;
|
|
195
|
+
}
|
|
196
|
+
function main(argv = null) {
|
|
197
|
+
let opts;
|
|
198
|
+
try {
|
|
199
|
+
opts = parse(argv !== null ? Array.from(argv) : process.argv.slice(2));
|
|
200
|
+
} catch (exc) {
|
|
201
|
+
if (exc instanceof ArgError) {
|
|
202
|
+
process.stderr.write(USAGE);
|
|
203
|
+
process.stderr.write(`cmd_preflight: error: ${exc.message}
|
|
204
|
+
`);
|
|
205
|
+
return 2;
|
|
206
|
+
}
|
|
207
|
+
throw exc;
|
|
208
|
+
}
|
|
209
|
+
const policy = {
|
|
210
|
+
force: false,
|
|
211
|
+
interactive: false,
|
|
212
|
+
knownPaths: /* @__PURE__ */ new Set(),
|
|
213
|
+
knownPointers: /* @__PURE__ */ new Set(),
|
|
214
|
+
defaultStrategy: "skip"
|
|
215
|
+
};
|
|
216
|
+
const sources = expandWizardSources({
|
|
217
|
+
toolIds: opts.tools,
|
|
218
|
+
packageRoot: PACKAGE_ROOT
|
|
219
|
+
});
|
|
220
|
+
const findings = runPreflight({
|
|
221
|
+
target: "global",
|
|
222
|
+
root: opts.target,
|
|
223
|
+
sources,
|
|
224
|
+
policy
|
|
225
|
+
});
|
|
226
|
+
if (opts.json) {
|
|
227
|
+
process.stdout.write(
|
|
228
|
+
`${JSON.stringify({ target: opts.target, tools: opts.tools, findings }, null, 2)}
|
|
229
|
+
`
|
|
230
|
+
);
|
|
231
|
+
} else {
|
|
232
|
+
process.stdout.write(` \u{1F50E} pre-flight: ${opts.tools.length} tool(s) against ${opts.target}
|
|
233
|
+
`);
|
|
234
|
+
if (findings.length === 0) {
|
|
235
|
+
process.stdout.write(" \u2705 no findings\n");
|
|
236
|
+
}
|
|
237
|
+
for (const f of findings) {
|
|
238
|
+
const sym = SEVERITY_SYMBOL[f.severity];
|
|
239
|
+
process.stdout.write(` ${sym} ${f.id}: ${f.message}
|
|
240
|
+
`);
|
|
241
|
+
if (f.severity !== "info" && f.remedy) {
|
|
242
|
+
process.stdout.write(` fix: ${f.remedy}
|
|
243
|
+
`);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return hasBlockingFinding(findings) ? 1 : 0;
|
|
248
|
+
}
|
|
249
|
+
function _isCliEntry() {
|
|
250
|
+
if (process.argv[1] === void 0) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
const argvUrl = pathToFileURL(path.resolve(process.argv[1])).href;
|
|
254
|
+
if (import.meta.url === argvUrl) {
|
|
255
|
+
return true;
|
|
256
|
+
}
|
|
257
|
+
try {
|
|
258
|
+
const here = fs.realpathSync(fileURLToPath(import.meta.url));
|
|
259
|
+
const argv = fs.realpathSync(path.resolve(process.argv[1]));
|
|
260
|
+
return here === argv;
|
|
261
|
+
} catch {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
if (_isCliEntry() || process.argv[1] === _HERE) {
|
|
266
|
+
process.exitCode = main(process.argv.slice(2));
|
|
267
|
+
}
|
|
268
|
+
export {
|
|
269
|
+
main
|
|
270
|
+
};
|