deepline 0.3.451 → 0.3.453
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/client.ts +65 -0
- package/dist/bundling-sources/sdk/src/http.ts +2 -1
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +17 -2
- package/dist/cli/{auth-YLBWEMRW.mjs → auth-6CXS55CN.mjs} +4 -4
- package/dist/cli/auth-AICIA232.js +40 -0
- package/dist/cli/{billing-GWG5D3P6.js → billing-QC52XTAD.js} +87 -74
- package/dist/cli/{billing-DUFOEOPT.mjs → billing-SWLTV6PV.mjs} +18 -5
- package/dist/cli/{chunk-37CPEQBE.mjs → chunk-2LDU5BMG.mjs} +3 -3
- package/dist/cli/{chunk-JUCEEIEC.mjs → chunk-43HOSM2F.mjs} +1 -1
- package/dist/cli/{chunk-E7V5CRA2.mjs → chunk-6CTVXF6X.mjs} +8 -8
- package/dist/cli/{chunk-BJOVX7EB.mjs → chunk-7557D4FM.mjs} +2 -2
- package/dist/cli/chunk-BX343KU7.mjs +155 -0
- package/dist/cli/{chunk-7VRWERTM.js → chunk-DMTAFWMS.js} +84 -50
- package/dist/cli/{chunk-XLOXUW5Y.mjs → chunk-FS2RMEJ7.mjs} +1 -1
- package/dist/cli/{chunk-EJ6YI46S.js → chunk-HUDUN4AR.js} +2 -2
- package/dist/cli/{chunk-OKTCLFKM.mjs → chunk-IFBLLSGH.mjs} +5 -5
- package/dist/cli/{chunk-33EM4SMH.mjs → chunk-IWFI6FTJ.mjs} +4 -153
- package/dist/cli/{chunk-ZPV7DMAA.mjs → chunk-IXVABCNA.mjs} +1 -1
- package/dist/cli/{chunk-O3KVUHCG.js → chunk-JOF3B22H.js} +20 -20
- package/dist/cli/{chunk-6TFACCXN.js → chunk-KFKM5J2N.js} +2 -2
- package/dist/cli/{chunk-WLVGRU5A.mjs → chunk-KQD6EFPD.mjs} +2 -2
- package/dist/cli/{chunk-HSKLAPMD.js → chunk-MP35NE55.js} +26 -26
- package/dist/cli/chunk-NOHA3SZJ.js +155 -0
- package/dist/cli/{chunk-Z3DBS4IB.js → chunk-NSQZUUYB.js} +81 -81
- package/dist/cli/{chunk-BQQLTSGC.mjs → chunk-P4UQCYKH.mjs} +4 -4
- package/dist/cli/{chunk-CH2WDSBC.js → chunk-PJWXEUUH.js} +8 -8
- package/dist/cli/{chunk-L2IUGWV5.js → chunk-RG644LJU.js} +1 -1
- package/dist/cli/{chunk-5DUMNKQG.js → chunk-RNCIPLU5.js} +50 -50
- package/dist/cli/{chunk-WDOWAOYB.js → chunk-RTR2KUU6.js} +10 -10
- package/dist/cli/{chunk-4C7HPD57.mjs → chunk-SQUJHT7O.mjs} +1 -1
- package/dist/cli/{chunk-ZNDE2BTH.js → chunk-V6AZQ4JH.js} +16 -16
- package/dist/cli/{chunk-F2DW7DFE.js → chunk-V7S2RUVE.js} +8 -8
- package/dist/cli/{chunk-C4NPWUZY.js → chunk-VG6WESY7.js} +73 -222
- package/dist/cli/{chunk-6G6KX7I7.js → chunk-WTTHH2K3.js} +6 -6
- package/dist/cli/{chunk-JRPNCMMN.js → chunk-WWZ4YJ6J.js} +35 -35
- package/dist/cli/{chunk-PJYTV24I.mjs → chunk-X2LUT22I.mjs} +2 -2
- package/dist/cli/{chunk-YXXIFMXI.mjs → chunk-XH4QC5ZX.mjs} +2 -2
- package/dist/cli/{chunk-3HT47QPJ.mjs → chunk-XNN3OTGT.mjs} +2 -2
- package/dist/cli/{chunk-LPPAJJJN.mjs → chunk-XV4463XW.mjs} +35 -1
- package/dist/cli/{chunk-TFCLUWDQ.js → chunk-YU6IE234.js} +6 -6
- package/dist/cli/{chunk-RFPP4Q66.mjs → chunk-ZVBLECZX.mjs} +3 -3
- package/dist/cli/{csv-RL7WQD6Y.mjs → csv-FON4ZQKC.mjs} +3 -3
- package/dist/cli/{csv-4CHXZQXO.js → csv-WIQB5XWZ.js} +12 -12
- package/dist/cli/{db-ZDBAWV7B.mjs → db-3KA62DOQ.mjs} +4 -4
- package/dist/cli/{db-MRI5IM2A.js → db-VMDDODCN.js} +25 -25
- package/dist/cli/{describe-RRQUUJQ3.mjs → describe-LGDK77QI.mjs} +13 -12
- package/dist/cli/{describe-2FYKXM5B.js → describe-NTAAHCCX.js} +17 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-KDBD47A5.js → executions-OT2KNJDO.js} +6 -6
- package/dist/cli/{executions-RJL76TJS.mjs → executions-TM6AMTQ7.mjs} +4 -4
- package/dist/cli/{feedback-2CE24NHD.js → feedback-4HQGY3TO.js} +7 -7
- package/dist/cli/{feedback-KOYLXHYE.mjs → feedback-HWLUVFE2.mjs} +3 -3
- package/dist/cli/git-QIZWO5BA.js +24 -0
- package/dist/cli/{git-RDUHU6L6.mjs → git-TDJVSPE6.mjs} +4 -4
- package/dist/cli/index.js +133 -131
- package/dist/cli/index.mjs +39 -37
- package/dist/cli/{legacy-noops-7FOMGBMN.js → legacy-noops-XH3FDLWT.js} +7 -7
- package/dist/cli/{legacy-noops-4HS2LYP6.mjs → legacy-noops-YB2PES43.mjs} +4 -4
- package/dist/cli/{monitors-IJXNK5BL.js → monitors-E3QFEJKF.js} +276 -124
- package/dist/cli/{monitors-JLBTNBVU.mjs → monitors-KQDDMSDR.mjs} +156 -4
- package/dist/cli/{org-OWP6K4AA.mjs → org-7X2C7YKA.mjs} +4 -4
- package/dist/cli/{org-JL7SW6VY.js → org-PMTLR7VP.js} +66 -66
- package/dist/cli/{play-FNOVKU74.mjs → play-7FNEPSVR.mjs} +11 -10
- package/dist/cli/{play-LLNZWHT6.js → play-RH22Z3D6.js} +284 -283
- package/dist/cli/{providers-WBOEOKE7.mjs → providers-HOEDJNUK.mjs} +4 -4
- package/dist/cli/{providers-E4XIEUC7.js → providers-X5NY5IQH.js} +7 -7
- package/dist/cli/{quickstart-3FUHKGEY.js → quickstart-FI4A6VTV.js} +5 -5
- package/dist/cli/{quickstart-6G5G3BVA.mjs → quickstart-NCL7P2US.mjs} +3 -3
- package/dist/cli/search-6FUMJBIY.js +30 -0
- package/dist/cli/{search-CNMB4Z6M.mjs → search-UHT7ZNPO.mjs} +5 -5
- package/dist/cli/{secrets-5FY5APVK.mjs → secrets-D4ZB5RKB.mjs} +4 -4
- package/dist/cli/{secrets-BDSWOYAT.js → secrets-TT6J3SZJ.js} +13 -13
- package/dist/cli/{sessions-PMIKVPQN.mjs → sessions-HRLJ6SLL.mjs} +4 -4
- package/dist/cli/{sessions-B7T2CHYK.js → sessions-SRQQZMM7.js} +5 -5
- package/dist/cli/{settings-RXQJRRLR.js → settings-EJIKXLC7.js} +76 -75
- package/dist/cli/{settings-4TAYLTPR.mjs → settings-PJJYPWU3.mjs} +9 -8
- package/dist/cli/{setup-ZTMETGSO.js → setup-3FL77Z33.js} +43 -42
- package/dist/cli/{setup-LVUISLVO.mjs → setup-DNI6ENFD.mjs} +8 -7
- package/dist/cli/skills-DEKOSL7F.js +30 -0
- package/dist/cli/{skills-NSJ43Z5Q.mjs → skills-FO7MY2OE.mjs} +6 -5
- package/dist/cli/tools-E6XRW6PW.js +45 -0
- package/dist/cli/{tools-CFCKIGDY.mjs → tools-F72WONN3.mjs} +13 -12
- package/dist/cli/update-6M3CAS4T.js +32 -0
- package/dist/cli/{update-HYOCBXJO.mjs → update-JZU33TC5.mjs} +8 -7
- package/dist/cli/{workflow-U6S4SWTF.js → workflow-BGKC73V2.js} +15 -15
- package/dist/cli/{workflow-RKX45RJ4.mjs → workflow-PQYQXQPH.mjs} +5 -5
- package/dist/{client-CPRaigLC.d.ts → client-D6XhrO0f.d.ts} +26 -1
- package/dist/{client-DstDI5TV.d.mts → client-mRA_esYI.d.mts} +26 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -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-WPQBEOES.js +0 -40
- package/dist/cli/git-DZ5GROPH.js +0 -24
- package/dist/cli/search-4ECC773X.js +0 -30
- package/dist/cli/skills-MIENPTOD.js +0 -29
- package/dist/cli/tools-CXJO5XSH.js +0 -44
- package/dist/cli/update-B2LQGEXF.js +0 -31
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDMTAFWMSjs = require('./chunk-DMTAFWMS.js');
|
|
6
6
|
require('./chunk-E4CABWXL.js');
|
|
7
7
|
require('./chunk-JKVRBCZL.js');
|
|
8
8
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -11,25 +11,26 @@ require('./chunk-XDVT3GOM.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
14
|
+
var _chunkV6AZQ4JHjs = require('./chunk-V6AZQ4JH.js');
|
|
15
|
+
require('./chunk-HUDUN4AR.js');
|
|
16
|
+
require('./chunk-WWZ4YJ6J.js');
|
|
17
|
+
require('./chunk-VG6WESY7.js');
|
|
18
|
+
require('./chunk-NOHA3SZJ.js');
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
22
|
+
var _chunkWTTHH2K3js = require('./chunk-WTTHH2K3.js');
|
|
23
|
+
require('./chunk-RTR2KUU6.js');
|
|
23
24
|
require('./chunk-ALJJRZNJ.js');
|
|
24
25
|
require('./chunk-XNYIZMNQ.js');
|
|
25
26
|
require('./chunk-DIAWYWT5.js');
|
|
26
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-RG644LJU.js');
|
|
27
28
|
require('./chunk-OG64RBAC.js');
|
|
28
29
|
require('./chunk-COGTRVWW.js');
|
|
29
30
|
|
|
30
31
|
// src/cli/commands/settings.ts
|
|
31
32
|
var _fs = require('fs');
|
|
32
|
-
var eventHelp =
|
|
33
|
+
var eventHelp = _chunkDMTAFWMSjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
33
34
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
34
35
|
).join("\n");
|
|
35
36
|
function slackDestination(settings) {
|
|
@@ -41,7 +42,7 @@ function slackDestination(settings) {
|
|
|
41
42
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
42
43
|
})
|
|
43
44
|
);
|
|
44
|
-
return
|
|
45
|
+
return _chunkDMTAFWMSjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
45
46
|
}
|
|
46
47
|
function eventLines(settings, destinationId) {
|
|
47
48
|
const enabled = new Map(
|
|
@@ -63,10 +64,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
63
64
|
return event;
|
|
64
65
|
}
|
|
65
66
|
async function printSettings(options) {
|
|
66
|
-
const settings = await new (0,
|
|
67
|
+
const settings = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotificationSettings();
|
|
67
68
|
const slack = slackDestination(settings);
|
|
68
69
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
69
|
-
|
|
70
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
70
71
|
{
|
|
71
72
|
settings,
|
|
72
73
|
render: {
|
|
@@ -121,8 +122,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
121
122
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
122
123
|
`
|
|
123
124
|
).option("--json", "Emit JSON output").action((options) => {
|
|
124
|
-
const preferences =
|
|
125
|
-
|
|
125
|
+
const preferences = _chunkV6AZQ4JHjs.readCliUpdatePreferences.call(void 0, );
|
|
126
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
126
127
|
{
|
|
127
128
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
128
129
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -145,8 +146,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
145
146
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
146
147
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
147
148
|
).option("--json", "Emit JSON output").action((options) => {
|
|
148
|
-
const preferences =
|
|
149
|
-
|
|
149
|
+
const preferences = _chunkV6AZQ4JHjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
150
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
150
151
|
{
|
|
151
152
|
ok: true,
|
|
152
153
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -167,7 +168,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
167
168
|
});
|
|
168
169
|
}
|
|
169
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) => {
|
|
170
|
-
process.exitCode = await
|
|
171
|
+
process.exitCode = await _chunkV6AZQ4JHjs.runUpdateCommand.call(void 0, {
|
|
171
172
|
pin: version,
|
|
172
173
|
json: options.json,
|
|
173
174
|
executeWithJson: true
|
|
@@ -195,15 +196,15 @@ notifications; there is no general integrations CLI.
|
|
|
195
196
|
if (destination !== "slack")
|
|
196
197
|
throw new Error("Only slack is supported.");
|
|
197
198
|
if (options.dryRun) {
|
|
198
|
-
|
|
199
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
199
200
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
200
201
|
{ json: options.json }
|
|
201
202
|
);
|
|
202
203
|
return;
|
|
203
204
|
}
|
|
204
|
-
const result = await new (0,
|
|
205
|
-
const browser = options.open ?
|
|
206
|
-
|
|
205
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().connectNotificationSlack();
|
|
206
|
+
const browser = options.open ? _chunkWTTHH2K3js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
207
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
207
208
|
{
|
|
208
209
|
...result,
|
|
209
210
|
browser,
|
|
@@ -227,10 +228,10 @@ notifications; there is no general integrations CLI.
|
|
|
227
228
|
}
|
|
228
229
|
);
|
|
229
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) => {
|
|
230
|
-
const result = await new (0,
|
|
231
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().listNotificationSlackChannels(
|
|
231
232
|
options.query
|
|
232
233
|
);
|
|
233
|
-
|
|
234
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
234
235
|
{
|
|
235
236
|
...result,
|
|
236
237
|
render: {
|
|
@@ -256,14 +257,14 @@ notifications; there is no general integrations CLI.
|
|
|
256
257
|
}
|
|
257
258
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
258
259
|
if (options.dryRun) {
|
|
259
|
-
|
|
260
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
260
261
|
{ dryRun: true, destination, target },
|
|
261
262
|
{ json: options.json }
|
|
262
263
|
);
|
|
263
264
|
return;
|
|
264
265
|
}
|
|
265
|
-
const result = await new (0,
|
|
266
|
-
|
|
266
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().setNotificationSlack(target);
|
|
267
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
267
268
|
{
|
|
268
269
|
ok: true,
|
|
269
270
|
result,
|
|
@@ -289,14 +290,14 @@ notifications; there is no general integrations CLI.
|
|
|
289
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) => {
|
|
290
291
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
291
292
|
if (options.dryRun) {
|
|
292
|
-
|
|
293
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
293
294
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
294
295
|
{ json: options.json }
|
|
295
296
|
);
|
|
296
297
|
return;
|
|
297
298
|
}
|
|
298
|
-
const result = await new (0,
|
|
299
|
-
|
|
299
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().testNotificationSlack();
|
|
300
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
300
301
|
{
|
|
301
302
|
...result,
|
|
302
303
|
render: {
|
|
@@ -309,14 +310,14 @@ notifications; there is no general integrations CLI.
|
|
|
309
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) => {
|
|
310
311
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
311
312
|
if (options.dryRun) {
|
|
312
|
-
|
|
313
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
313
314
|
{ dryRun: true, destination, action: "disable" },
|
|
314
315
|
{ json: options.json }
|
|
315
316
|
);
|
|
316
317
|
return;
|
|
317
318
|
}
|
|
318
|
-
const result = await new (0,
|
|
319
|
-
|
|
319
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().disableNotificationSlack();
|
|
320
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
320
321
|
{
|
|
321
322
|
ok: true,
|
|
322
323
|
result,
|
|
@@ -335,10 +336,10 @@ ${eventHelp}
|
|
|
335
336
|
`
|
|
336
337
|
);
|
|
337
338
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
338
|
-
const current = await new (0,
|
|
339
|
+
const current = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotificationSettings();
|
|
339
340
|
const destination = slackDestination(current);
|
|
340
341
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
341
|
-
|
|
342
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
342
343
|
{
|
|
343
344
|
catalog: current.catalog,
|
|
344
345
|
subscriptions: current.subscriptions,
|
|
@@ -355,14 +356,14 @@ ${eventHelp}
|
|
|
355
356
|
);
|
|
356
357
|
});
|
|
357
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) => {
|
|
358
|
-
const current = await new (0,
|
|
359
|
+
const current = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotificationSettings();
|
|
359
360
|
const event = requireCatalogEvent(current, eventType);
|
|
360
361
|
const destination = slackDestination(current);
|
|
361
362
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
362
363
|
const subscription = current.subscriptions.find(
|
|
363
364
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
364
365
|
);
|
|
365
|
-
|
|
366
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
366
367
|
{
|
|
367
368
|
event,
|
|
368
369
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -383,11 +384,11 @@ ${eventHelp}
|
|
|
383
384
|
});
|
|
384
385
|
for (const enabled of [true, false]) {
|
|
385
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) => {
|
|
386
|
-
const client = new (0,
|
|
387
|
+
const client = new (0, _chunkDMTAFWMSjs.DeeplineClient)();
|
|
387
388
|
const current = await client.getNotificationSettings();
|
|
388
389
|
const event = requireCatalogEvent(current, eventType);
|
|
389
390
|
if (options.dryRun) {
|
|
390
|
-
|
|
391
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
391
392
|
{ dryRun: true, event, enabled },
|
|
392
393
|
{ json: options.json }
|
|
393
394
|
);
|
|
@@ -397,7 +398,7 @@ ${eventHelp}
|
|
|
397
398
|
[event.id],
|
|
398
399
|
enabled
|
|
399
400
|
);
|
|
400
|
-
|
|
401
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
401
402
|
{
|
|
402
403
|
ok: true,
|
|
403
404
|
event: event.id,
|
|
@@ -418,11 +419,11 @@ ${eventHelp}
|
|
|
418
419
|
}
|
|
419
420
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
420
421
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
421
|
-
const result = await new (0,
|
|
422
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().listNotificationDlq(
|
|
422
423
|
Number(options.limit)
|
|
423
424
|
);
|
|
424
425
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
425
|
-
|
|
426
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
426
427
|
{
|
|
427
428
|
...result,
|
|
428
429
|
render: {
|
|
@@ -440,10 +441,10 @@ ${eventHelp}
|
|
|
440
441
|
);
|
|
441
442
|
});
|
|
442
443
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
443
|
-
const result = await new (0,
|
|
444
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
444
445
|
deliveryId
|
|
445
446
|
);
|
|
446
|
-
|
|
447
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, result, {
|
|
447
448
|
json: options.json
|
|
448
449
|
});
|
|
449
450
|
});
|
|
@@ -452,17 +453,17 @@ ${eventHelp}
|
|
|
452
453
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
453
454
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
454
455
|
if (options.dryRun) {
|
|
455
|
-
|
|
456
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
456
457
|
{ dryRun: true, action, deliveryId },
|
|
457
458
|
{ json: options.json }
|
|
458
459
|
);
|
|
459
460
|
return;
|
|
460
461
|
}
|
|
461
|
-
const result = await new (0,
|
|
462
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
462
463
|
deliveryId,
|
|
463
464
|
action
|
|
464
465
|
);
|
|
465
|
-
|
|
466
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
466
467
|
{ ok: true, action, deliveryId, result },
|
|
467
468
|
{ json: options.json }
|
|
468
469
|
);
|
|
@@ -563,8 +564,8 @@ Examples:
|
|
|
563
564
|
`
|
|
564
565
|
);
|
|
565
566
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
566
|
-
const result = await new (0,
|
|
567
|
-
|
|
567
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotificationConfiguration();
|
|
568
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
568
569
|
{
|
|
569
570
|
...result,
|
|
570
571
|
render: {
|
|
@@ -589,21 +590,21 @@ Examples:
|
|
|
589
590
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
590
591
|
const input = await readNotificationConfigurationChange(file);
|
|
591
592
|
if (options.dryRun) {
|
|
592
|
-
|
|
593
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
593
594
|
{ dryRun: true, ...input },
|
|
594
595
|
{ json: options.json }
|
|
595
596
|
);
|
|
596
597
|
return;
|
|
597
598
|
}
|
|
598
|
-
const result = await new (0,
|
|
599
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().changeNotificationConfiguration(
|
|
599
600
|
input.expectedWorkspaceVersion,
|
|
600
601
|
input.change
|
|
601
602
|
);
|
|
602
|
-
|
|
603
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
603
604
|
});
|
|
604
605
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
605
|
-
const settings = await new (0,
|
|
606
|
-
|
|
606
|
+
const settings = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotifications();
|
|
607
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
607
608
|
{
|
|
608
609
|
events: settings.catalog,
|
|
609
610
|
render: {
|
|
@@ -621,9 +622,9 @@ Examples:
|
|
|
621
622
|
);
|
|
622
623
|
});
|
|
623
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) => {
|
|
624
|
-
const settings = await new (0,
|
|
625
|
+
const settings = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotifications();
|
|
625
626
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
626
|
-
|
|
627
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
627
628
|
{
|
|
628
629
|
notifications: options.compact ? rules.map((rule) => ({
|
|
629
630
|
id: rule.id,
|
|
@@ -651,10 +652,10 @@ Examples:
|
|
|
651
652
|
});
|
|
652
653
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
653
654
|
const rule = notificationByName(
|
|
654
|
-
await new (0,
|
|
655
|
+
await new (0, _chunkDMTAFWMSjs.DeeplineClient)().getNotifications(),
|
|
655
656
|
name
|
|
656
657
|
);
|
|
657
|
-
|
|
658
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
658
659
|
});
|
|
659
660
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
660
661
|
"--to <target>",
|
|
@@ -668,14 +669,14 @@ Examples:
|
|
|
668
669
|
[]
|
|
669
670
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
670
671
|
async (name, options) => {
|
|
671
|
-
const result = await new (0,
|
|
672
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().createNotificationGroup({
|
|
672
673
|
name,
|
|
673
674
|
targets: options.to,
|
|
674
675
|
legacyEvents: options.for,
|
|
675
676
|
dryRun: options.dryRun
|
|
676
677
|
});
|
|
677
678
|
if (result.mode === "dry_run") {
|
|
678
|
-
|
|
679
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
679
680
|
result.compatibilityMode ? {
|
|
680
681
|
dryRun: true,
|
|
681
682
|
name: result.name,
|
|
@@ -692,7 +693,7 @@ Examples:
|
|
|
692
693
|
return;
|
|
693
694
|
}
|
|
694
695
|
if (result.mode === "legacy") {
|
|
695
|
-
|
|
696
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
696
697
|
{
|
|
697
698
|
notification: result.notification,
|
|
698
699
|
render: {
|
|
@@ -714,7 +715,7 @@ Examples:
|
|
|
714
715
|
);
|
|
715
716
|
return;
|
|
716
717
|
}
|
|
717
|
-
|
|
718
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
718
719
|
{
|
|
719
720
|
...result,
|
|
720
721
|
render: {
|
|
@@ -750,12 +751,12 @@ Examples:
|
|
|
750
751
|
[]
|
|
751
752
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
752
753
|
async (name, options) => {
|
|
753
|
-
const client = new (0,
|
|
754
|
+
const client = new (0, _chunkDMTAFWMSjs.DeeplineClient)();
|
|
754
755
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
755
756
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
756
757
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
757
758
|
if (options.dryRun) {
|
|
758
|
-
|
|
759
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
759
760
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
760
761
|
{ json: options.json }
|
|
761
762
|
);
|
|
@@ -766,15 +767,15 @@ Examples:
|
|
|
766
767
|
...target,
|
|
767
768
|
eventTypes
|
|
768
769
|
});
|
|
769
|
-
|
|
770
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
770
771
|
}
|
|
771
772
|
);
|
|
772
773
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
773
774
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
774
|
-
const result = await new (0,
|
|
775
|
+
const result = await new (0, _chunkDMTAFWMSjs.DeeplineClient)().listNotificationChannels(
|
|
775
776
|
options.search
|
|
776
777
|
);
|
|
777
|
-
|
|
778
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
778
779
|
{
|
|
779
780
|
...result,
|
|
780
781
|
render: {
|
|
@@ -794,31 +795,31 @@ Examples:
|
|
|
794
795
|
["resume", true]
|
|
795
796
|
]) {
|
|
796
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) => {
|
|
797
|
-
const client = new (0,
|
|
798
|
+
const client = new (0, _chunkDMTAFWMSjs.DeeplineClient)();
|
|
798
799
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
799
800
|
if (options.dryRun) {
|
|
800
|
-
|
|
801
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
801
802
|
{ dryRun: true, notification: rule.id, enabled },
|
|
802
803
|
{ json: options.json }
|
|
803
804
|
);
|
|
804
805
|
return;
|
|
805
806
|
}
|
|
806
807
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
807
|
-
|
|
808
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
808
809
|
});
|
|
809
810
|
}
|
|
810
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) => {
|
|
811
|
-
const client = new (0,
|
|
812
|
+
const client = new (0, _chunkDMTAFWMSjs.DeeplineClient)();
|
|
812
813
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
813
814
|
if (options.dryRun) {
|
|
814
|
-
|
|
815
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
815
816
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
816
817
|
{ json: options.json }
|
|
817
818
|
);
|
|
818
819
|
return;
|
|
819
820
|
}
|
|
820
821
|
const result = await client.testNotification(rule.id);
|
|
821
|
-
|
|
822
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
822
823
|
{ ...result, notification: rule.name },
|
|
823
824
|
{ json: options.json }
|
|
824
825
|
);
|
|
@@ -826,17 +827,17 @@ Examples:
|
|
|
826
827
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
827
828
|
"Archive one notification without touching its provider integration."
|
|
828
829
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
829
|
-
const client = new (0,
|
|
830
|
+
const client = new (0, _chunkDMTAFWMSjs.DeeplineClient)();
|
|
830
831
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
831
832
|
if (options.dryRun) {
|
|
832
|
-
|
|
833
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
833
834
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
834
835
|
{ json: options.json }
|
|
835
836
|
);
|
|
836
837
|
return;
|
|
837
838
|
}
|
|
838
839
|
const result = await client.deleteNotification(rule.id);
|
|
839
|
-
|
|
840
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
840
841
|
{ ...result, notification: rule.name },
|
|
841
842
|
{ json: options.json }
|
|
842
843
|
);
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
PRODUCT_NOTIFICATION_EVENT_CATALOG,
|
|
4
4
|
resolveLegacySlackNotification
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XV4463XW.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
7
|
import "./chunk-FAG4DFUC.mjs";
|
|
8
8
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -11,19 +11,20 @@ import {
|
|
|
11
11
|
readCliUpdatePreferences,
|
|
12
12
|
runUpdateCommand,
|
|
13
13
|
setCliAutoUpdateEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-IFBLLSGH.mjs";
|
|
15
|
+
import "./chunk-43HOSM2F.mjs";
|
|
16
|
+
import "./chunk-2LDU5BMG.mjs";
|
|
17
|
+
import "./chunk-IWFI6FTJ.mjs";
|
|
18
|
+
import "./chunk-BX343KU7.mjs";
|
|
18
19
|
import {
|
|
19
20
|
openInBrowser,
|
|
20
21
|
printCommandEnvelope
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-FS2RMEJ7.mjs";
|
|
23
|
+
import "./chunk-X2LUT22I.mjs";
|
|
23
24
|
import "./chunk-4QF2K7TM.mjs";
|
|
24
25
|
import "./chunk-DLIRSHV6.mjs";
|
|
25
26
|
import "./chunk-HBL4PM5Q.mjs";
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-IXVABCNA.mjs";
|
|
27
28
|
import "./chunk-WZYKRD7T.mjs";
|
|
28
29
|
import "./chunk-KRD6H754.mjs";
|
|
29
30
|
|