@imenam/mcp-dependabot-tracker 1.0.18 → 1.0.19
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 +41 -57
- package/dist/shared/schemas/api.schema.d.ts +11 -27
- package/dist/shared/schemas/api.schema.js +2 -5
- package/dist/shared/schemas/ipc.schema.d.ts +1 -1
- package/dist/shared/schemas/ipc.schema.js +1 -4
- package/dist/shared/schemas/model.schema.d.ts +38 -321
- package/dist/shared/schemas/model.schema.js +22 -93
- package/dist/shared/schemas/settings.schema.d.ts +2 -5
- package/dist/shared/schemas/settings.schema.js +2 -3
- package/dist/src/core/npm-audit.d.ts +3 -13
- package/dist/src/core/npm-audit.js +6 -45
- package/dist/src/core/operations.d.ts +8 -21
- package/dist/src/core/operations.js +60 -290
- package/dist/src/core/organizer.d.ts +1 -1
- package/dist/src/core/repair.d.ts +39 -11
- package/dist/src/core/repair.js +82 -44
- package/dist/src/core/repos.d.ts +9 -3
- package/dist/src/core/repos.js +21 -9
- package/dist/src/core/settings.d.ts +1 -1
- package/dist/src/core/settings.js +2 -5
- package/dist/src/core/store.js +9 -7
- package/dist/src/gui-worker.js +7 -20
- package/dist/src/index.js +17 -33
- package/dist/src/tools/format.js +2 -7
- package/dist/src/tools/tools.js +3 -7
- package/gui/dist/assets/index-pU6GyhHw.js +64 -0
- package/gui/dist/assets/{index-YDjWP593.css → index-tEFABc4K.css} +1 -1
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/src/core/analysis.d.ts +0 -54
- package/dist/src/core/analysis.js +0 -180
- package/gui/dist/assets/index-cZ0-FdCb.js +0 -64
package/dist/src/tools/tools.js
CHANGED
|
@@ -7,7 +7,6 @@ import { errorResult, optionalBoolean, optionalEnum, optionalString, rejectUnkno
|
|
|
7
7
|
const RIGHT_LABELS = {
|
|
8
8
|
audit: "run npm audit",
|
|
9
9
|
fix: "run npm audit fix",
|
|
10
|
-
force: "run npm audit fix --force",
|
|
11
10
|
push: "push a branch and open a pull request",
|
|
12
11
|
};
|
|
13
12
|
/** Refuse l'action si l'utilisateur n'a pas accordé ce droit à l'agent pour ce dépôt. */
|
|
@@ -55,19 +54,16 @@ export async function runAudit(ctx, args) {
|
|
|
55
54
|
const repo = ctx.store.getRepo(requireString(args, "repository"));
|
|
56
55
|
const scope = optionalEnum(args, "scope", AUDIT_SCOPES, DEFAULT_AUDIT_SCOPE);
|
|
57
56
|
assertAllowed(repo, "audit");
|
|
58
|
-
return operationResult(await runAgentOperation(ctx, repo.id, "audit", { scope,
|
|
57
|
+
return operationResult(await runAgentOperation(ctx, repo.id, "audit", { scope, push: false, commitMessage: DEFAULT_COMMIT_MESSAGE }));
|
|
59
58
|
}
|
|
60
59
|
export async function fixVulnerabilities(ctx, args) {
|
|
61
|
-
rejectUnknownFields(args, ["repository", "scope", "
|
|
60
|
+
rejectUnknownFields(args, ["repository", "scope", "push", "commit_message"]);
|
|
62
61
|
const repo = ctx.store.getRepo(requireString(args, "repository"));
|
|
63
62
|
const scope = optionalEnum(args, "scope", AUDIT_SCOPES, DEFAULT_AUDIT_SCOPE);
|
|
64
|
-
const force = optionalBoolean(args, "force", false);
|
|
65
63
|
const push = optionalBoolean(args, "push", false);
|
|
66
64
|
const commitMessage = optionalString(args, "commit_message") ?? DEFAULT_COMMIT_MESSAGE;
|
|
67
65
|
assertAllowed(repo, "fix");
|
|
68
|
-
if (force)
|
|
69
|
-
assertAllowed(repo, "force");
|
|
70
66
|
if (push)
|
|
71
67
|
assertAllowed(repo, "push");
|
|
72
|
-
return operationResult(await runAgentOperation(ctx, repo.id, "fix", { scope,
|
|
68
|
+
return operationResult(await runAgentOperation(ctx, repo.id, "fix", { scope, push, commitMessage }));
|
|
73
69
|
}
|