scene-capability-engine 3.6.14 → 3.6.15
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/CHANGELOG.md +5 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/commands/capability.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.6.15] - 2026-03-06
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Capability plan apply result now includes preview lines + skipped titles for UI feedback.
|
|
14
|
+
|
|
10
15
|
## [3.6.14] - 2026-03-06
|
|
11
16
|
|
|
12
17
|
### Added
|
package/README.md
CHANGED
package/README.zh.md
CHANGED
|
@@ -245,6 +245,7 @@ async function appendCapabilityPlanToSpecTasks(options, plan, fileSystem = fs) {
|
|
|
245
245
|
|
|
246
246
|
const lines = [];
|
|
247
247
|
const addedTasks = [];
|
|
248
|
+
const skippedTitles = [];
|
|
248
249
|
let nextTaskId = registry.maxTaskId + 1;
|
|
249
250
|
let duplicateCount = 0;
|
|
250
251
|
|
|
@@ -256,6 +257,7 @@ async function appendCapabilityPlanToSpecTasks(options, plan, fileSystem = fs) {
|
|
|
256
257
|
const titleKey = title.toLowerCase();
|
|
257
258
|
if (registry.existingTitles.has(titleKey)) {
|
|
258
259
|
duplicateCount += 1;
|
|
260
|
+
skippedTitles.push(title);
|
|
259
261
|
continue;
|
|
260
262
|
}
|
|
261
263
|
registry.existingTitles.add(titleKey);
|
|
@@ -276,8 +278,11 @@ async function appendCapabilityPlanToSpecTasks(options, plan, fileSystem = fs) {
|
|
|
276
278
|
if (addedTasks.length === 0) {
|
|
277
279
|
return {
|
|
278
280
|
tasks_path: tasksPath,
|
|
281
|
+
section_title: sectionTitle,
|
|
279
282
|
added_count: 0,
|
|
280
283
|
skipped_duplicates: duplicateCount,
|
|
284
|
+
skipped_titles: skippedTitles,
|
|
285
|
+
preview_lines: [],
|
|
281
286
|
skipped_reason: recommended.length === 0
|
|
282
287
|
? 'no recommended tasks'
|
|
283
288
|
: 'all recommended tasks already exist in tasks.md',
|
|
@@ -300,8 +305,11 @@ async function appendCapabilityPlanToSpecTasks(options, plan, fileSystem = fs) {
|
|
|
300
305
|
|
|
301
306
|
return {
|
|
302
307
|
tasks_path: tasksPath,
|
|
308
|
+
section_title: sectionTitle,
|
|
303
309
|
added_count: addedTasks.length,
|
|
304
310
|
skipped_duplicates: duplicateCount,
|
|
311
|
+
skipped_titles: skippedTitles,
|
|
312
|
+
preview_lines: lines,
|
|
305
313
|
first_task_id: addedTasks[0].task_id,
|
|
306
314
|
last_task_id: addedTasks[addedTasks.length - 1].task_id,
|
|
307
315
|
added_tasks: addedTasks
|
package/package.json
CHANGED