dsh-svn-review 0.2.0 → 0.2.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/lib/index.js +36 -34
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -150,40 +150,45 @@ export function apply(ctx) {
|
|
|
150
150
|
name: 'svn_change_set',
|
|
151
151
|
description: CHANGE_SET_DESCRIPTION,
|
|
152
152
|
parameters: {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
type: 'object',
|
|
154
|
+
additionalProperties: false,
|
|
155
|
+
properties: {
|
|
156
|
+
path: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
description: '工作副本内的任意目录,会向上自动寻找 .svn/wc.db。省略时用当前工作目录。',
|
|
159
|
+
},
|
|
156
160
|
},
|
|
157
161
|
},
|
|
158
162
|
output: {
|
|
159
163
|
schema: {
|
|
160
164
|
type: 'object',
|
|
161
165
|
additionalProperties: false,
|
|
166
|
+
required: ['root', 'counts', 'files'],
|
|
162
167
|
properties: {
|
|
163
|
-
root: { type: 'string',
|
|
168
|
+
root: { type: 'string', description: '工作副本根目录' },
|
|
164
169
|
revision: { type: 'integer', description: '基线版本号,取 NODES 里最大的 revision' },
|
|
165
170
|
repository: { type: 'string', description: '仓库根 URL' },
|
|
166
171
|
counts: {
|
|
167
172
|
type: 'object',
|
|
168
173
|
additionalProperties: false,
|
|
169
|
-
required:
|
|
174
|
+
required: ['M', 'A', 'D', '!', 'C'],
|
|
170
175
|
properties: {
|
|
171
|
-
M: { type: 'integer'
|
|
172
|
-
A: { type: 'integer'
|
|
173
|
-
D: { type: 'integer'
|
|
174
|
-
'!': { type: 'integer'
|
|
175
|
-
C: { type: 'integer'
|
|
176
|
+
M: { type: 'integer' },
|
|
177
|
+
A: { type: 'integer' },
|
|
178
|
+
D: { type: 'integer' },
|
|
179
|
+
'!': { type: 'integer' },
|
|
180
|
+
C: { type: 'integer' },
|
|
176
181
|
},
|
|
177
182
|
},
|
|
178
183
|
files: {
|
|
179
184
|
type: 'array',
|
|
180
|
-
required: true,
|
|
181
185
|
items: {
|
|
182
186
|
type: 'object',
|
|
183
187
|
additionalProperties: false,
|
|
188
|
+
required: ['status', 'path'],
|
|
184
189
|
properties: {
|
|
185
|
-
status: { type: 'string',
|
|
186
|
-
path: { type: 'string'
|
|
190
|
+
status: { type: 'string', enum: ['M', 'A', 'D', '!', 'C'] },
|
|
191
|
+
path: { type: 'string' },
|
|
187
192
|
size: { type: 'integer', description: '修改后的大小(仅 M)' },
|
|
188
193
|
},
|
|
189
194
|
},
|
|
@@ -246,35 +251,38 @@ export function apply(ctx) {
|
|
|
246
251
|
},
|
|
247
252
|
}
|
|
248
253
|
},
|
|
249
|
-
presentCall: (args) => ({
|
|
250
|
-
card: 'generic',
|
|
251
|
-
title: '读取 SVN 变更集',
|
|
252
|
-
kind: 'other',
|
|
253
|
-
rawInput: args,
|
|
254
|
-
}),
|
|
255
254
|
})
|
|
256
255
|
|
|
257
256
|
ctx.tools.register({
|
|
258
257
|
name: 'project_profile',
|
|
259
258
|
description: PROFILE_DESCRIPTION,
|
|
260
259
|
parameters: {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
type: 'object',
|
|
261
|
+
additionalProperties: false,
|
|
262
|
+
properties: {
|
|
263
|
+
path: {
|
|
264
|
+
type: 'string',
|
|
265
|
+
description: '工作目录或其中任意子目录。省略时用当前工作目录。',
|
|
266
|
+
},
|
|
264
267
|
},
|
|
265
268
|
},
|
|
266
269
|
output: {
|
|
267
270
|
schema: {
|
|
268
271
|
type: 'object',
|
|
269
272
|
additionalProperties: false,
|
|
273
|
+
required: ['root', 'languages', 'testInfra', 'concurrencyHints', 'notes'],
|
|
270
274
|
properties: {
|
|
271
|
-
root: { type: 'string'
|
|
275
|
+
root: { type: 'string' },
|
|
272
276
|
projectName: { type: 'string', description: '检测到的工程名,用于匹配 projects/<名>.md' },
|
|
273
|
-
languages: {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
277
|
+
languages: {
|
|
278
|
+
type: 'array',
|
|
279
|
+
items: { type: 'object' },
|
|
280
|
+
description: '每种识别出的语言及其档案路径',
|
|
281
|
+
},
|
|
282
|
+
build: { type: 'object', description: '构建系统信息;未识别时不返回该字段' },
|
|
283
|
+
testInfra: { type: 'array', items: { type: 'string' } },
|
|
284
|
+
concurrencyHints: { type: 'array', items: { type: 'string' } },
|
|
285
|
+
notes: { type: 'array', items: { type: 'string' } },
|
|
278
286
|
rules: { type: 'object', description: '各层规范文件的绝对路径' },
|
|
279
287
|
},
|
|
280
288
|
},
|
|
@@ -338,11 +346,5 @@ export function apply(ctx) {
|
|
|
338
346
|
},
|
|
339
347
|
}
|
|
340
348
|
},
|
|
341
|
-
presentCall: (args) => ({
|
|
342
|
-
card: 'generic',
|
|
343
|
-
title: '识别项目技术栈',
|
|
344
|
-
kind: 'other',
|
|
345
|
-
rawInput: args,
|
|
346
|
-
}),
|
|
347
349
|
})
|
|
348
350
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-svn-review",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"displayName": "DSH SVN Review",
|
|
5
5
|
"description": "SVN change-set scoping plus language and version detection for DeepSeek Harness code review: reads .svn/wc.db directly (no svn.exe), pins down the project language and version, and hands over the matching review rules so findings are judged by that language instead of generic ones.",
|
|
6
6
|
"keywords": [
|