deepline 0.3.336 → 0.3.337
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/play-runtime/scheduler-backends/postgres.ts +18 -5
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +19 -8
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +35 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +52 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +3 -5
- package/dist/cli/{auth-M45QKCUL.mjs → auth-6EREYQBM.mjs} +4 -4
- package/dist/cli/auth-XS3LNSAH.js +31 -0
- package/dist/cli/{billing-XCJVALTC.js → billing-HZBD5KW6.js} +71 -71
- package/dist/cli/{billing-E7ADEFLX.mjs → billing-VMXYQMW6.mjs} +4 -4
- package/dist/cli/{chunk-4NJCGGHK.mjs → chunk-2LHYWYHM.mjs} +1 -1
- package/dist/cli/{chunk-IT3AQZDG.mjs → chunk-35JNW43E.mjs} +3 -3
- package/dist/cli/{chunk-LOD6RKCD.js → chunk-3OBY2AGM.js} +45 -45
- package/dist/cli/{chunk-NCPAHNXJ.js → chunk-4SRIWSEG.js} +60 -60
- package/dist/cli/{chunk-WWZJ6P22.mjs → chunk-5ERCVX2D.mjs} +2 -2
- package/dist/cli/{chunk-ZXBVQAQW.js → chunk-5WTJ73QU.js} +225 -225
- package/dist/cli/{chunk-I5XF4PWD.js → chunk-6PGYQ6IG.js} +6 -6
- package/dist/cli/{chunk-VOD4V4G4.mjs → chunk-7MRAPBWB.mjs} +1 -1
- package/dist/cli/{chunk-ZPLBQ24U.js → chunk-A75J52BM.js} +4 -4
- package/dist/cli/{chunk-PWY5DNNP.mjs → chunk-FY65AYHZ.mjs} +4 -4
- package/dist/cli/{chunk-4S3G43M3.mjs → chunk-GPN5QAN2.mjs} +2 -2
- package/dist/cli/{chunk-GATWDGMB.mjs → chunk-HBM2UKEU.mjs} +1 -1
- package/dist/cli/{chunk-Q2HYQOID.js → chunk-HDI6GSRQ.js} +48 -48
- package/dist/cli/{chunk-VD45LDLL.mjs → chunk-IYK6XS5X.mjs} +6 -6
- package/dist/cli/{chunk-LDMQDERZ.js → chunk-M7IN66XB.js} +15 -15
- package/dist/cli/{chunk-5S4FMN6T.js → chunk-MHWEX6GA.js} +8 -8
- package/dist/cli/{chunk-4WHJDGBC.js → chunk-NC5ODEG7.js} +9 -9
- package/dist/cli/{chunk-JEE7AKWP.js → chunk-NIXE5325.js} +26 -26
- package/dist/cli/{chunk-IU3TFWPR.mjs → chunk-NQ42LHHS.mjs} +1 -1
- package/dist/cli/{chunk-2CJUQWW2.js → chunk-QEBA4KXE.js} +6 -6
- package/dist/cli/{chunk-TV6BWFGU.mjs → chunk-TB6HY4BW.mjs} +2 -2
- package/dist/cli/{chunk-B53RXFGP.mjs → chunk-VXCRG4J7.mjs} +1 -1
- package/dist/cli/{chunk-EBIISKOH.js → chunk-XFSDLHGS.js} +2 -2
- package/dist/cli/{chunk-TGMDQIYJ.mjs → chunk-YQW2FPKQ.mjs} +1 -1
- package/dist/cli/{chunk-KZT7YX7R.js → chunk-YSR4PFTZ.js} +1 -1
- package/dist/cli/{chunk-JULF4SPK.mjs → chunk-ZUB3LXOI.mjs} +5 -5
- package/dist/cli/{client-MUO4FRKO.mjs → client-BLGAYJME.mjs} +3 -3
- package/dist/cli/client-ERDYIAWV.js +20 -0
- package/dist/cli/{csv-2RT3FVOD.mjs → csv-43QTLWPN.mjs} +3 -3
- package/dist/cli/{csv-NGNI7CWG.js → csv-6WIFI6WR.js} +12 -12
- package/dist/cli/{db-7GKM6IUK.js → db-5XFKB76V.js} +29 -29
- package/dist/cli/{db-KUKHLFYS.mjs → db-NCERSUPL.mjs} +4 -4
- package/dist/cli/{describe-RDSWCQCO.js → describe-4DNSNQKM.js} +15 -15
- package/dist/cli/{describe-6MJ4B7NU.mjs → describe-V4BPRUES.mjs} +8 -8
- package/dist/cli/{executions-E6NAUIUO.js → executions-GQ4C2FGI.js} +6 -6
- package/dist/cli/{executions-C7NXL7QR.mjs → executions-IGXMYAYA.mjs} +4 -4
- package/dist/cli/{feedback-K5MAECHI.js → feedback-UFFCKVNH.js} +6 -6
- package/dist/cli/{feedback-D52ZWOTA.mjs → feedback-UVDBDHE4.mjs} +3 -3
- package/dist/cli/git-4ORFOHYQ.js +23 -0
- package/dist/cli/{git-YJLIAQJW.mjs → git-XI6XRTIZ.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-V3BNZ4BV.js → legacy-noops-5Z3YLPCN.js} +7 -7
- package/dist/cli/{legacy-noops-PK6JF4Y5.mjs → legacy-noops-IUJOLPED.mjs} +4 -4
- package/dist/cli/{monitors-ABKZDCOX.mjs → monitors-KUS3ROXZ.mjs} +4 -4
- package/dist/cli/{monitors-ZC6CFUHS.js → monitors-TZAGTEID.js} +85 -85
- package/dist/cli/{org-RQGEMXS6.js → org-AHHROX6T.js} +60 -60
- package/dist/cli/{org-JB46ECLU.mjs → org-SLIG47UE.mjs} +4 -4
- package/dist/cli/{play-WANQPXLR.mjs → play-G4AQ2OZ5.mjs} +7 -7
- package/dist/cli/play-RRKTT3F2.js +153 -0
- package/dist/cli/{providers-JRRQEOUN.js → providers-PBFVQ2EP.js} +7 -7
- package/dist/cli/{providers-T4FBXHMX.mjs → providers-XQIQO6M3.mjs} +4 -4
- package/dist/cli/{quickstart-KTT4JBZY.mjs → quickstart-PCASXB6T.mjs} +3 -3
- package/dist/cli/{quickstart-35VIDBJK.js → quickstart-X6CLGXVG.js} +5 -5
- package/dist/cli/search-QGFQSDJI.js +26 -0
- package/dist/cli/{search-DZ5I6Q5Z.mjs → search-ZTYQBKME.mjs} +5 -5
- package/dist/cli/{secrets-H6UBIMY7.mjs → secrets-IDF3FB7W.mjs} +4 -4
- package/dist/cli/{secrets-4FZIXXPT.js → secrets-N3DWWVAY.js} +13 -13
- package/dist/cli/{sessions-63S3OOVP.mjs → sessions-ECDSBB7P.mjs} +4 -4
- package/dist/cli/{sessions-RDM6DBHZ.js → sessions-SXXMNGUT.js} +5 -5
- package/dist/cli/{settings-JQQVY5I5.mjs → settings-FKARLN4C.mjs} +7 -7
- package/dist/cli/{settings-S4AHAT3J.js → settings-IXHK6BAK.js} +74 -74
- package/dist/cli/{setup-W6U2T7HU.mjs → setup-LJG55UUU.mjs} +6 -6
- package/dist/cli/{setup-76X6E2IB.js → setup-MJXYEE27.js} +41 -41
- package/dist/cli/{skills-ONHUMRAF.mjs → skills-3IBFR2ZU.mjs} +4 -4
- package/dist/cli/skills-RI3IZNWB.js +28 -0
- package/dist/cli/tools-NQJLSI4O.js +40 -0
- package/dist/cli/{tools-JEC63YLX.mjs → tools-ZJTHJHAD.mjs} +6 -6
- package/dist/cli/update-JY7TJJDL.js +28 -0
- package/dist/cli/{update-3M5CUY4U.mjs → update-ZN34FLDH.mjs} +6 -6
- package/dist/cli/{workflow-SDT7YIQ7.mjs → workflow-LPCF7OMO.mjs} +5 -5
- package/dist/cli/{workflow-PEU7CC4I.js → workflow-VLCSTKPW.js} +15 -15
- package/dist/{client-PDAfbylh.d.mts → client-B-hjM1NX.d.mts} +18 -2
- package/dist/{client-DkoxT4wF.d.ts → client-txa3om01.d.ts} +18 -2
- 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 +76 -76
- 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-6RQLNYNF.js +0 -31
- package/dist/cli/client-LNCVWDUS.js +0 -20
- package/dist/cli/git-E62XZHQW.js +0 -23
- package/dist/cli/play-TRKFECQV.js +0 -153
- package/dist/cli/search-KMMM4BRX.js +0 -26
- package/dist/cli/skills-HLLZUL4W.js +0 -28
- package/dist/cli/tools-YSUGUPYH.js +0 -40
- package/dist/cli/update-ASHUXHC5.js +0 -28
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNC5ODEG7js = require('./chunk-NC5ODEG7.js');
|
|
6
6
|
require('./chunk-LA46MMTL.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
var _chunkM7IN66XBjs = require('./chunk-M7IN66XB.js');
|
|
12
|
+
require('./chunk-XFSDLHGS.js');
|
|
13
|
+
require('./chunk-4SRIWSEG.js');
|
|
14
14
|
require('./chunk-WJYPBHTE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunk6PGYQ6IGjs = require('./chunk-6PGYQ6IG.js');
|
|
19
|
+
require('./chunk-A75J52BM.js');
|
|
20
20
|
require('./chunk-XNYIZMNQ.js');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-YSR4PFTZ.js');
|
|
22
22
|
require('./chunk-S6R3OX7B.js');
|
|
23
23
|
require('./chunk-7P5AA3SN.js');
|
|
24
24
|
require('./chunk-OG64RBAC.js');
|
|
@@ -26,7 +26,7 @@ require('./chunk-COGTRVWW.js');
|
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/settings.ts
|
|
28
28
|
var _fs = require('fs');
|
|
29
|
-
var eventHelp =
|
|
29
|
+
var eventHelp = _chunkNC5ODEG7js.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
30
30
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
31
31
|
).join("\n");
|
|
32
32
|
function slackDestination(settings) {
|
|
@@ -38,7 +38,7 @@ function slackDestination(settings) {
|
|
|
38
38
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
|
-
return
|
|
41
|
+
return _chunkNC5ODEG7js.resolveLegacySlackNotification.call(void 0, destinations);
|
|
42
42
|
}
|
|
43
43
|
function eventLines(settings, destinationId) {
|
|
44
44
|
const enabled = new Map(
|
|
@@ -60,10 +60,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
60
60
|
return event;
|
|
61
61
|
}
|
|
62
62
|
async function printSettings(options) {
|
|
63
|
-
const settings = await new (0,
|
|
63
|
+
const settings = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotificationSettings();
|
|
64
64
|
const slack = slackDestination(settings);
|
|
65
65
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
66
|
-
|
|
66
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
67
67
|
{
|
|
68
68
|
settings,
|
|
69
69
|
render: {
|
|
@@ -118,8 +118,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
118
118
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
119
119
|
`
|
|
120
120
|
).option("--json", "Emit JSON output").action((options) => {
|
|
121
|
-
const preferences =
|
|
122
|
-
|
|
121
|
+
const preferences = _chunkM7IN66XBjs.readCliUpdatePreferences.call(void 0, );
|
|
122
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
123
123
|
{
|
|
124
124
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
125
125
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -142,8 +142,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
142
142
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
143
143
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
144
144
|
).option("--json", "Emit JSON output").action((options) => {
|
|
145
|
-
const preferences =
|
|
146
|
-
|
|
145
|
+
const preferences = _chunkM7IN66XBjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
146
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
147
147
|
{
|
|
148
148
|
ok: true,
|
|
149
149
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -164,7 +164,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
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) => {
|
|
167
|
-
process.exitCode = await
|
|
167
|
+
process.exitCode = await _chunkM7IN66XBjs.runUpdateCommand.call(void 0, {
|
|
168
168
|
pin: version,
|
|
169
169
|
json: options.json,
|
|
170
170
|
executeWithJson: true
|
|
@@ -192,15 +192,15 @@ notifications; there is no general integrations CLI.
|
|
|
192
192
|
if (destination !== "slack")
|
|
193
193
|
throw new Error("Only slack is supported.");
|
|
194
194
|
if (options.dryRun) {
|
|
195
|
-
|
|
195
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
196
196
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
197
197
|
{ json: options.json }
|
|
198
198
|
);
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
const result = await new (0,
|
|
202
|
-
const browser = options.open ?
|
|
203
|
-
|
|
201
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().connectNotificationSlack();
|
|
202
|
+
const browser = options.open ? _chunk6PGYQ6IGjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
203
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
204
204
|
{
|
|
205
205
|
...result,
|
|
206
206
|
browser,
|
|
@@ -224,10 +224,10 @@ notifications; there is no general integrations CLI.
|
|
|
224
224
|
}
|
|
225
225
|
);
|
|
226
226
|
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) => {
|
|
227
|
-
const result = await new (0,
|
|
227
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().listNotificationSlackChannels(
|
|
228
228
|
options.query
|
|
229
229
|
);
|
|
230
|
-
|
|
230
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
231
231
|
{
|
|
232
232
|
...result,
|
|
233
233
|
render: {
|
|
@@ -253,14 +253,14 @@ notifications; there is no general integrations CLI.
|
|
|
253
253
|
}
|
|
254
254
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
255
255
|
if (options.dryRun) {
|
|
256
|
-
|
|
256
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
257
257
|
{ dryRun: true, destination, target },
|
|
258
258
|
{ json: options.json }
|
|
259
259
|
);
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
|
-
const result = await new (0,
|
|
263
|
-
|
|
262
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().setNotificationSlack(target);
|
|
263
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
264
264
|
{
|
|
265
265
|
ok: true,
|
|
266
266
|
result,
|
|
@@ -286,14 +286,14 @@ notifications; there is no general integrations CLI.
|
|
|
286
286
|
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) => {
|
|
287
287
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
288
288
|
if (options.dryRun) {
|
|
289
|
-
|
|
289
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
290
290
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
291
291
|
{ json: options.json }
|
|
292
292
|
);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
const result = await new (0,
|
|
296
|
-
|
|
295
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().testNotificationSlack();
|
|
296
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
297
297
|
{
|
|
298
298
|
...result,
|
|
299
299
|
render: {
|
|
@@ -306,14 +306,14 @@ notifications; there is no general integrations CLI.
|
|
|
306
306
|
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) => {
|
|
307
307
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
308
308
|
if (options.dryRun) {
|
|
309
|
-
|
|
309
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
310
310
|
{ dryRun: true, destination, action: "disable" },
|
|
311
311
|
{ json: options.json }
|
|
312
312
|
);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
|
-
const result = await new (0,
|
|
316
|
-
|
|
315
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().disableNotificationSlack();
|
|
316
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
317
317
|
{
|
|
318
318
|
ok: true,
|
|
319
319
|
result,
|
|
@@ -332,10 +332,10 @@ ${eventHelp}
|
|
|
332
332
|
`
|
|
333
333
|
);
|
|
334
334
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
335
|
-
const current = await new (0,
|
|
335
|
+
const current = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotificationSettings();
|
|
336
336
|
const destination = slackDestination(current);
|
|
337
337
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
338
|
-
|
|
338
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
339
339
|
{
|
|
340
340
|
catalog: current.catalog,
|
|
341
341
|
subscriptions: current.subscriptions,
|
|
@@ -352,14 +352,14 @@ ${eventHelp}
|
|
|
352
352
|
);
|
|
353
353
|
});
|
|
354
354
|
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) => {
|
|
355
|
-
const current = await new (0,
|
|
355
|
+
const current = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotificationSettings();
|
|
356
356
|
const event = requireCatalogEvent(current, eventType);
|
|
357
357
|
const destination = slackDestination(current);
|
|
358
358
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
359
359
|
const subscription = current.subscriptions.find(
|
|
360
360
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
361
361
|
);
|
|
362
|
-
|
|
362
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
363
363
|
{
|
|
364
364
|
event,
|
|
365
365
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -380,11 +380,11 @@ ${eventHelp}
|
|
|
380
380
|
});
|
|
381
381
|
for (const enabled of [true, false]) {
|
|
382
382
|
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) => {
|
|
383
|
-
const client = new (0,
|
|
383
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
384
384
|
const current = await client.getNotificationSettings();
|
|
385
385
|
const event = requireCatalogEvent(current, eventType);
|
|
386
386
|
if (options.dryRun) {
|
|
387
|
-
|
|
387
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
388
388
|
{ dryRun: true, event, enabled },
|
|
389
389
|
{ json: options.json }
|
|
390
390
|
);
|
|
@@ -394,7 +394,7 @@ ${eventHelp}
|
|
|
394
394
|
[event.id],
|
|
395
395
|
enabled
|
|
396
396
|
);
|
|
397
|
-
|
|
397
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
398
398
|
{
|
|
399
399
|
ok: true,
|
|
400
400
|
event: event.id,
|
|
@@ -415,11 +415,11 @@ ${eventHelp}
|
|
|
415
415
|
}
|
|
416
416
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
417
417
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
418
|
-
const result = await new (0,
|
|
418
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().listNotificationDlq(
|
|
419
419
|
Number(options.limit)
|
|
420
420
|
);
|
|
421
421
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
422
|
-
|
|
422
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
423
423
|
{
|
|
424
424
|
...result,
|
|
425
425
|
render: {
|
|
@@ -437,10 +437,10 @@ ${eventHelp}
|
|
|
437
437
|
);
|
|
438
438
|
});
|
|
439
439
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
440
|
-
const result = await new (0,
|
|
440
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotificationDlqDelivery(
|
|
441
441
|
deliveryId
|
|
442
442
|
);
|
|
443
|
-
|
|
443
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, result, {
|
|
444
444
|
json: options.json
|
|
445
445
|
});
|
|
446
446
|
});
|
|
@@ -449,17 +449,17 @@ ${eventHelp}
|
|
|
449
449
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
450
450
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
451
451
|
if (options.dryRun) {
|
|
452
|
-
|
|
452
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
453
453
|
{ dryRun: true, action, deliveryId },
|
|
454
454
|
{ json: options.json }
|
|
455
455
|
);
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
|
-
const result = await new (0,
|
|
458
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().updateNotificationDlqDelivery(
|
|
459
459
|
deliveryId,
|
|
460
460
|
action
|
|
461
461
|
);
|
|
462
|
-
|
|
462
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
463
463
|
{ ok: true, action, deliveryId, result },
|
|
464
464
|
{ json: options.json }
|
|
465
465
|
);
|
|
@@ -560,8 +560,8 @@ Examples:
|
|
|
560
560
|
`
|
|
561
561
|
);
|
|
562
562
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
563
|
-
const result = await new (0,
|
|
564
|
-
|
|
563
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotificationConfiguration();
|
|
564
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
565
565
|
{
|
|
566
566
|
...result,
|
|
567
567
|
render: {
|
|
@@ -586,21 +586,21 @@ Examples:
|
|
|
586
586
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
587
587
|
const input = await readNotificationConfigurationChange(file);
|
|
588
588
|
if (options.dryRun) {
|
|
589
|
-
|
|
589
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
590
590
|
{ dryRun: true, ...input },
|
|
591
591
|
{ json: options.json }
|
|
592
592
|
);
|
|
593
593
|
return;
|
|
594
594
|
}
|
|
595
|
-
const result = await new (0,
|
|
595
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().changeNotificationConfiguration(
|
|
596
596
|
input.expectedWorkspaceVersion,
|
|
597
597
|
input.change
|
|
598
598
|
);
|
|
599
|
-
|
|
599
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
600
600
|
});
|
|
601
601
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
602
|
-
const settings = await new (0,
|
|
603
|
-
|
|
602
|
+
const settings = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotifications();
|
|
603
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
604
604
|
{
|
|
605
605
|
events: settings.catalog,
|
|
606
606
|
render: {
|
|
@@ -618,9 +618,9 @@ Examples:
|
|
|
618
618
|
);
|
|
619
619
|
});
|
|
620
620
|
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) => {
|
|
621
|
-
const settings = await new (0,
|
|
621
|
+
const settings = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotifications();
|
|
622
622
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
623
|
-
|
|
623
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
624
624
|
{
|
|
625
625
|
notifications: options.compact ? rules.map((rule) => ({
|
|
626
626
|
id: rule.id,
|
|
@@ -648,10 +648,10 @@ Examples:
|
|
|
648
648
|
});
|
|
649
649
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
650
650
|
const rule = notificationByName(
|
|
651
|
-
await new (0,
|
|
651
|
+
await new (0, _chunkNC5ODEG7js.DeeplineClient)().getNotifications(),
|
|
652
652
|
name
|
|
653
653
|
);
|
|
654
|
-
|
|
654
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
655
655
|
});
|
|
656
656
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
657
657
|
"--to <target>",
|
|
@@ -665,14 +665,14 @@ Examples:
|
|
|
665
665
|
[]
|
|
666
666
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
667
667
|
async (name, options) => {
|
|
668
|
-
const result = await new (0,
|
|
668
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().createNotificationGroup({
|
|
669
669
|
name,
|
|
670
670
|
targets: options.to,
|
|
671
671
|
legacyEvents: options.for,
|
|
672
672
|
dryRun: options.dryRun
|
|
673
673
|
});
|
|
674
674
|
if (result.mode === "dry_run") {
|
|
675
|
-
|
|
675
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
676
676
|
result.compatibilityMode ? {
|
|
677
677
|
dryRun: true,
|
|
678
678
|
name: result.name,
|
|
@@ -689,7 +689,7 @@ Examples:
|
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
if (result.mode === "legacy") {
|
|
692
|
-
|
|
692
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
693
693
|
{
|
|
694
694
|
notification: result.notification,
|
|
695
695
|
render: {
|
|
@@ -711,7 +711,7 @@ Examples:
|
|
|
711
711
|
);
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
715
715
|
{
|
|
716
716
|
...result,
|
|
717
717
|
render: {
|
|
@@ -747,12 +747,12 @@ Examples:
|
|
|
747
747
|
[]
|
|
748
748
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
749
749
|
async (name, options) => {
|
|
750
|
-
const client = new (0,
|
|
750
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
751
751
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
752
752
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
753
753
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
754
754
|
if (options.dryRun) {
|
|
755
|
-
|
|
755
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
756
756
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
757
757
|
{ json: options.json }
|
|
758
758
|
);
|
|
@@ -763,15 +763,15 @@ Examples:
|
|
|
763
763
|
...target,
|
|
764
764
|
eventTypes
|
|
765
765
|
});
|
|
766
|
-
|
|
766
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
769
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
770
770
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
771
|
-
const result = await new (0,
|
|
771
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().listNotificationChannels(
|
|
772
772
|
options.search
|
|
773
773
|
);
|
|
774
|
-
|
|
774
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
775
775
|
{
|
|
776
776
|
...result,
|
|
777
777
|
render: {
|
|
@@ -791,31 +791,31 @@ Examples:
|
|
|
791
791
|
["resume", true]
|
|
792
792
|
]) {
|
|
793
793
|
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) => {
|
|
794
|
-
const client = new (0,
|
|
794
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
795
795
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
796
796
|
if (options.dryRun) {
|
|
797
|
-
|
|
797
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
798
798
|
{ dryRun: true, notification: rule.id, enabled },
|
|
799
799
|
{ json: options.json }
|
|
800
800
|
);
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
803
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
804
|
-
|
|
804
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
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) => {
|
|
808
|
-
const client = new (0,
|
|
808
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
809
809
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
810
810
|
if (options.dryRun) {
|
|
811
|
-
|
|
811
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
812
812
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
813
813
|
{ json: options.json }
|
|
814
814
|
);
|
|
815
815
|
return;
|
|
816
816
|
}
|
|
817
817
|
const result = await client.testNotification(rule.id);
|
|
818
|
-
|
|
818
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
819
819
|
{ ...result, notification: rule.name },
|
|
820
820
|
{ json: options.json }
|
|
821
821
|
);
|
|
@@ -823,17 +823,17 @@ Examples:
|
|
|
823
823
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
824
824
|
"Archive one notification without touching its provider integration."
|
|
825
825
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
826
|
-
const client = new (0,
|
|
826
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
827
827
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
828
828
|
if (options.dryRun) {
|
|
829
|
-
|
|
829
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
830
830
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
831
831
|
{ json: options.json }
|
|
832
832
|
);
|
|
833
833
|
return;
|
|
834
834
|
}
|
|
835
835
|
const result = await client.deleteNotification(rule.id);
|
|
836
|
-
|
|
836
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
837
837
|
{ ...result, notification: rule.name },
|
|
838
838
|
{ json: options.json }
|
|
839
839
|
);
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
handleWait,
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportSetupCompleted
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GPN5QAN2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HBM2UKEU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveShellSpawn,
|
|
16
16
|
runSkillsCommand,
|
|
17
17
|
skillsStatePathForScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TB6HY4BW.mjs";
|
|
19
19
|
import "./chunk-GAMFK2ZP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
openInBrowser,
|
|
22
22
|
printCommandEnvelope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YQW2FPKQ.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
autoDetectBaseUrl,
|
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
resolveProjectApiKeyForBaseUrl,
|
|
31
31
|
resolveProjectPinTarget,
|
|
32
32
|
sdkCliStateDirPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NQ42LHHS.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-VXCRG4J7.mjs";
|
|
36
36
|
import {
|
|
37
37
|
DEEPLINE_GTM_SKILL,
|
|
38
38
|
DEEPLINE_GTM_STARTER_PROMPTS,
|