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.
Files changed (85) hide show
  1. package/dist/cli.js +23 -22
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/analyze.js +10 -10
  4. package/dist/commands/audit.js +6 -6
  5. package/dist/commands/change.js +3 -3
  6. package/dist/commands/context-output.js +5 -5
  7. package/dist/commands/context.js +3 -3
  8. package/dist/commands/dashboard.js +11 -11
  9. package/dist/commands/delete.d.ts +1 -1
  10. package/dist/commands/delete.js +4 -4
  11. package/dist/commands/dev.d.ts +1 -0
  12. package/dist/commands/dev.d.ts.map +1 -1
  13. package/dist/commands/dev.js +35 -19
  14. package/dist/commands/dev.js.map +1 -1
  15. package/dist/commands/diff.d.ts +1 -1
  16. package/dist/commands/diff.js +1 -1
  17. package/dist/commands/doc2spec.js +9 -6
  18. package/dist/commands/doc2spec.js.map +1 -1
  19. package/dist/commands/done.js +3 -3
  20. package/dist/commands/execute.js +3 -3
  21. package/dist/commands/global-status.js +2 -2
  22. package/dist/commands/handover.d.ts +1 -1
  23. package/dist/commands/handover.js +11 -11
  24. package/dist/commands/handover.js.map +1 -1
  25. package/dist/commands/help.js +19 -19
  26. package/dist/commands/history.d.ts +1 -1
  27. package/dist/commands/history.js +2 -2
  28. package/dist/commands/impact.js +8 -8
  29. package/dist/commands/import.js +1 -1
  30. package/dist/commands/init.js +26 -26
  31. package/dist/commands/init.js.map +1 -1
  32. package/dist/commands/iteration/create.js +14 -14
  33. package/dist/commands/iteration/create.js.map +1 -1
  34. package/dist/commands/iteration/split.js +4 -4
  35. package/dist/commands/iteration/split.js.map +1 -1
  36. package/dist/commands/iteration-from-global.d.ts +2 -2
  37. package/dist/commands/iteration-from-global.d.ts.map +1 -1
  38. package/dist/commands/iteration-from-global.js +17 -18
  39. package/dist/commands/iteration-from-global.js.map +1 -1
  40. package/dist/commands/lifecycle.js +1 -1
  41. package/dist/commands/pr.js +1 -1
  42. package/dist/commands/rename.d.ts +1 -1
  43. package/dist/commands/rename.js +4 -4
  44. package/dist/commands/retro.js +2 -2
  45. package/dist/commands/schedule.js +3 -3
  46. package/dist/commands/spec2doc.js +5 -5
  47. package/dist/commands/spec2doc.js.map +1 -1
  48. package/dist/commands/status-panel.js +8 -8
  49. package/dist/commands/sync-global.d.ts +2 -2
  50. package/dist/commands/sync-global.js +21 -21
  51. package/dist/commands/sync.js +6 -6
  52. package/dist/commands/update.js +1 -1
  53. package/dist/commands/welcome.js +3 -3
  54. package/dist/commands/welcome.js.map +1 -1
  55. package/dist/core/ai-context-generator.d.ts +1 -1
  56. package/dist/core/ai-context-generator.js +1 -1
  57. package/dist/core/analyze-engine.d.ts +1 -1
  58. package/dist/core/analyze-engine.js +5 -5
  59. package/dist/core/ask-engine.js +4 -4
  60. package/dist/core/ask-engine.js.map +1 -1
  61. package/dist/core/ask-llm.js +1 -1
  62. package/dist/core/context.js +1 -1
  63. package/dist/core/dev-llm.js +2 -2
  64. package/dist/core/git-integration.d.ts +1 -1
  65. package/dist/core/git-integration.js +3 -3
  66. package/dist/core/global-counters.js +1 -1
  67. package/dist/core/global-layer.d.ts +3 -3
  68. package/dist/core/global-layer.js +11 -11
  69. package/dist/core/help-panel.d.ts +1 -1
  70. package/dist/core/help-panel.js +3 -3
  71. package/dist/core/intent-recognition.js +22 -22
  72. package/dist/core/intent-recognition.js.map +1 -1
  73. package/dist/core/name-validator.d.ts +4 -4
  74. package/dist/core/name-validator.js +5 -5
  75. package/dist/core/next-steps.js +1 -1
  76. package/dist/core/next-steps.js.map +1 -1
  77. package/dist/core/plan-store.d.ts +1 -1
  78. package/dist/core/requirement-tracker.d.ts +1 -1
  79. package/dist/core/requirement-tracker.js +4 -4
  80. package/dist/core/schedule-store.d.ts +1 -1
  81. package/dist/core/schemas/iteration.schema.d.ts +1 -1
  82. package/dist/core/schemas/iteration.schema.js +1 -1
  83. package/dist/core/session-state.d.ts +1 -1
  84. package/dist/core/state.js +1 -1
  85. package/package.json +1 -1
@@ -4,7 +4,7 @@ export interface ExecutionPlan {
4
4
  id: string;
5
5
  /** 计划名称 */
6
6
  name: string;
7
- /** 期次 */
7
+ /** 迭代 */
8
8
  iteration: string;
9
9
  /** 任务列表(按执行顺序) */
10
10
  tasks: string[];
@@ -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}" 曾在以下期次被修改: ${[...new Set(otherModifiers)].join(', ')} — 注意合并冲突`);
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 | 需求 | 状态 | 首次期次 | 最近修改 | 变更次数 |\n`;
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' ? '🟡' : '⚫';
@@ -10,7 +10,7 @@ export interface ScheduleTask {
10
10
  id: string;
11
11
  /** 任务名称/描述 */
12
12
  name: string;
13
- /** 目标期次 */
13
+ /** 目标迭代 */
14
14
  iteration: string;
15
15
  /** 指定执行的 Task ID(单个模式),null 表示批量模式 */
16
16
  taskId: string | null;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Iteration Schema — Zod 数据模型
3
- * 定义迭代(期次)的核心数据结构
3
+ * 定义迭代(迭代)的核心数据结构
4
4
  */
5
5
  import { z } from 'zod';
6
6
  export declare const IterationStatusSchema: z.ZodEnum<{
@@ -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;
@@ -4,7 +4,7 @@ export interface CommandSession {
4
4
  command: string;
5
5
  /** 会话 ID */
6
6
  sessionId: string;
7
- /** 期次 */
7
+ /** 迭代 */
8
8
  iteration: string;
9
9
  /** Task ID(如果有) */
10
10
  taskId?: string;
@@ -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(/期次状态[::]\s*(.+)/);
68
+ const statusMatch = content.match(/迭代状态[::]\s*(.+)/);
69
69
  if (statusMatch) {
70
70
  state.status = statusMatch[1].trim();
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccore",
3
- "version": "5.27.29",
3
+ "version": "5.27.31",
4
4
  "description": "SpecCore - Code by Spec, Not by Vibe.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",