Skip to content

Commit 425e1ac

Browse files
Merge remote-tracking branch 'origin/main' into docs/163-windows-arm-target
# Conflicts: # CHANGELOG.md
2 parents 0cf79d0 + d6de3de commit 425e1ac

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ that may never merge. They are not releases and are not listed here.
3131
`.cargo/config.toml` already named it, so publishing the artifact was the
3232
whole client-side change.
3333

34+
- `install.sh`/`install.ps1` now document a convention for `MAPBOX_CLI_INSTALL_SOURCE`
35+
when a coding agent invokes the installer on someone's behalf: `agent-<name>`
36+
(`agent-claude-code`, `agent-cursor`), so an access-log query can tell those
37+
installs apart from a human or CI one. A dash rather than the slash an
38+
earlier proposal used — `/` is stripped by the installers' own sanitizer,
39+
which would have collapsed `agent/claude-code` into `agentclaude-code` and
40+
lost the separator. Comment-only: neither installer's behavior changed.
41+
3442
## 0.3.0 - 2026-09-22
3543

3644
### Added

‎scripts/install.ps1‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@
9191
# provisioning script, CI - and it rides along as `src/<value>`.
9292
# Everything but letters, digits, dot, dash and underscore is dropped,
9393
# because this value comes from the environment and ends up in a header.
94+
#
95+
# Convention for a coding agent invoking this script on someone's behalf:
96+
# agent-<name> - agent-claude-code, agent-cursor - so an access-log query
97+
# can tell an agent-driven install from a human or CI one without a second
98+
# reporting mechanism. A dash, not a slash: / is one of the characters the
99+
# sanitizer below strips, so agent/claude-code would silently become
100+
# agentclaude-code and lose the separator that makes the convention
101+
# legible. Freeform otherwise, the same as every other value here - no
102+
# fixed list of agent names to keep in sync.
94103
$InstallSource = $env:MAPBOX_CLI_INSTALL_SOURCE
95104

96105
# The switch src/telemetry.rs honors for the CLI's own User-Agent, read

‎scripts/install.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ USER_AGENT='mapbox-cli-install/1'
7474
# as `src/<value>`. Everything but letters, digits, dot, dash and underscore is
7575
# dropped, because this value comes from the environment and ends up in a
7676
# header.
77+
#
78+
# **Convention for a coding agent invoking this script on someone's behalf:**
79+
# `agent-<name>` — `agent-claude-code`, `agent-cursor` — so an access-log query
80+
# can tell an agent-driven install from a human or CI one without a second
81+
# reporting mechanism. A dash, not a slash: `/` is one of the characters the
82+
# sanitizer above strips, so `agent/claude-code` would silently become
83+
# `agentclaude-code` and lose the separator that makes the convention legible.
84+
# Freeform otherwise, the same as every other value here — no fixed list of
85+
# agent names to keep in sync.
7786
INSTALL_SOURCE="${MAPBOX_CLI_INSTALL_SOURCE:-}"
7887

7988
# The switch `src/telemetry.rs` honors for the CLI's own User-Agent, read here

0 commit comments

Comments
 (0)