speccore 8.3.157 → 8.3.158
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/README.md +1 -1
- package/dist/commands/analyze.d.ts.map +1 -1
- package/dist/commands/analyze.js +72 -34
- package/dist/commands/analyze.js.map +1 -1
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +2 -1
- package/dist/commands/migrate.js.map +1 -1
- package/dist/core/schemas/context.schema.d.ts +87 -2
- package/dist/core/schemas/context.schema.d.ts.map +1 -1
- package/dist/core/schemas/iteration.schema.d.ts +132 -4
- package/dist/core/schemas/iteration.schema.d.ts.map +1 -1
- package/dist/core/schemas/platform.schema.d.ts +56 -2
- package/dist/core/schemas/platform.schema.d.ts.map +1 -1
- package/dist/core/schemas/task.schema.d.ts +157 -8
- package/dist/core/schemas/task.schema.d.ts.map +1 -1
- package/dist/core/spec-paths.d.ts.map +1 -1
- package/dist/core/spec-paths.js +4 -2
- package/dist/core/spec-paths.js.map +1 -1
- package/package.json +4 -3
- package/templates/html/speccore-ask-guide.html +1 -1
- package/templates/html/speccore-ask-pipeline.html +1 -1
- package/templates/html/speccore-ask-result.html +1 -1
- package/templates/html/speccore-dev.html +1 -1
- package/templates/html/speccore-help.html +1 -1
- package/templates/html/speccore-retro-T-001.html +1 -1
- package/templates/html/speccore-welcome.html +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAsJrH;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAyC3E"}
|
package/dist/commands/migrate.js
CHANGED
|
@@ -142,10 +142,11 @@ async function migrateTasks(projectRoot, iterationName, options) {
|
|
|
142
142
|
logger_1.logger.info(' 💡 如不再需要可手动删除');
|
|
143
143
|
}
|
|
144
144
|
// 清理 030-tasks/ 根目录下的旧版 Task-* 目录(迁移后残留)
|
|
145
|
+
// v8.3.158+: 扩展匹配模式,支持带端名后缀的旧目录(如 Task-175-23fxnb-admin-web)
|
|
145
146
|
if (migrated > 0) {
|
|
146
147
|
const tasksEntries = await (0, fs_extra_1.readdir)(tasksDir, { withFileTypes: true });
|
|
147
148
|
for (const entry of tasksEntries) {
|
|
148
|
-
if (entry.isDirectory() && entry.name.match(/^Task-\d
|
|
149
|
+
if (entry.isDirectory() && entry.name.match(/^Task-\d+(-[a-z0-9]+)*$/i)) {
|
|
149
150
|
const oldPath = (0, path_1.join)(tasksDir, entry.name);
|
|
150
151
|
await (0, fs_extra_1.remove)(oldPath);
|
|
151
152
|
logger_1.logger.info(`🧹 清理旧版残留: 030-tasks/${entry.name}/`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":";;AAmBA,
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":";;AAmBA,oCAsJC;AAKD,wCAyCC;AAvND;;;GAGG;AACH,uCAA6F;AAC7F,+BAA4B;AAC5B,4CAAkD;AAClD,oDAA6D;AAS7D;;GAEG;AACI,KAAK,UAAU,YAAY,CAAC,WAAmB,EAAE,aAAqB,EAAE,OAAuB;IACpG,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;IACjD,IAAI,CAAC,CAAC,MAAM,IAAA,qBAAU,EAAC,OAAO,CAAC,CAAC,EAAE,CAAC;QACjC,eAAM,CAAC,IAAI,CAAC,gBAAgB,aAAa,EAAE,CAAC,CAAC;QAC7C,OAAO;IACT,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAC5C,MAAM,IAAA,oBAAS,EAAC,QAAQ,CAAC,CAAC;IAE1B,oBAAoB;IACpB,MAAM,OAAO,GAAG,MAAM,IAAA,kBAAO,EAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;YAC1D,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,OAAO;IACT,CAAC;IAED,eAAM,CAAC,IAAI,CAAC,SAAS,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,OAAO;IACT,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,MAAM,UAAU,CAAC,MAAM,MAAM,CAAC,CAAC;IAC5C,eAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEhB,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;QAClC,eAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,MAAM,CAAC,CAAC;QACnC,eAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEhB,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;YACrD,MAAM,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;QAED,eAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAED,eAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACtC,eAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -3,8 +3,93 @@
|
|
|
3
3
|
* 定义 .speccore/local/context.json 的运行时上下文数据结构
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export declare const HistoryEntrySchema:
|
|
7
|
-
|
|
6
|
+
export declare const HistoryEntrySchema: z.ZodObject<{
|
|
7
|
+
command: z.ZodString;
|
|
8
|
+
timestamp: z.ZodString;
|
|
9
|
+
iteration: z.ZodOptional<z.ZodString>;
|
|
10
|
+
task: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
command: string;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
iteration?: string | undefined;
|
|
15
|
+
task?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
command: string;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
iteration?: string | undefined;
|
|
20
|
+
task?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const ContextSchema: z.ZodObject<{
|
|
23
|
+
currentIteration: z.ZodDefault<z.ZodString>;
|
|
24
|
+
currentTask: z.ZodDefault<z.ZodString>;
|
|
25
|
+
currentAssignee: z.ZodDefault<z.ZodString>;
|
|
26
|
+
lastUpdated: z.ZodDefault<z.ZodString>;
|
|
27
|
+
lastAction: z.ZodDefault<z.ZodString>;
|
|
28
|
+
lastIntent: z.ZodDefault<z.ZodString>;
|
|
29
|
+
interruptedAt: z.ZodDefault<z.ZodString>;
|
|
30
|
+
iterationStatus: z.ZodDefault<z.ZodString>;
|
|
31
|
+
pendingTasks: z.ZodDefault<z.ZodNumber>;
|
|
32
|
+
inProgressTasks: z.ZodDefault<z.ZodNumber>;
|
|
33
|
+
completedTasks: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
blockedTasks: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
customAliases: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36
|
+
history: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
37
|
+
command: z.ZodString;
|
|
38
|
+
timestamp: z.ZodString;
|
|
39
|
+
iteration: z.ZodOptional<z.ZodString>;
|
|
40
|
+
task: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
command: string;
|
|
43
|
+
timestamp: string;
|
|
44
|
+
iteration?: string | undefined;
|
|
45
|
+
task?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
command: string;
|
|
48
|
+
timestamp: string;
|
|
49
|
+
iteration?: string | undefined;
|
|
50
|
+
task?: string | undefined;
|
|
51
|
+
}>, "many">>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
currentIteration: string;
|
|
54
|
+
currentTask: string;
|
|
55
|
+
currentAssignee: string;
|
|
56
|
+
lastUpdated: string;
|
|
57
|
+
lastAction: string;
|
|
58
|
+
lastIntent: string;
|
|
59
|
+
interruptedAt: string;
|
|
60
|
+
iterationStatus: string;
|
|
61
|
+
pendingTasks: number;
|
|
62
|
+
inProgressTasks: number;
|
|
63
|
+
completedTasks: number;
|
|
64
|
+
blockedTasks: number;
|
|
65
|
+
customAliases: Record<string, string>;
|
|
66
|
+
history: {
|
|
67
|
+
command: string;
|
|
68
|
+
timestamp: string;
|
|
69
|
+
iteration?: string | undefined;
|
|
70
|
+
task?: string | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
}, {
|
|
73
|
+
currentIteration?: string | undefined;
|
|
74
|
+
currentTask?: string | undefined;
|
|
75
|
+
currentAssignee?: string | undefined;
|
|
76
|
+
lastUpdated?: string | undefined;
|
|
77
|
+
lastAction?: string | undefined;
|
|
78
|
+
lastIntent?: string | undefined;
|
|
79
|
+
interruptedAt?: string | undefined;
|
|
80
|
+
iterationStatus?: string | undefined;
|
|
81
|
+
pendingTasks?: number | undefined;
|
|
82
|
+
inProgressTasks?: number | undefined;
|
|
83
|
+
completedTasks?: number | undefined;
|
|
84
|
+
blockedTasks?: number | undefined;
|
|
85
|
+
customAliases?: Record<string, string> | undefined;
|
|
86
|
+
history?: {
|
|
87
|
+
command: string;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
iteration?: string | undefined;
|
|
90
|
+
task?: string | undefined;
|
|
91
|
+
}[] | undefined;
|
|
92
|
+
}>;
|
|
8
93
|
export type HistoryEntry = z.infer<typeof HistoryEntrySchema>;
|
|
9
94
|
export type Context = z.infer<typeof ContextSchema>;
|
|
10
95
|
export declare const DEFAULT_CONTEXT: Context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/context.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"context.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/context.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAGH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBxB,CAAC;AAGH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGpD,eAAO,MAAM,eAAe,EAAE,OAe7B,CAAC"}
|
|
@@ -3,10 +3,138 @@
|
|
|
3
3
|
* 定义迭代(迭代)的核心数据结构
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export declare const IterationStatusSchema:
|
|
7
|
-
export declare const IterationGoalSchema:
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare const IterationStatusSchema: z.ZodEnum<["planning", "active", "paused", "completed", "archived"]>;
|
|
7
|
+
export declare const IterationGoalSchema: z.ZodObject<{
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
10
|
+
deliverables: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
successCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
description: string;
|
|
14
|
+
deliverables: string[];
|
|
15
|
+
successCriteria: string[];
|
|
16
|
+
scope?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
description: string;
|
|
19
|
+
scope?: string | undefined;
|
|
20
|
+
deliverables?: string[] | undefined;
|
|
21
|
+
successCriteria?: string[] | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const IterationStatsSchema: z.ZodObject<{
|
|
24
|
+
totalTasks: z.ZodNumber;
|
|
25
|
+
pendingTasks: z.ZodNumber;
|
|
26
|
+
inProgressTasks: z.ZodNumber;
|
|
27
|
+
completedTasks: z.ZodNumber;
|
|
28
|
+
blockedTasks: z.ZodNumber;
|
|
29
|
+
completionRate: z.ZodNumber;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
pendingTasks: number;
|
|
32
|
+
inProgressTasks: number;
|
|
33
|
+
completedTasks: number;
|
|
34
|
+
blockedTasks: number;
|
|
35
|
+
completionRate: number;
|
|
36
|
+
totalTasks: number;
|
|
37
|
+
}, {
|
|
38
|
+
pendingTasks: number;
|
|
39
|
+
inProgressTasks: number;
|
|
40
|
+
completedTasks: number;
|
|
41
|
+
blockedTasks: number;
|
|
42
|
+
completionRate: number;
|
|
43
|
+
totalTasks: number;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const IterationSchema: z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
status: z.ZodDefault<z.ZodEnum<["planning", "active", "paused", "completed", "archived"]>>;
|
|
49
|
+
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
50
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
description: z.ZodString;
|
|
52
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
53
|
+
deliverables: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
54
|
+
successCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
description: string;
|
|
57
|
+
deliverables: string[];
|
|
58
|
+
successCriteria: string[];
|
|
59
|
+
scope?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
description: string;
|
|
62
|
+
scope?: string | undefined;
|
|
63
|
+
deliverables?: string[] | undefined;
|
|
64
|
+
successCriteria?: string[] | undefined;
|
|
65
|
+
}>>;
|
|
66
|
+
tasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
67
|
+
requirements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
68
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
69
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
70
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
71
|
+
changelog: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
version: z.ZodString;
|
|
73
|
+
date: z.ZodString;
|
|
74
|
+
content: z.ZodString;
|
|
75
|
+
author: z.ZodString;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
version: string;
|
|
78
|
+
content: string;
|
|
79
|
+
date: string;
|
|
80
|
+
author: string;
|
|
81
|
+
}, {
|
|
82
|
+
version: string;
|
|
83
|
+
content: string;
|
|
84
|
+
date: string;
|
|
85
|
+
author: string;
|
|
86
|
+
}>, "many">>;
|
|
87
|
+
createdAt: z.ZodString;
|
|
88
|
+
updatedAt: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
name: string;
|
|
91
|
+
status: "completed" | "archived" | "active" | "planning" | "paused";
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
requirements: string[];
|
|
94
|
+
id: string;
|
|
95
|
+
priority: "high" | "medium" | "low";
|
|
96
|
+
tasks: string[];
|
|
97
|
+
createdAt: string;
|
|
98
|
+
changelog: {
|
|
99
|
+
version: string;
|
|
100
|
+
content: string;
|
|
101
|
+
date: string;
|
|
102
|
+
author: string;
|
|
103
|
+
}[];
|
|
104
|
+
assignee?: string | undefined;
|
|
105
|
+
startDate?: string | undefined;
|
|
106
|
+
endDate?: string | undefined;
|
|
107
|
+
goal?: {
|
|
108
|
+
description: string;
|
|
109
|
+
deliverables: string[];
|
|
110
|
+
successCriteria: string[];
|
|
111
|
+
scope?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
name: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
id: string;
|
|
117
|
+
createdAt: string;
|
|
118
|
+
assignee?: string | undefined;
|
|
119
|
+
status?: "completed" | "archived" | "active" | "planning" | "paused" | undefined;
|
|
120
|
+
requirements?: string[] | undefined;
|
|
121
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
122
|
+
tasks?: string[] | undefined;
|
|
123
|
+
startDate?: string | undefined;
|
|
124
|
+
endDate?: string | undefined;
|
|
125
|
+
goal?: {
|
|
126
|
+
description: string;
|
|
127
|
+
scope?: string | undefined;
|
|
128
|
+
deliverables?: string[] | undefined;
|
|
129
|
+
successCriteria?: string[] | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
changelog?: {
|
|
132
|
+
version: string;
|
|
133
|
+
content: string;
|
|
134
|
+
date: string;
|
|
135
|
+
author: string;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
}>;
|
|
10
138
|
export type IterationStatus = z.infer<typeof IterationStatusSchema>;
|
|
11
139
|
export type IterationGoal = z.infer<typeof IterationGoalSchema>;
|
|
12
140
|
export type IterationStats = z.infer<typeof IterationStatsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iteration.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/iteration.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"iteration.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/iteration.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB,sEAMhC,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmC1B,CAAC;AAGH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -4,8 +4,62 @@
|
|
|
4
4
|
* 对应 .speccore/config/platforms.yaml
|
|
5
5
|
*/
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
export declare const PlatformConfigSchema:
|
|
8
|
-
|
|
7
|
+
export declare const PlatformConfigSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
default: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
tech_stack: z.ZodOptional<z.ZodString>;
|
|
12
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
default: boolean;
|
|
15
|
+
name: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
tech_stack?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
default?: boolean | undefined;
|
|
22
|
+
enabled?: boolean | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
tech_stack?: string | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const PlatformsConfigSchema: z.ZodObject<{
|
|
27
|
+
platforms: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
default: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
tech_stack: z.ZodOptional<z.ZodString>;
|
|
32
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
default: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
tech_stack?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
default?: boolean | undefined;
|
|
42
|
+
enabled?: boolean | undefined;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
tech_stack?: string | undefined;
|
|
45
|
+
}>>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
platforms: Record<string, {
|
|
48
|
+
default: boolean;
|
|
49
|
+
name: string;
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
tech_stack?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
}, {
|
|
55
|
+
platforms: Record<string, {
|
|
56
|
+
name: string;
|
|
57
|
+
default?: boolean | undefined;
|
|
58
|
+
enabled?: boolean | undefined;
|
|
59
|
+
description?: string | undefined;
|
|
60
|
+
tech_stack?: string | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
9
63
|
export type PlatformConfig = z.infer<typeof PlatformConfigSchema>;
|
|
10
64
|
export type PlatformsConfig = z.infer<typeof PlatformsConfigSchema>;
|
|
11
65
|
export declare const DEFAULT_PLATFORMS: PlatformsConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/platform.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"platform.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/platform.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,iBAAiB,EAAE,eAwB/B,CAAC"}
|
|
@@ -3,14 +3,163 @@
|
|
|
3
3
|
* 定义 Task(任务)的核心数据结构
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export declare const TaskStatusSchema:
|
|
7
|
-
export declare const TaskTypeSchema:
|
|
8
|
-
export declare const PlatformSchema:
|
|
9
|
-
export declare const PrioritySchema:
|
|
10
|
-
export declare const TaskOutputSchema:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export declare const TaskStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "blocked", "archived"]>;
|
|
7
|
+
export declare const TaskTypeSchema: z.ZodEnum<["feature", "bugfix", "research", "optimization", "migration", "document"]>;
|
|
8
|
+
export declare const PlatformSchema: z.ZodEnum<["web", "h5", "miniapp", "tablet", "tv"]>;
|
|
9
|
+
export declare const PrioritySchema: z.ZodEnum<["high", "medium", "low"]>;
|
|
10
|
+
export declare const TaskOutputSchema: z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
path: z.ZodString;
|
|
13
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "done"]>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
path: string;
|
|
16
|
+
type: string;
|
|
17
|
+
status: "done" | "pending";
|
|
18
|
+
}, {
|
|
19
|
+
path: string;
|
|
20
|
+
type: string;
|
|
21
|
+
status?: "done" | "pending" | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const ChangelogEntrySchema: z.ZodObject<{
|
|
24
|
+
version: z.ZodString;
|
|
25
|
+
date: z.ZodString;
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
source: z.ZodString;
|
|
28
|
+
author: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
source: string;
|
|
31
|
+
version: string;
|
|
32
|
+
content: string;
|
|
33
|
+
date: string;
|
|
34
|
+
author: string;
|
|
35
|
+
}, {
|
|
36
|
+
source: string;
|
|
37
|
+
version: string;
|
|
38
|
+
content: string;
|
|
39
|
+
date: string;
|
|
40
|
+
author: string;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const AssigneeSchema: z.ZodObject<{
|
|
43
|
+
backend: z.ZodOptional<z.ZodString>;
|
|
44
|
+
frontend: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
frontend?: Record<string, string> | undefined;
|
|
47
|
+
backend?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
frontend?: Record<string, string> | undefined;
|
|
50
|
+
backend?: string | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
type: z.ZodEnum<["feature", "bugfix", "research", "optimization", "migration", "document"]>;
|
|
56
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked", "archived"]>>;
|
|
57
|
+
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
58
|
+
iteration: z.ZodString;
|
|
59
|
+
dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
60
|
+
platforms: z.ZodDefault<z.ZodArray<z.ZodEnum<["web", "h5", "miniapp", "tablet", "tv"]>, "many">>;
|
|
61
|
+
assignees: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
backend: z.ZodOptional<z.ZodString>;
|
|
63
|
+
frontend: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
frontend?: Record<string, string> | undefined;
|
|
66
|
+
backend?: string | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
frontend?: Record<string, string> | undefined;
|
|
69
|
+
backend?: string | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
type: z.ZodString;
|
|
73
|
+
path: z.ZodString;
|
|
74
|
+
status: z.ZodDefault<z.ZodEnum<["pending", "done"]>>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
path: string;
|
|
77
|
+
type: string;
|
|
78
|
+
status: "done" | "pending";
|
|
79
|
+
}, {
|
|
80
|
+
path: string;
|
|
81
|
+
type: string;
|
|
82
|
+
status?: "done" | "pending" | undefined;
|
|
83
|
+
}>, "many">>;
|
|
84
|
+
acceptanceCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
changelog: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
version: z.ZodString;
|
|
87
|
+
date: z.ZodString;
|
|
88
|
+
content: z.ZodString;
|
|
89
|
+
source: z.ZodString;
|
|
90
|
+
author: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
source: string;
|
|
93
|
+
version: string;
|
|
94
|
+
content: string;
|
|
95
|
+
date: string;
|
|
96
|
+
author: string;
|
|
97
|
+
}, {
|
|
98
|
+
source: string;
|
|
99
|
+
version: string;
|
|
100
|
+
content: string;
|
|
101
|
+
date: string;
|
|
102
|
+
author: string;
|
|
103
|
+
}>, "many">>;
|
|
104
|
+
createdAt: z.ZodString;
|
|
105
|
+
updatedAt: z.ZodString;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
platforms: ("h5" | "miniapp" | "web" | "tablet" | "tv")[];
|
|
108
|
+
name: string;
|
|
109
|
+
type: "feature" | "bugfix" | "research" | "document" | "optimization" | "migration";
|
|
110
|
+
status: "pending" | "completed" | "in_progress" | "archived" | "blocked";
|
|
111
|
+
iteration: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
id: string;
|
|
114
|
+
priority: "high" | "medium" | "low";
|
|
115
|
+
outputs: {
|
|
116
|
+
path: string;
|
|
117
|
+
type: string;
|
|
118
|
+
status: "done" | "pending";
|
|
119
|
+
}[];
|
|
120
|
+
createdAt: string;
|
|
121
|
+
acceptanceCriteria: string[];
|
|
122
|
+
dependencies: string[];
|
|
123
|
+
changelog: {
|
|
124
|
+
source: string;
|
|
125
|
+
version: string;
|
|
126
|
+
content: string;
|
|
127
|
+
date: string;
|
|
128
|
+
author: string;
|
|
129
|
+
}[];
|
|
130
|
+
assignees?: {
|
|
131
|
+
frontend?: Record<string, string> | undefined;
|
|
132
|
+
backend?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
name: string;
|
|
136
|
+
type: "feature" | "bugfix" | "research" | "document" | "optimization" | "migration";
|
|
137
|
+
iteration: string;
|
|
138
|
+
updatedAt: string;
|
|
139
|
+
id: string;
|
|
140
|
+
createdAt: string;
|
|
141
|
+
platforms?: ("h5" | "miniapp" | "web" | "tablet" | "tv")[] | undefined;
|
|
142
|
+
status?: "pending" | "completed" | "in_progress" | "archived" | "blocked" | undefined;
|
|
143
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
144
|
+
outputs?: {
|
|
145
|
+
path: string;
|
|
146
|
+
type: string;
|
|
147
|
+
status?: "done" | "pending" | undefined;
|
|
148
|
+
}[] | undefined;
|
|
149
|
+
acceptanceCriteria?: string[] | undefined;
|
|
150
|
+
dependencies?: string[] | undefined;
|
|
151
|
+
assignees?: {
|
|
152
|
+
frontend?: Record<string, string> | undefined;
|
|
153
|
+
backend?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
changelog?: {
|
|
156
|
+
source: string;
|
|
157
|
+
version: string;
|
|
158
|
+
content: string;
|
|
159
|
+
date: string;
|
|
160
|
+
author: string;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
}>;
|
|
14
163
|
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
15
164
|
export type TaskType = z.infer<typeof TaskTypeSchema>;
|
|
16
165
|
export type Platform = z.infer<typeof PlatformSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/task.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"task.schema.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/task.schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,2EAM3B,CAAC;AAGH,eAAO,MAAM,cAAc,uFAOzB,CAAC;AAGH,eAAO,MAAM,cAAc,qDAMzB,CAAC;AAGH,eAAO,MAAM,cAAc,sCAIzB,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAIH,eAAO,MAAM,cAAc;;;;;;;;;EAGzB,CAAC;AAGH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgC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AAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAoG1E;AAED;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAaxF;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B;AAOD,wBAAsB,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAmM1E"}
|
package/dist/core/spec-paths.js
CHANGED
|
@@ -146,9 +146,9 @@ async function getValidPlatformIdentifiers() {
|
|
|
146
146
|
async function parseFeatureList(iterDir) {
|
|
147
147
|
const features = new Set();
|
|
148
148
|
// 排除非功能文档(系统文件、汇总文件)
|
|
149
|
-
// v8.3.
|
|
149
|
+
// v8.3.158+: 加回 'REQUIREMENT',避免 REQUIREMENT.md 被误识别为功能模块
|
|
150
150
|
const excludeNames = new Set([
|
|
151
|
-
'README', 'INDEX', 'CLARIFY_REPORT',
|
|
151
|
+
'README', 'INDEX', 'CLARIFY_REPORT', 'REQUIREMENT',
|
|
152
152
|
'CHANGELOG', 'LICENSE', 'CONTRIBUTING', 'TEMPLATE',
|
|
153
153
|
]);
|
|
154
154
|
async function scanDir(dir) {
|
|
@@ -173,6 +173,8 @@ async function parseFeatureList(iterDir) {
|
|
|
173
173
|
if (!excludeNames.has(basename) && basename.length > 0) {
|
|
174
174
|
// v8.3.35: 去掉 -clarified 后缀,提取原需求文档名作为功能模块名
|
|
175
175
|
basename = basename.replace(/-clarified$/, '');
|
|
176
|
+
// v8.3.158+: 规范化 feature 名(空格转 -,去掉不安全字符,保留中文)
|
|
177
|
+
basename = basename.trim().replace(/\s+/g, '-').replace(/[^\w\u4e00-\u9fa5\-]/g, '');
|
|
176
178
|
if (basename.length > 0) {
|
|
177
179
|
features.add(basename);
|
|
178
180
|
}
|