deepline 0.3.440 → 0.3.441
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/context.ts +10 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
- package/dist/cli/{auth-KBORTFO6.mjs → auth-D2ZF664Y.mjs} +6 -6
- package/dist/cli/auth-XTW4JZT4.js +40 -0
- package/dist/cli/{billing-VJSUCB5I.mjs → billing-4MIYCPSV.mjs} +7 -7
- package/dist/cli/{billing-RE5WN7IQ.js → billing-5OLSZRHE.js} +83 -83
- package/dist/cli/{chunk-R2P756BJ.js → chunk-27LQEDGO.js} +16 -16
- package/dist/cli/{chunk-GRAEERVE.mjs → chunk-2LVCAPN7.mjs} +3 -3
- package/dist/cli/{chunk-M6WSQZHP.js → chunk-2MMUUSBN.js} +57 -57
- package/dist/cli/{chunk-CI56TXRS.js → chunk-2VZKT2PE.js} +35 -35
- package/dist/cli/{chunk-BBYGXP2I.js → chunk-3IRJIEIE.js} +12 -12
- package/dist/cli/{chunk-ATTUUPIU.js → chunk-3XPO3MWC.js} +8 -8
- package/dist/cli/{chunk-V74O7X2X.mjs → chunk-4N3ZT6OJ.mjs} +2 -2
- package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
- package/dist/cli/{chunk-PCNOULRB.mjs → chunk-55GDG7QJ.mjs} +4 -4
- package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
- package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
- package/dist/cli/{chunk-EPABMF45.js → chunk-AG5SQSH5.js} +6 -6
- package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
- package/dist/cli/{chunk-OX5JAD3D.mjs → chunk-ARVYJDPQ.mjs} +4 -4
- package/dist/cli/{chunk-Z7SKBAOU.js → chunk-AVQ4V6Y7.js} +93 -93
- package/dist/cli/{chunk-42YHEY2R.mjs → chunk-AZZCCHOL.mjs} +2 -2
- package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
- package/dist/cli/{chunk-4RKPT6IE.js → chunk-DE354WOP.js} +2 -2
- package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
- package/dist/cli/{chunk-RAJP44MZ.mjs → chunk-DIDMHGVH.mjs} +1 -1
- package/dist/cli/{chunk-GJI7C2OU.js → chunk-DV4G676C.js} +8 -8
- package/dist/cli/{chunk-V2ZITVZA.js → chunk-F2EMJUDJ.js} +26 -26
- package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
- package/dist/cli/{chunk-K23LXA4N.mjs → chunk-FOLT3LUQ.mjs} +2 -2
- package/dist/cli/{chunk-GFEWNYQ4.js → chunk-GAGGHXYN.js} +2 -2
- package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
- package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
- package/dist/cli/{chunk-ZLD46RSR.mjs → chunk-HS6ASYW5.mjs} +2 -2
- package/dist/cli/{chunk-VXQQZV4A.js → chunk-HUH6EA5B.js} +33 -33
- package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
- package/dist/cli/{chunk-CWFN7MUU.mjs → chunk-KSWTIOZT.mjs} +9 -9
- package/dist/cli/{chunk-NIR2UK5V.mjs → chunk-LB5TQPKK.mjs} +1 -1
- package/dist/cli/{chunk-O7PC3VOI.mjs → chunk-M65GHY4K.mjs} +1 -1
- package/dist/cli/{chunk-GWC7OBRD.mjs → chunk-NYLJMRYD.mjs} +2 -2
- package/dist/cli/{chunk-4GHEUG6W.js → chunk-OWXLYPMV.js} +20 -20
- package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
- package/dist/cli/{chunk-OOVQITRM.js → chunk-PNS3K6A2.js} +50 -50
- package/dist/cli/{chunk-R7GGDUOM.mjs → chunk-POSRLOHP.mjs} +3 -3
- package/dist/cli/{chunk-XL4FJX7J.mjs → chunk-PPJ4PF6F.mjs} +3 -3
- package/dist/cli/{chunk-GOHOTLUV.mjs → chunk-PUWMWNBM.mjs} +4 -4
- package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
- package/dist/cli/{chunk-HNMQSS7P.js → chunk-UJLPE55B.js} +1 -1
- package/dist/cli/{chunk-FGTKAXRJ.js → chunk-XM5Z53VA.js} +101 -101
- package/dist/cli/{chunk-T6XBX45B.mjs → chunk-XUART5TY.mjs} +5 -5
- package/dist/cli/{csv-L64ECPD5.js → csv-PWSQ7DBG.js} +14 -14
- package/dist/cli/{csv-MP3WOYPE.mjs → csv-ZWRKX6NU.mjs} +5 -5
- package/dist/cli/{db-FOV7GHXS.mjs → db-AYIEGUOY.mjs} +7 -7
- package/dist/cli/{db-RZJK6LGN.js → db-M24C22YN.js} +34 -34
- package/dist/cli/{describe-WWENJAG2.js → describe-F34NXGCE.js} +22 -22
- package/dist/cli/{describe-R2BEQHVZ.mjs → describe-K2CCAFJO.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-C5WO6TGN.mjs → executions-TMH5FSYX.mjs} +7 -7
- package/dist/cli/{executions-3LFEK56I.js → executions-UHHRRBBT.js} +9 -9
- package/dist/cli/{feedback-K6OAZUQ4.mjs → feedback-GCTX3HJS.mjs} +5 -5
- package/dist/cli/{feedback-EMWUZ4LV.js → feedback-Z7C47J2X.js} +9 -9
- package/dist/cli/git-MCFHPAML.js +24 -0
- package/dist/cli/{git-DJLL3OCZ.mjs → git-RDHXJML2.mjs} +6 -6
- package/dist/cli/index.js +136 -136
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-EAJG56KP.mjs → legacy-noops-3E75KHWC.mjs} +6 -6
- package/dist/cli/{legacy-noops-57SRSZ7M.js → legacy-noops-X6QQUMNF.js} +9 -9
- package/dist/cli/{monitors-OI57AAIG.js → monitors-AVTVW5L2.js} +93 -93
- package/dist/cli/{monitors-FHTQ6227.mjs → monitors-HCNIDGV2.mjs} +7 -7
- package/dist/cli/{org-YGHFZTWJ.mjs → org-ILD73S74.mjs} +7 -7
- package/dist/cli/{org-26EHPBKF.js → org-QUJYCJJE.js} +69 -69
- package/dist/cli/{play-PXGYS4DH.js → play-7M53PMCN.js} +373 -373
- package/dist/cli/{play-KBKWTIXK.mjs → play-DQJ7LGQG.mjs} +15 -15
- package/dist/cli/{providers-IZYBWI6M.js → providers-3HC5S52G.js} +10 -10
- package/dist/cli/{providers-YPFEVK5C.mjs → providers-WV35XXID.mjs} +7 -7
- package/dist/cli/{quickstart-RBCTFLI3.js → quickstart-KJZOURAH.js} +7 -7
- package/dist/cli/{quickstart-SJ2M56CV.mjs → quickstart-UESOANHH.mjs} +5 -5
- package/dist/cli/search-255SE477.js +30 -0
- package/dist/cli/{search-PSPZTTKR.mjs → search-V3ZQE4UU.mjs} +8 -8
- package/dist/cli/{secrets-BCS4FE5D.mjs → secrets-ILDTXJ3L.mjs} +7 -7
- package/dist/cli/{secrets-XIWKYXGD.js → secrets-IU2FWIQI.js} +16 -16
- package/dist/cli/{sessions-L3UEERFX.mjs → sessions-4M6WBATB.mjs} +6 -6
- package/dist/cli/sessions-Y25VJZSV.js +16 -0
- package/dist/cli/{settings-X2GMYBE7.js → settings-5BMSV6EL.js} +78 -78
- package/dist/cli/{settings-SFFP7AR5.mjs → settings-Z4R5U5OZ.mjs} +11 -11
- package/dist/cli/{setup-QIHAXFBL.mjs → setup-FWSJMJWR.mjs} +9 -9
- package/dist/cli/{setup-4ERUKDQ5.js → setup-QZ3ZN4RI.js} +44 -44
- package/dist/cli/skills-4JXC4C57.js +29 -0
- package/dist/cli/{skills-BYNSDIKJ.mjs → skills-RA7HJTXG.mjs} +7 -7
- package/dist/cli/{tools-PQSMCIA7.mjs → tools-5VI3FPWV.mjs} +15 -15
- package/dist/cli/tools-BGVCWIZ5.js +44 -0
- package/dist/cli/update-GPXJHQXJ.js +31 -0
- package/dist/cli/{update-BI4E6UXI.mjs → update-O7B44SN5.mjs} +9 -9
- package/dist/cli/{workflow-PMRFMZVP.mjs → workflow-3MOKM4IM.mjs} +8 -8
- package/dist/cli/{workflow-52P63K65.js → workflow-7W3BTJPH.js} +18 -18
- package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
- package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
- package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
- package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
- package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
- package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +10 -10
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- 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-LXI5K7V6.js +0 -40
- package/dist/cli/git-2BW2UDK6.js +0 -24
- package/dist/cli/search-5CFJRSGN.js +0 -30
- package/dist/cli/sessions-YX2AJF5I.js +0 -16
- package/dist/cli/skills-EOPZVMJS.js +0 -29
- package/dist/cli/tools-UEZW4OD7.js +0 -44
- package/dist/cli/update-6TOZCQ4Y.js +0 -31
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXM5Z53VAjs = require('./chunk-XM5Z53VA.js');
|
|
6
6
|
require('./chunk-E4CABWXL.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-JKVRBCZL.js');
|
|
8
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-
|
|
17
|
-
require('./chunk-
|
|
14
|
+
var _chunk27LQEDGOjs = require('./chunk-27LQEDGO.js');
|
|
15
|
+
require('./chunk-GAGGHXYN.js');
|
|
16
|
+
require('./chunk-2VZKT2PE.js');
|
|
17
|
+
require('./chunk-2MMUUSBN.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
21
|
+
var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
|
|
22
|
+
require('./chunk-HUH6EA5B.js');
|
|
23
|
+
require('./chunk-ALJJRZNJ.js');
|
|
24
24
|
require('./chunk-XNYIZMNQ.js');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-DIAWYWT5.js');
|
|
26
|
+
require('./chunk-UJLPE55B.js');
|
|
27
27
|
require('./chunk-OG64RBAC.js');
|
|
28
28
|
require('./chunk-COGTRVWW.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/settings.ts
|
|
31
31
|
var _fs = require('fs');
|
|
32
|
-
var eventHelp =
|
|
32
|
+
var eventHelp = _chunkXM5Z53VAjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
33
33
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
34
34
|
).join("\n");
|
|
35
35
|
function slackDestination(settings) {
|
|
@@ -41,7 +41,7 @@ function slackDestination(settings) {
|
|
|
41
41
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
|
-
return
|
|
44
|
+
return _chunkXM5Z53VAjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
45
45
|
}
|
|
46
46
|
function eventLines(settings, destinationId) {
|
|
47
47
|
const enabled = new Map(
|
|
@@ -63,10 +63,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
63
63
|
return event;
|
|
64
64
|
}
|
|
65
65
|
async function printSettings(options) {
|
|
66
|
-
const settings = await new (0,
|
|
66
|
+
const settings = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotificationSettings();
|
|
67
67
|
const slack = slackDestination(settings);
|
|
68
68
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
69
|
-
|
|
69
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
70
70
|
{
|
|
71
71
|
settings,
|
|
72
72
|
render: {
|
|
@@ -121,8 +121,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
121
121
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
122
122
|
`
|
|
123
123
|
).option("--json", "Emit JSON output").action((options) => {
|
|
124
|
-
const preferences =
|
|
125
|
-
|
|
124
|
+
const preferences = _chunk27LQEDGOjs.readCliUpdatePreferences.call(void 0, );
|
|
125
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
126
126
|
{
|
|
127
127
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
128
128
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -145,8 +145,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
145
145
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
146
146
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
147
147
|
).option("--json", "Emit JSON output").action((options) => {
|
|
148
|
-
const preferences =
|
|
149
|
-
|
|
148
|
+
const preferences = _chunk27LQEDGOjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
149
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
150
150
|
{
|
|
151
151
|
ok: true,
|
|
152
152
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -167,7 +167,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
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) => {
|
|
170
|
-
process.exitCode = await
|
|
170
|
+
process.exitCode = await _chunk27LQEDGOjs.runUpdateCommand.call(void 0, {
|
|
171
171
|
pin: version,
|
|
172
172
|
json: options.json,
|
|
173
173
|
executeWithJson: true
|
|
@@ -195,15 +195,15 @@ notifications; there is no general integrations CLI.
|
|
|
195
195
|
if (destination !== "slack")
|
|
196
196
|
throw new Error("Only slack is supported.");
|
|
197
197
|
if (options.dryRun) {
|
|
198
|
-
|
|
198
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
199
199
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
200
200
|
{ json: options.json }
|
|
201
201
|
);
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
const result = await new (0,
|
|
205
|
-
const browser = options.open ?
|
|
206
|
-
|
|
204
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().connectNotificationSlack();
|
|
205
|
+
const browser = options.open ? _chunk3IRJIEIEjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
206
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
207
207
|
{
|
|
208
208
|
...result,
|
|
209
209
|
browser,
|
|
@@ -227,10 +227,10 @@ notifications; there is no general integrations CLI.
|
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
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) => {
|
|
230
|
-
const result = await new (0,
|
|
230
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().listNotificationSlackChannels(
|
|
231
231
|
options.query
|
|
232
232
|
);
|
|
233
|
-
|
|
233
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
234
234
|
{
|
|
235
235
|
...result,
|
|
236
236
|
render: {
|
|
@@ -256,14 +256,14 @@ notifications; there is no general integrations CLI.
|
|
|
256
256
|
}
|
|
257
257
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
258
258
|
if (options.dryRun) {
|
|
259
|
-
|
|
259
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
260
260
|
{ dryRun: true, destination, target },
|
|
261
261
|
{ json: options.json }
|
|
262
262
|
);
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
const result = await new (0,
|
|
266
|
-
|
|
265
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().setNotificationSlack(target);
|
|
266
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
267
267
|
{
|
|
268
268
|
ok: true,
|
|
269
269
|
result,
|
|
@@ -289,14 +289,14 @@ notifications; there is no general integrations CLI.
|
|
|
289
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) => {
|
|
290
290
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
291
291
|
if (options.dryRun) {
|
|
292
|
-
|
|
292
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
294
294
|
{ json: options.json }
|
|
295
295
|
);
|
|
296
296
|
return;
|
|
297
297
|
}
|
|
298
|
-
const result = await new (0,
|
|
299
|
-
|
|
298
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().testNotificationSlack();
|
|
299
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
300
300
|
{
|
|
301
301
|
...result,
|
|
302
302
|
render: {
|
|
@@ -309,14 +309,14 @@ notifications; there is no general integrations CLI.
|
|
|
309
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) => {
|
|
310
310
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
311
311
|
if (options.dryRun) {
|
|
312
|
-
|
|
312
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
313
313
|
{ dryRun: true, destination, action: "disable" },
|
|
314
314
|
{ json: options.json }
|
|
315
315
|
);
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
|
-
const result = await new (0,
|
|
319
|
-
|
|
318
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().disableNotificationSlack();
|
|
319
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
320
320
|
{
|
|
321
321
|
ok: true,
|
|
322
322
|
result,
|
|
@@ -335,10 +335,10 @@ ${eventHelp}
|
|
|
335
335
|
`
|
|
336
336
|
);
|
|
337
337
|
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,
|
|
338
|
+
const current = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotificationSettings();
|
|
339
339
|
const destination = slackDestination(current);
|
|
340
340
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
341
|
-
|
|
341
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
342
342
|
{
|
|
343
343
|
catalog: current.catalog,
|
|
344
344
|
subscriptions: current.subscriptions,
|
|
@@ -355,14 +355,14 @@ ${eventHelp}
|
|
|
355
355
|
);
|
|
356
356
|
});
|
|
357
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) => {
|
|
358
|
-
const current = await new (0,
|
|
358
|
+
const current = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotificationSettings();
|
|
359
359
|
const event = requireCatalogEvent(current, eventType);
|
|
360
360
|
const destination = slackDestination(current);
|
|
361
361
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
362
362
|
const subscription = current.subscriptions.find(
|
|
363
363
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
364
364
|
);
|
|
365
|
-
|
|
365
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
366
366
|
{
|
|
367
367
|
event,
|
|
368
368
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -383,11 +383,11 @@ ${eventHelp}
|
|
|
383
383
|
});
|
|
384
384
|
for (const enabled of [true, false]) {
|
|
385
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) => {
|
|
386
|
-
const client = new (0,
|
|
386
|
+
const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
|
|
387
387
|
const current = await client.getNotificationSettings();
|
|
388
388
|
const event = requireCatalogEvent(current, eventType);
|
|
389
389
|
if (options.dryRun) {
|
|
390
|
-
|
|
390
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
391
391
|
{ dryRun: true, event, enabled },
|
|
392
392
|
{ json: options.json }
|
|
393
393
|
);
|
|
@@ -397,7 +397,7 @@ ${eventHelp}
|
|
|
397
397
|
[event.id],
|
|
398
398
|
enabled
|
|
399
399
|
);
|
|
400
|
-
|
|
400
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
401
401
|
{
|
|
402
402
|
ok: true,
|
|
403
403
|
event: event.id,
|
|
@@ -418,11 +418,11 @@ ${eventHelp}
|
|
|
418
418
|
}
|
|
419
419
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
420
420
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
421
|
-
const result = await new (0,
|
|
421
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().listNotificationDlq(
|
|
422
422
|
Number(options.limit)
|
|
423
423
|
);
|
|
424
424
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
425
|
-
|
|
425
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
426
426
|
{
|
|
427
427
|
...result,
|
|
428
428
|
render: {
|
|
@@ -440,10 +440,10 @@ ${eventHelp}
|
|
|
440
440
|
);
|
|
441
441
|
});
|
|
442
442
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
443
|
-
const result = await new (0,
|
|
443
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
444
444
|
deliveryId
|
|
445
445
|
);
|
|
446
|
-
|
|
446
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, {
|
|
447
447
|
json: options.json
|
|
448
448
|
});
|
|
449
449
|
});
|
|
@@ -452,17 +452,17 @@ ${eventHelp}
|
|
|
452
452
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
453
453
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
454
454
|
if (options.dryRun) {
|
|
455
|
-
|
|
455
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
456
456
|
{ dryRun: true, action, deliveryId },
|
|
457
457
|
{ json: options.json }
|
|
458
458
|
);
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
|
-
const result = await new (0,
|
|
461
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
462
462
|
deliveryId,
|
|
463
463
|
action
|
|
464
464
|
);
|
|
465
|
-
|
|
465
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
466
466
|
{ ok: true, action, deliveryId, result },
|
|
467
467
|
{ json: options.json }
|
|
468
468
|
);
|
|
@@ -563,8 +563,8 @@ Examples:
|
|
|
563
563
|
`
|
|
564
564
|
);
|
|
565
565
|
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
|
-
|
|
566
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotificationConfiguration();
|
|
567
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
568
568
|
{
|
|
569
569
|
...result,
|
|
570
570
|
render: {
|
|
@@ -589,21 +589,21 @@ Examples:
|
|
|
589
589
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
590
590
|
const input = await readNotificationConfigurationChange(file);
|
|
591
591
|
if (options.dryRun) {
|
|
592
|
-
|
|
592
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
593
593
|
{ dryRun: true, ...input },
|
|
594
594
|
{ json: options.json }
|
|
595
595
|
);
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
|
-
const result = await new (0,
|
|
598
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().changeNotificationConfiguration(
|
|
599
599
|
input.expectedWorkspaceVersion,
|
|
600
600
|
input.change
|
|
601
601
|
);
|
|
602
|
-
|
|
602
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
603
603
|
});
|
|
604
604
|
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
|
-
|
|
605
|
+
const settings = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotifications();
|
|
606
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
607
607
|
{
|
|
608
608
|
events: settings.catalog,
|
|
609
609
|
render: {
|
|
@@ -621,9 +621,9 @@ Examples:
|
|
|
621
621
|
);
|
|
622
622
|
});
|
|
623
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) => {
|
|
624
|
-
const settings = await new (0,
|
|
624
|
+
const settings = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotifications();
|
|
625
625
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
626
|
-
|
|
626
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
627
627
|
{
|
|
628
628
|
notifications: options.compact ? rules.map((rule) => ({
|
|
629
629
|
id: rule.id,
|
|
@@ -651,10 +651,10 @@ Examples:
|
|
|
651
651
|
});
|
|
652
652
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
653
653
|
const rule = notificationByName(
|
|
654
|
-
await new (0,
|
|
654
|
+
await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getNotifications(),
|
|
655
655
|
name
|
|
656
656
|
);
|
|
657
|
-
|
|
657
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
658
658
|
});
|
|
659
659
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
660
660
|
"--to <target>",
|
|
@@ -668,14 +668,14 @@ Examples:
|
|
|
668
668
|
[]
|
|
669
669
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
670
670
|
async (name, options) => {
|
|
671
|
-
const result = await new (0,
|
|
671
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().createNotificationGroup({
|
|
672
672
|
name,
|
|
673
673
|
targets: options.to,
|
|
674
674
|
legacyEvents: options.for,
|
|
675
675
|
dryRun: options.dryRun
|
|
676
676
|
});
|
|
677
677
|
if (result.mode === "dry_run") {
|
|
678
|
-
|
|
678
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
679
679
|
result.compatibilityMode ? {
|
|
680
680
|
dryRun: true,
|
|
681
681
|
name: result.name,
|
|
@@ -692,7 +692,7 @@ Examples:
|
|
|
692
692
|
return;
|
|
693
693
|
}
|
|
694
694
|
if (result.mode === "legacy") {
|
|
695
|
-
|
|
695
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
696
696
|
{
|
|
697
697
|
notification: result.notification,
|
|
698
698
|
render: {
|
|
@@ -714,7 +714,7 @@ Examples:
|
|
|
714
714
|
);
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
718
718
|
{
|
|
719
719
|
...result,
|
|
720
720
|
render: {
|
|
@@ -750,12 +750,12 @@ Examples:
|
|
|
750
750
|
[]
|
|
751
751
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
752
752
|
async (name, options) => {
|
|
753
|
-
const client = new (0,
|
|
753
|
+
const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
|
|
754
754
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
755
755
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
756
756
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
757
757
|
if (options.dryRun) {
|
|
758
|
-
|
|
758
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
759
759
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
760
760
|
{ json: options.json }
|
|
761
761
|
);
|
|
@@ -766,15 +766,15 @@ Examples:
|
|
|
766
766
|
...target,
|
|
767
767
|
eventTypes
|
|
768
768
|
});
|
|
769
|
-
|
|
769
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
772
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
773
773
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
774
|
-
const result = await new (0,
|
|
774
|
+
const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().listNotificationChannels(
|
|
775
775
|
options.search
|
|
776
776
|
);
|
|
777
|
-
|
|
777
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
778
778
|
{
|
|
779
779
|
...result,
|
|
780
780
|
render: {
|
|
@@ -794,31 +794,31 @@ Examples:
|
|
|
794
794
|
["resume", true]
|
|
795
795
|
]) {
|
|
796
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) => {
|
|
797
|
-
const client = new (0,
|
|
797
|
+
const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
|
|
798
798
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
799
799
|
if (options.dryRun) {
|
|
800
|
-
|
|
800
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
801
801
|
{ dryRun: true, notification: rule.id, enabled },
|
|
802
802
|
{ json: options.json }
|
|
803
803
|
);
|
|
804
804
|
return;
|
|
805
805
|
}
|
|
806
806
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
807
|
-
|
|
807
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
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) => {
|
|
811
|
-
const client = new (0,
|
|
811
|
+
const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
|
|
812
812
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
813
813
|
if (options.dryRun) {
|
|
814
|
-
|
|
814
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
815
815
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
816
816
|
{ json: options.json }
|
|
817
817
|
);
|
|
818
818
|
return;
|
|
819
819
|
}
|
|
820
820
|
const result = await client.testNotification(rule.id);
|
|
821
|
-
|
|
821
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
822
822
|
{ ...result, notification: rule.name },
|
|
823
823
|
{ json: options.json }
|
|
824
824
|
);
|
|
@@ -826,17 +826,17 @@ Examples:
|
|
|
826
826
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
827
827
|
"Archive one notification without touching its provider integration."
|
|
828
828
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
829
|
-
const client = new (0,
|
|
829
|
+
const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
|
|
830
830
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
831
831
|
if (options.dryRun) {
|
|
832
|
-
|
|
832
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
833
833
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
834
834
|
{ json: options.json }
|
|
835
835
|
);
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
const result = await client.deleteNotification(rule.id);
|
|
839
|
-
|
|
839
|
+
_chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
|
|
840
840
|
{ ...result, notification: rule.name },
|
|
841
841
|
{ json: options.json }
|
|
842
842
|
);
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
PRODUCT_NOTIFICATION_EVENT_CATALOG,
|
|
4
4
|
resolveLegacySlackNotification
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-55GDG7QJ.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-FAG4DFUC.mjs";
|
|
8
8
|
import "./chunk-EIMG75BT.mjs";
|
|
9
9
|
import "./chunk-UBKA33KY.mjs";
|
|
10
10
|
import {
|
|
11
11
|
readCliUpdatePreferences,
|
|
12
12
|
runUpdateCommand,
|
|
13
13
|
setCliAutoUpdateEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-XUART5TY.mjs";
|
|
15
|
+
import "./chunk-M65GHY4K.mjs";
|
|
16
|
+
import "./chunk-2LVCAPN7.mjs";
|
|
17
|
+
import "./chunk-PUWMWNBM.mjs";
|
|
18
18
|
import {
|
|
19
19
|
openInBrowser,
|
|
20
20
|
printCommandEnvelope
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-FOLT3LUQ.mjs";
|
|
22
|
+
import "./chunk-PPJ4PF6F.mjs";
|
|
23
|
+
import "./chunk-4QF2K7TM.mjs";
|
|
24
24
|
import "./chunk-DLIRSHV6.mjs";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-HBL4PM5Q.mjs";
|
|
26
|
+
import "./chunk-LB5TQPKK.mjs";
|
|
27
27
|
import "./chunk-WZYKRD7T.mjs";
|
|
28
28
|
import "./chunk-KRD6H754.mjs";
|
|
29
29
|
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
handleWait,
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportSetupCompleted
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HS6ASYW5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M65GHY4K.mjs";
|
|
14
14
|
import {
|
|
15
15
|
runSkillsCommand,
|
|
16
16
|
skillsStatePathForScope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2LVCAPN7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
resolveShellSpawn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PUWMWNBM.mjs";
|
|
21
21
|
import {
|
|
22
22
|
openInBrowser,
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FOLT3LUQ.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_VERSION,
|
|
27
27
|
autoDetectBaseUrl,
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
resolveProjectApiKeyForBaseUrl,
|
|
32
32
|
resolveProjectPinTarget,
|
|
33
33
|
sdkCliStateDirPath
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-PPJ4PF6F.mjs";
|
|
35
|
+
import "./chunk-4QF2K7TM.mjs";
|
|
36
36
|
import "./chunk-DLIRSHV6.mjs";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-HBL4PM5Q.mjs";
|
|
38
|
+
import "./chunk-LB5TQPKK.mjs";
|
|
39
39
|
import "./chunk-WZYKRD7T.mjs";
|
|
40
40
|
import {
|
|
41
41
|
DEEPLINE_GTM_SKILL,
|