checkly 8.1.0 → 8.2.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/ai-context/checkly.rules.md +17 -1
- package/dist/ai-context/context.d.ts +2 -2
- package/dist/ai-context/context.js +6 -1
- package/dist/ai-context/context.js.map +1 -1
- package/dist/ai-context/skills-command/references/configure-alert-channels.md +16 -0
- package/dist/ai-context/skills-command/references/configure.md +1 -1
- package/dist/constructs/alert-channel-codegen.d.ts +3 -1
- package/dist/constructs/alert-channel-codegen.js +4 -0
- package/dist/constructs/alert-channel-codegen.js.map +1 -1
- package/dist/constructs/index.d.ts +1 -0
- package/dist/constructs/index.js +1 -0
- package/dist/constructs/index.js.map +1 -1
- package/dist/constructs/slack-app-alert-channel-codegen.d.ts +13 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js +39 -0
- package/dist/constructs/slack-app-alert-channel-codegen.js.map +1 -0
- package/dist/constructs/slack-app-alert-channel.d.ts +25 -0
- package/dist/constructs/slack-app-alert-channel.js +38 -0
- package/dist/constructs/slack-app-alert-channel.js.map +1 -0
- package/oclif.manifest.json +157 -157
- package/package.json +1 -1
|
@@ -113,7 +113,7 @@ Heartbeat Monitor construct (`HeartbeatMonitor`)
|
|
|
113
113
|
CheckGroupV2 construct (`CheckGroupV2`) for organizing checks
|
|
114
114
|
|
|
115
115
|
### `npx checkly skills configure alert-channels`
|
|
116
|
-
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
116
|
+
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels
|
|
117
117
|
|
|
118
118
|
### `npx checkly skills configure supporting-constructs`
|
|
119
119
|
Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)
|
|
@@ -637,6 +637,22 @@ export const generalSlackAlert = new SlackAlertChannel('example-slack-alert-chan
|
|
|
637
637
|
})
|
|
638
638
|
```
|
|
639
639
|
|
|
640
|
+
#### Slack App Alert Channel
|
|
641
|
+
|
|
642
|
+
**Reference:** https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/
|
|
643
|
+
|
|
644
|
+
```typescript
|
|
645
|
+
import { SlackAppAlertChannel } from 'checkly/constructs'
|
|
646
|
+
|
|
647
|
+
export const alertsOpsAliceSlackAppAlert = new SlackAppAlertChannel('example-slack-app-alert-channel', {
|
|
648
|
+
slackChannels: [
|
|
649
|
+
'#alerts',
|
|
650
|
+
'#ops',
|
|
651
|
+
'@alice',
|
|
652
|
+
],
|
|
653
|
+
})
|
|
654
|
+
```
|
|
655
|
+
|
|
640
656
|
### Supporting Constructs
|
|
641
657
|
|
|
642
658
|
#### Status Page
|
|
@@ -33,7 +33,7 @@ export declare const REFERENCES: readonly [{
|
|
|
33
33
|
readonly description: "CheckGroupV2 construct (`CheckGroupV2`) for organizing checks";
|
|
34
34
|
}, {
|
|
35
35
|
readonly id: "configure-alert-channels";
|
|
36
|
-
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
36
|
+
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels";
|
|
37
37
|
}, {
|
|
38
38
|
readonly id: "configure-supporting-constructs";
|
|
39
39
|
readonly description: "Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)";
|
|
@@ -98,7 +98,7 @@ export declare const ACTIONS: readonly [{
|
|
|
98
98
|
readonly description: "CheckGroupV2 construct (`CheckGroupV2`) for organizing checks";
|
|
99
99
|
}, {
|
|
100
100
|
readonly id: "configure-alert-channels";
|
|
101
|
-
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
101
|
+
readonly description: "Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels";
|
|
102
102
|
}, {
|
|
103
103
|
readonly id: "configure-supporting-constructs";
|
|
104
104
|
readonly description: "Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)";
|
|
@@ -45,7 +45,7 @@ export const REFERENCES = [
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
id: 'configure-alert-channels',
|
|
48
|
-
description: 'Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
48
|
+
description: 'Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
id: 'configure-supporting-constructs',
|
|
@@ -246,5 +246,10 @@ const playwrightChecks = new PlaywrightCheck("multi-browser-check", {
|
|
|
246
246
|
exampleConfigPath: 'resources/alert-channels/slack/general.check.ts',
|
|
247
247
|
reference: 'https://www.checklyhq.com/docs/constructs/slack-alert-channel/',
|
|
248
248
|
},
|
|
249
|
+
SLACK_APP_ALERT_CHANNEL: {
|
|
250
|
+
templateString: '<!-- EXAMPLE: SLACK_APP_ALERT_CHANNEL -->',
|
|
251
|
+
exampleConfigPath: 'resources/alert-channels/slack-app/alerts-ops-alice.check.ts',
|
|
252
|
+
reference: 'https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/',
|
|
253
|
+
},
|
|
249
254
|
};
|
|
250
255
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,8BAA8B;QAClC,WAAW,EAAE,kDAAkD;KAChE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,+DAA+D;KAC7E;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ai-context/context.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,oHAAoH;KAClI;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,WAAW,EAAE,gFAAgF;KAC9F;IACD;QACE,EAAE,EAAE,0BAA0B;QAC9B,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,WAAW,EAAE,oFAAoF;KAClG;IACD;QACE,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,qEAAqE;KACnF;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAAE,EAAE,wBAAwB;QAC5B,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,EAA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ertChannel('example-slack-alert-chan
|
|
|
47
47
|
channel: '#general',
|
|
48
48
|
})
|
|
49
49
|
```
|
|
50
|
+
|
|
51
|
+
## Slack App Alert Channel
|
|
52
|
+
|
|
53
|
+
**Reference:** https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { SlackAppAlertChannel } from 'checkly/constructs'
|
|
57
|
+
|
|
58
|
+
export const alertsOpsAliceSlackAppAlert = new SlackAppAlertChannel('example-slack-app-alert-channel', {
|
|
59
|
+
slackChannels: [
|
|
60
|
+
'#alerts',
|
|
61
|
+
'#ops',
|
|
62
|
+
'@alice',
|
|
63
|
+
],
|
|
64
|
+
})
|
|
65
|
+
```
|
|
@@ -113,7 +113,7 @@ Heartbeat Monitor construct (`HeartbeatMonitor`)
|
|
|
113
113
|
CheckGroupV2 construct (`CheckGroupV2`) for organizing checks
|
|
114
114
|
|
|
115
115
|
### `npx checkly skills configure alert-channels`
|
|
116
|
-
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), and Slack (`
|
|
116
|
+
Email (`EmailAlertChannel`), Phone (`PhoneCallAlertChannel`), Slack (`SlackAlertChannel`), and Slack App (`SlackAppAlertChannel`) alert channels
|
|
117
117
|
|
|
118
118
|
### `npx checkly skills configure supporting-constructs`
|
|
119
119
|
Status pages (`StatusPage`), dashboards (`Dashboard`), maintenance windows (`MaintenanceWindow`), and private locations (`PrivateLocation`)
|
|
@@ -5,9 +5,10 @@ import { OpsgenieAlertChannelCodegen } from './opsgenie-alert-channel-codegen.js
|
|
|
5
5
|
import { PagerdutyAlertChannelCodegen } from './pagerduty-alert-channel-codegen.js';
|
|
6
6
|
import { PhoneCallAlertChannelCodegen } from './phone-call-alert-channel-codegen.js';
|
|
7
7
|
import { SlackAlertChannelCodegen } from './slack-alert-channel-codegen.js';
|
|
8
|
+
import { SlackAppAlertChannelCodegen } from './slack-app-alert-channel-codegen.js';
|
|
8
9
|
import { SmsAlertChannelCodegen } from './sms-alert-channel-codegen.js';
|
|
9
10
|
import { WebhookAlertChannelCodegen } from './webhook-alert-channel-codegen.js';
|
|
10
|
-
export type AlertChannelType = 'CALL' | 'EMAIL' | 'OPSGENIE' | 'PAGERDUTY' | 'SLACK' | 'SMS' | 'WEBHOOK';
|
|
11
|
+
export type AlertChannelType = 'CALL' | 'EMAIL' | 'OPSGENIE' | 'PAGERDUTY' | 'SLACK' | 'SLACK_APP' | 'SMS' | 'WEBHOOK';
|
|
11
12
|
export interface AlertChannelResource {
|
|
12
13
|
id: number;
|
|
13
14
|
type: AlertChannelType;
|
|
@@ -25,6 +26,7 @@ export declare class AlertChannelCodegen extends Codegen<AlertChannelResource> {
|
|
|
25
26
|
opsgenieCodegen: OpsgenieAlertChannelCodegen;
|
|
26
27
|
pagerdutyCodegen: PagerdutyAlertChannelCodegen;
|
|
27
28
|
slackCodegen: SlackAlertChannelCodegen;
|
|
29
|
+
slackAppCodegen: SlackAppAlertChannelCodegen;
|
|
28
30
|
smsCodegen: SmsAlertChannelCodegen;
|
|
29
31
|
webhookCodegen: WebhookAlertChannelCodegen;
|
|
30
32
|
codegensByType: Record<AlertChannelType, Codegen<any>>;
|
|
@@ -5,6 +5,7 @@ import { OpsgenieAlertChannelCodegen } from './opsgenie-alert-channel-codegen.js
|
|
|
5
5
|
import { PagerdutyAlertChannelCodegen } from './pagerduty-alert-channel-codegen.js';
|
|
6
6
|
import { PhoneCallAlertChannelCodegen } from './phone-call-alert-channel-codegen.js';
|
|
7
7
|
import { SlackAlertChannelCodegen } from './slack-alert-channel-codegen.js';
|
|
8
|
+
import { SlackAppAlertChannelCodegen } from './slack-app-alert-channel-codegen.js';
|
|
8
9
|
import { SmsAlertChannelCodegen } from './sms-alert-channel-codegen.js';
|
|
9
10
|
import { WebhookAlertChannelCodegen } from './webhook-alert-channel-codegen.js';
|
|
10
11
|
export function buildAlertChannelProps(builder, resource) {
|
|
@@ -45,6 +46,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
45
46
|
opsgenieCodegen;
|
|
46
47
|
pagerdutyCodegen;
|
|
47
48
|
slackCodegen;
|
|
49
|
+
slackAppCodegen;
|
|
48
50
|
smsCodegen;
|
|
49
51
|
webhookCodegen;
|
|
50
52
|
codegensByType;
|
|
@@ -55,6 +57,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
55
57
|
this.opsgenieCodegen = new OpsgenieAlertChannelCodegen(program);
|
|
56
58
|
this.pagerdutyCodegen = new PagerdutyAlertChannelCodegen(program);
|
|
57
59
|
this.slackCodegen = new SlackAlertChannelCodegen(program);
|
|
60
|
+
this.slackAppCodegen = new SlackAppAlertChannelCodegen(program);
|
|
58
61
|
this.smsCodegen = new SmsAlertChannelCodegen(program);
|
|
59
62
|
this.webhookCodegen = new WebhookAlertChannelCodegen(program);
|
|
60
63
|
this.codegensByType = {
|
|
@@ -63,6 +66,7 @@ export class AlertChannelCodegen extends Codegen {
|
|
|
63
66
|
OPSGENIE: this.opsgenieCodegen,
|
|
64
67
|
PAGERDUTY: this.pagerdutyCodegen,
|
|
65
68
|
SLACK: this.slackCodegen,
|
|
69
|
+
SLACK_APP: this.slackAppCodegen,
|
|
66
70
|
SMS: this.smsCodegen,
|
|
67
71
|
WEBHOOK: this.webhookCodegen,
|
|
68
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAA8C,IAAI,EAAE,KAAK,EAAS,MAAM,uBAAuB,CAAA;AAEtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AACnF,OAAO,EAAE,4BAA4B,EAAE,M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ED,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACnC,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAA8B,EAAE,OAAgB;QAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,+DAA+D,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAA;QACnG,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAA8B,EAAE,OAAgB;QAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;QAClD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,+DAA+D,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAA;QACnG,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;CACF"}
|
|
@@ -2,6 +2,7 @@ export * from './project.js';
|
|
|
2
2
|
export * from './sms-alert-channel.js';
|
|
3
3
|
export * from './email-alert-channel.js';
|
|
4
4
|
export * from './slack-alert-channel.js';
|
|
5
|
+
export * from './slack-app-alert-channel.js';
|
|
5
6
|
export * from './opsgenie-alert-channel.js';
|
|
6
7
|
export * from './pagerduty-alert-channel.js';
|
|
7
8
|
export * from './webhook-alert-channel.js';
|
package/dist/constructs/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './project.js';
|
|
|
2
2
|
export * from './sms-alert-channel.js';
|
|
3
3
|
export * from './email-alert-channel.js';
|
|
4
4
|
export * from './slack-alert-channel.js';
|
|
5
|
+
export * from './slack-app-alert-channel.js';
|
|
5
6
|
export * from './opsgenie-alert-channel.js';
|
|
6
7
|
export * from './pagerduty-alert-channel.js';
|
|
7
8
|
export * from './webhook-alert-channel.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constructs/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wCAAwC,CAAA;AACtD,cAAc,wCAAwC,CAAA;AACtD,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3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A8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Codegen, Context } from './internal/codegen/index.js';
|
|
2
|
+
import { AlertChannelResource } from './alert-channel-codegen.js';
|
|
3
|
+
export interface SlackAppAlertChannelResource extends AlertChannelResource {
|
|
4
|
+
type: 'SLACK_APP';
|
|
5
|
+
config: {
|
|
6
|
+
slackChannels: string[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare class SlackAppAlertChannelCodegen extends Codegen<SlackAppAlertChannelResource> {
|
|
10
|
+
describe(resource: SlackAppAlertChannelResource): string;
|
|
11
|
+
prepare(logicalId: string, resource: SlackAppAlertChannelResource, context: Context): void;
|
|
12
|
+
gencode(logicalId: string, resource: SlackAppAlertChannelResource, context: Context): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Codegen } from './internal/codegen/index.js';
|
|
2
|
+
import { decl, expr, ident } from '../sourcegen/index.js';
|
|
3
|
+
import { buildAlertChannelProps } from './alert-channel-codegen.js';
|
|
4
|
+
const construct = 'SlackAppAlertChannel';
|
|
5
|
+
export class SlackAppAlertChannelCodegen extends Codegen {
|
|
6
|
+
describe(resource) {
|
|
7
|
+
return `Slack App Alert Channel: ${resource.config.slackChannels.join(', ')}`;
|
|
8
|
+
}
|
|
9
|
+
prepare(logicalId, resource, context) {
|
|
10
|
+
const { slackChannels } = resource.config;
|
|
11
|
+
const name = slackChannels.join(',');
|
|
12
|
+
const filename = context.filePath('resources/alert-channels/slack-app', name, {
|
|
13
|
+
unique: true,
|
|
14
|
+
});
|
|
15
|
+
context.registerAlertChannel(resource.id, `${name} slack app alert`, this.program.generatedConstructFile(filename.fullPath));
|
|
16
|
+
}
|
|
17
|
+
gencode(logicalId, resource, context) {
|
|
18
|
+
const { id, file } = context.lookupAlertChannel(resource.id);
|
|
19
|
+
file.namedImport(construct, 'checkly/constructs');
|
|
20
|
+
const { config } = resource;
|
|
21
|
+
file.section(decl(id, builder => {
|
|
22
|
+
builder.variable(expr(ident(construct), builder => {
|
|
23
|
+
builder.new(builder => {
|
|
24
|
+
builder.string(logicalId);
|
|
25
|
+
builder.object(builder => {
|
|
26
|
+
builder.array('slackChannels', arrayBuilder => {
|
|
27
|
+
for (const channel of config.slackChannels) {
|
|
28
|
+
arrayBuilder.string(channel);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
buildAlertChannelProps(builder, resource);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}));
|
|
35
|
+
builder.export();
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=slack-app-alert-channel-codegen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-app-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/slack-app-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KA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CAAC,OAAO,CAAC,EAAE;oBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;oBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;wBACvB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,YAAY,CAAC,EAAE;4BAC5C,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;gCAC3C,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;4BAC9B,CAAC;wBACH,CAAC,CAAC,CAAA;wBACF,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;oBAC3C,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AlertChannel, AlertChannelProps } from './alert-channel.js';
|
|
2
|
+
export interface SlackAppAlertChannelProps extends AlertChannelProps {
|
|
3
|
+
slackChannels: string[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Checkly Slack App Alert Channel
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
*
|
|
10
|
+
* This class make use of the Alert Channel endpoints.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SlackAppAlertChannel extends AlertChannel {
|
|
13
|
+
slackChannels: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Constructs the Slack App Alert Channel instance
|
|
16
|
+
*
|
|
17
|
+
* @param logicalId unique project-scoped resource name identification
|
|
18
|
+
* @param props Slack App alert channel configuration properties
|
|
19
|
+
*
|
|
20
|
+
* {@link https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/ Read more in the docs}
|
|
21
|
+
*/
|
|
22
|
+
constructor(logicalId: string, props: SlackAppAlertChannelProps);
|
|
23
|
+
describe(): string;
|
|
24
|
+
synthesize(): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AlertChannel } from './alert-channel.js';
|
|
2
|
+
import { Session } from './project.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a Checkly Slack App Alert Channel
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*
|
|
8
|
+
* This class make use of the Alert Channel endpoints.
|
|
9
|
+
*/
|
|
10
|
+
export class SlackAppAlertChannel extends AlertChannel {
|
|
11
|
+
slackChannels;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs the Slack App Alert Channel instance
|
|
14
|
+
*
|
|
15
|
+
* @param logicalId unique project-scoped resource name identification
|
|
16
|
+
* @param props Slack App alert channel configuration properties
|
|
17
|
+
*
|
|
18
|
+
* {@link https://www.checklyhq.com/docs/constructs/slack-app-alert-channel/ Read more in the docs}
|
|
19
|
+
*/
|
|
20
|
+
constructor(logicalId, props) {
|
|
21
|
+
super(logicalId, props);
|
|
22
|
+
this.slackChannels = props.slackChannels;
|
|
23
|
+
Session.registerConstruct(this);
|
|
24
|
+
}
|
|
25
|
+
describe() {
|
|
26
|
+
return `SlackAppAlertChannel:${this.logicalId}`;
|
|
27
|
+
}
|
|
28
|
+
synthesize() {
|
|
29
|
+
return {
|
|
30
|
+
...super.synthesize(),
|
|
31
|
+
type: 'SLACK_APP',
|
|
32
|
+
config: {
|
|
33
|
+
slackChannels: this.slackChannels,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=slack-app-alert-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack-app-alert-channel.js","sourceRoot":"","sources":["../../src/constructs/slack-app-alert-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAMtC;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IACpD,aAAa,CAAU;IACvB;;;;;;;OAOG;IACH,YAAa,SAAiB,EAAE,KAAgC;QAC9D,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;QACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAA;QACxC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACjC,CAAC;IAED,QAAQ;QACN,OAAO,wBAAwB,IAAI,CAAC,SAAS,EAAE,CAAA;IACjD,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,KAAK,CAAC,UAAU,EAAE;YACrB,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC;SACF,CAAA;IACH,CAAC;CACF"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1517,6 +1517,162 @@
|
|
|
1517
1517
|
"stats.js"
|
|
1518
1518
|
]
|
|
1519
1519
|
},
|
|
1520
|
+
"debug:parse-file": {
|
|
1521
|
+
"aliases": [],
|
|
1522
|
+
"args": {},
|
|
1523
|
+
"description": "Parses and outputs relevant details of a code file.",
|
|
1524
|
+
"flags": {
|
|
1525
|
+
"file": {
|
|
1526
|
+
"name": "file",
|
|
1527
|
+
"required": true,
|
|
1528
|
+
"hasDynamicHelp": false,
|
|
1529
|
+
"multiple": false,
|
|
1530
|
+
"type": "option"
|
|
1531
|
+
},
|
|
1532
|
+
"restricted": {
|
|
1533
|
+
"name": "restricted",
|
|
1534
|
+
"allowNo": false,
|
|
1535
|
+
"type": "boolean"
|
|
1536
|
+
},
|
|
1537
|
+
"detect-workspace": {
|
|
1538
|
+
"name": "detect-workspace",
|
|
1539
|
+
"allowNo": true,
|
|
1540
|
+
"type": "boolean"
|
|
1541
|
+
},
|
|
1542
|
+
"supported-module": {
|
|
1543
|
+
"name": "supported-module",
|
|
1544
|
+
"default": [],
|
|
1545
|
+
"delimiter": ",",
|
|
1546
|
+
"hasDynamicHelp": false,
|
|
1547
|
+
"multiple": true,
|
|
1548
|
+
"type": "option"
|
|
1549
|
+
},
|
|
1550
|
+
"check-unsupported-modules": {
|
|
1551
|
+
"name": "check-unsupported-modules",
|
|
1552
|
+
"allowNo": false,
|
|
1553
|
+
"type": "boolean"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"hasDynamicHelp": false,
|
|
1557
|
+
"hidden": true,
|
|
1558
|
+
"hiddenAliases": [],
|
|
1559
|
+
"id": "debug:parse-file",
|
|
1560
|
+
"pluginAlias": "checkly",
|
|
1561
|
+
"pluginName": "checkly",
|
|
1562
|
+
"pluginType": "core",
|
|
1563
|
+
"strict": true,
|
|
1564
|
+
"enableJsonFlag": false,
|
|
1565
|
+
"isESM": true,
|
|
1566
|
+
"relativePath": [
|
|
1567
|
+
"dist",
|
|
1568
|
+
"commands",
|
|
1569
|
+
"debug",
|
|
1570
|
+
"parse-file.js"
|
|
1571
|
+
]
|
|
1572
|
+
},
|
|
1573
|
+
"debug:parse-playwright-config": {
|
|
1574
|
+
"aliases": [],
|
|
1575
|
+
"args": {},
|
|
1576
|
+
"description": "Parses and outputs relevant details of a Playwright configuration file.",
|
|
1577
|
+
"flags": {
|
|
1578
|
+
"file": {
|
|
1579
|
+
"env": "CHECKLY_PLAYWRIGHT_CONFIG_FILE",
|
|
1580
|
+
"name": "file",
|
|
1581
|
+
"default": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/playwright.config.ts",
|
|
1582
|
+
"hasDynamicHelp": false,
|
|
1583
|
+
"multiple": false,
|
|
1584
|
+
"type": "option"
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"hasDynamicHelp": false,
|
|
1588
|
+
"hidden": true,
|
|
1589
|
+
"hiddenAliases": [],
|
|
1590
|
+
"id": "debug:parse-playwright-config",
|
|
1591
|
+
"pluginAlias": "checkly",
|
|
1592
|
+
"pluginName": "checkly",
|
|
1593
|
+
"pluginType": "core",
|
|
1594
|
+
"strict": true,
|
|
1595
|
+
"enableJsonFlag": false,
|
|
1596
|
+
"isESM": true,
|
|
1597
|
+
"relativePath": [
|
|
1598
|
+
"dist",
|
|
1599
|
+
"commands",
|
|
1600
|
+
"debug",
|
|
1601
|
+
"parse-playwright-config.js"
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
"debug:parse-project": {
|
|
1605
|
+
"aliases": [],
|
|
1606
|
+
"args": {},
|
|
1607
|
+
"description": "Parses a Checkly project.",
|
|
1608
|
+
"flags": {
|
|
1609
|
+
"config": {
|
|
1610
|
+
"char": "c",
|
|
1611
|
+
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
1612
|
+
"env": "CHECKLY_CONFIG_FILE",
|
|
1613
|
+
"name": "config",
|
|
1614
|
+
"hasDynamicHelp": false,
|
|
1615
|
+
"multiple": false,
|
|
1616
|
+
"type": "option"
|
|
1617
|
+
},
|
|
1618
|
+
"default-runtime": {
|
|
1619
|
+
"description": "The default runtime to use if none is specified.",
|
|
1620
|
+
"env": "CHECKLY_DEFAULT_RUNTIME",
|
|
1621
|
+
"name": "default-runtime",
|
|
1622
|
+
"default": "2025.04",
|
|
1623
|
+
"hasDynamicHelp": false,
|
|
1624
|
+
"multiple": false,
|
|
1625
|
+
"type": "option"
|
|
1626
|
+
},
|
|
1627
|
+
"verify-runtime-dependencies": {
|
|
1628
|
+
"description": "[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.",
|
|
1629
|
+
"env": "CHECKLY_VERIFY_RUNTIME_DEPENDENCIES",
|
|
1630
|
+
"name": "verify-runtime-dependencies",
|
|
1631
|
+
"allowNo": true,
|
|
1632
|
+
"type": "boolean"
|
|
1633
|
+
},
|
|
1634
|
+
"emulate-pw-test": {
|
|
1635
|
+
"description": "Pretend to be the pw-test command. Affects validation.",
|
|
1636
|
+
"env": "CHECKLY_EMULATE_PW_TEST",
|
|
1637
|
+
"name": "emulate-pw-test",
|
|
1638
|
+
"allowNo": false,
|
|
1639
|
+
"type": "boolean"
|
|
1640
|
+
},
|
|
1641
|
+
"include": {
|
|
1642
|
+
"description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
|
|
1643
|
+
"name": "include",
|
|
1644
|
+
"default": [],
|
|
1645
|
+
"hasDynamicHelp": false,
|
|
1646
|
+
"multiple": true,
|
|
1647
|
+
"type": "option"
|
|
1648
|
+
},
|
|
1649
|
+
"inject-private-location": {
|
|
1650
|
+
"description": "Pretend that the given private location exists (e.g., \"70c4ded4-2229-45a7-acf4-6b1eb56a86df:my-external-private-location\").",
|
|
1651
|
+
"name": "inject-private-location",
|
|
1652
|
+
"default": [],
|
|
1653
|
+
"delimiter": ",",
|
|
1654
|
+
"hasDynamicHelp": false,
|
|
1655
|
+
"multiple": true,
|
|
1656
|
+
"type": "option"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
"hasDynamicHelp": false,
|
|
1660
|
+
"hidden": true,
|
|
1661
|
+
"hiddenAliases": [],
|
|
1662
|
+
"id": "debug:parse-project",
|
|
1663
|
+
"pluginAlias": "checkly",
|
|
1664
|
+
"pluginName": "checkly",
|
|
1665
|
+
"pluginType": "core",
|
|
1666
|
+
"strict": true,
|
|
1667
|
+
"enableJsonFlag": false,
|
|
1668
|
+
"isESM": true,
|
|
1669
|
+
"relativePath": [
|
|
1670
|
+
"dist",
|
|
1671
|
+
"commands",
|
|
1672
|
+
"debug",
|
|
1673
|
+
"parse-project.js"
|
|
1674
|
+
]
|
|
1675
|
+
},
|
|
1520
1676
|
"env:add": {
|
|
1521
1677
|
"aliases": [],
|
|
1522
1678
|
"args": {
|
|
@@ -1734,162 +1890,6 @@
|
|
|
1734
1890
|
"update.js"
|
|
1735
1891
|
]
|
|
1736
1892
|
},
|
|
1737
|
-
"debug:parse-file": {
|
|
1738
|
-
"aliases": [],
|
|
1739
|
-
"args": {},
|
|
1740
|
-
"description": "Parses and outputs relevant details of a code file.",
|
|
1741
|
-
"flags": {
|
|
1742
|
-
"file": {
|
|
1743
|
-
"name": "file",
|
|
1744
|
-
"required": true,
|
|
1745
|
-
"hasDynamicHelp": false,
|
|
1746
|
-
"multiple": false,
|
|
1747
|
-
"type": "option"
|
|
1748
|
-
},
|
|
1749
|
-
"restricted": {
|
|
1750
|
-
"name": "restricted",
|
|
1751
|
-
"allowNo": false,
|
|
1752
|
-
"type": "boolean"
|
|
1753
|
-
},
|
|
1754
|
-
"detect-workspace": {
|
|
1755
|
-
"name": "detect-workspace",
|
|
1756
|
-
"allowNo": true,
|
|
1757
|
-
"type": "boolean"
|
|
1758
|
-
},
|
|
1759
|
-
"supported-module": {
|
|
1760
|
-
"name": "supported-module",
|
|
1761
|
-
"default": [],
|
|
1762
|
-
"delimiter": ",",
|
|
1763
|
-
"hasDynamicHelp": false,
|
|
1764
|
-
"multiple": true,
|
|
1765
|
-
"type": "option"
|
|
1766
|
-
},
|
|
1767
|
-
"check-unsupported-modules": {
|
|
1768
|
-
"name": "check-unsupported-modules",
|
|
1769
|
-
"allowNo": false,
|
|
1770
|
-
"type": "boolean"
|
|
1771
|
-
}
|
|
1772
|
-
},
|
|
1773
|
-
"hasDynamicHelp": false,
|
|
1774
|
-
"hidden": true,
|
|
1775
|
-
"hiddenAliases": [],
|
|
1776
|
-
"id": "debug:parse-file",
|
|
1777
|
-
"pluginAlias": "checkly",
|
|
1778
|
-
"pluginName": "checkly",
|
|
1779
|
-
"pluginType": "core",
|
|
1780
|
-
"strict": true,
|
|
1781
|
-
"enableJsonFlag": false,
|
|
1782
|
-
"isESM": true,
|
|
1783
|
-
"relativePath": [
|
|
1784
|
-
"dist",
|
|
1785
|
-
"commands",
|
|
1786
|
-
"debug",
|
|
1787
|
-
"parse-file.js"
|
|
1788
|
-
]
|
|
1789
|
-
},
|
|
1790
|
-
"debug:parse-playwright-config": {
|
|
1791
|
-
"aliases": [],
|
|
1792
|
-
"args": {},
|
|
1793
|
-
"description": "Parses and outputs relevant details of a Playwright configuration file.",
|
|
1794
|
-
"flags": {
|
|
1795
|
-
"file": {
|
|
1796
|
-
"env": "CHECKLY_PLAYWRIGHT_CONFIG_FILE",
|
|
1797
|
-
"name": "file",
|
|
1798
|
-
"default": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/playwright.config.ts",
|
|
1799
|
-
"hasDynamicHelp": false,
|
|
1800
|
-
"multiple": false,
|
|
1801
|
-
"type": "option"
|
|
1802
|
-
}
|
|
1803
|
-
},
|
|
1804
|
-
"hasDynamicHelp": false,
|
|
1805
|
-
"hidden": true,
|
|
1806
|
-
"hiddenAliases": [],
|
|
1807
|
-
"id": "debug:parse-playwright-config",
|
|
1808
|
-
"pluginAlias": "checkly",
|
|
1809
|
-
"pluginName": "checkly",
|
|
1810
|
-
"pluginType": "core",
|
|
1811
|
-
"strict": true,
|
|
1812
|
-
"enableJsonFlag": false,
|
|
1813
|
-
"isESM": true,
|
|
1814
|
-
"relativePath": [
|
|
1815
|
-
"dist",
|
|
1816
|
-
"commands",
|
|
1817
|
-
"debug",
|
|
1818
|
-
"parse-playwright-config.js"
|
|
1819
|
-
]
|
|
1820
|
-
},
|
|
1821
|
-
"debug:parse-project": {
|
|
1822
|
-
"aliases": [],
|
|
1823
|
-
"args": {},
|
|
1824
|
-
"description": "Parses a Checkly project.",
|
|
1825
|
-
"flags": {
|
|
1826
|
-
"config": {
|
|
1827
|
-
"char": "c",
|
|
1828
|
-
"description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
|
|
1829
|
-
"env": "CHECKLY_CONFIG_FILE",
|
|
1830
|
-
"name": "config",
|
|
1831
|
-
"hasDynamicHelp": false,
|
|
1832
|
-
"multiple": false,
|
|
1833
|
-
"type": "option"
|
|
1834
|
-
},
|
|
1835
|
-
"default-runtime": {
|
|
1836
|
-
"description": "The default runtime to use if none is specified.",
|
|
1837
|
-
"env": "CHECKLY_DEFAULT_RUNTIME",
|
|
1838
|
-
"name": "default-runtime",
|
|
1839
|
-
"default": "2025.04",
|
|
1840
|
-
"hasDynamicHelp": false,
|
|
1841
|
-
"multiple": false,
|
|
1842
|
-
"type": "option"
|
|
1843
|
-
},
|
|
1844
|
-
"verify-runtime-dependencies": {
|
|
1845
|
-
"description": "[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.",
|
|
1846
|
-
"env": "CHECKLY_VERIFY_RUNTIME_DEPENDENCIES",
|
|
1847
|
-
"name": "verify-runtime-dependencies",
|
|
1848
|
-
"allowNo": true,
|
|
1849
|
-
"type": "boolean"
|
|
1850
|
-
},
|
|
1851
|
-
"emulate-pw-test": {
|
|
1852
|
-
"description": "Pretend to be the pw-test command. Affects validation.",
|
|
1853
|
-
"env": "CHECKLY_EMULATE_PW_TEST",
|
|
1854
|
-
"name": "emulate-pw-test",
|
|
1855
|
-
"allowNo": false,
|
|
1856
|
-
"type": "boolean"
|
|
1857
|
-
},
|
|
1858
|
-
"include": {
|
|
1859
|
-
"description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
|
|
1860
|
-
"name": "include",
|
|
1861
|
-
"default": [],
|
|
1862
|
-
"hasDynamicHelp": false,
|
|
1863
|
-
"multiple": true,
|
|
1864
|
-
"type": "option"
|
|
1865
|
-
},
|
|
1866
|
-
"inject-private-location": {
|
|
1867
|
-
"description": "Pretend that the given private location exists (e.g., \"70c4ded4-2229-45a7-acf4-6b1eb56a86df:my-external-private-location\").",
|
|
1868
|
-
"name": "inject-private-location",
|
|
1869
|
-
"default": [],
|
|
1870
|
-
"delimiter": ",",
|
|
1871
|
-
"hasDynamicHelp": false,
|
|
1872
|
-
"multiple": true,
|
|
1873
|
-
"type": "option"
|
|
1874
|
-
}
|
|
1875
|
-
},
|
|
1876
|
-
"hasDynamicHelp": false,
|
|
1877
|
-
"hidden": true,
|
|
1878
|
-
"hiddenAliases": [],
|
|
1879
|
-
"id": "debug:parse-project",
|
|
1880
|
-
"pluginAlias": "checkly",
|
|
1881
|
-
"pluginName": "checkly",
|
|
1882
|
-
"pluginType": "core",
|
|
1883
|
-
"strict": true,
|
|
1884
|
-
"enableJsonFlag": false,
|
|
1885
|
-
"isESM": true,
|
|
1886
|
-
"relativePath": [
|
|
1887
|
-
"dist",
|
|
1888
|
-
"commands",
|
|
1889
|
-
"debug",
|
|
1890
|
-
"parse-project.js"
|
|
1891
|
-
]
|
|
1892
|
-
},
|
|
1893
1893
|
"import:apply": {
|
|
1894
1894
|
"aliases": [],
|
|
1895
1895
|
"args": {},
|
|
@@ -2756,5 +2756,5 @@
|
|
|
2756
2756
|
]
|
|
2757
2757
|
}
|
|
2758
2758
|
},
|
|
2759
|
-
"version": "8.
|
|
2759
|
+
"version": "8.2.0"
|
|
2760
2760
|
}
|