genclass 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/genclass.mjs +10 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- **Nothing is drawn on a page.** The runtime step adds GenClass without the developer overlay (`init
|
|
6
|
+
--no-devtools`), so an app set up by this command shows its own layout and nothing of GenClass's, on localhost as
|
|
7
|
+
on the deployed site. What GenClass finds goes to the browser console, the dashboard and `genclass dashboard`.
|
|
8
|
+
(On a deployed site nothing was ever drawn; the overlay appeared only on localhost.) An app set up by 0.2.0 or
|
|
9
|
+
earlier keeps its dev-only overlay line until it is removed by hand or with `genclass remove` and a new setup.
|
|
10
|
+
|
|
3
11
|
## 0.2.0
|
|
4
12
|
|
|
5
13
|
- **`genclass dashboard` shows the app in the terminal**: problems found on the live site by kind and page, measured
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ per step. Stop at any point and run it again: it continues from what is true now
|
|
|
17
17
|
╚██████╔╝███████╗██║ ╚████║╚██████╗███████╗██║ ██║███████║███████║
|
|
18
18
|
╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝
|
|
19
19
|
|
|
20
|
-
Finds what breaks in your web app, and tells you what it needs next. v0.2.
|
|
20
|
+
Finds what breaks in your web app, and tells you what it needs next. v0.2.1
|
|
21
21
|
|
|
22
22
|
GenClass • shop Vite + React
|
|
23
23
|
ada@example.com • Free plan
|
|
@@ -41,7 +41,7 @@ it, and `d` again to fold it back.
|
|
|
41
41
|
| Part | What the step does | What it changes |
|
|
42
42
|
|---|---|---|
|
|
43
43
|
| Account | Opens genclass.dev in your browser; you approve a short code there. | A session file in your user config folder. Nothing is typed in the terminal. |
|
|
44
|
-
| Runtime | Adds GenClass to the app: one import (or script tag) and the package. It watches the page in your users' browsers for lost edits, double submits and old data shown over new, and only reports. | Your entry file and `package.json`; you see the change first. `genclass remove` undoes it. |
|
|
44
|
+
| Runtime | Adds GenClass to the app: one import (or script tag) and the package. It watches the page in your users' browsers for lost edits, double submits and old data shown over new, and only reports, to the console and your dashboard. Nothing is drawn on your pages. | Your entry file and `package.json`; you see the change first. `genclass remove` undoes it. |
|
|
45
45
|
| Dashboard | Waits for your live site to be opened once. GenClass sends nothing from localhost. | Nothing. |
|
|
46
46
|
| Test workflow | Runs your Playwright tests once more per pull request with slow and reordered responses. | One new file, `.github/workflows/genclass.yml`, which you commit. |
|
|
47
47
|
| GitHub App | Comments on a pull request when a page ends up wrong, with the steps to see it. The command opens GitHub's install page and waits for the answer. | Nothing in your project. The app cannot read or change your code. |
|
package/dist/genclass.mjs
CHANGED
|
@@ -12,7 +12,7 @@ var __export = (target, all) => {
|
|
|
12
12
|
var define_GENCLASS_BUILD_default;
|
|
13
13
|
var init_define_GENCLASS_BUILD = __esm({
|
|
14
14
|
"<define:__GENCLASS_BUILD__>"() {
|
|
15
|
-
define_GENCLASS_BUILD_default = { version: "0.2.
|
|
15
|
+
define_GENCLASS_BUILD_default = { version: "0.2.1", runtimeVersion: "0.3.0-beta.6", mcpVersion: "0.2.2", workflow: `# GenClass on your existing Playwright suite: no change to your tests or your playwright.config.
|
|
16
16
|
# Copy to .github/workflows/genclass.yml.
|
|
17
17
|
#
|
|
18
18
|
# Assumes "npx playwright test" works on a fresh checkout with dependencies installed, which usually
|
|
@@ -6574,8 +6574,8 @@ async function readState(o = {}, deps = {}) {
|
|
|
6574
6574
|
doing: st.fresh ? "Add GenClass to this app" : "Put this app in your account",
|
|
6575
6575
|
state: !isApp ? "blocked" : st.fresh ? "todo" : linked ? "done" : "todo",
|
|
6576
6576
|
detail: !isApp ? project.refused ?? "no web app in this folder (no package.json with a browser app, no HTML page)" : st.fresh ? project.label : !st.token ? "added, with no dashboard yet" : me && !app ? "added, but this app is not in your account yet" : `${st.handWritten ? "added by hand" : "added"}${app ? ` \xB7 app "${app.name}"` : ""}`,
|
|
6577
|
-
why: st.fresh ? "One import and the package. You see the change
|
|
6578
|
-
more: "The runtime watches the page in your users' browsers for lost edits, double submits and old data shown over new. It only reports: it never holds, delays or changes anything your app does.",
|
|
6577
|
+
why: st.fresh ? "One import and the package. You see the change first. Nothing is drawn on your pages." : "Gives the app its place in your account, so what it finds shows on your dashboard.",
|
|
6578
|
+
more: "The runtime watches the page in your users' browsers for lost edits, double submits and old data shown over new. It only reports, to the browser console and your dashboard: it never holds, delays or changes anything your app does, and it puts nothing on the page.",
|
|
6579
6579
|
run: st.fresh ? "genclass init" : "genclass connect",
|
|
6580
6580
|
human: null
|
|
6581
6581
|
});
|
|
@@ -6762,10 +6762,14 @@ async function signIn(o = {}) {
|
|
|
6762
6762
|
sp.stop("ok", `Signed in as ${c.bold(accountLabel(r.account))}`);
|
|
6763
6763
|
return "done";
|
|
6764
6764
|
}
|
|
6765
|
-
|
|
6766
|
-
const
|
|
6765
|
+
function runtimeArgs(state, o = {}) {
|
|
6766
|
+
const connect2 = state.steps.find((s) => s.id === "runtime")?.run === "genclass connect";
|
|
6767
6767
|
const args = ["--cwd", state.cwd, ...o.yes ? ["--yes"] : [], ...state.signedIn ? ["--in-account"] : []];
|
|
6768
|
-
|
|
6768
|
+
return { cmd: connect2 ? "connect" : "init", args: connect2 ? args : [...args, "--no-devtools"] };
|
|
6769
|
+
}
|
|
6770
|
+
async function addRuntime(state, o = {}) {
|
|
6771
|
+
const { cmd, args } = runtimeArgs(state, o);
|
|
6772
|
+
const code = cmd === "connect" ? await run2("connect", args) : await run("init", args);
|
|
6769
6773
|
return code === 0 ? "done" : "failed";
|
|
6770
6774
|
}
|
|
6771
6775
|
async function watchFirstPage(state, o = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genclass",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "GenClass CLI: one command that signs you in, adds GenClass to your app, connects your pull requests and your coding agent, and tells you what your app is missing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|