deepline 0.3.395 → 0.3.396
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/bundling-sources/sdk/src/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/cli/{auth-NMQXZRS7.mjs → auth-3LTD62VL.mjs} +4 -4
- package/dist/cli/auth-562JPKOM.js +39 -0
- package/dist/cli/{billing-5MVXZRS6.mjs → billing-DP7ZAJBO.mjs} +5 -5
- package/dist/cli/{billing-Z4JTGUU3.js → billing-PA5OXEM5.js} +76 -76
- package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-23GAA3YO.mjs} +1 -1
- package/dist/cli/{chunk-LZLBR2SF.js → chunk-2VOLOWYZ.js} +1087 -1056
- package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-3T4MCB5R.mjs} +1026 -995
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
- package/dist/cli/{chunk-UKU6JM3S.js → chunk-772W2SAU.js} +8 -8
- package/dist/cli/{chunk-K5T3EN6D.js → chunk-7Z66NHUC.js} +26 -26
- package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-AUYXWELC.mjs} +2 -2
- package/dist/cli/{chunk-PZ5BZ76S.js → chunk-AVHLATII.js} +50 -50
- package/dist/cli/{chunk-MYIBHORT.js → chunk-DC6LTULT.js} +2 -2
- package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
- package/dist/cli/{chunk-TO2MWPGR.js → chunk-GNN4MY5X.js} +1 -1
- package/dist/cli/{chunk-OCSG6X67.mjs → chunk-I4T4XAA2.mjs} +4 -4
- package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-JCN4DHF7.mjs} +2 -2
- package/dist/cli/{chunk-R4XZO6Z5.js → chunk-KAEZNPUM.js} +23 -8
- package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
- package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-LOGGNW4H.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
- package/dist/cli/{chunk-UCXK2DS4.js → chunk-ME6XRFLY.js} +15 -15
- package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-MR6XCBQJ.mjs} +2 -2
- package/dist/cli/{chunk-BON3DRC6.mjs → chunk-NHB5YUCS.mjs} +1 -1
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
- package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-QHGPA362.mjs} +18 -3
- package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-RMTASUAK.js} +65 -65
- package/dist/cli/{chunk-HRWUQJ4K.js → chunk-RTO5QZWT.js} +6 -6
- package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-TLQ3FZOC.mjs} +3 -3
- package/dist/cli/{chunk-56IFFVIB.js → chunk-V7UP2F4U.js} +4 -4
- package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-VE3U3SQC.mjs} +1 -1
- package/dist/cli/{chunk-36ML3YKA.js → chunk-WQJJNIMQ.js} +13 -13
- package/dist/cli/{chunk-47M6HPGP.mjs → chunk-XKZXO7D3.mjs} +1 -1
- package/dist/cli/{csv-SVOD5UBH.mjs → csv-RLRR74RQ.mjs} +3 -3
- package/dist/cli/{csv-HTS5ZYQ4.js → csv-TF576S77.js} +12 -12
- package/dist/cli/{db-7AP4P52N.js → db-FDBJUTFO.js} +30 -30
- package/dist/cli/{db-7QLNI3Q4.mjs → db-XORGNBIC.mjs} +5 -5
- package/dist/cli/{describe-DBRY5BNK.mjs → describe-6O2ENKTP.mjs} +86 -68
- package/dist/cli/{describe-YKOE54ZO.js → describe-EFWNECHI.js} +100 -82
- package/dist/cli/{executions-GRQXTB2P.js → executions-SFYAXPF4.js} +7 -7
- package/dist/cli/{executions-QNZTPNG4.mjs → executions-YPP7WR77.mjs} +5 -5
- package/dist/cli/{feedback-ZOLA2KY7.js → feedback-5UZFYMGB.js} +7 -7
- package/dist/cli/{feedback-JMCSR624.mjs → feedback-RBGA5ARU.mjs} +3 -3
- package/dist/cli/git-5LDY5ZID.js +23 -0
- package/dist/cli/{git-LJGL2IHS.mjs → git-IRSAJEK2.mjs} +4 -4
- package/dist/cli/index.js +94 -94
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-CVAOQY2F.js} +7 -7
- package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
- package/dist/cli/{monitors-WMZ6HJZX.js → monitors-4OMRXCXP.js} +86 -86
- package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-ILZ2XHYG.mjs} +5 -5
- package/dist/cli/{org-U3WA2NQM.mjs → org-QDDXAE3J.mjs} +5 -5
- package/dist/cli/{org-PFHM5ZLY.js → org-YGNJDD2X.js} +65 -65
- package/dist/cli/{chunk-4KLCLLTO.js → play-L535H26U.js} +266 -323
- package/dist/cli/{chunk-XMAPE2KH.mjs → play-VT6OHB2D.mjs} +72 -129
- package/dist/cli/{providers-XYMHLKCA.js → providers-GPZ6PQAL.js} +8 -8
- package/dist/cli/{providers-QBBRFBOH.mjs → providers-KG4W5MPK.mjs} +5 -5
- package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-2JDGTXIG.mjs} +3 -3
- package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-UI27S5LO.js} +5 -5
- package/dist/cli/search-MGWROZ33.js +28 -0
- package/dist/cli/{search-X6W6GRHS.mjs → search-PW3RAUX7.mjs} +6 -6
- package/dist/cli/{secrets-N55B67H6.mjs → secrets-HNOMK5A2.mjs} +5 -5
- package/dist/cli/{secrets-UHG6OQFD.js → secrets-WFAXOUZE.js} +14 -14
- package/dist/cli/{sessions-57L5MGHN.js → sessions-366KROUA.js} +5 -5
- package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-XLX3E5UO.mjs} +4 -4
- package/dist/cli/{settings-ATX4U5AS.js → settings-GADAG2UK.js} +75 -75
- package/dist/cli/{settings-Q24HRAQI.mjs → settings-YNZ4YKCH.mjs} +8 -8
- package/dist/cli/{setup-77ZWLVHT.mjs → setup-PSEHIUXO.mjs} +6 -6
- package/dist/cli/{setup-EJCNOUCE.js → setup-R5YO7GT6.js} +41 -41
- package/dist/cli/skills-JF2LPEGM.js +28 -0
- package/dist/cli/{skills-XIS5AWQI.mjs → skills-LTQBP6CZ.mjs} +4 -4
- package/dist/cli/tools-CP2PEFRN.js +34 -0
- package/dist/cli/{tools-WCKLYEGQ.mjs → tools-UAXDWU63.mjs} +11 -19
- package/dist/cli/update-HZHZOU6C.js +28 -0
- package/dist/cli/{update-UT5WANMV.mjs → update-SMNIBIMS.mjs} +6 -6
- package/dist/cli/{workflow-226QYUN2.js → workflow-AOQVZHMD.js} +16 -16
- package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-IKGMBGF6.mjs} +6 -6
- package/dist/{client-CivP-PAI.d.ts → client-Bgis7F6-.d.ts} +2 -1
- package/dist/{client-hdFtwhTm.d.mts → client-DiGl8ska.d.mts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -11
- package/dist/index.mjs +9 -9
- package/dist/install-integrity.json +78 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +4 -2
- package/dist/plays/play-description.mjs +3 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-UYCOBAL5.js +0 -39
- package/dist/cli/git-EJQLRK27.js +0 -23
- package/dist/cli/play-AGSECQFN.mjs +0 -159
- package/dist/cli/play-BR2LWGXK.js +0 -159
- package/dist/cli/search-ZVSYH5GY.js +0 -28
- package/dist/cli/skills-SPXUBLII.js +0 -28
- package/dist/cli/tools-DBHUUZJX.js +0 -42
- package/dist/cli/update-VSNFXRHJ.js +0 -28
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
|
|
6
6
|
require('./chunk-S6R3OX7B.js');
|
|
7
7
|
require('./chunk-UHNDVD3P.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-KXMNM4AQ.js');
|
|
9
9
|
require('./chunk-XDVT3GOM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
14
|
+
var _chunkME6XRFLYjs = require('./chunk-ME6XRFLY.js');
|
|
15
|
+
require('./chunk-DC6LTULT.js');
|
|
16
|
+
require('./chunk-RMTASUAK.js');
|
|
17
17
|
require('./chunk-WJYPBHTE.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
21
|
+
var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
|
|
22
|
+
require('./chunk-V7UP2F4U.js');
|
|
23
23
|
require('./chunk-XNYIZMNQ.js');
|
|
24
24
|
require('./chunk-7P5AA3SN.js');
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-GNN4MY5X.js');
|
|
26
26
|
require('./chunk-OG64RBAC.js');
|
|
27
27
|
require('./chunk-COGTRVWW.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/settings.ts
|
|
30
30
|
var _fs = require('fs');
|
|
31
|
-
var eventHelp =
|
|
31
|
+
var eventHelp = _chunkWQJJNIMQjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
32
32
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
33
33
|
).join("\n");
|
|
34
34
|
function slackDestination(settings) {
|
|
@@ -40,7 +40,7 @@ function slackDestination(settings) {
|
|
|
40
40
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
41
41
|
})
|
|
42
42
|
);
|
|
43
|
-
return
|
|
43
|
+
return _chunkWQJJNIMQjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
44
44
|
}
|
|
45
45
|
function eventLines(settings, destinationId) {
|
|
46
46
|
const enabled = new Map(
|
|
@@ -62,10 +62,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
62
62
|
return event;
|
|
63
63
|
}
|
|
64
64
|
async function printSettings(options) {
|
|
65
|
-
const settings = await new (0,
|
|
65
|
+
const settings = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotificationSettings();
|
|
66
66
|
const slack = slackDestination(settings);
|
|
67
67
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
68
|
-
|
|
68
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
69
69
|
{
|
|
70
70
|
settings,
|
|
71
71
|
render: {
|
|
@@ -120,8 +120,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
120
120
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
121
121
|
`
|
|
122
122
|
).option("--json", "Emit JSON output").action((options) => {
|
|
123
|
-
const preferences =
|
|
124
|
-
|
|
123
|
+
const preferences = _chunkME6XRFLYjs.readCliUpdatePreferences.call(void 0, );
|
|
124
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
125
125
|
{
|
|
126
126
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
127
127
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -144,8 +144,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
144
144
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
145
145
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
146
146
|
).option("--json", "Emit JSON output").action((options) => {
|
|
147
|
-
const preferences =
|
|
148
|
-
|
|
147
|
+
const preferences = _chunkME6XRFLYjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
148
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
149
149
|
{
|
|
150
150
|
ok: true,
|
|
151
151
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -166,7 +166,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
autoupdate.command("pin").description("Install and hold an exact pin-aware CLI version.").argument("<version>", "Exact semantic version from a pin-aware release").option("--json", "Emit JSON output").action(async (version, options) => {
|
|
169
|
-
process.exitCode = await
|
|
169
|
+
process.exitCode = await _chunkME6XRFLYjs.runUpdateCommand.call(void 0, {
|
|
170
170
|
pin: version,
|
|
171
171
|
json: options.json,
|
|
172
172
|
executeWithJson: true
|
|
@@ -194,15 +194,15 @@ notifications; there is no general integrations CLI.
|
|
|
194
194
|
if (destination !== "slack")
|
|
195
195
|
throw new Error("Only slack is supported.");
|
|
196
196
|
if (options.dryRun) {
|
|
197
|
-
|
|
197
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
198
198
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
199
199
|
{ json: options.json }
|
|
200
200
|
);
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
const result = await new (0,
|
|
204
|
-
const browser = options.open ?
|
|
205
|
-
|
|
203
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().connectNotificationSlack();
|
|
204
|
+
const browser = options.open ? _chunkRTO5QZWTjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
205
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
206
206
|
{
|
|
207
207
|
...result,
|
|
208
208
|
browser,
|
|
@@ -226,10 +226,10 @@ notifications; there is no general integrations CLI.
|
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
228
|
notifications.command("channels").description("List Slack channels visible to the connected Deepline app.").option("--query <text>", "Filter channels by name").option("--json", "Emit JSON output").action(async (options) => {
|
|
229
|
-
const result = await new (0,
|
|
229
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().listNotificationSlackChannels(
|
|
230
230
|
options.query
|
|
231
231
|
);
|
|
232
|
-
|
|
232
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
233
233
|
{
|
|
234
234
|
...result,
|
|
235
235
|
render: {
|
|
@@ -255,14 +255,14 @@ notifications; there is no general integrations CLI.
|
|
|
255
255
|
}
|
|
256
256
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
257
257
|
if (options.dryRun) {
|
|
258
|
-
|
|
258
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
259
259
|
{ dryRun: true, destination, target },
|
|
260
260
|
{ json: options.json }
|
|
261
261
|
);
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
|
-
const result = await new (0,
|
|
265
|
-
|
|
264
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().setNotificationSlack(target);
|
|
265
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
266
266
|
{
|
|
267
267
|
ok: true,
|
|
268
268
|
result,
|
|
@@ -288,14 +288,14 @@ notifications; there is no general integrations CLI.
|
|
|
288
288
|
notifications.command("test").description("Send a validation ping to a destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (destination, options) => {
|
|
289
289
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
290
290
|
if (options.dryRun) {
|
|
291
|
-
|
|
291
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
292
292
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
293
293
|
{ json: options.json }
|
|
294
294
|
);
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
|
-
const result = await new (0,
|
|
298
|
-
|
|
297
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().testNotificationSlack();
|
|
298
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
299
299
|
{
|
|
300
300
|
...result,
|
|
301
301
|
render: {
|
|
@@ -308,14 +308,14 @@ notifications; there is no general integrations CLI.
|
|
|
308
308
|
notifications.command("disable").description("Disable a product-notification destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the mutation without changing settings").option("--json", "Emit JSON output").action(async (destination, options) => {
|
|
309
309
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
310
310
|
if (options.dryRun) {
|
|
311
|
-
|
|
311
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
312
312
|
{ dryRun: true, destination, action: "disable" },
|
|
313
313
|
{ json: options.json }
|
|
314
314
|
);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
const result = await new (0,
|
|
318
|
-
|
|
317
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().disableNotificationSlack();
|
|
318
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
319
319
|
{
|
|
320
320
|
ok: true,
|
|
321
321
|
result,
|
|
@@ -334,10 +334,10 @@ ${eventHelp}
|
|
|
334
334
|
`
|
|
335
335
|
);
|
|
336
336
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
337
|
-
const current = await new (0,
|
|
337
|
+
const current = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotificationSettings();
|
|
338
338
|
const destination = slackDestination(current);
|
|
339
339
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
340
|
-
|
|
340
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
341
341
|
{
|
|
342
342
|
catalog: current.catalog,
|
|
343
343
|
subscriptions: current.subscriptions,
|
|
@@ -354,14 +354,14 @@ ${eventHelp}
|
|
|
354
354
|
);
|
|
355
355
|
});
|
|
356
356
|
subscriptions.command("describe").description("Describe one event from the shared product catalog.").argument("<event>", "Event ID; run subscriptions list to enumerate").option("--json", "Emit JSON output").action(async (eventType, options) => {
|
|
357
|
-
const current = await new (0,
|
|
357
|
+
const current = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotificationSettings();
|
|
358
358
|
const event = requireCatalogEvent(current, eventType);
|
|
359
359
|
const destination = slackDestination(current);
|
|
360
360
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
361
361
|
const subscription = current.subscriptions.find(
|
|
362
362
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
363
363
|
);
|
|
364
|
-
|
|
364
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
365
365
|
{
|
|
366
366
|
event,
|
|
367
367
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -382,11 +382,11 @@ ${eventHelp}
|
|
|
382
382
|
});
|
|
383
383
|
for (const enabled of [true, false]) {
|
|
384
384
|
subscriptions.command(enabled ? "enable" : "disable").description(`${enabled ? "Enable" : "Disable"} one supported event.`).argument("<event>", "Event ID; run subscriptions list to enumerate").option("--dry-run", "Validate intent without changing settings").option("--json", "Emit JSON output").action(async (eventType, options) => {
|
|
385
|
-
const client = new (0,
|
|
385
|
+
const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
|
|
386
386
|
const current = await client.getNotificationSettings();
|
|
387
387
|
const event = requireCatalogEvent(current, eventType);
|
|
388
388
|
if (options.dryRun) {
|
|
389
|
-
|
|
389
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
390
390
|
{ dryRun: true, event, enabled },
|
|
391
391
|
{ json: options.json }
|
|
392
392
|
);
|
|
@@ -396,7 +396,7 @@ ${eventHelp}
|
|
|
396
396
|
[event.id],
|
|
397
397
|
enabled
|
|
398
398
|
);
|
|
399
|
-
|
|
399
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
400
400
|
{
|
|
401
401
|
ok: true,
|
|
402
402
|
event: event.id,
|
|
@@ -417,11 +417,11 @@ ${eventHelp}
|
|
|
417
417
|
}
|
|
418
418
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
419
419
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
420
|
-
const result = await new (0,
|
|
420
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().listNotificationDlq(
|
|
421
421
|
Number(options.limit)
|
|
422
422
|
);
|
|
423
423
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
424
|
-
|
|
424
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
...result,
|
|
427
427
|
render: {
|
|
@@ -439,10 +439,10 @@ ${eventHelp}
|
|
|
439
439
|
);
|
|
440
440
|
});
|
|
441
441
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
442
|
-
const result = await new (0,
|
|
442
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
443
443
|
deliveryId
|
|
444
444
|
);
|
|
445
|
-
|
|
445
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, {
|
|
446
446
|
json: options.json
|
|
447
447
|
});
|
|
448
448
|
});
|
|
@@ -451,17 +451,17 @@ ${eventHelp}
|
|
|
451
451
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
452
452
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
453
453
|
if (options.dryRun) {
|
|
454
|
-
|
|
454
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
455
455
|
{ dryRun: true, action, deliveryId },
|
|
456
456
|
{ json: options.json }
|
|
457
457
|
);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
const result = await new (0,
|
|
460
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
461
461
|
deliveryId,
|
|
462
462
|
action
|
|
463
463
|
);
|
|
464
|
-
|
|
464
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
465
465
|
{ ok: true, action, deliveryId, result },
|
|
466
466
|
{ json: options.json }
|
|
467
467
|
);
|
|
@@ -562,8 +562,8 @@ Examples:
|
|
|
562
562
|
`
|
|
563
563
|
);
|
|
564
564
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
565
|
-
const result = await new (0,
|
|
566
|
-
|
|
565
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotificationConfiguration();
|
|
566
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...result,
|
|
569
569
|
render: {
|
|
@@ -588,21 +588,21 @@ Examples:
|
|
|
588
588
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
589
589
|
const input = await readNotificationConfigurationChange(file);
|
|
590
590
|
if (options.dryRun) {
|
|
591
|
-
|
|
591
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
592
592
|
{ dryRun: true, ...input },
|
|
593
593
|
{ json: options.json }
|
|
594
594
|
);
|
|
595
595
|
return;
|
|
596
596
|
}
|
|
597
|
-
const result = await new (0,
|
|
597
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().changeNotificationConfiguration(
|
|
598
598
|
input.expectedWorkspaceVersion,
|
|
599
599
|
input.change
|
|
600
600
|
);
|
|
601
|
-
|
|
601
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
602
602
|
});
|
|
603
603
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
604
|
-
const settings = await new (0,
|
|
605
|
-
|
|
604
|
+
const settings = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotifications();
|
|
605
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
606
606
|
{
|
|
607
607
|
events: settings.catalog,
|
|
608
608
|
render: {
|
|
@@ -620,9 +620,9 @@ Examples:
|
|
|
620
620
|
);
|
|
621
621
|
});
|
|
622
622
|
notifications.command("list").description("List named notifications and their selected Play events.").option("--json", "Emit JSON output").option("--compact", "Emit only names, state, target, and event IDs").action(async (options) => {
|
|
623
|
-
const settings = await new (0,
|
|
623
|
+
const settings = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotifications();
|
|
624
624
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
625
|
-
|
|
625
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
626
626
|
{
|
|
627
627
|
notifications: options.compact ? rules.map((rule) => ({
|
|
628
628
|
id: rule.id,
|
|
@@ -650,10 +650,10 @@ Examples:
|
|
|
650
650
|
});
|
|
651
651
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
652
652
|
const rule = notificationByName(
|
|
653
|
-
await new (0,
|
|
653
|
+
await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getNotifications(),
|
|
654
654
|
name
|
|
655
655
|
);
|
|
656
|
-
|
|
656
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
657
657
|
});
|
|
658
658
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
659
659
|
"--to <target>",
|
|
@@ -667,14 +667,14 @@ Examples:
|
|
|
667
667
|
[]
|
|
668
668
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
669
669
|
async (name, options) => {
|
|
670
|
-
const result = await new (0,
|
|
670
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().createNotificationGroup({
|
|
671
671
|
name,
|
|
672
672
|
targets: options.to,
|
|
673
673
|
legacyEvents: options.for,
|
|
674
674
|
dryRun: options.dryRun
|
|
675
675
|
});
|
|
676
676
|
if (result.mode === "dry_run") {
|
|
677
|
-
|
|
677
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
result.compatibilityMode ? {
|
|
679
679
|
dryRun: true,
|
|
680
680
|
name: result.name,
|
|
@@ -691,7 +691,7 @@ Examples:
|
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
693
|
if (result.mode === "legacy") {
|
|
694
|
-
|
|
694
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
695
695
|
{
|
|
696
696
|
notification: result.notification,
|
|
697
697
|
render: {
|
|
@@ -713,7 +713,7 @@ Examples:
|
|
|
713
713
|
);
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
717
717
|
{
|
|
718
718
|
...result,
|
|
719
719
|
render: {
|
|
@@ -749,12 +749,12 @@ Examples:
|
|
|
749
749
|
[]
|
|
750
750
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
751
751
|
async (name, options) => {
|
|
752
|
-
const client = new (0,
|
|
752
|
+
const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
|
|
753
753
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
754
754
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
755
755
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
756
756
|
if (options.dryRun) {
|
|
757
|
-
|
|
757
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
758
758
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
759
759
|
{ json: options.json }
|
|
760
760
|
);
|
|
@@ -765,15 +765,15 @@ Examples:
|
|
|
765
765
|
...target,
|
|
766
766
|
eventTypes
|
|
767
767
|
});
|
|
768
|
-
|
|
768
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
772
772
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
773
|
-
const result = await new (0,
|
|
773
|
+
const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().listNotificationChannels(
|
|
774
774
|
options.search
|
|
775
775
|
);
|
|
776
|
-
|
|
776
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
777
777
|
{
|
|
778
778
|
...result,
|
|
779
779
|
render: {
|
|
@@ -793,31 +793,31 @@ Examples:
|
|
|
793
793
|
["resume", true]
|
|
794
794
|
]) {
|
|
795
795
|
notifications.command(command).argument("<name>", "Notification name or ID").option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
796
|
-
const client = new (0,
|
|
796
|
+
const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
|
|
797
797
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
798
798
|
if (options.dryRun) {
|
|
799
|
-
|
|
799
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
800
800
|
{ dryRun: true, notification: rule.id, enabled },
|
|
801
801
|
{ json: options.json }
|
|
802
802
|
);
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
806
|
-
|
|
806
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
notifications.command("test").argument("<name>", "Notification name or ID").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
810
|
-
const client = new (0,
|
|
810
|
+
const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
|
|
811
811
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
812
812
|
if (options.dryRun) {
|
|
813
|
-
|
|
813
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
814
814
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
815
815
|
{ json: options.json }
|
|
816
816
|
);
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
const result = await client.testNotification(rule.id);
|
|
820
|
-
|
|
820
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
821
821
|
{ ...result, notification: rule.name },
|
|
822
822
|
{ json: options.json }
|
|
823
823
|
);
|
|
@@ -825,17 +825,17 @@ Examples:
|
|
|
825
825
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
826
826
|
"Archive one notification without touching its provider integration."
|
|
827
827
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
828
|
-
const client = new (0,
|
|
828
|
+
const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
|
|
829
829
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
830
830
|
if (options.dryRun) {
|
|
831
|
-
|
|
831
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
832
832
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
833
833
|
{ json: options.json }
|
|
834
834
|
);
|
|
835
835
|
return;
|
|
836
836
|
}
|
|
837
837
|
const result = await client.deleteNotification(rule.id);
|
|
838
|
-
|
|
838
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
839
839
|
{ ...result, notification: rule.name },
|
|
840
840
|
{ json: options.json }
|
|
841
841
|
);
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
PRODUCT_NOTIFICATION_EVENT_CATALOG,
|
|
4
4
|
resolveLegacySlackNotification
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MR6XCBQJ.mjs";
|
|
6
6
|
import "./chunk-6IKARAYD.mjs";
|
|
7
7
|
import "./chunk-JI2B4RZP.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-EIMG75BT.mjs";
|
|
9
9
|
import "./chunk-UBKA33KY.mjs";
|
|
10
10
|
import {
|
|
11
11
|
readCliUpdatePreferences,
|
|
12
12
|
runUpdateCommand,
|
|
13
13
|
setCliAutoUpdateEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-I4T4XAA2.mjs";
|
|
15
|
+
import "./chunk-23GAA3YO.mjs";
|
|
16
|
+
import "./chunk-TLQ3FZOC.mjs";
|
|
17
17
|
import "./chunk-GAMFK2ZP.mjs";
|
|
18
18
|
import {
|
|
19
19
|
openInBrowser,
|
|
20
20
|
printCommandEnvelope
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-XKZXO7D3.mjs";
|
|
22
|
+
import "./chunk-VE3U3SQC.mjs";
|
|
23
23
|
import "./chunk-DLIRSHV6.mjs";
|
|
24
24
|
import "./chunk-NXGCO4JB.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-NHB5YUCS.mjs";
|
|
26
26
|
import "./chunk-WZYKRD7T.mjs";
|
|
27
27
|
import "./chunk-KRD6H754.mjs";
|
|
28
28
|
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
handleWait,
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportSetupCompleted
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JCN4DHF7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-23GAA3YO.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveShellSpawn,
|
|
16
16
|
runSkillsCommand,
|
|
17
17
|
skillsStatePathForScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TLQ3FZOC.mjs";
|
|
19
19
|
import "./chunk-GAMFK2ZP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
openInBrowser,
|
|
22
22
|
printCommandEnvelope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XKZXO7D3.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
autoDetectBaseUrl,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
resolveProjectApiKeyForBaseUrl,
|
|
31
31
|
resolveProjectPinTarget,
|
|
32
32
|
sdkCliStateDirPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VE3U3SQC.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
35
|
import "./chunk-NXGCO4JB.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-NHB5YUCS.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import {
|
|
39
39
|
DEEPLINE_GTM_SKILL,
|