feat(spawn): identify the host integration to the spawned CLI - #75
Merged
Merged
Conversation
The CLI accepts an integration identifier only through the QODER_INTEGRATION_ID environment variable and reports it as the integration_id telemetry attribute. The spawn adapter is the single point every SDK-spawned CLI goes through, so the value is injected there, alongside the existing custom-provider opt-in. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QODER_INTEGRATION_IDin its environment, injected in the shared spawn adapter next to the existing custom-provider opt-in.integration_idtelemetry attribute; without it, SDK traffic from the plugin is unattributed. Only a UUIDv4 is accepted — any other value is silently dropped by the CLI.Verification
npm run typechecknpm run lintnpm run testnpm run buildnpm run release:checknpm run audit:prodNotes on the last item: the env injection itself was verified by bundling the spawn adapter and executing it in Node — the child process environment contains
QODER_INTEGRATION_IDwhile the caller-provided env and the custom-provider opt-in are preserved. End-to-end telemetry receipt was not verified, as confirming theintegration_idattribute server-side is out of reach locally.Safety
CHANGELOG.md— not applicable: no user-visible behavior changes, so no entry (same as the previous SDK upgrade).