@speedkit/cli 4.52.0 → 4.52.2
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 +14 -0
- package/dist/build-info.json +3 -3
- package/dist/commands/revalidate/start.js +7 -4
- package/dist/commands/revalidate.js +7 -4
- package/dist/services/onboarding/templates/install-speed-kit-html-template.js +11 -0
- package/dist/services/onboarding/templates/spec/install-speed-kit-html-template.spec.d.ts +1 -0
- package/dist/services/onboarding/templates/spec/install-speed-kit-html-template.spec.js +119 -0
- package/dist/services/revalidate/revalidate-model.d.ts +20 -1
- package/dist/services/revalidate/revalidate-model.js +30 -0
- package/dist/services/revalidate/spec/revalidate-jobs.spec.js +62 -0
- package/oclif.manifest.json +191 -191
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.52.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.52.1...v4.52.2) (2026-11-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **revalidate:** show a failed job's cause and warn when the job was cancelled ([e1706e5](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/e1706e593a40407a3ae13bbc7106d23011178c98))
|
|
7
|
+
|
|
8
|
+
## [4.52.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.52.0...v4.52.1) (2026-11-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **onboarding:** leave the install page only through the newest worker ([8dae035](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/8dae035e57cae20123bf03e1fd20ece3618bbe8f))
|
|
14
|
+
|
|
1
15
|
# [4.52.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.51.1...v4.52.0) (2026-11-11)
|
|
2
16
|
|
|
3
17
|
|
package/dist/build-info.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkCommand } from "../../base/sk-command.js";
|
|
2
|
-
import { RevalidateFactory, RevalidateStartBuildContext, } from "../../services/revalidate/index.js";
|
|
2
|
+
import { jobFailure, jobNotice, RevalidateFactory, RevalidateStartBuildContext, } from "../../services/revalidate/index.js";
|
|
3
3
|
export default class RevalidateStart extends SkCommand {
|
|
4
4
|
static description = "Start a scheduled revalidation job now instead of after its wait.";
|
|
5
5
|
static buildContext = RevalidateStartBuildContext;
|
|
@@ -16,10 +16,13 @@ export default class RevalidateStart extends SkCommand {
|
|
|
16
16
|
this.log(`started ${args.revId}`);
|
|
17
17
|
if (!flags["wait"])
|
|
18
18
|
return;
|
|
19
|
-
// A detected deployment that follows replaces the job, so CANCELLED is a normal end.
|
|
20
19
|
const job = await service.waitFor(args.revId);
|
|
21
20
|
this.log(`ended as ${job.state}, refreshed ${job.refreshedCount ?? 0}`);
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const notice = jobNotice(job);
|
|
22
|
+
if (notice)
|
|
23
|
+
this.warn(notice);
|
|
24
|
+
const failure = jobFailure(job);
|
|
25
|
+
if (failure)
|
|
26
|
+
this.error(failure);
|
|
24
27
|
}
|
|
25
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkCommand } from "../base/sk-command.js";
|
|
2
|
-
import { CONFIRMATION_THRESHOLD, DROPPING_TYPES, RevalidateServiceBuildContext, RevalidateFactory, } from "../services/revalidate/index.js";
|
|
2
|
+
import { CONFIRMATION_THRESHOLD, DROPPING_TYPES, jobFailure, jobNotice, RevalidateServiceBuildContext, RevalidateFactory, } from "../services/revalidate/index.js";
|
|
3
3
|
const SAMPLE_SIZE = 10;
|
|
4
4
|
export default class Revalidate extends SkCommand {
|
|
5
5
|
static description = "Purge or refresh cached assets by prefix and query. Run it after a config that narrows scope goes live, so returning visitors stop receiving the cached HTML.";
|
|
@@ -70,9 +70,12 @@ export default class Revalidate extends SkCommand {
|
|
|
70
70
|
}
|
|
71
71
|
const status = await service.waitFor(statusId);
|
|
72
72
|
this.log(`assets ${status.assetCount ?? 0}, refreshed ${status.refreshedCount ?? 0}, changed ${status.changedCount ?? 0}`);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
const notice = jobNotice(status);
|
|
74
|
+
if (notice)
|
|
75
|
+
this.warn(`job ${statusId}: ${notice}`);
|
|
76
|
+
const failure = jobFailure(status);
|
|
77
|
+
if (failure)
|
|
78
|
+
this.error(`job ${statusId}: ${failure}`);
|
|
76
79
|
}
|
|
77
80
|
/** A malformed query would otherwise reach the backend as an opaque 400. */
|
|
78
81
|
parseQuery(raw) {
|
|
@@ -175,6 +175,14 @@ aside.loader:not(.stop)::after {
|
|
|
175
175
|
}
|
|
176
176
|
</script>
|
|
177
177
|
<script type="application/javascript">
|
|
178
|
+
// The registrations the install script starts, so the page can wait for the worker they install.
|
|
179
|
+
const registrations = [];
|
|
180
|
+
const register = navigator.serviceWorker.register;
|
|
181
|
+
navigator.serviceWorker.register = function () {
|
|
182
|
+
const registration = register.apply(this, arguments);
|
|
183
|
+
registrations.push(registration.catch(() => undefined));
|
|
184
|
+
return registration;
|
|
185
|
+
};
|
|
178
186
|
const installScript = document.createElement('script');
|
|
179
187
|
installScript.addEventListener('load',()=>{
|
|
180
188
|
const step1 = document.querySelector('[data-step="1"]')
|
|
@@ -209,6 +217,9 @@ aside.loader:not(.stop)::after {
|
|
|
209
217
|
|
|
210
218
|
|
|
211
219
|
await retry(async () => registration.active);
|
|
220
|
+
// Leave through the newest worker. Chrome retires the one it replaces mid-response, and that navigation never commits.
|
|
221
|
+
await Promise.all(registrations);
|
|
222
|
+
await retry(async () => !registration.installing && !registration.waiting).catch(() => undefined);
|
|
212
223
|
|
|
213
224
|
// Ping Service Worker to check whether the application is 'running'
|
|
214
225
|
await pingServiceWorker(registration, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { describe, it } from "mocha";
|
|
3
|
+
import { runInNewContext } from "node:vm";
|
|
4
|
+
import { InstallSpeedKitHtmlTemplate } from "../install-speed-kit-html-template.js";
|
|
5
|
+
/** The install page's scripts, run against a fake page whose install script registers `register`. */
|
|
6
|
+
function installPage(register) {
|
|
7
|
+
const html = new InstallSpeedKitHtmlTemplate().render({
|
|
8
|
+
installPath: "https://fixture.app.baqend.com/v1/speedkit/install.js",
|
|
9
|
+
domain: "https://www.fixture.com",
|
|
10
|
+
swPath: "/sw.js",
|
|
11
|
+
});
|
|
12
|
+
const scripts = [...html.matchAll(/<script[^>]*>([\s\S]*?)<\/script>/g)]
|
|
13
|
+
.map(([, code]) => code)
|
|
14
|
+
.join("\n");
|
|
15
|
+
const registration = {
|
|
16
|
+
active: { postMessage: (_, [port]) => port.reply() },
|
|
17
|
+
};
|
|
18
|
+
const element = () => ({
|
|
19
|
+
classList: { add: () => undefined, remove: () => undefined },
|
|
20
|
+
innerText: "0",
|
|
21
|
+
textContent: "",
|
|
22
|
+
});
|
|
23
|
+
let onLoad = () => undefined;
|
|
24
|
+
const timers = [];
|
|
25
|
+
const page = {
|
|
26
|
+
href: "https://www.fixture.com/speed-kit-install.html?url=%2Fshop",
|
|
27
|
+
left: undefined,
|
|
28
|
+
registration,
|
|
29
|
+
load: () => onLoad(),
|
|
30
|
+
/** Lets `seconds` of the page's one-second retries pass. */
|
|
31
|
+
wait: async (seconds) => {
|
|
32
|
+
for (let second = 0; second <= seconds; second++) {
|
|
33
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
34
|
+
for (const timer of timers.splice(0))
|
|
35
|
+
timer();
|
|
36
|
+
}
|
|
37
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const context = {
|
|
41
|
+
location: {
|
|
42
|
+
get href() {
|
|
43
|
+
return page.href;
|
|
44
|
+
},
|
|
45
|
+
set href(value) {
|
|
46
|
+
page.left = value;
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
URL,
|
|
50
|
+
setTimeout: (callback) => timers.push(callback),
|
|
51
|
+
addEventListener: () => undefined,
|
|
52
|
+
MessageChannel,
|
|
53
|
+
SpeedKit: { preload: () => undefined },
|
|
54
|
+
navigator: {
|
|
55
|
+
serviceWorker: {
|
|
56
|
+
register,
|
|
57
|
+
getRegistration: async () => registration,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
document: {
|
|
61
|
+
readyState: "complete",
|
|
62
|
+
addEventListener: () => undefined,
|
|
63
|
+
querySelector: (selector) => selector === "head"
|
|
64
|
+
? { appendChild: () => undefined }
|
|
65
|
+
: (page[selector] ??
|
|
66
|
+
(page[selector] =
|
|
67
|
+
element())),
|
|
68
|
+
createElement: () => ({
|
|
69
|
+
addEventListener: (type, listener) => {
|
|
70
|
+
if (type === "load")
|
|
71
|
+
onLoad = listener;
|
|
72
|
+
},
|
|
73
|
+
setAttribute: () => undefined,
|
|
74
|
+
}),
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
runInNewContext(scripts, context);
|
|
78
|
+
return { page, serviceWorker: context.navigator.serviceWorker };
|
|
79
|
+
}
|
|
80
|
+
/** A MessageChannel whose second port answers like a running Speed Kit worker. */
|
|
81
|
+
class MessageChannel {
|
|
82
|
+
port1 = {};
|
|
83
|
+
port2 = {
|
|
84
|
+
reply: () => this.port1.onmessage?.({ data: { applicationState: "ok" } }),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
describe("InstallSpeedKitHtmlTemplate", () => {
|
|
88
|
+
it("leaves only once the worker the install script registered is active", async () => {
|
|
89
|
+
const { page, serviceWorker } = installPage(async () => {
|
|
90
|
+
page.registration.waiting = { state: "installed" };
|
|
91
|
+
return page.registration;
|
|
92
|
+
});
|
|
93
|
+
// The install script registers while it runs, before its load event.
|
|
94
|
+
void serviceWorker.register();
|
|
95
|
+
page.load();
|
|
96
|
+
await page.wait(3);
|
|
97
|
+
expect(page.left).to.equal(undefined);
|
|
98
|
+
page.registration.waiting = undefined;
|
|
99
|
+
await page.wait(1);
|
|
100
|
+
expect(page.left).to.equal("/shop");
|
|
101
|
+
});
|
|
102
|
+
it("leaves after its retries when the new worker never activates", async () => {
|
|
103
|
+
const { page, serviceWorker } = installPage(async () => {
|
|
104
|
+
page.registration.installing = { state: "installing" };
|
|
105
|
+
return page.registration;
|
|
106
|
+
});
|
|
107
|
+
void serviceWorker.register();
|
|
108
|
+
page.load();
|
|
109
|
+
await page.wait(12);
|
|
110
|
+
expect(page.left).to.equal("/shop");
|
|
111
|
+
});
|
|
112
|
+
it("leaves at once when the registration installs no new worker", async () => {
|
|
113
|
+
const { page, serviceWorker } = installPage(async () => page.registration);
|
|
114
|
+
void serviceWorker.register();
|
|
115
|
+
page.load();
|
|
116
|
+
await page.wait(0);
|
|
117
|
+
expect(page.left).to.equal("/shop");
|
|
118
|
+
});
|
|
119
|
+
});
|
|
@@ -33,8 +33,27 @@ export interface RevalidateJobStatusInterface {
|
|
|
33
33
|
assetCount?: number;
|
|
34
34
|
refreshedCount?: number;
|
|
35
35
|
changedCount?: number;
|
|
36
|
-
error?:
|
|
36
|
+
error?: RevalidateJobErrorInterface | null;
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Why a job failed, as the server's RestException sends it. With server debug on
|
|
40
|
+
* the object also carries `className`, the Java `stackTrace` and a nested `cause`,
|
|
41
|
+
* so print it with `describeJobError`, never as a whole.
|
|
42
|
+
*/
|
|
43
|
+
export interface RevalidateJobErrorInterface {
|
|
44
|
+
message?: string;
|
|
45
|
+
reason?: string;
|
|
46
|
+
status?: number;
|
|
47
|
+
}
|
|
48
|
+
/** Renders a job's `error` as `reason (status): message`, or undefined when it names no cause. */
|
|
49
|
+
export declare function describeJobError(error: RevalidateJobErrorInterface | null | undefined): string | undefined;
|
|
50
|
+
/** Why a finished job counts as failed, or undefined when it did not fail. Only ERROR fails. */
|
|
51
|
+
export declare function jobFailure(job: RevalidateJobStatusInterface): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* What to tell the user about a job that ended without finishing but did not
|
|
54
|
+
* fail. CANCELLED is a normal end — worth saying, not worth a failing exit.
|
|
55
|
+
*/
|
|
56
|
+
export declare function jobNotice(job: RevalidateJobStatusInterface): string | undefined;
|
|
38
57
|
export declare const JOB_STATES: readonly ["CREATED", "SCHEDULED", "DEFERRED", "RUNNING", "FINISHED", "ERROR", "CANCELLED"];
|
|
39
58
|
export type JobState = (typeof JOB_STATES)[number];
|
|
40
59
|
/** The states of a job that has not ended yet. */
|
|
@@ -24,6 +24,36 @@ export const DROPPING_TYPES = new Set([
|
|
|
24
24
|
"PURGE",
|
|
25
25
|
"DEPLOYMENT",
|
|
26
26
|
]);
|
|
27
|
+
/** Renders a job's `error` as `reason (status): message`, or undefined when it names no cause. */
|
|
28
|
+
export function describeJobError(error) {
|
|
29
|
+
if (!error)
|
|
30
|
+
return undefined;
|
|
31
|
+
const { message, reason, status } = error;
|
|
32
|
+
const head = [reason, status === undefined ? undefined : `(${status})`]
|
|
33
|
+
.filter(Boolean)
|
|
34
|
+
.join(" ");
|
|
35
|
+
if (head && message)
|
|
36
|
+
return `${head}: ${message}`;
|
|
37
|
+
return head || message || undefined;
|
|
38
|
+
}
|
|
39
|
+
/** Why a finished job counts as failed, or undefined when it did not fail. Only ERROR fails. */
|
|
40
|
+
export function jobFailure(job) {
|
|
41
|
+
if (job.state !== "ERROR")
|
|
42
|
+
return undefined;
|
|
43
|
+
const cause = describeJobError(job.error);
|
|
44
|
+
return cause
|
|
45
|
+
? `the job failed: ${cause}`
|
|
46
|
+
: "the job failed (no cause reported)";
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* What to tell the user about a job that ended without finishing but did not
|
|
50
|
+
* fail. CANCELLED is a normal end — worth saying, not worth a failing exit.
|
|
51
|
+
*/
|
|
52
|
+
export function jobNotice(job) {
|
|
53
|
+
if (job.state !== "CANCELLED")
|
|
54
|
+
return undefined;
|
|
55
|
+
return "the job was cancelled before it finished: another job took over its scope, or it was cancelled through the API";
|
|
56
|
+
}
|
|
27
57
|
export const JOB_STATES = [
|
|
28
58
|
"CREATED",
|
|
29
59
|
"SCHEDULED",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
2
|
import { afterEach, describe, it } from "mocha";
|
|
3
3
|
import nock from "nock";
|
|
4
|
+
import { describeJobError, jobFailure, jobNotice, } from "../revalidate-model.js";
|
|
4
5
|
import { RevalidateService } from "../revalidate-service.js";
|
|
5
6
|
const HOST = "https://example-shop.app.baqend.com";
|
|
6
7
|
function service(written = []) {
|
|
@@ -94,6 +95,67 @@ describe("RevalidateService jobs", () => {
|
|
|
94
95
|
"0 deployment job(s) block the HTML",
|
|
95
96
|
]);
|
|
96
97
|
}).timeout(10000);
|
|
98
|
+
describe("describeJobError", () => {
|
|
99
|
+
it("prints reason, status and message", () => {
|
|
100
|
+
expect(describeJobError({
|
|
101
|
+
message: "render failed",
|
|
102
|
+
reason: "Internal Server Error",
|
|
103
|
+
status: 500,
|
|
104
|
+
})).to.equal("Internal Server Error (500): render failed");
|
|
105
|
+
});
|
|
106
|
+
it("leaves out the server's debug fields", () => {
|
|
107
|
+
const debug = {
|
|
108
|
+
message: "render failed",
|
|
109
|
+
reason: "Internal Server Error",
|
|
110
|
+
status: 500,
|
|
111
|
+
className: "info.orestes.common.error.RestException",
|
|
112
|
+
stackTrace: ["at info.orestes.Foo.bar(Foo.java:1)"],
|
|
113
|
+
cause: { message: "nested" },
|
|
114
|
+
};
|
|
115
|
+
expect(describeJobError(debug)).to.equal("Internal Server Error (500): render failed");
|
|
116
|
+
});
|
|
117
|
+
it("prints whichever parts the error has", () => {
|
|
118
|
+
expect(describeJobError({ message: "render failed" })).to.equal("render failed");
|
|
119
|
+
expect(describeJobError({ reason: "Bad Request", status: 400 })).to.equal("Bad Request (400)");
|
|
120
|
+
});
|
|
121
|
+
it("names no cause when the job reports none", () => {
|
|
122
|
+
expect(describeJobError(null)).to.equal(undefined);
|
|
123
|
+
expect(describeJobError(undefined)).to.equal(undefined);
|
|
124
|
+
expect(describeJobError({})).to.equal(undefined);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
describe("jobFailure", () => {
|
|
128
|
+
it("names the cause of a failed job, not [object Object]", () => {
|
|
129
|
+
const failure = jobFailure({
|
|
130
|
+
state: "ERROR",
|
|
131
|
+
error: {
|
|
132
|
+
message: "render failed",
|
|
133
|
+
reason: "Internal Server Error",
|
|
134
|
+
status: 500,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
expect(failure).to.equal("the job failed: Internal Server Error (500): render failed");
|
|
138
|
+
});
|
|
139
|
+
it("still fails a job that ended in ERROR without a cause", () => {
|
|
140
|
+
expect(jobFailure({ state: "ERROR" })).to.equal("the job failed (no cause reported)");
|
|
141
|
+
expect(jobFailure({ state: "ERROR", error: null })).to.equal("the job failed (no cause reported)");
|
|
142
|
+
});
|
|
143
|
+
it("does not fail a finished or a cancelled job", () => {
|
|
144
|
+
expect(jobFailure({ state: "FINISHED" })).to.equal(undefined);
|
|
145
|
+
expect(jobFailure({ state: "CANCELLED" })).to.equal(undefined);
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
describe("jobNotice", () => {
|
|
149
|
+
it("names both ways a job gets cancelled", () => {
|
|
150
|
+
const notice = jobNotice({ state: "CANCELLED" });
|
|
151
|
+
expect(notice).to.contain("another job took over its scope");
|
|
152
|
+
expect(notice).to.contain("cancelled through the API");
|
|
153
|
+
});
|
|
154
|
+
it("has nothing to say about a finished or a failed job", () => {
|
|
155
|
+
expect(jobNotice({ state: "FINISHED" })).to.equal(undefined);
|
|
156
|
+
expect(jobNotice({ state: "ERROR" })).to.equal(undefined);
|
|
157
|
+
});
|
|
158
|
+
});
|
|
97
159
|
describe("settleDeployments", () => {
|
|
98
160
|
it("starts only the scheduled deployment jobs, until none blocks the HTML", async () => {
|
|
99
161
|
const started = [];
|
package/oclif.manifest.json
CHANGED
|
@@ -1411,26 +1411,57 @@
|
|
|
1411
1411
|
"fish.js"
|
|
1412
1412
|
]
|
|
1413
1413
|
},
|
|
1414
|
-
"
|
|
1414
|
+
"config:edit": {
|
|
1415
1415
|
"aliases": [],
|
|
1416
1416
|
"args": {},
|
|
1417
|
-
"description": "
|
|
1417
|
+
"description": "Edit cli config",
|
|
1418
1418
|
"examples": [
|
|
1419
|
-
"$ sk
|
|
1420
|
-
|
|
1419
|
+
"$ sk config edit"
|
|
1420
|
+
],
|
|
1421
|
+
"flags": {},
|
|
1422
|
+
"hasDynamicHelp": false,
|
|
1423
|
+
"hiddenAliases": [],
|
|
1424
|
+
"id": "config:edit",
|
|
1425
|
+
"pluginAlias": "@speedkit/cli",
|
|
1426
|
+
"pluginName": "@speedkit/cli",
|
|
1427
|
+
"pluginType": "core",
|
|
1428
|
+
"strict": true,
|
|
1429
|
+
"enableJsonFlag": false,
|
|
1430
|
+
"isESM": true,
|
|
1431
|
+
"relativePath": [
|
|
1432
|
+
"dist",
|
|
1433
|
+
"commands",
|
|
1434
|
+
"config",
|
|
1435
|
+
"edit.js"
|
|
1436
|
+
]
|
|
1437
|
+
},
|
|
1438
|
+
"config:setup": {
|
|
1439
|
+
"aliases": [],
|
|
1440
|
+
"args": {},
|
|
1441
|
+
"description": "Run the Speed Kit CLI setup wizard (choose browser and diff tool)",
|
|
1442
|
+
"examples": [
|
|
1443
|
+
"$ sk config setup",
|
|
1444
|
+
"$ sk config setup --force"
|
|
1421
1445
|
],
|
|
1422
1446
|
"flags": {
|
|
1423
|
-
"
|
|
1424
|
-
"char": "
|
|
1425
|
-
"description": "
|
|
1426
|
-
"name": "
|
|
1447
|
+
"force": {
|
|
1448
|
+
"char": "f",
|
|
1449
|
+
"description": "Re-run even if setup was already completed",
|
|
1450
|
+
"name": "force",
|
|
1451
|
+
"allowNo": false,
|
|
1452
|
+
"type": "boolean"
|
|
1453
|
+
},
|
|
1454
|
+
"postInstall": {
|
|
1455
|
+
"description": "Internal flag used by the npm postinstall hook",
|
|
1456
|
+
"hidden": true,
|
|
1457
|
+
"name": "postInstall",
|
|
1427
1458
|
"allowNo": false,
|
|
1428
1459
|
"type": "boolean"
|
|
1429
1460
|
}
|
|
1430
1461
|
},
|
|
1431
1462
|
"hasDynamicHelp": false,
|
|
1432
1463
|
"hiddenAliases": [],
|
|
1433
|
-
"id": "
|
|
1464
|
+
"id": "config:setup",
|
|
1434
1465
|
"pluginAlias": "@speedkit/cli",
|
|
1435
1466
|
"pluginName": "@speedkit/cli",
|
|
1436
1467
|
"pluginType": "core",
|
|
@@ -1440,21 +1471,85 @@
|
|
|
1440
1471
|
"relativePath": [
|
|
1441
1472
|
"dist",
|
|
1442
1473
|
"commands",
|
|
1443
|
-
"
|
|
1444
|
-
"
|
|
1474
|
+
"config",
|
|
1475
|
+
"setup.js"
|
|
1445
1476
|
]
|
|
1446
1477
|
},
|
|
1447
|
-
"
|
|
1478
|
+
"extension:add": {
|
|
1479
|
+
"aliases": [],
|
|
1480
|
+
"args": {
|
|
1481
|
+
"ref": {
|
|
1482
|
+
"description": "Chrome Web Store link or extension id",
|
|
1483
|
+
"name": "ref",
|
|
1484
|
+
"required": false
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"description": "Install a Chrome extension into the onboarding browser by Web Store link or id",
|
|
1488
|
+
"examples": [
|
|
1489
|
+
"$ sk extension add fmkadmapgofadopljbjfkapdkoienihi",
|
|
1490
|
+
"$ sk extension add https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi",
|
|
1491
|
+
"$ sk extension add"
|
|
1492
|
+
],
|
|
1493
|
+
"flags": {},
|
|
1494
|
+
"hasDynamicHelp": false,
|
|
1495
|
+
"hiddenAliases": [],
|
|
1496
|
+
"id": "extension:add",
|
|
1497
|
+
"pluginAlias": "@speedkit/cli",
|
|
1498
|
+
"pluginName": "@speedkit/cli",
|
|
1499
|
+
"pluginType": "core",
|
|
1500
|
+
"strict": true,
|
|
1501
|
+
"enableJsonFlag": false,
|
|
1502
|
+
"isESM": true,
|
|
1503
|
+
"relativePath": [
|
|
1504
|
+
"dist",
|
|
1505
|
+
"commands",
|
|
1506
|
+
"extension",
|
|
1507
|
+
"add.js"
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1510
|
+
"extension:devtools": {
|
|
1448
1511
|
"aliases": [],
|
|
1449
1512
|
"args": {},
|
|
1450
|
-
"description": "
|
|
1513
|
+
"description": "Install the integration-devtools extension for the onboarding browser, or update it to the latest release",
|
|
1451
1514
|
"examples": [
|
|
1452
|
-
"$ sk
|
|
1515
|
+
"$ sk extension devtools",
|
|
1516
|
+
"$ sk extension devtools --force"
|
|
1517
|
+
],
|
|
1518
|
+
"flags": {
|
|
1519
|
+
"force": {
|
|
1520
|
+
"description": "reinstall the latest release even when it is up to date",
|
|
1521
|
+
"name": "force",
|
|
1522
|
+
"allowNo": false,
|
|
1523
|
+
"type": "boolean"
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
"hasDynamicHelp": false,
|
|
1527
|
+
"hiddenAliases": [],
|
|
1528
|
+
"id": "extension:devtools",
|
|
1529
|
+
"pluginAlias": "@speedkit/cli",
|
|
1530
|
+
"pluginName": "@speedkit/cli",
|
|
1531
|
+
"pluginType": "core",
|
|
1532
|
+
"strict": true,
|
|
1533
|
+
"enableJsonFlag": false,
|
|
1534
|
+
"isESM": true,
|
|
1535
|
+
"relativePath": [
|
|
1536
|
+
"dist",
|
|
1537
|
+
"commands",
|
|
1538
|
+
"extension",
|
|
1539
|
+
"devtools.js"
|
|
1540
|
+
]
|
|
1541
|
+
},
|
|
1542
|
+
"extension:list": {
|
|
1543
|
+
"aliases": [],
|
|
1544
|
+
"args": {},
|
|
1545
|
+
"description": "List Chrome extensions managed by the setup wizard",
|
|
1546
|
+
"examples": [
|
|
1547
|
+
"$ sk extension list"
|
|
1453
1548
|
],
|
|
1454
1549
|
"flags": {},
|
|
1455
1550
|
"hasDynamicHelp": false,
|
|
1456
1551
|
"hiddenAliases": [],
|
|
1457
|
-
"id": "
|
|
1552
|
+
"id": "extension:list",
|
|
1458
1553
|
"pluginAlias": "@speedkit/cli",
|
|
1459
1554
|
"pluginName": "@speedkit/cli",
|
|
1460
1555
|
"pluginType": "core",
|
|
@@ -1464,21 +1559,28 @@
|
|
|
1464
1559
|
"relativePath": [
|
|
1465
1560
|
"dist",
|
|
1466
1561
|
"commands",
|
|
1467
|
-
"
|
|
1562
|
+
"extension",
|
|
1468
1563
|
"list.js"
|
|
1469
1564
|
]
|
|
1470
1565
|
},
|
|
1471
|
-
"
|
|
1566
|
+
"extension:remove": {
|
|
1472
1567
|
"aliases": [],
|
|
1473
|
-
"args": {
|
|
1474
|
-
|
|
1568
|
+
"args": {
|
|
1569
|
+
"ref": {
|
|
1570
|
+
"description": "Chrome Web Store link or extension id",
|
|
1571
|
+
"name": "ref",
|
|
1572
|
+
"required": false
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
"description": "Remove a managed Chrome extension",
|
|
1475
1576
|
"examples": [
|
|
1476
|
-
"$ sk
|
|
1577
|
+
"$ sk extension remove",
|
|
1578
|
+
"$ sk extension remove <id>"
|
|
1477
1579
|
],
|
|
1478
1580
|
"flags": {},
|
|
1479
1581
|
"hasDynamicHelp": false,
|
|
1480
1582
|
"hiddenAliases": [],
|
|
1481
|
-
"id": "
|
|
1583
|
+
"id": "extension:remove",
|
|
1482
1584
|
"pluginAlias": "@speedkit/cli",
|
|
1483
1585
|
"pluginName": "@speedkit/cli",
|
|
1484
1586
|
"pluginType": "core",
|
|
@@ -1488,21 +1590,21 @@
|
|
|
1488
1590
|
"relativePath": [
|
|
1489
1591
|
"dist",
|
|
1490
1592
|
"commands",
|
|
1491
|
-
"
|
|
1492
|
-
"
|
|
1593
|
+
"extension",
|
|
1594
|
+
"remove.js"
|
|
1493
1595
|
]
|
|
1494
1596
|
},
|
|
1495
|
-
"
|
|
1597
|
+
"extension:update": {
|
|
1496
1598
|
"aliases": [],
|
|
1497
1599
|
"args": {},
|
|
1498
|
-
"description": "
|
|
1600
|
+
"description": "Check managed Chrome extensions for updates and install them",
|
|
1499
1601
|
"examples": [
|
|
1500
|
-
"$ sk
|
|
1602
|
+
"$ sk extension update"
|
|
1501
1603
|
],
|
|
1502
1604
|
"flags": {},
|
|
1503
1605
|
"hasDynamicHelp": false,
|
|
1504
1606
|
"hiddenAliases": [],
|
|
1505
|
-
"id": "
|
|
1607
|
+
"id": "extension:update",
|
|
1506
1608
|
"pluginAlias": "@speedkit/cli",
|
|
1507
1609
|
"pluginName": "@speedkit/cli",
|
|
1508
1610
|
"pluginType": "core",
|
|
@@ -1512,37 +1614,30 @@
|
|
|
1512
1614
|
"relativePath": [
|
|
1513
1615
|
"dist",
|
|
1514
1616
|
"commands",
|
|
1515
|
-
"
|
|
1516
|
-
"
|
|
1617
|
+
"extension",
|
|
1618
|
+
"update.js"
|
|
1517
1619
|
]
|
|
1518
1620
|
},
|
|
1519
|
-
"
|
|
1621
|
+
"browser:clean": {
|
|
1520
1622
|
"aliases": [],
|
|
1521
1623
|
"args": {},
|
|
1522
|
-
"description": "
|
|
1624
|
+
"description": "Remove puppeteer-managed browser builds from the cache",
|
|
1523
1625
|
"examples": [
|
|
1524
|
-
"$ sk
|
|
1525
|
-
"$ sk
|
|
1626
|
+
"$ sk browser clean",
|
|
1627
|
+
"$ sk browser clean --all"
|
|
1526
1628
|
],
|
|
1527
1629
|
"flags": {
|
|
1528
|
-
"
|
|
1529
|
-
"char": "
|
|
1530
|
-
"description": "
|
|
1531
|
-
"name": "
|
|
1532
|
-
"allowNo": false,
|
|
1533
|
-
"type": "boolean"
|
|
1534
|
-
},
|
|
1535
|
-
"postInstall": {
|
|
1536
|
-
"description": "Internal flag used by the npm postinstall hook",
|
|
1537
|
-
"hidden": true,
|
|
1538
|
-
"name": "postInstall",
|
|
1630
|
+
"all": {
|
|
1631
|
+
"char": "a",
|
|
1632
|
+
"description": "Remove all cached browser builds without prompting",
|
|
1633
|
+
"name": "all",
|
|
1539
1634
|
"allowNo": false,
|
|
1540
1635
|
"type": "boolean"
|
|
1541
1636
|
}
|
|
1542
1637
|
},
|
|
1543
1638
|
"hasDynamicHelp": false,
|
|
1544
1639
|
"hiddenAliases": [],
|
|
1545
|
-
"id": "
|
|
1640
|
+
"id": "browser:clean",
|
|
1546
1641
|
"pluginAlias": "@speedkit/cli",
|
|
1547
1642
|
"pluginName": "@speedkit/cli",
|
|
1548
1643
|
"pluginType": "core",
|
|
@@ -1552,8 +1647,56 @@
|
|
|
1552
1647
|
"relativePath": [
|
|
1553
1648
|
"dist",
|
|
1554
1649
|
"commands",
|
|
1555
|
-
"
|
|
1556
|
-
"
|
|
1650
|
+
"browser",
|
|
1651
|
+
"clean.js"
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1654
|
+
"browser:list": {
|
|
1655
|
+
"aliases": [],
|
|
1656
|
+
"args": {},
|
|
1657
|
+
"description": "List detected system browsers and puppeteer-managed builds",
|
|
1658
|
+
"examples": [
|
|
1659
|
+
"$ sk browser list"
|
|
1660
|
+
],
|
|
1661
|
+
"flags": {},
|
|
1662
|
+
"hasDynamicHelp": false,
|
|
1663
|
+
"hiddenAliases": [],
|
|
1664
|
+
"id": "browser:list",
|
|
1665
|
+
"pluginAlias": "@speedkit/cli",
|
|
1666
|
+
"pluginName": "@speedkit/cli",
|
|
1667
|
+
"pluginType": "core",
|
|
1668
|
+
"strict": true,
|
|
1669
|
+
"enableJsonFlag": false,
|
|
1670
|
+
"isESM": true,
|
|
1671
|
+
"relativePath": [
|
|
1672
|
+
"dist",
|
|
1673
|
+
"commands",
|
|
1674
|
+
"browser",
|
|
1675
|
+
"list.js"
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1678
|
+
"browser:update": {
|
|
1679
|
+
"aliases": [],
|
|
1680
|
+
"args": {},
|
|
1681
|
+
"description": "Update the puppeteer-managed browser to the latest build of its channel",
|
|
1682
|
+
"examples": [
|
|
1683
|
+
"$ sk browser update"
|
|
1684
|
+
],
|
|
1685
|
+
"flags": {},
|
|
1686
|
+
"hasDynamicHelp": false,
|
|
1687
|
+
"hiddenAliases": [],
|
|
1688
|
+
"id": "browser:update",
|
|
1689
|
+
"pluginAlias": "@speedkit/cli",
|
|
1690
|
+
"pluginName": "@speedkit/cli",
|
|
1691
|
+
"pluginType": "core",
|
|
1692
|
+
"strict": true,
|
|
1693
|
+
"enableJsonFlag": false,
|
|
1694
|
+
"isESM": true,
|
|
1695
|
+
"relativePath": [
|
|
1696
|
+
"dist",
|
|
1697
|
+
"commands",
|
|
1698
|
+
"browser",
|
|
1699
|
+
"update.js"
|
|
1557
1700
|
]
|
|
1558
1701
|
},
|
|
1559
1702
|
"onboarding:cdp": {
|
|
@@ -2339,149 +2482,6 @@
|
|
|
2339
2482
|
"watch.js"
|
|
2340
2483
|
]
|
|
2341
2484
|
},
|
|
2342
|
-
"extension:add": {
|
|
2343
|
-
"aliases": [],
|
|
2344
|
-
"args": {
|
|
2345
|
-
"ref": {
|
|
2346
|
-
"description": "Chrome Web Store link or extension id",
|
|
2347
|
-
"name": "ref",
|
|
2348
|
-
"required": false
|
|
2349
|
-
}
|
|
2350
|
-
},
|
|
2351
|
-
"description": "Install a Chrome extension into the onboarding browser by Web Store link or id",
|
|
2352
|
-
"examples": [
|
|
2353
|
-
"$ sk extension add fmkadmapgofadopljbjfkapdkoienihi",
|
|
2354
|
-
"$ sk extension add https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi",
|
|
2355
|
-
"$ sk extension add"
|
|
2356
|
-
],
|
|
2357
|
-
"flags": {},
|
|
2358
|
-
"hasDynamicHelp": false,
|
|
2359
|
-
"hiddenAliases": [],
|
|
2360
|
-
"id": "extension:add",
|
|
2361
|
-
"pluginAlias": "@speedkit/cli",
|
|
2362
|
-
"pluginName": "@speedkit/cli",
|
|
2363
|
-
"pluginType": "core",
|
|
2364
|
-
"strict": true,
|
|
2365
|
-
"enableJsonFlag": false,
|
|
2366
|
-
"isESM": true,
|
|
2367
|
-
"relativePath": [
|
|
2368
|
-
"dist",
|
|
2369
|
-
"commands",
|
|
2370
|
-
"extension",
|
|
2371
|
-
"add.js"
|
|
2372
|
-
]
|
|
2373
|
-
},
|
|
2374
|
-
"extension:devtools": {
|
|
2375
|
-
"aliases": [],
|
|
2376
|
-
"args": {},
|
|
2377
|
-
"description": "Install the integration-devtools extension for the onboarding browser, or update it to the latest release",
|
|
2378
|
-
"examples": [
|
|
2379
|
-
"$ sk extension devtools",
|
|
2380
|
-
"$ sk extension devtools --force"
|
|
2381
|
-
],
|
|
2382
|
-
"flags": {
|
|
2383
|
-
"force": {
|
|
2384
|
-
"description": "reinstall the latest release even when it is up to date",
|
|
2385
|
-
"name": "force",
|
|
2386
|
-
"allowNo": false,
|
|
2387
|
-
"type": "boolean"
|
|
2388
|
-
}
|
|
2389
|
-
},
|
|
2390
|
-
"hasDynamicHelp": false,
|
|
2391
|
-
"hiddenAliases": [],
|
|
2392
|
-
"id": "extension:devtools",
|
|
2393
|
-
"pluginAlias": "@speedkit/cli",
|
|
2394
|
-
"pluginName": "@speedkit/cli",
|
|
2395
|
-
"pluginType": "core",
|
|
2396
|
-
"strict": true,
|
|
2397
|
-
"enableJsonFlag": false,
|
|
2398
|
-
"isESM": true,
|
|
2399
|
-
"relativePath": [
|
|
2400
|
-
"dist",
|
|
2401
|
-
"commands",
|
|
2402
|
-
"extension",
|
|
2403
|
-
"devtools.js"
|
|
2404
|
-
]
|
|
2405
|
-
},
|
|
2406
|
-
"extension:list": {
|
|
2407
|
-
"aliases": [],
|
|
2408
|
-
"args": {},
|
|
2409
|
-
"description": "List Chrome extensions managed by the setup wizard",
|
|
2410
|
-
"examples": [
|
|
2411
|
-
"$ sk extension list"
|
|
2412
|
-
],
|
|
2413
|
-
"flags": {},
|
|
2414
|
-
"hasDynamicHelp": false,
|
|
2415
|
-
"hiddenAliases": [],
|
|
2416
|
-
"id": "extension:list",
|
|
2417
|
-
"pluginAlias": "@speedkit/cli",
|
|
2418
|
-
"pluginName": "@speedkit/cli",
|
|
2419
|
-
"pluginType": "core",
|
|
2420
|
-
"strict": true,
|
|
2421
|
-
"enableJsonFlag": false,
|
|
2422
|
-
"isESM": true,
|
|
2423
|
-
"relativePath": [
|
|
2424
|
-
"dist",
|
|
2425
|
-
"commands",
|
|
2426
|
-
"extension",
|
|
2427
|
-
"list.js"
|
|
2428
|
-
]
|
|
2429
|
-
},
|
|
2430
|
-
"extension:remove": {
|
|
2431
|
-
"aliases": [],
|
|
2432
|
-
"args": {
|
|
2433
|
-
"ref": {
|
|
2434
|
-
"description": "Chrome Web Store link or extension id",
|
|
2435
|
-
"name": "ref",
|
|
2436
|
-
"required": false
|
|
2437
|
-
}
|
|
2438
|
-
},
|
|
2439
|
-
"description": "Remove a managed Chrome extension",
|
|
2440
|
-
"examples": [
|
|
2441
|
-
"$ sk extension remove",
|
|
2442
|
-
"$ sk extension remove <id>"
|
|
2443
|
-
],
|
|
2444
|
-
"flags": {},
|
|
2445
|
-
"hasDynamicHelp": false,
|
|
2446
|
-
"hiddenAliases": [],
|
|
2447
|
-
"id": "extension:remove",
|
|
2448
|
-
"pluginAlias": "@speedkit/cli",
|
|
2449
|
-
"pluginName": "@speedkit/cli",
|
|
2450
|
-
"pluginType": "core",
|
|
2451
|
-
"strict": true,
|
|
2452
|
-
"enableJsonFlag": false,
|
|
2453
|
-
"isESM": true,
|
|
2454
|
-
"relativePath": [
|
|
2455
|
-
"dist",
|
|
2456
|
-
"commands",
|
|
2457
|
-
"extension",
|
|
2458
|
-
"remove.js"
|
|
2459
|
-
]
|
|
2460
|
-
},
|
|
2461
|
-
"extension:update": {
|
|
2462
|
-
"aliases": [],
|
|
2463
|
-
"args": {},
|
|
2464
|
-
"description": "Check managed Chrome extensions for updates and install them",
|
|
2465
|
-
"examples": [
|
|
2466
|
-
"$ sk extension update"
|
|
2467
|
-
],
|
|
2468
|
-
"flags": {},
|
|
2469
|
-
"hasDynamicHelp": false,
|
|
2470
|
-
"hiddenAliases": [],
|
|
2471
|
-
"id": "extension:update",
|
|
2472
|
-
"pluginAlias": "@speedkit/cli",
|
|
2473
|
-
"pluginName": "@speedkit/cli",
|
|
2474
|
-
"pluginType": "core",
|
|
2475
|
-
"strict": true,
|
|
2476
|
-
"enableJsonFlag": false,
|
|
2477
|
-
"isESM": true,
|
|
2478
|
-
"relativePath": [
|
|
2479
|
-
"dist",
|
|
2480
|
-
"commands",
|
|
2481
|
-
"extension",
|
|
2482
|
-
"update.js"
|
|
2483
|
-
]
|
|
2484
|
-
},
|
|
2485
2485
|
"query:parameter": {
|
|
2486
2486
|
"aliases": [
|
|
2487
2487
|
"build-parameter-query"
|
|
@@ -5234,5 +5234,5 @@
|
|
|
5234
5234
|
]
|
|
5235
5235
|
}
|
|
5236
5236
|
},
|
|
5237
|
-
"version": "4.52.
|
|
5237
|
+
"version": "4.52.2"
|
|
5238
5238
|
}
|