@localsummer/incspec 0.3.0 → 0.3.1
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/package.json +1 -1
- package/src/commands/archive.mjs +7 -2
package/package.json
CHANGED
package/src/commands/archive.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function collectArchivedFiles(projectRoot) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const files = [];
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
// Helper to collect .md files from a directory
|
|
51
51
|
const collectMdFiles = (dir) => {
|
|
52
52
|
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
@@ -57,7 +57,7 @@ function collectArchivedFiles(projectRoot) {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
// Traverse: archives/ -> YYYY-MM/ -> [module/] -> files
|
|
62
62
|
const topEntries = fs.readdirSync(archiveRoot, { withFileTypes: true });
|
|
63
63
|
topEntries.forEach(entry => {
|
|
@@ -124,6 +124,11 @@ function getArchivableOutputs(workflow) {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
// 步骤5 (apply) 的输出是"代码已应用"占位符,不是文件,跳过
|
|
128
|
+
if (index === 4 && step.output === '代码已应用') {
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
|
|
127
132
|
const completedAt = parseWorkflowTime(step.completedAt);
|
|
128
133
|
if (!completedAt) {
|
|
129
134
|
return null;
|