Skip to content

fix(cli): accept attribution overrides per command - #119

Merged
JJasonSun merged 3 commits into
mainfrom
fix/cross-platform-cli-attribution
Sep 8, 2026
Merged

fix(cli): accept attribution overrides per command#119
JJasonSun merged 3 commits into
mainfrom
fix/cross-platform-cli-attribution

Conversation

@JJasonSun

@JJasonSun JJasonSun commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

CLI callers can pass --source, --integration, and --integration-version as attribution overrides in each command's argument array. Each option overrides its matching environment value and reuses the existing broker/MCP header and telemetry context. Missing or invalid values return invalid_arguments before network requests.

The CLI reference documents allowed values, partial-context defaults, and repeating the options on follow-up requests. Recovery coverage executes returned next_argv arrays with these options and verifies that a lost response still results in one logical call.

Fixes #111.

Validation:

  • Linux and Windows CI passed at 944b9533a64501c9b537fc4cca9838598e5b52c2. Linux passed 170 JavaScript tests, with one Windows-only skip, plus 8 Python OAuth tests. Windows passed 101 CLI tests with no skips, including all 67 documented argument arrays in each of PowerShell 7, Windows PowerShell, and cmd.
  • Local pnpm test: 170 passed, with one Windows-only skip on macOS.
  • pnpm check, pnpm pack:dry-run, and git diff --check passed.
  • Automated checks cover environment precedence, malformed attribution, help output, request headers, telemetry, and lost-response recovery.

Includes a patch changeset for @call-e/cli in .changeset/clear-shell-attribution.md.

@JJasonSun JJasonSun changed the title fix(cli): support cross-platform agent attribution fix(cli): accept attribution overrides per command Sep 8, 2026
@JJasonSun
JJasonSun changed the base branch from fix/agent-cli-selection to main September 8, 2026 09:32
@JJasonSun
JJasonSun merged commit 2f438c3 into main Sep 8, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 8, 2026
N-45div added a commit to N-45div/call-e-integrations that referenced this pull request Sep 9, 2026
Resolve packages/cli/package.json so the syntax check keeps both
lib/sanitize.js and scripts/run-agent-command.mjs. The shell-free
launcher contract and per-command attribution flags from CALLE-AI#115/CALLE-AI#119
are preserved unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Packaged agent commands fail in Windows PowerShell because Unix env syntax is mandatory

1 participant