Skip to content

Conversation

@MichaelGHSeg
Copy link

No description provided.

MichaelGHSeg and others added 4 commits February 9, 2026 12:05
Node-based CLI that copies SDK upload/error-handling logic for e2e
testing against mock server. Includes E2E_TEST_SUITES for selective
test execution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make apiHost and cdnHost optional in the CLI input type contract.
Add e2e-cli README documenting the input/output format and parameters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace copied SDK functions with real imports from the SDK source.
Events now flow through the full pipeline: SegmentClient → Timeline →
SegmentDestination (batch chunking) → QueueFlushingPlugin (queue) →
uploadEvents HTTP POST.

Three minimal stubs replace React Native runtime dependencies:
- react-native: mocks AppState, NativeModules, Platform
- @segment/sovran-react-native: re-exports real store.ts + bridge.ts,
  bypassing the RN bridge entry point
- react-native-get-random-values: no-op (Node.js has native crypto)

Uses esbuild to bundle CLI + SDK source + stubs into dist/cli.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MichaelGHSeg MichaelGHSeg requested a review from abueide February 11, 2026 17:56
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.

1 participant