@uzysjung/agent-harness 26.176.0 → 26.177.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.
@@ -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.176.0",
1151
+ version: "26.177.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) return entry;
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 = {
@@ -5721,6 +5736,7 @@ export {
5721
5736
  installedClis,
5722
5737
  buildAssetEntries,
5723
5738
  skillNames,
5739
+ skillFolderOf,
5724
5740
  buildInstallLog,
5725
5741
  mergeRootFiles,
5726
5742
  hashContent,
@@ -5819,4 +5835,4 @@ smol-toml/dist/index.js:
5819
5835
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5820
5836
  *)
5821
5837
  */
5822
- //# sourceMappingURL=chunk-HB6UJWC6.js.map
5838
+ //# sourceMappingURL=chunk-JIVFWRYB.js.map