speccore 5.27.29 → 5.27.31
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/dist/cli.js +23 -22
- package/dist/cli.js.map +1 -1
- package/dist/commands/analyze.js +10 -10
- package/dist/commands/audit.js +6 -6
- package/dist/commands/change.js +3 -3
- package/dist/commands/context-output.js +5 -5
- package/dist/commands/context.js +3 -3
- package/dist/commands/dashboard.js +11 -11
- package/dist/commands/delete.d.ts +1 -1
- package/dist/commands/delete.js +4 -4
- package/dist/commands/dev.d.ts +1 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +35 -19
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/diff.d.ts +1 -1
- package/dist/commands/diff.js +1 -1
- package/dist/commands/doc2spec.js +9 -6
- package/dist/commands/doc2spec.js.map +1 -1
- package/dist/commands/done.js +3 -3
- package/dist/commands/execute.js +3 -3
- package/dist/commands/global-status.js +2 -2
- package/dist/commands/handover.d.ts +1 -1
- package/dist/commands/handover.js +11 -11
- package/dist/commands/handover.js.map +1 -1
- package/dist/commands/help.js +19 -19
- package/dist/commands/history.d.ts +1 -1
- package/dist/commands/history.js +2 -2
- package/dist/commands/impact.js +8 -8
- package/dist/commands/import.js +1 -1
- package/dist/commands/init.js +26 -26
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/iteration/create.js +14 -14
- package/dist/commands/iteration/create.js.map +1 -1
- package/dist/commands/iteration/split.js +4 -4
- package/dist/commands/iteration/split.js.map +1 -1
- package/dist/commands/iteration-from-global.d.ts +2 -2
- package/dist/commands/iteration-from-global.d.ts.map +1 -1
- package/dist/commands/iteration-from-global.js +17 -18
- package/dist/commands/iteration-from-global.js.map +1 -1
- package/dist/commands/lifecycle.js +1 -1
- package/dist/commands/pr.js +1 -1
- package/dist/commands/rename.d.ts +1 -1
- package/dist/commands/rename.js +4 -4
- package/dist/commands/retro.js +2 -2
- package/dist/commands/schedule.js +3 -3
- package/dist/commands/spec2doc.js +5 -5
- package/dist/commands/spec2doc.js.map +1 -1
- package/dist/commands/status-panel.js +8 -8
- package/dist/commands/sync-global.d.ts +2 -2
- package/dist/commands/sync-global.js +21 -21
- package/dist/commands/sync.js +6 -6
- package/dist/commands/update.js +1 -1
- package/dist/commands/welcome.js +3 -3
- package/dist/commands/welcome.js.map +1 -1
- package/dist/core/ai-context-generator.d.ts +1 -1
- package/dist/core/ai-context-generator.js +1 -1
- package/dist/core/analyze-engine.d.ts +1 -1
- package/dist/core/analyze-engine.js +5 -5
- package/dist/core/ask-engine.js +4 -4
- package/dist/core/ask-engine.js.map +1 -1
- package/dist/core/ask-llm.js +1 -1
- package/dist/core/context.js +1 -1
- package/dist/core/dev-llm.js +2 -2
- package/dist/core/git-integration.d.ts +1 -1
- package/dist/core/git-integration.js +3 -3
- package/dist/core/global-counters.js +1 -1
- package/dist/core/global-layer.d.ts +3 -3
- package/dist/core/global-layer.js +11 -11
- package/dist/core/help-panel.d.ts +1 -1
- package/dist/core/help-panel.js +3 -3
- package/dist/core/intent-recognition.js +22 -22
- package/dist/core/intent-recognition.js.map +1 -1
- package/dist/core/name-validator.d.ts +4 -4
- package/dist/core/name-validator.js +5 -5
- package/dist/core/next-steps.js +1 -1
- package/dist/core/next-steps.js.map +1 -1
- package/dist/core/plan-store.d.ts +1 -1
- package/dist/core/requirement-tracker.d.ts +1 -1
- package/dist/core/requirement-tracker.js +4 -4
- package/dist/core/schedule-store.d.ts +1 -1
- package/dist/core/schemas/iteration.schema.d.ts +1 -1
- package/dist/core/schemas/iteration.schema.js +1 -1
- package/dist/core/session-state.d.ts +1 -1
- package/dist/core/state.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare function loadTracker(): Promise<ReqEntry[]>;
|
|
|
14
14
|
export declare function saveTracker(entries: ReqEntry[]): Promise<void>;
|
|
15
15
|
/**
|
|
16
16
|
* 注册或更新需求追踪
|
|
17
|
-
* @returns warnings —
|
|
17
|
+
* @returns warnings — 跨迭代冲突预警
|
|
18
18
|
*/
|
|
19
19
|
export declare function registerRequirement(title: string, iteration: string, changeType: '新增' | '修改' | '废弃'): Promise<string[]>;
|
|
20
20
|
/**
|
|
@@ -27,7 +27,7 @@ async function saveTracker(entries) {
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* 注册或更新需求追踪
|
|
30
|
-
* @returns warnings —
|
|
30
|
+
* @returns warnings — 跨迭代冲突预警
|
|
31
31
|
*/
|
|
32
32
|
async function registerRequirement(title, iteration, changeType) {
|
|
33
33
|
const entries = await loadTracker();
|
|
@@ -44,12 +44,12 @@ async function registerRequirement(title, iteration, changeType) {
|
|
|
44
44
|
existing.status = 'modified';
|
|
45
45
|
existing.lastModifiedIteration = iteration;
|
|
46
46
|
existing.changeHistory.push({ iteration, type: '修改', timestamp: now });
|
|
47
|
-
//
|
|
47
|
+
// 检测:是否有其他迭代也在修改同一个需求
|
|
48
48
|
const otherModifiers = existing.changeHistory
|
|
49
49
|
.filter(h => h.type === '修改' && h.iteration !== iteration)
|
|
50
50
|
.map(h => h.iteration);
|
|
51
51
|
if (otherModifiers.length > 0) {
|
|
52
|
-
warnings.push(`⚠️ "${title}"
|
|
52
|
+
warnings.push(`⚠️ "${title}" 曾在以下迭代被修改: ${[...new Set(otherModifiers)].join(', ')} — 注意合并冲突`);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
if (changeType === '废弃') {
|
|
@@ -77,7 +77,7 @@ async function generateTrackerReport() {
|
|
|
77
77
|
const entries = await loadTracker();
|
|
78
78
|
let report = `# 全量需求追踪\n\n`;
|
|
79
79
|
report += `> 自动生成 | ${new Date().toISOString().slice(0, 10)}\n\n`;
|
|
80
|
-
report += `| ID | 需求 | 状态 |
|
|
80
|
+
report += `| ID | 需求 | 状态 | 首次迭代 | 最近修改 | 变更次数 |\n`;
|
|
81
81
|
report += `| :--- | :--- | :--- | :--- | :--- | :--- |\n`;
|
|
82
82
|
for (const e of entries) {
|
|
83
83
|
const statusEmoji = e.status === 'active' ? '🟢' : e.status === 'modified' ? '🟡' : '⚫';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Iteration Schema — Zod 数据模型
|
|
4
|
-
*
|
|
4
|
+
* 定义迭代(迭代)的核心数据结构
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.IterationSchema = exports.IterationStatsSchema = exports.IterationGoalSchema = exports.IterationStatusSchema = void 0;
|
package/dist/core/state.js
CHANGED
|
@@ -65,7 +65,7 @@ function parseProjectGraph(content, iterationName) {
|
|
|
65
65
|
completionRate: 0
|
|
66
66
|
};
|
|
67
67
|
// Extract status from markdown
|
|
68
|
-
const statusMatch = content.match(
|
|
68
|
+
const statusMatch = content.match(/迭代状态[::]\s*(.+)/);
|
|
69
69
|
if (statusMatch) {
|
|
70
70
|
state.status = statusMatch[1].trim();
|
|
71
71
|
}
|