@uzysjung/agent-harness 26.170.0 → 26.171.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/dist/{chunk-MGFWOWF4.js → chunk-U4X4Z333.js} +2 -49
- package/dist/chunk-U4X4Z333.js.map +1 -0
- package/dist/index.js +351 -525
- package/dist/index.js.map +1 -1
- package/dist/trust-tier-drift.js +1 -1
- package/package.json +1 -1
- package/templates/agents/reviewer.md +10 -62
- package/dist/chunk-MGFWOWF4.js.map +0 -1
|
@@ -1123,7 +1123,7 @@ import { dirname as dirname3, join as join4 } from "path";
|
|
|
1123
1123
|
// package.json
|
|
1124
1124
|
var package_default = {
|
|
1125
1125
|
name: "@uzysjung/agent-harness",
|
|
1126
|
-
version: "26.
|
|
1126
|
+
version: "26.171.0",
|
|
1127
1127
|
description: "Curate vetted AI-coding skills & plugins by your tech stack \u2014 install only what you need, across Claude Code, Codex, OpenCode & Antigravity",
|
|
1128
1128
|
type: "module",
|
|
1129
1129
|
publishConfig: {
|
|
@@ -1368,22 +1368,6 @@ function copyFile(source, target) {
|
|
|
1368
1368
|
mkdirSync(dirname2(target), { recursive: true });
|
|
1369
1369
|
copyFileSync(source, target);
|
|
1370
1370
|
}
|
|
1371
|
-
function copyDir(source, target, foreignOf) {
|
|
1372
|
-
if (!existsSync(source)) {
|
|
1373
|
-
throw new Error(`Source dir not found: ${source}`);
|
|
1374
|
-
}
|
|
1375
|
-
mkdirSync(target, { recursive: true });
|
|
1376
|
-
const skipped = [];
|
|
1377
|
-
for (const rel of listFilesRecursive(source)) {
|
|
1378
|
-
const foreign = foreignOf(rel);
|
|
1379
|
-
if (foreign !== null) {
|
|
1380
|
-
skipped.push(foreign);
|
|
1381
|
-
continue;
|
|
1382
|
-
}
|
|
1383
|
-
copyFile(join2(source, rel), join2(target, rel));
|
|
1384
|
-
}
|
|
1385
|
-
return skipped;
|
|
1386
|
-
}
|
|
1387
1371
|
var MAX_BACKUP_CLAIMS = 100;
|
|
1388
1372
|
function claimBackupPath(base, claim) {
|
|
1389
1373
|
for (let n = 1; n <= MAX_BACKUP_CLAIMS; n++) {
|
|
@@ -1665,38 +1649,11 @@ function mergeAssets(previous, current) {
|
|
|
1665
1649
|
function hashContent(content) {
|
|
1666
1650
|
return createHash("sha256").update(content, "utf8").digest("hex");
|
|
1667
1651
|
}
|
|
1668
|
-
function isHarnessOwned(baseline, key, current) {
|
|
1669
|
-
const recorded = baseline.get(key);
|
|
1670
|
-
return recorded !== void 0 && recorded === hashContent(current);
|
|
1671
|
-
}
|
|
1672
1652
|
function mergeExternalFiles(previous, current) {
|
|
1673
1653
|
const byPath = /* @__PURE__ */ new Map();
|
|
1674
1654
|
for (const file of [...previous ?? [], ...current]) byPath.set(file.path, file);
|
|
1675
1655
|
return [...byPath.values()];
|
|
1676
1656
|
}
|
|
1677
|
-
function collectSkillHashes(projectDir, templatesDir) {
|
|
1678
|
-
const skillsDir = join4(projectDir, ".claude/skills");
|
|
1679
|
-
return listFilesRecursive(skillsDir).filter((rel) => existsSync2(join4(templatesDir, "skills", rel))).map((rel) => ({
|
|
1680
|
-
path: rel,
|
|
1681
|
-
sha256: hashContent(readFileSync3(join4(skillsDir, rel), "utf8"))
|
|
1682
|
-
}));
|
|
1683
|
-
}
|
|
1684
|
-
function collectPolicyHashes(projectDir, templatesDir) {
|
|
1685
|
-
const out = [];
|
|
1686
|
-
for (const { dir, ext } of POLICY_DIRS) {
|
|
1687
|
-
const targetDir = join4(projectDir, ".claude", dir);
|
|
1688
|
-
const sourceDir = join4(templatesDir, dir);
|
|
1689
|
-
for (const rel of listFilesRecursive(targetDir)) {
|
|
1690
|
-
if (!rel.endsWith(ext)) continue;
|
|
1691
|
-
if (!existsSync2(join4(sourceDir, rel))) continue;
|
|
1692
|
-
out.push({
|
|
1693
|
-
path: `${dir}/${rel}`,
|
|
1694
|
-
sha256: hashContent(readFileSync3(join4(targetDir, rel), "utf8"))
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
return out;
|
|
1699
|
-
}
|
|
1700
1657
|
function writeInstallLog(projectDir, log) {
|
|
1701
1658
|
const path2 = installLogPath(projectDir);
|
|
1702
1659
|
mkdirSync2(dirname3(path2), { recursive: true });
|
|
@@ -2634,7 +2591,6 @@ export {
|
|
|
2634
2591
|
mergeOutside,
|
|
2635
2592
|
ensureDir,
|
|
2636
2593
|
copyFile,
|
|
2637
|
-
copyDir,
|
|
2638
2594
|
backupFile,
|
|
2639
2595
|
backupFromCopy,
|
|
2640
2596
|
claimBackupDir,
|
|
@@ -2676,10 +2632,7 @@ export {
|
|
|
2676
2632
|
buildInstallLog,
|
|
2677
2633
|
mergeRootFiles,
|
|
2678
2634
|
hashContent,
|
|
2679
|
-
isHarnessOwned,
|
|
2680
2635
|
mergeExternalFiles,
|
|
2681
|
-
collectSkillHashes,
|
|
2682
|
-
collectPolicyHashes,
|
|
2683
2636
|
writeInstallLog,
|
|
2684
2637
|
readInstallLog,
|
|
2685
2638
|
readInstallLogStatus,
|
|
@@ -2703,4 +2656,4 @@ export {
|
|
|
2703
2656
|
CATEGORIES,
|
|
2704
2657
|
CATEGORY_TITLES
|
|
2705
2658
|
};
|
|
2706
|
-
//# sourceMappingURL=chunk-
|
|
2659
|
+
//# sourceMappingURL=chunk-U4X4Z333.js.map
|