Commit graph

21325 commits

Author SHA1 Message Date
github-actions[bot]
38848092a5
fix(security): resolve high severity minimatch vulnerabilities (#11057)
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>
2026-03-09 12:08:56 -07:00
dependabot[bot]
7eaca6a1eb
chore(deps): bump minimatch in /packages/config-yaml (#10927)
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 5.1.6 to 5.1.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 5.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 11:58:16 -07:00
dependabot[bot]
b4de51d26a
chore(deps): bump minimatch in /packages/hub (#10955)
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 5.1.6 to 5.1.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 5.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 11:57:55 -07:00
dependabot[bot]
462b6e6816
chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in /core (#10911)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 11:57:23 -07:00
dependabot[bot]
391da4e461
chore(deps): bump ajv in /gui (#10720)
Bumps  and [ajv](https://github.com/ajv-validator/ajv). These dependencies needed to be updated together.

Updates `ajv` from 8.17.1 to 8.18.0
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

Updates `ajv` from 6.12.6 to 6.14.0
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

---
updated-dependencies:
- dependency-name: ajv
  dependency-version: 8.18.0
  dependency-type: indirect
- dependency-name: ajv
  dependency-version: 6.14.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 11:56:24 -07:00
dependabot[bot]
52384aedc2
chore(deps): bump hono from 4.11.7 to 4.12.5 in /core (#11032)
Bumps [hono](https://github.com/honojs/hono) from 4.11.7 to 4.12.5.
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.11.7...v4.12.5)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.12.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 11:55:56 -07:00
dependabot[bot]
2e382480a3
chore(deps): bump @hono/node-server from 1.19.9 to 1.19.10 in /core (#11035)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.9 to 1.19.10.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.9...v1.19.10)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:58:05 -07:00
dependabot[bot]
f45692049d
chore(deps): bump @hono/node-server from 1.19.9 to 1.19.10 in /gui (#11034)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.9 to 1.19.10.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.9...v1.19.10)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:57:49 -07:00
dependabot[bot]
f92cc9105b
chore(deps): bump hono from 4.11.7 to 4.12.5 in /gui (#11033)
Bumps [hono](https://github.com/honojs/hono) from 4.11.7 to 4.12.5.
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.11.7...v4.12.5)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.12.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:57:22 -07:00
dependabot[bot]
8691c00ae2
chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in /gui (#10913)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:56:42 -07:00
dependabot[bot]
6fc82473f3
chore(deps): bump minimatch in /binary (#10912)
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 9.0.4 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:56:20 -07:00
dependabot[bot]
d948f4876c
chore(deps): bump ajv in /core (#10714)
Bumps  and [ajv](https://github.com/ajv-validator/ajv). These dependencies needed to be updated together.

Updates `ajv` from 8.17.1 to 8.18.0
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

Updates `ajv` from 6.12.6 to 6.14.0
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

---
updated-dependencies:
- dependency-name: ajv
  dependency-version: 8.18.0
  dependency-type: indirect
- dependency-name: ajv
  dependency-version: 6.14.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:55:01 -07:00
dependabot[bot]
c4e9454bc1
chore(deps): bump tar from 7.5.7 to 7.5.10 in /core (#11048)
Bumps [tar](https://github.com/isaacs/node-tar) from 7.5.7 to 7.5.10.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.7...v7.5.10)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.10
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:53:34 -07:00
dependabot[bot]
bd2c9584aa
chore(deps): bump express-rate-limit from 8.2.1 to 8.3.0 in /core (#11134)
Bumps [express-rate-limit](https://github.com/express-rate-limit/express-rate-limit) from 8.2.1 to 8.3.0.
- [Release notes](https://github.com/express-rate-limit/express-rate-limit/releases)
- [Commits](https://github.com/express-rate-limit/express-rate-limit/compare/v8.2.1...v8.3.0)

---
updated-dependencies:
- dependency-name: express-rate-limit
  dependency-version: 8.3.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:53:18 -07:00
Ty Dunn
beca33f07a
feat: add 5 agent checks derived from codebase history (#10401)
* 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>
2026-03-09 10:51:44 -07:00
Ty Dunn
6bd9618dd9
Add workflow section to running-locally docs (#11046)
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>
2026-03-04 23:33:51 -08:00
Nate Sesti
abb1fc0439
feat: add hooks system for CLI event interception (#11029)
* 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>
2026-03-04 15:37:09 -08:00
Nate Sesti
ec7030d20b
fix: correct cache_hit_rate calculation and fix Vercel stream tool call handling (#10994)
* 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>
2026-03-04 07:57:41 -08:00
Nate Sesti
56798ad241
Document check CLI for running checks locally (#10991)
* 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>
2026-03-02 20:32:10 -08:00
Nate Sesti
300b2992c6
Fix npm OIDC: Node 24 for publish, unset bogus token (#10964)
* 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>
2026-03-01 16:46:46 -08:00
Nate Sesti
3a9c5feecf
Fix npm OIDC publish: restore registry-url, clear token, use Node 22 (#10961)
* 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>
2026-03-01 15:48:07 -08:00
Nate Sesti
e24ce48c24
Remove beta release workflow (#10959)
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>
2026-03-01 14:14:19 -08:00
Nate Sesti
1c561f0eaf
Fix npm OIDC publish by removing setup-node registry config (#10958)
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>
2026-03-01 13:25:30 -08:00
Nate Sesti
96bb0eac22
Merge pull request #10952 from continuedev/nate/fix-ci02
Upgrade npm for OIDC trusted publishing in stable release
2026-03-01 12:42:58 -08:00
Nate Sesti
81f1016fed
Merge pull request #10937 from continuedev/nate/remove-directory-structure
Remove directory structure from system prompt
2026-03-01 12:42:10 -08:00
Nate Sesti
a45888f5c2
Merge pull request #10936 from continuedev/add-cache-telemetry-posthog
Add cache token data to PostHog telemetry events
2026-03-01 12:41:43 -08:00
Nate Sesti
8bc07a4960
Merge pull request #10935 from continuedev/add-anthropic-message-caching-clean
Add conversation message caching to AnthropicApi
2026-03-01 12:40:57 -08:00
Nate Sesti
d47cbfb436
Merge pull request #10953 from continuedev/wt-6
Add smoke tests for real API connectivity
2026-03-01 12:32:31 -08:00
Nate
310ad57b9c fix: set utf8 encoding on child process streams
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>
2026-03-01 11:12:22 -08:00
Nate
4a0bc1e624 fix: eslint import order and continue-proxy model name format
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>
2026-03-01 11:00:45 -08:00
Nate
82672294bf fix: format smoke-api files with prettier
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:42:28 -08:00
Nate
25fe40a546 Add smoke tests for real API connectivity
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>
2026-03-01 10:30:41 -08:00
Nate
d21a0089f4 Upgrade npm in stable release for OIDC trusted publishing
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>
2026-03-01 10:06:05 -08:00
Nate Sesti
533fb83c3c
Merge pull request #10951 from continuedev/nate/fix-ci01
Fix stable release npm publish with OIDC trusted publishing
2026-03-01 09:42:30 -08:00
Nate
9fe15eeea8 Fix stable release npm publish by enabling OIDC trusted publishing
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>
2026-03-01 09:40:51 -08:00
Nate Sesti
de12be19ce
Merge pull request #10874 from uinstinct/back-job-perm
feat: allow background job perm check by default
2026-03-01 09:31:12 -08:00
Nate Sesti
4c0f3b66ca
Merge branch 'main' into back-job-perm 2026-03-01 09:31:04 -08:00
Nate Sesti
b70d69ff83
Merge pull request #10845 from uinstinct/cli-quiz
feat(cli): quiz answers
2026-03-01 09:30:25 -08:00
Nate Sesti
5ab2368f37
Merge pull request #10784 from uinstinct/more-prov-1
feat: ai-sdk support for xai and deepseek
2026-03-01 09:28:01 -08:00
Nate Sesti
2dba04fe32
Merge pull request #10775 from uinstinct/env-var-ai-sdk
feat: use env variable to enable ai sdk
2026-03-01 09:27:08 -08:00
Nate Sesti
60646e5dd5
Merge pull request #10950 from continuedev/sestinj-patch-1
Remove NODE_AUTH_TOKEN from stable-release workflow
2026-03-01 09:18:12 -08:00
Nate Sesti
966ffe9883
Remove NODE_AUTH_TOKEN from stable-release workflow
Removed NODE_AUTH_TOKEN environment variable from various steps in the stable release workflow.
2026-03-01 09:17:53 -08:00
Nate Sesti
64d58c4d98
Merge pull request #10801 from continuedev/nate/prompt-caching
feat: add turn-level prompt caching + PostHog metrics + live API tests
2026-02-28 21:18:36 -08:00
Nate
f5f9ccbb16 Guard message caching when strategy is "none"
Skip addCacheControlToLastTwoUserMessages when cachingStrategy is "none"
so requests truly have no caching markers. Updates test to verify.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 16:33:28 -08:00
Nate
29f4c21e7a Fix TypeScript errors in Anthropic caching test
Add required `provider: "anthropic"` to AnthropicApi constructor calls
and use `(textPart as any)` type assertion for `cache_control` property
access, which is dynamically added and not in the ContentBlockParam type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 16:19:36 -08:00
Nate
d7aa797a94 Remove directory structure from system prompt
Remove the getDirectoryStructure() function and its embedding in the
system prompt. This was walking up to 500 files and embedding them as a
static tree in every API request, adding ~3,500-5,000 tokens per call.

The LLM already has tools (listFiles, Glob, Grep) to discover files on
demand, making the embedded tree redundant. Claude Code does not include
directory structure in its system prompt for the same reason.

This also improves prompt cache hit rates since the system prompt no
longer varies by project directory contents.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2026-02-28 13:17:47 -08:00
Nate
13e553b930 Add conversation message caching to AnthropicApi
Cache the last two user messages in _convertBody() by calling
addCacheControlToLastTwoUserMessages() after applying the caching
strategy. This brings the direct Anthropic path to parity with
OpenRouter, which already caches user messages.

Caching the last two user messages allows Anthropic to serve ~90%
of those tokens from cache reads at 1/10th the cost, significantly
reducing per-request input token costs for multi-turn conversations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:16:58 -08:00
Nate
c28ffbf225 Add cache token data and prompt_cache_metrics to PostHog telemetry
Add cacheReadTokens and cacheWriteTokens to the existing apiRequest
PostHog event, and emit a new prompt_cache_metrics event with
cache_hit_rate, cache_read_tokens, cache_write_tokens,
total_prompt_tokens, tool_count, and model. This populates the
existing Prompt Cache Performance dashboard (ID: 1310089).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:15:50 -08:00
uinstinct
9ae00f592b move QuizService to services folder 2026-02-27 09:41:47 +05:30
uinstinct
6187143567 feat: allow background job perm check by default 2026-02-27 09:24:29 +05:30