plugin-git-manager 1.2.28 → 1.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.
Files changed (67) hide show
  1. package/README.md +58 -40
  2. package/dist/client/941.1793e67472872992.js +10 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/client-v2/941.b0d55429cd053f32.js +10 -0
  5. package/dist/client-v2/index.js +1 -1
  6. package/dist/locale/en-US.json +90 -1
  7. package/dist/locale/vi-VN.json +90 -1
  8. package/dist/locale/zh-CN.json +90 -1
  9. package/dist/node_modules/simple-git/package.json +1 -1
  10. package/dist/node_modules/zod/package.json +1 -1
  11. package/dist/server/actions/review-cutover.js +137 -0
  12. package/dist/server/actions/review.js +132 -43
  13. package/dist/server/actions/role-permissions.js +1 -0
  14. package/dist/server/ai-tools.js +8 -9
  15. package/dist/server/collections/gitCodeReviews.js +10 -0
  16. package/dist/server/collections/gitReviewCutover.js +44 -0
  17. package/dist/server/collections/gitReviewFlows.js +3 -0
  18. package/dist/server/collections/gitReviewInbox.js +51 -0
  19. package/dist/server/collections/gitReviewProjects.js +43 -0
  20. package/dist/server/collections/gitReviewRequests.js +56 -0
  21. package/dist/server/index.js +8 -2
  22. package/dist/server/plugin.js +51 -16
  23. package/dist/server/poller.js +54 -34
  24. package/dist/server/repository-access.js +23 -5
  25. package/dist/server/request-method-policy.js +2 -1
  26. package/dist/server/review-control-access.js +79 -0
  27. package/dist/server/services/legacy-post-service.js +412 -0
  28. package/dist/server/services/review-service.js +1451 -0
  29. package/dist/server/services/review-source.js +325 -0
  30. package/package.json +2 -2
  31. package/src/client/__tests__/CommitHistory.test.tsx +79 -0
  32. package/src/client/__tests__/ReviewHistory.test.tsx +126 -0
  33. package/src/client/__tests__/RunReviewButton.test.tsx +46 -35
  34. package/src/client/__tests__/workflowRoutes.test.ts +65 -0
  35. package/src/client/components/CommitHistory.tsx +61 -6
  36. package/src/client/components/ReviewFlows.tsx +90 -41
  37. package/src/client/components/ReviewHistory.tsx +245 -15
  38. package/src/client/components/RunReviewButton.tsx +12 -136
  39. package/src/client/workflowRoutes.ts +42 -0
  40. package/src/locale/en-US.json +90 -1
  41. package/src/locale/vi-VN.json +90 -1
  42. package/src/locale/zh-CN.json +90 -1
  43. package/src/server/__tests__/repository-access.test.ts +11 -3
  44. package/src/server/__tests__/review-service.integration.test.ts +1263 -0
  45. package/src/server/__tests__/review.test.ts +37 -98
  46. package/src/server/actions/review-cutover.ts +121 -0
  47. package/src/server/actions/review.ts +148 -38
  48. package/src/server/actions/role-permissions.ts +10 -0
  49. package/src/server/ai-tools.ts +23 -8
  50. package/src/server/collections/gitCodeReviews.ts +19 -0
  51. package/src/server/collections/gitReviewCutover.ts +23 -0
  52. package/src/server/collections/gitReviewFlows.ts +12 -0
  53. package/src/server/collections/gitReviewInbox.ts +30 -0
  54. package/src/server/collections/gitReviewProjects.ts +22 -0
  55. package/src/server/collections/gitReviewRequests.ts +35 -0
  56. package/src/server/index.ts +12 -0
  57. package/src/server/plugin.ts +43 -6
  58. package/src/server/poller.ts +54 -40
  59. package/src/server/repository-access.ts +32 -2
  60. package/src/server/request-method-policy.ts +1 -0
  61. package/src/server/review-control-access.ts +71 -0
  62. package/src/server/services/__tests__/review-source.test.ts +226 -0
  63. package/src/server/services/legacy-post-service.ts +550 -0
  64. package/src/server/services/review-service.ts +1899 -0
  65. package/src/server/services/review-source.ts +359 -0
  66. package/dist/client/900.a48beac7e2ebee7d.js +0 -10
  67. package/dist/client-v2/900.e6155002a9c97e7f.js +0 -10
@@ -1,5 +1,30 @@
1
1
  {
2
2
  "Git Manager": "Git Manager",
3
+ "Invalid merge request": "Invalid merge request",
4
+ "Legacy review is not available": "Legacy review is not available",
5
+ "No review content to post": "No review content to post",
6
+ "Permission denied": "Permission denied",
7
+ "Repository not found": "Repository not found",
8
+ "Review cutover has not been confirmed": "Review cutover has not been confirmed",
9
+ "Review is not awaiting approval": "Review is not awaiting approval",
10
+ "Review not found": "Review not found",
11
+ "Reviewed commit is unavailable": "Reviewed commit is unavailable",
12
+ "Review content cannot change while publication is unresolved": "Review content cannot change while publication is unresolved",
13
+ "post_unknown": "Publication unknown",
14
+ "posting": "Posting",
15
+ "retrying": "Retrying",
16
+ "Merge request base changed after review": "Merge request base changed after review",
17
+ "Legacy review source is invalid": "Legacy review source is invalid",
18
+ "Only completed legacy merge request reviews can be published": "Only completed legacy merge request reviews can be published",
19
+ "Legacy review is not awaiting publication recovery": "Legacy review is not awaiting publication recovery",
20
+ "Legacy review base requires explicit confirmation": "Legacy review base requires explicit confirmation",
21
+ "Legacy review has no publication hold": "Legacy review has no publication hold",
22
+ "The original review base cannot be verified. Compare the review with the current merge request before continuing.": "The original review base cannot be verified. Compare the review with the current merge request before continuing.",
23
+ "A matching comment was found, but its attempt cannot be confirmed": "A matching comment was found, but its attempt cannot be confirmed",
24
+ "A matching marked comment was found; confirm the previous attempt stopped to finalize it": "A matching marked comment was found; confirm the previous attempt stopped to finalize it",
25
+ "Legacy publication hold released": "Legacy publication hold released",
26
+ "Publication outcome is still unknown": "Publication outcome is still unknown",
27
+ "Release legacy publication hold": "Release legacy publication hold",
3
28
  "Git Accounts": "Git Accounts",
4
29
  "Git Account": "Git Account",
5
30
  "Repositories": "Repositories",
@@ -197,6 +222,8 @@
197
222
  "Failed to load repository permissions": "Failed to load repository permissions",
198
223
  "Failed to update permissions": "Failed to update permissions",
199
224
  "Code Review": "Code Review",
225
+ "Review branch": "Review branch",
226
+ "Branch": "Branch",
200
227
  "Run code review": "Run code review",
201
228
  "Start Review": "Start Review",
202
229
  "Review started": "Review started",
@@ -303,5 +330,67 @@
303
330
  "Repository URL must match the Git account origin": "Repository URL must match the Git account origin",
304
331
  "GitHub accounts currently require github.com": "GitHub accounts currently require github.com",
305
332
  "Invalid local path": "Invalid local path",
306
- "Invalid local path: path traversal detected or path is outside the allowed base directory": "Invalid local path: path traversal detected or path is outside the allowed base directory"
333
+ "Invalid local path: path traversal detected or path is outside the allowed base directory": "Invalid local path: path traversal detected or path is outside the allowed base directory",
334
+ "queued": "Queued",
335
+ "Review new commits automatically": "Review new commits automatically",
336
+ "Only applies to automatic merge request reviews": "Only applies to automatic merge request reviews",
337
+ "Edit the AI employee, model and prompt in the bound workflow": "Edit the AI employee, model and prompt in the bound workflow",
338
+ "Reconfigure the workflow after changing post mode": "Reconfigure the workflow after changing post mode",
339
+ "Use the workflow approval task for this review": "Use the workflow approval task for this review",
340
+ "Open workflow": "Open workflow",
341
+ "Open workflow tasks": "Open workflow tasks",
342
+ "Open workflow execution": "Open workflow execution",
343
+ "Review queued": "Review queued",
344
+ "New commits detected. A new review will be queued.": "New commits detected. A new review will be queued.",
345
+ "A new review will be queued and existing history will be kept.": "A new review will be queued and existing history will be kept.",
346
+ "Worker and AI stop confirmation is required": "Worker and AI stop confirmation is required",
347
+ "Legacy review cancellation confirmation is required": "Legacy review cancellation confirmation is required",
348
+ "Legacy review identifier is required": "Legacy review identifier is required",
349
+ "AI stop confirmation is required": "AI stop confirmation is required",
350
+ "No enabled review flow found": "No enabled review flow found",
351
+ "Source branch does not match review flow": "Source branch does not match review flow",
352
+ "Flow does not permit manual review": "Flow does not permit manual review",
353
+ "Review flow has not been bound to a workflow": "Review flow has not been bound to a workflow",
354
+ "Review workflow setup is incomplete": "Review workflow setup is incomplete",
355
+ "Review workflow is not enabled": "Review workflow is not enabled",
356
+ "Review requires an authenticated actor": "Review requires an authenticated actor",
357
+ "Review actor roles are unavailable or changed": "Review actor roles are unavailable or changed",
358
+ "Review actor does not have repository access": "Review actor does not have repository access",
359
+ "Git review workflow integration is unavailable": "Git review workflow integration is unavailable",
360
+ "Unable to resolve an immutable Git commit": "Unable to resolve an immutable Git commit",
361
+ "Checkout origin is missing or unsupported": "Checkout origin is missing or unsupported",
362
+ "Checkout origin project could not be verified": "Checkout origin project could not be verified",
363
+ "Checkout origin does not match the configured project": "Checkout origin does not match the configured project",
364
+ "Merge request head changed before review admission": "Merge request head changed before review admission",
365
+ "Git provider request failed ({{status}})": "Git provider request failed ({{status}})",
366
+ "No configured approver can access this repository": "No configured approver can access this repository",
367
+ "Queued review cancellation confirmation is required": "Queued review cancellation confirmation is required",
368
+ "Outbound post stop confirmation is required": "Outbound post stop confirmation is required",
369
+ "Review publication confirmed": "Review publication confirmed",
370
+ "No matching comment found; confirm the previous post stopped before retrying": "No matching comment found; confirm the previous post stopped before retrying",
371
+ "A previous publication attempt may still be running; ask an administrator to recover it": "A previous publication attempt may still be running; ask an administrator to recover it",
372
+ "Failed to reconcile review publication": "Failed to reconcile review publication",
373
+ "Check publication": "Check publication",
374
+ "Has the previous outbound post stopped and settled?": "Has the previous outbound post stopped and settled?",
375
+ "Retry publication": "Retry publication",
376
+ "Another review is active for this project": "Another review is active for this project",
377
+ "A publication attempt may still be running": "A publication attempt may still be running",
378
+ "Invalid publication confirmation": "Invalid publication confirmation",
379
+ "Review is not settled or is no longer available": "Review is not settled or is no longer available",
380
+ "Review execution is not terminal": "Review execution is not terminal",
381
+ "Review cannot be published": "Review cannot be published",
382
+ "Approved review content changed": "Approved review content changed",
383
+ "Review approval verifier is unavailable": "Review approval verifier is unavailable",
384
+ "Review publication receipt is unavailable": "Review publication receipt is unavailable",
385
+ "Review publication cannot be retried": "Review publication cannot be retried",
386
+ "Review publication state changed": "Review publication state changed",
387
+ "Merge request head changed after review": "Merge request head changed after review",
388
+ "Review comment marker is ambiguous": "Review comment marker is ambiguous",
389
+ "Unable to verify Git account identity": "Unable to verify Git account identity",
390
+ "Repository credentials or project changed": "Repository credentials or project changed",
391
+ "Resolve publication or reset the stopped post attempt before recovery": "Resolve publication or reset the stopped post attempt before recovery",
392
+ "Refresh publication status before recovery": "Refresh publication status before recovery",
393
+ "Matching comment found; another publication attempt still owns the review": "Matching comment found; another publication attempt still owns the review",
394
+ "Review publication claim changed": "Review publication claim changed; refresh and check the current attempt",
395
+ "Review project reservation changed": "Review project reservation changed"
307
396
  }
@@ -1,5 +1,30 @@
1
1
  {
2
2
  "Git Manager": "Quản lý Git",
3
+ "Invalid merge request": "Merge request không hợp lệ",
4
+ "Legacy review is not available": "Lượt đánh giá cũ không khả dụng",
5
+ "No review content to post": "Không có nội dung đánh giá để đăng",
6
+ "Permission denied": "Không có quyền",
7
+ "Repository not found": "Không tìm thấy kho mã",
8
+ "Review cutover has not been confirmed": "Chưa xác nhận chuyển đổi hệ thống đánh giá",
9
+ "Review is not awaiting approval": "Lượt đánh giá không chờ phê duyệt",
10
+ "Review not found": "Không tìm thấy lượt đánh giá",
11
+ "Reviewed commit is unavailable": "Commit đã đánh giá không khả dụng",
12
+ "Review content cannot change while publication is unresolved": "Không thể sửa nội dung khi kết quả đăng chưa được xác định",
13
+ "post_unknown": "Chưa xác định kết quả đăng",
14
+ "posting": "Đang đăng",
15
+ "retrying": "Đang thử lại",
16
+ "Merge request base changed after review": "Base của merge request đã thay đổi sau khi đánh giá",
17
+ "Legacy review source is invalid": "Thông tin nguồn của lượt đánh giá cũ không hợp lệ",
18
+ "Only completed legacy merge request reviews can be published": "Chỉ có thể đăng lượt đánh giá merge request cũ đã hoàn tất",
19
+ "Legacy review is not awaiting publication recovery": "Lượt đánh giá cũ không chờ khôi phục việc đăng",
20
+ "Legacy review base requires explicit confirmation": "Cần xác nhận rõ base của lượt đánh giá cũ",
21
+ "Legacy review has no publication hold": "Lượt đánh giá cũ không có khóa đăng",
22
+ "The original review base cannot be verified. Compare the review with the current merge request before continuing.": "Không thể xác minh base của lượt đánh giá gốc. Hãy đối chiếu nội dung với merge request hiện tại trước khi tiếp tục.",
23
+ "A matching comment was found, but its attempt cannot be confirmed": "Đã tìm thấy bình luận khớp nhưng không thể xác nhận lần đăng tương ứng",
24
+ "A matching marked comment was found; confirm the previous attempt stopped to finalize it": "Đã tìm thấy bình luận có dấu khớp; hãy xác nhận lần đăng trước đã dừng để hoàn tất ghi nhận",
25
+ "Legacy publication hold released": "Đã giải phóng khóa đăng của lượt đánh giá cũ",
26
+ "Publication outcome is still unknown": "Kết quả đăng vẫn chưa được xác định",
27
+ "Release legacy publication hold": "Giải phóng khóa đăng của lượt đánh giá cũ",
3
28
  "Git Accounts": "Tài khoản Git",
4
29
  "Git Account": "Tài khoản Git",
5
30
  "Repositories": "Kho mã nguồn",
@@ -193,6 +218,8 @@
193
218
  "AI employee not found": "Không tìm thấy AI employee",
194
219
  "Failed to open AI chat": "Mở AI chat thất bại",
195
220
  "Code Review": "Đánh giá code",
221
+ "Review branch": "Đánh giá nhánh",
222
+ "Branch": "Nhánh",
196
223
  "Run code review": "Chạy đánh giá code",
197
224
  "Start Review": "Bắt đầu đánh giá",
198
225
  "Review started": "Đã bắt đầu đánh giá",
@@ -291,5 +318,67 @@
291
318
  "Credential-bearing URLs are not allowed": "URL không được chứa tên người dùng hoặc thông tin xác thực",
292
319
  "Git Repository": "Kho Git",
293
320
  "Git Merge Request": "Yêu cầu hợp nhất Git",
294
- "Git Commit": "Commit Git"
321
+ "Git Commit": "Commit Git",
322
+ "queued": "Đang chờ",
323
+ "Review new commits automatically": "Tự động đánh giá commit mới",
324
+ "Only applies to automatic merge request reviews": "Chỉ áp dụng cho đánh giá yêu cầu hợp nhất tự động",
325
+ "Edit the AI employee, model and prompt in the bound workflow": "Chỉnh sửa cấu hình AI, mô hình và prompt trong workflow đã liên kết",
326
+ "Reconfigure the workflow after changing post mode": "Cấu hình lại workflow sau khi thay đổi chế độ đăng",
327
+ "Use the workflow approval task for this review": "Sử dụng tác vụ phê duyệt trong workflow cho lần đánh giá này",
328
+ "Open workflow": "Mở workflow",
329
+ "Open workflow tasks": "Mở tác vụ workflow",
330
+ "Open workflow execution": "Mở lượt chạy workflow",
331
+ "Review queued": "Đã đưa đánh giá vào hàng đợi",
332
+ "New commits detected. A new review will be queued.": "Phát hiện commit mới. Lượt đánh giá mới sẽ được đưa vào hàng đợi.",
333
+ "A new review will be queued and existing history will be kept.": "Lượt đánh giá mới sẽ được đưa vào hàng đợi và lịch sử hiện có được giữ lại.",
334
+ "Worker and AI stop confirmation is required": "Cần xác nhận worker và AI đã dừng",
335
+ "Legacy review cancellation confirmation is required": "Cần xác nhận hủy lượt đánh giá cũ",
336
+ "Legacy review identifier is required": "Cần mã lượt đánh giá cũ",
337
+ "AI stop confirmation is required": "Cần xác nhận AI đã dừng",
338
+ "No enabled review flow found": "Không tìm thấy luồng đánh giá đang bật",
339
+ "Source branch does not match review flow": "Nhánh nguồn không khớp với luồng đánh giá",
340
+ "Flow does not permit manual review": "Luồng này không cho phép đánh giá thủ công",
341
+ "Review flow has not been bound to a workflow": "Luồng đánh giá chưa được liên kết với workflow",
342
+ "Review workflow setup is incomplete": "Chưa hoàn tất cấu hình workflow đánh giá",
343
+ "Review workflow is not enabled": "Workflow đánh giá chưa được bật",
344
+ "Review requires an authenticated actor": "Lượt đánh giá cần người dùng đã xác thực",
345
+ "Review actor roles are unavailable or changed": "Vai trò của người yêu cầu không khả dụng hoặc đã thay đổi",
346
+ "Review actor does not have repository access": "Người yêu cầu không có quyền truy cập kho",
347
+ "Git review workflow integration is unavailable": "Tích hợp workflow đánh giá Git không khả dụng",
348
+ "Unable to resolve an immutable Git commit": "Không xác định được commit Git bất biến",
349
+ "Checkout origin is missing or unsupported": "Checkout không có origin hoặc origin không được hỗ trợ",
350
+ "Checkout origin project could not be verified": "Không thể xác minh dự án origin của checkout",
351
+ "Checkout origin does not match the configured project": "Origin của checkout không khớp dự án đã cấu hình",
352
+ "Merge request head changed before review admission": "Head của yêu cầu hợp nhất đã thay đổi trước khi đưa vào hàng đợi",
353
+ "Git provider request failed ({{status}})": "Yêu cầu tới dịch vụ Git thất bại ({{status}})",
354
+ "No configured approver can access this repository": "Không người phê duyệt nào được cấu hình có quyền truy cập kho này",
355
+ "Queued review cancellation confirmation is required": "Cần xác nhận hủy lượt đánh giá đang chờ",
356
+ "Outbound post stop confirmation is required": "Cần xác nhận yêu cầu đăng trước đó đã dừng",
357
+ "Review publication confirmed": "Đã xác nhận đăng kết quả đánh giá",
358
+ "No matching comment found; confirm the previous post stopped before retrying": "Không tìm thấy bình luận khớp; hãy xác nhận lần đăng trước đã dừng trước khi thử lại",
359
+ "A previous publication attempt may still be running; ask an administrator to recover it": "Lần đăng trước có thể vẫn đang chạy; hãy nhờ quản trị viên khôi phục",
360
+ "Failed to reconcile review publication": "Không thể đối soát việc đăng kết quả đánh giá",
361
+ "Check publication": "Kiểm tra việc đăng",
362
+ "Has the previous outbound post stopped and settled?": "Yêu cầu đăng trước đó đã dừng và xử lý xong chưa?",
363
+ "Retry publication": "Thử đăng lại",
364
+ "Another review is active for this project": "Một lượt đánh giá khác đang hoạt động trên dự án này",
365
+ "A publication attempt may still be running": "Một lần đăng có thể vẫn đang chạy",
366
+ "Invalid publication confirmation": "Xác nhận đăng không hợp lệ",
367
+ "Review is not settled or is no longer available": "Lượt đánh giá chưa kết thúc hoặc không còn khả dụng",
368
+ "Review execution is not terminal": "Lượt chạy đánh giá chưa kết thúc",
369
+ "Review cannot be published": "Không thể đăng lượt đánh giá này",
370
+ "Approved review content changed": "Nội dung đánh giá đã được phê duyệt đã thay đổi",
371
+ "Review approval verifier is unavailable": "Không có bộ xác minh phê duyệt đánh giá",
372
+ "Review publication receipt is unavailable": "Không có biên nhận đăng kết quả đánh giá",
373
+ "Review publication cannot be retried": "Không thể thử đăng lại kết quả đánh giá",
374
+ "Review publication state changed": "Trạng thái đăng kết quả đánh giá đã thay đổi",
375
+ "Merge request head changed after review": "Head của yêu cầu hợp nhất đã thay đổi sau khi đánh giá",
376
+ "Review comment marker is ambiguous": "Dấu nhận diện bình luận đánh giá không rõ ràng",
377
+ "Unable to verify Git account identity": "Không thể xác minh danh tính tài khoản Git",
378
+ "Repository credentials or project changed": "Thông tin đăng nhập hoặc dự án của kho đã thay đổi",
379
+ "Resolve publication or reset the stopped post attempt before recovery": "Hãy đối soát việc đăng hoặc đặt lại lần đăng đã dừng trước khi khôi phục",
380
+ "Refresh publication status before recovery": "Hãy làm mới trạng thái đăng trước khi khôi phục",
381
+ "Matching comment found; another publication attempt still owns the review": "Đã tìm thấy bình luận khớp; một lần đăng khác vẫn đang giữ lượt đánh giá",
382
+ "Review publication claim changed": "Lượt đăng đang giữ đã thay đổi; hãy làm mới và kiểm tra lượt hiện tại",
383
+ "Review project reservation changed": "Quyền giữ dự án cho lượt đánh giá đã thay đổi"
295
384
  }
@@ -1,5 +1,32 @@
1
1
  {
2
2
  "Git Manager": "Git 管理器",
3
+ "Invalid merge request": "合并请求无效",
4
+ "Legacy review is not available": "旧审查不可用",
5
+ "No review content to post": "没有可发布的审查内容",
6
+ "Permission denied": "权限不足",
7
+ "Repository not found": "找不到仓库",
8
+ "Review cutover has not been confirmed": "尚未确认审查切换",
9
+ "Review is not awaiting approval": "审查不处于等待批准状态",
10
+ "Review not found": "找不到审查记录",
11
+ "Reviewed commit is unavailable": "审查的提交不可用",
12
+ "Review content cannot change while publication is unresolved": "发布结果未确定时不能修改审查内容",
13
+ "post_unknown": "发布结果未知",
14
+ "posting": "正在发布",
15
+ "retrying": "正在重试",
16
+ "Merge request base changed after review": "合并请求的基准在审查后发生变化",
17
+ "Legacy review source is invalid": "旧审查的源信息无效",
18
+ "Only completed legacy merge request reviews can be published": "只能发布已完成的旧合并请求审查",
19
+ "Legacy review is not awaiting publication recovery": "旧审查不处于等待发布恢复状态",
20
+ "Legacy review base requires explicit confirmation": "必须明确确认旧审查的基准",
21
+ "Legacy review has no publication hold": "旧审查没有发布锁定",
22
+ "The original review base cannot be verified. Compare the review with the current merge request before continuing.": "无法验证原始审查的基准。继续之前,请将审查内容与当前合并请求进行比较。",
23
+ "A matching comment was found, but its attempt cannot be confirmed": "找到匹配的评论,但无法确认它属于哪次发布尝试",
24
+ "A matching marked comment was found; confirm the previous attempt stopped to finalize it": "找到带标记的匹配评论;请确认上一次发布尝试已停止以完成记录",
25
+ "Legacy publication hold released": "已释放旧审查发布锁定",
26
+ "Publication outcome is still unknown": "发布结果仍未知",
27
+ "Release legacy publication hold": "释放旧审查发布锁定",
28
+ "Review branch": "审查分支",
29
+ "Branch": "分支",
3
30
  "Allow Skill Registry export": "允许 Skill Registry 导出",
4
31
  "Subtree Splits": "Subtree 拆分",
5
32
  "Add subtree configuration": "添加 subtree 配置",
@@ -57,5 +84,67 @@
57
84
  "Repository URL must match the Git account origin": "仓库 URL 必须与 Git 账号使用相同的协议、主机和端口",
58
85
  "GitHub accounts currently require github.com": "GitHub 账号目前仅支持 github.com",
59
86
  "Invalid local path": "本地路径无效",
60
- "Invalid local path: path traversal detected or path is outside the allowed base directory": "本地路径无效:检测到路径穿越或路径位于允许的基础目录之外"
87
+ "Invalid local path: path traversal detected or path is outside the allowed base directory": "本地路径无效:检测到路径穿越或路径位于允许的基础目录之外",
88
+ "queued": "排队中",
89
+ "Review new commits automatically": "自动审查新提交",
90
+ "Only applies to automatic merge request reviews": "仅适用于自动合并请求审查",
91
+ "Edit the AI employee, model and prompt in the bound workflow": "在绑定的工作流中编辑 AI 员工、模型和提示词",
92
+ "Reconfigure the workflow after changing post mode": "更改发布模式后请重新配置工作流",
93
+ "Use the workflow approval task for this review": "请使用工作流审批任务处理此审查",
94
+ "Open workflow": "打开工作流",
95
+ "Open workflow tasks": "打开工作流任务",
96
+ "Open workflow execution": "打开工作流执行记录",
97
+ "Review queued": "审查已加入队列",
98
+ "New commits detected. A new review will be queued.": "检测到新提交。新的审查将加入队列。",
99
+ "A new review will be queued and existing history will be kept.": "新的审查将加入队列,并保留现有历史记录。",
100
+ "Worker and AI stop confirmation is required": "必须确认工作进程和 AI 均已停止",
101
+ "Legacy review cancellation confirmation is required": "必须确认取消旧审查",
102
+ "Legacy review identifier is required": "必须提供旧审查标识",
103
+ "AI stop confirmation is required": "必须确认 AI 已停止",
104
+ "No enabled review flow found": "未找到已启用的审查流程",
105
+ "Source branch does not match review flow": "源分支不符合审查流程",
106
+ "Flow does not permit manual review": "此流程不允许手动审查",
107
+ "Review flow has not been bound to a workflow": "审查流程尚未绑定工作流",
108
+ "Review workflow setup is incomplete": "审查工作流配置尚未完成",
109
+ "Review workflow is not enabled": "审查工作流未启用",
110
+ "Review requires an authenticated actor": "审查需要经过身份验证的用户",
111
+ "Review actor roles are unavailable or changed": "审查用户的角色不可用或已更改",
112
+ "Review actor does not have repository access": "审查用户无权访问仓库",
113
+ "Git review workflow integration is unavailable": "Git 审查工作流集成不可用",
114
+ "Unable to resolve an immutable Git commit": "无法解析不可变的 Git 提交",
115
+ "Checkout origin is missing or unsupported": "检出仓库的 origin 不存在或不受支持",
116
+ "Checkout origin project could not be verified": "无法验证检出仓库的 origin 项目",
117
+ "Checkout origin does not match the configured project": "检出仓库的 origin 与配置的项目不匹配",
118
+ "Merge request head changed before review admission": "加入审查队列前合并请求的最新提交已更改",
119
+ "Git provider request failed ({{status}})": "Git 服务请求失败({{status}})",
120
+ "No configured approver can access this repository": "没有配置的审批人可以访问此仓库",
121
+ "Queued review cancellation confirmation is required": "必须确认取消排队中的审查",
122
+ "Outbound post stop confirmation is required": "必须确认之前的发布请求已停止",
123
+ "Review publication confirmed": "已确认审查评论发布",
124
+ "No matching comment found; confirm the previous post stopped before retrying": "未找到匹配的评论;重试前请确认之前的发布请求已停止",
125
+ "A previous publication attempt may still be running; ask an administrator to recover it": "之前的发布操作可能仍在运行,请联系管理员恢复",
126
+ "Failed to reconcile review publication": "无法核对审查评论发布状态",
127
+ "Check publication": "检查发布状态",
128
+ "Has the previous outbound post stopped and settled?": "之前的发布请求是否已停止并处理完毕?",
129
+ "Retry publication": "重试发布",
130
+ "Another review is active for this project": "此项目已有审查正在进行",
131
+ "A publication attempt may still be running": "之前的发布操作可能仍在运行",
132
+ "Invalid publication confirmation": "发布确认无效",
133
+ "Review is not settled or is no longer available": "审查尚未完成或已不可用",
134
+ "Review execution is not terminal": "审查执行尚未结束",
135
+ "Review cannot be published": "无法发布此审查",
136
+ "Approved review content changed": "已批准的审查内容已更改",
137
+ "Review approval verifier is unavailable": "审查审批验证器不可用",
138
+ "Review publication receipt is unavailable": "审查发布回执不可用",
139
+ "Review publication cannot be retried": "无法重试发布审查",
140
+ "Review publication state changed": "审查发布状态已更改",
141
+ "Merge request head changed after review": "审查后合并请求的最新提交已更改",
142
+ "Review comment marker is ambiguous": "审查评论标识不明确",
143
+ "Unable to verify Git account identity": "无法验证 Git 账号身份",
144
+ "Repository credentials or project changed": "仓库凭据或项目已更改",
145
+ "Resolve publication or reset the stopped post attempt before recovery": "恢复之前请先核对发布状态,或确认发布请求已停止后重置该请求",
146
+ "Refresh publication status before recovery": "恢复前请刷新发布状态",
147
+ "Matching comment found; another publication attempt still owns the review": "已找到匹配评论;另一个发布操作仍占用该审查",
148
+ "Review publication claim changed": "审查发布占用已更改;请刷新并检查当前操作",
149
+ "Review project reservation changed": "审查项目占用已更改"
61
150
  }
@@ -1 +1 @@
1
- {"name":"simple-git","description":"Simple GIT interface for node.js","version":"3.36.0","author":"Steve King <steve@mydev.co>","contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"funding":{"type":"github","url":"https://github.com/steveukx/git-js?sponsor=1"},"keywords":["git","source control","vcs"],"license":"MIT","repository":{"type":"git","url":"https://github.com/steveukx/git-js.git","directory":"simple-git"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"types":"./dist/typings/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./promise":{"require":"./promise.js"}},"types":"./dist/typings/index.d.ts","files":["promise.*","dist"],"dependencies":{"@kwsites/file-exists":"^1.1.1","@kwsites/promise-deferred":"^1.1.1","@simple-git/args-pathspec":"^1.0.3","@simple-git/argv-parser":"^1.1.0","debug":"^4.4.0"},"_lastModified":"2026-11-07T02:49:52.459Z"}
1
+ {"name":"simple-git","description":"Simple GIT interface for node.js","version":"3.36.0","author":"Steve King <steve@mydev.co>","contributors":[{"name":"Steve King","email":"steve@mydev.co"}],"funding":{"type":"github","url":"https://github.com/steveukx/git-js?sponsor=1"},"keywords":["git","source control","vcs"],"license":"MIT","repository":{"type":"git","url":"https://github.com/steveukx/git-js.git","directory":"simple-git"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"types":"./dist/typings/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./promise":{"require":"./promise.js"}},"types":"./dist/typings/index.d.ts","files":["promise.*","dist"],"dependencies":{"@kwsites/file-exists":"^1.1.1","@kwsites/promise-deferred":"^1.1.1","@simple-git/args-pathspec":"^1.0.3","@simple-git/argv-parser":"^1.1.0","debug":"^4.4.0"},"_lastModified":"2026-11-10T14:42:29.063Z"}
@@ -1 +1 @@
1
- {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-11-07T02:49:52.068Z"}
1
+ {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-11-10T14:42:28.568Z"}
@@ -0,0 +1,137 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var review_cutover_exports = {};
28
+ __export(review_cutover_exports, {
29
+ reviewCancelLegacy: () => reviewCancelLegacy,
30
+ reviewCancelQueued: () => reviewCancelQueued,
31
+ reviewConfirmCutover: () => reviewConfirmCutover,
32
+ reviewCutoverStatus: () => reviewCutoverStatus,
33
+ reviewRecover: () => reviewRecover,
34
+ reviewResetPostClaim: () => reviewResetPostClaim
35
+ });
36
+ module.exports = __toCommonJS(review_cutover_exports);
37
+ var import_repository_access = require("../repository-access");
38
+ function service(ctx) {
39
+ var _a, _b, _c;
40
+ const roles = (_a = ctx.state) == null ? void 0 : _a.currentRoles;
41
+ if (!Array.isArray(roles) || !roles.includes("root") || !((_c = (_b = ctx.state) == null ? void 0 : _b.currentUser) == null ? void 0 : _c.id))
42
+ ctx.throw(403, "Permission denied");
43
+ const plugin = ctx.app.pm.get("plugin-git-manager") || ctx.app.pm.get("git-manager");
44
+ if (!(plugin == null ? void 0 : plugin.reviewService)) ctx.throw(503, "Git review workflow service is unavailable");
45
+ return plugin.reviewService;
46
+ }
47
+ async function reviewCutoverStatus(ctx, next) {
48
+ ctx.body = { success: true, data: await service(ctx).cutoverStatus() };
49
+ await next();
50
+ }
51
+ async function reviewConfirmCutover(ctx, next) {
52
+ const reviewService = service(ctx);
53
+ if ((0, import_repository_access.getEffectiveActionParams)(ctx).confirmation !== "OLD_WORKERS_AND_AI_STOPPED")
54
+ ctx.throw(400, ctx.t("Worker and AI stop confirmation is required", { ns: "plugin-git-manager" }));
55
+ await reviewService.confirmCutover(ctx.state.currentUser.id);
56
+ ctx.body = { success: true, data: await reviewService.cutoverStatus() };
57
+ await next();
58
+ }
59
+ async function reviewCancelLegacy(ctx, next) {
60
+ const reviewService = service(ctx);
61
+ const { confirmation, legacyReviewId } = (0, import_repository_access.getEffectiveActionParams)(ctx);
62
+ if (confirmation !== "CANCEL_LEGACY_REVIEW")
63
+ ctx.throw(400, ctx.t("Legacy review cancellation confirmation is required", { ns: "plugin-git-manager" }));
64
+ if (typeof legacyReviewId !== "string" && typeof legacyReviewId !== "number")
65
+ ctx.throw(400, ctx.t("Legacy review identifier is required", { ns: "plugin-git-manager" }));
66
+ await reviewService.cancelLegacy(legacyReviewId, ctx.state.currentUser.id);
67
+ ctx.body = { success: true };
68
+ await next();
69
+ }
70
+ async function reviewRecover(ctx, next) {
71
+ const reviewService = service(ctx);
72
+ const { confirmation, requestId, executionId, legacyReviewId, inboxId } = (0, import_repository_access.getEffectiveActionParams)(ctx);
73
+ if (confirmation !== "AI_STOPPED")
74
+ ctx.throw(400, ctx.t("AI stop confirmation is required", { ns: "plugin-git-manager" }));
75
+ try {
76
+ if (typeof legacyReviewId === "string" || typeof legacyReviewId === "number") {
77
+ await reviewService.recoverLegacy(legacyReviewId, ctx.state.currentUser.id);
78
+ } else if (typeof inboxId === "string" || typeof inboxId === "number") {
79
+ await reviewService.recoverOrphaned(inboxId, ctx.state.currentUser.id);
80
+ } else if ((typeof requestId === "string" || typeof requestId === "number") && (executionId == null || typeof executionId === "string" || typeof executionId === "number")) {
81
+ await reviewService.recover(requestId, executionId ?? null, ctx.state.currentUser.id);
82
+ } else {
83
+ ctx.throw(400, "Review and execution identifiers are required");
84
+ }
85
+ } catch (error) {
86
+ if (error instanceof Error && error.message === "Resolve publication or reset the stopped post attempt before recovery") {
87
+ ctx.throw(
88
+ 409,
89
+ ctx.t("Resolve publication or reset the stopped post attempt before recovery", { ns: "plugin-git-manager" })
90
+ );
91
+ }
92
+ throw error;
93
+ }
94
+ ctx.body = { success: true };
95
+ await next();
96
+ }
97
+ async function reviewResetPostClaim(ctx, next) {
98
+ const reviewService = service(ctx);
99
+ const params = (0, import_repository_access.getEffectiveActionParams)(ctx);
100
+ const { confirmation, reviewId, expectedAttempt } = params;
101
+ if (confirmation !== "OUTBOUND_POST_STOPPED")
102
+ ctx.throw(400, ctx.t("Outbound post stop confirmation is required", { ns: "plugin-git-manager" }));
103
+ if (typeof reviewId !== "string" && typeof reviewId !== "number") ctx.throw(400, "reviewId is required");
104
+ if (!Object.prototype.hasOwnProperty.call(params, "expectedAttempt") || expectedAttempt !== null && typeof expectedAttempt !== "string") {
105
+ ctx.throw(400, ctx.t("Refresh publication status before recovery", { ns: "plugin-git-manager" }));
106
+ }
107
+ try {
108
+ await reviewService.resetPostClaim(reviewId, ctx.state.currentUser.id, expectedAttempt);
109
+ } catch (error) {
110
+ const status = error && typeof error === "object" && "status" in error && typeof error.status === "number" ? error.status : 400;
111
+ ctx.throw(
112
+ status,
113
+ ctx.t(error instanceof Error ? error.message : "Could not reset publication claim", { ns: "plugin-git-manager" })
114
+ );
115
+ }
116
+ ctx.body = { success: true };
117
+ await next();
118
+ }
119
+ async function reviewCancelQueued(ctx, next) {
120
+ const reviewService = service(ctx);
121
+ const { confirmation, inboxId } = (0, import_repository_access.getEffectiveActionParams)(ctx);
122
+ if (confirmation !== "CANCEL_QUEUED_REVIEW")
123
+ ctx.throw(400, ctx.t("Queued review cancellation confirmation is required", { ns: "plugin-git-manager" }));
124
+ if (typeof inboxId !== "string" && typeof inboxId !== "number") ctx.throw(400, "inboxId is required");
125
+ await reviewService.cancelQueued(inboxId, ctx.state.currentUser.id);
126
+ ctx.body = { success: true };
127
+ await next();
128
+ }
129
+ // Annotate the CommonJS export names for ESM import in node:
130
+ 0 && (module.exports = {
131
+ reviewCancelLegacy,
132
+ reviewCancelQueued,
133
+ reviewConfirmCutover,
134
+ reviewCutoverStatus,
135
+ reviewRecover,
136
+ reviewResetPostClaim
137
+ });