Skip to content

fix(deps): update @doist/cli-core to 1.10.0 - #115

Merged
scottlovegrove merged 1 commit into
mainfrom
scottl/cli-core-1.10
Nov 11, 2026
Merged

scottlovegrove merged 1 commit into
mainfrom
scottl/cli-core-1.10

Conversation

@scottlovegrove

Copy link
Copy Markdown
Collaborator

Summary

Bumps @doist/cli-core to 1.10.0 (todoist/cli-core#177), which adds a cli-agent header to the shared usage header set. It names the AI coding agent running the CLI, so the backends can split CLI usage into agent-driven and human-driven runs.

Value Detected from
claude-code, codex, cursor, gemini, copilot, opencode AI_AGENT, or the agent's own environment marker (e.g. CLAUDECODE, CURSOR_AGENT, CODEX_SANDBOX)
other an agent marker cli-core doesn't name, or an unrecognised AI_AGENT
none no agent detected

It carries only the agent's name: no version, no user data.

What changed

  • @doist/cli-core 1.9.0 → 1.10.0. No code changes; every request picks up the header through usageTracking.
  • The two tests that assert the exact header set (usage-tracking.test.ts, search-api.test.ts) now expect cli-agent. The tracker reads the agent once when its module loads, so each file stubs AI_AGENT in vi.hoisted, before the import. Otherwise the value would be none in CI and claude-code (or whichever agent) locally.
  • CODEBASE.md lists the new header.

todoist-cli took the same bump and test change in todoist/todoist-cli#650. The Todoist backend already records cli-agent (Doist/todoist#31504); Comms doesn't read it yet, which is a backend follow-up.

Test plan

  • With 1.10.0 and no test changes, exactly those two tests failed on the extra header; they pass with the change
  • The two files pass with no agent variables set, under Claude Code, and with Cursor's set
  • npm run verify
  • Against a local server that logs request headers, tdc user sent cli-agent: claude-code with AI_AGENT=claude-code_…, none with no agent variables, cursor with CURSOR_AGENT=1, and codex with AI_AGENT=codex

1.10.0 adds a cli-agent header naming the AI coding agent (if any)
running the CLI. Pin it in the exact header-set tests by stubbing
AI_AGENT before the tracker's module loads, so the value is the same
in CI and under any local agent.
@scottlovegrove scottlovegrove self-assigned this Nov 11, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR updates fix(deps): update @doist/cli-core to 1.10.0. No issues were flagged in the reviewed diff.

Share Feedback • Review Logs

@scottlovegrove
scottlovegrove merged commit 9d8d6f6 into main Nov 11, 2026
6 checks passed
@scottlovegrove
scottlovegrove deleted the scottl/cli-core-1.10 branch November 11, 2026 10:06
doist-release-bot Bot added a commit that referenced this pull request Nov 11, 2026
## [4.1.1](v4.1.0...v4.1.1) (2026-11-11)

### Bug Fixes

* **deps:** update @doist/cli-core to 1.10.0 ([#115](#115)) ([9d8d6f6](9d8d6f6))
@doist-release-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants