@inixiative/atlas 0.0.0 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inixiative/atlas",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "The map of the codebase — @atlas code annotations + a seam registry + a drift-proof MAP.md. A map that can only assert what is mechanically true.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,6 +27,10 @@ export type TagValue = string | string[] | PartOfForDescriptor;
27
27
 
28
28
  export type StampRule = {
29
29
  include: string | string[];
30
+ // paths matching `exclude` are skipped by this rule — for positional overlaps
31
+ // where a broad capture (e.g. `modules/$1/**`) must not claim a nested grouping
32
+ // (e.g. `modules/admin/**`, which has its own rules).
33
+ exclude?: string | string[];
30
34
  kind?: TagValue;
31
35
  partOf?: TagValue;
32
36
  constructs?: TagValue;
@@ -62,6 +62,11 @@ export const stampFor = (path: string, rules: StampRule[], registry: ConceptRegi
62
62
  const unresolved: { category: string; value: string }[] = [];
63
63
 
64
64
  for (const rule of rules) {
65
+ if (rule.exclude) {
66
+ const excludes = Array.isArray(rule.exclude) ? rule.exclude : [rule.exclude];
67
+ if (excludes.some((pattern) => matchGlob(pattern, path))) continue;
68
+ }
69
+
65
70
  const patterns = Array.isArray(rule.include) ? rule.include : [rule.include];
66
71
  let caps: Captures | null = null;
67
72
  for (const pattern of patterns) {