plugin-git-manager 1.2.10 → 1.2.11
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/dist/server/actions/review.js +11 -10
- package/package.json +1 -1
- package/src/server/actions/review.ts +1222 -1221
|
@@ -589,7 +589,7 @@ async function reviewReject(ctx, next) {
|
|
|
589
589
|
await next();
|
|
590
590
|
}
|
|
591
591
|
async function runReview(app, args) {
|
|
592
|
-
var _a, _b, _c, _d;
|
|
592
|
+
var _a, _b, _c, _d, _e, _f;
|
|
593
593
|
const db = app.db;
|
|
594
594
|
const reviewsRepo = db.getRepository("gitCodeReviews");
|
|
595
595
|
const startedAt = /* @__PURE__ */ new Date();
|
|
@@ -678,16 +678,16 @@ async function runReview(app, args) {
|
|
|
678
678
|
const llmService = args.flow.get("llmService");
|
|
679
679
|
const model = args.flow.get("model");
|
|
680
680
|
const modelRef = llmService && model ? { llmService, model } : void 0;
|
|
681
|
-
const aiEmployee = new AIEmployee(
|
|
682
|
-
syntheticCtx,
|
|
683
|
-
employeeRecord,
|
|
681
|
+
const aiEmployee = new AIEmployee({
|
|
682
|
+
ctx: syntheticCtx,
|
|
683
|
+
employee: employeeRecord,
|
|
684
684
|
sessionId,
|
|
685
|
-
void 0,
|
|
686
|
-
void 0,
|
|
687
|
-
false,
|
|
688
|
-
modelRef,
|
|
689
|
-
false
|
|
690
|
-
);
|
|
685
|
+
systemMessage: void 0,
|
|
686
|
+
skillSettings: void 0,
|
|
687
|
+
webSearch: false,
|
|
688
|
+
model: modelRef,
|
|
689
|
+
legacy: false
|
|
690
|
+
});
|
|
691
691
|
const REVIEW_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
692
692
|
const result = await Promise.race([
|
|
693
693
|
aiEmployee.invoke({
|
|
@@ -755,6 +755,7 @@ async function runReview(app, args) {
|
|
|
755
755
|
} catch (err) {
|
|
756
756
|
const finishedAt = /* @__PURE__ */ new Date();
|
|
757
757
|
const safeMessage = (0, import_redact.redactPat)((err == null ? void 0 : err.message) || String(err));
|
|
758
|
+
(_f = (_e = app.log) == null ? void 0 : _e.error) == null ? void 0 : _f.call(_e, `git review ${args.reviewId} failed: ${safeMessage}`, err);
|
|
758
759
|
await reviewsRepo.update({
|
|
759
760
|
filterByTk: args.reviewId,
|
|
760
761
|
values: {
|
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.2.
|
|
6
|
+
"version": "1.2.11",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"files": [
|