@speedkit/cli 4.38.1 → 4.40.0
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 +21 -0
- package/README.md +10 -1
- package/dist/commands/airports_iata.json +9202 -1
- package/dist/commands/generate-customer-config.d.ts +2 -0
- package/dist/commands/generate-customer-config.js +7 -1
- package/dist/services/customer-config/customer-config-service-build-context.d.ts +8 -0
- package/dist/services/customer-config/customer-config-service-build-context.js +8 -0
- package/dist/services/customer-config/customer-config-service-factory.js +3 -1
- package/dist/services/customer-config/customer-config-service.d.ts +10 -7
- package/dist/services/customer-config/customer-config-service.js +138 -308
- package/dist/services/customer-config/index.d.ts +2 -0
- package/dist/services/customer-config/index.js +2 -0
- package/dist/services/customer-config/spec/wizard-answers.spec.d.ts +1 -0
- package/dist/services/customer-config/spec/wizard-answers.spec.js +207 -0
- package/dist/services/customer-config/wizard-answers.d.ts +48 -0
- package/dist/services/customer-config/wizard-answers.js +67 -0
- package/dist/services/customer-config/wizard-questions.d.ts +86 -0
- package/dist/services/customer-config/wizard-questions.js +400 -0
- package/dist/services/document-handler-runtime/document-handler-abort.d.ts +44 -0
- package/dist/services/document-handler-runtime/document-handler-abort.js +48 -0
- package/dist/services/document-handler-runtime/document-handler-console.d.ts +45 -0
- package/dist/services/document-handler-runtime/document-handler-console.js +81 -0
- package/dist/services/document-handler-runtime/document-handler-server.js +3 -23
- package/dist/services/document-handler-runtime/spec/document-handler-abort.spec.js +57 -1
- package/dist/services/document-handler-runtime/spec/document-handler-console.spec.d.ts +1 -0
- package/dist/services/document-handler-runtime/spec/document-handler-console.spec.js +97 -0
- package/dist/services/onboarding/error/document-handler-transform-error.d.ts +2 -0
- package/dist/services/onboarding/error/document-handler-transform-error.js +3 -0
- package/dist/services/onboarding/virtual-orestes-app/index.d.ts +3 -0
- package/dist/services/onboarding/virtual-orestes-app/index.js +27 -2
- package/dist/templates/speedKit.Revalidated.js +5 -1
- package/oclif.manifest.json +98 -83
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
2
|
import { describe, it } from "mocha";
|
|
3
|
-
import { ABORT_ERROR_CODE, ABORT_SERVER_TIMING, ABORT_STATUS_CODE, DocumentHandlerAbort, isDocumentHandlerAbort, } from "../document-handler-abort.js";
|
|
3
|
+
import { ABORT_ERROR_CODE, ABORT_SERVER_TIMING, ABORT_STATUS_CODE, DocumentHandlerAbort, isDocumentHandlerAbort, isLocalPrerendererUnreachable, LOCAL_PRERENDERER_PORT, prerenderFailure, } from "../document-handler-abort.js";
|
|
4
4
|
import { DocumentHandlerTransformError } from "../../onboarding/error/document-handler-transform-error.js";
|
|
5
5
|
/**
|
|
6
6
|
* Mirrors the service worker's `parseServerTimingHeader`, so the header this module
|
|
@@ -64,6 +64,62 @@ describe("DocumentHandlerTransformError", () => {
|
|
|
64
64
|
expect(isDocumentHandlerAbort(wrapped)).to.equal(false);
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* Builds the abort the Document Handler's `SsrService` throws when its SSR fetch fails.
|
|
69
|
+
*/
|
|
70
|
+
function ssrFetchAbort(cause) {
|
|
71
|
+
const error = new TypeError("fetch failed", { cause });
|
|
72
|
+
return new DocumentHandlerAbort(error.toString(), {
|
|
73
|
+
url: "https://www.example.com/",
|
|
74
|
+
variation: "default",
|
|
75
|
+
error,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
describe("isLocalPrerendererUnreachable", () => {
|
|
79
|
+
const refused = {
|
|
80
|
+
code: "ECONNREFUSED",
|
|
81
|
+
address: "127.0.0.1",
|
|
82
|
+
port: LOCAL_PRERENDERER_PORT,
|
|
83
|
+
};
|
|
84
|
+
it("recognises a refused connection to the local pre-renderer", () => {
|
|
85
|
+
expect(isLocalPrerendererUnreachable(ssrFetchAbort(refused))).to.equal(true);
|
|
86
|
+
});
|
|
87
|
+
it("still recognises it once the abort is wrapped on its way out of the vm", () => {
|
|
88
|
+
const wrapped = new DocumentHandlerTransformError(ssrFetchAbort(refused));
|
|
89
|
+
expect(isLocalPrerendererUnreachable(wrapped)).to.equal(true);
|
|
90
|
+
});
|
|
91
|
+
it("ignores a refused connection to another port", () => {
|
|
92
|
+
expect(isLocalPrerendererUnreachable(ssrFetchAbort({ ...refused, port: 443 }))).to.equal(false);
|
|
93
|
+
});
|
|
94
|
+
it("ignores other SSR failures and other aborts", () => {
|
|
95
|
+
expect(isLocalPrerendererUnreachable(ssrFetchAbort({ ...refused, code: "ETIMEDOUT" }))).to.equal(false);
|
|
96
|
+
expect(isLocalPrerendererUnreachable(new DocumentHandlerAbort("blacklisted"))).to.equal(false);
|
|
97
|
+
expect(isLocalPrerendererUnreachable(new Error("boom"))).to.equal(false);
|
|
98
|
+
expect(isLocalPrerendererUnreachable(undefined)).to.equal(false);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
describe("prerenderFailure", () => {
|
|
102
|
+
const failure = {
|
|
103
|
+
url: "https://www.example.com/sale/",
|
|
104
|
+
variation: "default",
|
|
105
|
+
status: 500,
|
|
106
|
+
detailMessage: "TimeoutError: Waiting for selector `.grid` failed",
|
|
107
|
+
};
|
|
108
|
+
it("reads the failure from the abort a non-200 pre-render throws", () => {
|
|
109
|
+
const abort = new DocumentHandlerAbort(failure.detailMessage, failure);
|
|
110
|
+
expect(prerenderFailure(abort)).to.deep.equal(failure);
|
|
111
|
+
});
|
|
112
|
+
it("still reads it once the abort is wrapped on its way out of the vm", () => {
|
|
113
|
+
const wrapped = new DocumentHandlerTransformError(new DocumentHandlerAbort(failure.detailMessage, failure));
|
|
114
|
+
expect(prerenderFailure(wrapped)).to.deep.equal(failure);
|
|
115
|
+
});
|
|
116
|
+
it("ignores a failed SSR fetch, other aborts and plain errors", () => {
|
|
117
|
+
expect(prerenderFailure(ssrFetchAbort({ code: "ECONNREFUSED", port: LOCAL_PRERENDERER_PORT }))).to.equal(undefined);
|
|
118
|
+
expect(prerenderFailure(new DocumentHandlerAbort("blacklisted", { url: "/a" }))).to.equal(undefined);
|
|
119
|
+
expect(prerenderFailure(new Error("boom"))).to.equal(undefined);
|
|
120
|
+
expect(prerenderFailure(undefined)).to.equal(undefined);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
67
123
|
describe("ABORT_SERVER_TIMING", () => {
|
|
68
124
|
it("sends the error code under the metric name Baqend uses", () => {
|
|
69
125
|
const metrics = parseServerTiming(ABORT_SERVER_TIMING);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
import { describe, it } from "mocha";
|
|
3
|
+
import * as vm from "node:vm";
|
|
4
|
+
import { DocumentHandlerConsole } from "../document-handler-console.js";
|
|
5
|
+
import { DocumentHandlerAbort, LOCAL_PRERENDERER_PORT, } from "../document-handler-abort.js";
|
|
6
|
+
/** A CLI that records every line it is asked to print, tagged with its level. */
|
|
7
|
+
function recordingCli() {
|
|
8
|
+
const lines = [];
|
|
9
|
+
const record = (level) => (message) => lines.push(`${level} ${message}`);
|
|
10
|
+
const cli = {
|
|
11
|
+
write: record("write"),
|
|
12
|
+
comment: record("comment"),
|
|
13
|
+
writeWarning: record("warning"),
|
|
14
|
+
writeError: record("error"),
|
|
15
|
+
};
|
|
16
|
+
return { lines, cli };
|
|
17
|
+
}
|
|
18
|
+
function refusedByPrerenderer() {
|
|
19
|
+
return new TypeError("fetch failed", {
|
|
20
|
+
cause: { code: "ECONNREFUSED", port: LOCAL_PRERENDERER_PORT },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
describe("DocumentHandlerConsole", () => {
|
|
24
|
+
it("always shows warnings and errors, prefixed", () => {
|
|
25
|
+
const { lines, cli } = recordingCli();
|
|
26
|
+
const vmConsole = new DocumentHandlerConsole(cli, "documentHandler");
|
|
27
|
+
vmConsole.warn("slow", 12);
|
|
28
|
+
vmConsole.error("broken");
|
|
29
|
+
expect(lines).to.deep.equal([
|
|
30
|
+
"warning [documentHandler]: slow 12",
|
|
31
|
+
"error [documentHandler]: broken",
|
|
32
|
+
]);
|
|
33
|
+
});
|
|
34
|
+
it("shows log, info and debug only when verbose", () => {
|
|
35
|
+
const quiet = recordingCli();
|
|
36
|
+
const quietConsole = new DocumentHandlerConsole(quiet.cli, "dh");
|
|
37
|
+
quietConsole.log("a");
|
|
38
|
+
quietConsole.info("b");
|
|
39
|
+
quietConsole.debug("c");
|
|
40
|
+
const verbose = recordingCli();
|
|
41
|
+
const verboseConsole = new DocumentHandlerConsole(verbose.cli, "dh", true);
|
|
42
|
+
verboseConsole.log("a");
|
|
43
|
+
verboseConsole.info("b");
|
|
44
|
+
verboseConsole.debug("c");
|
|
45
|
+
expect(quiet.lines).to.deep.equal([]);
|
|
46
|
+
expect(verbose.lines).to.deep.equal([
|
|
47
|
+
"write [dh]: a",
|
|
48
|
+
"write [dh]: b",
|
|
49
|
+
"comment [dh]: c",
|
|
50
|
+
]);
|
|
51
|
+
});
|
|
52
|
+
it("drops the SSR warning about a refused pre-renderer connection", () => {
|
|
53
|
+
const { lines, cli } = recordingCli();
|
|
54
|
+
const vmConsole = new DocumentHandlerConsole(cli, "dh", true);
|
|
55
|
+
vmConsole.warn("SSR errored after 0.04s of default - https://www.example.com/", refusedByPrerenderer());
|
|
56
|
+
expect(lines).to.deep.equal([]);
|
|
57
|
+
});
|
|
58
|
+
it("drops the SSR warning about a page the pre-renderer could not render", () => {
|
|
59
|
+
const { lines, cli } = recordingCli();
|
|
60
|
+
const vmConsole = new DocumentHandlerConsole(cli, "dh");
|
|
61
|
+
const detailMessage = "TimeoutError: Waiting for selector `.grid` failed";
|
|
62
|
+
vmConsole.warn("SSR errored after 8.566s of default - https://www.example.com/sale/", new DocumentHandlerAbort(detailMessage, {
|
|
63
|
+
url: "https://www.example.com/sale/",
|
|
64
|
+
variation: "default",
|
|
65
|
+
status: 500,
|
|
66
|
+
detailMessage,
|
|
67
|
+
}));
|
|
68
|
+
expect(lines).to.deep.equal([]);
|
|
69
|
+
});
|
|
70
|
+
it("keeps a refused connection to any other port", () => {
|
|
71
|
+
const { lines, cli } = recordingCli();
|
|
72
|
+
const vmConsole = new DocumentHandlerConsole(cli, "dh");
|
|
73
|
+
vmConsole.warn(new TypeError("fetch failed", {
|
|
74
|
+
cause: { code: "ECONNREFUSED", port: 443 },
|
|
75
|
+
}));
|
|
76
|
+
expect(lines).to.have.length(1);
|
|
77
|
+
expect(lines[0]).to.match(/^warning \[dh\]: TypeError: fetch failed/);
|
|
78
|
+
});
|
|
79
|
+
it("does not throw on the rest of the console API", () => {
|
|
80
|
+
const { cli } = recordingCli();
|
|
81
|
+
const vmConsole = new DocumentHandlerConsole(cli, "dh");
|
|
82
|
+
expect(() => {
|
|
83
|
+
vmConsole.time("t");
|
|
84
|
+
vmConsole.timeEnd("t");
|
|
85
|
+
vmConsole.group("g");
|
|
86
|
+
vmConsole.groupEnd();
|
|
87
|
+
vmConsole.table([{ a: 1 }]);
|
|
88
|
+
vmConsole.assert(true);
|
|
89
|
+
}).not.to.throw();
|
|
90
|
+
});
|
|
91
|
+
it("is what Document Handler code reaches as console inside the vm", () => {
|
|
92
|
+
const { lines, cli } = recordingCli();
|
|
93
|
+
const vmConsole = new DocumentHandlerConsole(cli, "documentHandler");
|
|
94
|
+
vm.runInNewContext("console.warn('from the vm')", { console: vmConsole });
|
|
95
|
+
expect(lines).to.deep.equal(["warning [documentHandler]: from the vm"]);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
@@ -5,5 +5,7 @@ export declare class DocumentHandlerTransformError extends Error {
|
|
|
5
5
|
* original prototype, so the flag has to be carried explicitly.
|
|
6
6
|
*/
|
|
7
7
|
readonly isAbort: boolean;
|
|
8
|
+
/** The abort payload, carried over so the caller can tell why the Document Handler stopped. */
|
|
9
|
+
readonly data?: unknown;
|
|
8
10
|
constructor(error: Error);
|
|
9
11
|
}
|
|
@@ -6,10 +6,13 @@ export class DocumentHandlerTransformError extends Error {
|
|
|
6
6
|
* original prototype, so the flag has to be carried explicitly.
|
|
7
7
|
*/
|
|
8
8
|
isAbort;
|
|
9
|
+
/** The abort payload, carried over so the caller can tell why the Document Handler stopped. */
|
|
10
|
+
data;
|
|
9
11
|
constructor(error) {
|
|
10
12
|
super(error.message);
|
|
11
13
|
this.stack = error.stack;
|
|
12
14
|
this.cause = error.cause;
|
|
13
15
|
this.isAbort = isDocumentHandlerAbort(error);
|
|
16
|
+
this.data = error.data;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -15,6 +15,7 @@ export declare class VirtualOrestesApp {
|
|
|
15
15
|
private developmentToolsMessages;
|
|
16
16
|
private removeContentSecurityPolicy;
|
|
17
17
|
private localCacheErrors;
|
|
18
|
+
private prerendererHintShown;
|
|
18
19
|
constructor(customerConfig: CustomerConfig, crawler: Crawler, documentHandler: DocumentHandlerServer, cache: Cache, cli: CliServiceInterface, developmentToolsMessages: DevtoolsExtensionApi, removeContentSecurityPolicy?: boolean);
|
|
19
20
|
fetchAssetResponse(event: Protocol.Fetch.RequestPausedEvent): Promise<Partial<Protocol.Fetch.FulfillRequestRequest> | AbortResponse>;
|
|
20
21
|
/**
|
|
@@ -60,6 +61,8 @@ export declare class VirtualOrestesApp {
|
|
|
60
61
|
* the page as an infrastructure failure and disconnect Speed Kit.
|
|
61
62
|
*/
|
|
62
63
|
private returnAbortResponse;
|
|
64
|
+
private reportAbort;
|
|
65
|
+
private warnPrerendererUnreachable;
|
|
63
66
|
/**
|
|
64
67
|
* Answers an origin error the way the Asset API answers it, instead of caching it.
|
|
65
68
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaqendResponse } from "../browser/baqend-response.js";
|
|
2
|
-
import { ABORT_SERVER_TIMING, ABORT_STATUS_CODE, isDocumentHandlerAbort, } from "../../document-handler-runtime/document-handler-abort.js";
|
|
2
|
+
import { ABORT_SERVER_TIMING, ABORT_STATUS_CODE, isDocumentHandlerAbort, isLocalPrerendererUnreachable, LOCAL_PRERENDERER_PORT, prerenderFailure, } from "../../document-handler-runtime/document-handler-abort.js";
|
|
3
3
|
import { isBlockedOriginStatus, ORIGIN_ERROR_STATUS_CODE, originErrorCauseName, originErrorCode, originErrorServerTiming, } from "./origin-error-cause.js";
|
|
4
4
|
import { safe } from "../../../helpers/safe.js";
|
|
5
5
|
import { META_CONTENT_TYPE_REGEX, } from "../onboarding-model.js";
|
|
@@ -34,6 +34,8 @@ export class VirtualOrestesApp {
|
|
|
34
34
|
// can surface an "error for this URL" affordance in the Causes & sources
|
|
35
35
|
// card. Cleared per-URL on the next successful transform.
|
|
36
36
|
localCacheErrors = new Map();
|
|
37
|
+
// The hint to start the pre-renderer is shown once; every later page gets one line.
|
|
38
|
+
prerendererHintShown = false;
|
|
37
39
|
constructor(customerConfig, crawler, documentHandler, cache, cli, developmentToolsMessages, removeContentSecurityPolicy = false) {
|
|
38
40
|
this.customerConfig = customerConfig;
|
|
39
41
|
this.crawler = crawler;
|
|
@@ -250,10 +252,33 @@ export class VirtualOrestesApp {
|
|
|
250
252
|
*/
|
|
251
253
|
returnAbortResponse(customResponse, customHeaders) {
|
|
252
254
|
const message = customResponse.error;
|
|
253
|
-
this.
|
|
255
|
+
this.reportAbort(message, customResponse.errorObj);
|
|
254
256
|
customHeaders.push({ name: "x-error", value: message }, { name: "server-timing", value: ABORT_SERVER_TIMING });
|
|
255
257
|
return new BaqendResponse(message, null, customHeaders, ABORT_STATUS_CODE);
|
|
256
258
|
}
|
|
259
|
+
reportAbort(message, error) {
|
|
260
|
+
if (isLocalPrerendererUnreachable(error)) {
|
|
261
|
+
this.warnPrerendererUnreachable();
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
const failure = prerenderFailure(error);
|
|
265
|
+
if (failure) {
|
|
266
|
+
this.cli.writeError(`[DocumentHandler:local]: SSR failed for ${failure.url} (${failure.variation}): ` +
|
|
267
|
+
`${failure.detailMessage ?? "no error message"}`);
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
this.cli.writeWarning(`[DocumentHandler:local]: ${message}`);
|
|
271
|
+
}
|
|
272
|
+
warnPrerendererUnreachable() {
|
|
273
|
+
const unreachable = `no pre-renderer is listening on localhost:${LOCAL_PRERENDERER_PORT}`;
|
|
274
|
+
if (this.prerendererHintShown) {
|
|
275
|
+
this.cli.writeWarning(`[DocumentHandler:local]: SSR failed, ${unreachable}`);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
this.prerendererHintShown = true;
|
|
279
|
+
this.cli.writeWarning(`[DocumentHandler:local]: SSR is configured, but ${unreachable}.\n` +
|
|
280
|
+
"Start the pre-renderer in puppeteer-lambda (`npm run run:dev`), then reload the page.");
|
|
281
|
+
}
|
|
257
282
|
/**
|
|
258
283
|
* Answers an origin error the way the Asset API answers it, instead of caching it.
|
|
259
284
|
*
|
|
@@ -5,7 +5,11 @@ const https = require("node:https");
|
|
|
5
5
|
|
|
6
6
|
const agent = new https.Agent({ rejectUnauthorized: false });
|
|
7
7
|
|
|
8
|
-
{
|
|
8
|
+
{
|
|
9
|
+
{
|
|
10
|
+
config;
|
|
11
|
+
}
|
|
12
|
+
} // eslint-disable-line
|
|
9
13
|
|
|
10
14
|
const ORIGIN_PATHS = Object.keys(ORIGIN_POPS).filter((origin) =>
|
|
11
15
|
origin.endsWith("/"),
|
package/oclif.manifest.json
CHANGED
|
@@ -451,7 +451,9 @@
|
|
|
451
451
|
"description": "Generates a customer config guided by a wizard 🧙",
|
|
452
452
|
"examples": [
|
|
453
453
|
"$ sk generate-customer-config -a <app> -d <customersDirectory>",
|
|
454
|
-
"$ sk generate-customer-config -a decathlon -d customers"
|
|
454
|
+
"$ sk generate-customer-config -a decathlon -d customers",
|
|
455
|
+
"$ sk generate-customer-config --print-questions",
|
|
456
|
+
"$ sk generate-customer-config -a decathlon --answers answers.json < /dev/null"
|
|
455
457
|
],
|
|
456
458
|
"flags": {
|
|
457
459
|
"app": {
|
|
@@ -488,6 +490,19 @@
|
|
|
488
490
|
"pre-poc"
|
|
489
491
|
],
|
|
490
492
|
"type": "option"
|
|
493
|
+
},
|
|
494
|
+
"answers": {
|
|
495
|
+
"description": "JSON file with the wizard answers. The wizard then asks nothing: a missing key takes the question's default, and a question without one stops the run",
|
|
496
|
+
"name": "answers",
|
|
497
|
+
"hasDynamicHelp": false,
|
|
498
|
+
"multiple": false,
|
|
499
|
+
"type": "option"
|
|
500
|
+
},
|
|
501
|
+
"print-questions": {
|
|
502
|
+
"description": "Print every wizard question as JSON — key, type, choices, default, condition — and exit. The keys are the keys of --answers",
|
|
503
|
+
"name": "print-questions",
|
|
504
|
+
"allowNo": false,
|
|
505
|
+
"type": "boolean"
|
|
491
506
|
}
|
|
492
507
|
},
|
|
493
508
|
"hasDynamicHelp": false,
|
|
@@ -1146,87 +1161,6 @@
|
|
|
1146
1161
|
"fish.js"
|
|
1147
1162
|
]
|
|
1148
1163
|
},
|
|
1149
|
-
"browser:clean": {
|
|
1150
|
-
"aliases": [],
|
|
1151
|
-
"args": {},
|
|
1152
|
-
"description": "Remove puppeteer-managed browser builds from the cache",
|
|
1153
|
-
"examples": [
|
|
1154
|
-
"$ sk browser clean",
|
|
1155
|
-
"$ sk browser clean --all"
|
|
1156
|
-
],
|
|
1157
|
-
"flags": {
|
|
1158
|
-
"all": {
|
|
1159
|
-
"char": "a",
|
|
1160
|
-
"description": "Remove all cached browser builds without prompting",
|
|
1161
|
-
"name": "all",
|
|
1162
|
-
"allowNo": false,
|
|
1163
|
-
"type": "boolean"
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
"hasDynamicHelp": false,
|
|
1167
|
-
"hiddenAliases": [],
|
|
1168
|
-
"id": "browser:clean",
|
|
1169
|
-
"pluginAlias": "@speedkit/cli",
|
|
1170
|
-
"pluginName": "@speedkit/cli",
|
|
1171
|
-
"pluginType": "core",
|
|
1172
|
-
"strict": true,
|
|
1173
|
-
"enableJsonFlag": false,
|
|
1174
|
-
"isESM": true,
|
|
1175
|
-
"relativePath": [
|
|
1176
|
-
"dist",
|
|
1177
|
-
"commands",
|
|
1178
|
-
"browser",
|
|
1179
|
-
"clean.js"
|
|
1180
|
-
]
|
|
1181
|
-
},
|
|
1182
|
-
"browser:list": {
|
|
1183
|
-
"aliases": [],
|
|
1184
|
-
"args": {},
|
|
1185
|
-
"description": "List detected system browsers and puppeteer-managed builds",
|
|
1186
|
-
"examples": [
|
|
1187
|
-
"$ sk browser list"
|
|
1188
|
-
],
|
|
1189
|
-
"flags": {},
|
|
1190
|
-
"hasDynamicHelp": false,
|
|
1191
|
-
"hiddenAliases": [],
|
|
1192
|
-
"id": "browser:list",
|
|
1193
|
-
"pluginAlias": "@speedkit/cli",
|
|
1194
|
-
"pluginName": "@speedkit/cli",
|
|
1195
|
-
"pluginType": "core",
|
|
1196
|
-
"strict": true,
|
|
1197
|
-
"enableJsonFlag": false,
|
|
1198
|
-
"isESM": true,
|
|
1199
|
-
"relativePath": [
|
|
1200
|
-
"dist",
|
|
1201
|
-
"commands",
|
|
1202
|
-
"browser",
|
|
1203
|
-
"list.js"
|
|
1204
|
-
]
|
|
1205
|
-
},
|
|
1206
|
-
"browser:update": {
|
|
1207
|
-
"aliases": [],
|
|
1208
|
-
"args": {},
|
|
1209
|
-
"description": "Update the puppeteer-managed browser to the latest build of its channel",
|
|
1210
|
-
"examples": [
|
|
1211
|
-
"$ sk browser update"
|
|
1212
|
-
],
|
|
1213
|
-
"flags": {},
|
|
1214
|
-
"hasDynamicHelp": false,
|
|
1215
|
-
"hiddenAliases": [],
|
|
1216
|
-
"id": "browser:update",
|
|
1217
|
-
"pluginAlias": "@speedkit/cli",
|
|
1218
|
-
"pluginName": "@speedkit/cli",
|
|
1219
|
-
"pluginType": "core",
|
|
1220
|
-
"strict": true,
|
|
1221
|
-
"enableJsonFlag": false,
|
|
1222
|
-
"isESM": true,
|
|
1223
|
-
"relativePath": [
|
|
1224
|
-
"dist",
|
|
1225
|
-
"commands",
|
|
1226
|
-
"browser",
|
|
1227
|
-
"update.js"
|
|
1228
|
-
]
|
|
1229
|
-
},
|
|
1230
1164
|
"config:edit": {
|
|
1231
1165
|
"aliases": [],
|
|
1232
1166
|
"args": {},
|
|
@@ -1744,7 +1678,88 @@
|
|
|
1744
1678
|
"query",
|
|
1745
1679
|
"prewarm.js"
|
|
1746
1680
|
]
|
|
1681
|
+
},
|
|
1682
|
+
"browser:clean": {
|
|
1683
|
+
"aliases": [],
|
|
1684
|
+
"args": {},
|
|
1685
|
+
"description": "Remove puppeteer-managed browser builds from the cache",
|
|
1686
|
+
"examples": [
|
|
1687
|
+
"$ sk browser clean",
|
|
1688
|
+
"$ sk browser clean --all"
|
|
1689
|
+
],
|
|
1690
|
+
"flags": {
|
|
1691
|
+
"all": {
|
|
1692
|
+
"char": "a",
|
|
1693
|
+
"description": "Remove all cached browser builds without prompting",
|
|
1694
|
+
"name": "all",
|
|
1695
|
+
"allowNo": false,
|
|
1696
|
+
"type": "boolean"
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
"hasDynamicHelp": false,
|
|
1700
|
+
"hiddenAliases": [],
|
|
1701
|
+
"id": "browser:clean",
|
|
1702
|
+
"pluginAlias": "@speedkit/cli",
|
|
1703
|
+
"pluginName": "@speedkit/cli",
|
|
1704
|
+
"pluginType": "core",
|
|
1705
|
+
"strict": true,
|
|
1706
|
+
"enableJsonFlag": false,
|
|
1707
|
+
"isESM": true,
|
|
1708
|
+
"relativePath": [
|
|
1709
|
+
"dist",
|
|
1710
|
+
"commands",
|
|
1711
|
+
"browser",
|
|
1712
|
+
"clean.js"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
"browser:list": {
|
|
1716
|
+
"aliases": [],
|
|
1717
|
+
"args": {},
|
|
1718
|
+
"description": "List detected system browsers and puppeteer-managed builds",
|
|
1719
|
+
"examples": [
|
|
1720
|
+
"$ sk browser list"
|
|
1721
|
+
],
|
|
1722
|
+
"flags": {},
|
|
1723
|
+
"hasDynamicHelp": false,
|
|
1724
|
+
"hiddenAliases": [],
|
|
1725
|
+
"id": "browser:list",
|
|
1726
|
+
"pluginAlias": "@speedkit/cli",
|
|
1727
|
+
"pluginName": "@speedkit/cli",
|
|
1728
|
+
"pluginType": "core",
|
|
1729
|
+
"strict": true,
|
|
1730
|
+
"enableJsonFlag": false,
|
|
1731
|
+
"isESM": true,
|
|
1732
|
+
"relativePath": [
|
|
1733
|
+
"dist",
|
|
1734
|
+
"commands",
|
|
1735
|
+
"browser",
|
|
1736
|
+
"list.js"
|
|
1737
|
+
]
|
|
1738
|
+
},
|
|
1739
|
+
"browser:update": {
|
|
1740
|
+
"aliases": [],
|
|
1741
|
+
"args": {},
|
|
1742
|
+
"description": "Update the puppeteer-managed browser to the latest build of its channel",
|
|
1743
|
+
"examples": [
|
|
1744
|
+
"$ sk browser update"
|
|
1745
|
+
],
|
|
1746
|
+
"flags": {},
|
|
1747
|
+
"hasDynamicHelp": false,
|
|
1748
|
+
"hiddenAliases": [],
|
|
1749
|
+
"id": "browser:update",
|
|
1750
|
+
"pluginAlias": "@speedkit/cli",
|
|
1751
|
+
"pluginName": "@speedkit/cli",
|
|
1752
|
+
"pluginType": "core",
|
|
1753
|
+
"strict": true,
|
|
1754
|
+
"enableJsonFlag": false,
|
|
1755
|
+
"isESM": true,
|
|
1756
|
+
"relativePath": [
|
|
1757
|
+
"dist",
|
|
1758
|
+
"commands",
|
|
1759
|
+
"browser",
|
|
1760
|
+
"update.js"
|
|
1761
|
+
]
|
|
1747
1762
|
}
|
|
1748
1763
|
},
|
|
1749
|
-
"version": "4.
|
|
1764
|
+
"version": "4.40.0"
|
|
1750
1765
|
}
|