agentic-sdlc-mcp 1.0.0 → 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.
- package/LICENSE +21 -0
- package/README.md +220 -233
- package/dist/config.d.ts +4 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +117 -23
- package/dist/config.js.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/agent-handoff.d.ts +5 -41
- package/dist/tools/agent-handoff.d.ts.map +1 -1
- package/dist/tools/branch-protection-status.d.ts +71 -0
- package/dist/tools/branch-protection-status.d.ts.map +1 -0
- package/dist/tools/branch-protection-status.js +252 -0
- package/dist/tools/branch-protection-status.js.map +1 -0
- package/dist/tools/create-issue-set.d.ts +6 -46
- package/dist/tools/create-issue-set.d.ts.map +1 -1
- package/dist/tools/create-pr-summary.d.ts +3 -11
- package/dist/tools/create-pr-summary.d.ts.map +1 -1
- package/dist/tools/plan-from-context.d.ts +9 -29
- package/dist/tools/plan-from-context.d.ts.map +1 -1
- package/dist/tools/prepare-work-item.d.ts +6 -30
- package/dist/tools/prepare-work-item.d.ts.map +1 -1
- package/dist/tools/quality-gate-status.d.ts +11 -107
- package/dist/tools/quality-gate-status.d.ts.map +1 -1
- package/dist/tools/release-readiness.d.ts +8 -15
- package/dist/tools/release-readiness.d.ts.map +1 -1
- package/dist/tools/repo-context.d.ts +4 -30
- package/dist/tools/repo-context.d.ts.map +1 -1
- package/dist/tools/review-pr.d.ts +57 -29
- package/dist/tools/review-pr.d.ts.map +1 -1
- package/dist/tools/review-pr.js +249 -7
- package/dist/tools/review-pr.js.map +1 -1
- package/dist/tools/security-triage.d.ts +12 -46
- package/dist/tools/security-triage.d.ts.map +1 -1
- package/dist/tools/workflow-permissions-audit.d.ts +85 -0
- package/dist/tools/workflow-permissions-audit.d.ts.map +1 -0
- package/dist/tools/workflow-permissions-audit.js +306 -0
- package/dist/tools/workflow-permissions-audit.js.map +1 -0
- package/package.json +11 -10
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool: workflow_permissions_audit
|
|
3
|
+
*
|
|
4
|
+
* Scans `.github/workflows/*.yml` (and `.yaml`) in a repo for `permissions`
|
|
5
|
+
* declarations -- top-level and per-job -- and flags least-privilege gaps:
|
|
6
|
+
* missing declarations, `write-all`, and write scopes combined with the
|
|
7
|
+
* `pull_request_target` trigger (a known injection/exfiltration risk pattern
|
|
8
|
+
* since that trigger runs with the base repo's token against untrusted PR
|
|
9
|
+
* content).
|
|
10
|
+
*
|
|
11
|
+
* Uses the `yaml` package for parsing rather than a hand-rolled parser --
|
|
12
|
+
* GitHub Actions workflow YAML is real-world YAML (flow/block mixed styles,
|
|
13
|
+
* quoting, etc.), and a hand-rolled subset parser is the kind of thing that
|
|
14
|
+
* produces subtle correctness bugs invisible until adversarial input is
|
|
15
|
+
* actually tried against it.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
import { parse as parseYaml } from "yaml";
|
|
19
|
+
import { resolveRepo, getOctokit, handleGitHubError } from "../github/client.js";
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
// Schema
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
export const WorkflowPermissionsAuditInputSchema = z.object({
|
|
24
|
+
owner: z.string().optional().describe("GitHub owner. Falls back to GITHUB_OWNER."),
|
|
25
|
+
repo: z.string().optional().describe("GitHub repo. Falls back to GITHUB_REPO."),
|
|
26
|
+
ref: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("Branch, tag, or SHA to read workflow files from. Falls back to the repository's default branch."),
|
|
30
|
+
});
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
// Output schema
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
export const WorkflowPermissionsAuditOutputSchema = {
|
|
35
|
+
repo: z.string(),
|
|
36
|
+
ref: z.string(),
|
|
37
|
+
workflowsScanned: z.array(z.string()),
|
|
38
|
+
findings: z.array(z.object({
|
|
39
|
+
severity: z.enum(["critical", "high", "medium", "low", "info"]),
|
|
40
|
+
category: z.string(),
|
|
41
|
+
description: z.string(),
|
|
42
|
+
suggestion: z.string().optional(),
|
|
43
|
+
})),
|
|
44
|
+
errors: z.array(z.string()),
|
|
45
|
+
conclusion: z.enum(["least_privilege", "needs_review", "over_permissioned"]),
|
|
46
|
+
};
|
|
47
|
+
/** Cap on how many workflow files a single audit will fetch and parse, to bound API calls on large repos. */
|
|
48
|
+
const MAX_WORKFLOW_FILES = 50;
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
// Pure helpers (exported for testing)
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
/** Parse a workflow file's YAML text into the shape this audit cares about. Returns null on any parse failure. */
|
|
53
|
+
export function parseWorkflowYaml(content) {
|
|
54
|
+
let doc;
|
|
55
|
+
try {
|
|
56
|
+
doc = parseYaml(content);
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
if (!doc || typeof doc !== "object" || Array.isArray(doc))
|
|
62
|
+
return null;
|
|
63
|
+
const obj = doc;
|
|
64
|
+
const jobsRaw = obj["jobs"];
|
|
65
|
+
const jobs = {};
|
|
66
|
+
if (jobsRaw && typeof jobsRaw === "object" && !Array.isArray(jobsRaw)) {
|
|
67
|
+
for (const [jobId, jobVal] of Object.entries(jobsRaw)) {
|
|
68
|
+
if (jobVal && typeof jobVal === "object" && !Array.isArray(jobVal)) {
|
|
69
|
+
jobs[jobId] = { permissions: jobVal["permissions"] };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
permissions: obj["permissions"],
|
|
75
|
+
jobs,
|
|
76
|
+
triggers: extractTriggers(obj["on"]),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/** `on:` can be a scalar event name, a flow/block sequence of names, or a mapping keyed by event name. */
|
|
80
|
+
function extractTriggers(onRaw) {
|
|
81
|
+
if (typeof onRaw === "string")
|
|
82
|
+
return [onRaw];
|
|
83
|
+
if (Array.isArray(onRaw))
|
|
84
|
+
return onRaw.filter((x) => typeof x === "string");
|
|
85
|
+
if (onRaw && typeof onRaw === "object")
|
|
86
|
+
return Object.keys(onRaw);
|
|
87
|
+
return [];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Normalize a raw `permissions` value into scopes + a `write-all` flag.
|
|
91
|
+
* Returns null when `permissions` was not declared at all (distinct from an
|
|
92
|
+
* explicit empty mapping `{}`, which means "no permissions" and IS a declaration).
|
|
93
|
+
*/
|
|
94
|
+
export function normalizePermissions(value) {
|
|
95
|
+
if (value === undefined)
|
|
96
|
+
return null;
|
|
97
|
+
if (typeof value === "string") {
|
|
98
|
+
return { writeAll: value === "write-all", scopes: {} };
|
|
99
|
+
}
|
|
100
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
101
|
+
const scopes = {};
|
|
102
|
+
for (const [scope, level] of Object.entries(value)) {
|
|
103
|
+
if (level === "write" || level === "read" || level === "none") {
|
|
104
|
+
scopes[scope] = level;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return { writeAll: false, scopes };
|
|
108
|
+
}
|
|
109
|
+
return { writeAll: false, scopes: {} };
|
|
110
|
+
}
|
|
111
|
+
/** Generate least-privilege findings for a single parsed workflow file. */
|
|
112
|
+
export function generatePermissionsFindings(fileName, parsed) {
|
|
113
|
+
const findings = [];
|
|
114
|
+
const isPullRequestTarget = parsed.triggers.includes("pull_request_target");
|
|
115
|
+
const entries = [
|
|
116
|
+
{ label: "top-level `permissions`", normalized: normalizePermissions(parsed.permissions) },
|
|
117
|
+
...Object.entries(parsed.jobs).map(([jobId, job]) => ({
|
|
118
|
+
label: `job \`${jobId}\`'s \`permissions\``,
|
|
119
|
+
normalized: normalizePermissions(job.permissions),
|
|
120
|
+
})),
|
|
121
|
+
];
|
|
122
|
+
if (entries.every((e) => e.normalized === null)) {
|
|
123
|
+
findings.push({
|
|
124
|
+
severity: "medium",
|
|
125
|
+
category: "Workflow Permissions",
|
|
126
|
+
description: `${fileName}: no \`permissions\` block is declared at the workflow or job level. The GITHUB_TOKEN's scopes depend on the repository/organization default setting rather than an explicit least-privilege declaration.`,
|
|
127
|
+
suggestion: "Add a top-level `permissions:` block (e.g. `permissions:\n contents: read`) and grant additional scopes only on the specific jobs that need them.",
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
for (const { label, normalized } of entries) {
|
|
131
|
+
if (!normalized)
|
|
132
|
+
continue;
|
|
133
|
+
const writeScopes = Object.entries(normalized.scopes)
|
|
134
|
+
.filter(([, level]) => level === "write")
|
|
135
|
+
.map(([scope]) => scope);
|
|
136
|
+
const hasWriteAccess = normalized.writeAll || writeScopes.length > 0;
|
|
137
|
+
if (isPullRequestTarget && hasWriteAccess) {
|
|
138
|
+
findings.push({
|
|
139
|
+
severity: "critical",
|
|
140
|
+
category: "Workflow Permissions",
|
|
141
|
+
description: `${fileName}: triggered by \`pull_request_target\` while ${label} grants ${normalized.writeAll ? "`write-all`" : `write access (${writeScopes.join(", ")})`}. \`pull_request_target\` runs with the base repo's token against untrusted PR content, so write scopes here are a known injection/exfiltration risk.`,
|
|
142
|
+
suggestion: "Avoid combining `pull_request_target` with write permissions -- use `pull_request` instead, or keep this trigger read-only and perform any write action from a separate, tightly-scoped workflow.",
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
else if (normalized.writeAll) {
|
|
146
|
+
findings.push({
|
|
147
|
+
severity: "critical",
|
|
148
|
+
category: "Workflow Permissions",
|
|
149
|
+
description: `${fileName}: ${label} grants \`write-all\`, giving the GITHUB_TOKEN write access to every scope.`,
|
|
150
|
+
suggestion: "Replace `write-all` with an explicit mapping listing only the scopes actually required, set to `write`; leave the rest unlisted or `read`/`none`.",
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return findings;
|
|
155
|
+
}
|
|
156
|
+
// ---------------------------------------------------------------------------
|
|
157
|
+
// Core handler (exported for testing)
|
|
158
|
+
// ---------------------------------------------------------------------------
|
|
159
|
+
export async function handleWorkflowPermissionsAudit(params, ref, octokit) {
|
|
160
|
+
const errors = [];
|
|
161
|
+
const findings = [];
|
|
162
|
+
const workflowsScanned = [];
|
|
163
|
+
let gitRef = params.ref;
|
|
164
|
+
if (!gitRef) {
|
|
165
|
+
const { data: repoData } = await octokit.repos.get({ owner: ref.owner, repo: ref.repo });
|
|
166
|
+
gitRef = repoData.default_branch;
|
|
167
|
+
}
|
|
168
|
+
let candidateFiles = [];
|
|
169
|
+
try {
|
|
170
|
+
const { data } = await octokit.repos.getContent({
|
|
171
|
+
owner: ref.owner,
|
|
172
|
+
repo: ref.repo,
|
|
173
|
+
path: ".github/workflows",
|
|
174
|
+
ref: gitRef,
|
|
175
|
+
});
|
|
176
|
+
if (Array.isArray(data)) {
|
|
177
|
+
candidateFiles = data.filter((entry) => entry.type === "file" && /\.ya?ml$/i.test(entry.name));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
catch (err) {
|
|
181
|
+
const message = handleGitHubError(err);
|
|
182
|
+
if (!message.toLowerCase().includes("not found")) {
|
|
183
|
+
errors.push(`Workflow directory listing: ${message}`);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const truncated = candidateFiles.length > MAX_WORKFLOW_FILES;
|
|
187
|
+
const filesToScan = candidateFiles.slice(0, MAX_WORKFLOW_FILES);
|
|
188
|
+
if (truncated) {
|
|
189
|
+
errors.push(`Only the first ${MAX_WORKFLOW_FILES} of ${candidateFiles.length} workflow files were scanned.`);
|
|
190
|
+
}
|
|
191
|
+
for (const file of filesToScan) {
|
|
192
|
+
try {
|
|
193
|
+
const { data } = await octokit.repos.getContent({
|
|
194
|
+
owner: ref.owner,
|
|
195
|
+
repo: ref.repo,
|
|
196
|
+
path: file.path,
|
|
197
|
+
ref: gitRef,
|
|
198
|
+
});
|
|
199
|
+
if (Array.isArray(data) || data.type !== "file" || !data.content) {
|
|
200
|
+
errors.push(`${file.path}: unexpected content response (not a single file).`);
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
const content = Buffer.from(data.content, "base64").toString("utf-8");
|
|
204
|
+
const parsed = parseWorkflowYaml(content);
|
|
205
|
+
if (!parsed) {
|
|
206
|
+
errors.push(`${file.path}: unable to parse as a GitHub Actions workflow (expected a YAML mapping at the document root).`);
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
workflowsScanned.push(file.path);
|
|
210
|
+
findings.push(...generatePermissionsFindings(file.path, parsed));
|
|
211
|
+
}
|
|
212
|
+
catch (err) {
|
|
213
|
+
errors.push(`${file.path}: ${handleGitHubError(err)}`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const hasCriticalOrHigh = findings.some((f) => f.severity === "critical" || f.severity === "high");
|
|
217
|
+
const hasMedium = findings.some((f) => f.severity === "medium");
|
|
218
|
+
const conclusion = hasCriticalOrHigh
|
|
219
|
+
? "over_permissioned"
|
|
220
|
+
: hasMedium
|
|
221
|
+
? "needs_review"
|
|
222
|
+
: "least_privilege";
|
|
223
|
+
const structured = {
|
|
224
|
+
repo: `${ref.owner}/${ref.repo}`,
|
|
225
|
+
ref: gitRef,
|
|
226
|
+
workflowsScanned,
|
|
227
|
+
findings,
|
|
228
|
+
errors,
|
|
229
|
+
conclusion,
|
|
230
|
+
};
|
|
231
|
+
const conclusionLabel = conclusion === "least_privilege"
|
|
232
|
+
? "LEAST PRIVILEGE"
|
|
233
|
+
: conclusion === "needs_review"
|
|
234
|
+
? "NEEDS REVIEW"
|
|
235
|
+
: "OVER-PERMISSIONED";
|
|
236
|
+
const lines = [
|
|
237
|
+
`# Workflow Permissions Audit: ${ref.owner}/${ref.repo}@${gitRef}`,
|
|
238
|
+
"",
|
|
239
|
+
`**Conclusion:** ${conclusionLabel}`,
|
|
240
|
+
`**Workflows scanned:** ${workflowsScanned.length > 0 ? workflowsScanned.join(", ") : "none"}`,
|
|
241
|
+
"",
|
|
242
|
+
];
|
|
243
|
+
if (errors.length > 0) {
|
|
244
|
+
lines.push("## Notes", "");
|
|
245
|
+
errors.forEach((e) => lines.push(`- ${e}`));
|
|
246
|
+
lines.push("");
|
|
247
|
+
}
|
|
248
|
+
lines.push("## Findings", "");
|
|
249
|
+
if (findings.length === 0) {
|
|
250
|
+
lines.push("No findings -- scanned workflows declare explicit, least-privilege permissions.");
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
for (const f of findings) {
|
|
254
|
+
lines.push(`- **[${f.severity.toUpperCase()}]** ${f.category}: ${f.description}` +
|
|
255
|
+
(f.suggestion ? `\n > Suggestion: ${f.suggestion}` : ""));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return { text: lines.join("\n"), structured };
|
|
259
|
+
}
|
|
260
|
+
// ---------------------------------------------------------------------------
|
|
261
|
+
// Registration
|
|
262
|
+
// ---------------------------------------------------------------------------
|
|
263
|
+
export function registerWorkflowPermissionsAuditTool(server) {
|
|
264
|
+
server.registerTool("workflow_permissions_audit", {
|
|
265
|
+
title: "Workflow Permissions Audit",
|
|
266
|
+
description: `Scan \`.github/workflows/*.yml\` for \`permissions\` declarations (top-level and per-job) and flag least-privilege gaps.
|
|
267
|
+
|
|
268
|
+
Required token scope: \`repo\` (or \`public_repo\` for public-only repos) with read access to repository contents.
|
|
269
|
+
|
|
270
|
+
Args:
|
|
271
|
+
- owner, repo: Repository coordinates.
|
|
272
|
+
- ref: Optional. Branch, tag, or SHA to read workflow files from. Falls back to the repository's default branch.
|
|
273
|
+
|
|
274
|
+
Flags:
|
|
275
|
+
- No \`permissions\` declared anywhere in the file (workflow or job level) -- relies on the repo/org default token scope instead of an explicit declaration.
|
|
276
|
+
- \`permissions: write-all\` (top-level or per-job) -- grants write access to every scope.
|
|
277
|
+
- Any scope granted \`write\` on a workflow triggered by \`pull_request_target\` -- a known injection/exfiltration risk since that trigger runs with the base repo's token against untrusted PR content.
|
|
278
|
+
|
|
279
|
+
Returns: per-file findings by severity and a least_privilege/needs_review/over_permissioned conclusion.`,
|
|
280
|
+
inputSchema: WorkflowPermissionsAuditInputSchema,
|
|
281
|
+
outputSchema: WorkflowPermissionsAuditOutputSchema,
|
|
282
|
+
annotations: {
|
|
283
|
+
readOnlyHint: true,
|
|
284
|
+
destructiveHint: false,
|
|
285
|
+
idempotentHint: true,
|
|
286
|
+
openWorldHint: true,
|
|
287
|
+
},
|
|
288
|
+
}, async (params) => {
|
|
289
|
+
try {
|
|
290
|
+
const ref = resolveRepo(params.owner, params.repo);
|
|
291
|
+
const octokit = getOctokit();
|
|
292
|
+
const { text, structured } = await handleWorkflowPermissionsAudit(params, ref, octokit);
|
|
293
|
+
return {
|
|
294
|
+
content: [{ type: "text", text }],
|
|
295
|
+
structuredContent: structured,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
return {
|
|
300
|
+
isError: true,
|
|
301
|
+
content: [{ type: "text", text: handleGitHubError(error) }],
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
//# sourceMappingURL=workflow-permissions-audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-permissions-audit.js","sourceRoot":"","sources":["../../src/tools/workflow-permissions-audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIjF,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;I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E,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;aAC5D,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-sdlc-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "An MCP Server acting as an Agentic SDLC Control Plane — helps AI coding agents plan, create, test, review, secure, and release software following GitHub Agentic AI best practices.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
|
48
|
-
"url": "https://github.com/SakuraCianna/agentic-sdlc-mcp.git"
|
|
48
|
+
"url": "git+https://github.com/SakuraCianna/agentic-sdlc-mcp.git"
|
|
49
49
|
},
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/SakuraCianna/agentic-sdlc-mcp/issues"
|
|
@@ -53,18 +53,19 @@
|
|
|
53
53
|
"homepage": "https://github.com/SakuraCianna/agentic-sdlc-mcp#readme",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@modelcontextprotocol/sdk": "^1.6.1",
|
|
56
|
-
"@octokit/rest": "^
|
|
57
|
-
"dotenv": "^
|
|
58
|
-
"express": "^
|
|
59
|
-
"
|
|
56
|
+
"@octokit/rest": "^22.0.1",
|
|
57
|
+
"dotenv": "^17.4.2",
|
|
58
|
+
"express": "^5.2.1",
|
|
59
|
+
"yaml": "^2.9.0",
|
|
60
|
+
"zod": "^4.4.3"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@types/express": "^5.0.6",
|
|
63
|
-
"@types/node": "^
|
|
64
|
-
"@vitest/coverage-v8": "^
|
|
64
|
+
"@types/node": "^26.1.0",
|
|
65
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
65
66
|
"rimraf": "^6.0.1",
|
|
66
67
|
"tsx": "^4.19.2",
|
|
67
|
-
"typescript": "^
|
|
68
|
-
"vitest": "^
|
|
68
|
+
"typescript": "^6.0.3",
|
|
69
|
+
"vitest": "^4.1.10"
|
|
69
70
|
}
|
|
70
71
|
}
|