deepline 0.3.421 → 0.3.423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client.ts +2 -2
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +227 -184
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -5
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +6 -6
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
- package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
- package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
- package/dist/cli/{auth-56JTC4Q7.mjs → auth-L7Q53QKK.mjs} +4 -4
- package/dist/cli/auth-SUNY477Y.js +40 -0
- package/dist/cli/{billing-ZXOOZEUW.mjs → billing-IH7AKDR2.mjs} +4 -4
- package/dist/cli/{billing-C5LR6FA7.js → billing-QNP6YGI2.js} +73 -73
- package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
- package/dist/cli/{chunk-7SRVIWGT.js → chunk-2F5ULM2F.js} +1 -1
- package/dist/cli/{chunk-HP5FD2LI.js → chunk-2U3AMRHF.js} +8 -8
- package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
- package/dist/cli/{chunk-5F6W5NWV.mjs → chunk-44US3EL2.mjs} +5 -5
- package/dist/cli/{chunk-6UKY4LBW.js → chunk-4WT5RISA.js} +20 -20
- package/dist/cli/{chunk-QJV2ALPN.js → chunk-5DGR3TB6.js} +2 -2
- package/dist/cli/{chunk-UCI4QROZ.mjs → chunk-6FFORGD2.mjs} +2 -2
- package/dist/cli/{chunk-ZSVWCV3G.mjs → chunk-ARTGL3FM.mjs} +1 -1
- package/dist/cli/{chunk-FB5H5OOH.js → chunk-AVOBDFQ5.js} +11 -11
- package/dist/cli/{chunk-2WOVAVJ3.js → chunk-DRK6FYJU.js} +26 -26
- package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
- package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
- package/dist/cli/{chunk-GIJ47TAV.js → chunk-EWWWOKX2.js} +6 -6
- package/dist/cli/{chunk-5E55HHW3.mjs → chunk-FJRFSBWO.mjs} +4 -4
- package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
- package/dist/cli/{chunk-RURYN2BE.mjs → chunk-H662SHPT.mjs} +28 -27
- package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
- package/dist/cli/{chunk-RJLFCJ23.mjs → chunk-IW5QK3K6.mjs} +3 -3
- package/dist/cli/{chunk-SPLOMS4N.mjs → chunk-JDAXVQV7.mjs} +1 -1
- package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
- package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
- package/dist/cli/{chunk-F4V4JJED.mjs → chunk-MHG3NND4.mjs} +3 -3
- package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
- package/dist/cli/{chunk-5KYK4DGY.js → chunk-MMI2DXCW.js} +8 -8
- package/dist/cli/{chunk-VEYAPBS4.js → chunk-NA6SGG7X.js} +260 -259
- package/dist/cli/{chunk-AZGJNNNE.mjs → chunk-NFIZ5YED.mjs} +2 -2
- package/dist/cli/{chunk-WR4M5VWK.js → chunk-OMWO2JLC.js} +52 -52
- package/dist/cli/{chunk-EKQH4IUU.mjs → chunk-OPI7UCQG.mjs} +1 -1
- package/dist/cli/{chunk-2XKDLS5P.js → chunk-OZLMMMZH.js} +6 -6
- package/dist/cli/{chunk-ZLPT2RZ5.mjs → chunk-PH4BP6KM.mjs} +2 -2
- package/dist/cli/{chunk-NSJRLP7R.js → chunk-PQ4G6MKI.js} +16 -16
- package/dist/cli/{chunk-4NS4EZHN.mjs → chunk-QN6DG4JO.mjs} +2 -2
- package/dist/cli/{chunk-VC3E5HFO.mjs → chunk-QWJJMQNE.mjs} +1 -1
- package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
- package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
- package/dist/cli/{chunk-JJQLBZEW.js → chunk-RAL75ND3.js} +2 -2
- package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
- package/dist/cli/{chunk-7TSF7E3B.mjs → chunk-S6KG7JCR.mjs} +2 -2
- package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
- package/dist/cli/{chunk-C25ZYL6U.js → chunk-W42SSVM7.js} +4 -4
- package/dist/cli/{chunk-ZZBXD5VX.js → chunk-WJO7KIFT.js} +50 -50
- package/dist/cli/{chunk-VYLZS7X4.mjs → chunk-XSERB7H2.mjs} +1 -1
- package/dist/cli/{chunk-4I26IVFC.js → chunk-YCHR57TD.js} +35 -35
- package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
- package/dist/cli/{chunk-ZOL3CIKN.mjs → chunk-YNT7PJND.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-EJ4QRLA2.mjs → csv-5KW7M6ZS.mjs} +3 -3
- package/dist/cli/{csv-G6H3U4XV.js → csv-GF7VRES5.js} +12 -12
- package/dist/cli/{db-WKQFXUWI.js → db-AEDXKB4F.js} +26 -26
- package/dist/cli/{db-PBIIALJ5.mjs → db-NN4JQAC4.mjs} +5 -5
- package/dist/cli/{describe-ZCU36ES2.js → describe-5RLXW332.js} +24 -24
- package/dist/cli/{describe-DMRK4UNO.mjs → describe-RX6VROHQ.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-JAHW6GMA.mjs → executions-EJZ34VUB.mjs} +4 -4
- package/dist/cli/{executions-SBA3UYMH.js → executions-PGIGFDDS.js} +6 -6
- package/dist/cli/{feedback-PKBUYHMD.mjs → feedback-6MWOKE7H.mjs} +3 -3
- package/dist/cli/{feedback-QAE4V2NY.js → feedback-L2ODMANV.js} +7 -7
- package/dist/cli/git-2ZDCRTBD.js +24 -0
- package/dist/cli/{git-GAO3SJAQ.mjs → git-456RF3AT.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-JCMVW5BL.js → legacy-noops-MDPB3MIS.js} +7 -7
- package/dist/cli/{legacy-noops-5PY2ZZF3.mjs → legacy-noops-ZPRBXQDE.mjs} +4 -4
- package/dist/cli/{monitors-YPS4LPDG.js → monitors-TXKR5XYW.js} +86 -86
- package/dist/cli/{monitors-GVYAZRMB.mjs → monitors-ZLP6A7FT.mjs} +6 -6
- package/dist/cli/{org-OBVAU6K7.js → org-73SQ3AT2.js} +64 -64
- package/dist/cli/{org-R7AKPKUB.mjs → org-YZ62BIGM.mjs} +4 -4
- package/dist/cli/{play-MTHQQHR6.js → play-M75EBXEV.js} +606 -567
- package/dist/cli/{play-3LFM2SV2.mjs → play-VCYQKCKF.mjs} +113 -74
- package/dist/cli/{providers-CTIROUI3.js → providers-GIINJPWQ.js} +7 -7
- package/dist/cli/{providers-IRICPDKU.mjs → providers-JLA6LST3.mjs} +4 -4
- package/dist/cli/{quickstart-5FBQVZ5B.mjs → quickstart-AHCU75GG.mjs} +3 -3
- package/dist/cli/{quickstart-OZDVFNF2.js → quickstart-HHHLYCHT.js} +5 -5
- package/dist/cli/{search-FYM47QFU.mjs → search-5GACUIAX.mjs} +5 -5
- package/dist/cli/search-W2PGBXQO.js +30 -0
- package/dist/cli/{secrets-43GJUDAE.js → secrets-PI7IPCOE.js} +13 -13
- package/dist/cli/{secrets-ENBXU3O3.mjs → secrets-S2NBKAEN.mjs} +4 -4
- package/dist/cli/{sessions-RXX5IHG6.js → sessions-BK4CSRFS.js} +5 -5
- package/dist/cli/{sessions-7IQJOH5Z.mjs → sessions-IBKYGTBD.mjs} +4 -4
- package/dist/cli/{settings-Z2CWWV7P.js → settings-2G7TUDM7.js} +75 -75
- package/dist/cli/{settings-EZGDTS3K.mjs → settings-JY6UN4KO.mjs} +8 -8
- package/dist/cli/{setup-N5UMUBBV.mjs → setup-HS5X3OSN.mjs} +7 -7
- package/dist/cli/{setup-2ON3TUXP.js → setup-R424FIBF.js} +42 -42
- package/dist/cli/skills-M3RZAN4A.js +29 -0
- package/dist/cli/{skills-4MR2Z2M5.mjs → skills-UIBUDTGN.mjs} +5 -5
- package/dist/cli/tools-K2GII2PA.js +44 -0
- package/dist/cli/{tools-MCEIWE3I.mjs → tools-SB4FREB6.mjs} +15 -15
- package/dist/cli/update-C2ORJRXN.js +31 -0
- package/dist/cli/{update-2JDBGLTX.mjs → update-NJSUE2YU.mjs} +7 -7
- package/dist/cli/{workflow-7DNBY4WJ.js → workflow-3AZWZ4J3.js} +19 -19
- package/dist/cli/{workflow-7UDXYU5Y.mjs → workflow-HBG76XYX.mjs} +9 -9
- package/dist/{client-CCWIUnk7.d.mts → client-BTUOYGID.d.mts} +10 -9
- package/dist/{client-vHqBm-OL.d.ts → client-C668iUhZ.d.ts} +10 -9
- package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
- package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
- package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
- package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
- package/dist/index.d.mts +120 -150
- package/dist/index.d.ts +120 -150
- package/dist/index.js +77 -12
- package/dist/index.mjs +74 -9
- package/dist/install-integrity.json +99 -98
- 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 +1 -1
- 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/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-ZQMAF7W5.js +0 -40
- package/dist/cli/git-54INNT33.js +0 -24
- package/dist/cli/search-XIKHDZJ3.js +0 -30
- package/dist/cli/skills-2WIHNEOS.js +0 -29
- package/dist/cli/tools-YUUSOKYX.js +0 -44
- package/dist/cli/update-PWX4MJ3R.js +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAVOBDFQ5js = require('./chunk-AVOBDFQ5.js');
|
|
4
4
|
require('./chunk-E4CABWXL.js');
|
|
5
5
|
require('./chunk-2H4EY7KH.js');
|
|
6
6
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -8,12 +8,12 @@ require('./chunk-XDVT3GOM.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var _chunkEWWWOKX2js = require('./chunk-EWWWOKX2.js');
|
|
12
|
+
require('./chunk-W42SSVM7.js');
|
|
13
13
|
require('./chunk-NPBJI7RE.js');
|
|
14
14
|
require('./chunk-XNYIZMNQ.js');
|
|
15
15
|
require('./chunk-PPDBRJRW.js');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-2F5ULM2F.js');
|
|
17
17
|
require('./chunk-OG64RBAC.js');
|
|
18
18
|
require('./chunk-COGTRVWW.js');
|
|
19
19
|
|
|
@@ -205,9 +205,9 @@ function preventShellHistoryLeak(forbidden) {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
async function handleList(options) {
|
|
208
|
-
const client = new (0,
|
|
208
|
+
const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
209
209
|
const secrets = await client.listSecrets();
|
|
210
|
-
|
|
210
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
211
211
|
{
|
|
212
212
|
secrets,
|
|
213
213
|
count: secrets.length,
|
|
@@ -225,14 +225,14 @@ async function handleList(options) {
|
|
|
225
225
|
}
|
|
226
226
|
async function handleCheck(nameInput, options) {
|
|
227
227
|
const name = normalizeSecretName(nameInput);
|
|
228
|
-
const client = new (0,
|
|
228
|
+
const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
229
229
|
const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
|
|
230
230
|
const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
|
|
231
231
|
const secret = check ? check.secret : await client.checkSecret(name);
|
|
232
232
|
const ok = check ? check.ok : Boolean(secret);
|
|
233
233
|
const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
|
|
234
234
|
const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
|
|
235
|
-
|
|
235
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
236
236
|
{
|
|
237
237
|
ok,
|
|
238
238
|
name,
|
|
@@ -260,7 +260,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
260
260
|
const name = normalizeSecretName(nameInput);
|
|
261
261
|
const { scope, playName } = resolveSecretWriteScope(options);
|
|
262
262
|
const value = await readSecretValueFromOptions(options);
|
|
263
|
-
const { http } =
|
|
263
|
+
const { http } = _chunkEWWWOKX2js.getAuthedHttpClient.call(void 0, );
|
|
264
264
|
const response = await http.post(
|
|
265
265
|
"/api/v2/secrets",
|
|
266
266
|
{
|
|
@@ -272,7 +272,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
272
272
|
}
|
|
273
273
|
);
|
|
274
274
|
const secret = response.secret;
|
|
275
|
-
|
|
275
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
276
276
|
{
|
|
277
277
|
ok: true,
|
|
278
278
|
secret,
|
|
@@ -300,7 +300,7 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
300
300
|
}
|
|
301
301
|
const note = options.clear ? "" : noteInput;
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
304
304
|
{
|
|
305
305
|
ok: true,
|
|
306
306
|
dryRun: true,
|
|
@@ -321,9 +321,9 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
321
321
|
);
|
|
322
322
|
return;
|
|
323
323
|
}
|
|
324
|
-
const client = new (0,
|
|
324
|
+
const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
325
325
|
const secret = await client.updateSecretNote(secretId, note);
|
|
326
|
-
|
|
326
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
327
327
|
{
|
|
328
328
|
ok: true,
|
|
329
329
|
secret,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6FFORGD2.mjs";
|
|
4
4
|
import "./chunk-L2VKAASU.mjs";
|
|
5
5
|
import "./chunk-KCC3FKIW.mjs";
|
|
6
6
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -8,12 +8,12 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
8
8
|
import {
|
|
9
9
|
getAuthedHttpClient,
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QWJJMQNE.mjs";
|
|
12
|
+
import "./chunk-XSERB7H2.mjs";
|
|
13
13
|
import "./chunk-MAMVGOSC.mjs";
|
|
14
14
|
import "./chunk-DLIRSHV6.mjs";
|
|
15
15
|
import "./chunk-E4IXDAZI.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-JDAXVQV7.mjs";
|
|
17
17
|
import "./chunk-WZYKRD7T.mjs";
|
|
18
18
|
import "./chunk-KRD6H754.mjs";
|
|
19
19
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkMMI2DXCWjs = require('./chunk-MMI2DXCW.js');
|
|
5
|
+
require('./chunk-EWWWOKX2.js');
|
|
6
|
+
require('./chunk-W42SSVM7.js');
|
|
7
7
|
require('./chunk-NPBJI7RE.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-PPDBRJRW.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-2F5ULM2F.js');
|
|
11
11
|
require('./chunk-OG64RBAC.js');
|
|
12
12
|
require('./chunk-COGTRVWW.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.registerSessionSendRenderCommands =
|
|
16
|
+
exports.registerSessionSendRenderCommands = _chunkMMI2DXCWjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkMMI2DXCWjs.registerSessionsCommands;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerSessionSendRenderCommands,
|
|
3
3
|
registerSessionsCommands
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-QN6DG4JO.mjs";
|
|
5
|
+
import "./chunk-QWJJMQNE.mjs";
|
|
6
|
+
import "./chunk-XSERB7H2.mjs";
|
|
7
7
|
import "./chunk-MAMVGOSC.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-E4IXDAZI.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-JDAXVQV7.mjs";
|
|
11
11
|
import "./chunk-WZYKRD7T.mjs";
|
|
12
12
|
import "./chunk-KRD6H754.mjs";
|
|
13
13
|
export {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkAVOBDFQ5js = require('./chunk-AVOBDFQ5.js');
|
|
6
6
|
require('./chunk-E4CABWXL.js');
|
|
7
7
|
require('./chunk-2H4EY7KH.js');
|
|
8
8
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -11,25 +11,25 @@ require('./chunk-XDVT3GOM.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
14
|
+
var _chunkPQ4G6MKIjs = require('./chunk-PQ4G6MKI.js');
|
|
15
|
+
require('./chunk-5DGR3TB6.js');
|
|
16
|
+
require('./chunk-YCHR57TD.js');
|
|
17
|
+
require('./chunk-OMWO2JLC.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('./chunk-
|
|
21
|
+
var _chunkEWWWOKX2js = require('./chunk-EWWWOKX2.js');
|
|
22
|
+
require('./chunk-W42SSVM7.js');
|
|
23
23
|
require('./chunk-NPBJI7RE.js');
|
|
24
24
|
require('./chunk-XNYIZMNQ.js');
|
|
25
25
|
require('./chunk-PPDBRJRW.js');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-2F5ULM2F.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 = _chunkAVOBDFQ5js.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 _chunkAVOBDFQ5js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotificationSettings();
|
|
67
67
|
const slack = slackDestination(settings);
|
|
68
68
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
69
|
-
|
|
69
|
+
_chunkEWWWOKX2js.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 = _chunkPQ4G6MKIjs.readCliUpdatePreferences.call(void 0, );
|
|
125
|
+
_chunkEWWWOKX2js.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 = _chunkPQ4G6MKIjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
149
|
+
_chunkEWWWOKX2js.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 _chunkPQ4G6MKIjs.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().connectNotificationSlack();
|
|
205
|
+
const browser = options.open ? _chunkEWWWOKX2js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
206
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().listNotificationSlackChannels(
|
|
231
231
|
options.query
|
|
232
232
|
);
|
|
233
|
-
|
|
233
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().setNotificationSlack(target);
|
|
266
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().testNotificationSlack();
|
|
299
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().disableNotificationSlack();
|
|
319
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
387
387
|
const current = await client.getNotificationSettings();
|
|
388
388
|
const event = requireCatalogEvent(current, eventType);
|
|
389
389
|
if (options.dryRun) {
|
|
390
|
-
|
|
390
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().listNotificationDlq(
|
|
422
422
|
Number(options.limit)
|
|
423
423
|
);
|
|
424
424
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
425
|
-
|
|
425
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotificationDlqDelivery(
|
|
444
444
|
deliveryId
|
|
445
445
|
);
|
|
446
|
-
|
|
446
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().updateNotificationDlqDelivery(
|
|
462
462
|
deliveryId,
|
|
463
463
|
action
|
|
464
464
|
);
|
|
465
|
-
|
|
465
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotificationConfiguration();
|
|
567
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().changeNotificationConfiguration(
|
|
599
599
|
input.expectedWorkspaceVersion,
|
|
600
600
|
input.change
|
|
601
601
|
);
|
|
602
|
-
|
|
602
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotifications();
|
|
606
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotifications();
|
|
625
625
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
626
|
-
|
|
626
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().getNotifications(),
|
|
655
655
|
name
|
|
656
656
|
);
|
|
657
|
-
|
|
657
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.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
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.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
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)().listNotificationChannels(
|
|
775
775
|
options.search
|
|
776
776
|
);
|
|
777
|
-
|
|
777
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
798
798
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
799
799
|
if (options.dryRun) {
|
|
800
|
-
|
|
800
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
812
812
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
813
813
|
if (options.dryRun) {
|
|
814
|
-
|
|
814
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.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, _chunkAVOBDFQ5js.DeeplineClient)();
|
|
830
830
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
831
831
|
if (options.dryRun) {
|
|
832
|
-
|
|
832
|
+
_chunkEWWWOKX2js.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
|
+
_chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
|
|
840
840
|
{ ...result, notification: rule.name },
|
|
841
841
|
{ json: options.json }
|
|
842
842
|
);
|