Repository navigation
strait test + strait events add - #8
Merged
Merged
Conversation
strait test: one pass/fail list (engine, secret key with workspace and test/live, link domain, AASA and assetlinks.json); exit 1 on failure, --json for CI. strait events add <name>: ready-to-paste trackEvent code for React Native, Flutter, iOS, Android and web, platform detected from the project files. ADR docs/adr/0001. No publish: CHANGELOG Unreleased. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfkGWSV4ar1AEGgGnCbGzd
…use extra arguments; README/help fixes from review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfkGWSV4ar1AEGgGnCbGzd
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.
Item cli-test-events-add. ADR:
docs/adr/0001-strait-test-and-events-add.md.strait test: one pass/fail list: engine answers (GET /healthz), the secret key is valid and which workspace, test or live (GET /v1/workspace), the workspace link domain serves AASA + assetlinks.json (existingrunDoctor). Exit 1 on any failure, 2 for a missing/wrong-kind key,--jsonfor CI. Key never printed; server text stripped of terminal control characters.strait events add <name>: prints ready-to-paste event code per platform (react-native/expo, flutter, ios, android, web), detected from project files or--platform. Uses each SDK's realtrackEvent; web usesreportWebOpen+POST /v1/event(as the web SDK's own example; it has no event helper).Proof
npm test: 85 pass, 0 fail (2 existing skips).strait testagainst https://strait.link with the strait-dev key: 5/5 pass, exit 0; a fake key: Key fail + skips, exit 1.tsc --strict(typo control fails), Swiftswift build, Flutterdart analyze(no issues; addingeventId:errors, so the Flutter snippet correctly omits it), Kotlingradlew compileKotlin.Not published: CHANGELOG "Unreleased"; ships with the next CLI release.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JfkGWSV4ar1AEGgGnCbGzd