@rt-tools/agent-kit 0.29.2 → 0.29.3

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.
@@ -29,7 +29,7 @@ const CHECKS = CONFIG.layout?.checks ?? 'tools';
29
29
  /** The name of the entry as it lies in the tree. */
30
30
  const ENTRY = join(ROOT, CHECKS, 'specs-for.mjs');
31
31
 
32
- if (!Array.isArray(CONFIG.portableDirs) || CONFIG.portableDirs.length === 0) {
32
+ if (!Array.isArray(CONFIG.packageDirs) || CONFIG.packageDirs.length === 0) {
33
33
  console.log('check-spec-coverage: the tree declares no directories of package sources — there is nothing to judge');
34
34
  process.exit(0);
35
35
  }
@@ -67,6 +67,13 @@ const DEFAULTS = {
67
67
  * itself; only the source is entered here. Empty — the tree keeps no portable texts.
68
68
  */
69
69
  portableDirs: [],
70
+ /**
71
+ * Directories where the sources of the package itself lie: the files it carries to other trees.
72
+ * The specs entry and the coverage check judge them, and nothing else. A portable text is not
73
+ * the same thing: a consumer tree keeps texts with foreign addresses that leave by no package,
74
+ * and read as package sources they would each ask for a spec. Empty — the tree writes no package.
75
+ */
76
+ packageDirs: [],
70
77
  /**
71
78
  * The signs of reuse: which bundles the tree takes and where its own lie.
72
79
  *
@@ -118,7 +118,7 @@ function carried() {
118
118
  }
119
119
  };
120
120
 
121
- CONFIG.portableDirs.forEach(collect);
121
+ (CONFIG.packageDirs ?? []).forEach(collect);
122
122
 
123
123
  return found;
124
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rt-tools/agent-kit",
3
- "version": "0.29.2",
3
+ "version": "0.29.3",
4
4
  "description": "Переносимый слой правил для агента: законы, хуки, проверки и агенты, раскладываемые в репозиторий одной командой",
5
5
  "author": "RT Team",
6
6
  "license": "Apache-2.0",
index 1088bee..64a093c 100644
Binary file