Repository navigation
telemetry-worker: /start/open-source, onboarding with no account - #121
Closed
Karanvir1729 wants to merge 1 commit into
Closed
Karanvir1729 wants to merge 1 commit into
Karanvir1729 wants to merge 1 commit into
Conversation
…only the open-source parts A page at /start/open-source for teams that won't use a hosted dashboard: no sign-in, no token, telemetry: false. Checkboxes (Guard, Eager, Logs, the coding-agent link, a self-hosted model) rewrite one copy-prompt that installs the runtime, starts it with the discover import first, adds the dev-only overlay, connects the MCP server with GENCLASS_DASHBOARD and GENCLASS_REPORT unset, and checks pages with scan --local. The page lists every host the app or the dev machine still reaches (jsDelivr for the model and onnxruntime-web unless self-hosted, the npm registry, Playwright's download servers) and says the hosted page check is not open source and needs hosted: true. - choices come back after Back (Chromium restores checkboxes without a change event and skips disabled ones), here and in the dashboard's Connect dialog - copying by execCommand no longer scrolls the page and keeps focus on the button - prompt sources ship through fnSource(); bundle.test.ts bundles pages.ts as Wrangler does (keepNames) and fails on __name( in an inline script or a raw control character - the route writes no database rows; POST falls through to the site - SNIPPET_RUNTIME and RUNTIME_ON_NPM are 0.3.0-beta.4 - /start and the account pages link to it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
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.
Stacked on #118 (
copy-prompts): merge that first, then this one retargets tomain.What
genclass.dev/start/open-sourcelets teams that won't use a hosted dashboard set GenClass up with no sign-in and no token, using only the open-source parts. The setup it gives hastelemetry: false.discoverimport first, so React, Redux and Zustand state are found;GENCLASS_DASHBOARDandGENCLASS_REPORTunset;scan --local.hosted: true, or whenscanruns without--localand Playwright or its Chromium is missing.init --no-telemetry,mcp initandscan --local. There are also two connect snippets for the MCP server, one for Vite and one for Next.js and webpack./startand from the sign-in page ("The runtime needs no account: set it up without one").Also in this PR
pageshowand only disables Eager after load.fnSource(). The newtest/bundle.test.tsbundlespages.tsthe way Wrangler does (esbuildkeepNames). It fails if an inline script calls__name(or a page holds a raw control character; this broke the page once with__name is not defined.SNIPPET_RUNTIMEandRUNTIME_ON_NPMare now0.3.0-beta.4.Testing
cd telemetry-worker && npx vitest run: 349 passed.wrangler deploy --dry-runbuilds, and the page has no raw control characters.npx @genclass/runtime@0.3.0-beta.4 init --no-telemetry --mode guard --sink console-json --model-url /genclass-model/ --dry-run --yeson a plain HTML page shows the script tag the prompt describes.Not in this PR
noindex, so search engines won't find it until the site links to it.packages/sv; that fix is left for a follow-up.🤖 Generated with Claude Code