@uzysjung/agent-harness 26.176.0 → 26.178.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-HB6UJWC6.js → chunk-543MIQR5.js} +33 -3
- package/dist/chunk-543MIQR5.js.map +1 -0
- package/dist/index.js +681 -324
- package/dist/index.js.map +1 -1
- package/dist/trust-tier-drift.js +1 -1
- package/package.json +1 -1
- package/templates/rules/ship-checklist.md +1 -1
- package/templates/rules/test-policy.md +8 -8
- package/templates/settings.json +1 -1
- package/templates/skills/self-hosted-github-runner/SKILL.md +78 -45
- package/templates/skills/self-hosted-github-runner/scripts/runner.sh +205 -0
- package/dist/chunk-HB6UJWC6.js.map +0 -1
|
@@ -1148,7 +1148,7 @@ import { dirname as dirname3, join as join4 } from "path";
|
|
|
1148
1148
|
// package.json
|
|
1149
1149
|
var package_default = {
|
|
1150
1150
|
name: "@uzysjung/agent-harness",
|
|
1151
|
-
version: "26.
|
|
1151
|
+
version: "26.178.0",
|
|
1152
1152
|
description: "Curate vetted AI-coding skills & plugins by your tech stack \u2014 install only what you need, across Claude Code, Codex, OpenCode & Antigravity",
|
|
1153
1153
|
type: "module",
|
|
1154
1154
|
publishConfig: {
|
|
@@ -1591,7 +1591,19 @@ function buildAssetEntries(report, scope, previous) {
|
|
|
1591
1591
|
...skillNames(recordedBefore, scope, r.skills)
|
|
1592
1592
|
};
|
|
1593
1593
|
if (r.files === void 0) return entry;
|
|
1594
|
-
if (recordedBefore !== void 0 && recordedBefore.files === void 0)
|
|
1594
|
+
if (recordedBefore !== void 0 && (recordedBefore.files === void 0 || recordedBefore.filesPartial === true)) {
|
|
1595
|
+
const known = /* @__PURE__ */ new Set([
|
|
1596
|
+
...(recordedBefore.files ?? []).map((f) => skillFolderOf(f.path)),
|
|
1597
|
+
...r.files.covered ?? []
|
|
1598
|
+
]);
|
|
1599
|
+
if (known.size === 0) return entry;
|
|
1600
|
+
const created = r.files.created.filter((f) => known.has(skillFolderOf(f.path)));
|
|
1601
|
+
return {
|
|
1602
|
+
...entry,
|
|
1603
|
+
files: mergeToolFiles(recordedBefore.files, { created, changed: r.files.changed }),
|
|
1604
|
+
filesPartial: true
|
|
1605
|
+
};
|
|
1606
|
+
}
|
|
1595
1607
|
return { ...entry, files: mergeToolFiles(recordedBefore?.files, r.files) };
|
|
1596
1608
|
});
|
|
1597
1609
|
}
|
|
@@ -1608,6 +1620,9 @@ function mergeToolFiles(prior, run) {
|
|
|
1608
1620
|
for (const f of run.created) byPath.set(f.path, f.sha256);
|
|
1609
1621
|
return [...byPath].map(([path2, sha256]) => ({ path: path2, sha256 }));
|
|
1610
1622
|
}
|
|
1623
|
+
function skillFolderOf(path2) {
|
|
1624
|
+
return path2.split("/").slice(0, 3).join("/");
|
|
1625
|
+
}
|
|
1611
1626
|
function assetToLogEntry(asset, scope, version) {
|
|
1612
1627
|
const detail = methodDetail(asset.method);
|
|
1613
1628
|
const entry = {
|
|
@@ -2126,6 +2141,19 @@ function stripHarnessImport(text) {
|
|
|
2126
2141
|
if (!endsWithNewline && result.endsWith("\n")) result = result.slice(0, -1);
|
|
2127
2142
|
return result === text ? null : result;
|
|
2128
2143
|
}
|
|
2144
|
+
function importsAgentsMd(text) {
|
|
2145
|
+
let inFence = false;
|
|
2146
|
+
for (const line of text.split("\n")) {
|
|
2147
|
+
if (/^\s*(?:```|~~~)/.test(line)) {
|
|
2148
|
+
inFence = !inFence;
|
|
2149
|
+
continue;
|
|
2150
|
+
}
|
|
2151
|
+
if (inFence) continue;
|
|
2152
|
+
const outsideCode = line.replace(/`[^`]*`/g, " ");
|
|
2153
|
+
if (/(?:^|\s)@(?:\.\/)?AGENTS\.md(?=\s|$)/.test(outsideCode)) return true;
|
|
2154
|
+
}
|
|
2155
|
+
return false;
|
|
2156
|
+
}
|
|
2129
2157
|
function hasHarnessImport(text) {
|
|
2130
2158
|
if (text.includes(IMPORT_MARKER_START)) return true;
|
|
2131
2159
|
let inFence = false;
|
|
@@ -5702,6 +5730,7 @@ export {
|
|
|
5702
5730
|
isUnfilledScaffold,
|
|
5703
5731
|
upsertHarnessImport,
|
|
5704
5732
|
stripHarnessImport,
|
|
5733
|
+
importsAgentsMd,
|
|
5705
5734
|
buildAssetSpec,
|
|
5706
5735
|
resolveRules,
|
|
5707
5736
|
TRACK_AGENTS,
|
|
@@ -5721,6 +5750,7 @@ export {
|
|
|
5721
5750
|
installedClis,
|
|
5722
5751
|
buildAssetEntries,
|
|
5723
5752
|
skillNames,
|
|
5753
|
+
skillFolderOf,
|
|
5724
5754
|
buildInstallLog,
|
|
5725
5755
|
mergeRootFiles,
|
|
5726
5756
|
hashContent,
|
|
@@ -5819,4 +5849,4 @@ smol-toml/dist/index.js:
|
|
|
5819
5849
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
5820
5850
|
*)
|
|
5821
5851
|
*/
|
|
5822
|
-
//# sourceMappingURL=chunk-
|
|
5852
|
+
//# sourceMappingURL=chunk-543MIQR5.js.map
|