@event4u/agent-config 9.30.0 → 9.32.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 +60 -292
- package/dist/agent-src/contexts/execution/host-capability-manifest.md +32 -1
- package/dist/agent-src/rules/delegation-policy.md +11 -1
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/scripts/work_engine/delivery_state.ts +6 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/_self_fix.ts +332 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/refine.ts +106 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/test.ts +50 -15
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/verify.ts +49 -15
- package/dist/agent-src/templates/scripts/work_engine/state.ts +74 -0
- package/dist/agent-src/templates/scripts/work_engine/state_io.ts +6 -0
- package/dist/cli-delegate/chunk-2WELHO3P.js +582 -0
- package/dist/cli-delegate/{chunk-IYTGIG2Y.js → chunk-542DZR4P.js} +118 -148
- package/dist/cli-delegate/{chunk-66OVWGB5.js → chunk-AG47LAGQ.js} +1 -1
- package/dist/cli-delegate/{chunk-MP3JT3IU.js → chunk-DS6BLDMG.js} +1 -1
- package/dist/cli-delegate/{chunk-O3CO5BFB.js → chunk-EJITJBJX.js} +12 -1
- package/dist/cli-delegate/{chunk-EQY4FLJB.js → chunk-ITIQSGOQ.js} +3 -3
- package/dist/cli-delegate/{chunk-LCFJIQ4J.js → chunk-JEJABGKB.js} +110 -6
- package/dist/cli-delegate/chunk-PZWRPRWP.js +38 -0
- package/dist/cli-delegate/{chunk-BTJNRUX3.js → chunk-QEEB4LHO.js} +1 -1
- package/dist/cli-delegate/{chunk-DDUNNFYX.js → chunk-UVKNIJH2.js} +2 -2
- package/dist/cli-delegate/cmd_analyze_session.js +1 -1
- package/dist/cli-delegate/cmd_brand_status.js +1 -1
- package/dist/cli-delegate/cmd_conformance.js +154 -41
- package/dist/cli-delegate/cmd_doctor.js +4 -3
- package/dist/cli-delegate/cmd_explain.js +2 -2
- package/dist/cli-delegate/cmd_export.js +4 -4
- package/dist/cli-delegate/cmd_handoff.js +168 -59
- package/dist/cli-delegate/cmd_mcp_available.js +1 -1
- package/dist/cli-delegate/cmd_migrate.js +2 -2
- package/dist/cli-delegate/cmd_packs_active.js +2 -2
- package/dist/cli-delegate/cmd_prune.js +4 -4
- package/dist/cli-delegate/cmd_route_audit.js +2 -2
- package/dist/cli-delegate/cmd_route_explain.js +1 -1
- package/dist/cli-delegate/cmd_session_recycle.js +19 -4
- package/dist/cli-delegate/cmd_settings_get.js +2 -55
- package/dist/cli-delegate/cmd_settings_migrate.js +4 -4
- package/dist/cli-delegate/cmd_settings_set.js +1 -1
- package/dist/cli-delegate/cmd_sync.js +4 -4
- package/dist/cli-delegate/cmd_uninstall.js +4 -4
- package/dist/cli-delegate/cmd_update.js +1 -1
- package/dist/cli-delegate/cmd_upgrade.js +1 -1
- package/dist/cli-delegate/cmd_validate.js +4 -4
- package/dist/cli-delegate/cmd_versions.js +1 -1
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +3 -3
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +1 -1
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +2 -2
- package/dist/discovery/trust-report.md +1 -1
- package/dist/discovery/workspaces.json +2 -2
- package/dist/hooks/dispatch.js +1411 -810
- package/dist/install/install.mjs +121 -16
- package/dist/mcp/registry-manifest.json +1 -1
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +365 -143
- package/dist/scripts/_lib/agent_settings.js +111 -2
- package/dist/scripts/_lib/agent_settings.js.map +1 -1
- package/dist/server/schemas/settings.js +2 -2
- package/dist/server/schemas/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/agent-src/templates/scripts/work_engine/delivery_state.ts +6 -0
- package/src/agent-src/templates/scripts/work_engine/directives/backend/_self_fix.ts +332 -0
- package/src/agent-src/templates/scripts/work_engine/directives/backend/refine.ts +106 -1
- package/src/agent-src/templates/scripts/work_engine/directives/backend/test.ts +50 -15
- package/src/agent-src/templates/scripts/work_engine/directives/backend/verify.ts +49 -15
- package/src/agent-src/templates/scripts/work_engine/state.ts +74 -0
- package/src/agent-src/templates/scripts/work_engine/state_io.ts +6 -0
- package/src/config/pack-size-budget.json +3 -2
- package/src/scripts/_cli/cmd_session_recycle.ts +25 -0
- package/src/scripts/_cli/explain_last/inputs.ts +13 -0
- package/src/scripts/_cli/handoff_generate.ts +36 -1
- package/src/scripts/_cli/handoff_sessions.ts +140 -9
- package/src/scripts/_lib/agent_settings.ts +119 -2
- package/src/scripts/_lib/carrier_divergence.ts +120 -2
- package/src/scripts/_lib/envelope_grounding.ts +206 -0
- package/src/scripts/_lib/host_capability.ts +79 -0
- package/src/scripts/_lib/session_eol.ts +85 -0
- package/src/scripts/_lib/subagent_capsule.ts +256 -1
- package/src/scripts/check_secret_leak.test.ts +43 -0
- package/src/scripts/check_secret_leak.ts +12 -0
- package/src/scripts/handoff_context_hook.ts +66 -18
- package/src/scripts/hooks/session_eol_hook.ts +12 -12
- package/src/scripts/hooks/turn_end_gate_hook.ts +296 -88
- package/src/scripts/language_mirror_hook.ts +69 -16
- package/src/scripts/measure_turn_end_gate.ts +129 -51
- package/src/scripts/report_carrier_divergence.ts +143 -30
- package/src/scripts/report_conformance_funnel.ts +18 -4
- package/src/scripts/routing_doctor.ts +25 -2
- package/src/scripts/schemas/dod.schema.json +45 -0
- package/src/server/schemas/settings.ts +2 -2
- package/dist/cli-delegate/chunk-RVGBH4XK.js +0 -142
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-PFBV6XRT.js";
|
|
9
9
|
import {
|
|
10
10
|
MERGEABLE_KEYS,
|
|
11
|
+
SETTINGS_CARVE_OUT,
|
|
11
12
|
USER_GLOBAL_FILENAME,
|
|
12
13
|
iter_setting_overrides,
|
|
13
14
|
load_agent_settings
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JEJABGKB.js";
|
|
15
16
|
import {
|
|
16
17
|
resolve_with_fallback,
|
|
17
18
|
write_target
|
|
@@ -26,60 +27,6 @@ import * as fs from "node:fs";
|
|
|
26
27
|
import * as path from "node:path";
|
|
27
28
|
import process from "node:process";
|
|
28
29
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
29
|
-
|
|
30
|
-
// src/shared/settingsCarveOut.ts
|
|
31
|
-
var SETTINGS_CARVE_OUT = [
|
|
32
|
-
{
|
|
33
|
-
key: "projection.mode",
|
|
34
|
-
reader: "src/scripts/install.ts:3409 _resolve_scoped_projection",
|
|
35
|
-
absentResolvesTo: "legacy-all",
|
|
36
|
-
reason: "The template fallback applies only when NO global settings file exists. Once a file exists, an absent key means legacy-all by documented contract, so an existing install is never silently narrowed on upgrade."
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: "projection.rule_workspaces",
|
|
40
|
-
reader: "src/install/rule_scope.ts:96 ruleScopeFromSettings",
|
|
41
|
-
absentResolvesTo: "null \u2014 LEGACY_ALL, i.e. every rule ships including maintainer-only ones",
|
|
42
|
-
reason: "Same upgrade contract as projection.mode, and the failure is louder: an absent list widens the projection instead of narrowing it."
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
key: "discipline_profile",
|
|
46
|
-
reader: "work_engine/_lib/agent_settings.ts:1263",
|
|
47
|
-
absentResolvesTo: "essential, unconditionally",
|
|
48
|
-
reason: "The template ships `auto`, which resolves to `off` on any measured-null model, any non-Claude host, and any host exposing no model id. Absent skips that resolution entirely and loads the essential tier everywhere."
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
key: "chat_history.frequency",
|
|
52
|
-
reader: "src/scripts/chat_history.ts:1140",
|
|
53
|
-
absentResolvesTo: "per_phase",
|
|
54
|
-
reason: "Canonical substitution is `per_turn`. Absent gives coarser capture than the shipped default \u2014 an audit-thinning change, which the class contract's own test 8 (what can the attacker HIDE) names as the severe direction."
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
key: "profile.id",
|
|
58
|
-
reader: "src/scripts/config/profiles.ts:221 resolve_profile",
|
|
59
|
-
absentResolvesTo: "the id `developer`, but a DEGRADED profile \u2014 packs: [], personas: [], hints: []",
|
|
60
|
-
reason: "Exactly the projection.mode shape: the template default is honoured only when no settings file exists. With a file present the id resolves but its profile body does not load, so the install silently loses every pack and persona."
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
key: "quality.local_auto_run",
|
|
64
|
-
reader: "src/scripts/lint_roadmap_ci_steps.ts:106",
|
|
65
|
-
absentResolvesTo: "true \u2014 which DISABLES the CI-step gate",
|
|
66
|
-
reason: "Inverted polarity, and the most dangerous row in the set: the template ships `false`, which ARMS the gate. Omitting the key would disarm a quality gate for every fresh install while the reference page says it is on."
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
key: "onboarding.onboarded",
|
|
70
|
-
reader: "src/scripts/onboarding_gate_hook.ts:99",
|
|
71
|
-
absentResolvesTo: "gate skipped, as if onboarding had already completed",
|
|
72
|
-
reason: "Absent behaves like `onboarded: true`, not like the template default `false`. Omitting it would skip the onboarding gate on precisely the fresh installs the gate exists for."
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
key: "chat_history.enabled",
|
|
76
|
-
reader: "src/scripts/chat_history.ts:1025 _read_chat_history_enabled",
|
|
77
|
-
absentResolvesTo: "false",
|
|
78
|
-
reason: "The reader falls back to false while the template ships true. This one is privacy-shaped: fixing the reader would start recording history for every install whose file lacks the key. Writing it explicitly keeps the decision visible in the file the user can read."
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
// src/scripts/_cli/cmd_settings_get.ts
|
|
83
30
|
var PACKAGE_ROOT = resolvePackageRoot(import.meta.url);
|
|
84
31
|
var CONTRACT_RELATIVE = "docs/contracts/settings-classes.md";
|
|
85
32
|
var TEMPLATE_RELATIVE = path.join("src", "config", "agent-settings.template.yml");
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
GLOBAL_AGENT_SETTINGS_PATH,
|
|
4
4
|
GLOBAL_USER_SETTINGS_PATH,
|
|
5
5
|
SETTINGS_FILE
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ITIQSGOQ.js";
|
|
7
|
+
import "./chunk-UVKNIJH2.js";
|
|
8
|
+
import "./chunk-DS6BLDMG.js";
|
|
9
9
|
import "./chunk-BKO2AZ7Z.js";
|
|
10
10
|
import "./chunk-63WSP6YZ.js";
|
|
11
11
|
import "./chunk-GRRPEPRN.js";
|
|
12
12
|
import "./chunk-NXFWFAYV.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-JEJABGKB.js";
|
|
14
14
|
import "./chunk-NDJLNC6Q.js";
|
|
15
15
|
import "./chunk-523HCFYO.js";
|
|
16
16
|
import "./chunk-OY53J6II.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
main
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ITIQSGOQ.js";
|
|
5
|
+
import "./chunk-UVKNIJH2.js";
|
|
6
|
+
import "./chunk-DS6BLDMG.js";
|
|
7
7
|
import "./chunk-BKO2AZ7Z.js";
|
|
8
8
|
import {
|
|
9
9
|
manifest_path,
|
|
@@ -13,7 +13,7 @@ import "./chunk-GRRPEPRN.js";
|
|
|
13
13
|
import "./chunk-NXFWFAYV.js";
|
|
14
14
|
import {
|
|
15
15
|
resolve_project_root
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JEJABGKB.js";
|
|
17
17
|
import "./chunk-NDJLNC6Q.js";
|
|
18
18
|
import "./chunk-523HCFYO.js";
|
|
19
19
|
import "./chunk-OY53J6II.js";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
PROJECT_BRIDGE_MARKERS,
|
|
4
4
|
USER_SCOPE_PATHS,
|
|
5
5
|
subtract_pointers
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ITIQSGOQ.js";
|
|
7
|
+
import "./chunk-UVKNIJH2.js";
|
|
8
|
+
import "./chunk-DS6BLDMG.js";
|
|
9
9
|
import "./chunk-BKO2AZ7Z.js";
|
|
10
10
|
import {
|
|
11
11
|
manifest_path,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import "./chunk-NXFWFAYV.js";
|
|
24
24
|
import {
|
|
25
25
|
resolve_project_root
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JEJABGKB.js";
|
|
27
27
|
import "./chunk-NDJLNC6Q.js";
|
|
28
28
|
import "./chunk-523HCFYO.js";
|
|
29
29
|
import "./chunk-OY53J6II.js";
|
|
@@ -3,9 +3,9 @@ import { createRequire as __acCreateRequire } from 'node:module'; const require
|
|
|
3
3
|
import {
|
|
4
4
|
PROJECT_BRIDGE_MARKERS,
|
|
5
5
|
USER_SCOPE_PATHS
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ITIQSGOQ.js";
|
|
7
|
+
import "./chunk-UVKNIJH2.js";
|
|
8
|
+
import "./chunk-DS6BLDMG.js";
|
|
9
9
|
import "./chunk-BKO2AZ7Z.js";
|
|
10
10
|
import {
|
|
11
11
|
manifest_path,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import "./chunk-NXFWFAYV.js";
|
|
18
18
|
import {
|
|
19
19
|
resolve_project_root
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JEJABGKB.js";
|
|
21
21
|
import "./chunk-NDJLNC6Q.js";
|
|
22
22
|
import "./chunk-523HCFYO.js";
|
|
23
23
|
import "./chunk-OY53J6II.js";
|
|
@@ -5992,7 +5992,7 @@
|
|
|
5992
5992
|
},
|
|
5993
5993
|
{
|
|
5994
5994
|
"category": "rule",
|
|
5995
|
-
"checksum": "sha256:
|
|
5995
|
+
"checksum": "sha256:451a0a10bb077b527aa2febc9f6b9838e350c186d52942b08057b9c9cc036c59",
|
|
5996
5996
|
"install": {
|
|
5997
5997
|
"default": true,
|
|
5998
5998
|
"removable": false
|
|
@@ -14486,7 +14486,7 @@
|
|
|
14486
14486
|
"workspaces": []
|
|
14487
14487
|
}
|
|
14488
14488
|
],
|
|
14489
|
-
"checksum": "sha256:
|
|
14489
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
14490
14490
|
"deprecations": [
|
|
14491
14491
|
{
|
|
14492
14492
|
"key": "tier",
|
|
@@ -14629,7 +14629,7 @@
|
|
|
14629
14629
|
"reason": "scaffold template for ticket-bundle tickets (ADR-101); carries no runtime frontmatter — emit-tickets fills it in per ticket"
|
|
14630
14630
|
}
|
|
14631
14631
|
],
|
|
14632
|
-
"generated_at": "2026-08-
|
|
14632
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
14633
14633
|
"packs": [
|
|
14634
14634
|
{
|
|
14635
14635
|
"artefact_count": 118,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1690f54c3b7262c13b6a12398d8750b90d202f7cbf332b2484041f6cdcc92388 discovery-manifest.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"checksum": "sha256:
|
|
3
|
-
"generated_at": "2026-08-
|
|
2
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
3
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
4
4
|
"packs": [
|
|
5
5
|
{
|
|
6
6
|
"always_on": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"checksum": "sha256:
|
|
3
|
-
"generated_at": "2026-08-
|
|
2
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
3
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
4
4
|
"scanner_version": "c24312e116f8",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
{
|