pasika 0.10.149 → 0.10.151

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.
@@ -11674,15 +11674,18 @@ function scopeOf(symbol, sheet) {
11674
11674
  return "top-level";
11675
11675
  }
11676
11676
  function groupForConsumers(consumers) {
11677
- if (consumers.length === 1) return consumers[0] ?? "";
11678
- return [
11679
- ...new Set(
11680
- consumers.map((consumer) => {
11681
- const parts = consumer.split("/");
11682
- return parts[0] === "features" ? parts.slice(0, 2).join("/") : parts[0] ?? "";
11683
- })
11684
- )
11685
- ].sort().join(", ");
11677
+ const scopes = /* @__PURE__ */ new Map();
11678
+ for (const consumer of consumers) {
11679
+ const parts = consumer.split("/");
11680
+ const scope = parts[0] === "features" ? parts.slice(0, 2).join("/") : parts[0] ?? "";
11681
+ const paths = scopes.get(scope) ?? [];
11682
+ paths.push(consumer);
11683
+ scopes.set(scope, paths);
11684
+ }
11685
+ return [...scopes].map(([scope, paths]) => {
11686
+ const concretePaths = [...new Set(paths.filter((consumer) => consumer !== scope))];
11687
+ return concretePaths.length === 1 ? concretePaths[0] ?? scope : scope;
11688
+ }).sort().join(", ");
11686
11689
  }
11687
11690
  var themeTokenOrderRule = {
11688
11691
  meta: {
@@ -11761,7 +11764,8 @@ var themeTokenOrderRule = {
11761
11764
  fix(fixer) {
11762
11765
  const start = context.sourceCode.getIndexFromLoc({ line: currentGroup.line, column: 1 });
11763
11766
  const end = start + (lines[currentGroup.line - 1] ?? "").length;
11764
- return fixer.replaceTextRange([start, end], `/* Group: ${item.owner} */`);
11767
+ const indentation = /^\s*/u.exec(lines[currentGroup.line - 1] ?? "")?.[0] ?? "";
11768
+ return fixer.replaceTextRange([start, end], `${indentation}/* Group: ${item.owner} */`);
11765
11769
  }
11766
11770
  } : {}
11767
11771
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.149",
3
+ "version": "0.10.151",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",