feat: Athena OS Фаза 2 — generic chezmoi-канон Мозга
chezmoi-source (чистая пересборка, не дамп 1.2 ГБ): - dot_claude: CLAUDE.md лин-роутер, AGENTS.md.tmpl (VPS вычищен), settings.json.tmpl (deny-щит 20 + security-guard hook), rules (structure + ECC 21 язык), 30 generic ECC-агентов, health-check - dot_codex: symlink-паритет; dot_agents: registry 13 скриптов HOME-генерик + методология docs - плагины: plugins.manifest + bootstrap Слой 1b (marketplace+install) - launchd: health.plist (PATH-фикс 127) + session-reaper.example - smoke++: secret-токен guard + канон-проверки (зелёный) - 0 hard личных данных; cut личного (kb/references/gsd/owner) → Ф4
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// PostToolUse hook (matcher: Skill). Appends one line per skill invocation.
|
||||
// Fast, side-effect-only, never throws into the harness. harness=claude.
|
||||
let d = "";
|
||||
process.stdin.on("data", (c) => (d += c));
|
||||
process.stdin.on("end", () => {
|
||||
try {
|
||||
const i = JSON.parse(d || "{}");
|
||||
if (i.tool_name !== "Skill") return;
|
||||
const ti = i.tool_input || {};
|
||||
const sk = ti.skill || ti.command || "";
|
||||
if (!sk) return;
|
||||
const fs = require("fs");
|
||||
const os = require("os");
|
||||
const logPath = require("path").join(os.homedir(), ".agents/registry/usage.log");
|
||||
const line = new Date().toISOString() + "\tclaude\t" + sk + "\n";
|
||||
fs.appendFileSync(logPath, line);
|
||||
} catch (e) {
|
||||
/* never break the tool pipeline */
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user