roadmapsmith 0.9.22 → 0.9.23

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roadmapsmith",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "description": "One-command evidence-backed ROADMAP.md generator and sync tool for AI coding agents, with shared RoadmapSmith plugin skills for Codex and Claude.",
5
5
  "author": {
6
6
  "name": "PapiScholz"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roadmapsmith",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "description": "One-command evidence-backed ROADMAP.md generator and sync tool for AI coding agents, with shared RoadmapSmith plugin skills for Codex and Claude.",
5
5
  "author": {
6
6
  "name": "PapiScholz"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roadmapsmith",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "description": "One-command evidence-backed ROADMAP.md generator and sync tool for AI coding agents, with shared RoadmapSmith plugin skills for Codex and Claude.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/skills.json CHANGED
@@ -29,67 +29,67 @@
29
29
  "name": "roadmap",
30
30
  "path": "skills/roadmap",
31
31
  "description": "Native slash palette for RoadmapSmith commands and recommended entrypoints across supported hosts.",
32
- "version": "0.9.22"
32
+ "version": "0.9.23"
33
33
  },
34
34
  {
35
35
  "name": "roadmap-zero",
36
36
  "path": "skills/roadmap-zero",
37
37
  "description": "Native slash entrypoint for the one-command Zero Mode CLI workflow.",
38
- "version": "0.9.22"
38
+ "version": "0.9.23"
39
39
  },
40
40
  {
41
41
  "name": "roadmap-maintain",
42
42
  "path": "skills/roadmap-maintain",
43
43
  "description": "Native slash entrypoint for the preserve-first generate + sync + audit flow.",
44
- "version": "0.9.22"
44
+ "version": "0.9.23"
45
45
  },
46
46
  {
47
47
  "name": "roadmap-status",
48
48
  "path": "skills/roadmap-status",
49
49
  "description": "Native slash readiness check grounded in roadmapsmith doctor JSON.",
50
- "version": "0.9.22"
50
+ "version": "0.9.23"
51
51
  },
52
52
  {
53
53
  "name": "roadmap-init",
54
54
  "path": "skills/roadmap-init",
55
55
  "description": "Native slash entrypoint for creating ROADMAP.md and AGENTS.md.",
56
- "version": "0.9.22"
56
+ "version": "0.9.23"
57
57
  },
58
58
  {
59
59
  "name": "roadmap-generate",
60
60
  "path": "skills/roadmap-generate",
61
61
  "description": "Native slash entrypoint for managed roadmap updates that require --full-regen before destructive replacement.",
62
- "version": "0.9.22"
62
+ "version": "0.9.23"
63
63
  },
64
64
  {
65
65
  "name": "roadmap-validate",
66
66
  "path": "skills/roadmap-validate",
67
67
  "description": "Native slash entrypoint for evidence-backed roadmap validation.",
68
- "version": "0.9.22"
68
+ "version": "0.9.23"
69
69
  },
70
70
  {
71
71
  "name": "roadmap-update",
72
72
  "path": "skills/roadmap-update",
73
73
  "description": "Native slash entrypoint for applying evidence-backed checklist sync.",
74
- "version": "0.9.22"
74
+ "version": "0.9.23"
75
75
  },
76
76
  {
77
77
  "name": "roadmap-sync",
78
78
  "path": "skills/roadmap-sync",
79
79
  "description": "Legacy namespaced root plus policy guidance for RoadmapSmith slash workflows.",
80
- "version": "0.9.22"
80
+ "version": "0.9.23"
81
81
  },
82
82
  {
83
83
  "name": "roadmap-audit",
84
84
  "path": "skills/roadmap-audit",
85
85
  "description": "Native slash entrypoint for the current sync-plus-audit workflow.",
86
- "version": "0.9.22"
86
+ "version": "0.9.23"
87
87
  },
88
88
  {
89
89
  "name": "roadmap-setup",
90
90
  "path": "skills/roadmap-setup",
91
91
  "description": "Native slash entrypoint for generating RoadmapSmith host integration files.",
92
- "version": "0.9.22"
92
+ "version": "0.9.23"
93
93
  }
94
94
  ]
95
95
  }
@@ -21,6 +21,7 @@ const ELECTRON_CONFIGS = [
21
21
  'forge.config.ts'
22
22
  ];
23
23
  const LANDING_ROUTE_RE = /(?:^|\/)(?:contact|services|about|pricing|hero|cta|landing)(?:\/|\.)/i;
24
+ const FIXTURE_PATH_RE = /(^|\/)(?:test|tests)\/fixtures\//i;
24
25
 
25
26
  function readPackageDeps(projectRoot) {
26
27
  if (!projectRoot) return [];
@@ -52,6 +53,9 @@ function hasWorkspaces(projectRoot) {
52
53
  }
53
54
 
54
55
  function classifyProject({ projectRoot, files }) {
56
+ const candidateFiles = Array.isArray(files)
57
+ ? files.filter((file) => !FIXTURE_PATH_RE.test(String(file || '')))
58
+ : [];
55
59
  const signals = [];
56
60
 
57
61
  if (hasWorkspaces(projectRoot)) {
@@ -59,8 +63,8 @@ function classifyProject({ projectRoot, files }) {
59
63
  return { type: 'monorepo', confidence: 'high', signals };
60
64
  }
61
65
 
62
- const hasPy = hasFilename(files, 'pyproject.toml') || hasFilename(files, 'setup.py');
63
- if (hasPy && !files.some((f) => /\.[jt]sx?$/.test(f))) {
66
+ const hasPy = hasFilename(candidateFiles, 'pyproject.toml') || hasFilename(candidateFiles, 'setup.py');
67
+ if (hasPy && !candidateFiles.some((f) => /\.[jt]sx?$/.test(f))) {
64
68
  signals.push('pyproject.toml / setup.py, no JS files');
65
69
  return { type: 'python-package', confidence: 'high', signals };
66
70
  }
@@ -82,72 +86,72 @@ function classifyProject({ projectRoot, files }) {
82
86
  }
83
87
 
84
88
  for (const dir of WEB_DIRS) {
85
- if (hasDir(files, dir)) {
89
+ if (hasDir(candidateFiles, dir)) {
86
90
  webScore += 2;
87
91
  signals.push(`directory: ${dir.replace(/\/$/, '')}`);
88
92
  }
89
93
  }
90
94
 
91
95
  for (const dir of ASSET_DIRS) {
92
- if (hasDir(files, dir)) {
96
+ if (hasDir(candidateFiles, dir)) {
93
97
  webScore += 1;
94
98
  signals.push(`directory: ${dir.replace(/\/$/, '')}`);
95
99
  }
96
100
  }
97
101
 
98
- if (hasDir(files, 'electron/')) {
102
+ if (hasDir(candidateFiles, 'electron/')) {
99
103
  electronScore += 3;
100
104
  signals.push('directory: electron');
101
105
  }
102
106
 
103
- if (files.some((file) => /^electron\/.+\.(js|ts|cjs|mjs)$/.test(file))) {
107
+ if (candidateFiles.some((file) => /^electron\/.+\.(js|ts|cjs|mjs)$/.test(file))) {
104
108
  electronScore += 2;
105
109
  signals.push('electron main/preload sources');
106
110
  }
107
111
 
108
112
  for (const cfg of ELECTRON_CONFIGS) {
109
- if (hasFilename(files, cfg)) {
113
+ if (hasFilename(candidateFiles, cfg)) {
110
114
  electronScore += 2;
111
115
  signals.push(`config: ${cfg}`);
112
116
  }
113
117
  }
114
118
 
115
119
  for (const cfg of WEB_CONFIGS) {
116
- if (hasFilename(files, cfg)) {
120
+ if (hasFilename(candidateFiles, cfg)) {
117
121
  webScore += 3;
118
122
  signals.push(`config: ${cfg}`);
119
123
  }
120
124
  }
121
125
 
122
126
  for (const cfg of STYLE_CONFIGS) {
123
- if (hasFilename(files, cfg)) {
127
+ if (hasFilename(candidateFiles, cfg)) {
124
128
  webScore += 1;
125
129
  signals.push(`config: ${cfg}`);
126
130
  }
127
131
  }
128
132
 
129
- if (files.some((f) => /\.css$/.test(f))) {
133
+ if (candidateFiles.some((f) => /\.css$/.test(f))) {
130
134
  webScore += 1;
131
135
  signals.push('CSS files present');
132
136
  }
133
137
 
134
- const landingRoutes = files.filter((f) => LANDING_ROUTE_RE.test(f));
138
+ const landingRoutes = candidateFiles.filter((f) => LANDING_ROUTE_RE.test(f));
135
139
  if (landingRoutes.length > 0) {
136
140
  landingScore += landingRoutes.length * 2;
137
141
  signals.push(`landing/service routes: ${landingRoutes.length}`);
138
142
  }
139
143
 
140
- if (hasFilename(files, 'favicon.ico') || hasFilename(files, 'logo.png') || hasFilename(files, 'logo.svg')) {
144
+ if (hasFilename(candidateFiles, 'favicon.ico') || hasFilename(candidateFiles, 'logo.png') || hasFilename(candidateFiles, 'logo.svg')) {
141
145
  landingScore += 1;
142
146
  signals.push('branding asset in public/');
143
147
  }
144
148
 
145
- if (webScore === 0 && (files.some((f) => f.startsWith('bin/')) || hasFilename(files, 'cli.js'))) {
149
+ if (webScore === 0 && (candidateFiles.some((f) => f.startsWith('bin/')) || hasFilename(candidateFiles, 'cli.js'))) {
146
150
  signals.push('bin/ directory or cli.js');
147
151
  return { type: 'cli-tool', confidence: 'medium', signals };
148
152
  }
149
153
 
150
- if (webScore === 0 && hasFilename(files, 'package.json')) {
154
+ if (webScore === 0 && hasFilename(candidateFiles, 'package.json')) {
151
155
  signals.push('package.json, no web signals');
152
156
  return { type: 'npm-package', confidence: 'low', signals };
153
157
  }
@@ -207,6 +207,10 @@ function renderAdditionTask(task) {
207
207
  return `- [ ] ${task.text} <!-- rs:task=${task.id} -->`;
208
208
  }
209
209
 
210
+ function isGenericPreserveModeCandidate(candidate) {
211
+ return candidate && ['default', 'classifier', 'todo-hint'].includes(candidate.source);
212
+ }
213
+
210
214
  function buildManagedAdditionsLines(tasks, options = {}) {
211
215
  const groups = groupByPhase(tasks);
212
216
  const lines = [];
@@ -465,6 +469,10 @@ function insertPreserveModeTasks(existingContent, parsedRoadmap, tasks) {
465
469
  return nextLines.join('\n');
466
470
  }
467
471
 
472
+ function filterPreserveModeCandidates(candidates) {
473
+ return candidates.filter((candidate) => !isGenericPreserveModeCandidate(candidate));
474
+ }
475
+
468
476
  function mergeWithExisting(candidates, existingTasks, options = {}) {
469
477
  const matchedExistingIds = new Set();
470
478
  const merged = [];
@@ -810,14 +818,18 @@ function generateRoadmapDocument(options) {
810
818
 
811
819
  if (hasSubstantiveManagedBlock(existing) && preserveManagedBlock && !forceFullRegenerate) {
812
820
  const unmatchedCandidates = allCandidates.filter((candidate) => {
813
- return !findBestTaskMatch(candidate, existingManagedTasks, { allowFuzzy: false });
821
+ return !findBestTaskMatch(candidate, existingManagedTasks, {
822
+ allowFuzzy: true,
823
+ minScore: 0.72
824
+ });
814
825
  });
826
+ const preserveModeCandidates = filterPreserveModeCandidates(unmatchedCandidates);
815
827
 
816
- if (unmatchedCandidates.length === 0) {
828
+ if (preserveModeCandidates.length === 0) {
817
829
  return existingContent;
818
830
  }
819
831
 
820
- return insertPreserveModeTasks(existingContent, existing, unmatchedCandidates);
832
+ return insertPreserveModeTasks(existingContent, existing, preserveModeCandidates);
821
833
  }
822
834
 
823
835
  if (hasSubstantiveManagedBlock(existing) && !forceFullRegenerate) {