@event4u/agent-config 9.27.0 → 9.28.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/AGENTS.md +12 -11
- package/CHANGELOG.md +99 -0
- package/README.md +1 -1
- package/dist/agent-src/commands/analyze/conformance.md +24 -0
- package/dist/agent-src/contexts/execution/orchestration-telemetry.md +10 -3
- package/dist/agent-src/rules/artifact-engagement-recording.md +4 -1
- package/dist/agent-src/rules/autonomous-execution.md +1 -1
- package/dist/agent-src/rules/brand-source-of-truth.md +33 -6
- package/dist/agent-src/rules/context-hygiene.md +3 -1
- package/dist/agent-src/rules/council-availability.md +93 -0
- package/dist/agent-src/rules/cross-source-consistency.md +3 -0
- package/dist/agent-src/rules/delegation-policy.md +29 -5
- package/dist/agent-src/rules/design-fidelity.md +3 -0
- package/dist/agent-src/rules/evaluator-independence.md +2 -1
- package/dist/agent-src/rules/external-code-graph-interop.md +2 -1
- package/dist/agent-src/rules/finance-safety-floor.md +1 -1
- package/dist/agent-src/rules/git-history-discipline.md +1 -1
- package/dist/agent-src/rules/history-discipline.md +3 -1
- package/dist/agent-src/rules/legal-safety-floor.md +1 -1
- package/dist/agent-src/rules/no-pr-progress-comments.md +3 -1
- package/dist/agent-src/rules/onboarding-gate.md +3 -1
- package/dist/agent-src/rules/roadmap-ci-steps-policy.md +4 -1
- package/dist/agent-src/rules/role-mode-adherence.md +1 -1
- package/dist/agent-src/rules/scale-discipline.md +3 -1
- package/dist/agent-src/rules/self-repair-loop.md +103 -0
- package/dist/agent-src/rules/session-canary.md +2 -1
- package/dist/agent-src/rules/strategy-safety-floor.md +1 -1
- package/dist/agent-src/rules/token-budget-discipline.md +3 -1
- package/dist/agent-src/rules/tool-safety.md +5 -1
- package/dist/agent-src/skills/adversarial-review/SKILL.md +1 -1
- package/dist/agent-src/skills/analysis-autonomous-mode/SKILL.md +1 -1
- package/dist/agent-src/skills/performance-analysis/SKILL.md +1 -1
- package/dist/agent-src/skills/persona-improvement/SKILL.md +1 -1
- package/dist/agent-src/skills/project-analyzer/SKILL.md +1 -1
- package/dist/agent-src/skills/security-audit/SKILL.md +1 -1
- package/dist/agent-src/skills/sequential-thinking/SKILL.md +1 -1
- package/dist/agent-src/skills/skill-improvement-pipeline/SKILL.md +1 -1
- package/dist/agent-src/skills/universal-project-analysis/SKILL.md +1 -1
- package/dist/agent-src/templates/AGENTS.md +6 -10
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/cli/registry.js +7 -0
- package/dist/cli/registry.js.map +1 -1
- package/dist/cli-delegate/chunk-22GCIJ2O.js +270 -0
- package/dist/cli-delegate/{chunk-BCPIOAGV.js → chunk-2BE5I2MN.js} +8 -8
- package/dist/cli-delegate/{chunk-AIIUU73N.js → chunk-7OMQCH4V.js} +1 -1
- package/dist/cli-delegate/{chunk-HJ6DAJHR.js → chunk-GB2FSUEE.js} +57 -7
- package/dist/cli-delegate/{chunk-WR6GTRHJ.js → chunk-JXARCGVN.js} +3 -3
- package/dist/cli-delegate/{chunk-3KJIMFTB.js → chunk-PQSAQKHW.js} +466 -304
- package/dist/cli-delegate/chunk-REKCMYOU.js +2991 -0
- package/dist/cli-delegate/cmd_analyze_session.js +1 -1
- package/dist/cli-delegate/cmd_brand_status.js +134 -0
- package/dist/cli-delegate/cmd_conformance.js +7 -7
- package/dist/cli-delegate/cmd_converge.js +3 -3
- package/dist/cli-delegate/cmd_doctor.js +4 -4
- package/dist/cli-delegate/cmd_explain.js +80 -330
- package/dist/cli-delegate/cmd_export.js +5 -5
- package/dist/cli-delegate/cmd_fleet.js +3 -3
- package/dist/cli-delegate/cmd_handoff.js +2 -2
- package/dist/cli-delegate/cmd_mcp_available.js +433 -0
- package/dist/cli-delegate/cmd_migrate.js +3 -3
- package/dist/cli-delegate/cmd_packs_active.js +153 -0
- package/dist/cli-delegate/cmd_preflight.js +1 -1
- package/dist/cli-delegate/cmd_prune.js +5 -5
- package/dist/cli-delegate/cmd_route_audit.js +8 -8
- package/dist/cli-delegate/cmd_route_explain.js +4 -4
- package/dist/cli-delegate/cmd_settings_get.js +272 -0
- package/dist/cli-delegate/cmd_settings_migrate.js +5 -5
- package/dist/cli-delegate/cmd_settings_set.js +7 -2967
- package/dist/cli-delegate/cmd_sync.js +5 -5
- package/dist/cli-delegate/cmd_uninstall.js +5 -5
- package/dist/cli-delegate/cmd_update.js +4 -4
- package/dist/cli-delegate/cmd_upgrade.js +4 -4
- package/dist/cli-delegate/cmd_validate.js +5 -5
- package/dist/cli-delegate/cmd_versions.js +4 -4
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +100 -40
- 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 +7 -5
- package/dist/discovery/trust-report.md +11 -11
- package/dist/discovery/workspaces.json +6 -4
- package/dist/hooks/dispatch.js +9004 -6132
- package/dist/install/install.mjs +697 -507
- package/dist/mcp/registry-manifest.json +3 -3
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +127 -20
- package/dist/router.json +1 -1
- package/dist/scripts/_lib/agent_settings.js +80 -15
- package/dist/scripts/_lib/agent_settings.js.map +1 -1
- package/docs/contracts/settings-classes.md +29 -8
- package/docs/guidelines/agent-infra/memory-access.md +14 -3
- package/package.json +1 -1
- package/src/agent-src/templates/AGENTS.md +6 -10
- package/src/config/budgets.yml +29 -0
- package/src/config/evaluator-budgets.json +4 -4
- package/src/config/gate-coverage.yml +26 -0
- package/src/scripts/_cli/cmd_brand_status.ts +174 -0
- package/src/scripts/_cli/cmd_mcp_available.ts +266 -0
- package/src/scripts/_cli/cmd_packs_active.ts +225 -0
- package/src/scripts/_cli/cmd_settings_get.ts +324 -0
- package/src/scripts/_dispatch.bash +57 -0
- package/src/scripts/_lib/agent_settings.ts +82 -16
- package/src/scripts/_lib/carrier_divergence.ts +135 -0
- package/src/scripts/_lib/host_capability.ts +84 -1
- package/src/scripts/_lib/prompt_shape.ts +88 -0
- package/src/scripts/_lib/review_skipped_record.ts +102 -0
- package/src/scripts/_lib/rule_layer_overlap.ts +254 -0
- package/src/scripts/_lib/self_repair.ts +342 -0
- package/src/scripts/_lib/self_repair_store.ts +100 -0
- package/src/scripts/_lib/transcript_entry.ts +80 -0
- package/src/scripts/check_branch_freshness.ts +255 -0
- package/src/scripts/check_council_config_location.ts +125 -1
- package/src/scripts/check_standing_rule_delivery.ts +314 -0
- package/src/scripts/config/profiles.ts +13 -3
- package/src/scripts/conformance_scan.ts +272 -24
- package/src/scripts/council_availability_hook.ts +188 -0
- package/src/scripts/council_cli.ts +126 -7
- package/src/scripts/hook_manifest.yaml +107 -26
- package/src/scripts/hooks/block_no_verify.ts +39 -2
- package/src/scripts/hooks/block_unauthorized_git.ts +156 -7
- package/src/scripts/hooks/concern_registry.ts +10 -0
- package/src/scripts/hooks/delegation_nudge_hook.ts +450 -0
- package/src/scripts/hooks/end_review_nudge_hook.ts +726 -0
- package/src/scripts/hooks/orchestration_record_hook.ts +342 -0
- package/src/scripts/install.ts +151 -0
- package/src/scripts/language_mirror_hook.ts +30 -37
- package/src/scripts/measure_scope_dedup.ts +19 -13
- package/src/scripts/onboarding_gate_hook.ts +40 -1
- package/src/scripts/orchestration_record.ts +4 -1
- package/src/scripts/preamble_byte_census.ts +9 -20
- package/src/scripts/report_carrier_divergence.ts +364 -0
- package/src/scripts/report_skill_activation.ts +257 -0
- package/src/scripts/report_skill_obligation_violations.ts +579 -0
- package/src/scripts/routing_doctor.ts +77 -6
- package/src/scripts/self_repair_cli.ts +240 -0
- package/src/scripts/self_repair_hook.ts +241 -0
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
claude_plugin_snapshot_version,
|
|
11
11
|
codex_plugin_identity
|
|
12
12
|
} from "./chunk-FTAISGDQ.js";
|
|
13
|
+
import {
|
|
14
|
+
config_exports,
|
|
15
|
+
hardenedSpawnEnv
|
|
16
|
+
} from "./chunk-VSYT7OHO.js";
|
|
13
17
|
import {
|
|
14
18
|
DEFAULT_GITATTRIBUTES,
|
|
15
19
|
SECTION_HEADER,
|
|
@@ -32,13 +36,6 @@ import {
|
|
|
32
36
|
excludedRuleBasenames,
|
|
33
37
|
ruleScopeFromSettings
|
|
34
38
|
} from "./chunk-NXFWFAYV.js";
|
|
35
|
-
import {
|
|
36
|
-
resolvePackageRoot
|
|
37
|
-
} from "./chunk-MCJYCQPF.js";
|
|
38
|
-
import {
|
|
39
|
-
config_exports,
|
|
40
|
-
hardenedSpawnEnv
|
|
41
|
-
} from "./chunk-VSYT7OHO.js";
|
|
42
39
|
import {
|
|
43
40
|
PROJECT_ROOT_ENV,
|
|
44
41
|
ProjectRootError,
|
|
@@ -46,7 +43,7 @@ import {
|
|
|
46
43
|
find_project_root_with_trace,
|
|
47
44
|
project_settings_path,
|
|
48
45
|
resolve_project_root
|
|
49
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GB2FSUEE.js";
|
|
50
47
|
import {
|
|
51
48
|
event4u_root,
|
|
52
49
|
resolve_with_fallback,
|
|
@@ -55,6 +52,9 @@ import {
|
|
|
55
52
|
import {
|
|
56
53
|
require_dist
|
|
57
54
|
} from "./chunk-OY53J6II.js";
|
|
55
|
+
import {
|
|
56
|
+
resolvePackageRoot
|
|
57
|
+
} from "./chunk-MCJYCQPF.js";
|
|
58
58
|
import {
|
|
59
59
|
__export,
|
|
60
60
|
__toESM
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
load_agent_settings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GB2FSUEE.js";
|
|
5
5
|
|
|
6
6
|
// src/scripts/chat_history.ts
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -68,19 +68,42 @@ var USER_GLOBAL_FILENAME = "agent-settings.yml";
|
|
|
68
68
|
function DEFAULT_USER_GLOBAL_FILE() {
|
|
69
69
|
return write_target(USER_GLOBAL_FILENAME);
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
var USER_GLOBAL_CANONICAL_RELATIVE = "settings/.agent-settings.yml";
|
|
72
|
+
function user_global_settings_paths() {
|
|
73
|
+
const paths = [];
|
|
74
|
+
const flat = resolve_with_fallback(USER_GLOBAL_FILENAME);
|
|
75
|
+
if (flat !== null) {
|
|
76
|
+
paths.push(flat);
|
|
77
|
+
}
|
|
78
|
+
const canonical = resolve_with_fallback(USER_GLOBAL_CANONICAL_RELATIVE);
|
|
79
|
+
if (canonical !== null) {
|
|
80
|
+
paths.push(canonical);
|
|
75
81
|
}
|
|
76
|
-
|
|
82
|
+
if (paths.length === 0) {
|
|
83
|
+
paths.push(DEFAULT_USER_GLOBAL_FILE());
|
|
84
|
+
}
|
|
85
|
+
return paths;
|
|
77
86
|
}
|
|
78
87
|
var MERGEABLE_KEYS = [
|
|
88
|
+
// `name`, `ide` and `personal.bot_icon` are the PRE-MIGRATION spellings.
|
|
89
|
+
// `install.ts` migrates `ide` → `personal.ide` and `pr_comment_bot_icon`
|
|
90
|
+
// into its `personal.` home, and this list was never moved with them — so
|
|
91
|
+
// the whitelist named keys the template does not have while the keys it
|
|
92
|
+
// does have were filtered out silently. A user setting either preference
|
|
93
|
+
// user-globally got no error, no warning, and no effect
|
|
94
|
+
// (road-to-capability-answerability 4.3, ADR-219).
|
|
95
|
+
//
|
|
96
|
+
// Both spellings are listed rather than replaced: a legacy file that still
|
|
97
|
+
// uses the old name keeps working, and nothing that resolved before
|
|
98
|
+
// resolves differently. `name` has no reader anywhere and no template key;
|
|
99
|
+
// it is kept only so this change stays purely additive.
|
|
79
100
|
"name",
|
|
80
101
|
"ide",
|
|
102
|
+
"personal.ide",
|
|
81
103
|
"rule_loading_tier",
|
|
82
104
|
"memory.cadence",
|
|
83
105
|
"personal.bot_icon",
|
|
106
|
+
"personal.pr_comment_bot_icon",
|
|
84
107
|
"personal.autonomy",
|
|
85
108
|
"telegraph.speak_scope",
|
|
86
109
|
// Knowledge-card global cross-project sharing is a USER-GLOBAL setting
|
|
@@ -363,7 +386,10 @@ function load_agent_settings(options = {}) {
|
|
|
363
386
|
const user_global_path = options.user_global_path ?? null;
|
|
364
387
|
const verbose = options.verbose ?? false;
|
|
365
388
|
const cwd = options.cwd ?? null;
|
|
366
|
-
const user_global_raw =
|
|
389
|
+
const user_global_raw = {};
|
|
390
|
+
for (const p of user_global_path ? [user_global_path] : user_global_settings_paths()) {
|
|
391
|
+
_deep_merge(user_global_raw, _read_yaml(p) ?? {});
|
|
392
|
+
}
|
|
367
393
|
const [user_global_filtered, ignored] = _filter_whitelist(user_global_raw, MERGEABLE_KEYS);
|
|
368
394
|
if (verbose && ignored.length > 0) {
|
|
369
395
|
logger.info(
|
|
@@ -382,6 +408,27 @@ function load_agent_settings(options = {}) {
|
|
|
382
408
|
}
|
|
383
409
|
return merged;
|
|
384
410
|
}
|
|
411
|
+
function* iter_setting_overrides(options = {}) {
|
|
412
|
+
const project_path = options.project_path ?? null;
|
|
413
|
+
const user_global_path = options.user_global_path ?? null;
|
|
414
|
+
const cwd = options.cwd ?? null;
|
|
415
|
+
for (const p of user_global_path ? [user_global_path] : user_global_settings_paths()) {
|
|
416
|
+
const raw = _read_yaml(p) ?? {};
|
|
417
|
+
const [filtered] = _filter_whitelist(raw, MERGEABLE_KEYS);
|
|
418
|
+
for (const key of _leaf_paths(filtered)) {
|
|
419
|
+
yield [key, _get_dotted(filtered, key), p];
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
for (const p of _resolve_cascade_paths(cwd, project_path)) {
|
|
423
|
+
const layer = _read_yaml(p);
|
|
424
|
+
if (!layer || Object.keys(layer).length === 0) {
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
for (const key of _leaf_paths(layer)) {
|
|
428
|
+
yield [key, _get_dotted(layer, key), p];
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
385
432
|
function _read_yaml(p) {
|
|
386
433
|
if (!_is_file(p)) {
|
|
387
434
|
return null;
|
|
@@ -491,6 +538,8 @@ export {
|
|
|
491
538
|
LOCAL_PROJECT_FILE,
|
|
492
539
|
LOCAL_PROJECT_SUBDIR,
|
|
493
540
|
project_settings_path,
|
|
541
|
+
USER_GLOBAL_FILENAME,
|
|
542
|
+
MERGEABLE_KEYS,
|
|
494
543
|
find_project_root_with_anchor,
|
|
495
544
|
find_project_root,
|
|
496
545
|
find_project_root_with_trace,
|
|
@@ -498,5 +547,6 @@ export {
|
|
|
498
547
|
ROOT_OVERRIDE_ENV,
|
|
499
548
|
ProjectRootError,
|
|
500
549
|
resolve_project_root,
|
|
501
|
-
load_agent_settings
|
|
550
|
+
load_agent_settings,
|
|
551
|
+
iter_setting_overrides
|
|
502
552
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
resolve_project_root
|
|
4
|
+
} from "./chunk-GB2FSUEE.js";
|
|
2
5
|
import {
|
|
3
6
|
resolvePackageRoot
|
|
4
7
|
} from "./chunk-MCJYCQPF.js";
|
|
5
|
-
import {
|
|
6
|
-
resolve_project_root
|
|
7
|
-
} from "./chunk-HJ6DAJHR.js";
|
|
8
8
|
|
|
9
9
|
// src/scripts/_cli/cmd_migrate.ts
|
|
10
10
|
import { spawnSync } from "node:child_process";
|