plugin-git-manager 1.2.27 → 1.2.28
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 +133 -108
- package/client-v2.d.ts +2 -2
- package/client-v2.js +1 -1
- package/client.d.ts +3 -3
- package/client.js +1 -1
- package/dist/client/{326.90c276058682b536.js → 313.d38fc1d40c4589b9.js} +1 -1
- package/dist/client/900.a48beac7e2ebee7d.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/156.445366026c1cc9a8.js +10 -0
- package/dist/client-v2/{326.42b7b53651ffab3a.js → 313.3c867179c3a1e817.js} +1 -1
- package/dist/client-v2/434.19c7579c06b9077c.js +10 -0
- package/dist/client-v2/900.e6155002a9c97e7f.js +10 -0
- package/dist/client-v2/928.bba701b5a1ece58e.js +10 -0
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +9 -8
- package/dist/locale/en-US.json +307 -297
- package/dist/locale/vi-VN.json +295 -292
- package/dist/locale/zh-CN.json +61 -51
- package/dist/node_modules/simple-git/dist/cjs/index.js +25 -25
- package/dist/node_modules/simple-git/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/actions/git-actions.js +90 -36
- package/dist/server/actions/gitlab-api.js +4 -2
- package/dist/server/actions/poller.js +5 -2
- package/dist/server/actions/review.js +20 -10
- package/dist/server/plugin.js +6 -4
- package/dist/server/poller.js +46 -45
- package/dist/server/request-method-policy.js +75 -0
- package/dist/server/services/registry-content-service.js +4 -3
- package/dist/server/utils/get-repo-account.js +3 -2
- package/dist/server/utils/url-security.js +24 -0
- package/package.json +61 -43
- package/server.d.ts +2 -2
- package/server.js +1 -1
- package/src/client/__tests__/RunReviewButton.test.tsx +73 -0
- package/src/client/ai-context.tsx +114 -114
- package/src/client/components/AIEmployeeSelect.tsx +63 -63
- package/src/client/components/CommitHistory.tsx +374 -374
- package/src/client/components/FileExplorer.tsx +386 -386
- package/src/client/components/GitAccounts.tsx +179 -179
- package/src/client/components/GitManagerSettings.tsx +160 -160
- package/src/client/components/GitOperations.tsx +220 -220
- package/src/client/components/LLMModelSelect.tsx +63 -63
- package/src/client/components/LLMServiceSelect.tsx +58 -58
- package/src/client/components/MarkdownView.tsx +80 -80
- package/src/client/components/MergeRequests.tsx +790 -790
- package/src/client/components/PollingStatus.tsx +225 -225
- package/src/client/components/RepositoryConfig.tsx +335 -335
- package/src/client/components/RepositoryPermissions.tsx +123 -123
- package/src/client/components/ReviewFlows.tsx +303 -303
- package/src/client/components/ReviewHistory.tsx +566 -566
- package/src/client/components/RunReviewButton.tsx +63 -55
- package/src/client/context/GitManagerContext.tsx +92 -92
- package/src/client/index.tsx +91 -82
- package/src/client/locale.ts +9 -9
- package/src/client/promptTemplates.ts +31 -31
- package/src/client-v2/ai-context.tsx +99 -0
- package/src/client-v2/components/SubtreeSplits.tsx +547 -547
- package/src/client-v2/index.tsx +1 -1
- package/src/client-v2/locale.ts +8 -8
- package/src/client-v2/plugin.tsx +67 -39
- package/src/index.ts +2 -2
- package/src/locale/en-US.json +307 -297
- package/src/locale/vi-VN.json +295 -292
- package/src/locale/zh-CN.json +61 -51
- package/src/server/__tests__/git-actions.test.ts +24 -24
- package/src/server/__tests__/git-security.test.ts +170 -0
- package/src/server/__tests__/plugin-url-security.test.ts +17 -17
- package/src/server/__tests__/poller-lifecycle.test.ts +71 -0
- package/src/server/__tests__/poller.test.ts +37 -37
- package/src/server/__tests__/repository-access.test.ts +752 -752
- package/src/server/__tests__/review.test.ts +137 -137
- package/src/server/__tests__/role-permissions.test.ts +147 -147
- package/src/server/__tests__/smoke.test.ts +139 -17
- package/src/server/__tests__/subtree.test.ts +85 -85
- package/src/server/actions/git-actions.ts +540 -480
- package/src/server/actions/gitlab-api.ts +422 -411
- package/src/server/actions/poller.ts +39 -27
- package/src/server/actions/review.ts +1388 -1369
- package/src/server/actions/role-permissions.ts +321 -321
- package/src/server/actions/subtree.ts +508 -508
- package/src/server/ai-tools.ts +319 -319
- package/src/server/collections/gitAccounts.ts +56 -56
- package/src/server/collections/gitCodeReviews.ts +199 -199
- package/src/server/collections/gitRepositories.ts +87 -87
- package/src/server/collections/gitReviewFlows.ts +108 -108
- package/src/server/collections/gitSubtreeConfigs.ts +38 -38
- package/src/server/collections/gitSubtreeRuns.ts +30 -30
- package/src/server/index.ts +2 -2
- package/src/server/migrations/20260508000000-add-auto-review-flow-id.ts +29 -29
- package/src/server/migrations/20260712000000-add-git-accounts.ts +198 -198
- package/src/server/migrations/20260730000000-migrate-legacy-repository-permissions.ts +81 -81
- package/src/server/plugin.ts +372 -361
- package/src/server/poller.ts +351 -352
- package/src/server/repository-access.ts +773 -773
- package/src/server/request-method-policy.ts +55 -0
- package/src/server/services/__tests__/registry-content-service.test.ts +359 -345
- package/src/server/services/registry-content-service.ts +495 -484
- package/src/server/utils/__tests__/redact.test.ts +56 -56
- package/src/server/utils/__tests__/url-security.test.ts +85 -85
- package/src/server/utils/get-repo-account.ts +51 -41
- package/src/server/utils/gitlab-url.ts +38 -38
- package/src/server/utils/redact.ts +87 -87
- package/src/server/utils/url-security.ts +128 -95
- package/dist/client/900.acf7d1fa22f95e71.js +0 -10
- package/dist/client-v2/434.7a27051db18526c0.js +0 -10
- package/dist/client-v2/900.f32b9dc85249fc0a.js +0 -10
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,51 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Git Manager": "Git 管理器",
|
|
3
|
-
"Allow Skill Registry export": "允许 Skill Registry 导出",
|
|
4
|
-
"Subtree Splits": "Subtree 拆分",
|
|
5
|
-
"Add subtree configuration": "添加 subtree 配置",
|
|
6
|
-
"Edit subtree configuration": "编辑 subtree 配置",
|
|
7
|
-
"Subtree configuration created": "已创建 subtree 配置",
|
|
8
|
-
"Subtree configuration updated": "已更新 subtree 配置",
|
|
9
|
-
"Delete this subtree configuration?": "删除此 subtree 配置?",
|
|
10
|
-
"Name": "名称",
|
|
11
|
-
"Repository": "仓库",
|
|
12
|
-
"Source": "源",
|
|
13
|
-
"Source branch": "源分支",
|
|
14
|
-
"Source folder": "源文件夹",
|
|
15
|
-
"Target branch": "目标分支",
|
|
16
|
-
"Remote name": "远程名称",
|
|
17
|
-
"Default policy": "默认策略",
|
|
18
|
-
"Push after run": "运行后推送",
|
|
19
|
-
"Enabled": "已启用",
|
|
20
|
-
"Last status": "最近状态",
|
|
21
|
-
"Actions": "操作",
|
|
22
|
-
"Run": "运行",
|
|
23
|
-
"Edit": "编辑",
|
|
24
|
-
"Delete": "删除",
|
|
25
|
-
"Deleted": "已删除",
|
|
26
|
-
"Run subtree split": "运行 subtree 拆分",
|
|
27
|
-
"Preview": "预览",
|
|
28
|
-
"Fast-forward only": "仅快进",
|
|
29
|
-
"Replace target": "替换目标分支",
|
|
30
|
-
"Merge histories": "合并历史",
|
|
31
|
-
"Replace target may discard target-only commits": "替换目标分支可能丢弃仅存在于目标分支的提交",
|
|
32
|
-
"Type the target branch name to confirm": "输入目标分支名称以确认",
|
|
33
|
-
"Push target branch after success": "成功后推送目标分支",
|
|
34
|
-
"Target branch does not exist": "目标分支不存在",
|
|
35
|
-
"Subtree split completed": "Subtree 拆分完成",
|
|
36
|
-
"Subtree relationship: target-missing": "目标分支不存在",
|
|
37
|
-
"Subtree relationship: already-up-to-date": "目标分支已是最新",
|
|
38
|
-
"Subtree relationship: fast-forward": "目标分支可以快进",
|
|
39
|
-
"Subtree relationship: diverged": "目标分支已分叉",
|
|
40
|
-
"Run history": "运行历史",
|
|
41
|
-
"Started at": "开始时间",
|
|
42
|
-
"Policy": "策略",
|
|
43
|
-
"Status": "状态",
|
|
44
|
-
"Split SHA": "拆分 SHA",
|
|
45
|
-
"Target before": "更新前目标",
|
|
46
|
-
"Target after": "更新后目标",
|
|
47
|
-
"Error": "错误",
|
|
48
|
-
"Execution mode": "执行模式",
|
|
49
|
-
"App process": "应用进程",
|
|
50
|
-
"Credential-bearing URLs are not allowed": "URL 中不允许包含用户名或凭据"
|
|
51
|
-
|
|
1
|
+
{
|
|
2
|
+
"Git Manager": "Git 管理器",
|
|
3
|
+
"Allow Skill Registry export": "允许 Skill Registry 导出",
|
|
4
|
+
"Subtree Splits": "Subtree 拆分",
|
|
5
|
+
"Add subtree configuration": "添加 subtree 配置",
|
|
6
|
+
"Edit subtree configuration": "编辑 subtree 配置",
|
|
7
|
+
"Subtree configuration created": "已创建 subtree 配置",
|
|
8
|
+
"Subtree configuration updated": "已更新 subtree 配置",
|
|
9
|
+
"Delete this subtree configuration?": "删除此 subtree 配置?",
|
|
10
|
+
"Name": "名称",
|
|
11
|
+
"Repository": "仓库",
|
|
12
|
+
"Source": "源",
|
|
13
|
+
"Source branch": "源分支",
|
|
14
|
+
"Source folder": "源文件夹",
|
|
15
|
+
"Target branch": "目标分支",
|
|
16
|
+
"Remote name": "远程名称",
|
|
17
|
+
"Default policy": "默认策略",
|
|
18
|
+
"Push after run": "运行后推送",
|
|
19
|
+
"Enabled": "已启用",
|
|
20
|
+
"Last status": "最近状态",
|
|
21
|
+
"Actions": "操作",
|
|
22
|
+
"Run": "运行",
|
|
23
|
+
"Edit": "编辑",
|
|
24
|
+
"Delete": "删除",
|
|
25
|
+
"Deleted": "已删除",
|
|
26
|
+
"Run subtree split": "运行 subtree 拆分",
|
|
27
|
+
"Preview": "预览",
|
|
28
|
+
"Fast-forward only": "仅快进",
|
|
29
|
+
"Replace target": "替换目标分支",
|
|
30
|
+
"Merge histories": "合并历史",
|
|
31
|
+
"Replace target may discard target-only commits": "替换目标分支可能丢弃仅存在于目标分支的提交",
|
|
32
|
+
"Type the target branch name to confirm": "输入目标分支名称以确认",
|
|
33
|
+
"Push target branch after success": "成功后推送目标分支",
|
|
34
|
+
"Target branch does not exist": "目标分支不存在",
|
|
35
|
+
"Subtree split completed": "Subtree 拆分完成",
|
|
36
|
+
"Subtree relationship: target-missing": "目标分支不存在",
|
|
37
|
+
"Subtree relationship: already-up-to-date": "目标分支已是最新",
|
|
38
|
+
"Subtree relationship: fast-forward": "目标分支可以快进",
|
|
39
|
+
"Subtree relationship: diverged": "目标分支已分叉",
|
|
40
|
+
"Run history": "运行历史",
|
|
41
|
+
"Started at": "开始时间",
|
|
42
|
+
"Policy": "策略",
|
|
43
|
+
"Status": "状态",
|
|
44
|
+
"Split SHA": "拆分 SHA",
|
|
45
|
+
"Target before": "更新前目标",
|
|
46
|
+
"Target after": "更新后目标",
|
|
47
|
+
"Error": "错误",
|
|
48
|
+
"Execution mode": "执行模式",
|
|
49
|
+
"App process": "应用进程",
|
|
50
|
+
"Credential-bearing URLs are not allowed": "URL 中不允许包含用户名或凭据",
|
|
51
|
+
"Git Repository": "Git 仓库",
|
|
52
|
+
"Git Merge Request": "Git 合并请求",
|
|
53
|
+
"Git Commit": "Git 提交",
|
|
54
|
+
"Method not allowed": "不允许的请求方法",
|
|
55
|
+
"Invalid repository or account URL": "仓库或账号 URL 无效",
|
|
56
|
+
"Only HTTPS repository and account URLs are allowed": "仓库和账号 URL 只允许使用 HTTPS",
|
|
57
|
+
"Repository URL must match the Git account origin": "仓库 URL 必须与 Git 账号使用相同的协议、主机和端口",
|
|
58
|
+
"GitHub accounts currently require github.com": "GitHub 账号目前仅支持 github.com",
|
|
59
|
+
"Invalid local path": "本地路径无效",
|
|
60
|
+
"Invalid local path: path traversal detected or path is outside the allowed base directory": "本地路径无效:检测到路径穿越或路径位于允许的基础目录之外"
|
|
61
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/******/ (
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 751:
|
|
5
|
-
/***/ (
|
|
5
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
@@ -78,7 +78,7 @@ exports.READABLE = exports.FILE + exports.FOLDER;
|
|
|
78
78
|
/***/ }),
|
|
79
79
|
|
|
80
80
|
/***/ 819:
|
|
81
|
-
/***/ (
|
|
81
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
82
82
|
|
|
83
83
|
"use strict";
|
|
84
84
|
|
|
@@ -144,7 +144,7 @@ exports["default"] = deferred;
|
|
|
144
144
|
/***/ }),
|
|
145
145
|
|
|
146
146
|
/***/ 697:
|
|
147
|
-
/***/ (
|
|
147
|
+
/***/ ((module) => {
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Helpers.
|
|
@@ -313,7 +313,7 @@ function plural(ms, msAbs, n, name) {
|
|
|
313
313
|
/***/ }),
|
|
314
314
|
|
|
315
315
|
/***/ 222:
|
|
316
|
-
/***/ (
|
|
316
|
+
/***/ ((module, exports, __nccwpck_require__) => {
|
|
317
317
|
|
|
318
318
|
/* eslint-env browser */
|
|
319
319
|
|
|
@@ -591,7 +591,7 @@ formatters.j = function (v) {
|
|
|
591
591
|
/***/ }),
|
|
592
592
|
|
|
593
593
|
/***/ 243:
|
|
594
|
-
/***/ (
|
|
594
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
595
595
|
|
|
596
596
|
|
|
597
597
|
/**
|
|
@@ -872,7 +872,7 @@ module.exports = setup;
|
|
|
872
872
|
/***/ }),
|
|
873
873
|
|
|
874
874
|
/***/ 237:
|
|
875
|
-
/***/ (
|
|
875
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
876
876
|
|
|
877
877
|
/**
|
|
878
878
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -889,7 +889,7 @@ if (typeof process === 'undefined' || process.type === 'renderer' || process.bro
|
|
|
889
889
|
/***/ }),
|
|
890
890
|
|
|
891
891
|
/***/ 332:
|
|
892
|
-
/***/ (
|
|
892
|
+
/***/ ((module, exports, __nccwpck_require__) => {
|
|
893
893
|
|
|
894
894
|
/**
|
|
895
895
|
* Module dependencies.
|
|
@@ -1159,7 +1159,7 @@ formatters.O = function (v) {
|
|
|
1159
1159
|
/***/ }),
|
|
1160
1160
|
|
|
1161
1161
|
/***/ 900:
|
|
1162
|
-
/***/ (
|
|
1162
|
+
/***/ ((module) => {
|
|
1163
1163
|
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Helpers.
|
|
@@ -1328,7 +1328,7 @@ function plural(ms, msAbs, n, name) {
|
|
|
1328
1328
|
/***/ }),
|
|
1329
1329
|
|
|
1330
1330
|
/***/ 103:
|
|
1331
|
-
/***/ (
|
|
1331
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1332
1332
|
|
|
1333
1333
|
"use strict";
|
|
1334
1334
|
|
|
@@ -6234,7 +6234,7 @@ module.exports = Object.assign(simpleGit, { gitP: gitP2, simpleGit });
|
|
|
6234
6234
|
/***/ }),
|
|
6235
6235
|
|
|
6236
6236
|
/***/ 254:
|
|
6237
|
-
/***/ (
|
|
6237
|
+
/***/ ((module, exports, __nccwpck_require__) => {
|
|
6238
6238
|
|
|
6239
6239
|
/* eslint-env browser */
|
|
6240
6240
|
|
|
@@ -6513,7 +6513,7 @@ formatters.j = function (v) {
|
|
|
6513
6513
|
/***/ }),
|
|
6514
6514
|
|
|
6515
6515
|
/***/ 867:
|
|
6516
|
-
/***/ (
|
|
6516
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6517
6517
|
|
|
6518
6518
|
|
|
6519
6519
|
/**
|
|
@@ -6812,7 +6812,7 @@ module.exports = setup;
|
|
|
6812
6812
|
/***/ }),
|
|
6813
6813
|
|
|
6814
6814
|
/***/ 179:
|
|
6815
|
-
/***/ (
|
|
6815
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6816
6816
|
|
|
6817
6817
|
/**
|
|
6818
6818
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
|
@@ -6829,7 +6829,7 @@ if (typeof process === 'undefined' || process.type === 'renderer' || process.bro
|
|
|
6829
6829
|
/***/ }),
|
|
6830
6830
|
|
|
6831
6831
|
/***/ 675:
|
|
6832
|
-
/***/ (
|
|
6832
|
+
/***/ ((module, exports, __nccwpck_require__) => {
|
|
6833
6833
|
|
|
6834
6834
|
/**
|
|
6835
6835
|
* Module dependencies.
|
|
@@ -7099,7 +7099,7 @@ formatters.O = function (v) {
|
|
|
7099
7099
|
/***/ }),
|
|
7100
7100
|
|
|
7101
7101
|
/***/ 318:
|
|
7102
|
-
/***/ (
|
|
7102
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
7103
7103
|
|
|
7104
7104
|
"use strict";
|
|
7105
7105
|
|
|
@@ -7259,7 +7259,7 @@ module.exports = {
|
|
|
7259
7259
|
/***/ }),
|
|
7260
7260
|
|
|
7261
7261
|
/***/ 533:
|
|
7262
|
-
/***/ (
|
|
7262
|
+
/***/ ((module) => {
|
|
7263
7263
|
|
|
7264
7264
|
"use strict";
|
|
7265
7265
|
|
|
@@ -7275,7 +7275,7 @@ module.exports = (flag, argv = process.argv) => {
|
|
|
7275
7275
|
/***/ }),
|
|
7276
7276
|
|
|
7277
7277
|
/***/ 81:
|
|
7278
|
-
/***/ (
|
|
7278
|
+
/***/ ((module) => {
|
|
7279
7279
|
|
|
7280
7280
|
"use strict";
|
|
7281
7281
|
module.exports = require("child_process");
|
|
@@ -7283,7 +7283,7 @@ module.exports = require("child_process");
|
|
|
7283
7283
|
/***/ }),
|
|
7284
7284
|
|
|
7285
7285
|
/***/ 147:
|
|
7286
|
-
/***/ (
|
|
7286
|
+
/***/ ((module) => {
|
|
7287
7287
|
|
|
7288
7288
|
"use strict";
|
|
7289
7289
|
module.exports = require("fs");
|
|
@@ -7291,7 +7291,7 @@ module.exports = require("fs");
|
|
|
7291
7291
|
/***/ }),
|
|
7292
7292
|
|
|
7293
7293
|
/***/ 673:
|
|
7294
|
-
/***/ (
|
|
7294
|
+
/***/ ((module) => {
|
|
7295
7295
|
|
|
7296
7296
|
"use strict";
|
|
7297
7297
|
module.exports = require("node:events");
|
|
@@ -7299,7 +7299,7 @@ module.exports = require("node:events");
|
|
|
7299
7299
|
/***/ }),
|
|
7300
7300
|
|
|
7301
7301
|
/***/ 411:
|
|
7302
|
-
/***/ (
|
|
7302
|
+
/***/ ((module) => {
|
|
7303
7303
|
|
|
7304
7304
|
"use strict";
|
|
7305
7305
|
module.exports = require("node:path");
|
|
@@ -7307,7 +7307,7 @@ module.exports = require("node:path");
|
|
|
7307
7307
|
/***/ }),
|
|
7308
7308
|
|
|
7309
7309
|
/***/ 37:
|
|
7310
|
-
/***/ (
|
|
7310
|
+
/***/ ((module) => {
|
|
7311
7311
|
|
|
7312
7312
|
"use strict";
|
|
7313
7313
|
module.exports = require("os");
|
|
@@ -7315,7 +7315,7 @@ module.exports = require("os");
|
|
|
7315
7315
|
/***/ }),
|
|
7316
7316
|
|
|
7317
7317
|
/***/ 224:
|
|
7318
|
-
/***/ (
|
|
7318
|
+
/***/ ((module) => {
|
|
7319
7319
|
|
|
7320
7320
|
"use strict";
|
|
7321
7321
|
module.exports = require("tty");
|
|
@@ -7323,7 +7323,7 @@ module.exports = require("tty");
|
|
|
7323
7323
|
/***/ }),
|
|
7324
7324
|
|
|
7325
7325
|
/***/ 837:
|
|
7326
|
-
/***/ (
|
|
7326
|
+
/***/ ((module) => {
|
|
7327
7327
|
|
|
7328
7328
|
"use strict";
|
|
7329
7329
|
module.exports = require("util");
|
|
@@ -7331,7 +7331,7 @@ module.exports = require("util");
|
|
|
7331
7331
|
/***/ }),
|
|
7332
7332
|
|
|
7333
7333
|
/***/ 270:
|
|
7334
|
-
/***/ (
|
|
7334
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
7335
7335
|
|
|
7336
7336
|
"use strict";
|
|
7337
7337
|
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=new WeakMap;function c(...t){const n=new String(t);return e.set(n,t),n}function o(t){return t instanceof String&&e.has(t)}function r(t){return e.get(t)??[]}exports.isPathSpec=o;exports.pathspec=c;exports.toPaths=r;
|
|
@@ -7341,7 +7341,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=new W
|
|
|
7341
7341
|
/***/ }),
|
|
7342
7342
|
|
|
7343
7343
|
/***/ 574:
|
|
7344
|
-
/***/ (
|
|
7344
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
7345
7345
|
|
|
7346
7346
|
"use strict";
|
|
7347
7347
|
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=__nccwpck_require__(270);function*v(e,t){const n=t==="global";for(const o of e)o.isGlobal===n&&(yield o)}const S=new Set(["--add","--edit","--remove-section","--rename-section","--replace-all","--unset","--unset-all","-e"]),P=new Set(["--get","--get-all","--get-color","--get-colorbool","--get-regexp","--get-urlmatch","--list","-l"]),E=new Set(["edit","remove-section","rename-section","set","unset"]),A=new Set(["get","get-color","get-colorbool","list"]);function F(e,t){for(const{name:o}of v(e,"task")){if(S.has(o))return p(!0,t);if(P.has(o))return p(!1,t)}const n=t.at(0)?.toLowerCase();return n===void 0?null:E.has(n)?p(!0,t.slice(1)):A.has(n)?p(!1,t.slice(1)):t.length===1?p(!1,t):p(!0,t)}function p(e=!1,t=[]){const n=t.at(0)?.toLowerCase();return n===void 0?null:{isWrite:e,isRead:!e,key:n,value:t.at(1)}}function M(e,t){return t.isWrite&&t.value!==void 0?{key:t.key,value:t.value,scope:e}:{key:t.key,scope:e}}function N(e){const t=e?.indexOf("=")||-1;return!e||t<0?null:{key:e.slice(0,t).trim().toLowerCase(),value:e.slice(t+1)}}function O(e){for(const{name:t}of v(e,"task"))switch(t){case"--global":return"global";case"--system":return"system";case"--worktree":return"worktree";case"--local":return"local";case"--file":case"-f":return"file"}return"local"}function G({name:e}){if(e==="-c"||e==="--config")return"inline";if(e==="--config-env")return"env"}function*L(e){for(const t of e){const n=G(t),o=n&&N(t.value);o&&(yield{...o,scope:n})}}function $(e,t,n){const o={read:[],write:[...L(t)]};return e==="config"&&D(o,O(t),F(t,n)),o}function D(e,t,n){if(n===null)return;const o=M(t,n);n.isWrite?e.write.push(o):e.read.push(o)}const U={short:new Map([["c",!0]])},T={short:new Map([["C",!0],["P",!1],["h",!1],["p",!1],["v",!1],...U.short.entries()]),long:new Set(["attr-source","config-env","exec-path","git-dir","list-cmds","namespace","super-prefix","work-tree"])},R={clone:{short:new Map([["b",!0],["j",!0],["l",!1],["n",!1],["o",!0],["q",!1],["s",!1],["u",!0]]),long:new Set(["branch","config","jobs","origin","upload-pack","u","template"])},commit:{short:new Map([["C",!0],["F",!0],["c",!0],["m",!0],["t",!0]]),long:new Set(["file","message","reedit-message","reuse-message","template"])},config:{short:new Map([["e",!1],["f",!0],["l",!1]]),long:new Set(["blob","comment","default","file","type","value"])},fetch:{short:new Map,long:new Set(["upload-pack"])},init:{short:new Map,long:new Set(["template"])},pull:{short:new Map,long:new Set(["upload-pack"])},push:{short:new Map,long:new Set(["exec","receive-pack"])}},I={short:new Map,long:new Set};function j(e){const t=R[e??""]??I;return{short:new Map([...U.short.entries(),...t.short.entries()]),long:t.long}}function b(e,t=T){if(e.startsWith("--")){const n=e.indexOf("=");if(n>2)return[{name:e.slice(0,n),value:e.slice(n+1),needsNext:!1}];const o=e.slice(2);return[{name:e,needsNext:t.long.has(o)}]}if(e.length===2){const n=e.charAt(1),o=t.short.get(n);return[{name:e,needsNext:o===!0}]}return W(e,t.short)}function W(e,t){const n=e.slice(1).split(""),o=[];for(let s=0;s<n.length;s++){const r=n[s],a=t.get(r);if(a===void 0)return[{name:e,needsNext:!1}];if(a){const l=n.slice(s+1).join("");if(l&&![...l].every(m=>t.has(m)))return o.push({name:`-${r}`,value:l,needsNext:!1}),o}o.push({name:`-${r}`,needsNext:a})}return o}function B(e,t=[]){let n=0;for(;n<e.length;){const o=String(e[n]);if(!o.startsWith("-")||o.length<2)break;const s=b(o);let r=n+1;for(const a of s){const l={name:a.name,value:a.value,absorbedNext:!1,isGlobal:!0};a.needsNext&&l.value===void 0&&r<e.length&&(l.value=String(e[r]),l.absorbedNext=!0,r++),t.push(l)}n=r}return{flags:t,taskIndex:n}}function q(e,t,n=[]){const o=j(t),s=[],r=[];let a=0;for(;a<e.length;){const l=e[a];if(h.isPathSpec(l)){r.push(...h.toPaths(l)),a++;continue}const f=String(l);if(f==="--"){for(let g=a+1;g<e.length;g++){const u=e[g];h.isPathSpec(u)?r.push(...h.toPaths(u)):r.push(String(u))}break}if(!f.startsWith("-")||f.length<2){s.push(f),a++;continue}const m=b(f,o);let d=a+1;for(const g of m){const u={name:g.name,value:g.value,absorbedNext:!1,isGlobal:!1};g.needsNext&&u.value===void 0&&d<e.length&&!h.isPathSpec(e[d])&&(u.value=String(e[d]),u.absorbedNext=!0,d++),n.push(u)}a=d}return{flags:n,positionals:s,pathspecs:r}}function*V({write:e}){for(const t of e)for(const n of K){const o=n(t.key);o&&(yield o)}}function c(e,t,n=String(e)){const o=typeof e=="string"?new RegExp(`\\s*${e.toLowerCase()}`):e;return function(r){if(o.test(r))return{category:t,message:`Configuring ${n} is not permitted without enabling ${t}`}}}function i(e,t){const n=new RegExp(`\\s*${e.toLowerCase().replace(/\./g,"(..+)?.")}`);return c(n,t,e)}const K=[c("alias","allowUnsafeAlias"),c("core.askPass","allowUnsafeAskPass"),c("core.editor","allowUnsafeEditor"),c("core.fsmonitor","allowUnsafeFsMonitor"),c("core.gitProxy","allowUnsafeGitProxy"),c("core.hooksPath","allowUnsafeHooksPath"),c("core.pager","allowUnsafePager"),c("core.sshCommand","allowUnsafeSshCommand"),i("credential.helper","allowUnsafeCredentialHelper"),i("diff.command","allowUnsafeDiffExternal"),c("diff.external","allowUnsafeDiffExternal"),i("diff.textconv","allowUnsafeDiffTextConv"),i("filter.clean","allowUnsafeFilter"),i("filter.smudge","allowUnsafeFilter"),i("gpg.program","allowUnsafeGpgProgram"),c("init.templateDir","allowUnsafeTemplateDir"),i("merge.driver","allowUnsafeMergeDriver"),i("mergetool.path","allowUnsafeMergeDriver"),i("mergetool.cmd","allowUnsafeMergeDriver"),i("protocol.allow","allowUnsafeProtocolOverride"),i("remote.receivepack","allowUnsafePack"),i("remote.uploadpack","allowUnsafePack"),c("sequence.editor","allowUnsafeEditor")];function*H(e,t){for(const n of t)for(const o of Y){const s=o(e,n.name);s&&(yield s)}}function w(e,t,n,o=String(t)){const s=typeof t=="string"?new RegExp(`\\s*${t.toLowerCase()}`):t,r=`Use of ${e?`${e} with option `:""}${o} is not permitted without enabling ${n}`;return function(l,f){if((!e||l===e)&&s.test(f))return{category:n,message:r}}}const Y=[w(null,/--(upload|receive)-pack/,"allowUnsafePack","--upload-pack or --receive-pack"),w("clone",/^-\w*u/,"allowUnsafePack"),w("clone","--u","allowUnsafePack"),w("push","--exec","allowUnsafePack"),w(null,"--template","allowUnsafeTemplateDir")];function C(e,t,n){return[...H(e,t),...V(n)]}function x(...e){const{flags:t,taskIndex:n}=B(e),o=n<e.length?String(e[n]).toLowerCase():null,s=o!==null?e.slice(n+1):[],{positionals:r,pathspecs:a}=q(s,o,t),l=$(o,t,r);return{task:o,flags:t.map(J),paths:a,config:l,vulnerabilities:z(C(o,t,l))}}function z(e){return Object.defineProperty(e,"vulnerabilities",{value:e})}function J({value:e,name:t}){return e!==void 0?{name:t,value:e}:{name:t}}const y={editor:"allowUnsafeEditor",git_askpass:"allowUnsafeAskPass",git_config_global:"allowUnsafeConfigPaths",git_config_system:"allowUnsafeConfigPaths",git_config_count:"allowUnsafeConfigEnvCount",git_config:"allowUnsafeConfigPaths",git_editor:"allowUnsafeEditor",git_exec_path:"allowUnsafeConfigPaths",git_external_diff:"allowUnsafeDiffExternal",git_pager:"allowUnsafePager",git_proxy_command:"allowUnsafeGitProxy",git_template_dir:"allowUnsafeTemplateDir",git_sequence_editor:"allowUnsafeEditor",git_ssh:"allowUnsafeSshCommand",git_ssh_command:"allowUnsafeSshCommand",pager:"allowUnsafePager",prefix:"allowUnsafeConfigPaths",ssh_askpass:"allowUnsafeAskPass"};function*Q(e){const t=parseInt(e.git_config_count??"0",10);for(let n=0;n<t;n++){const o=e[`git_config_key_${n}`],s=e[`git_config_value_${n}`];o!==void 0&&(yield{key:o.toLowerCase().trim(),value:s,scope:"env"})}}function*X(e){for(const t of Object.keys(e))if(k(t)){const n=y[t];yield{category:n,message:`Use of "${t.toUpperCase()}" is not permitted without enabling ${n}`}}}function k(e){return Object.hasOwn(y,e)}function Z(e){const t={};for(const[n,o]of Object.entries(e)){const s=n.toLowerCase().trim();(k(s)||s.startsWith("git"))&&(t[s]=String(o))}return t}function _(e){const t=Z(e),n={read:[],write:[...Q(t)]},o=[...X(t),...C(null,[],n)];return{config:n,vulnerabilities:o}}function ee(e,t){return[...x(...e).vulnerabilities,..._(t).vulnerabilities]}exports.parseArgv=x;exports.parseEnv=_;exports.vulnerabilityCheck=ee;
|
|
@@ -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-
|
|
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"}
|