@event4u/agent-config 9.32.0 → 9.33.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.
Files changed (76) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +96 -1
  3. package/dist/agent-src/commands/review/routing.md +3 -4
  4. package/dist/agent-src/contexts/communication/rules-auto/reply-close-mechanics.md +65 -0
  5. package/dist/agent-src/contexts/execution/orchestration-telemetry.md +3 -0
  6. package/dist/agent-src/rules/delegation-policy.md +6 -0
  7. package/dist/agent-src/scripts/roadmap_gates.ts +107 -3
  8. package/dist/agent-src/skills/docker/SKILL.md +11 -0
  9. package/dist/agent-src/skills/laravel/SKILL.md +11 -0
  10. package/dist/agent-src/skills/review-routing/SKILL.md +23 -6
  11. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
  12. package/dist/agent-src/templates/scripts/ownership-map.example.yml +1 -1
  13. package/dist/cli/registry.js +4 -4
  14. package/dist/cli/registry.js.map +1 -1
  15. package/dist/cli-delegate/chunk-HTIU3W56.js +66 -0
  16. package/dist/cli-delegate/{chunk-ITIQSGOQ.js → chunk-MA4GFWDY.js} +7 -4
  17. package/dist/cli-delegate/{chunk-542DZR4P.js → chunk-PMQ6Z3T3.js} +1651 -144
  18. package/dist/cli-delegate/{chunk-PFBV6XRT.js → chunk-Q26HT4QT.js} +1 -63
  19. package/dist/cli-delegate/{chunk-LVRYBKTI.js → chunk-YPAWXXXR.js} +158 -0
  20. package/dist/cli-delegate/cmd_conformance.js +256 -226
  21. package/dist/cli-delegate/cmd_doctor.js +3 -2
  22. package/dist/cli-delegate/cmd_export.js +1 -1
  23. package/dist/cli-delegate/cmd_handoff.js +19 -26
  24. package/dist/cli-delegate/cmd_prune.js +1 -1
  25. package/dist/cli-delegate/cmd_session_recycle.js +13 -3
  26. package/dist/cli-delegate/cmd_settings_get.js +4 -2
  27. package/dist/cli-delegate/cmd_settings_migrate.js +1 -1
  28. package/dist/cli-delegate/cmd_settings_set.js +5 -3
  29. package/dist/cli-delegate/cmd_sync.js +1 -1
  30. package/dist/cli-delegate/cmd_uninstall.js +1 -1
  31. package/dist/cli-delegate/cmd_validate.js +1 -1
  32. package/dist/discovery/deprecation-report.md +1 -1
  33. package/dist/discovery/discovery-manifest.json +8 -8
  34. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  35. package/dist/discovery/discovery-manifest.summary.md +1 -1
  36. package/dist/discovery/orphan-report.md +1 -1
  37. package/dist/discovery/packs.json +2 -2
  38. package/dist/discovery/trust-report.md +1 -1
  39. package/dist/discovery/workspaces.json +2 -2
  40. package/dist/hooks/dispatch.js +18 -0
  41. package/dist/install/install.mjs +7 -4
  42. package/dist/mcp/registry-manifest.json +2 -2
  43. package/dist/mcp/server.json +2 -2
  44. package/dist/mcp/server.mjs +3637 -1158
  45. package/package.json +1 -1
  46. package/src/agent-src/scripts/roadmap_gates.ts +107 -3
  47. package/src/agent-src/templates/scripts/ownership-map.example.yml +1 -1
  48. package/src/config/cost-parity-budget.json +167 -0
  49. package/src/config/gate-coverage.yml +44 -5
  50. package/src/config/quorum-attendance-budget.json +39 -0
  51. package/src/scripts/_cli/cmd_doctor.ts +69 -1
  52. package/src/scripts/_cli/cmd_session_recycle.ts +19 -3
  53. package/src/scripts/_dispatch.bash +5 -3
  54. package/src/scripts/_lib/orchestration_record.ts +45 -0
  55. package/src/scripts/ai_council/clients.ts +31 -0
  56. package/src/scripts/ai_council/events_log.ts +128 -6
  57. package/src/scripts/ai_council/orchestrator.ts +12 -3
  58. package/src/scripts/ai_council/pricing.ts +48 -1
  59. package/src/scripts/ai_council/quorum.ts +20 -0
  60. package/src/scripts/ai_council/session.ts +11 -0
  61. package/src/scripts/ask_transport.ts +20 -1
  62. package/src/scripts/cache_realization_report.ts +38 -0
  63. package/src/scripts/check_release_highlights.ts +7 -1
  64. package/src/scripts/conformance_scan.ts +105 -0
  65. package/src/scripts/cost/track.mjs +39 -0
  66. package/src/scripts/cost_summary.ts +104 -1
  67. package/src/scripts/council_cli.ts +131 -13
  68. package/src/scripts/dispatch_economy_report.ts +5 -2
  69. package/src/scripts/install.ts +20 -6
  70. package/src/scripts/lint_budget_ownership.ts +81 -0
  71. package/src/scripts/lint_skill_frontmatter_safety.ts +55 -1
  72. package/src/scripts/lint_workflow_paths.ts +384 -0
  73. package/src/scripts/preamble_byte_census.ts +9 -1
  74. package/src/scripts/report_carrier_divergence.ts +10 -0
  75. package/src/scripts/report_conformance_funnel.ts +40 -0
  76. package/src/scripts/schemas/subagent.schema.json +3 -2
@@ -0,0 +1,66 @@
1
+ import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
2
+
3
+ // src/shared/settingsClasses.ts
4
+ var SETTINGS_CLASSES = ["A", "B", "C"];
5
+ function isSettingsClass(value) {
6
+ return SETTINGS_CLASSES.includes(value);
7
+ }
8
+ var ROW_RE = /^\|\s*`([^`]+)`\s*\|\s*([^|]*?)\s*\|/;
9
+ function parseSettingsClassRows(markdown) {
10
+ const rows = [];
11
+ const lines = markdown.split("\n");
12
+ for (let i = 0; i < lines.length; i++) {
13
+ const m = ROW_RE.exec(lines[i] ?? "");
14
+ if (m === null) {
15
+ continue;
16
+ }
17
+ const key = m[1] ?? "";
18
+ const cls = m[2] ?? "";
19
+ if (!/^[A-Za-z]$/.test(cls)) {
20
+ continue;
21
+ }
22
+ rows.push({ key, cls, line: i + 1 });
23
+ }
24
+ return rows;
25
+ }
26
+ function buildSettingsClassIndex(rows) {
27
+ const index = /* @__PURE__ */ new Map();
28
+ for (const row of rows) {
29
+ if (!isSettingsClass(row.cls) || index.has(row.key)) {
30
+ continue;
31
+ }
32
+ index.set(row.key, row.cls);
33
+ }
34
+ return index;
35
+ }
36
+ function getSettingsLeaf(root, dotted) {
37
+ let node = root;
38
+ for (const part of dotted.split(".")) {
39
+ if (typeof node !== "object" || node === null || Array.isArray(node)) {
40
+ return void 0;
41
+ }
42
+ node = node[part];
43
+ }
44
+ return node;
45
+ }
46
+ function classOfPath(index, dotted) {
47
+ const exact = index.get(dotted);
48
+ if (exact !== void 0) {
49
+ return exact;
50
+ }
51
+ const parts = dotted.split(".");
52
+ for (let end = parts.length - 1; end > 0; end--) {
53
+ const ancestor = index.get(parts.slice(0, end).join("."));
54
+ if (ancestor !== void 0) {
55
+ return ancestor;
56
+ }
57
+ }
58
+ return void 0;
59
+ }
60
+
61
+ export {
62
+ parseSettingsClassRows,
63
+ buildSettingsClassIndex,
64
+ getSettingsLeaf,
65
+ classOfPath
66
+ };
@@ -3062,7 +3062,7 @@ function ensure_vscode_bridge(project_root, package_type, force) {
3062
3062
  };
3063
3063
  const plugin_path = plugin_paths[package_type] ?? "./plugin/agent-config";
3064
3064
  const bridge = { "chat.pluginLocations": { [plugin_path]: true } };
3065
- merge_json_file(
3065
+ return merge_json_file(
3066
3066
  path5.join(project_root, ".vscode", "settings.json"),
3067
3067
  bridge,
3068
3068
  force,
@@ -3120,7 +3120,8 @@ function _remove_legacy_augment_trampolines() {
3120
3120
  fs6.unlinkSync(legacy);
3121
3121
  skip(`removed legacy ~/.augment/hooks/${name}`);
3122
3122
  }
3123
- } catch {
3123
+ } catch (err) {
3124
+ warn(`could not remove legacy ${legacy}: ${err instanceof Error ? err.message : String(err)}`);
3124
3125
  }
3125
3126
  }
3126
3127
  }
@@ -6169,8 +6170,10 @@ function _main_project_install(opts, project_root, parsed_tools, is_first_run) {
6169
6170
  const tools = parsed_tools;
6170
6171
  const merged_keys_by_tool = {};
6171
6172
  if (!opts.skip_bridges) {
6172
- ensure_vscode_bridge(project_root, package_type, opts.force);
6173
- merged_keys_by_tool["augment"] = ensure_augment_bridge(project_root, opts.force);
6173
+ merged_keys_by_tool["augment"] = [
6174
+ ...ensure_vscode_bridge(project_root, package_type, opts.force),
6175
+ ...ensure_augment_bridge(project_root, opts.force)
6176
+ ];
6174
6177
  if (_is_tool_enabled(tools, "claude-code")) {
6175
6178
  merged_keys_by_tool["claude-code"] = ensure_claude_bridge(project_root, opts.force);
6176
6179
  }