autoremediator 0.20.0 → 0.21.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/README.md +81 -117
- package/dist/api/change-request/index.d.ts +16 -0
- package/dist/api/change-request/index.d.ts.map +1 -1
- package/dist/api/context.d.ts.map +1 -1
- package/dist/api/contracts.d.ts +4 -2
- package/dist/api/contracts.d.ts.map +1 -1
- package/dist/api/index.d.ts +5 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/options-schema.d.ts +3 -13
- package/dist/api/options-schema.d.ts.map +1 -1
- package/dist/api/patches/helpers.d.ts.map +1 -1
- package/dist/api/patches/inspection.d.ts.map +1 -1
- package/dist/api/patches/reconcile.d.ts.map +1 -1
- package/dist/api/patches/validation.d.ts.map +1 -1
- package/dist/api/portfolio/index.d.ts.map +1 -1
- package/dist/api/reachability/index.d.ts.map +1 -1
- package/dist/api/remediate/index.d.ts.map +1 -1
- package/dist/api/remediate-from-scan/index.d.ts.map +1 -1
- package/dist/api/remediate-from-scan/report-metrics.d.ts +2 -1
- package/dist/api/remediate-from-scan/report-metrics.d.ts.map +1 -1
- package/dist/api/remediate.evidence.d.ts +3 -3
- package/dist/api/remediate.evidence.d.ts.map +1 -1
- package/dist/api/reporting.d.ts.map +1 -1
- package/dist/api/scan-execution.d.ts +1 -2
- package/dist/api/scan-execution.d.ts.map +1 -1
- package/dist/api/update-outdated/index.d.ts.map +1 -1
- package/dist/api/vex/index.d.ts.map +1 -1
- package/dist/{chunk-ZGLGT4XQ.js → chunk-HJCLZB3P.js} +5471 -6559
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/runners.d.ts +1 -1
- package/dist/cli/runners.d.ts.map +1 -1
- package/dist/cli/triage.d.ts.map +1 -1
- package/dist/cli/types.d.ts +0 -9
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/validators.d.ts.map +1 -1
- package/dist/cli.js +76 -141
- package/dist/index.js +5715 -6832
- package/dist/index.js.map +1 -1
- package/dist/intelligence/sources/cisa-kev.d.ts.map +1 -1
- package/dist/intelligence/sources/epss.d.ts.map +1 -1
- package/dist/intelligence/sources/github-advisory.d.ts.map +1 -1
- package/dist/intelligence/sources/nvd.d.ts.map +1 -1
- package/dist/intelligence/sources/osv.d.ts +0 -7
- package/dist/intelligence/sources/osv.d.ts.map +1 -1
- package/dist/intelligence/sources/registry.d.ts.map +1 -1
- package/dist/intelligence/sources/snapshot.d.ts +5 -3
- package/dist/intelligence/sources/snapshot.d.ts.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +20 -49
- package/dist/openapi/handlers/index.d.ts +1 -1
- package/dist/openapi/handlers/index.d.ts.map +1 -1
- package/dist/openapi/handlers/routes.d.ts +1 -1
- package/dist/openapi/handlers/routes.d.ts.map +1 -1
- package/dist/openapi/handlers/validators.d.ts +1 -1
- package/dist/openapi/handlers/validators.d.ts.map +1 -1
- package/dist/openapi/http-utils.d.ts +11 -1
- package/dist/openapi/http-utils.d.ts.map +1 -1
- package/dist/openapi/path-guard.d.ts +12 -0
- package/dist/openapi/path-guard.d.ts.map +1 -0
- package/dist/openapi/rbac.d.ts.map +1 -1
- package/dist/openapi/server.d.ts.map +1 -1
- package/dist/openapi/server.js +291 -194
- package/dist/openapi/spec/index.d.ts +3 -9
- package/dist/openapi/spec/index.d.ts.map +1 -1
- package/dist/openapi/spec/paths.d.ts +3 -9
- package/dist/openapi/spec/paths.d.ts.map +1 -1
- package/dist/openapi/spec/schemas.d.ts +0 -3
- package/dist/openapi/spec/schemas.d.ts.map +1 -1
- package/dist/platform/config.d.ts +7 -28
- package/dist/platform/config.d.ts.map +1 -1
- package/dist/platform/entrypoint.d.ts +8 -0
- package/dist/platform/entrypoint.d.ts.map +1 -0
- package/dist/platform/escalation.d.ts.map +1 -1
- package/dist/platform/evidence.d.ts +4 -3
- package/dist/platform/evidence.d.ts.map +1 -1
- package/dist/platform/http-client.d.ts.map +1 -1
- package/dist/platform/idempotency.d.ts.map +1 -1
- package/dist/platform/jobs.d.ts.map +1 -1
- package/dist/platform/package-manager/index.d.ts +8 -3
- package/dist/platform/package-manager/index.d.ts.map +1 -1
- package/dist/platform/package-manager/list-parser.d.ts.map +1 -1
- package/dist/platform/patch-generator.d.ts +34 -0
- package/dist/platform/patch-generator.d.ts.map +1 -0
- package/dist/platform/policy.d.ts +13 -7
- package/dist/platform/policy.d.ts.map +1 -1
- package/dist/platform/repo-lock.d.ts.map +1 -1
- package/dist/platform/rollback.d.ts +2 -0
- package/dist/platform/rollback.d.ts.map +1 -1
- package/dist/platform/safe-exec-command.d.ts +8 -0
- package/dist/platform/safe-exec-command.d.ts.map +1 -0
- package/dist/platform/safe-exec.d.ts +1 -1
- package/dist/platform/safe-exec.d.ts.map +1 -1
- package/dist/platform/timeouts.d.ts +3 -0
- package/dist/platform/timeouts.d.ts.map +1 -0
- package/dist/platform/types.d.ts +18 -70
- package/dist/platform/types.d.ts.map +1 -1
- package/dist/platform/workspace.d.ts.map +1 -1
- package/dist/remediation/evaluate-package.d.ts.map +1 -1
- package/dist/remediation/local/disposition.d.ts +1 -1
- package/dist/remediation/local/disposition.d.ts.map +1 -1
- package/dist/remediation/local/fallback.d.ts +8 -13
- package/dist/remediation/local/fallback.d.ts.map +1 -1
- package/dist/remediation/local/options.d.ts +2 -8
- package/dist/remediation/local/options.d.ts.map +1 -1
- package/dist/remediation/local/primary-strategy.d.ts +0 -1
- package/dist/remediation/local/primary-strategy.d.ts.map +1 -1
- package/dist/remediation/local/run.d.ts.map +1 -1
- package/dist/remediation/local/secops-preflight.d.ts.map +1 -1
- package/dist/remediation/local/vulnerability-match.d.ts.map +1 -1
- package/dist/remediation/patch/diff.d.ts +6 -0
- package/dist/remediation/patch/diff.d.ts.map +1 -0
- package/dist/remediation/patch/generate.d.ts +29 -0
- package/dist/remediation/patch/generate.d.ts.map +1 -0
- package/dist/remediation/patch/llm-generator.d.ts +5 -0
- package/dist/remediation/patch/llm-generator.d.ts.map +1 -0
- package/dist/remediation/patch/model.d.ts +19 -0
- package/dist/remediation/patch/model.d.ts.map +1 -0
- package/dist/remediation/patch/prompt.d.ts +4 -0
- package/dist/remediation/patch/prompt.d.ts.map +1 -0
- package/dist/remediation/patch/resolve.d.ts +11 -0
- package/dist/remediation/patch/resolve.d.ts.map +1 -0
- package/dist/remediation/patch/syntax.d.ts +8 -0
- package/dist/remediation/patch/syntax.d.ts.map +1 -0
- package/dist/remediation/proof-of-fix/runner.d.ts.map +1 -1
- package/dist/remediation/refactor/call-site-finder.d.ts.map +1 -1
- package/dist/remediation/refactor/{refactor-agent.d.ts → codemods.d.ts} +1 -1
- package/dist/remediation/refactor/codemods.d.ts.map +1 -0
- package/dist/remediation/strategies/patch-utils.d.ts.map +1 -1
- package/dist/remediation/tools/apply-package-override/helpers.d.ts.map +1 -1
- package/dist/remediation/tools/apply-package-override/index.d.ts +1 -1
- package/dist/remediation/tools/apply-package-override/index.d.ts.map +1 -1
- package/dist/remediation/tools/apply-patch-file/helpers.d.ts.map +1 -1
- package/dist/remediation/tools/apply-patch-file/index.d.ts +1 -1
- package/dist/remediation/tools/apply-patch-file/index.d.ts.map +1 -1
- package/dist/remediation/tools/apply-version-bump.d.ts +1 -1
- package/dist/remediation/tools/apply-version-bump.d.ts.map +1 -1
- package/dist/remediation/tools/check-exploit-signal.d.ts +2 -2
- package/dist/remediation/tools/check-exploit-signal.d.ts.map +1 -1
- package/dist/remediation/tools/check-inventory.d.ts +1 -1
- package/dist/remediation/tools/check-inventory.d.ts.map +1 -1
- package/dist/remediation/tools/check-reachability.d.ts +1 -1
- package/dist/remediation/tools/check-reachability.d.ts.map +1 -1
- package/dist/remediation/tools/fetch-package-source.d.ts +1 -1
- package/dist/remediation/tools/fetch-package-source.d.ts.map +1 -1
- package/dist/remediation/tools/tool-compat.d.ts +10 -8
- package/dist/remediation/tools/tool-compat.d.ts.map +1 -1
- package/dist/scanner/adapters/npm-audit.d.ts.map +1 -1
- package/dist/scanner/adapters/sarif.d.ts.map +1 -1
- package/dist/scanner/adapters/yarn-audit.d.ts.map +1 -1
- package/dist/scanner/delta-scan.d.ts.map +1 -1
- package/dist/scanner/lockfile-diff.d.ts.map +1 -1
- package/dist/scanner/parse-input.d.ts +1 -1
- package/dist/scanner/parse-input.d.ts.map +1 -1
- package/llms.txt +29 -123
- package/package.json +16 -15
- package/dist/intelligence/index.d.ts +0 -13
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/snapshot.d.ts +0 -2
- package/dist/intelligence/snapshot.d.ts.map +0 -1
- package/dist/intelligence/sources/certcc.d.ts +0 -10
- package/dist/intelligence/sources/certcc.d.ts.map +0 -1
- package/dist/intelligence/sources/cve-services.d.ts +0 -26
- package/dist/intelligence/sources/cve-services.d.ts.map +0 -1
- package/dist/intelligence/sources/deps-dev.d.ts +0 -9
- package/dist/intelligence/sources/deps-dev.d.ts.map +0 -1
- package/dist/intelligence/sources/external-feeds.d.ts +0 -10
- package/dist/intelligence/sources/external-feeds.d.ts.map +0 -1
- package/dist/intelligence/sources/gitlab-advisory.d.ts +0 -18
- package/dist/intelligence/sources/gitlab-advisory.d.ts.map +0 -1
- package/dist/intelligence/sources/ossf-scorecard.d.ts +0 -9
- package/dist/intelligence/sources/ossf-scorecard.d.ts.map +0 -1
- package/dist/platform/audit-logger.d.ts +0 -31
- package/dist/platform/audit-logger.d.ts.map +0 -1
- package/dist/platform/package-manager/driver.d.ts +0 -23
- package/dist/platform/package-manager/driver.d.ts.map +0 -1
- package/dist/platform/sla.d.ts +0 -15
- package/dist/platform/sla.d.ts.map +0 -1
- package/dist/remediation/local/consensus-gate.d.ts +0 -25
- package/dist/remediation/local/consensus-gate.d.ts.map +0 -1
- package/dist/remediation/orchestration-prompt.d.ts +0 -19
- package/dist/remediation/orchestration-prompt.d.ts.map +0 -1
- package/dist/remediation/pipeline-runtime/index.d.ts +0 -16
- package/dist/remediation/pipeline-runtime/index.d.ts.map +0 -1
- package/dist/remediation/pipeline-runtime/progress.d.ts +0 -7
- package/dist/remediation/pipeline-runtime/progress.d.ts.map +0 -1
- package/dist/remediation/pipeline-runtime/tool-wrappers.d.ts +0 -3
- package/dist/remediation/pipeline-runtime/tool-wrappers.d.ts.map +0 -1
- package/dist/remediation/pipeline.d.ts +0 -4
- package/dist/remediation/pipeline.d.ts.map +0 -1
- package/dist/remediation/refactor/refactor-agent.d.ts.map +0 -1
- package/dist/remediation/runtime-tools.d.ts +0 -24
- package/dist/remediation/runtime-tools.d.ts.map +0 -1
- package/dist/remediation/strategies/patch-synthesis-prompt.d.ts +0 -11
- package/dist/remediation/strategies/patch-synthesis-prompt.d.ts.map +0 -1
- package/dist/remediation/strategies/pipeline-telemetry.d.ts +0 -20
- package/dist/remediation/strategies/pipeline-telemetry.d.ts.map +0 -1
- package/dist/remediation/tools/check-suppression.d.ts +0 -21
- package/dist/remediation/tools/check-suppression.d.ts.map +0 -1
- package/dist/remediation/tools/check-version-match.d.ts +0 -26
- package/dist/remediation/tools/check-version-match.d.ts.map +0 -1
- package/dist/remediation/tools/find-fixed-version.d.ts +0 -15
- package/dist/remediation/tools/find-fixed-version.d.ts.map +0 -1
- package/dist/remediation/tools/generate-patch/helpers.d.ts +0 -39
- package/dist/remediation/tools/generate-patch/helpers.d.ts.map +0 -1
- package/dist/remediation/tools/generate-patch/index.d.ts +0 -58
- package/dist/remediation/tools/generate-patch/index.d.ts.map +0 -1
- package/dist/remediation/tools/lookup-cve.d.ts +0 -10
- package/dist/remediation/tools/lookup-cve.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,124 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
<h1 align="center">Autoremediator</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center"><strong>Your scanner finds vulnerabilities. Autoremediator fixes them.</strong></p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://www.npmjs.com/package/autoremediator"><img alt="npm version" src="https://img.shields.io/npm/v/autoremediator?color=cb3837&logo=npm"></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/autoremediator"><img alt="npm downloads" src="https://img.shields.io/npm/dm/autoremediator?logo=npm"></a>
|
|
8
|
+
<a href="https://github.com/Rawlings/autoremediator/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/Rawlings/autoremediator/ci.yml?branch=master&logo=github&label=CI"></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/autoremediator"><img alt="node" src="https://img.shields.io/node/v/autoremediator?logo=nodedotjs&logoColor=white"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/autoremediator"><img alt="types" src="https://img.shields.io/npm/types/autoremediator?logo=typescript&logoColor=white"></a>
|
|
11
|
+
<a href="LICENSE"><img alt="license" src="https://img.shields.io/npm/l/autoremediator"></a>
|
|
12
|
+
<a href="https://github.com/Rawlings/autoremediator/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/Rawlings/autoremediator?style=flat&logo=github"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="docs/getting-started.md">Getting started</a> ·
|
|
17
|
+
<a href="docs/how-it-works.md">How it works</a> ·
|
|
18
|
+
<a href="docs/integrations/github-action.md">GitHub Action</a> ·
|
|
19
|
+
<a href="docs/README.md">Docs</a>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
Hand it a CVE or GHSA id, or your scanner's report (package manager audit or SARIF). It works out
|
|
23
|
+
the safest fix, applies it, runs your tests, and rolls back if anything breaks. What it cannot fix,
|
|
24
|
+
it tells you, with the reason.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx autoremediator --audit --run-tests
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## The problem
|
|
31
|
+
|
|
32
|
+
Scanners and update bots tell you what is wrong, or open a pull request for one bump at a time.
|
|
33
|
+
Turning findings into a safe change is still manual work: which version is actually fixed, is the
|
|
34
|
+
vulnerable package buried three levels deep, will the upgrade break the build, and what do you do
|
|
35
|
+
when no fixed version exists? Findings pile up, and the one being exploited in the wild waits in the
|
|
36
|
+
same queue as the rest.
|
|
37
|
+
|
|
38
|
+
## What it does for each vulnerable package
|
|
39
|
+
|
|
40
|
+
| Situation | What Autoremediator does |
|
|
41
|
+
| --------- | ------------------------ |
|
|
42
|
+
| A fixed version exists | Bumps to the **lowest** safe version, keeping the change small |
|
|
43
|
+
| The package is transitive | Pins the fix with your package manager's own `overrides` or `resolutions` |
|
|
44
|
+
| No fixed version exists | Generates a reviewable `.patch` file, if you configure a model |
|
|
45
|
+
| It cannot be fixed safely | Leaves your code alone and reports exactly why |
|
|
46
|
+
|
|
47
|
+
Every change is installed, tested if you ask, and **rolled back on failure**. Nothing is reported as
|
|
48
|
+
fixed that was not verified.
|
|
49
|
+
|
|
50
|
+
## Why you can rely on it
|
|
51
|
+
|
|
52
|
+
- **Verified, not hopeful.** Install, tests, type check and an optional proof-of-fix run before a
|
|
53
|
+
change is kept.
|
|
54
|
+
- **Honest reports.** Unfixed findings carry a machine-readable reason, never a silent skip.
|
|
55
|
+
- **Exploit-aware.** CISA KEV and EPSS signals and your SLA windows decide what is urgent.
|
|
56
|
+
- **You set the autonomy.** A [policy file](docs/reference/policy-file.md) controls what may change.
|
|
57
|
+
Each result is applied, held for approval or escalated.
|
|
58
|
+
- **The model is optional and boxed in.** It is used only to draft patches when no fix exists. Its
|
|
59
|
+
output is syntax-checked and confidence-gated, and its tests are never run.
|
|
60
|
+
- **Deterministic everywhere else.** The same input gives the same plan, and `--offline` runs from a
|
|
61
|
+
local advisory snapshot.
|
|
62
|
+
|
|
63
|
+
## Run it where you work
|
|
64
|
+
|
|
65
|
+
| | |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| **CLI and [SDK](docs/reference/sdk.md)** | Local runs, scripts, pipelines |
|
|
68
|
+
| **[GitHub Action](docs/integrations/github-action.md)** | A nightly pull request that fixes what audit finds |
|
|
69
|
+
| **[GitHub App](docs/integrations/github-app.md)** | Remediation across every repository you install it on |
|
|
70
|
+
| **[MCP server](docs/integrations/mcp-server.md)** | Give your editor or agent a safe way to fix dependencies |
|
|
71
|
+
| **[HTTP server](docs/integrations/http-server.md)** | Call it from internal services |
|
|
72
|
+
| **[VS Code](packages/vscode-extension/README.md)** | Findings and one-click fixes in `package.json` |
|
|
73
|
+
|
|
74
|
+
Works with npm, pnpm, Yarn, Bun and Deno projects. Requires Node.js 26 or later.
|
|
9
75
|
|
|
10
76
|
> [!WARNING]
|
|
11
|
-
> Automated dependency
|
|
12
|
-
>
|
|
13
|
-
|
|
14
|
-
Autoremediator is an agentic CVE remediation platform for Node.js.
|
|
15
|
-
|
|
16
|
-
It closes the gap between vulnerability detection and remediation by correlating threat intelligence, measuring exploitability, and executing policy-governed fixes — across single repositories, large service portfolios, and agent-driven workflows.
|
|
17
|
-
|
|
18
|
-
The outcome is reduced mean time to remediation (MTTR), narrower exposure windows, and auditable remediation posture across your dependency estate.
|
|
19
|
-
|
|
20
|
-
See the [documentation](https://rawlings.github.io/autoremediator/docs/getting-started) to get started.
|
|
21
|
-
|
|
22
|
-
## Built to fix, not just find
|
|
23
|
-
|
|
24
|
-
Most SCA tools stop at detection. Autoremediator starts there.
|
|
25
|
-
|
|
26
|
-
It ingests vulnerability findings from scanners or accepts a CVE ID directly, then drives each finding through a multi-strategy remediation pipeline: safe version upgrade, transitive dependency override, and controlled patch generation with confidence scoring as a last resort. Every path is gated by policy, validated before it is applied, and backed by structured evidence for downstream traceability.
|
|
27
|
-
|
|
28
|
-
The result is a closed-loop remediation workflow rather than an ever-growing triage backlog.
|
|
29
|
-
|
|
30
|
-
## Exploitability-informed prioritization
|
|
31
|
-
|
|
32
|
-
Severity scores alone are poor remediation signals. Autoremediator enriches each CVE with corroborating signals before attempting a fix:
|
|
33
|
-
|
|
34
|
-
- **CISA KEV** — confirms whether a vulnerability is actively exploited in the wild
|
|
35
|
-
- **EPSS** — quantifies exploit probability as a continuous percentile score
|
|
36
|
-
- **Advisory consensus** — cross-references OSV, GitHub Advisory Database, and NVD to validate affected ranges and fixed versions
|
|
37
|
-
- **AST reachability** — analyzes import and call graphs to verify whether vulnerable functions are actually invoked in source code
|
|
38
|
-
|
|
39
|
-
This enrichment drives prioritization and disposition decisions, so high-risk, actively exploited vulnerabilities are handled with higher urgency than theoretical severities suggest.
|
|
40
|
-
|
|
41
|
-
## Multi-strategy remediation
|
|
42
|
-
|
|
43
|
-
Autoremediator selects the safest applicable fix strategy for each vulnerability:
|
|
44
|
-
|
|
45
|
-
- **Direct version upgrade** — the preferred path for direct dependencies; automatically refactors consumer call sites if the upgrade introduces breaking changes
|
|
46
|
-
- **Transitive override** — applied via package manager overrides or resolutions when exposure is in a transitive dependency
|
|
47
|
-
- **Controlled patch generation** — confidence-scored fallback when no safe fixed version exists, validated against dual-stage exploit reproduction gates
|
|
48
|
-
- **Upstream patch reconciliation** — detects when upstream package releases supersede local patch files and safely retires them
|
|
49
|
-
|
|
50
|
-
Unresolved findings are never silently dropped. Each is classified with an explicit reason and treated as an escalation input for downstream security workflows.
|
|
51
|
-
|
|
52
|
-
## Policy-governed automation
|
|
53
|
-
|
|
54
|
-
Remediation behavior is governed by a policy layer (`.github/autoremediator.yml`) that determines disposition for each finding:
|
|
55
|
-
|
|
56
|
-
- **Auto-apply** — applies high-confidence remediations within acceptable risk thresholds
|
|
57
|
-
- **Simulate** — previews planned mutations and validation results without modifying files
|
|
58
|
-
- **Hold for approval** — pauses execution for manual review when confidence or policy warrants
|
|
59
|
-
- **Escalate** — flags findings that exceed risk tolerance to block unsafe mutations and trigger follow-on workflows
|
|
60
|
-
|
|
61
|
-
Portfolio-scale campaigns apply risk ranking to prioritize remediation order across large target sets.
|
|
62
|
-
|
|
63
|
-
## Vulnerability intelligence sources
|
|
64
|
-
|
|
65
|
-
Primary advisory sources:
|
|
66
|
-
|
|
67
|
-
- [OSV](https://osv.dev): ecosystem-first vulnerability records and affected or fixed ranges
|
|
68
|
-
- [GitHub Advisory Database](https://github.com/advisories): package advisories and ecosystem metadata
|
|
69
|
-
- [NVD](https://nvd.nist.gov): CVE reference data and severity context
|
|
70
|
-
|
|
71
|
-
Exploitability and trust enrichment:
|
|
72
|
-
|
|
73
|
-
- [CISA KEV](https://www.cisa.gov/known-exploited-vulnerabilities-catalog): active exploitation signals
|
|
74
|
-
- [FIRST EPSS](https://www.first.org/epss/): exploit probability scoring
|
|
75
|
-
- [CVE Services](https://www.cve.org/): authoritative CVE references
|
|
76
|
-
- [GitLab Advisory Database](https://advisories.gitlab.com): supplemental advisory coverage
|
|
77
|
-
- [CERT/CC Vulnerability Notes](https://www.kb.cert.org/vuls/): analyst context for selected CVEs
|
|
78
|
-
- [deps.dev](https://deps.dev): package metadata and dependency graph coverage
|
|
79
|
-
- [OpenSSF Scorecard](https://securityscorecards.dev): repository and package trust posture
|
|
80
|
-
- Optional vendor and commercial feeds via environment-configured connectors
|
|
81
|
-
|
|
82
|
-
## Integration surfaces
|
|
83
|
-
|
|
84
|
-
Autoremediator is designed to meet security operations where they already run:
|
|
85
|
-
|
|
86
|
-
- **CLI** — direct invocation in local developer workflows and CI/CD pipelines
|
|
87
|
-
- **SDK** — programmatic integration for security automation and internal platforms
|
|
88
|
-
- **GitHub Actions** — reusable workflows and Marketplace actions for scan-to-remediation pipelines
|
|
89
|
-
- **GitHub App** — webhook-driven remediation with PR lifecycle management and automated healing
|
|
90
|
-
- **MCP server** — native tool integration for AI agents and LLM orchestrators
|
|
91
|
-
- **OpenAPI server** — HTTP endpoints for centralized or service-based remediation deployments
|
|
92
|
-
- **VS Code extension** — editor diagnostics, reachability checks, and one-click fixes
|
|
93
|
-
|
|
94
|
-
For configuration reference, workflow variants, and MCP host setup, see the [Integrations](https://rawlings.github.io/autoremediator/docs/integrations) and [Agent Ecosystems](https://rawlings.github.io/autoremediator/docs/agent-ecosystems) guides.
|
|
95
|
-
|
|
96
|
-
## Use cases
|
|
97
|
-
|
|
98
|
-
- Autonomous vulnerability remediation in CI/CD pipelines with deterministic security gating
|
|
99
|
-
- Continuous exposure reduction across large Node.js service portfolios
|
|
100
|
-
- Scanner-to-remediation conversion for high-volume SCA findings
|
|
101
|
-
- Embedded remediation for internal security platforms, AI assistants, and SecOps tooling
|
|
102
|
-
- Policy-governed supply chain risk management at scale
|
|
103
|
-
|
|
104
|
-
## Documentation
|
|
105
|
-
|
|
106
|
-
- [Docs Home](https://rawlings.github.io/autoremediator/)
|
|
107
|
-
- [Getting Started](https://rawlings.github.io/autoremediator/docs/getting-started): setup, first run, and result interpretation
|
|
108
|
-
- [CLI Reference](https://rawlings.github.io/autoremediator/docs/cli): commands, options, and CI semantics
|
|
109
|
-
- [Scanner Inputs](https://rawlings.github.io/autoremediator/docs/scanner-inputs): supported formats and parsing constraints
|
|
110
|
-
- [Policy and Safety](https://rawlings.github.io/autoremediator/docs/policy-and-safety): policy precedence, safeguards, and fallback controls
|
|
111
|
-
- [API and SDK](https://rawlings.github.io/autoremediator/docs/api-sdk): programmatic integration and CI summary utilities
|
|
112
|
-
- [Integrations](https://rawlings.github.io/autoremediator/docs/integrations): GitHub Actions, MCP, OpenAPI, and multi-stage pipelines
|
|
113
|
-
- [Agent Ecosystems](https://rawlings.github.io/autoremediator/docs/agent-ecosystems): MCP host setup and orchestration examples
|
|
114
|
-
- [Contributor Guide](https://rawlings.github.io/autoremediator/docs/contributor-guide): architecture and contribution standards
|
|
77
|
+
> Automated dependency changes carry operational and supply-chain risk. Start with `--dry-run`, keep
|
|
78
|
+
> CI and branch protection in place, and set a policy. See [Safety](docs/safety.md).
|
|
115
79
|
|
|
116
|
-
##
|
|
80
|
+
## Learn more
|
|
117
81
|
|
|
118
|
-
- [
|
|
119
|
-
|
|
120
|
-
|
|
82
|
+
[Getting started](docs/getting-started.md) · [How it works](docs/how-it-works.md) ·
|
|
83
|
+
[CLI](docs/reference/cli.md) · [All documentation](docs/README.md) ·
|
|
84
|
+
[Contributing](CONTRIBUTING.md)
|
|
121
85
|
|
|
122
86
|
## License
|
|
123
87
|
|
|
124
|
-
MIT
|
|
88
|
+
[MIT](LICENSE)
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import type { ChangeRequestGrouping, ChangeRequestOptions, ChangeRequestResult, RemediationReport } from "../../platform/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Change requests commit and push, so they must never run for dry-run/preview/plan flows.
|
|
4
|
+
* Enforced here (not only in the CLI) so SDK, MCP and HTTP callers get the same guarantee.
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertChangeRequestAllowed(options: {
|
|
7
|
+
dryRun?: boolean;
|
|
8
|
+
preview?: boolean;
|
|
9
|
+
changeRequest?: {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
}): void;
|
|
13
|
+
/**
|
|
14
|
+
* Remove option fields that redirect credentials or API traffic. These are host configuration,
|
|
15
|
+
* never something an untrusted MCP/HTTP caller may set. Walks nested objects (e.g. portfolio targets).
|
|
16
|
+
*/
|
|
17
|
+
export declare function stripUntrustedChangeRequestFields<T>(value: T): T;
|
|
2
18
|
export declare function groupReports(reports: RemediationReport[], grouping: ChangeRequestGrouping): RemediationReport[][];
|
|
3
19
|
export declare function createChangeRequestsForReports(params: {
|
|
4
20
|
cwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/change-request/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/change-request/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACvC,GAAG,IAAI,CAMP;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAehE;AA2ED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,iBAAiB,EAAE,EAC5B,QAAQ,EAAE,qBAAqB,GAC9B,iBAAiB,EAAE,EAAE,CAgDvB;AA0JD,wBAAsB,8BAA8B,CAAC,MAAM,EAAE;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,oBAAoB,CAAC;IAC9B,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAgKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/api/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/api/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAM9B,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,GACxB,QAAQ,CAAC,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,GAAG,kBAAkB,CAMtE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,gBAAgB,GAAG,iBAAiB,CAKrF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,sBAAsB,CA8BjG"}
|
package/dist/api/contracts.d.ts
CHANGED
|
@@ -34,7 +34,8 @@ export interface ScanReport {
|
|
|
34
34
|
constraints?: RemediationConstraints;
|
|
35
35
|
idempotencyKey?: string;
|
|
36
36
|
llmUsageCount?: number;
|
|
37
|
-
|
|
37
|
+
totalInputTokens?: number;
|
|
38
|
+
totalOutputTokens?: number;
|
|
38
39
|
totalLlmLatencyMs?: number;
|
|
39
40
|
slaBreaches?: SlaBreach[];
|
|
40
41
|
slaBreachSummary?: SlaBreachSummary;
|
|
@@ -71,7 +72,8 @@ export interface CiSummary {
|
|
|
71
72
|
constraints?: RemediationConstraints;
|
|
72
73
|
idempotencyKey?: string;
|
|
73
74
|
llmUsageCount?: number;
|
|
74
|
-
|
|
75
|
+
totalInputTokens?: number;
|
|
76
|
+
totalOutputTokens?: number;
|
|
75
77
|
totalLlmLatencyMs?: number;
|
|
76
78
|
slaBreaches?: SlaBreach[];
|
|
77
79
|
slaBreachSummary?: SlaBreachSummary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/api/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC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qB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
* import { remediate } from 'autoremediator';
|
|
6
6
|
* const report = await remediate('CVE-2021-23337', { cwd: '/my/project' });
|
|
7
7
|
*/
|
|
8
|
-
export type { CorrelationContext, CveSeverity, LlmUsageMetrics,
|
|
8
|
+
export type { CorrelationContext, CveSeverity, LlmUsageMetrics, RemediationConstraints, ProvenanceContext, RemediateOptions, RemediationReport, ResultSimulation, CveDetails, AffectedPackage, InventoryPackage, VulnerablePackage, PatchResult, PatchStrategy, PatchStrategyCounts, DependencyScope, DependencyScopeCounts, PatchArtifact, PatchArtifactInspection, PatchArtifactQueryOptions, PatchArtifactSummary, PatchArtifactValidationReport, PatchReconcileOptions, PatchReconcileResult, PatchReconcileReport, PatchMode, PatchRiskLevel, PatchConfidenceThresholds, UnresolvedReason, UnresolvedReasonCounts, EscalationAction, EscalationGraph, EscalationCounts, Disposition, DispositionPolicy, DispositionSignals, DispositionCounts, PatchValidationPhase, PatchValidationPhaseName, PortfolioReport, PortfolioTarget, PortfolioTargetResult, OutdatedPackage, UpdateOutdatedOptions, UpdateOutdatedReport, ExploitSignalOverridePolicy, VexJustification, VexSuppression, SlaPolicy, SlaBreach, SlaBreachEntry, SlaBreachSummary, ReachabilityAssessment, ReachabilityEvidence, SbomEntry, SbomStatus, SimulationMutation, SimulationMutationTarget, SimulationRebuttalCode, SimulationRebuttalFinding, SimulationSummary, CheckReachabilityOptions, EvaluatePackageOptions, PackageEvaluationReport, VulnerabilityEvaluationEntry, DeltaDependencyChange, DeltaFinding, DeltaScanOptions, DeltaScanReport, } from "../platform/types.js";
|
|
9
9
|
export type { ScanInputFormat } from "../scanner/index.js";
|
|
10
10
|
export type { ScanOptions, ScanReport, CiSummary } from "./contracts.js";
|
|
11
|
-
export { PACKAGE_MANAGER_VALUES,
|
|
11
|
+
export { PACKAGE_MANAGER_VALUES, PROVENANCE_SOURCE_VALUES, OPTION_DESCRIPTIONS, createConstraintSchemaProperties, createRemediateOptionSchemaProperties, createScanOptionSchemaProperties, createScanReportSchemaProperties, createUpdateOutdatedOptionSchemaProperties, } from "./options-schema.js";
|
|
12
12
|
export { toCiSummary, ciExitCode, buildSlaBreachSummary, buildStrategyCounts, buildDependencyScopeCounts, } from "./reporting.js";
|
|
13
13
|
export { toSarifOutput, type SarifOutput } from "./sarif.js";
|
|
14
14
|
export { toCycloneDxVex, type CycloneDxVexDocument, type CycloneDxVexVulnerability, type CycloneDxVexVulnerabilityAnalysis, type ToCycloneDxVexOptions, } from "./vex/index.js";
|
|
15
15
|
export { inspectPatchArtifact, listPatchArtifacts, validatePatchArtifact, reconcilePatchArtifacts, } from "./patches/index.js";
|
|
16
|
+
export type { PatchGenerator, PatchGeneratorUsage, PatchProposal, PatchRequest, } from "../platform/patch-generator.js";
|
|
17
|
+
export { createLlmPatchGenerator } from "../remediation/patch/llm-generator.js";
|
|
18
|
+
export { resolveLanguageModel } from "../remediation/patch/model.js";
|
|
16
19
|
export { remediatePortfolio } from "./portfolio/index.js";
|
|
17
20
|
export { remediate, planRemediation } from "./remediate/index.js";
|
|
18
21
|
export { remediateFromScan } from "./remediate-from-scan/index.js";
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,6BAA6B,EAC7B,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,EACT,cAAc,EACd,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,w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AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,OAAO,EACP,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/jobs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/jobs/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK/D,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,GAAG;IAC3E,MAAM,CAAC,EAAE,iBAAiB,GAAG,UAAU,GAAG,eAAe,CAAC;CAC3D,CAAC;AA8BF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAIvF;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAIjF;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,CAAC,EAAE,gBAAgB,GACzB,SAAS,CAIX;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,wBAAwB,CAM/D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type JsonSchemaProperty = Record<string, unknown>;
|
|
2
2
|
export declare const PACKAGE_MANAGER_VALUES: readonly ["npm", "pnpm", "yarn", "bun", "deno"];
|
|
3
|
-
export declare const LLM_PROVIDER_VALUES: readonly ["remote", "local"];
|
|
4
3
|
export declare const PROVENANCE_SOURCE_VALUES: readonly ["cli", "sdk", "mcp", "openapi", "unknown"];
|
|
5
4
|
export declare const OPTION_DESCRIPTIONS: {
|
|
6
5
|
readonly cveId: "CVE ID, e.g. CVE-2021-23337";
|
|
@@ -11,18 +10,10 @@ export declare const OPTION_DESCRIPTIONS: {
|
|
|
11
10
|
readonly preview: "If true, enforce non-mutating preview mode";
|
|
12
11
|
readonly simulationMode: "If true, attach deterministic simulation and rebuttal metadata for dry-run or preview execution";
|
|
13
12
|
readonly runTests: "Run package-manager test command after applying fix";
|
|
14
|
-
readonly
|
|
15
|
-
readonly model: "LLM model override";
|
|
16
|
-
readonly modelPersonality: "Prompt behavior profile: analytical|pragmatic|balanced";
|
|
17
|
-
readonly providerSafetyProfile: "Safety posture profile for confidence gates: strict|relaxed";
|
|
18
|
-
readonly requireConsensusForHighRisk: "Require second-provider agreement for high-risk generated patches";
|
|
19
|
-
readonly consensusProvider: "Provider override for high-risk consensus verification (remote|local)";
|
|
20
|
-
readonly consensusModel: "Model override for high-risk consensus verification";
|
|
13
|
+
readonly model: 'Language model for the patch fallback as "<provider>:<model-id>", e.g. "anthropic:claude-sonnet-5-5" (default: AUTOREMEDIATOR_MODEL)';
|
|
21
14
|
readonly patchConfidenceThresholdLow: "Patch acceptance confidence threshold for low-risk patches (0..1)";
|
|
22
15
|
readonly patchConfidenceThresholdMedium: "Patch acceptance confidence threshold for medium-risk patches (0..1)";
|
|
23
16
|
readonly patchConfidenceThresholdHigh: "Patch acceptance confidence threshold for high-risk patches (0..1)";
|
|
24
|
-
readonly dynamicModelRouting: "Enable dynamic model selection by input size";
|
|
25
|
-
readonly dynamicRoutingThresholdChars: "Input size threshold used by dynamic model routing";
|
|
26
17
|
readonly patchesDir: "Directory to write .patch files (default: ./patches)";
|
|
27
18
|
readonly policy: "Optional path to .github/autoremediator.yml policy file";
|
|
28
19
|
readonly requestId: "Request correlation ID";
|
|
@@ -55,20 +46,19 @@ export declare const OPTION_DESCRIPTIONS: {
|
|
|
55
46
|
readonly suppressionsFile: "Path to a YAML file containing additional VEX suppression entries to merge with policy-inline suppressions";
|
|
56
47
|
readonly slaCheck: "Compare CVE publication dates against configured SLA windows and include breach records in the report output";
|
|
57
48
|
readonly skipUnreachable: "Skip remediation for CVEs where the vulnerable package cannot be reached from any project entry point (requires static import analysis)";
|
|
58
|
-
readonly regressionCheck: "After applying a fix, verify the patched version falls outside the CVE's vulnerable range and flag any regression in the report";
|
|
59
49
|
readonly dispositionPolicy: "Autonomous disposition policy controlling when fixes are auto-applied, held, or escalated";
|
|
60
50
|
readonly dispositionPolicyMinConfidenceForAutoApply: "Minimum patch confidence (0–1) required for auto-apply disposition";
|
|
61
51
|
readonly dispositionPolicyHoldForTransitive: "Hold transitive dependency fixes for human review instead of auto-applying";
|
|
62
52
|
readonly dispositionPolicyEscalateOnSlaBreachSeverities: "CVE severities that trigger escalate disposition on SLA breach";
|
|
63
53
|
readonly dispositionPolicyEscalateOnKev: "Escalate disposition for CVEs with active CISA KEV status";
|
|
64
|
-
readonly containmentMode: "
|
|
54
|
+
readonly containmentMode: "Roll back applied results whose disposition is hold-for-approval (low confidence, held transitive) so they await approval; urgent escalate fixes (KEV, SLA) are kept";
|
|
65
55
|
readonly campaignMode: "Enable portfolio campaign mode to risk-rank targets before execution";
|
|
66
56
|
readonly escalationGraph: "Optional mapping from unresolved reasons to intended escalation actions";
|
|
67
57
|
readonly offlineIntelligence: "Skip all network calls to intelligence sources. Only local inventory and npm-registry version resolution proceed.";
|
|
68
58
|
readonly intelligenceSnapshotPath: "Path to a local JSON snapshot of pre-fetched CVE intelligence (keyed by CVE ID) used when offline mode is active.";
|
|
69
59
|
readonly proofOfFix: "If true, enforce dual-stage exploit reproduction proof-of-fix verification (assert failure pre-patch, assert pass post-patch)";
|
|
70
60
|
readonly requireProofOfFix: "If true, reject patches and roll back if proof-of-fix verification fails";
|
|
71
|
-
readonly breakingChangeRefactor: "
|
|
61
|
+
readonly breakingChangeRefactor: "Experimental: when a major upgrade breaks type checking, rewrite consumer call sites using built-in codemods (currently rimraf and uuid only); reverted if checks still fail";
|
|
72
62
|
};
|
|
73
63
|
export declare function createConstraintSchemaProperties(): Record<string, JsonSchemaProperty>;
|
|
74
64
|
export declare function createRemediateOptionSchemaProperties(options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-schema.d.ts","sourceRoot":"","sources":["../../src/api/options-schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzD,eAAO,MAAM,sBAAsB,YAAI,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AACtF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"options-schema.d.ts","sourceRoot":"","sources":["../../src/api/options-schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzD,eAAO,MAAM,sBAAsB,YAAI,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AACtF,eAAO,MAAM,wBAAwB,YAAI,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAE7F,eAAO,MAAM,mBAAmB;aAC9B,KAAK,EAAE,6BAA6B;aACpC,S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,oEAAoE;aACtE,kCAAkC,EAChC,4EAA4E;aAC9E,8CAA8C,EAC5C,gEAAgE;aAClE,8BAA8B,EAAE,2DAA2D;aAC3F,eAAe,EACb,sKAAsK;aACxK,YAAY,EAAE,sEAAsE;aACpF,eAAe,EAAE,yEAAyE;aAC1F,mBAAmB,EACjB,mHAAmH;aACrH,wBAAwB,EACtB,mHAAmH;aACrH,UAAU,EACR,+HAA+H;aACjI,iBAAiB,EAAE,0EAA0E;aAC7F,sBAAsB,EACpB,8KAA8K;CACxK,CAAC;AAEX,wBAAgB,gCAAgC,IAAI,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CA2BrF;AAED,wBAAgB,qCAAqC,CAAC,OAAO,CAAC,EAAE;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAsNrC;AAED,wBAAgB,gCAAgC,IAAI,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAWrF;AAED,wBAAgB,gCAAgC,IAAI,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAyCrF;AAED,wBAAgB,0CAA0C,IAAI,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAQ/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/api/patches/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/api/patches/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAE/C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,SAAsB,GAAG,MAAM,CAEvF;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAU9E;AAED,wBAAsB,YAAY,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CA0B/F;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAYhG;AAED,wBAAgB,SAAS,CAAC,UAAU,EAAE,uBAAuB,GAAG,oBAAoB,CAgBnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspection.d.ts","sourceRoot":"","sources":["../../../src/api/patches/inspection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspection.d.ts","sourceRoot":"","sources":["../../../src/api/patches/inspection.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAUjC,wBAAsB,kBAAkB,CACtC,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAsBjC;AAED,wBAAsB,oBAAoB,CACxC,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CA8ClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../../../src/api/patches/reconcile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../../../src/api/patches/reconcile.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AASjC;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CA+P/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/api/patches/validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/api/patches/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAE9B,MAAM,yBAAyB,CAAC;AAIjC,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,6BAA6B,CAAC,CAkHxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/portfolio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAEf,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAyCjC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/portfolio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAEf,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAyCjC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,eAAe,EAAE,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,CA8G1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/reachability/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/reachability/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAMhG,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,CAAC,CAGjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/remediate/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/remediate/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAuBnF,wBAAsB,SAAS,CAC7B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAuF5B;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAY5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/remediate-from-scan/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/remediate-from-scan/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAyB/D,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,CAsIrB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { RemediationReport } from "../../platform/types.js";
|
|
2
2
|
export interface ScanLlmUsageTotals {
|
|
3
3
|
llmUsageCount: number;
|
|
4
|
-
|
|
4
|
+
totalInputTokens?: number;
|
|
5
|
+
totalOutputTokens?: number;
|
|
5
6
|
totalLlmLatencyMs?: number;
|
|
6
7
|
}
|
|
7
8
|
export declare function aggregateScanLlmUsage(reports: RemediationReport[]): ScanLlmUsageTotals;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-metrics.d.ts","sourceRoot":"","sources":["../../../src/api/remediate-from-scan/report-metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"report-metrics.d.ts","sourceRoot":"","sources":["../../../src/api/remediate-from-scan/report-metrics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,kBAAkB,CAqBtF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { RemediateOptions, RemediationReport } from "../platform/types.js";
|
|
2
1
|
import { type EvidenceLog } from "../platform/evidence.js";
|
|
2
|
+
import type { RemediateOptions, RemediationReport } from "../platform/types.js";
|
|
3
3
|
export declare function createRemediateEvidence(params: {
|
|
4
4
|
cwd: string;
|
|
5
5
|
cveId: string;
|
|
6
6
|
options: RemediateOptions;
|
|
7
|
-
|
|
7
|
+
model?: string;
|
|
8
8
|
correlation: {
|
|
9
9
|
requestId?: string;
|
|
10
10
|
sessionId?: string;
|
|
@@ -19,7 +19,7 @@ export declare function addRemediateStartStep(params: {
|
|
|
19
19
|
evidence: EvidenceLog | undefined;
|
|
20
20
|
cveId: string;
|
|
21
21
|
options: RemediateOptions;
|
|
22
|
-
|
|
22
|
+
model?: string;
|
|
23
23
|
constraints: {
|
|
24
24
|
directDependenciesOnly?: boolean;
|
|
25
25
|
preferVersionBump?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remediate.evidence.d.ts","sourceRoot":"","sources":["../../src/api/remediate.evidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"remediate.evidence.d.ts","sourceRoot":"","sources":["../../src/api/remediate.evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,UAAU,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,CAAA;KAAE,CAAC;CACxF,GAAG,WAAW,GAAG,SAAS,CAa1B;AAED,wBAAgB,qBAAqB,C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AAS,CAWpC;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,iBAAiB,EAAE,GAC3B,iBAAiB,GAAG,SAAS,CAW/B;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,gBAAgB,GAAG,SAAS,CAS1F;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,GAAG,SAAS,CAuBhG;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAwCzD;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,CAErD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { RemediationReport } from "../platform/types.js";
|
|
2
|
-
import type { ProvenanceContext } from "../platform/types.js";
|
|
3
1
|
import type { EvidenceLog } from "../platform/evidence.js";
|
|
4
2
|
import type { AutoremediatorPolicy } from "../platform/policy.js";
|
|
3
|
+
import type { RemediationReport, ProvenanceContext } from "../platform/types.js";
|
|
5
4
|
import type { ScanOptions } from "./contracts.js";
|
|
6
5
|
export interface ScanExecutionResult {
|
|
7
6
|
reports: RemediationReport[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan-execution.d.ts","sourceRoot":"","sources":["../../src/api/scan-execution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scan-execution.d.ts","sourceRoot":"","sources":["../../src/api/scan-execution.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,KAAK,CAAC;QAC7B,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;CACJ;AAED,wBAAsB,uBAAuB,CAAC,MAAM,EAAE;IACpD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,WAAW,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7E,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE;QAAE,sBAAsB,CAAC,EAAE,OAAO,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/E,QAAQ,EAAE,WAAW,CAAC;CACvB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAwD/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/update-outdated/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/update-outdated/index.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAiIjC,wBAAsB,cAAc,CAClC,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAiN/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/vex/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/vex/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;IACjD,aAAa,CAAC,EAAE,0BAA0B,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,QAAQ,GAAG,sBAAsB,CAAC,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,iCAAiC,CAAC;CAC7C;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,WAAW,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACjD,CAAC;IACF,eAAe,EAAE,yBAAyB,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAgED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,GAAG,iBAAiB,EACtC,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CA6BtB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EACh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