plugin-git-manager 1.1.6 → 1.1.7
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.
|
@@ -274,7 +274,18 @@ async function runReview(app, args) {
|
|
|
274
274
|
state: { currentUser: args.userId ? { id: args.userId } : null },
|
|
275
275
|
auth: { user: args.userId ? { id: args.userId } : { id: null } },
|
|
276
276
|
req: { headers: { "x-timezone": "+00:00", "x-locale": "en-US" } },
|
|
277
|
+
// AIEmployee.getSystemPrompt reads ctx.action.params.values.important
|
|
278
|
+
action: { params: { values: {} } },
|
|
279
|
+
// ChatStreamProtocol.write calls ctx.res.write — stub for non-stream invoke
|
|
280
|
+
res: {
|
|
281
|
+
write() {
|
|
282
|
+
},
|
|
283
|
+
end() {
|
|
284
|
+
},
|
|
285
|
+
writableEnded: false
|
|
286
|
+
},
|
|
277
287
|
log: app.logger || console,
|
|
288
|
+
logger: app.logger || console,
|
|
278
289
|
get(name) {
|
|
279
290
|
return this.req.headers[String(name).toLowerCase()];
|
|
280
291
|
},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "Git Manager",
|
|
4
4
|
"displayName.zh-CN": "Git 管理器",
|
|
5
5
|
"description": "Manage Git repositories with PAT authentication - pull, push, fetch, diff, file browsing",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.7",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"files": [
|
|
@@ -335,14 +335,25 @@ async function runReview(app: Application, args: RunReviewArgs) {
|
|
|
335
335
|
const prompt = buildReviewPrompt(args);
|
|
336
336
|
|
|
337
337
|
// Synthesize a minimal ctx-shaped object that AIEmployee accepts.
|
|
338
|
-
// It needs `app`, `db`, `state.currentUser`, `get(headerName)`, `req.headers
|
|
338
|
+
// It needs `app`, `db`, `state.currentUser`, `get(headerName)`, `req.headers`,
|
|
339
|
+
// `action.params.values` (used in getSystemPrompt), and `res.write` (used by
|
|
340
|
+
// ChatStreamProtocol). All stubs are no-ops since we use `invoke` (not stream).
|
|
339
341
|
const syntheticCtx: any = {
|
|
340
342
|
app,
|
|
341
343
|
db,
|
|
342
344
|
state: { currentUser: args.userId ? { id: args.userId } : null },
|
|
343
345
|
auth: { user: args.userId ? { id: args.userId } : { id: null } },
|
|
344
346
|
req: { headers: { 'x-timezone': '+00:00', 'x-locale': 'en-US' } },
|
|
347
|
+
// AIEmployee.getSystemPrompt reads ctx.action.params.values.important
|
|
348
|
+
action: { params: { values: {} } },
|
|
349
|
+
// ChatStreamProtocol.write calls ctx.res.write — stub for non-stream invoke
|
|
350
|
+
res: {
|
|
351
|
+
write() {},
|
|
352
|
+
end() {},
|
|
353
|
+
writableEnded: false,
|
|
354
|
+
},
|
|
345
355
|
log: app.logger || console,
|
|
356
|
+
logger: app.logger || console,
|
|
346
357
|
get(name: string) {
|
|
347
358
|
return this.req.headers[String(name).toLowerCase()];
|
|
348
359
|
},
|