feat(installed): Align install and session lifecycle with new schema #226
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.
Motivation
Description
client_idUUID derived fromSHA256("nori_salt:<hostname>:<username>")and add anopt_outboolean to the install state file schema.app_install,app_update,user_resurrected,session_start), detect semver upgrades via thesemvercrate, and flag resurrection when last launch > 30 days.event,client_id,session_id,timestamp,properties) and post toNORI_ANALYTICS_URL(defaulthttps://noriskillsets.dev/api/analytics/track) with a 500ms timeout and fire-and-forget semantics.NORI_NO_ANALYTICS=1overriding localopt_out, keep state updates even when opted out, and document the new schema and behavior indocs.md.semver,uuid) and update tests and code to use the new API names (generate_client_id,create_event, etc.).Testing
just fmtcompleted successfully.just fix -p nori-installedcompleted successfully.cargo test -p nori-installedand all tests passed (26 passed; 0 failed).Codex Task