checkly 8.11.0 → 8.12.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/dist/commands/skills/index.d.ts +4 -0
- package/dist/commands/skills/index.js +40 -5
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/rest/test-sessions.d.ts +1 -0
- package/dist/rest/test-sessions.js.map +1 -1
- package/dist/services/util.d.ts +15 -0
- package/dist/services/util.js +39 -4
- package/dist/services/util.js.map +1 -1
- package/oclif.manifest.json +411 -405
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { BaseCommand } from '../baseCommand.js';
|
|
2
2
|
export default class Skills extends BaseCommand {
|
|
3
3
|
static hidden: boolean;
|
|
4
|
+
static readOnly: boolean;
|
|
5
|
+
static destructive: boolean;
|
|
6
|
+
static idempotent: boolean;
|
|
4
7
|
static description: string;
|
|
8
|
+
static examples: string[];
|
|
5
9
|
static args: {
|
|
6
10
|
action: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
7
11
|
reference: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
@@ -6,17 +6,52 @@ import { ACTIONS, SKILL } from '../../ai-context/context.js';
|
|
|
6
6
|
import { BaseCommand } from '../baseCommand.js';
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
const REFERENCES_DIR = join(__dirname, '../../ai-context/skills-command/references');
|
|
9
|
+
function referenceShortId(actionId, referenceId) {
|
|
10
|
+
return referenceId.replace(`${actionId}-`, '');
|
|
11
|
+
}
|
|
12
|
+
function formatAvailableActionTree() {
|
|
13
|
+
return [
|
|
14
|
+
' checkly skills',
|
|
15
|
+
...ACTIONS.flatMap(action => {
|
|
16
|
+
const actionLine = ` |- ${action.id}`;
|
|
17
|
+
if (!('references' in action)) {
|
|
18
|
+
return [actionLine];
|
|
19
|
+
}
|
|
20
|
+
const references = action.references
|
|
21
|
+
.map(reference => ` | |- ${referenceShortId(action.id, reference.id)}`);
|
|
22
|
+
return [actionLine, ...references];
|
|
23
|
+
}),
|
|
24
|
+
].join('\n');
|
|
25
|
+
}
|
|
9
26
|
export default class Skills extends BaseCommand {
|
|
10
27
|
static hidden = false;
|
|
11
|
-
static
|
|
28
|
+
static readOnly = true;
|
|
29
|
+
static destructive = false;
|
|
30
|
+
static idempotent = true;
|
|
31
|
+
static description = [
|
|
32
|
+
'Show Checkly AI skills, actions and their references.',
|
|
33
|
+
'',
|
|
34
|
+
'Run `checkly skills` to print the full catalog, `checkly skills <action>` for an action guide, or `checkly skills <action> <reference>` for a specific reference.',
|
|
35
|
+
'',
|
|
36
|
+
'Available actions and references:',
|
|
37
|
+
formatAvailableActionTree(),
|
|
38
|
+
'',
|
|
39
|
+
'Use `checkly skills <action>` or `checkly skills <action> <reference>` to open the detailed guidance.',
|
|
40
|
+
].join('\n');
|
|
41
|
+
static examples = [
|
|
42
|
+
'checkly skills',
|
|
43
|
+
'checkly skills configure',
|
|
44
|
+
'checkly skills configure api-checks',
|
|
45
|
+
'checkly skills investigate alerting',
|
|
46
|
+
];
|
|
12
47
|
static args = {
|
|
13
48
|
action: Args.string({
|
|
14
49
|
required: false,
|
|
15
|
-
description: '
|
|
50
|
+
description: 'Action to open. Available actions are listed below.',
|
|
16
51
|
}),
|
|
17
52
|
reference: Args.string({
|
|
18
53
|
required: false,
|
|
19
|
-
description: '
|
|
54
|
+
description: 'Reference to open for the selected action. Available references are listed below.',
|
|
20
55
|
}),
|
|
21
56
|
};
|
|
22
57
|
async run() {
|
|
@@ -63,7 +98,7 @@ export default class Skills extends BaseCommand {
|
|
|
63
98
|
this.log(` $ checkly skills ${action.id}`);
|
|
64
99
|
if ('references' in action) {
|
|
65
100
|
const firstRef = action.references[0];
|
|
66
|
-
const refId =
|
|
101
|
+
const refId = referenceShortId(action.id, firstRef.id);
|
|
67
102
|
this.log(` $ checkly skills ${action.id} ${refId}`);
|
|
68
103
|
}
|
|
69
104
|
}
|
|
@@ -80,7 +115,7 @@ export default class Skills extends BaseCommand {
|
|
|
80
115
|
continue;
|
|
81
116
|
this.log(`References for "${action.id}":\n`);
|
|
82
117
|
const refs = action.references.map(r => ({
|
|
83
|
-
shortId:
|
|
118
|
+
shortId: referenceShortId(action.id, r.id),
|
|
84
119
|
description: r.description,
|
|
85
120
|
}));
|
|
86
121
|
const maxRefLen = Math.max(...refs.map(r => r.shortId.length));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAEzD,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,4CAA4C,CAAC,CAAA;AAEpF,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,MAAM,CAAC,MAAM,GAAG,KAAK,CAAA;IACrB,MAAM,CAAC,WAAW,GAAG,uDAAuD,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,OA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SessionMetadata = {
|
|
|
66
66
|
commitOwner?: string;
|
|
67
67
|
commitMessage?: string;
|
|
68
68
|
branchName?: string;
|
|
69
|
+
github?: GitInformation['github'];
|
|
69
70
|
};
|
|
70
71
|
export type TestSessionStatus = 'RUNNING' | 'FAILED' | 'PASSED' | 'CANCELLED';
|
|
71
72
|
export type TestSessionProvider = 'GITHUB' | 'VERCEL' | 'API' | 'TRIGGER' | 'PW_REPORTER';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-sessions.js","sourceRoot":"","sources":["../../src/rest/test-sessions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE/C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAGjE,MAAM,2BAA2B,GAAG,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"test-sessions.js","sourceRoot":"","sources":["../../src/rest/test-sessions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE/C,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAGjE,MAAM,2BAA2B,GAAG,EAAE,CAAA;AAyItC,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,YAAa,OAAsB;QACjC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAA;QAC3C,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAA;IACrC,CAAC;CACF;AAED,MAAM,YAAY;IAChB,GAAG,CAAe;IAClB,YAAa,GAAkB;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAChB,CAAC;IAED,KAAK,CAAC,GAAG,CAAE,OAA8B;QACvC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,EAAE;YAC7D,gBAAgB,EAAE,mBAAmB;SACtC,CAAC,CAAA;IACJ,CAAC;I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AAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,mBAAmB,EAAE,CAAC;oBACvC,SAAQ;gBACV,CAAC;gBACD,MAAM,GAAG,CAAA;YACX,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,CAAE,SAAiC,EAAE;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAA2B,mBAAmB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAA;IAChF,CAAC;IAED,YAAY,CAAE,EAAU;QACtB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAmB,uBAAuB,EAAE,OAAO,CAAC,CAAA;IACzE,CAAC;IAED,mBAAmB,CAAE,aAAqB,EAAE,YAAoB;QAC9D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAwB,uBAAuB,aAAa,YAAY,YAAY,QAAQ,CAAC,CAAA;IAClH,CAAC;CACF;AAED,eAAe,YAAY,CAAA"}
|
package/dist/services/util.d.ts
CHANGED
|
@@ -5,6 +5,21 @@ export interface GitInformation {
|
|
|
5
5
|
branchName?: string | null;
|
|
6
6
|
commitOwner?: string | null;
|
|
7
7
|
commitMessage?: string | null;
|
|
8
|
+
github?: GitHubActionsInformation;
|
|
9
|
+
}
|
|
10
|
+
export interface GitHubActionsInformation {
|
|
11
|
+
reporting: true;
|
|
12
|
+
repository?: string;
|
|
13
|
+
sha?: string;
|
|
14
|
+
runId?: string;
|
|
15
|
+
runAttempt?: string;
|
|
16
|
+
workflow?: string;
|
|
17
|
+
job?: string;
|
|
18
|
+
eventName?: string;
|
|
19
|
+
ref?: string;
|
|
20
|
+
headRef?: string;
|
|
21
|
+
baseRef?: string;
|
|
22
|
+
serverUrl?: string;
|
|
8
23
|
}
|
|
9
24
|
export interface CiInformation {
|
|
10
25
|
environment: string | null;
|
package/dist/services/util.js
CHANGED
|
@@ -6,6 +6,18 @@ import { parse } from 'dotenv';
|
|
|
6
6
|
import { glob } from 'glob';
|
|
7
7
|
import JSON5 from 'json5';
|
|
8
8
|
import { existsSync } from 'fs';
|
|
9
|
+
function getGitHubRepositoryUrl() {
|
|
10
|
+
const repository = process.env.CHECKLY_GITHUB_REPOSITORY;
|
|
11
|
+
if (!repository) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const serverUrl = process.env.CHECKLY_GITHUB_SERVER_URL ?? 'https://github.com';
|
|
15
|
+
return `${serverUrl.replace(/\/$/, '')}/${repository}`;
|
|
16
|
+
}
|
|
17
|
+
function isGitHubReportingEnabled() {
|
|
18
|
+
const value = (process.env.CHECKLY_GITHUB_REPORT ?? '').trim().toLowerCase();
|
|
19
|
+
return value === 'true' || value === '1';
|
|
20
|
+
}
|
|
9
21
|
export function findFilesRecursively(directory, ignoredPaths = []) {
|
|
10
22
|
if (!fsSync.statSync(directory, { throwIfNoEntry: false })?.isDirectory()) {
|
|
11
23
|
return [];
|
|
@@ -73,20 +85,43 @@ export function isFileSync(path) {
|
|
|
73
85
|
*/
|
|
74
86
|
export function getGitInformation(repoUrl) {
|
|
75
87
|
const repositoryInfo = gitRepoInfo();
|
|
76
|
-
if (!process.env.CHECKLY_REPO_SHA
|
|
88
|
+
if (!process.env.CHECKLY_REPO_SHA
|
|
89
|
+
&& !process.env.CHECKLY_TEST_REPO_SHA
|
|
90
|
+
&& !process.env.CHECKLY_GITHUB_SHA
|
|
91
|
+
&& !repositoryInfo.sha) {
|
|
77
92
|
return null;
|
|
78
93
|
}
|
|
79
94
|
// safe way to remove the email address
|
|
80
95
|
const committer = (repositoryInfo.committer?.match(/([^<]+)/) || [])[1]?.trim();
|
|
81
|
-
|
|
82
|
-
commitId: process.env.CHECKLY_REPO_SHA
|
|
83
|
-
|
|
96
|
+
const gitInformation = {
|
|
97
|
+
commitId: process.env.CHECKLY_REPO_SHA
|
|
98
|
+
?? process.env.CHECKLY_TEST_REPO_SHA
|
|
99
|
+
?? process.env.CHECKLY_GITHUB_SHA
|
|
100
|
+
?? repositoryInfo.sha,
|
|
101
|
+
repoUrl: process.env.CHECKLY_REPO_URL ?? process.env.CHECKLY_TEST_REPO_URL ?? repoUrl ?? getGitHubRepositoryUrl(),
|
|
84
102
|
branchName: process.env.CHECKLY_REPO_BRANCH ?? process.env.CHECKLY_TEST_REPO_BRANCH ?? repositoryInfo.branch,
|
|
85
103
|
commitOwner: process.env.CHECKLY_REPO_COMMIT_OWNER ?? process.env.CHECKLY_TEST_REPO_COMMIT_OWNER ?? committer,
|
|
86
104
|
commitMessage: process.env.CHECKLY_REPO_COMMIT_MESSAGE
|
|
87
105
|
?? process.env.CHECKLY_TEST_REPO_COMMIT_MESSAGE
|
|
88
106
|
?? repositoryInfo.commitMessage,
|
|
89
107
|
};
|
|
108
|
+
if (isGitHubReportingEnabled()) {
|
|
109
|
+
gitInformation.github = {
|
|
110
|
+
reporting: true,
|
|
111
|
+
repository: process.env.CHECKLY_GITHUB_REPOSITORY,
|
|
112
|
+
sha: process.env.CHECKLY_GITHUB_SHA,
|
|
113
|
+
runId: process.env.CHECKLY_GITHUB_RUN_ID,
|
|
114
|
+
runAttempt: process.env.CHECKLY_GITHUB_RUN_ATTEMPT,
|
|
115
|
+
workflow: process.env.CHECKLY_GITHUB_WORKFLOW,
|
|
116
|
+
job: process.env.CHECKLY_GITHUB_JOB,
|
|
117
|
+
eventName: process.env.CHECKLY_GITHUB_EVENT_NAME,
|
|
118
|
+
ref: process.env.CHECKLY_GITHUB_REF,
|
|
119
|
+
headRef: process.env.CHECKLY_GITHUB_HEAD_REF,
|
|
120
|
+
baseRef: process.env.CHECKLY_GITHUB_BASE_REF,
|
|
121
|
+
serverUrl: process.env.CHECKLY_GITHUB_SERVER_URL,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
return gitInformation;
|
|
90
125
|
}
|
|
91
126
|
export function getCiInformation() {
|
|
92
127
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/services/util.ts"],"names":[],"mappings":"AA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,CAAC,4BAA4B,CAAA;IAEvI,MAAM,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAA;AACtE,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,oBAA2C,EAC3C,oBAAwC,EACxC,GAAW;IAEX,IAAI,oBAAoB,CAAC,oBAAoB,EAAE,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAA;IACrE,CAAC;SAAM,IAAI,oBAAoB,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAA;IAChD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IACxD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAE,GAAW;IACnD,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,CAAC;SACtG,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;SACpC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAA;AAC3C,CAAC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1687,6 +1687,168 @@
|
|
|
1687
1687
|
"list.js"
|
|
1688
1688
|
]
|
|
1689
1689
|
},
|
|
1690
|
+
"debug:parse-file": {
|
|
1691
|
+
"aliases": [],
|
|
1692
|
+
"args": {},
|
|
1693
|
+
"description": "Parses and outputs relevant details of a code file.",
|
|
1694
|
+
"flags": {
|
|
1695
|
+
"file": {
|
|
1696
|
+
"name": "file",
|
|
1697
|
+
"required": true,
|
|
1698
|
+
"hasDynamicHelp": false,
|
|
1699
|
+
"multiple": false,
|
|
1700
|
+
"type": "option"
|
|
1701
|
+
},
|
|
1702
|
+
"restricted": {
|
|
1703
|
+
"name": "restricted",
|
|
1704
|
+
"allowNo": false,
|
|
1705
|
+
"type": "boolean"
|
|
1706
|
+
},
|
|
1707
|
+
"detect-workspace": {
|
|
1708
|
+
"name": "detect-workspace",
|
|
1709
|
+
"allowNo": true,
|
|
1710
|
+
"type": "boolean"
|
|
1711
|
+
},
|
|
1712
|
+
"supported-module": {
|
|
1713
|
+
"name": "supported-module",
|
|
1714
|
+
"default": [],
|
|
1715
|
+
"delimiter": ",",
|
|
1716
|
+
"hasDynamicHelp": false,
|
|
1717
|
+
"multiple": true,
|
|
1718
|
+
"type": "option"
|
|
1719
|
+
},
|
|
1720
|
+
"check-unsupported-modules": {
|
|
1721
|
+
"name": "check-unsupported-modules",
|
|
1722
|
+
"allowNo": false,
|
|
1723
|
+
"type": "boolean"
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
"hasDynamicHelp": false,
|
|
1727
|
+
"hidden": true,
|
|
1728
|
+
"hiddenAliases": [],
|
|
1729
|
+
"id": "debug:parse-file",
|
|
1730
|
+
"pluginAlias": "checkly",
|
|
1731
|
+
"pluginName": "checkly",
|
|
1732
|
+
"pluginType": "core",
|
|
1733
|
+
"strict": true,
|
|
1734
|
+
"enableJsonFlag": false,
|
|
1735
|
+
"isESM": true,
|
|
1736
|
+
"relativePath": [
|
|
1737
|
+
"dist",
|
|
1738
|
+
"commands",
|
|
1739
|
+
"debug",
|
|
1740
|
+
"parse-file.js"
|
|
1741
|
+
]
|
|
1742
|
+
},
|
|
1743
|
+
"debug:parse-playwright-config": {
|
|
1744
|
+
"aliases": [],
|
|
1745
|
+
"args": {},
|
|
1746
|
+
"description": "Parses and outputs relevant details of a Playwright configuration file.",
|
|
1747
|
+
"flags": {
|
|
1748
|
+
"file": {
|
|
1749
|
+
"env": "CHECKLY_PLAYWRIGHT_CONFIG_FILE",
|
|
1750
|
+
"name": "file",
|
|
1751
|
+
"default": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/playwright.config.ts",
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"multiple": false,
|
|
1754
|
+
"type": "option"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"hasDynamicHelp": false,
|
|
1758
|
+
"hidden": true,
|
|
1759
|
+
"hiddenAliases": [],
|
|
1760
|
+
"id": "debug:parse-playwright-config",
|
|
1761
|
+
"pluginAlias": "checkly",
|
|
1762
|
+
"pluginName": "checkly",
|
|
1763
|
+
"pluginType": "core",
|
|
1764
|
+
"strict": true,
|
|
1765
|
+
"enableJsonFlag": false,
|
|
1766
|
+
"isESM": true,
|
|
1767
|
+
"relativePath": [
|
|
1768
|
+
"dist",
|
|
1769
|
+
"commands",
|
|
1770
|
+
"debug",
|
|
1771
|
+
"parse-playwright-config.js"
|
|
1772
|
+
]
|
|
1773
|
+
},
|
|
1774
|
+
"debug:parse-project": {
|
|
1775
|
+
"aliases": [],
|
|
1776
|
+
"args": {},
|
|
1777
|
+
"description": "Parses a Checkly project.",
|
|
1778
|
+
"flags": {
|
|
1779
|
+
"config": {
|
|
1780
|
+
"char": "c",
|
|
1781
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
1782
|
+
"env": "CHECKLY_CONFIG_FILE",
|
|
1783
|
+
"name": "config",
|
|
1784
|
+
"hasDynamicHelp": false,
|
|
1785
|
+
"multiple": false,
|
|
1786
|
+
"type": "option"
|
|
1787
|
+
},
|
|
1788
|
+
"default-runtime": {
|
|
1789
|
+
"description": "The default runtime to use if none is specified.",
|
|
1790
|
+
"env": "CHECKLY_DEFAULT_RUNTIME",
|
|
1791
|
+
"name": "default-runtime",
|
|
1792
|
+
"default": "2025.04",
|
|
1793
|
+
"hasDynamicHelp": false,
|
|
1794
|
+
"multiple": false,
|
|
1795
|
+
"type": "option"
|
|
1796
|
+
},
|
|
1797
|
+
"verify-runtime-dependencies": {
|
|
1798
|
+
"description": "[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.",
|
|
1799
|
+
"env": "CHECKLY_VERIFY_RUNTIME_DEPENDENCIES",
|
|
1800
|
+
"name": "verify-runtime-dependencies",
|
|
1801
|
+
"allowNo": true,
|
|
1802
|
+
"type": "boolean"
|
|
1803
|
+
},
|
|
1804
|
+
"emulate-pw-test": {
|
|
1805
|
+
"description": "Pretend to be the pw-test command. Affects validation.",
|
|
1806
|
+
"env": "CHECKLY_EMULATE_PW_TEST",
|
|
1807
|
+
"name": "emulate-pw-test",
|
|
1808
|
+
"allowNo": false,
|
|
1809
|
+
"type": "boolean"
|
|
1810
|
+
},
|
|
1811
|
+
"include": {
|
|
1812
|
+
"description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
|
|
1813
|
+
"name": "include",
|
|
1814
|
+
"default": [],
|
|
1815
|
+
"hasDynamicHelp": false,
|
|
1816
|
+
"multiple": true,
|
|
1817
|
+
"type": "option"
|
|
1818
|
+
},
|
|
1819
|
+
"inject-private-location": {
|
|
1820
|
+
"description": "Pretend that the given private location exists (e.g., \"70c4ded4-2229-45a7-acf4-6b1eb56a86df:my-external-private-location\").",
|
|
1821
|
+
"name": "inject-private-location",
|
|
1822
|
+
"default": [],
|
|
1823
|
+
"delimiter": ",",
|
|
1824
|
+
"hasDynamicHelp": false,
|
|
1825
|
+
"multiple": true,
|
|
1826
|
+
"type": "option"
|
|
1827
|
+
},
|
|
1828
|
+
"stats": {
|
|
1829
|
+
"description": "Print parse/bundle/synthesize timing and heap usage to stderr. Run with NODE_OPTIONS=--expose-gc to also report the retained (post-GC) heap.",
|
|
1830
|
+
"name": "stats",
|
|
1831
|
+
"allowNo": false,
|
|
1832
|
+
"type": "boolean"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
"hasDynamicHelp": false,
|
|
1836
|
+
"hidden": true,
|
|
1837
|
+
"hiddenAliases": [],
|
|
1838
|
+
"id": "debug:parse-project",
|
|
1839
|
+
"pluginAlias": "checkly",
|
|
1840
|
+
"pluginName": "checkly",
|
|
1841
|
+
"pluginType": "core",
|
|
1842
|
+
"strict": true,
|
|
1843
|
+
"enableJsonFlag": false,
|
|
1844
|
+
"isESM": true,
|
|
1845
|
+
"relativePath": [
|
|
1846
|
+
"dist",
|
|
1847
|
+
"commands",
|
|
1848
|
+
"debug",
|
|
1849
|
+
"parse-project.js"
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1690
1852
|
"checks:delete": {
|
|
1691
1853
|
"aliases": [],
|
|
1692
1854
|
"args": {
|
|
@@ -2057,423 +2219,44 @@
|
|
|
2057
2219
|
"ICMP",
|
|
2058
2220
|
"DNS",
|
|
2059
2221
|
"URL",
|
|
2060
|
-
"AGENTIC"
|
|
2061
|
-
],
|
|
2062
|
-
"type": "option"
|
|
2063
|
-
},
|
|
2064
|
-
"output": {
|
|
2065
|
-
"char": "o",
|
|
2066
|
-
"description": "Output format.",
|
|
2067
|
-
"name": "output",
|
|
2068
|
-
"default": "table",
|
|
2069
|
-
"hasDynamicHelp": false,
|
|
2070
|
-
"multiple": false,
|
|
2071
|
-
"options": [
|
|
2072
|
-
"table",
|
|
2073
|
-
"json",
|
|
2074
|
-
"md"
|
|
2075
|
-
],
|
|
2076
|
-
"type": "option"
|
|
2077
|
-
}
|
|
2078
|
-
},
|
|
2079
|
-
"hasDynamicHelp": false,
|
|
2080
|
-
"hidden": false,
|
|
2081
|
-
"hiddenAliases": [],
|
|
2082
|
-
"id": "checks:stats",
|
|
2083
|
-
"pluginAlias": "checkly",
|
|
2084
|
-
"pluginName": "checkly",
|
|
2085
|
-
"pluginType": "core",
|
|
2086
|
-
"strict": false,
|
|
2087
|
-
"enableJsonFlag": false,
|
|
2088
|
-
"coreCommand": false,
|
|
2089
|
-
"readOnly": true,
|
|
2090
|
-
"destructive": false,
|
|
2091
|
-
"idempotent": true,
|
|
2092
|
-
"isESM": true,
|
|
2093
|
-
"relativePath": [
|
|
2094
|
-
"dist",
|
|
2095
|
-
"commands",
|
|
2096
|
-
"checks",
|
|
2097
|
-
"stats.js"
|
|
2098
|
-
]
|
|
2099
|
-
},
|
|
2100
|
-
"debug:parse-file": {
|
|
2101
|
-
"aliases": [],
|
|
2102
|
-
"args": {},
|
|
2103
|
-
"description": "Parses and outputs relevant details of a code file.",
|
|
2104
|
-
"flags": {
|
|
2105
|
-
"file": {
|
|
2106
|
-
"name": "file",
|
|
2107
|
-
"required": true,
|
|
2108
|
-
"hasDynamicHelp": false,
|
|
2109
|
-
"multiple": false,
|
|
2110
|
-
"type": "option"
|
|
2111
|
-
},
|
|
2112
|
-
"restricted": {
|
|
2113
|
-
"name": "restricted",
|
|
2114
|
-
"allowNo": false,
|
|
2115
|
-
"type": "boolean"
|
|
2116
|
-
},
|
|
2117
|
-
"detect-workspace": {
|
|
2118
|
-
"name": "detect-workspace",
|
|
2119
|
-
"allowNo": true,
|
|
2120
|
-
"type": "boolean"
|
|
2121
|
-
},
|
|
2122
|
-
"supported-module": {
|
|
2123
|
-
"name": "supported-module",
|
|
2124
|
-
"default": [],
|
|
2125
|
-
"delimiter": ",",
|
|
2126
|
-
"hasDynamicHelp": false,
|
|
2127
|
-
"multiple": true,
|
|
2128
|
-
"type": "option"
|
|
2129
|
-
},
|
|
2130
|
-
"check-unsupported-modules": {
|
|
2131
|
-
"name": "check-unsupported-modules",
|
|
2132
|
-
"allowNo": false,
|
|
2133
|
-
"type": "boolean"
|
|
2134
|
-
}
|
|
2135
|
-
},
|
|
2136
|
-
"hasDynamicHelp": false,
|
|
2137
|
-
"hidden": true,
|
|
2138
|
-
"hiddenAliases": [],
|
|
2139
|
-
"id": "debug:parse-file",
|
|
2140
|
-
"pluginAlias": "checkly",
|
|
2141
|
-
"pluginName": "checkly",
|
|
2142
|
-
"pluginType": "core",
|
|
2143
|
-
"strict": true,
|
|
2144
|
-
"enableJsonFlag": false,
|
|
2145
|
-
"isESM": true,
|
|
2146
|
-
"relativePath": [
|
|
2147
|
-
"dist",
|
|
2148
|
-
"commands",
|
|
2149
|
-
"debug",
|
|
2150
|
-
"parse-file.js"
|
|
2151
|
-
]
|
|
2152
|
-
},
|
|
2153
|
-
"debug:parse-playwright-config": {
|
|
2154
|
-
"aliases": [],
|
|
2155
|
-
"args": {},
|
|
2156
|
-
"description": "Parses and outputs relevant details of a Playwright configuration file.",
|
|
2157
|
-
"flags": {
|
|
2158
|
-
"file": {
|
|
2159
|
-
"env": "CHECKLY_PLAYWRIGHT_CONFIG_FILE",
|
|
2160
|
-
"name": "file",
|
|
2161
|
-
"default": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/playwright.config.ts",
|
|
2162
|
-
"hasDynamicHelp": false,
|
|
2163
|
-
"multiple": false,
|
|
2164
|
-
"type": "option"
|
|
2165
|
-
}
|
|
2166
|
-
},
|
|
2167
|
-
"hasDynamicHelp": false,
|
|
2168
|
-
"hidden": true,
|
|
2169
|
-
"hiddenAliases": [],
|
|
2170
|
-
"id": "debug:parse-playwright-config",
|
|
2171
|
-
"pluginAlias": "checkly",
|
|
2172
|
-
"pluginName": "checkly",
|
|
2173
|
-
"pluginType": "core",
|
|
2174
|
-
"strict": true,
|
|
2175
|
-
"enableJsonFlag": false,
|
|
2176
|
-
"isESM": true,
|
|
2177
|
-
"relativePath": [
|
|
2178
|
-
"dist",
|
|
2179
|
-
"commands",
|
|
2180
|
-
"debug",
|
|
2181
|
-
"parse-playwright-config.js"
|
|
2182
|
-
]
|
|
2183
|
-
},
|
|
2184
|
-
"debug:parse-project": {
|
|
2185
|
-
"aliases": [],
|
|
2186
|
-
"args": {},
|
|
2187
|
-
"description": "Parses a Checkly project.",
|
|
2188
|
-
"flags": {
|
|
2189
|
-
"config": {
|
|
2190
|
-
"char": "c",
|
|
2191
|
-
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
2192
|
-
"env": "CHECKLY_CONFIG_FILE",
|
|
2193
|
-
"name": "config",
|
|
2194
|
-
"hasDynamicHelp": false,
|
|
2195
|
-
"multiple": false,
|
|
2196
|
-
"type": "option"
|
|
2197
|
-
},
|
|
2198
|
-
"default-runtime": {
|
|
2199
|
-
"description": "The default runtime to use if none is specified.",
|
|
2200
|
-
"env": "CHECKLY_DEFAULT_RUNTIME",
|
|
2201
|
-
"name": "default-runtime",
|
|
2202
|
-
"default": "2025.04",
|
|
2203
|
-
"hasDynamicHelp": false,
|
|
2204
|
-
"multiple": false,
|
|
2205
|
-
"type": "option"
|
|
2206
|
-
},
|
|
2207
|
-
"verify-runtime-dependencies": {
|
|
2208
|
-
"description": "[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.",
|
|
2209
|
-
"env": "CHECKLY_VERIFY_RUNTIME_DEPENDENCIES",
|
|
2210
|
-
"name": "verify-runtime-dependencies",
|
|
2211
|
-
"allowNo": true,
|
|
2212
|
-
"type": "boolean"
|
|
2213
|
-
},
|
|
2214
|
-
"emulate-pw-test": {
|
|
2215
|
-
"description": "Pretend to be the pw-test command. Affects validation.",
|
|
2216
|
-
"env": "CHECKLY_EMULATE_PW_TEST",
|
|
2217
|
-
"name": "emulate-pw-test",
|
|
2218
|
-
"allowNo": false,
|
|
2219
|
-
"type": "boolean"
|
|
2220
|
-
},
|
|
2221
|
-
"include": {
|
|
2222
|
-
"description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
|
|
2223
|
-
"name": "include",
|
|
2224
|
-
"default": [],
|
|
2225
|
-
"hasDynamicHelp": false,
|
|
2226
|
-
"multiple": true,
|
|
2227
|
-
"type": "option"
|
|
2228
|
-
},
|
|
2229
|
-
"inject-private-location": {
|
|
2230
|
-
"description": "Pretend that the given private location exists (e.g., \"70c4ded4-2229-45a7-acf4-6b1eb56a86df:my-external-private-location\").",
|
|
2231
|
-
"name": "inject-private-location",
|
|
2232
|
-
"default": [],
|
|
2233
|
-
"delimiter": ",",
|
|
2234
|
-
"hasDynamicHelp": false,
|
|
2235
|
-
"multiple": true,
|
|
2236
|
-
"type": "option"
|
|
2237
|
-
},
|
|
2238
|
-
"stats": {
|
|
2239
|
-
"description": "Print parse/bundle/synthesize timing and heap usage to stderr. Run with NODE_OPTIONS=--expose-gc to also report the retained (post-GC) heap.",
|
|
2240
|
-
"name": "stats",
|
|
2241
|
-
"allowNo": false,
|
|
2242
|
-
"type": "boolean"
|
|
2243
|
-
}
|
|
2244
|
-
},
|
|
2245
|
-
"hasDynamicHelp": false,
|
|
2246
|
-
"hidden": true,
|
|
2247
|
-
"hiddenAliases": [],
|
|
2248
|
-
"id": "debug:parse-project",
|
|
2249
|
-
"pluginAlias": "checkly",
|
|
2250
|
-
"pluginName": "checkly",
|
|
2251
|
-
"pluginType": "core",
|
|
2252
|
-
"strict": true,
|
|
2253
|
-
"enableJsonFlag": false,
|
|
2254
|
-
"isESM": true,
|
|
2255
|
-
"relativePath": [
|
|
2256
|
-
"dist",
|
|
2257
|
-
"commands",
|
|
2258
|
-
"debug",
|
|
2259
|
-
"parse-project.js"
|
|
2260
|
-
]
|
|
2261
|
-
},
|
|
2262
|
-
"env:add": {
|
|
2263
|
-
"aliases": [],
|
|
2264
|
-
"args": {
|
|
2265
|
-
"key": {
|
|
2266
|
-
"description": "Environment variable key.",
|
|
2267
|
-
"name": "key",
|
|
2268
|
-
"required": true
|
|
2269
|
-
},
|
|
2270
|
-
"value": {
|
|
2271
|
-
"description": "Environment variable value.",
|
|
2272
|
-
"name": "value",
|
|
2273
|
-
"required": false
|
|
2274
|
-
}
|
|
2275
|
-
},
|
|
2276
|
-
"description": "Add environment variable via \"checkly env add <key> <value>\".",
|
|
2277
|
-
"flags": {
|
|
2278
|
-
"locked": {
|
|
2279
|
-
"char": "l",
|
|
2280
|
-
"description": "Indicate that the environment variable will be locked.",
|
|
2281
|
-
"name": "locked",
|
|
2282
|
-
"allowNo": false,
|
|
2283
|
-
"type": "boolean"
|
|
2284
|
-
},
|
|
2285
|
-
"secret": {
|
|
2286
|
-
"char": "s",
|
|
2287
|
-
"description": "Indicate that the environment variable will be secret.",
|
|
2288
|
-
"exclusive": [
|
|
2289
|
-
"locked"
|
|
2290
|
-
],
|
|
2291
|
-
"name": "secret",
|
|
2292
|
-
"allowNo": false,
|
|
2293
|
-
"type": "boolean"
|
|
2294
|
-
}
|
|
2295
|
-
},
|
|
2296
|
-
"hasDynamicHelp": false,
|
|
2297
|
-
"hidden": false,
|
|
2298
|
-
"hiddenAliases": [],
|
|
2299
|
-
"id": "env:add",
|
|
2300
|
-
"pluginAlias": "checkly",
|
|
2301
|
-
"pluginName": "checkly",
|
|
2302
|
-
"pluginType": "core",
|
|
2303
|
-
"strict": true,
|
|
2304
|
-
"enableJsonFlag": false,
|
|
2305
|
-
"coreCommand": false,
|
|
2306
|
-
"readOnly": false,
|
|
2307
|
-
"destructive": false,
|
|
2308
|
-
"idempotent": false,
|
|
2309
|
-
"isESM": true,
|
|
2310
|
-
"relativePath": [
|
|
2311
|
-
"dist",
|
|
2312
|
-
"commands",
|
|
2313
|
-
"env",
|
|
2314
|
-
"add.js"
|
|
2315
|
-
]
|
|
2316
|
-
},
|
|
2317
|
-
"env:ls": {
|
|
2318
|
-
"aliases": [],
|
|
2319
|
-
"args": {},
|
|
2320
|
-
"description": "List all Checkly environment variables via \"checkly env ls\".",
|
|
2321
|
-
"flags": {},
|
|
2322
|
-
"hasDynamicHelp": false,
|
|
2323
|
-
"hidden": false,
|
|
2324
|
-
"hiddenAliases": [],
|
|
2325
|
-
"id": "env:ls",
|
|
2326
|
-
"pluginAlias": "checkly",
|
|
2327
|
-
"pluginName": "checkly",
|
|
2328
|
-
"pluginType": "core",
|
|
2329
|
-
"strict": true,
|
|
2330
|
-
"enableJsonFlag": false,
|
|
2331
|
-
"coreCommand": false,
|
|
2332
|
-
"readOnly": true,
|
|
2333
|
-
"destructive": false,
|
|
2334
|
-
"idempotent": true,
|
|
2335
|
-
"isESM": true,
|
|
2336
|
-
"relativePath": [
|
|
2337
|
-
"dist",
|
|
2338
|
-
"commands",
|
|
2339
|
-
"env",
|
|
2340
|
-
"ls.js"
|
|
2341
|
-
]
|
|
2342
|
-
},
|
|
2343
|
-
"env:pull": {
|
|
2344
|
-
"aliases": [],
|
|
2345
|
-
"args": {
|
|
2346
|
-
"filename": {
|
|
2347
|
-
"default": ".env",
|
|
2348
|
-
"description": "Filename of the generated file.",
|
|
2349
|
-
"name": "filename",
|
|
2350
|
-
"required": false
|
|
2351
|
-
}
|
|
2352
|
-
},
|
|
2353
|
-
"description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
|
|
2354
|
-
"flags": {
|
|
2355
|
-
"force": {
|
|
2356
|
-
"char": "f",
|
|
2357
|
-
"description": "Force to overwrite existing file.",
|
|
2358
|
-
"name": "force",
|
|
2359
|
-
"allowNo": false,
|
|
2360
|
-
"type": "boolean"
|
|
2361
|
-
}
|
|
2362
|
-
},
|
|
2363
|
-
"hasDynamicHelp": false,
|
|
2364
|
-
"hidden": false,
|
|
2365
|
-
"hiddenAliases": [],
|
|
2366
|
-
"id": "env:pull",
|
|
2367
|
-
"pluginAlias": "checkly",
|
|
2368
|
-
"pluginName": "checkly",
|
|
2369
|
-
"pluginType": "core",
|
|
2370
|
-
"strict": true,
|
|
2371
|
-
"enableJsonFlag": false,
|
|
2372
|
-
"coreCommand": false,
|
|
2373
|
-
"readOnly": true,
|
|
2374
|
-
"destructive": false,
|
|
2375
|
-
"idempotent": true,
|
|
2376
|
-
"isESM": true,
|
|
2377
|
-
"relativePath": [
|
|
2378
|
-
"dist",
|
|
2379
|
-
"commands",
|
|
2380
|
-
"env",
|
|
2381
|
-
"pull.js"
|
|
2382
|
-
]
|
|
2383
|
-
},
|
|
2384
|
-
"env:rm": {
|
|
2385
|
-
"aliases": [],
|
|
2386
|
-
"args": {
|
|
2387
|
-
"key": {
|
|
2388
|
-
"description": "Environment variable key to remove.",
|
|
2389
|
-
"name": "key",
|
|
2390
|
-
"required": true
|
|
2391
|
-
}
|
|
2392
|
-
},
|
|
2393
|
-
"description": "Remove environment variable via \"checkly env rm <key>\".",
|
|
2394
|
-
"flags": {
|
|
2395
|
-
"force": {
|
|
2396
|
-
"char": "f",
|
|
2397
|
-
"description": "Skip confirmation prompt.",
|
|
2398
|
-
"name": "force",
|
|
2399
|
-
"allowNo": false,
|
|
2400
|
-
"type": "boolean"
|
|
2401
|
-
}
|
|
2402
|
-
},
|
|
2403
|
-
"hasDynamicHelp": false,
|
|
2404
|
-
"hidden": false,
|
|
2405
|
-
"hiddenAliases": [],
|
|
2406
|
-
"id": "env:rm",
|
|
2407
|
-
"pluginAlias": "checkly",
|
|
2408
|
-
"pluginName": "checkly",
|
|
2409
|
-
"pluginType": "core",
|
|
2410
|
-
"strict": true,
|
|
2411
|
-
"enableJsonFlag": false,
|
|
2412
|
-
"coreCommand": false,
|
|
2413
|
-
"readOnly": false,
|
|
2414
|
-
"destructive": true,
|
|
2415
|
-
"idempotent": false,
|
|
2416
|
-
"isESM": true,
|
|
2417
|
-
"relativePath": [
|
|
2418
|
-
"dist",
|
|
2419
|
-
"commands",
|
|
2420
|
-
"env",
|
|
2421
|
-
"rm.js"
|
|
2422
|
-
]
|
|
2423
|
-
},
|
|
2424
|
-
"env:update": {
|
|
2425
|
-
"aliases": [],
|
|
2426
|
-
"args": {
|
|
2427
|
-
"key": {
|
|
2428
|
-
"description": "Environment variable key.",
|
|
2429
|
-
"name": "key",
|
|
2430
|
-
"required": true
|
|
2431
|
-
},
|
|
2432
|
-
"value": {
|
|
2433
|
-
"description": "Environment variable value.",
|
|
2434
|
-
"name": "value",
|
|
2435
|
-
"required": false
|
|
2436
|
-
}
|
|
2437
|
-
},
|
|
2438
|
-
"description": "Update environment variable via \"checkly env update <key> <value>\".",
|
|
2439
|
-
"flags": {
|
|
2440
|
-
"locked": {
|
|
2441
|
-
"char": "l",
|
|
2442
|
-
"description": "Indicate if environment variable is locked.",
|
|
2443
|
-
"name": "locked",
|
|
2444
|
-
"allowNo": false,
|
|
2445
|
-
"type": "boolean"
|
|
2222
|
+
"AGENTIC"
|
|
2223
|
+
],
|
|
2224
|
+
"type": "option"
|
|
2446
2225
|
},
|
|
2447
|
-
"
|
|
2448
|
-
"char": "
|
|
2449
|
-
"description": "
|
|
2450
|
-
"
|
|
2451
|
-
|
|
2226
|
+
"output": {
|
|
2227
|
+
"char": "o",
|
|
2228
|
+
"description": "Output format.",
|
|
2229
|
+
"name": "output",
|
|
2230
|
+
"default": "table",
|
|
2231
|
+
"hasDynamicHelp": false,
|
|
2232
|
+
"multiple": false,
|
|
2233
|
+
"options": [
|
|
2234
|
+
"table",
|
|
2235
|
+
"json",
|
|
2236
|
+
"md"
|
|
2452
2237
|
],
|
|
2453
|
-
"
|
|
2454
|
-
"allowNo": false,
|
|
2455
|
-
"type": "boolean"
|
|
2238
|
+
"type": "option"
|
|
2456
2239
|
}
|
|
2457
2240
|
},
|
|
2458
2241
|
"hasDynamicHelp": false,
|
|
2459
2242
|
"hidden": false,
|
|
2460
2243
|
"hiddenAliases": [],
|
|
2461
|
-
"id": "
|
|
2244
|
+
"id": "checks:stats",
|
|
2462
2245
|
"pluginAlias": "checkly",
|
|
2463
2246
|
"pluginName": "checkly",
|
|
2464
2247
|
"pluginType": "core",
|
|
2465
|
-
"strict":
|
|
2248
|
+
"strict": false,
|
|
2466
2249
|
"enableJsonFlag": false,
|
|
2467
2250
|
"coreCommand": false,
|
|
2468
|
-
"readOnly":
|
|
2251
|
+
"readOnly": true,
|
|
2469
2252
|
"destructive": false,
|
|
2470
2253
|
"idempotent": true,
|
|
2471
2254
|
"isESM": true,
|
|
2472
2255
|
"relativePath": [
|
|
2473
2256
|
"dist",
|
|
2474
2257
|
"commands",
|
|
2475
|
-
"
|
|
2476
|
-
"
|
|
2258
|
+
"checks",
|
|
2259
|
+
"stats.js"
|
|
2477
2260
|
]
|
|
2478
2261
|
},
|
|
2479
2262
|
"import:apply": {
|
|
@@ -3171,6 +2954,223 @@
|
|
|
3171
2954
|
"update.js"
|
|
3172
2955
|
]
|
|
3173
2956
|
},
|
|
2957
|
+
"env:add": {
|
|
2958
|
+
"aliases": [],
|
|
2959
|
+
"args": {
|
|
2960
|
+
"key": {
|
|
2961
|
+
"description": "Environment variable key.",
|
|
2962
|
+
"name": "key",
|
|
2963
|
+
"required": true
|
|
2964
|
+
},
|
|
2965
|
+
"value": {
|
|
2966
|
+
"description": "Environment variable value.",
|
|
2967
|
+
"name": "value",
|
|
2968
|
+
"required": false
|
|
2969
|
+
}
|
|
2970
|
+
},
|
|
2971
|
+
"description": "Add environment variable via \"checkly env add <key> <value>\".",
|
|
2972
|
+
"flags": {
|
|
2973
|
+
"locked": {
|
|
2974
|
+
"char": "l",
|
|
2975
|
+
"description": "Indicate that the environment variable will be locked.",
|
|
2976
|
+
"name": "locked",
|
|
2977
|
+
"allowNo": false,
|
|
2978
|
+
"type": "boolean"
|
|
2979
|
+
},
|
|
2980
|
+
"secret": {
|
|
2981
|
+
"char": "s",
|
|
2982
|
+
"description": "Indicate that the environment variable will be secret.",
|
|
2983
|
+
"exclusive": [
|
|
2984
|
+
"locked"
|
|
2985
|
+
],
|
|
2986
|
+
"name": "secret",
|
|
2987
|
+
"allowNo": false,
|
|
2988
|
+
"type": "boolean"
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
"hasDynamicHelp": false,
|
|
2992
|
+
"hidden": false,
|
|
2993
|
+
"hiddenAliases": [],
|
|
2994
|
+
"id": "env:add",
|
|
2995
|
+
"pluginAlias": "checkly",
|
|
2996
|
+
"pluginName": "checkly",
|
|
2997
|
+
"pluginType": "core",
|
|
2998
|
+
"strict": true,
|
|
2999
|
+
"enableJsonFlag": false,
|
|
3000
|
+
"coreCommand": false,
|
|
3001
|
+
"readOnly": false,
|
|
3002
|
+
"destructive": false,
|
|
3003
|
+
"idempotent": false,
|
|
3004
|
+
"isESM": true,
|
|
3005
|
+
"relativePath": [
|
|
3006
|
+
"dist",
|
|
3007
|
+
"commands",
|
|
3008
|
+
"env",
|
|
3009
|
+
"add.js"
|
|
3010
|
+
]
|
|
3011
|
+
},
|
|
3012
|
+
"env:ls": {
|
|
3013
|
+
"aliases": [],
|
|
3014
|
+
"args": {},
|
|
3015
|
+
"description": "List all Checkly environment variables via \"checkly env ls\".",
|
|
3016
|
+
"flags": {},
|
|
3017
|
+
"hasDynamicHelp": false,
|
|
3018
|
+
"hidden": false,
|
|
3019
|
+
"hiddenAliases": [],
|
|
3020
|
+
"id": "env:ls",
|
|
3021
|
+
"pluginAlias": "checkly",
|
|
3022
|
+
"pluginName": "checkly",
|
|
3023
|
+
"pluginType": "core",
|
|
3024
|
+
"strict": true,
|
|
3025
|
+
"enableJsonFlag": false,
|
|
3026
|
+
"coreCommand": false,
|
|
3027
|
+
"readOnly": true,
|
|
3028
|
+
"destructive": false,
|
|
3029
|
+
"idempotent": true,
|
|
3030
|
+
"isESM": true,
|
|
3031
|
+
"relativePath": [
|
|
3032
|
+
"dist",
|
|
3033
|
+
"commands",
|
|
3034
|
+
"env",
|
|
3035
|
+
"ls.js"
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
"env:pull": {
|
|
3039
|
+
"aliases": [],
|
|
3040
|
+
"args": {
|
|
3041
|
+
"filename": {
|
|
3042
|
+
"default": ".env",
|
|
3043
|
+
"description": "Filename of the generated file.",
|
|
3044
|
+
"name": "filename",
|
|
3045
|
+
"required": false
|
|
3046
|
+
}
|
|
3047
|
+
},
|
|
3048
|
+
"description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
|
|
3049
|
+
"flags": {
|
|
3050
|
+
"force": {
|
|
3051
|
+
"char": "f",
|
|
3052
|
+
"description": "Force to overwrite existing file.",
|
|
3053
|
+
"name": "force",
|
|
3054
|
+
"allowNo": false,
|
|
3055
|
+
"type": "boolean"
|
|
3056
|
+
}
|
|
3057
|
+
},
|
|
3058
|
+
"hasDynamicHelp": false,
|
|
3059
|
+
"hidden": false,
|
|
3060
|
+
"hiddenAliases": [],
|
|
3061
|
+
"id": "env:pull",
|
|
3062
|
+
"pluginAlias": "checkly",
|
|
3063
|
+
"pluginName": "checkly",
|
|
3064
|
+
"pluginType": "core",
|
|
3065
|
+
"strict": true,
|
|
3066
|
+
"enableJsonFlag": false,
|
|
3067
|
+
"coreCommand": false,
|
|
3068
|
+
"readOnly": true,
|
|
3069
|
+
"destructive": false,
|
|
3070
|
+
"idempotent": true,
|
|
3071
|
+
"isESM": true,
|
|
3072
|
+
"relativePath": [
|
|
3073
|
+
"dist",
|
|
3074
|
+
"commands",
|
|
3075
|
+
"env",
|
|
3076
|
+
"pull.js"
|
|
3077
|
+
]
|
|
3078
|
+
},
|
|
3079
|
+
"env:rm": {
|
|
3080
|
+
"aliases": [],
|
|
3081
|
+
"args": {
|
|
3082
|
+
"key": {
|
|
3083
|
+
"description": "Environment variable key to remove.",
|
|
3084
|
+
"name": "key",
|
|
3085
|
+
"required": true
|
|
3086
|
+
}
|
|
3087
|
+
},
|
|
3088
|
+
"description": "Remove environment variable via \"checkly env rm <key>\".",
|
|
3089
|
+
"flags": {
|
|
3090
|
+
"force": {
|
|
3091
|
+
"char": "f",
|
|
3092
|
+
"description": "Skip confirmation prompt.",
|
|
3093
|
+
"name": "force",
|
|
3094
|
+
"allowNo": false,
|
|
3095
|
+
"type": "boolean"
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
"hasDynamicHelp": false,
|
|
3099
|
+
"hidden": false,
|
|
3100
|
+
"hiddenAliases": [],
|
|
3101
|
+
"id": "env:rm",
|
|
3102
|
+
"pluginAlias": "checkly",
|
|
3103
|
+
"pluginName": "checkly",
|
|
3104
|
+
"pluginType": "core",
|
|
3105
|
+
"strict": true,
|
|
3106
|
+
"enableJsonFlag": false,
|
|
3107
|
+
"coreCommand": false,
|
|
3108
|
+
"readOnly": false,
|
|
3109
|
+
"destructive": true,
|
|
3110
|
+
"idempotent": false,
|
|
3111
|
+
"isESM": true,
|
|
3112
|
+
"relativePath": [
|
|
3113
|
+
"dist",
|
|
3114
|
+
"commands",
|
|
3115
|
+
"env",
|
|
3116
|
+
"rm.js"
|
|
3117
|
+
]
|
|
3118
|
+
},
|
|
3119
|
+
"env:update": {
|
|
3120
|
+
"aliases": [],
|
|
3121
|
+
"args": {
|
|
3122
|
+
"key": {
|
|
3123
|
+
"description": "Environment variable key.",
|
|
3124
|
+
"name": "key",
|
|
3125
|
+
"required": true
|
|
3126
|
+
},
|
|
3127
|
+
"value": {
|
|
3128
|
+
"description": "Environment variable value.",
|
|
3129
|
+
"name": "value",
|
|
3130
|
+
"required": false
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
"description": "Update environment variable via \"checkly env update <key> <value>\".",
|
|
3134
|
+
"flags": {
|
|
3135
|
+
"locked": {
|
|
3136
|
+
"char": "l",
|
|
3137
|
+
"description": "Indicate if environment variable is locked.",
|
|
3138
|
+
"name": "locked",
|
|
3139
|
+
"allowNo": false,
|
|
3140
|
+
"type": "boolean"
|
|
3141
|
+
},
|
|
3142
|
+
"secret": {
|
|
3143
|
+
"char": "s",
|
|
3144
|
+
"description": "Indicate if environment variable is secret.",
|
|
3145
|
+
"exclusive": [
|
|
3146
|
+
"locked"
|
|
3147
|
+
],
|
|
3148
|
+
"name": "secret",
|
|
3149
|
+
"allowNo": false,
|
|
3150
|
+
"type": "boolean"
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
"hasDynamicHelp": false,
|
|
3154
|
+
"hidden": false,
|
|
3155
|
+
"hiddenAliases": [],
|
|
3156
|
+
"id": "env:update",
|
|
3157
|
+
"pluginAlias": "checkly",
|
|
3158
|
+
"pluginName": "checkly",
|
|
3159
|
+
"pluginType": "core",
|
|
3160
|
+
"strict": true,
|
|
3161
|
+
"enableJsonFlag": false,
|
|
3162
|
+
"coreCommand": false,
|
|
3163
|
+
"readOnly": false,
|
|
3164
|
+
"destructive": false,
|
|
3165
|
+
"idempotent": true,
|
|
3166
|
+
"isESM": true,
|
|
3167
|
+
"relativePath": [
|
|
3168
|
+
"dist",
|
|
3169
|
+
"commands",
|
|
3170
|
+
"env",
|
|
3171
|
+
"update.js"
|
|
3172
|
+
]
|
|
3173
|
+
},
|
|
3174
3174
|
"rca:get": {
|
|
3175
3175
|
"aliases": [],
|
|
3176
3176
|
"args": {
|
|
@@ -3304,17 +3304,23 @@
|
|
|
3304
3304
|
"aliases": [],
|
|
3305
3305
|
"args": {
|
|
3306
3306
|
"action": {
|
|
3307
|
-
"description": "
|
|
3307
|
+
"description": "Action to open. Available actions are listed below.",
|
|
3308
3308
|
"name": "action",
|
|
3309
3309
|
"required": false
|
|
3310
3310
|
},
|
|
3311
3311
|
"reference": {
|
|
3312
|
-
"description": "
|
|
3312
|
+
"description": "Reference to open for the selected action. Available references are listed below.",
|
|
3313
3313
|
"name": "reference",
|
|
3314
3314
|
"required": false
|
|
3315
3315
|
}
|
|
3316
3316
|
},
|
|
3317
|
-
"description": "Show Checkly AI skills, actions and their references.",
|
|
3317
|
+
"description": "Show Checkly AI skills, actions and their references.\n\nRun `checkly skills` to print the full catalog, `checkly skills <action>` for an action guide, or `checkly skills <action> <reference>` for a specific reference.\n\nAvailable actions and references:\n checkly skills\n |- initialize\n |- configure\n | |- agentic-checks\n | |- api-checks\n | |- browser-checks\n | |- playwright-checks\n | |- multistep-checks\n | |- tcp-monitors\n | |- url-monitors\n | |- dns-monitors\n | |- icmp-monitors\n | |- heartbeat-monitors\n | |- check-groups\n | |- alert-channels\n | |- supporting-constructs\n | |- environment\n |- investigate\n | |- checks\n | |- alerting\n | |- test-sessions\n |- communicate\n | |- incidents\n |- manage\n | |- plan\n | |- account-members\n\nUse `checkly skills <action>` or `checkly skills <action> <reference>` to open the detailed guidance.",
|
|
3318
|
+
"examples": [
|
|
3319
|
+
"checkly skills",
|
|
3320
|
+
"checkly skills configure",
|
|
3321
|
+
"checkly skills configure api-checks",
|
|
3322
|
+
"checkly skills investigate alerting"
|
|
3323
|
+
],
|
|
3318
3324
|
"flags": {},
|
|
3319
3325
|
"hasDynamicHelp": false,
|
|
3320
3326
|
"hidden": false,
|
|
@@ -3326,9 +3332,9 @@
|
|
|
3326
3332
|
"strict": true,
|
|
3327
3333
|
"enableJsonFlag": false,
|
|
3328
3334
|
"coreCommand": false,
|
|
3329
|
-
"readOnly":
|
|
3335
|
+
"readOnly": true,
|
|
3330
3336
|
"destructive": false,
|
|
3331
|
-
"idempotent":
|
|
3337
|
+
"idempotent": true,
|
|
3332
3338
|
"isESM": true,
|
|
3333
3339
|
"relativePath": [
|
|
3334
3340
|
"dist",
|
|
@@ -3711,5 +3717,5 @@
|
|
|
3711
3717
|
]
|
|
3712
3718
|
}
|
|
3713
3719
|
},
|
|
3714
|
-
"version": "8.
|
|
3720
|
+
"version": "8.12.0"
|
|
3715
3721
|
}
|