* fix: binary/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-15416075
* chore: bump for snyk dep
---------
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
* fix: core/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-15416075
* chore: dep bump for snyk
---------
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
* fix: add security check to createNewFile tool (CWE-22)
The createNewFile tool was missing the throwIfFileIsSecurityConcern()
check that readFile already has, allowing path traversal to write
sensitive file types (e.g. .env, SSH keys) via prompt injection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: upgrade tar-fs to patch CVE-2024-12905 and CVE-2025-59343
core/vendor had tar-fs@2.1.2 (via prebuild-install) and tar-fs@3.0.8,
both in vulnerable ranges. npm audit fix upgraded them.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix: extensions/vscode/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-TAR-15416075
* chore: package lock update for snyk bump
---------
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Added npm overrides to force minimatch@^9.0.7 for all dependencies
that use vulnerable versions (<9.0.7). This addresses:
- SNYK-JS-MINIMATCH-15309438: ReDoS (High Severity)
- SNYK-JS-MINIMATCH-15353387: ReDoS (High Severity)
- SNYK-JS-MINIMATCH-15353389: Inefficient Algorithmic Complexity (High Severity)
The vulnerable minimatch@9.0.5 was introduced as a transitive dependency
of @sentry/profiling-node > @sentry/node.
Generated with [Continue](https://continue.dev)
Co-authored-by: Continue Agent <noreply@continue.dev>
* feat: add 5 agent checks derived from codebase history analysis
Add agent checks targeting the highest-impact areas identified from
analyzing recent PRs, open issues, and contribution patterns:
- error-message-quality: Catch swallowed errors and generic "Unknown error"
messages (addresses 12/15 open issues being auth/integration errors)
- breaking-change-detector: Flag CLI renames, API changes, and URL updates
that leave stale references (addresses 6 PRs in 8 days fixing the same
CLI command rename)
- dependency-security-review: Meaningful review of dependency bumps for
security implications (25% of merged PRs are automated dep bumps)
- input-validation: Ensure user inputs like API keys and config values
are validated before causing downstream failures
- test-coverage: Verify new functionality includes corresponding tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: prettier formatting
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Replace check CLI with /check skill in running-locally docs
The primary local path is now the /check skill installed via
npx skills add. Removes all CLI references (curl install, check scan,
check init).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add hooks system for CLI event interception
Adds a Claude Code-compatible hooks system that allows external handlers
(shell commands, HTTP endpoints) to intercept and respond to CLI events.
Supports 16 event types with regex-based matching, typed inputs/outputs,
sync/async execution, and multi-source config merging.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: register HookService in service container
The fireHook.ts module references services.hooks, which requires the
HookService to be registered in the service container and exposed in
the services object.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve eslint errors in hooks files and services/index.ts
Fix unused imports, import ordering, and negated condition lint errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: handle EPIPE errors on hook stdin writes
When a hook command exits before we finish writing to stdin, an EPIPE
error is emitted. Add an error handler to suppress it gracefully.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: skip hookRunner tests on Windows
The hookRunner tests use /bin/sh syntax (>&2, single-quote echo, sleep)
that is incompatible with Windows cmd.exe.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address cubic review - utf8 encoding, regex, EPIPE handling
- Use setEncoding("utf8") on stdout/stderr instead of data.toString()
to prevent multi-byte character corruption at buffer boundaries
- Fix env var interpolation regex to use alternation instead of
independent optionals, preventing unbalanced brace matching
- Only suppress EPIPE errors on stdin, log other errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove AI slop from hookRunner.ts
* Update AGENTS.md to document hooks system
* Fix React hooks best practices in useService.ts
* fix: correct indentation in useService.ts for prettier
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove invalid eslint-disable for react-hooks/exhaustive-deps
The react-hooks eslint plugin is not configured in the CLI package,
so the disable comment causes an eslint error.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
* fix: correct cache_hit_rate calculation and remove duplicate emission
Two bugs in prompt_cache_metrics telemetry:
1. Duplicate emission: prompt_cache_metrics was emitted twice per API
request — once using `actualInputTokens` and again using
`fullUsage.prompt_tokens`. This doubled all event counts in PostHog
and produced conflicting values.
2. Wrong denominator: cache_hit_rate was calculated as
`cacheReadTokens / prompt_tokens`, but the Anthropic adapter maps
`prompt_tokens` to only non-cached input tokens (`input_tokens`),
excluding cache reads and writes. When caching works well, this
produces ratios >> 1 (observed max: 89,892). The correct total is
`prompt_tokens + cache_read_tokens + cache_write_tokens`.
Fix: remove the first duplicate emission and compute total_prompt_tokens
as the sum of all three token types. cache_hit_rate is now a proper 0-1
ratio.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: emit tool call id/name from tool-input-start in Vercel stream converter
The Vercel AI SDK streams tool calls as tool-input-start → tool-input-delta
→ tool-input-end → tool-call. Previously, tool-input-start was ignored (returned
null) and tool-call emitted the full tool call at the end, which meant streaming
consumers never saw the tool call id on intermediate chunks.
Now tool-input-start emits the initial chunk with id and function name (matching
OpenAI's streaming format), and tool-call returns null to avoid duplicating args
already streamed via tool-input-delta.
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Continue <noreply@continue.dev>
* Replace /check skill references with check CLI documentation
Rewrite running-locally.mdx to document the check CLI (continuedev/check-cli)
including install, scan, run, list commands, and output formats. Update
quickstart and generating-checks pages to reference the CLI instead of the
/check skill.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Trim running-locally to walkthrough, not reference
Remove List checks, Output formats, flag details, and extra
explanatory text. Keep the core flow: install → scan → run → iterate → automate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix wording: "For running" → "To run"
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove fuzzy-match implementation detail from scan docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove Iterate section, add single-check example to Run section
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove scan failure command example
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Rename "Run checks on your diff" → "... current changes"
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Rename "Scan your codebase" → "Check your entire codebase"
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add intro paragraph and link to quickstart for new users
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add motivation paragraph for running checks locally
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Condense intro to single paragraph
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove em dashes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove "full control over what runs" from intro
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Restore concrete nouns to intro paragraph
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use `check security-review` instead of `check run security-review`
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Reference check init for users without checks
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix missing blank line before heading
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use continue.dev/check/install.sh for cleaner install URL
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Tighten intro copy, remove prerequisites line
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix schemeless curl URL in running-locally.mdx
Add https:// scheme to continue.dev/check/install.sh URL so curl
resolves it correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* Remove beta release workflow and simplify stable release
Beta release is no longer used. Remove the workflow and simplify the
stable release to only support direct releases with a required version
input.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix npm OIDC: restore registry-url, clear NODE_AUTH_TOKEN, use Node 22
Previous fix removed registry-url entirely, causing ENEEDAUTH (no auth
at all). The correct approach: keep registry-url so npm knows the
endpoint, but clear NODE_AUTH_TOKEN at publish time so npm falls back
to OIDC. Also bump to Node 22 which ships with npm OIDC support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix npm OIDC: use Node 24 for publish, unset bogus NODE_AUTH_TOKEN
Root cause: setup-packages resets Node to v20 (from .nvmrc), wiping
the npm upgrade. Node 20 ships with npm 10.x which has no OIDC
support. Fix: switch to Node 24 (ships with npm 11.5.1+) right before
publish, and unset the bogus NODE_AUTH_TOKEN that setup-node creates.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* Remove beta release workflow and simplify stable release
Beta release is no longer used. Remove the workflow and simplify the
stable release to only support direct releases with a required version
input.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix npm OIDC: restore registry-url, clear NODE_AUTH_TOKEN, use Node 22
Previous fix removed registry-url entirely, causing ENEEDAUTH (no auth
at all). The correct approach: keep registry-url so npm knows the
endpoint, but clear NODE_AUTH_TOKEN at publish time so npm falls back
to OIDC. Also bump to Node 22 which ships with npm OIDC support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Remove beta release workflow and simplify stable release
Beta release is no longer used. Remove the workflow and simplify the
stable release to only support direct releases with a required version
input.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Fix npm publish by removing setup-node registry config that blocks OIDC
setup-node with registry-url sets NODE_AUTH_TOKEN to the GitHub token,
which npm uses instead of its OIDC flow, causing auth failures. Remove
registry-url/always-auth and switch beta workflow to OIDC too.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Use setEncoding("utf8") on stdout/stderr streams instead of
per-chunk Buffer.toString() to avoid breaking multi-byte characters
at chunk boundaries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move execa type import before vitest to satisfy eslint import/order.
Require SMOKE_PROXY_MODEL env var for continue-proxy test since the
proxy needs a 4-part model name (owner/package/provider/model) that
depends on org-specific configuration.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a new smoke-api test suite that proves the CLI can complete real LLM
round-trips against the Anthropic API. Tests cover headless mode,
serve mode, and all-tools execution. Runs sequentially to avoid rate
limits, skips gracefully when API keys are missing (fork PRs), and
is wired into CI as a required check with allowed-skips.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Node 20 ships with npm 10.x which doesn't support OIDC-based publish
authentication. Trusted publishing requires npm >= 11.5.1.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add --provenance flag to npm publish so it uses the GitHub OIDC token
exchange instead of the expired NODE_AUTH_TOKEN for authentication.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>