agentwheel 0.19.8 → 0.19.10

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/index.js CHANGED
@@ -7369,7 +7369,7 @@ async function expandFile(file, packageRoot, appendEntries, artifactPaths, optio
7369
7369
  const expanded = await expandContent(raw, packageRoot, [owner], artifactPaths, options);
7370
7370
  let content = expanded.content;
7371
7371
  const composedFrom = [...expanded.composedFrom];
7372
- const appliedCompositionRules = /* @__PURE__ */ new Set();
7372
+ const appliedComposeIdentities = /* @__PURE__ */ new Set();
7373
7373
  for (const external of appendEntries) {
7374
7374
  const { entry } = external;
7375
7375
  const included = await expandInclude(entry.include, external.packageRoot, external.artifactPaths, {
@@ -7380,12 +7380,12 @@ async function expandFile(file, packageRoot, appendEntries, artifactPaths, optio
7380
7380
  chain: [owner]
7381
7381
  });
7382
7382
  if (!included) continue;
7383
+ const markerMode = entry.markers === false ? "plain" : "markers";
7384
+ const identity = `${markerMode}\0${included.identity}`;
7383
7385
  if (external.deduplicate) {
7384
- const markerMode = entry.markers === false ? "plain" : "markers";
7385
- const identity = `${markerMode}\0${composedLineageKey(included.composedFrom)}`;
7386
- if (appliedCompositionRules.has(identity)) continue;
7387
- appliedCompositionRules.add(identity);
7386
+ if (appliedComposeIdentities.has(identity)) continue;
7388
7387
  }
7388
+ appliedComposeIdentities.add(identity);
7389
7389
  content = `${content.trimEnd()}
7390
7390
 
7391
7391
  ${included.rendered}
@@ -7473,16 +7473,18 @@ async function expandInclude(selector, packageRoot, artifactPaths, options) {
7473
7473
  nodeId: includeNodeId
7474
7474
  });
7475
7475
  const contentHash = sha256(expanded.content);
7476
+ const identity = `${includeNodeId ?? resolve11(includePackageRoot)}\0${parsed.selector}\0${contentHash}`;
7476
7477
  const ownEntry = { selector: displaySelector, hash: contentHash };
7477
7478
  const composedFrom = uniqueComposedFrom([ownEntry, ...expanded.composedFrom]);
7478
- if (!options.markers) return { rendered: expanded.content, composedFrom };
7479
+ if (!options.markers) return { rendered: expanded.content, composedFrom, identity };
7479
7480
  return {
7480
7481
  rendered: [
7481
7482
  `<!-- BEGIN openpack:include ${displaySelector} sha256:${contentHash.slice(0, markerHashLength)} -->`,
7482
7483
  expanded.content.trimEnd(),
7483
7484
  `<!-- END openpack:include ${displaySelector} -->`
7484
7485
  ].join("\n"),
7485
- composedFrom
7486
+ composedFrom,
7487
+ identity
7486
7488
  };
7487
7489
  }
7488
7490
  function parseOpenPackIncludeSelector(selector) {
@@ -7598,9 +7600,6 @@ function uniqueComposedFrom(entries) {
7598
7600
  const byKey = new Map(entries.map((entry) => [`${entry.selector}\0${entry.hash}`, entry]));
7599
7601
  return [...byKey.values()].sort((a, b) => `${a.selector}:${a.hash}`.localeCompare(`${b.selector}:${b.hash}`));
7600
7602
  }
7601
- function composedLineageKey(entries) {
7602
- return entries.map((entry) => `${entry.selector}\0${entry.hash}`).sort((a, b) => a.localeCompare(b)).join("");
7603
- }
7604
7603
  function artifactKey(artifact) {
7605
7604
  return `${artifact.type}:${artifact.name}:${artifact.channel ?? "managed"}`;
7606
7605
  }
package/openpack.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "name": "NestDevLab/agentwheel",
4
- "version": "0.19.8",
4
+ "version": "0.19.10",
5
5
  "provides": [
6
6
  { "type": "skills", "path": "skills" }
7
7
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentwheel",
3
- "version": "0.19.8",
3
+ "version": "0.19.10",
4
4
  "description": "Weave skills, rules, and instructions across every AI agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.19.8"
8
+ version: "0.19.10"
9
9
  ---
10
10
 
11
11
  # agentwheel
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.19.8"
8
+ version: "0.19.10"
9
9
  ---
10
10
 
11
11
  # Agentwheel Discovery