@uzysjung/agent-harness 26.177.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.
@@ -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.177.0",
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: {
@@ -2141,6 +2141,19 @@ function stripHarnessImport(text) {
2141
2141
  if (!endsWithNewline && result.endsWith("\n")) result = result.slice(0, -1);
2142
2142
  return result === text ? null : result;
2143
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
+ }
2144
2157
  function hasHarnessImport(text) {
2145
2158
  if (text.includes(IMPORT_MARKER_START)) return true;
2146
2159
  let inFence = false;
@@ -5717,6 +5730,7 @@ export {
5717
5730
  isUnfilledScaffold,
5718
5731
  upsertHarnessImport,
5719
5732
  stripHarnessImport,
5733
+ importsAgentsMd,
5720
5734
  buildAssetSpec,
5721
5735
  resolveRules,
5722
5736
  TRACK_AGENTS,
@@ -5835,4 +5849,4 @@ smol-toml/dist/index.js:
5835
5849
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5836
5850
  *)
5837
5851
  */
5838
- //# sourceMappingURL=chunk-JIVFWRYB.js.map
5852
+ //# sourceMappingURL=chunk-543MIQR5.js.map