deepline 0.3.395 → 0.3.397
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/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
- package/dist/cli/{auth-NMQXZRS7.mjs → auth-AZJFXGKP.mjs} +5 -4
- package/dist/cli/auth-CZJQU7B5.js +40 -0
- package/dist/cli/{billing-Z4JTGUU3.js → billing-MQV5AGDJ.js} +77 -76
- package/dist/cli/{billing-5MVXZRS6.mjs → billing-MZAAUHGH.mjs} +6 -5
- package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-2LDADJNO.mjs} +7 -107
- package/dist/cli/{chunk-UKU6JM3S.js → chunk-3VP34TAU.js} +8 -8
- package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-4D745XZO.mjs} +21 -108
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-BQR6UN3C.js} +62 -78
- package/dist/cli/{chunk-HRWUQJ4K.js → chunk-DQ65ZVHN.js} +6 -6
- package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
- package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-F3BUFYKE.mjs} +182 -1031
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{describe-DBRY5BNK.mjs → chunk-HFYQBC2D.mjs} +51 -171
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-IHG7UAHD.mjs} +63 -79
- package/dist/cli/{chunk-TO2MWPGR.js → chunk-IZ74ABSX.js} +1 -1
- package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-J7ABTQQ7.mjs} +5 -3
- package/dist/cli/{chunk-LZLBR2SF.js → chunk-K33MXVXQ.js} +323 -1172
- package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-BON3DRC6.mjs → chunk-MRXMMERY.mjs} +1 -1
- package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-MV7QRALK.mjs} +3 -3
- package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-MYPH2LUU.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-NA4T3B62.js} +64 -272
- package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-NOX2TCBP.mjs} +1 -1
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-R4XZO6Z5.js → chunk-PSGEDGLT.js} +28 -115
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/chunk-RFG3MRAC.js +286 -0
- package/dist/cli/{chunk-47M6HPGP.mjs → chunk-RNSWDKBM.mjs} +1 -1
- package/dist/cli/{chunk-56IFFVIB.js → chunk-RYW4HPSM.js} +21 -121
- package/dist/cli/{chunk-K5T3EN6D.js → chunk-SO7RUVTY.js} +26 -26
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-TXZVVBQZ.mjs} +63 -271
- package/dist/cli/{chunk-36ML3YKA.js → chunk-UVXBVUZQ.js} +15 -13
- package/dist/cli/{chunk-PZ5BZ76S.js → chunk-VTF4RRWJ.js} +50 -50
- package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-W3HMGKMI.mjs} +2 -2
- package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-WM2QEHZL.mjs} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/{chunk-UCXK2DS4.js → chunk-YLRME7MK.js} +15 -15
- package/dist/cli/{chunk-MYIBHORT.js → chunk-YSVORIEW.js} +2 -2
- package/dist/cli/{chunk-OCSG6X67.mjs → chunk-YUDKBQUD.mjs} +4 -4
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-ZHUMDMOS.js} +65 -65
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-HTS5ZYQ4.js → csv-AQBQ5O3I.js} +13 -12
- package/dist/cli/{csv-SVOD5UBH.mjs → csv-MB7PJMYQ.mjs} +4 -3
- package/dist/cli/{db-7AP4P52N.js → db-JPUYC5RB.js} +31 -30
- package/dist/cli/{db-7QLNI3Q4.mjs → db-L5IEI2AU.mjs} +6 -5
- package/dist/cli/describe-6WT74AOR.js +164 -0
- package/dist/cli/describe-S6BFANVI.mjs +164 -0
- package/dist/cli/describe-core.d.mts +100 -0
- package/dist/cli/describe-core.d.ts +100 -0
- package/dist/cli/describe-core.js +18 -0
- package/dist/cli/describe-core.mjs +18 -0
- package/dist/cli/{executions-GRQXTB2P.js → executions-6TMQTFP4.js} +8 -7
- package/dist/cli/{executions-QNZTPNG4.mjs → executions-L7I2ZW4Z.mjs} +6 -5
- package/dist/cli/{feedback-JMCSR624.mjs → feedback-DSJ63HK6.mjs} +4 -3
- package/dist/cli/{feedback-ZOLA2KY7.js → feedback-XF7CQGMD.js} +8 -7
- package/dist/cli/{git-LJGL2IHS.mjs → git-C3ENM67D.mjs} +5 -4
- package/dist/cli/git-HYDZK2QR.js +24 -0
- package/dist/cli/index.js +96 -94
- package/dist/cli/index.mjs +41 -39
- package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-B2NHWIVD.js} +8 -7
- package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
- package/dist/cli/{monitors-WMZ6HJZX.js → monitors-ORFWOVZB.js} +87 -86
- package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-TCEDBDGY.mjs} +6 -5
- package/dist/cli/{org-U3WA2NQM.mjs → org-45KREIKZ.mjs} +6 -5
- package/dist/cli/{org-PFHM5ZLY.js → org-T74CJESN.js} +66 -65
- package/dist/cli/{chunk-XMAPE2KH.mjs → play-MU7MYBIM.mjs} +78 -131
- package/dist/cli/{chunk-4KLCLLTO.js → play-XHK2LPON.js} +273 -326
- package/dist/cli/{providers-XYMHLKCA.js → providers-4MGQKYFD.js} +9 -8
- package/dist/cli/{providers-QBBRFBOH.mjs → providers-VYCXIJT5.mjs} +6 -5
- package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-47G3VEOT.js} +6 -5
- package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-H724EFM2.mjs} +4 -3
- package/dist/cli/search-3356ENLD.js +30 -0
- package/dist/cli/{search-X6W6GRHS.mjs → search-VQHXEFQ4.mjs} +8 -6
- package/dist/cli/{secrets-UHG6OQFD.js → secrets-ALLKCU35.js} +15 -14
- package/dist/cli/{secrets-N55B67H6.mjs → secrets-CPBNGA44.mjs} +6 -5
- package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-7RSQB7IX.mjs} +5 -4
- package/dist/cli/sessions-FKGAY7WQ.js +16 -0
- package/dist/cli/{settings-Q24HRAQI.mjs → settings-UYSGV4IC.mjs} +9 -8
- package/dist/cli/{settings-ATX4U5AS.js → settings-Y5BI42P7.js} +76 -75
- package/dist/cli/{setup-77ZWLVHT.mjs → setup-L3ZBBTS4.mjs} +7 -6
- package/dist/cli/{setup-EJCNOUCE.js → setup-VXQPEU3E.js} +42 -41
- package/dist/cli/skills-DUZQTDTE.js +29 -0
- package/dist/cli/{skills-XIS5AWQI.mjs → skills-QHVDLSFE.mjs} +5 -4
- package/dist/cli/{tools-WCKLYEGQ.mjs → tools-LSCEK4K2.mjs} +16 -19
- package/dist/cli/tools-YWU5QOQ5.js +39 -0
- package/dist/cli/update-5LYQAI55.js +29 -0
- package/dist/cli/{update-UT5WANMV.mjs → update-CU22OTBM.mjs} +7 -6
- package/dist/cli/{workflow-226QYUN2.js → workflow-ERFLTRNX.js} +17 -16
- package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-KQARK5BZ.mjs} +7 -6
- package/dist/{client-hdFtwhTm.d.mts → client-D0j-_aaa.d.mts} +2 -1
- package/dist/{client-CivP-PAI.d.ts → client-DflfVyj6.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -11
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +94 -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 +6 -1
- package/dist/cli/auth-UYCOBAL5.js +0 -39
- package/dist/cli/describe-YKOE54ZO.js +0 -406
- 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/sessions-57L5MGHN.js +0 -15
- package/dist/cli/skills-SPXUBLII.js +0 -28
- package/dist/cli/tools-DBHUUZJX.js +0 -42
- package/dist/cli/update-VSNFXRHJ.js +0 -28
|
@@ -2,33 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUVXBVUZQjs = require('./chunk-UVXBVUZQ.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 _chunkYLRME7MKjs = require('./chunk-YLRME7MK.js');
|
|
15
|
+
require('./chunk-YSVORIEW.js');
|
|
16
|
+
require('./chunk-ZHUMDMOS.js');
|
|
17
17
|
require('./chunk-WJYPBHTE.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
21
|
+
var _chunkDQ65ZVHNjs = require('./chunk-DQ65ZVHN.js');
|
|
22
|
+
require('./chunk-RYW4HPSM.js');
|
|
23
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
23
24
|
require('./chunk-XNYIZMNQ.js');
|
|
24
25
|
require('./chunk-7P5AA3SN.js');
|
|
25
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-IZ74ABSX.js');
|
|
26
27
|
require('./chunk-OG64RBAC.js');
|
|
27
28
|
require('./chunk-COGTRVWW.js');
|
|
28
29
|
|
|
29
30
|
// src/cli/commands/settings.ts
|
|
30
31
|
var _fs = require('fs');
|
|
31
|
-
var eventHelp =
|
|
32
|
+
var eventHelp = _chunkUVXBVUZQjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
32
33
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
33
34
|
).join("\n");
|
|
34
35
|
function slackDestination(settings) {
|
|
@@ -40,7 +41,7 @@ function slackDestination(settings) {
|
|
|
40
41
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
41
42
|
})
|
|
42
43
|
);
|
|
43
|
-
return
|
|
44
|
+
return _chunkUVXBVUZQjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
44
45
|
}
|
|
45
46
|
function eventLines(settings, destinationId) {
|
|
46
47
|
const enabled = new Map(
|
|
@@ -62,10 +63,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
62
63
|
return event;
|
|
63
64
|
}
|
|
64
65
|
async function printSettings(options) {
|
|
65
|
-
const settings = await new (0,
|
|
66
|
+
const settings = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotificationSettings();
|
|
66
67
|
const slack = slackDestination(settings);
|
|
67
68
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
68
|
-
|
|
69
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
69
70
|
{
|
|
70
71
|
settings,
|
|
71
72
|
render: {
|
|
@@ -120,8 +121,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
120
121
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
121
122
|
`
|
|
122
123
|
).option("--json", "Emit JSON output").action((options) => {
|
|
123
|
-
const preferences =
|
|
124
|
-
|
|
124
|
+
const preferences = _chunkYLRME7MKjs.readCliUpdatePreferences.call(void 0, );
|
|
125
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
125
126
|
{
|
|
126
127
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
127
128
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -144,8 +145,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
144
145
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
145
146
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
146
147
|
).option("--json", "Emit JSON output").action((options) => {
|
|
147
|
-
const preferences =
|
|
148
|
-
|
|
148
|
+
const preferences = _chunkYLRME7MKjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
149
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
149
150
|
{
|
|
150
151
|
ok: true,
|
|
151
152
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -166,7 +167,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
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
|
|
170
|
+
process.exitCode = await _chunkYLRME7MKjs.runUpdateCommand.call(void 0, {
|
|
170
171
|
pin: version,
|
|
171
172
|
json: options.json,
|
|
172
173
|
executeWithJson: true
|
|
@@ -194,15 +195,15 @@ notifications; there is no general integrations CLI.
|
|
|
194
195
|
if (destination !== "slack")
|
|
195
196
|
throw new Error("Only slack is supported.");
|
|
196
197
|
if (options.dryRun) {
|
|
197
|
-
|
|
198
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
198
199
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
199
200
|
{ json: options.json }
|
|
200
201
|
);
|
|
201
202
|
return;
|
|
202
203
|
}
|
|
203
|
-
const result = await new (0,
|
|
204
|
-
const browser = options.open ?
|
|
205
|
-
|
|
204
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().connectNotificationSlack();
|
|
205
|
+
const browser = options.open ? _chunkDQ65ZVHNjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
206
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
206
207
|
{
|
|
207
208
|
...result,
|
|
208
209
|
browser,
|
|
@@ -226,10 +227,10 @@ notifications; there is no general integrations CLI.
|
|
|
226
227
|
}
|
|
227
228
|
);
|
|
228
229
|
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,
|
|
230
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().listNotificationSlackChannels(
|
|
230
231
|
options.query
|
|
231
232
|
);
|
|
232
|
-
|
|
233
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
233
234
|
{
|
|
234
235
|
...result,
|
|
235
236
|
render: {
|
|
@@ -255,14 +256,14 @@ notifications; there is no general integrations CLI.
|
|
|
255
256
|
}
|
|
256
257
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
257
258
|
if (options.dryRun) {
|
|
258
|
-
|
|
259
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
259
260
|
{ dryRun: true, destination, target },
|
|
260
261
|
{ json: options.json }
|
|
261
262
|
);
|
|
262
263
|
return;
|
|
263
264
|
}
|
|
264
|
-
const result = await new (0,
|
|
265
|
-
|
|
265
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().setNotificationSlack(target);
|
|
266
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
266
267
|
{
|
|
267
268
|
ok: true,
|
|
268
269
|
result,
|
|
@@ -288,14 +289,14 @@ notifications; there is no general integrations CLI.
|
|
|
288
289
|
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
290
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
290
291
|
if (options.dryRun) {
|
|
291
|
-
|
|
292
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
292
293
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
293
294
|
{ json: options.json }
|
|
294
295
|
);
|
|
295
296
|
return;
|
|
296
297
|
}
|
|
297
|
-
const result = await new (0,
|
|
298
|
-
|
|
298
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().testNotificationSlack();
|
|
299
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
299
300
|
{
|
|
300
301
|
...result,
|
|
301
302
|
render: {
|
|
@@ -308,14 +309,14 @@ notifications; there is no general integrations CLI.
|
|
|
308
309
|
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
310
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
310
311
|
if (options.dryRun) {
|
|
311
|
-
|
|
312
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
312
313
|
{ dryRun: true, destination, action: "disable" },
|
|
313
314
|
{ json: options.json }
|
|
314
315
|
);
|
|
315
316
|
return;
|
|
316
317
|
}
|
|
317
|
-
const result = await new (0,
|
|
318
|
-
|
|
318
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().disableNotificationSlack();
|
|
319
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
319
320
|
{
|
|
320
321
|
ok: true,
|
|
321
322
|
result,
|
|
@@ -334,10 +335,10 @@ ${eventHelp}
|
|
|
334
335
|
`
|
|
335
336
|
);
|
|
336
337
|
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,
|
|
338
|
+
const current = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotificationSettings();
|
|
338
339
|
const destination = slackDestination(current);
|
|
339
340
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
340
|
-
|
|
341
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
341
342
|
{
|
|
342
343
|
catalog: current.catalog,
|
|
343
344
|
subscriptions: current.subscriptions,
|
|
@@ -354,14 +355,14 @@ ${eventHelp}
|
|
|
354
355
|
);
|
|
355
356
|
});
|
|
356
357
|
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,
|
|
358
|
+
const current = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotificationSettings();
|
|
358
359
|
const event = requireCatalogEvent(current, eventType);
|
|
359
360
|
const destination = slackDestination(current);
|
|
360
361
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
361
362
|
const subscription = current.subscriptions.find(
|
|
362
363
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
363
364
|
);
|
|
364
|
-
|
|
365
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
365
366
|
{
|
|
366
367
|
event,
|
|
367
368
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -382,11 +383,11 @@ ${eventHelp}
|
|
|
382
383
|
});
|
|
383
384
|
for (const enabled of [true, false]) {
|
|
384
385
|
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,
|
|
386
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
386
387
|
const current = await client.getNotificationSettings();
|
|
387
388
|
const event = requireCatalogEvent(current, eventType);
|
|
388
389
|
if (options.dryRun) {
|
|
389
|
-
|
|
390
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
390
391
|
{ dryRun: true, event, enabled },
|
|
391
392
|
{ json: options.json }
|
|
392
393
|
);
|
|
@@ -396,7 +397,7 @@ ${eventHelp}
|
|
|
396
397
|
[event.id],
|
|
397
398
|
enabled
|
|
398
399
|
);
|
|
399
|
-
|
|
400
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
400
401
|
{
|
|
401
402
|
ok: true,
|
|
402
403
|
event: event.id,
|
|
@@ -417,11 +418,11 @@ ${eventHelp}
|
|
|
417
418
|
}
|
|
418
419
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
419
420
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
420
|
-
const result = await new (0,
|
|
421
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().listNotificationDlq(
|
|
421
422
|
Number(options.limit)
|
|
422
423
|
);
|
|
423
424
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
424
|
-
|
|
425
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
425
426
|
{
|
|
426
427
|
...result,
|
|
427
428
|
render: {
|
|
@@ -439,10 +440,10 @@ ${eventHelp}
|
|
|
439
440
|
);
|
|
440
441
|
});
|
|
441
442
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
442
|
-
const result = await new (0,
|
|
443
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
443
444
|
deliveryId
|
|
444
445
|
);
|
|
445
|
-
|
|
446
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, {
|
|
446
447
|
json: options.json
|
|
447
448
|
});
|
|
448
449
|
});
|
|
@@ -451,17 +452,17 @@ ${eventHelp}
|
|
|
451
452
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
452
453
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
453
454
|
if (options.dryRun) {
|
|
454
|
-
|
|
455
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
455
456
|
{ dryRun: true, action, deliveryId },
|
|
456
457
|
{ json: options.json }
|
|
457
458
|
);
|
|
458
459
|
return;
|
|
459
460
|
}
|
|
460
|
-
const result = await new (0,
|
|
461
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
461
462
|
deliveryId,
|
|
462
463
|
action
|
|
463
464
|
);
|
|
464
|
-
|
|
465
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
465
466
|
{ ok: true, action, deliveryId, result },
|
|
466
467
|
{ json: options.json }
|
|
467
468
|
);
|
|
@@ -562,8 +563,8 @@ Examples:
|
|
|
562
563
|
`
|
|
563
564
|
);
|
|
564
565
|
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
|
-
|
|
566
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotificationConfiguration();
|
|
567
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
567
568
|
{
|
|
568
569
|
...result,
|
|
569
570
|
render: {
|
|
@@ -588,21 +589,21 @@ Examples:
|
|
|
588
589
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
589
590
|
const input = await readNotificationConfigurationChange(file);
|
|
590
591
|
if (options.dryRun) {
|
|
591
|
-
|
|
592
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
592
593
|
{ dryRun: true, ...input },
|
|
593
594
|
{ json: options.json }
|
|
594
595
|
);
|
|
595
596
|
return;
|
|
596
597
|
}
|
|
597
|
-
const result = await new (0,
|
|
598
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().changeNotificationConfiguration(
|
|
598
599
|
input.expectedWorkspaceVersion,
|
|
599
600
|
input.change
|
|
600
601
|
);
|
|
601
|
-
|
|
602
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
602
603
|
});
|
|
603
604
|
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
|
-
|
|
605
|
+
const settings = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotifications();
|
|
606
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
606
607
|
{
|
|
607
608
|
events: settings.catalog,
|
|
608
609
|
render: {
|
|
@@ -620,9 +621,9 @@ Examples:
|
|
|
620
621
|
);
|
|
621
622
|
});
|
|
622
623
|
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,
|
|
624
|
+
const settings = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotifications();
|
|
624
625
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
625
|
-
|
|
626
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
626
627
|
{
|
|
627
628
|
notifications: options.compact ? rules.map((rule) => ({
|
|
628
629
|
id: rule.id,
|
|
@@ -650,10 +651,10 @@ Examples:
|
|
|
650
651
|
});
|
|
651
652
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
652
653
|
const rule = notificationByName(
|
|
653
|
-
await new (0,
|
|
654
|
+
await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getNotifications(),
|
|
654
655
|
name
|
|
655
656
|
);
|
|
656
|
-
|
|
657
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
657
658
|
});
|
|
658
659
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
659
660
|
"--to <target>",
|
|
@@ -667,14 +668,14 @@ Examples:
|
|
|
667
668
|
[]
|
|
668
669
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
669
670
|
async (name, options) => {
|
|
670
|
-
const result = await new (0,
|
|
671
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().createNotificationGroup({
|
|
671
672
|
name,
|
|
672
673
|
targets: options.to,
|
|
673
674
|
legacyEvents: options.for,
|
|
674
675
|
dryRun: options.dryRun
|
|
675
676
|
});
|
|
676
677
|
if (result.mode === "dry_run") {
|
|
677
|
-
|
|
678
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
678
679
|
result.compatibilityMode ? {
|
|
679
680
|
dryRun: true,
|
|
680
681
|
name: result.name,
|
|
@@ -691,7 +692,7 @@ Examples:
|
|
|
691
692
|
return;
|
|
692
693
|
}
|
|
693
694
|
if (result.mode === "legacy") {
|
|
694
|
-
|
|
695
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
695
696
|
{
|
|
696
697
|
notification: result.notification,
|
|
697
698
|
render: {
|
|
@@ -713,7 +714,7 @@ Examples:
|
|
|
713
714
|
);
|
|
714
715
|
return;
|
|
715
716
|
}
|
|
716
|
-
|
|
717
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
717
718
|
{
|
|
718
719
|
...result,
|
|
719
720
|
render: {
|
|
@@ -749,12 +750,12 @@ Examples:
|
|
|
749
750
|
[]
|
|
750
751
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
751
752
|
async (name, options) => {
|
|
752
|
-
const client = new (0,
|
|
753
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
753
754
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
754
755
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
755
756
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
756
757
|
if (options.dryRun) {
|
|
757
|
-
|
|
758
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
758
759
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
759
760
|
{ json: options.json }
|
|
760
761
|
);
|
|
@@ -765,15 +766,15 @@ Examples:
|
|
|
765
766
|
...target,
|
|
766
767
|
eventTypes
|
|
767
768
|
});
|
|
768
|
-
|
|
769
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
769
770
|
}
|
|
770
771
|
);
|
|
771
772
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
772
773
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
773
|
-
const result = await new (0,
|
|
774
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().listNotificationChannels(
|
|
774
775
|
options.search
|
|
775
776
|
);
|
|
776
|
-
|
|
777
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
777
778
|
{
|
|
778
779
|
...result,
|
|
779
780
|
render: {
|
|
@@ -793,31 +794,31 @@ Examples:
|
|
|
793
794
|
["resume", true]
|
|
794
795
|
]) {
|
|
795
796
|
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,
|
|
797
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
797
798
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
798
799
|
if (options.dryRun) {
|
|
799
|
-
|
|
800
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
800
801
|
{ dryRun: true, notification: rule.id, enabled },
|
|
801
802
|
{ json: options.json }
|
|
802
803
|
);
|
|
803
804
|
return;
|
|
804
805
|
}
|
|
805
806
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
806
|
-
|
|
807
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
807
808
|
});
|
|
808
809
|
}
|
|
809
810
|
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,
|
|
811
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
811
812
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
812
813
|
if (options.dryRun) {
|
|
813
|
-
|
|
814
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
814
815
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
815
816
|
{ json: options.json }
|
|
816
817
|
);
|
|
817
818
|
return;
|
|
818
819
|
}
|
|
819
820
|
const result = await client.testNotification(rule.id);
|
|
820
|
-
|
|
821
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
821
822
|
{ ...result, notification: rule.name },
|
|
822
823
|
{ json: options.json }
|
|
823
824
|
);
|
|
@@ -825,17 +826,17 @@ Examples:
|
|
|
825
826
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
826
827
|
"Archive one notification without touching its provider integration."
|
|
827
828
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
828
|
-
const client = new (0,
|
|
829
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
829
830
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
830
831
|
if (options.dryRun) {
|
|
831
|
-
|
|
832
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
832
833
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
833
834
|
{ json: options.json }
|
|
834
835
|
);
|
|
835
836
|
return;
|
|
836
837
|
}
|
|
837
838
|
const result = await client.deleteNotification(rule.id);
|
|
838
|
-
|
|
839
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
839
840
|
{ ...result, notification: rule.name },
|
|
840
841
|
{ json: options.json }
|
|
841
842
|
);
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
handleWait,
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportSetupCompleted
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WM2QEHZL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NOX2TCBP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveShellSpawn,
|
|
16
16
|
runSkillsCommand,
|
|
17
17
|
skillsStatePathForScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MV7QRALK.mjs";
|
|
19
19
|
import "./chunk-GAMFK2ZP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
openInBrowser,
|
|
22
22
|
printCommandEnvelope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RNSWDKBM.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
autoDetectBaseUrl,
|
|
@@ -30,10 +30,11 @@ import {
|
|
|
30
30
|
resolveProjectApiKeyForBaseUrl,
|
|
31
31
|
resolveProjectPinTarget,
|
|
32
32
|
sdkCliStateDirPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2LDADJNO.mjs";
|
|
34
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
34
35
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
36
|
import "./chunk-NXGCO4JB.mjs";
|
|
36
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-MRXMMERY.mjs";
|
|
37
38
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
39
|
import {
|
|
39
40
|
DEEPLINE_GTM_SKILL,
|