Skip to content

feat: track starter project name on initialization#1771

Merged
levimykel merged 5 commits intomainfrom
lg/starter-tracking
Mar 30, 2026
Merged

feat: track starter project name on initialization#1771
levimykel merged 5 commits intomainfrom
lg/starter-tracking

Conversation

@levimykel
Copy link
Copy Markdown
Contributor

@levimykel levimykel commented Mar 30, 2026

Resolves: DT-3288

Description

Add starter property to init telemetry events

Adds the --starter flag value (e.g. agentic-migration-starter) to the command:init:start and command:init:end Segment events, so we can track which starter template users are initializing.

Changes:

  • Added optional starter?: string to CommandInitStartSegmentEvent and CommandInitEndSegmentEvent types
  • Passed starter: this.options.starter in all three telemetry.track() calls in SliceMachineInitProcess

The property is optional and undefined when --starter is not used, so existing behavior is unaffected.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

N/A

How to QA 1

Run this to test:

npx @slicemachine/init@alpha.lg-starter-tracking --starter agentic-migration-starter

Note

Low Risk
Low risk: only adds an optional field to telemetry payloads during init and updates a patch-level dependency, with no functional behavior changes when --starter is not provided.

Overview
Tracks which starter template was used during @slicemachine/init by adding an optional starter field to the command:init:start and command:init:end Segment events (including failure tracking).

Updates telemetry event typings accordingly and bumps h3 from ^1.15.5 to ^1.15.6 (lockfile resolves to 1.15.10).

Written by Cursor Bugbot for commit ddefd35. This will update automatically on new commits. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@levimykel levimykel self-assigned this Mar 30, 2026
@levimykel levimykel requested a review from a team as a code owner March 30, 2026 13:45
@linear
Copy link
Copy Markdown

linear bot commented Mar 30, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
slice-machine Ready Ready Preview Mar 30, 2026 4:41pm

Request Review

fp-ts: ^2.13.1
get-port: ^6.1.2
h3: ^1.15.5
h3: ^1.15.6
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to update this for the CI audit to pass.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy link
Copy Markdown
Collaborator

@jomifepe jomifepe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

package.json Outdated
"express": "4.20.0",
"@prismicio/types-internal": "3.11.2"
"@prismicio/types-internal": "3.11.2",
"h3": "^1.15.6"
Copy link
Copy Markdown
Collaborator

@jomifepe jomifepe Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Was this intended to be defined in the root package.json?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this wasn't needed. I removed it and everything looks good. Good catch.

@levimykel levimykel merged commit 8b3d9ec into main Mar 30, 2026
34 checks passed
@levimykel levimykel deleted the lg/starter-tracking branch March 30, 2026 16:50
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.

2 participants