@event4u/agent-config 9.27.0 → 9.29.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 +13 -12
- package/CHANGELOG.md +165 -0
- package/README.md +1 -1
- package/agents/templates/.ai-council.yml.example +55 -24
- package/dist/agent-src/commands/analyze/conformance.md +24 -0
- package/dist/agent-src/commands/cost/report.md +2 -2
- package/dist/agent-src/commands/team/adversarial.md +8 -7
- package/dist/agent-src/commands/team/delegate.md +13 -12
- package/dist/agent-src/commands/team/review.md +9 -8
- package/dist/agent-src/commands/team/status.md +9 -8
- package/dist/agent-src/commands/team.md +29 -19
- package/dist/agent-src/contexts/execution/auto-dispatch-classification.md +88 -2
- package/dist/agent-src/contexts/execution/auto-orchestration-activation.md +29 -21
- package/dist/agent-src/contexts/execution/host-capability-manifest.md +26 -15
- package/dist/agent-src/contexts/execution/orchestration-telemetry.md +28 -3
- package/dist/agent-src/contexts/execution/subagent-response-contract.md +54 -0
- package/dist/agent-src/contexts/execution/subagent-routing.md +13 -11
- package/dist/agent-src/contexts/execution/subagent-spawn-contract.md +25 -0
- package/dist/agent-src/contexts/execution/subagent-steering.md +6 -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 +38 -10
- 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/settings-ask-protocol.md +8 -7
- package/dist/agent-src/rules/strategy-safety-floor.md +1 -1
- package/dist/agent-src/rules/token-budget-discipline.md +4 -2
- 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/forensics-report/SKILL.md +114 -0
- package/dist/agent-src/skills/forensics-report/evals/triggers.json +17 -0
- 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/premortem/SKILL.md +30 -1
- package/dist/agent-src/skills/project-analyzer/SKILL.md +1 -1
- package/dist/agent-src/skills/reasoning-orchestrator/SKILL.md +2 -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/subagent-orchestration/SKILL.md +7 -5
- package/dist/agent-src/skills/subagent-orchestration/schemas/subagent-status.json +61 -3
- package/dist/agent-src/skills/test-case-discovery/SKILL.md +1 -1
- package/dist/agent-src/skills/universal-project-analysis/SKILL.md +1 -1
- package/dist/agent-src/templates/AGENTS.md +8 -12
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/roadmaps.md +23 -0
- package/dist/cli/registry.js +7 -0
- package/dist/cli/registry.js.map +1 -1
- package/dist/cli-delegate/chunk-66OVWGB5.js +270 -0
- package/dist/cli-delegate/{chunk-HJ6DAJHR.js → chunk-LCFJIQ4J.js} +89 -7
- package/dist/cli-delegate/{chunk-VSYT7OHO.js → chunk-LVRYBKTI.js} +31 -2
- package/dist/cli-delegate/{chunk-DVRS2KVR.js → chunk-MMXA5GY7.js} +10 -17
- package/dist/cli-delegate/{chunk-WR6GTRHJ.js → chunk-MP3JT3IU.js} +3 -3
- package/dist/cli-delegate/{chunk-3KJIMFTB.js → chunk-NZ5N2XQL.js} +467 -305
- package/dist/cli-delegate/{chunk-AIIUU73N.js → chunk-OJM3MBJM.js} +1 -1
- package/dist/cli-delegate/{chunk-BCPIOAGV.js → chunk-RCIA67XN.js} +117 -96
- 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 +10 -47
- package/dist/cli-delegate/cmd_converge.js +3 -3
- package/dist/cli-delegate/cmd_doctor.js +10 -6
- package/dist/cli-delegate/cmd_explain.js +80 -330
- package/dist/cli-delegate/cmd_export.js +6 -6
- package/dist/cli-delegate/cmd_fleet.js +3 -3
- package/dist/cli-delegate/cmd_handoff.js +3 -3
- 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 +6 -6
- 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 +266 -0
- package/dist/cli-delegate/cmd_settings_migrate.js +6 -6
- package/dist/cli-delegate/cmd_settings_set.js +8 -2968
- package/dist/cli-delegate/cmd_sync.js +6 -6
- package/dist/cli-delegate/cmd_uninstall.js +6 -6
- 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 +6 -6
- package/dist/cli-delegate/cmd_versions.js +4 -4
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +164 -55
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +4 -3
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +44 -5
- package/dist/discovery/trust-report.md +11 -11
- package/dist/discovery/workspaces.json +16 -6
- package/dist/hooks/dispatch.js +9341 -6131
- package/dist/install/install.mjs +739 -524
- package/dist/mcp/registry-manifest.json +3 -3
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +777 -281
- package/dist/router.json +1 -1
- package/dist/scripts/_lib/agent_settings.js +134 -15
- package/dist/scripts/_lib/agent_settings.js.map +1 -1
- package/dist/scripts/condense.js +147 -2
- package/dist/scripts/condense.js.map +1 -1
- package/dist/server/schemas/settings.js +6 -7
- package/dist/server/schemas/settings.js.map +1 -1
- package/dist/shared/settingsCarveOut.js +0 -9
- package/dist/shared/settingsCarveOut.js.map +1 -1
- package/dist/shared/settingsClasses.js +11 -9
- package/dist/shared/settingsClasses.js.map +1 -1
- package/dist/ui/assets/{index-DmR0mbk4.js → index-JDAF00bC.js} +2 -2
- package/dist/ui/assets/{index-DmR0mbk4.js.map → index-JDAF00bC.js.map} +1 -1
- package/dist/ui/index.html +1 -1
- package/docs/contracts/settings-classes.md +68 -17
- package/docs/guidelines/agent-infra/memory-access.md +14 -3
- package/package.json +1 -1
- package/src/agent-src/templates/AGENTS.md +8 -12
- package/src/config/agent-settings.template.yml +52 -66
- package/src/config/budgets.yml +29 -0
- package/src/config/discovery/packs.yml +11 -0
- package/src/config/discovery/workspaces.yml +1 -1
- package/src/config/evaluator-budgets.json +4 -4
- package/src/config/gate-coverage.yml +26 -0
- package/src/config/gate-violation-baselines.json +3 -3
- package/src/scripts/_cli/cmd_brand_status.ts +174 -0
- package/src/scripts/_cli/cmd_conformance.ts +14 -42
- package/src/scripts/_cli/cmd_doctor.ts +65 -48
- 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 +140 -16
- package/src/scripts/_lib/auto_dispatch.corpus.test.ts +1 -1
- package/src/scripts/_lib/auto_dispatch.ts +23 -18
- package/src/scripts/_lib/capsule_trigger.ts +124 -0
- package/src/scripts/_lib/carrier_divergence.ts +135 -0
- package/src/scripts/_lib/host_capability.ts +144 -4
- package/src/scripts/_lib/judgment_ladder.ts +382 -0
- package/src/scripts/_lib/orchestration_gate.ts +8 -0
- package/src/scripts/_lib/orchestration_record.ts +37 -0
- package/src/scripts/_lib/orchestration_savings.ts +1 -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 +489 -0
- package/src/scripts/_lib/self_repair_store.ts +128 -0
- package/src/scripts/_lib/subagent_capsule.ts +182 -0
- package/src/scripts/_lib/subagent_response.ts +19 -0
- package/src/scripts/_lib/subagent_spawn.ts +13 -0
- package/src/scripts/_lib/subagent_steering.ts +9 -4
- package/src/scripts/_lib/tier_budget_routing.ts +6 -1
- package/src/scripts/_lib/transcript_entry.ts +80 -0
- package/src/scripts/_lib/worker_budget.ts +37 -2
- package/src/scripts/ai_council/clients.ts +76 -54
- package/src/scripts/ai_council/config.ts +94 -6
- package/src/scripts/ai_council/handoff.ts +113 -0
- package/src/scripts/ai_council/modes.ts +19 -4
- package/src/scripts/ai_council/orchestrator.ts +105 -0
- package/src/scripts/ai_council/quorum.ts +84 -0
- package/src/scripts/ai_council/session.ts +44 -0
- package/src/scripts/ai_council/transport_resolver.ts +127 -1
- package/src/scripts/ai_team/availability.ts +110 -0
- package/src/scripts/ai_team/config.ts +34 -14
- package/src/scripts/ai_team/team_dispatch.ts +71 -29
- package/src/scripts/bench_critic_protocol.ts +396 -0
- package/src/scripts/check_branch_freshness.ts +255 -0
- package/src/scripts/check_council_config_location.ts +125 -1
- package/src/scripts/check_detector_corpus.ts +202 -0
- package/src/scripts/check_hook_bundle_freshness.ts +4 -1
- package/src/scripts/check_standing_rule_delivery.ts +314 -0
- package/src/scripts/condense.ts +162 -2
- 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 +527 -32
- package/src/scripts/forensics_report.ts +333 -0
- 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 +484 -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/lint_discovery_vocabulary.ts +2 -0
- package/src/scripts/lint_never_silent.ts +276 -0
- package/src/scripts/lint_no_activation_gates.ts +271 -0
- package/src/scripts/measure_scope_dedup.ts +19 -13
- package/src/scripts/onboarding_gate_hook.ts +40 -1
- package/src/scripts/orchestration_record.ts +12 -1
- package/src/scripts/preamble_byte_census.ts +9 -20
- package/src/scripts/rebuild_hook_bundle.ts +177 -0
- package/src/scripts/release.ts +74 -2
- 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 +95 -39
- package/src/scripts/score_skill_selection.ts +19 -5
- package/src/scripts/self_repair_cli.ts +470 -0
- package/src/scripts/self_repair_hook.ts +241 -0
- package/src/scripts/team_events_spike.ts +271 -0
- package/src/scripts/team_review_gate_hook.ts +31 -9
- package/src/server/schemas/settings.ts +10 -17
- package/src/shared/settingsCarveOut.ts +0 -10
- package/src/shared/settingsClasses.ts +11 -9
|
@@ -0,0 +1,134 @@
|
|
|
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-LCFJIQ4J.js";
|
|
5
|
+
import "./chunk-NDJLNC6Q.js";
|
|
6
|
+
import "./chunk-J55WI3RR.js";
|
|
7
|
+
|
|
8
|
+
// src/scripts/_cli/cmd_brand_status.ts
|
|
9
|
+
import * as fs from "node:fs";
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
import process2 from "node:process";
|
|
12
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
13
|
+
|
|
14
|
+
// src/agent-src/templates/scripts/work_engine/directives/ui/scaffold.ts
|
|
15
|
+
var BRAND_TOKEN_PATHS = [
|
|
16
|
+
"tokens.json",
|
|
17
|
+
"assets/tokens.json",
|
|
18
|
+
"resources/tokens.json",
|
|
19
|
+
"agents/settings/brand/tokens.json"
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
// src/scripts/_cli/cmd_brand_status.ts
|
|
23
|
+
function findBrandTokens(root) {
|
|
24
|
+
for (const rel of BRAND_TOKEN_PATHS) {
|
|
25
|
+
try {
|
|
26
|
+
if (fs.statSync(path.join(root, rel)).isFile()) return rel;
|
|
27
|
+
} catch {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function findDottedNearMisses(root) {
|
|
34
|
+
const found = [];
|
|
35
|
+
for (const rel of BRAND_TOKEN_PATHS) {
|
|
36
|
+
const dotted = path.join(path.dirname(rel), `.${path.basename(rel)}`);
|
|
37
|
+
const normalised = dotted.startsWith("./") ? dotted.slice(2) : dotted;
|
|
38
|
+
try {
|
|
39
|
+
if (fs.statSync(path.join(root, normalised)).isFile()) found.push(normalised);
|
|
40
|
+
} catch {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return found;
|
|
45
|
+
}
|
|
46
|
+
function runBrandStatus(opts) {
|
|
47
|
+
const out = [];
|
|
48
|
+
const [projectRoot] = resolve_project_root(null, { cwd: opts.cwd });
|
|
49
|
+
const found = findBrandTokens(projectRoot);
|
|
50
|
+
const nearMisses = findDottedNearMisses(projectRoot);
|
|
51
|
+
if (opts.json) {
|
|
52
|
+
out.push(
|
|
53
|
+
JSON.stringify(
|
|
54
|
+
{
|
|
55
|
+
brand_layer_present: found !== null,
|
|
56
|
+
tokens_file: found,
|
|
57
|
+
searched: [...BRAND_TOKEN_PATHS],
|
|
58
|
+
dotted_near_misses: nearMisses,
|
|
59
|
+
project_root: projectRoot
|
|
60
|
+
},
|
|
61
|
+
null,
|
|
62
|
+
2
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
return { code: 0, out, err: [] };
|
|
66
|
+
}
|
|
67
|
+
if (found !== null) {
|
|
68
|
+
out.push(`brand layer present \u2014 ${found}`);
|
|
69
|
+
out.push(" brand-source-of-truth applies: these tokens outrank the corpus.");
|
|
70
|
+
} else {
|
|
71
|
+
out.push("brand layer none");
|
|
72
|
+
out.push(` searched ${BRAND_TOKEN_PATHS.join(", ")}`);
|
|
73
|
+
out.push(" meaning no consumer brand to be authoritative. The corpus is the only");
|
|
74
|
+
out.push(" ground, and every emitted value is corpus-sourced \u2014 which is the");
|
|
75
|
+
out.push(" greenfield branch of brand-source-of-truth, not a misconfiguration.");
|
|
76
|
+
}
|
|
77
|
+
if (nearMisses.length > 0) {
|
|
78
|
+
out.push(
|
|
79
|
+
"",
|
|
80
|
+
"\u26A0\uFE0F A dot-prefixed tokens file exists and is NOT read by anything:",
|
|
81
|
+
...nearMisses.map((m) => ` ${m}`),
|
|
82
|
+
" The resolver searches `tokens.json`, never `.tokens.json`. Rename it to one",
|
|
83
|
+
" of the searched paths above, or it stays invisible while looking authored."
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
return { code: 0, out, err: [] };
|
|
87
|
+
}
|
|
88
|
+
function parseArgv(argv) {
|
|
89
|
+
let json = false;
|
|
90
|
+
for (const a of argv) {
|
|
91
|
+
if (a === "--json") {
|
|
92
|
+
json = true;
|
|
93
|
+
} else if (a === "-h" || a === "--help") {
|
|
94
|
+
return { ok: false, message: "usage: agent-config brand:status [--json]" };
|
|
95
|
+
} else {
|
|
96
|
+
return { ok: false, message: `unknown argument: ${a}` };
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return { ok: true, json };
|
|
100
|
+
}
|
|
101
|
+
function main(argv = process2.argv.slice(2)) {
|
|
102
|
+
const parsed = parseArgv(argv);
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
process2.stderr.write(`${parsed.message ?? "usage error"}
|
|
105
|
+
`);
|
|
106
|
+
return 2;
|
|
107
|
+
}
|
|
108
|
+
const result = runBrandStatus({ cwd: process2.cwd(), json: parsed.json === true });
|
|
109
|
+
for (const line of result.out) process2.stdout.write(`${line}
|
|
110
|
+
`);
|
|
111
|
+
for (const line of result.err) process2.stderr.write(`${line}
|
|
112
|
+
`);
|
|
113
|
+
return result.code;
|
|
114
|
+
}
|
|
115
|
+
function _isCliEntry() {
|
|
116
|
+
if (process2.argv[1] === void 0) return false;
|
|
117
|
+
const argvUrl = pathToFileURL(path.resolve(process2.argv[1])).href;
|
|
118
|
+
if (import.meta.url === argvUrl) return true;
|
|
119
|
+
try {
|
|
120
|
+
return fs.realpathSync(fileURLToPath(import.meta.url)) === fs.realpathSync(path.resolve(process2.argv[1]));
|
|
121
|
+
} catch {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (_isCliEntry()) {
|
|
126
|
+
process2.exitCode = main();
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
findBrandTokens,
|
|
130
|
+
findDottedNearMisses,
|
|
131
|
+
main,
|
|
132
|
+
parseArgv,
|
|
133
|
+
runBrandStatus
|
|
134
|
+
};
|
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
_run_checks,
|
|
12
12
|
_run_checks_no_manifest,
|
|
13
13
|
_scan_foreign
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RCIA67XN.js";
|
|
15
15
|
import "./chunk-FTAISGDQ.js";
|
|
16
|
+
import "./chunk-LVRYBKTI.js";
|
|
16
17
|
import "./chunk-736JCWLM.js";
|
|
17
18
|
import {
|
|
18
19
|
atomicAppendLine,
|
|
@@ -21,18 +22,17 @@ import {
|
|
|
21
22
|
} from "./chunk-63WSP6YZ.js";
|
|
22
23
|
import "./chunk-GRRPEPRN.js";
|
|
23
24
|
import "./chunk-NXFWFAYV.js";
|
|
25
|
+
import "./chunk-LCFJIQ4J.js";
|
|
26
|
+
import "./chunk-NDJLNC6Q.js";
|
|
24
27
|
import {
|
|
25
28
|
detectToolPresence
|
|
26
29
|
} from "./chunk-OMIVVCG2.js";
|
|
27
|
-
import {
|
|
28
|
-
resolvePackageRoot
|
|
29
|
-
} from "./chunk-MCJYCQPF.js";
|
|
30
|
-
import "./chunk-VSYT7OHO.js";
|
|
31
|
-
import "./chunk-HJ6DAJHR.js";
|
|
32
|
-
import "./chunk-NDJLNC6Q.js";
|
|
33
30
|
import {
|
|
34
31
|
require_dist
|
|
35
32
|
} from "./chunk-OY53J6II.js";
|
|
33
|
+
import {
|
|
34
|
+
resolvePackageRoot
|
|
35
|
+
} from "./chunk-MCJYCQPF.js";
|
|
36
36
|
import {
|
|
37
37
|
__toESM
|
|
38
38
|
} from "./chunk-J55WI3RR.js";
|
|
@@ -388,13 +388,6 @@ function _check_lean_projection(projectRoot, packageRoot = PACKAGE_ROOT, project
|
|
|
388
388
|
remedy: ""
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
var HOST_MANIFEST_KEYS = /* @__PURE__ */ new Set([
|
|
392
|
-
"schema_version",
|
|
393
|
-
"subagent_spawn",
|
|
394
|
-
"parallel_spawn",
|
|
395
|
-
"status_polling",
|
|
396
|
-
"separate_quota_pool"
|
|
397
|
-
]);
|
|
398
391
|
function _check_host_manifest(projectRoot) {
|
|
399
392
|
const detected = Object.entries(detectToolPresence(projectRoot)).filter(([, v]) => v === true).map(([k]) => k);
|
|
400
393
|
const detectedNote = detected.length > 0 ? `detected surfaces: ${detected.join(", ")}` : "no surfaces detected";
|
|
@@ -403,7 +396,7 @@ function _check_host_manifest(projectRoot) {
|
|
|
403
396
|
return {
|
|
404
397
|
id: "host-manifest",
|
|
405
398
|
status: "ok",
|
|
406
|
-
message: `no .agent-settings.yml \u2014
|
|
399
|
+
message: `no .agent-settings.yml \u2014 host capability is always probe/registry-resolved (${detectedNote})`,
|
|
407
400
|
remedy: ""
|
|
408
401
|
};
|
|
409
402
|
}
|
|
@@ -424,44 +417,14 @@ function _check_host_manifest(projectRoot) {
|
|
|
424
417
|
return {
|
|
425
418
|
id: "host-manifest",
|
|
426
419
|
status: "ok",
|
|
427
|
-
message: `no host_capabilities override \u2014
|
|
420
|
+
message: `no host_capabilities override \u2014 host capability is always probe/registry-resolved (${detectedNote})`,
|
|
428
421
|
remedy: ""
|
|
429
422
|
};
|
|
430
423
|
}
|
|
431
|
-
if (typeof manifest !== "object" || Array.isArray(manifest)) {
|
|
432
|
-
return {
|
|
433
|
-
id: "host-manifest",
|
|
434
|
-
status: "fail",
|
|
435
|
-
message: "subagents.host_capabilities is not a mapping",
|
|
436
|
-
remedy: "use the four boolean fields from the host-capability manifest contract"
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
const problems = [];
|
|
440
|
-
for (const [key, value] of Object.entries(manifest)) {
|
|
441
|
-
if (!HOST_MANIFEST_KEYS.has(key)) {
|
|
442
|
-
problems.push(`unknown key '${key}'`);
|
|
443
|
-
continue;
|
|
444
|
-
}
|
|
445
|
-
if (key === "schema_version") {
|
|
446
|
-
if (value !== 1) problems.push(`schema_version must be 1 (got ${JSON.stringify(value)})`);
|
|
447
|
-
continue;
|
|
448
|
-
}
|
|
449
|
-
if (typeof value !== "boolean") {
|
|
450
|
-
problems.push(`'${key}' must be boolean (got ${JSON.stringify(value)})`);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (problems.length > 0) {
|
|
454
|
-
return {
|
|
455
|
-
id: "host-manifest",
|
|
456
|
-
status: "fail",
|
|
457
|
-
message: `host_capabilities malformed: ${problems.slice(0, 4).join("; ")}`,
|
|
458
|
-
remedy: "only schema_version:1 + four boolean capability fields are valid"
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
424
|
return {
|
|
462
425
|
id: "host-manifest",
|
|
463
426
|
status: "ok",
|
|
464
|
-
message: `host_capabilities
|
|
427
|
+
message: `subagents.host_capabilities is deprecated and ignored \u2014 host capability is always probe/registry-resolved (${detectedNote})`,
|
|
465
428
|
remedy: ""
|
|
466
429
|
};
|
|
467
430
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
2
|
import { createRequire as __acCreateRequire } from 'node:module'; const require = globalThis.require ?? __acCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
resolvePackageRoot
|
|
5
|
-
} from "./chunk-MCJYCQPF.js";
|
|
6
3
|
import {
|
|
7
4
|
write_target
|
|
8
5
|
} from "./chunk-NDJLNC6Q.js";
|
|
9
6
|
import {
|
|
10
7
|
require_dist
|
|
11
8
|
} from "./chunk-OY53J6II.js";
|
|
9
|
+
import {
|
|
10
|
+
resolvePackageRoot
|
|
11
|
+
} from "./chunk-MCJYCQPF.js";
|
|
12
12
|
import {
|
|
13
13
|
__toESM
|
|
14
14
|
} from "./chunk-J55WI3RR.js";
|
|
@@ -62,19 +62,21 @@ import {
|
|
|
62
62
|
_scan_foreign,
|
|
63
63
|
_settings_layer_chain,
|
|
64
64
|
_skipped_manifest_check,
|
|
65
|
+
_team_codex_binary_name,
|
|
65
66
|
_wizard_state_path,
|
|
66
|
-
main
|
|
67
|
-
|
|
67
|
+
main,
|
|
68
|
+
shutilWhich
|
|
69
|
+
} from "./chunk-RCIA67XN.js";
|
|
68
70
|
import "./chunk-FTAISGDQ.js";
|
|
71
|
+
import "./chunk-LVRYBKTI.js";
|
|
69
72
|
import "./chunk-736JCWLM.js";
|
|
70
73
|
import "./chunk-63WSP6YZ.js";
|
|
71
74
|
import "./chunk-GRRPEPRN.js";
|
|
72
75
|
import "./chunk-NXFWFAYV.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-VSYT7OHO.js";
|
|
75
|
-
import "./chunk-HJ6DAJHR.js";
|
|
76
|
+
import "./chunk-LCFJIQ4J.js";
|
|
76
77
|
import "./chunk-NDJLNC6Q.js";
|
|
77
78
|
import "./chunk-OY53J6II.js";
|
|
79
|
+
import "./chunk-MCJYCQPF.js";
|
|
78
80
|
import "./chunk-J55WI3RR.js";
|
|
79
81
|
export {
|
|
80
82
|
ArgparseExit,
|
|
@@ -138,6 +140,8 @@ export {
|
|
|
138
140
|
_scan_foreign,
|
|
139
141
|
_settings_layer_chain,
|
|
140
142
|
_skipped_manifest_check,
|
|
143
|
+
_team_codex_binary_name,
|
|
141
144
|
_wizard_state_path,
|
|
142
|
-
main
|
|
145
|
+
main,
|
|
146
|
+
shutilWhich
|
|
143
147
|
};
|