deepline 0.3.458 → 0.3.460
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
- package/dist/cli/{auth-APD43NYT.mjs → auth-HKA6ZVHQ.mjs} +4 -4
- package/dist/cli/auth-VDOCNR7H.js +40 -0
- package/dist/cli/{billing-QW4K272E.mjs → billing-26G44S5N.mjs} +4 -4
- package/dist/cli/{billing-TI4YOWAJ.js → billing-MTO2ZZ3G.js} +73 -73
- package/dist/cli/{chunk-7M6C4STX.js → chunk-2PBN4SZE.js} +16 -16
- package/dist/cli/{chunk-LJDJ5GPR.js → chunk-2WRO2UJ5.js} +51 -51
- package/dist/cli/{chunk-AA2DMXBN.js → chunk-2XHWOQF4.js} +50 -50
- package/dist/cli/{chunk-7MZQ64FI.mjs → chunk-526R2HON.mjs} +1 -1
- package/dist/cli/{chunk-2A63IJ2J.js → chunk-BHGII2D6.js} +6 -6
- package/dist/cli/{chunk-EO7WQN5X.mjs → chunk-CTRPCARW.mjs} +8 -8
- package/dist/cli/{chunk-ECS3KXM7.mjs → chunk-EJGBLXDZ.mjs} +1 -1
- package/dist/cli/{chunk-ZLL345RP.mjs → chunk-KADIT5NV.mjs} +2 -2
- package/dist/cli/{chunk-HJ5WE6S5.mjs → chunk-LAWEURCT.mjs} +1 -1
- package/dist/cli/{chunk-6FLTFNAY.js → chunk-LJTFZOHU.js} +8 -8
- package/dist/cli/{chunk-JIDT3SCM.js → chunk-LMAULZLF.js} +20 -20
- package/dist/cli/{chunk-LZUXLXL3.mjs → chunk-LVJOFUU7.mjs} +3 -3
- package/dist/cli/{chunk-XI6AZJPO.js → chunk-M52JQSLK.js} +3 -3
- package/dist/cli/{chunk-4TWDW7PI.mjs → chunk-MLFR6DVF.mjs} +5 -5
- package/dist/cli/{chunk-6UJJZWT2.mjs → chunk-NH6JSJW6.mjs} +3 -3
- package/dist/cli/{chunk-NDODDIEC.js → chunk-NRGGFVVB.js} +35 -35
- package/dist/cli/{chunk-X3ZRKA3V.mjs → chunk-OJ6RUKVT.mjs} +1 -1
- package/dist/cli/{chunk-U5O5TZC2.mjs → chunk-OMM54B3X.mjs} +1 -1
- package/dist/cli/{chunk-XBVZ35XJ.js → chunk-QGAWTBIR.js} +81 -81
- package/dist/cli/{chunk-DHERSOIG.js → chunk-QJLKYYPX.js} +4 -4
- package/dist/cli/{chunk-AJQUFGTJ.js → chunk-RBTTUYZZ.js} +1 -1
- package/dist/cli/{chunk-CF2GXP2O.js → chunk-RDPTDDKX.js} +2 -2
- package/dist/cli/{chunk-VYLWKTDQ.mjs → chunk-RZSTT45F.mjs} +3 -3
- package/dist/cli/{chunk-OTN6GV74.mjs → chunk-S4Q2XCGM.mjs} +1 -1
- package/dist/cli/{chunk-ECVZUWRR.js → chunk-UKFZT7RF.js} +2 -2
- package/dist/cli/{chunk-K6IHE6R5.js → chunk-VJAEA4CS.js} +8 -8
- package/dist/cli/{chunk-L27PA5GT.js → chunk-VTODQWQA.js} +10 -10
- package/dist/cli/{chunk-5KO62ZXQ.mjs → chunk-W3BE3CHK.mjs} +4 -4
- package/dist/cli/{chunk-GFGBHE43.mjs → chunk-XAYO3Q2X.mjs} +2 -2
- package/dist/cli/{chunk-NXVHTBBS.js → chunk-YHTQM5XI.js} +26 -26
- package/dist/cli/{chunk-W3OAT72T.js → chunk-YS2YBSJB.js} +6 -6
- package/dist/cli/{chunk-V6BEYE35.mjs → chunk-YULBYKAK.mjs} +2 -2
- package/dist/cli/{chunk-MNEN3RYE.mjs → chunk-YVBWO647.mjs} +2 -2
- package/dist/cli/{chunk-EMIR3EXE.mjs → chunk-ZR2RLI4O.mjs} +1 -1
- package/dist/cli/{csv-NIKB3RQX.js → csv-6FNFYJUC.js} +12 -12
- package/dist/cli/{csv-VOX5XXBB.mjs → csv-MDHT4BKK.mjs} +3 -3
- package/dist/cli/{db-GETE5AIV.mjs → db-74O3RFWY.mjs} +4 -4
- package/dist/cli/{db-ZH2NUZ3F.js → db-D6AMVOEW.js} +25 -25
- package/dist/cli/{describe-JZ6QOTPY.js → describe-QW54QQNB.js} +17 -17
- package/dist/cli/{describe-LWGEU6IE.mjs → describe-TOMIAT37.mjs} +13 -13
- package/dist/cli/{executions-CEVMJ4QY.js → executions-N4FMGVSC.js} +6 -6
- package/dist/cli/{executions-DUMCTK4E.mjs → executions-PVSF4HUF.mjs} +4 -4
- package/dist/cli/{feedback-UEYC3V3O.mjs → feedback-OB7NANZW.mjs} +3 -3
- package/dist/cli/{feedback-VI4N44TJ.js → feedback-WFSPCAI2.js} +7 -7
- package/dist/cli/git-4PMBJSH5.js +24 -0
- package/dist/cli/{git-BOMW65V5.mjs → git-FHUSPAEU.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-SWPSUKTD.js → legacy-noops-ECHNA5HN.js} +7 -7
- package/dist/cli/{legacy-noops-33X26VLN.mjs → legacy-noops-HMK4BSCI.mjs} +4 -4
- package/dist/cli/{monitors-465GCZ73.mjs → monitors-U7VQ3EZM.mjs} +5 -5
- package/dist/cli/{monitors-6HMDLDKU.js → monitors-XLLFNENH.js} +89 -89
- package/dist/cli/{org-CAAOHGTM.mjs → org-6H3USO5M.mjs} +4 -4
- package/dist/cli/{org-JFQ4QBHQ.js → org-QX6ER2HN.js} +66 -66
- package/dist/cli/{play-NJP6HIQD.mjs → play-MOB2WYOR.mjs} +11 -11
- package/dist/cli/{play-UKD4KR4K.js → play-WNB7HBZK.js} +284 -284
- package/dist/cli/{providers-YTRBZARB.js → providers-7M3DISKX.js} +7 -7
- package/dist/cli/{providers-UVHTTSKV.mjs → providers-CXEZ23E2.mjs} +4 -4
- package/dist/cli/{quickstart-3GXVHJRL.js → quickstart-CLJT4AZL.js} +5 -5
- package/dist/cli/{quickstart-CB3TQ5L2.mjs → quickstart-ZFCHKHF6.mjs} +3 -3
- package/dist/cli/search-4CCQCTVD.js +30 -0
- package/dist/cli/{search-NXA6526R.mjs → search-FVYWYIC3.mjs} +5 -5
- package/dist/cli/{secrets-JFJK2X2N.mjs → secrets-WAMPTQFC.mjs} +4 -4
- package/dist/cli/{secrets-E3Y6YDKR.js → secrets-YRLKZQS5.js} +13 -13
- package/dist/cli/{sessions-NKLP6TVY.js → sessions-44J6WIVU.js} +5 -5
- package/dist/cli/{sessions-HAZJLQQL.mjs → sessions-IQ332BJH.mjs} +4 -4
- package/dist/cli/{settings-BSD4DW4O.mjs → settings-22S6NIFQ.mjs} +9 -9
- package/dist/cli/{settings-D4LEZOEW.js → settings-4IJR2I2T.js} +76 -76
- package/dist/cli/{setup-KMZ4EFDK.js → setup-3FWSRNOX.js} +43 -43
- package/dist/cli/{setup-QO64H6YO.mjs → setup-OZUPKKPW.mjs} +8 -8
- package/dist/cli/{skills-YLAH2YNN.mjs → skills-5CW3NFP3.mjs} +6 -6
- package/dist/cli/skills-LMNM6B5F.js +30 -0
- package/dist/cli/tools-AGBBDJ7P.js +45 -0
- package/dist/cli/{tools-KGQ76YQE.mjs → tools-NOPBDRGW.mjs} +13 -13
- package/dist/cli/{update-JXUSVBH7.mjs → update-IBULOV7P.mjs} +8 -8
- package/dist/cli/update-U3W6USVD.js +32 -0
- package/dist/cli/{workflow-NYWZWN5Z.mjs → workflow-MVZT7MWT.mjs} +5 -5
- package/dist/cli/{workflow-YTXY76FN.js → workflow-Z7FW6GT2.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-4CBIXFOR.js +0 -40
- package/dist/cli/git-QISWQQM3.js +0 -24
- package/dist/cli/search-YM4ATHTV.js +0 -30
- package/dist/cli/skills-T5VTI2LZ.js +0 -30
- package/dist/cli/tools-M574OF4H.js +0 -45
- package/dist/cli/update-WNG5DNNO.js +0 -32
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVTODQWQAjs = require('./chunk-VTODQWQA.js');
|
|
6
6
|
require('./chunk-E4CABWXL.js');
|
|
7
7
|
require('./chunk-JKVRBCZL.js');
|
|
8
8
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -11,26 +11,26 @@ require('./chunk-XDVT3GOM.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
14
|
+
var _chunk2PBN4SZEjs = require('./chunk-2PBN4SZE.js');
|
|
15
|
+
require('./chunk-UKFZT7RF.js');
|
|
16
|
+
require('./chunk-NRGGFVVB.js');
|
|
17
|
+
require('./chunk-2WRO2UJ5.js');
|
|
18
|
+
require('./chunk-M52JQSLK.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
22
|
+
var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
23
|
+
require('./chunk-QJLKYYPX.js');
|
|
24
24
|
require('./chunk-ALJJRZNJ.js');
|
|
25
25
|
require('./chunk-XNYIZMNQ.js');
|
|
26
26
|
require('./chunk-DIAWYWT5.js');
|
|
27
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-RBTTUYZZ.js');
|
|
28
28
|
require('./chunk-OG64RBAC.js');
|
|
29
29
|
require('./chunk-COGTRVWW.js');
|
|
30
30
|
|
|
31
31
|
// src/cli/commands/settings.ts
|
|
32
32
|
var _fs = require('fs');
|
|
33
|
-
var eventHelp =
|
|
33
|
+
var eventHelp = _chunkVTODQWQAjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
34
34
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
35
35
|
).join("\n");
|
|
36
36
|
function slackDestination(settings) {
|
|
@@ -42,7 +42,7 @@ function slackDestination(settings) {
|
|
|
42
42
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
43
43
|
})
|
|
44
44
|
);
|
|
45
|
-
return
|
|
45
|
+
return _chunkVTODQWQAjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
46
46
|
}
|
|
47
47
|
function eventLines(settings, destinationId) {
|
|
48
48
|
const enabled = new Map(
|
|
@@ -64,10 +64,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
64
64
|
return event;
|
|
65
65
|
}
|
|
66
66
|
async function printSettings(options) {
|
|
67
|
-
const settings = await new (0,
|
|
67
|
+
const settings = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotificationSettings();
|
|
68
68
|
const slack = slackDestination(settings);
|
|
69
69
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
70
|
-
|
|
70
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
71
71
|
{
|
|
72
72
|
settings,
|
|
73
73
|
render: {
|
|
@@ -122,8 +122,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
122
122
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
123
123
|
`
|
|
124
124
|
).option("--json", "Emit JSON output").action((options) => {
|
|
125
|
-
const preferences =
|
|
126
|
-
|
|
125
|
+
const preferences = _chunk2PBN4SZEjs.readCliUpdatePreferences.call(void 0, );
|
|
126
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
127
127
|
{
|
|
128
128
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
129
129
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -146,8 +146,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
146
146
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
147
147
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
148
148
|
).option("--json", "Emit JSON output").action((options) => {
|
|
149
|
-
const preferences =
|
|
150
|
-
|
|
149
|
+
const preferences = _chunk2PBN4SZEjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
150
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
151
151
|
{
|
|
152
152
|
ok: true,
|
|
153
153
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -168,7 +168,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
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) => {
|
|
171
|
-
process.exitCode = await
|
|
171
|
+
process.exitCode = await _chunk2PBN4SZEjs.runUpdateCommand.call(void 0, {
|
|
172
172
|
pin: version,
|
|
173
173
|
json: options.json,
|
|
174
174
|
executeWithJson: true
|
|
@@ -196,15 +196,15 @@ notifications; there is no general integrations CLI.
|
|
|
196
196
|
if (destination !== "slack")
|
|
197
197
|
throw new Error("Only slack is supported.");
|
|
198
198
|
if (options.dryRun) {
|
|
199
|
-
|
|
199
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
200
200
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
201
201
|
{ json: options.json }
|
|
202
202
|
);
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
const result = await new (0,
|
|
206
|
-
const browser = options.open ?
|
|
207
|
-
|
|
205
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().connectNotificationSlack();
|
|
206
|
+
const browser = options.open ? _chunkBHGII2D6js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
207
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
208
208
|
{
|
|
209
209
|
...result,
|
|
210
210
|
browser,
|
|
@@ -228,10 +228,10 @@ notifications; there is no general integrations CLI.
|
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
230
|
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) => {
|
|
231
|
-
const result = await new (0,
|
|
231
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().listNotificationSlackChannels(
|
|
232
232
|
options.query
|
|
233
233
|
);
|
|
234
|
-
|
|
234
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
235
235
|
{
|
|
236
236
|
...result,
|
|
237
237
|
render: {
|
|
@@ -257,14 +257,14 @@ notifications; there is no general integrations CLI.
|
|
|
257
257
|
}
|
|
258
258
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
259
259
|
if (options.dryRun) {
|
|
260
|
-
|
|
260
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
261
261
|
{ dryRun: true, destination, target },
|
|
262
262
|
{ json: options.json }
|
|
263
263
|
);
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
const result = await new (0,
|
|
267
|
-
|
|
266
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().setNotificationSlack(target);
|
|
267
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
268
268
|
{
|
|
269
269
|
ok: true,
|
|
270
270
|
result,
|
|
@@ -290,14 +290,14 @@ notifications; there is no general integrations CLI.
|
|
|
290
290
|
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) => {
|
|
291
291
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
292
292
|
if (options.dryRun) {
|
|
293
|
-
|
|
293
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
294
294
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
295
295
|
{ json: options.json }
|
|
296
296
|
);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
const result = await new (0,
|
|
300
|
-
|
|
299
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().testNotificationSlack();
|
|
300
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
301
301
|
{
|
|
302
302
|
...result,
|
|
303
303
|
render: {
|
|
@@ -310,14 +310,14 @@ notifications; there is no general integrations CLI.
|
|
|
310
310
|
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) => {
|
|
311
311
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
312
312
|
if (options.dryRun) {
|
|
313
|
-
|
|
313
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
314
314
|
{ dryRun: true, destination, action: "disable" },
|
|
315
315
|
{ json: options.json }
|
|
316
316
|
);
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
|
-
const result = await new (0,
|
|
320
|
-
|
|
319
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().disableNotificationSlack();
|
|
320
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
321
321
|
{
|
|
322
322
|
ok: true,
|
|
323
323
|
result,
|
|
@@ -336,10 +336,10 @@ ${eventHelp}
|
|
|
336
336
|
`
|
|
337
337
|
);
|
|
338
338
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
339
|
-
const current = await new (0,
|
|
339
|
+
const current = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotificationSettings();
|
|
340
340
|
const destination = slackDestination(current);
|
|
341
341
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
342
|
-
|
|
342
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
343
343
|
{
|
|
344
344
|
catalog: current.catalog,
|
|
345
345
|
subscriptions: current.subscriptions,
|
|
@@ -356,14 +356,14 @@ ${eventHelp}
|
|
|
356
356
|
);
|
|
357
357
|
});
|
|
358
358
|
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) => {
|
|
359
|
-
const current = await new (0,
|
|
359
|
+
const current = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotificationSettings();
|
|
360
360
|
const event = requireCatalogEvent(current, eventType);
|
|
361
361
|
const destination = slackDestination(current);
|
|
362
362
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
363
363
|
const subscription = current.subscriptions.find(
|
|
364
364
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
365
365
|
);
|
|
366
|
-
|
|
366
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
367
367
|
{
|
|
368
368
|
event,
|
|
369
369
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -384,11 +384,11 @@ ${eventHelp}
|
|
|
384
384
|
});
|
|
385
385
|
for (const enabled of [true, false]) {
|
|
386
386
|
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) => {
|
|
387
|
-
const client = new (0,
|
|
387
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
388
388
|
const current = await client.getNotificationSettings();
|
|
389
389
|
const event = requireCatalogEvent(current, eventType);
|
|
390
390
|
if (options.dryRun) {
|
|
391
|
-
|
|
391
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
392
392
|
{ dryRun: true, event, enabled },
|
|
393
393
|
{ json: options.json }
|
|
394
394
|
);
|
|
@@ -398,7 +398,7 @@ ${eventHelp}
|
|
|
398
398
|
[event.id],
|
|
399
399
|
enabled
|
|
400
400
|
);
|
|
401
|
-
|
|
401
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
402
402
|
{
|
|
403
403
|
ok: true,
|
|
404
404
|
event: event.id,
|
|
@@ -419,11 +419,11 @@ ${eventHelp}
|
|
|
419
419
|
}
|
|
420
420
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
421
421
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
422
|
-
const result = await new (0,
|
|
422
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().listNotificationDlq(
|
|
423
423
|
Number(options.limit)
|
|
424
424
|
);
|
|
425
425
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
426
|
-
|
|
426
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
427
427
|
{
|
|
428
428
|
...result,
|
|
429
429
|
render: {
|
|
@@ -441,10 +441,10 @@ ${eventHelp}
|
|
|
441
441
|
);
|
|
442
442
|
});
|
|
443
443
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
444
|
-
const result = await new (0,
|
|
444
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
445
445
|
deliveryId
|
|
446
446
|
);
|
|
447
|
-
|
|
447
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, {
|
|
448
448
|
json: options.json
|
|
449
449
|
});
|
|
450
450
|
});
|
|
@@ -453,17 +453,17 @@ ${eventHelp}
|
|
|
453
453
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
454
454
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
455
455
|
if (options.dryRun) {
|
|
456
|
-
|
|
456
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
457
457
|
{ dryRun: true, action, deliveryId },
|
|
458
458
|
{ json: options.json }
|
|
459
459
|
);
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
|
-
const result = await new (0,
|
|
462
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
463
463
|
deliveryId,
|
|
464
464
|
action
|
|
465
465
|
);
|
|
466
|
-
|
|
466
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
467
467
|
{ ok: true, action, deliveryId, result },
|
|
468
468
|
{ json: options.json }
|
|
469
469
|
);
|
|
@@ -564,8 +564,8 @@ Examples:
|
|
|
564
564
|
`
|
|
565
565
|
);
|
|
566
566
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
567
|
-
const result = await new (0,
|
|
568
|
-
|
|
567
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotificationConfiguration();
|
|
568
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
569
569
|
{
|
|
570
570
|
...result,
|
|
571
571
|
render: {
|
|
@@ -590,21 +590,21 @@ Examples:
|
|
|
590
590
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
591
591
|
const input = await readNotificationConfigurationChange(file);
|
|
592
592
|
if (options.dryRun) {
|
|
593
|
-
|
|
593
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
594
594
|
{ dryRun: true, ...input },
|
|
595
595
|
{ json: options.json }
|
|
596
596
|
);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
const result = await new (0,
|
|
599
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().changeNotificationConfiguration(
|
|
600
600
|
input.expectedWorkspaceVersion,
|
|
601
601
|
input.change
|
|
602
602
|
);
|
|
603
|
-
|
|
603
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
604
604
|
});
|
|
605
605
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
606
|
-
const settings = await new (0,
|
|
607
|
-
|
|
606
|
+
const settings = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotifications();
|
|
607
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
608
608
|
{
|
|
609
609
|
events: settings.catalog,
|
|
610
610
|
render: {
|
|
@@ -622,9 +622,9 @@ Examples:
|
|
|
622
622
|
);
|
|
623
623
|
});
|
|
624
624
|
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) => {
|
|
625
|
-
const settings = await new (0,
|
|
625
|
+
const settings = await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotifications();
|
|
626
626
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
627
|
-
|
|
627
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
628
628
|
{
|
|
629
629
|
notifications: options.compact ? rules.map((rule) => ({
|
|
630
630
|
id: rule.id,
|
|
@@ -652,10 +652,10 @@ Examples:
|
|
|
652
652
|
});
|
|
653
653
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
654
654
|
const rule = notificationByName(
|
|
655
|
-
await new (0,
|
|
655
|
+
await new (0, _chunkVTODQWQAjs.DeeplineClient)().getNotifications(),
|
|
656
656
|
name
|
|
657
657
|
);
|
|
658
|
-
|
|
658
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
659
659
|
});
|
|
660
660
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
661
661
|
"--to <target>",
|
|
@@ -669,14 +669,14 @@ Examples:
|
|
|
669
669
|
[]
|
|
670
670
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
671
671
|
async (name, options) => {
|
|
672
|
-
const result = await new (0,
|
|
672
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().createNotificationGroup({
|
|
673
673
|
name,
|
|
674
674
|
targets: options.to,
|
|
675
675
|
legacyEvents: options.for,
|
|
676
676
|
dryRun: options.dryRun
|
|
677
677
|
});
|
|
678
678
|
if (result.mode === "dry_run") {
|
|
679
|
-
|
|
679
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
680
680
|
result.compatibilityMode ? {
|
|
681
681
|
dryRun: true,
|
|
682
682
|
name: result.name,
|
|
@@ -693,7 +693,7 @@ Examples:
|
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
695
|
if (result.mode === "legacy") {
|
|
696
|
-
|
|
696
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
697
697
|
{
|
|
698
698
|
notification: result.notification,
|
|
699
699
|
render: {
|
|
@@ -715,7 +715,7 @@ Examples:
|
|
|
715
715
|
);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
|
|
718
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
719
719
|
{
|
|
720
720
|
...result,
|
|
721
721
|
render: {
|
|
@@ -751,12 +751,12 @@ Examples:
|
|
|
751
751
|
[]
|
|
752
752
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
753
753
|
async (name, options) => {
|
|
754
|
-
const client = new (0,
|
|
754
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
755
755
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
756
756
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
757
757
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
758
758
|
if (options.dryRun) {
|
|
759
|
-
|
|
759
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
760
760
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
761
761
|
{ json: options.json }
|
|
762
762
|
);
|
|
@@ -767,15 +767,15 @@ Examples:
|
|
|
767
767
|
...target,
|
|
768
768
|
eventTypes
|
|
769
769
|
});
|
|
770
|
-
|
|
770
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
771
771
|
}
|
|
772
772
|
);
|
|
773
773
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
774
774
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
775
|
-
const result = await new (0,
|
|
775
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().listNotificationChannels(
|
|
776
776
|
options.search
|
|
777
777
|
);
|
|
778
|
-
|
|
778
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
779
779
|
{
|
|
780
780
|
...result,
|
|
781
781
|
render: {
|
|
@@ -795,31 +795,31 @@ Examples:
|
|
|
795
795
|
["resume", true]
|
|
796
796
|
]) {
|
|
797
797
|
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) => {
|
|
798
|
-
const client = new (0,
|
|
798
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
799
799
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
800
800
|
if (options.dryRun) {
|
|
801
|
-
|
|
801
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
802
802
|
{ dryRun: true, notification: rule.id, enabled },
|
|
803
803
|
{ json: options.json }
|
|
804
804
|
);
|
|
805
805
|
return;
|
|
806
806
|
}
|
|
807
807
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
808
|
-
|
|
808
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
811
|
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) => {
|
|
812
|
-
const client = new (0,
|
|
812
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
813
813
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
814
814
|
if (options.dryRun) {
|
|
815
|
-
|
|
815
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
816
816
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
817
817
|
{ json: options.json }
|
|
818
818
|
);
|
|
819
819
|
return;
|
|
820
820
|
}
|
|
821
821
|
const result = await client.testNotification(rule.id);
|
|
822
|
-
|
|
822
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
823
823
|
{ ...result, notification: rule.name },
|
|
824
824
|
{ json: options.json }
|
|
825
825
|
);
|
|
@@ -827,17 +827,17 @@ Examples:
|
|
|
827
827
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
828
828
|
"Archive one notification without touching its provider integration."
|
|
829
829
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
830
|
-
const client = new (0,
|
|
830
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
831
831
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
832
832
|
if (options.dryRun) {
|
|
833
|
-
|
|
833
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
834
834
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
835
835
|
{ json: options.json }
|
|
836
836
|
);
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
const result = await client.deleteNotification(rule.id);
|
|
840
|
-
|
|
840
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
841
841
|
{ ...result, notification: rule.name },
|
|
842
842
|
{ json: options.json }
|
|
843
843
|
);
|