speccore 8.3.13 → 8.3.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.
@@ -52,6 +52,7 @@ const pipeline_engine_1 = require("../../core/pipeline-engine");
52
52
  const code_scanner_1 = require("../../core/code-scanner");
53
53
  const knowledge_graph_1 = require("../../core/knowledge-graph");
54
54
  const git_integration_1 = require("../../core/git-integration");
55
+ const cleanup_1 = require("../cleanup");
55
56
  /**
56
57
  * 将 AI 返回的 scope 简写映射到 CONSTITUTION.md 标准端名
57
58
  * v6.69.3+: 解决中文简写(如 "后端"、"admin")导致目录名错误的问题
@@ -947,6 +948,13 @@ async function iterationSplitCommand(options) {
947
948
  await updateProjectGraph(iterationDir, sections);
948
949
  spinner.stop(`✅ 创建了 ${sections.length} 个任务`);
949
950
  (0, next_steps_1.showNextSteps)('split');
951
+ // v8.3.14+: split 后自动清理旧的时间戳备份(保留 7 天内的)
952
+ await (0, cleanup_1.cleanupByType)({
953
+ cwd: process.cwd(),
954
+ types: ['timestampBackups'],
955
+ days: 7,
956
+ silent: true,
957
+ });
950
958
  // 自动刷新知识图谱(v6.49.10+)
951
959
  try {
952
960
  const { refreshKnowledgeGraph } = await Promise.resolve().then(() => __importStar(require('../../core/knowledge-graph')));
@@ -972,6 +980,13 @@ async function iterationSplitCommand(options) {
972
980
  logger_1.logger.info(`📊 任务总览 → 000-overview/task-summaries/`);
973
981
  spinner.stop(`Created ${sections.length} tasks from requirements`);
974
982
  (0, next_steps_1.showNextSteps)('split');
983
+ // v8.3.14+: split 后自动清理旧的时间戳备份(保留 7 天内的)
984
+ await (0, cleanup_1.cleanupByType)({
985
+ cwd: process.cwd(),
986
+ types: ['timestampBackups'],
987
+ days: 7,
988
+ silent: true,
989
+ });
975
990
  // 自动刷新知识图谱(v6.49.10+)
976
991
  try {
977
992
  const { refreshKnowledgeGraph } = await Promise.resolve().then(() => __importStar(require('../../core/knowledge-graph')));