deepline 0.3.489 → 0.3.491

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.
Files changed (151) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +6 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +4 -1
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
  7. package/dist/cli/{auth-5RIU6GT7.mjs → auth-FXAC472Y.mjs} +5 -5
  8. package/dist/cli/auth-QIDL3YCW.js +43 -0
  9. package/dist/cli/{billing-T5MAGF25.js → billing-PDOA3KZ3.js} +79 -79
  10. package/dist/cli/{billing-T4TMPRFS.mjs → billing-UM4LE33K.mjs} +6 -6
  11. package/dist/cli/{chunk-SZHNIKTR.js → chunk-27MRSV6O.js} +26 -26
  12. package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-2MW6TGNZ.mjs} +4 -4
  13. package/dist/cli/{chunk-FL7NHJTS.js → chunk-3FMU6F6E.js} +15 -15
  14. package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-3K4IAV7I.mjs} +2 -2
  15. package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-3WRWPNHE.mjs} +5 -5
  16. package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
  17. package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
  18. package/dist/cli/{chunk-WIKIF67Q.js → chunk-5KMGKG4B.js} +8 -8
  19. package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-6PMM7VJN.mjs} +1 -1
  20. package/dist/cli/{chunk-GW6HV7Z7.js → chunk-6UARNRXT.js} +7 -7
  21. package/dist/cli/{chunk-UYZNRLDE.js → chunk-74H5OTRM.js} +1 -1
  22. package/dist/cli/{chunk-K2RUSHZ7.js → chunk-AEKJZJ4R.js} +4 -4
  23. package/dist/cli/{chunk-F3TDT57M.js → chunk-B2TXKEED.js} +5 -5
  24. package/dist/cli/{chunk-RI2PLVD4.js → chunk-BCKIBVEJ.js} +7 -7
  25. package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-CFPFTS3A.mjs} +12 -12
  26. package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
  27. package/dist/cli/{chunk-S4F2R2LO.js → chunk-CRBBGKRH.js} +9 -9
  28. package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
  29. package/dist/cli/{chunk-FH7ZABHW.js → chunk-DUFRH43S.js} +261 -261
  30. package/dist/cli/{chunk-H66YVVT7.mjs → chunk-EPD7NSDJ.mjs} +2 -2
  31. package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
  32. package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-H6UIS36S.mjs} +2 -2
  33. package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
  34. package/dist/cli/{chunk-YSB44HZB.js → chunk-HNG2U3IG.js} +2 -2
  35. package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-HSJK6EMU.mjs} +3 -3
  36. package/dist/cli/{chunk-R23HZ6AV.js → chunk-I64PYCTB.js} +2 -2
  37. package/dist/cli/{chunk-5DEJ3TLB.js → chunk-IG3GSBBE.js} +122 -119
  38. package/dist/cli/{chunk-C55LNEUF.mjs → chunk-IIO7UOVW.mjs} +5 -2
  39. package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-KGJVDR4Q.mjs} +2 -2
  40. package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LMG7O6XJ.mjs} +2 -2
  41. package/dist/cli/{chunk-RACN23LT.mjs → chunk-MAM6ZOVS.mjs} +18 -4
  42. package/dist/cli/{chunk-VP65YKOA.js → chunk-MN6DCV63.js} +5 -5
  43. package/dist/cli/{chunk-7R243PYK.mjs → chunk-NUOKAKZW.mjs} +1 -1
  44. package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-OLHWZM4A.mjs} +5 -5
  45. package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-ORKLMANE.mjs} +1 -1
  46. package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-OYJTLEB4.mjs} +1 -1
  47. package/dist/cli/{chunk-2QUROYZU.mjs → chunk-PIPEPCRL.mjs} +1 -1
  48. package/dist/cli/{chunk-FNKSRKTA.js → chunk-Q7G7CU4W.js} +3 -3
  49. package/dist/cli/{chunk-35N4S2E6.mjs → chunk-QBOE5LEH.mjs} +1 -1
  50. package/dist/cli/{chunk-FFDWL5N2.js → chunk-RFSXXDH7.js} +16 -16
  51. package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-S4CYM4EC.mjs} +6 -6
  52. package/dist/cli/{chunk-UI67QLIR.js → chunk-SJOHQ2WW.js} +53 -53
  53. package/dist/cli/{chunk-I4NWMPT3.js → chunk-SUMKWA53.js} +53 -53
  54. package/dist/cli/{chunk-6FMP5XRF.js → chunk-TH7JLR5D.js} +6 -6
  55. package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
  56. package/dist/cli/{chunk-DY7T6VNT.js → chunk-TMAS3WH3.js} +21 -21
  57. package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-VC3SH4QW.mjs} +4 -4
  58. package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-WCWVXN3R.mjs} +2 -2
  59. package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-X75ONMDJ.mjs} +2 -2
  60. package/dist/cli/{chunk-4EFD6R2V.js → chunk-X7YOVJBC.js} +52 -38
  61. package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
  62. package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-YV4DP6KQ.mjs} +2 -2
  63. package/dist/cli/{chunk-UZ7VPOTA.js → chunk-ZEZ3CZ3X.js} +3 -3
  64. package/dist/cli/{chunk-LM5UIDFA.js → chunk-ZX2FXZJN.js} +7 -7
  65. package/dist/cli/{csv-XTKN255I.js → csv-IGPAPAES.js} +13 -13
  66. package/dist/cli/{csv-WAD54M7T.mjs → csv-RNMQHECI.mjs} +4 -4
  67. package/dist/cli/{db-TTS6Y4FI.js → db-32OXM3TO.js} +27 -27
  68. package/dist/cli/{db-2ELZMJFC.mjs → db-CKMVVGXJ.mjs} +6 -6
  69. package/dist/cli/describe-67GMIEIO.js +50 -0
  70. package/dist/cli/{describe-Z7GWMGKU.mjs → describe-QR7I3VOF.mjs} +21 -20
  71. package/dist/cli/describe-core.d.mts +2 -2
  72. package/dist/cli/describe-core.d.ts +2 -2
  73. package/dist/cli/describe-core.js +4 -4
  74. package/dist/cli/describe-core.mjs +3 -3
  75. package/dist/cli/{executions-WUBVVJXN.js → executions-PCZS7B2M.js} +8 -8
  76. package/dist/cli/{executions-2TQH54AB.mjs → executions-S4M4JMCU.mjs} +6 -6
  77. package/dist/cli/{feedback-6KAY4LE6.js → feedback-6EGKPZ3U.js} +8 -8
  78. package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-FGUJVCBS.mjs} +4 -4
  79. package/dist/cli/getting-started.d.mts +17 -2
  80. package/dist/cli/getting-started.d.ts +17 -2
  81. package/dist/cli/getting-started.js +8 -2
  82. package/dist/cli/getting-started.mjs +9 -3
  83. package/dist/cli/{git-3PI2SXVS.mjs → git-LR4ARG5H.mjs} +5 -5
  84. package/dist/cli/git-PIH5Z5LN.js +25 -0
  85. package/dist/cli/index.js +138 -137
  86. package/dist/cli/index.mjs +41 -40
  87. package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
  88. package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-VX4JEQR6.js} +8 -8
  89. package/dist/cli/{monitors-WRWVVXUZ.js → monitors-ADASJI72.js} +91 -91
  90. package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-H3AX6CZG.mjs} +7 -7
  91. package/dist/cli/{org-OZNDX3G2.mjs → org-D3F5LUDW.mjs} +6 -6
  92. package/dist/cli/{org-KWCSSJ3Y.js → org-ZRJ3C56J.js} +72 -72
  93. package/dist/cli/{pages-OQVOMVF5.js → pages-5TKO3644.js} +17 -17
  94. package/dist/cli/{pages-DXU3TNND.mjs → pages-PSHU366M.mjs} +6 -6
  95. package/dist/cli/{play-ZFG4HDDX.mjs → play-AUDDK7XB.mjs} +20 -19
  96. package/dist/cli/{play-6D7U66KO.js → play-VDAETQDI.js} +323 -322
  97. package/dist/cli/{providers-H7R3Z5HS.js → providers-IURPWRWD.js} +9 -9
  98. package/dist/cli/{providers-4RRQIK3Q.mjs → providers-X7YMZSKQ.mjs} +6 -6
  99. package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-6AGWVFNX.mjs} +5 -5
  100. package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-Y6GFXLDV.js} +13 -13
  101. package/dist/cli/{run-GRCGGUUM.mjs → run-TG7J45NS.mjs} +26 -25
  102. package/dist/cli/{run-QRDJTXKB.js → run-TQFGOXNT.js} +41 -40
  103. package/dist/cli/{search-OEVSDE3U.mjs → search-3G4J2GC6.mjs} +7 -7
  104. package/dist/cli/search-VC43NUY7.js +32 -0
  105. package/dist/cli/{search-output-F6KBWKT2.js → search-output-NPZICK5C.js} +6 -6
  106. package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-ZGNHDCLL.mjs} +4 -4
  107. package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-EAWJBRUD.mjs} +6 -6
  108. package/dist/cli/{secrets-KKAAZENS.js → secrets-KTTHT4ZG.js} +15 -15
  109. package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
  110. package/dist/cli/{sessions-FDHENJVG.js → sessions-S4YVBPAW.js} +6 -6
  111. package/dist/cli/{settings-36HMWFAP.js → settings-BAK3VOWW.js} +79 -78
  112. package/dist/cli/{settings-OBVR52US.mjs → settings-JUORW6NL.mjs} +12 -11
  113. package/dist/cli/{setup-KFYQZYP3.mjs → setup-AXFGCXJE.mjs} +17 -12
  114. package/dist/cli/{setup-M6OWOPMB.js → setup-NJPHTW32.js} +60 -55
  115. package/dist/cli/skills-4NQZISNK.js +36 -0
  116. package/dist/cli/{skills-AZDPA6IQ.mjs → skills-SKJVDJEF.mjs} +10 -7
  117. package/dist/cli/{tools-F6XEUK7H.mjs → tools-63THJVJZ.mjs} +19 -18
  118. package/dist/cli/tools-BAHK33FQ.js +57 -0
  119. package/dist/cli/update-EMIGRGJ7.js +34 -0
  120. package/dist/cli/{update-QMGJRICE.mjs → update-KSID5F74.mjs} +10 -9
  121. package/dist/cli/{workflow-M4YPUASM.js → workflow-BLSMWBKW.js} +17 -17
  122. package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-C4B54X2Z.mjs} +7 -7
  123. package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
  124. package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
  125. package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
  126. package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
  127. package/dist/index.d.mts +3 -3
  128. package/dist/index.d.ts +3 -3
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +110 -110
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-PSIS3XA6.js +0 -43
  146. package/dist/cli/describe-2V7H5LJP.js +0 -49
  147. package/dist/cli/git-DCADFTQ6.js +0 -25
  148. package/dist/cli/search-2FB7WQUS.js +0 -32
  149. package/dist/cli/skills-URCPOKZZ.js +0 -33
  150. package/dist/cli/tools-4G5J5NQP.js +0 -56
  151. package/dist/cli/update-UWVL2OYA.js +0 -33
@@ -1,7 +1,7 @@
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 _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
4
- require('./chunk-5DEJ3TLB.js');
3
+ var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
4
+ require('./chunk-IG3GSBBE.js');
5
5
  require('./chunk-E4CABWXL.js');
6
6
  require('./chunk-AUQQVDAB.js');
7
7
  require('./chunk-NMU3VR5U.js');
@@ -9,13 +9,13 @@ require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
13
- require('./chunk-UZ7VPOTA.js');
14
- require('./chunk-K2RUSHZ7.js');
12
+ var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
13
+ require('./chunk-ZEZ3CZ3X.js');
14
+ require('./chunk-AEKJZJ4R.js');
15
15
  require('./chunk-ALJJRZNJ.js');
16
16
  require('./chunk-XNYIZMNQ.js');
17
17
  require('./chunk-DIAWYWT5.js');
18
- require('./chunk-UYZNRLDE.js');
18
+ require('./chunk-74H5OTRM.js');
19
19
  require('./chunk-OG64RBAC.js');
20
20
  require('./chunk-COGTRVWW.js');
21
21
 
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
207
207
  }
208
208
  }
209
209
  async function handleList(options) {
210
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
210
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
211
211
  const secrets = await client.listSecrets();
212
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
212
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
213
213
  {
214
214
  secrets,
215
215
  count: secrets.length,
@@ -227,14 +227,14 @@ async function handleList(options) {
227
227
  }
228
228
  async function handleCheck(nameInput, options) {
229
229
  const name = normalizeSecretName(nameInput);
230
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
230
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
231
231
  const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
232
232
  const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
233
233
  const secret = check ? check.secret : await client.checkSecret(name);
234
234
  const ok = check ? check.ok : Boolean(secret);
235
235
  const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
236
236
  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>`;
237
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
237
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
238
238
  {
239
239
  ok,
240
240
  name,
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
262
262
  const name = normalizeSecretName(nameInput);
263
263
  const { scope, playName } = resolveSecretWriteScope(options);
264
264
  const value = await readSecretValueFromOptions(options);
265
- const { http } = _chunkRI2PLVD4js.getAuthedHttpClient.call(void 0, );
265
+ const { http } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
266
266
  const response = await http.post(
267
267
  "/api/v2/secrets",
268
268
  {
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
274
274
  }
275
275
  );
276
276
  const secret = response.secret;
277
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
277
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
278
278
  {
279
279
  ok: true,
280
280
  secret,
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
302
302
  }
303
303
  const note = options.clear ? "" : noteInput;
304
304
  if (options.dryRun) {
305
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
305
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
306
306
  {
307
307
  ok: true,
308
308
  dryRun: true,
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
323
323
  );
324
324
  return;
325
325
  }
326
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
326
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
327
327
  const secret = await client.updateSecretNote(secretId, note);
328
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
328
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
329
329
  {
330
330
  ok: true,
331
331
  secret,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands,
3
3
  registerSessionsCommands
4
- } from "./chunk-3S5VBG6Z.mjs";
5
- import "./chunk-YEX3VNAY.mjs";
6
- import "./chunk-2QUROYZU.mjs";
7
- import "./chunk-WRJ6MEY5.mjs";
4
+ } from "./chunk-LMG7O6XJ.mjs";
5
+ import "./chunk-X75ONMDJ.mjs";
6
+ import "./chunk-PIPEPCRL.mjs";
7
+ import "./chunk-6PMM7VJN.mjs";
8
8
  import "./chunk-4QF2K7TM.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-HBL4PM5Q.mjs";
11
- import "./chunk-4GWEZPZR.mjs";
11
+ import "./chunk-OYJTLEB4.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
  export {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWIKIF67Qjs = require('./chunk-WIKIF67Q.js');
5
- require('./chunk-RI2PLVD4.js');
6
- require('./chunk-UZ7VPOTA.js');
7
- require('./chunk-K2RUSHZ7.js');
4
+ var _chunk5KMGKG4Bjs = require('./chunk-5KMGKG4B.js');
5
+ require('./chunk-BCKIBVEJ.js');
6
+ require('./chunk-ZEZ3CZ3X.js');
7
+ require('./chunk-AEKJZJ4R.js');
8
8
  require('./chunk-ALJJRZNJ.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
10
  require('./chunk-DIAWYWT5.js');
11
- require('./chunk-UYZNRLDE.js');
11
+ require('./chunk-74H5OTRM.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
14
14
 
15
15
 
16
16
 
17
- exports.registerSessionSendRenderCommands = _chunkWIKIF67Qjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkWIKIF67Qjs.registerSessionsCommands;
17
+ exports.registerSessionSendRenderCommands = _chunk5KMGKG4Bjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunk5KMGKG4Bjs.registerSessionsCommands;
@@ -1,10 +1,10 @@
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 _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
3
+ var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk5DEJ3TLBjs = require('./chunk-5DEJ3TLB.js');
7
+ var _chunkIG3GSBBEjs = require('./chunk-IG3GSBBE.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-AUQQVDAB.js');
10
10
  require('./chunk-NMU3VR5U.js');
@@ -13,27 +13,28 @@ require('./chunk-XDVT3GOM.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkFFDWL5N2js = require('./chunk-FFDWL5N2.js');
17
- require('./chunk-R23HZ6AV.js');
18
- require('./chunk-4EFD6R2V.js');
19
- require('./chunk-UI67QLIR.js');
20
- require('./chunk-FNKSRKTA.js');
16
+ var _chunkRFSXXDH7js = require('./chunk-RFSXXDH7.js');
17
+ require('./chunk-I64PYCTB.js');
18
+ require('./chunk-X7YOVJBC.js');
19
+ require('./chunk-SJOHQ2WW.js');
20
+ require('./chunk-Q7G7CU4W.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
25
- require('./chunk-UZ7VPOTA.js');
26
- require('./chunk-K2RUSHZ7.js');
24
+ var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
25
+ require('./chunk-ZEZ3CZ3X.js');
26
+ require('./chunk-AEKJZJ4R.js');
27
27
  require('./chunk-ALJJRZNJ.js');
28
28
  require('./chunk-XNYIZMNQ.js');
29
29
  require('./chunk-DIAWYWT5.js');
30
- require('./chunk-UYZNRLDE.js');
30
+ require('./chunk-74H5OTRM.js');
31
31
  require('./chunk-OG64RBAC.js');
32
+ require('./chunk-4OLXMJ2L.js');
32
33
  require('./chunk-COGTRVWW.js');
33
34
 
34
35
  // src/cli/commands/settings.ts
35
36
  var _fs = require('fs');
36
- var eventHelp = _chunk5DEJ3TLBjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
37
+ var eventHelp = _chunkIG3GSBBEjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
37
38
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
38
39
  ).join("\n");
39
40
  function slackDestination(settings) {
@@ -45,7 +46,7 @@ function slackDestination(settings) {
45
46
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
46
47
  })
47
48
  );
48
- return _chunk5DEJ3TLBjs.resolveLegacySlackNotification.call(void 0, destinations);
49
+ return _chunkIG3GSBBEjs.resolveLegacySlackNotification.call(void 0, destinations);
49
50
  }
50
51
  function eventLines(settings, destinationId) {
51
52
  const enabled = new Map(
@@ -67,10 +68,10 @@ function requireCatalogEvent(settings, eventType) {
67
68
  return event;
68
69
  }
69
70
  async function printSettings(options) {
70
- const settings = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotificationSettings();
71
+ const settings = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotificationSettings();
71
72
  const slack = slackDestination(settings);
72
73
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
73
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
74
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
74
75
  {
75
76
  settings,
76
77
  render: {
@@ -125,8 +126,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
125
126
  version pin. Pinning installs and holds one exact pin-aware CLI version.
126
127
  `
127
128
  ).option("--json", "Emit JSON output").action((options) => {
128
- const preferences = _chunkFFDWL5N2js.readCliUpdatePreferences.call(void 0, );
129
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
129
+ const preferences = _chunkRFSXXDH7js.readCliUpdatePreferences.call(void 0, );
130
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
130
131
  {
131
132
  autoUpdateEnabled: preferences.autoUpdateEnabled,
132
133
  pinnedVersion: preferences.pinnedVersion,
@@ -149,8 +150,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
149
150
  autoupdate.command(enabled ? "on" : "off").description(
150
151
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
151
152
  ).option("--json", "Emit JSON output").action((options) => {
152
- const preferences = _chunkFFDWL5N2js.setCliAutoUpdateEnabled.call(void 0, enabled);
153
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
153
+ const preferences = _chunkRFSXXDH7js.setCliAutoUpdateEnabled.call(void 0, enabled);
154
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
154
155
  {
155
156
  ok: true,
156
157
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -171,7 +172,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
171
172
  });
172
173
  }
173
174
  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) => {
174
- process.exitCode = await _chunkFFDWL5N2js.runUpdateCommand.call(void 0, {
175
+ process.exitCode = await _chunkRFSXXDH7js.runUpdateCommand.call(void 0, {
175
176
  pin: version,
176
177
  json: options.json,
177
178
  executeWithJson: true
@@ -199,15 +200,15 @@ notifications; there is no general integrations CLI.
199
200
  if (destination !== "slack")
200
201
  throw new Error("Only slack is supported.");
201
202
  if (options.dryRun) {
202
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
203
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
203
204
  { dryRun: true, destination, action: "start_oauth" },
204
205
  { json: options.json }
205
206
  );
206
207
  return;
207
208
  }
208
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().connectNotificationSlack();
209
- const browser = options.open ? _chunkRI2PLVD4js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
210
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
209
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().connectNotificationSlack();
210
+ const browser = options.open ? _chunkBCKIBVEJjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
211
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
211
212
  {
212
213
  ...result,
213
214
  browser,
@@ -231,10 +232,10 @@ notifications; there is no general integrations CLI.
231
232
  }
232
233
  );
233
234
  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) => {
234
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().listNotificationSlackChannels(
235
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().listNotificationSlackChannels(
235
236
  options.query
236
237
  );
237
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
238
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
238
239
  {
239
240
  ...result,
240
241
  render: {
@@ -260,14 +261,14 @@ notifications; there is no general integrations CLI.
260
261
  }
261
262
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
262
263
  if (options.dryRun) {
263
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
264
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
264
265
  { dryRun: true, destination, target },
265
266
  { json: options.json }
266
267
  );
267
268
  return;
268
269
  }
269
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().setNotificationSlack(target);
270
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
270
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().setNotificationSlack(target);
271
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
271
272
  {
272
273
  ok: true,
273
274
  result,
@@ -293,14 +294,14 @@ notifications; there is no general integrations CLI.
293
294
  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) => {
294
295
  if (destination !== "slack") throw new Error("Only slack is supported.");
295
296
  if (options.dryRun) {
296
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
297
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
297
298
  { dryRun: true, destination, action: "send_test_ping" },
298
299
  { json: options.json }
299
300
  );
300
301
  return;
301
302
  }
302
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().testNotificationSlack();
303
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
303
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().testNotificationSlack();
304
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
304
305
  {
305
306
  ...result,
306
307
  render: {
@@ -313,14 +314,14 @@ notifications; there is no general integrations CLI.
313
314
  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) => {
314
315
  if (destination !== "slack") throw new Error("Only slack is supported.");
315
316
  if (options.dryRun) {
316
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
317
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
317
318
  { dryRun: true, destination, action: "disable" },
318
319
  { json: options.json }
319
320
  );
320
321
  return;
321
322
  }
322
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().disableNotificationSlack();
323
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
323
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().disableNotificationSlack();
324
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
324
325
  {
325
326
  ok: true,
326
327
  result,
@@ -339,10 +340,10 @@ ${eventHelp}
339
340
  `
340
341
  );
341
342
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
342
- const current = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotificationSettings();
343
+ const current = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotificationSettings();
343
344
  const destination = slackDestination(current);
344
345
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
345
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
346
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
346
347
  {
347
348
  catalog: current.catalog,
348
349
  subscriptions: current.subscriptions,
@@ -359,14 +360,14 @@ ${eventHelp}
359
360
  );
360
361
  });
361
362
  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) => {
362
- const current = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotificationSettings();
363
+ const current = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotificationSettings();
363
364
  const event = requireCatalogEvent(current, eventType);
364
365
  const destination = slackDestination(current);
365
366
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
366
367
  const subscription = current.subscriptions.find(
367
368
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
368
369
  );
369
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
370
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
370
371
  {
371
372
  event,
372
373
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -387,11 +388,11 @@ ${eventHelp}
387
388
  });
388
389
  for (const enabled of [true, false]) {
389
390
  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) => {
390
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
391
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
391
392
  const current = await client.getNotificationSettings();
392
393
  const event = requireCatalogEvent(current, eventType);
393
394
  if (options.dryRun) {
394
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
395
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
395
396
  { dryRun: true, event, enabled },
396
397
  { json: options.json }
397
398
  );
@@ -401,7 +402,7 @@ ${eventHelp}
401
402
  [event.id],
402
403
  enabled
403
404
  );
404
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
405
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
405
406
  {
406
407
  ok: true,
407
408
  event: event.id,
@@ -422,11 +423,11 @@ ${eventHelp}
422
423
  }
423
424
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
424
425
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
425
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().listNotificationDlq(
426
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().listNotificationDlq(
426
427
  Number(options.limit)
427
428
  );
428
429
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
429
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
430
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
430
431
  {
431
432
  ...result,
432
433
  render: {
@@ -444,10 +445,10 @@ ${eventHelp}
444
445
  );
445
446
  });
446
447
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
447
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotificationDlqDelivery(
448
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotificationDlqDelivery(
448
449
  deliveryId
449
450
  );
450
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result, {
451
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result, {
451
452
  json: options.json
452
453
  });
453
454
  });
@@ -456,17 +457,17 @@ ${eventHelp}
456
457
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
457
458
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
458
459
  if (options.dryRun) {
459
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
460
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
460
461
  { dryRun: true, action, deliveryId },
461
462
  { json: options.json }
462
463
  );
463
464
  return;
464
465
  }
465
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().updateNotificationDlqDelivery(
466
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().updateNotificationDlqDelivery(
466
467
  deliveryId,
467
468
  action
468
469
  );
469
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
470
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
470
471
  { ok: true, action, deliveryId, result },
471
472
  { json: options.json }
472
473
  );
@@ -567,8 +568,8 @@ Examples:
567
568
  `
568
569
  );
569
570
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
570
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotificationConfiguration();
571
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
571
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotificationConfiguration();
572
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
572
573
  {
573
574
  ...result,
574
575
  render: {
@@ -593,21 +594,21 @@ Examples:
593
594
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
594
595
  const input = await readNotificationConfigurationChange(file);
595
596
  if (options.dryRun) {
596
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
597
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
597
598
  { dryRun: true, ...input },
598
599
  { json: options.json }
599
600
  );
600
601
  return;
601
602
  }
602
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().changeNotificationConfiguration(
603
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().changeNotificationConfiguration(
603
604
  input.expectedWorkspaceVersion,
604
605
  input.change
605
606
  );
606
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result, { json: options.json });
607
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result, { json: options.json });
607
608
  });
608
609
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
609
- const settings = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotifications();
610
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
610
+ const settings = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotifications();
611
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
611
612
  {
612
613
  events: settings.catalog,
613
614
  render: {
@@ -625,9 +626,9 @@ Examples:
625
626
  );
626
627
  });
627
628
  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) => {
628
- const settings = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotifications();
629
+ const settings = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotifications();
629
630
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
630
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
631
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
631
632
  {
632
633
  notifications: options.compact ? rules.map((rule) => ({
633
634
  id: rule.id,
@@ -655,10 +656,10 @@ Examples:
655
656
  });
656
657
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
657
658
  const rule = notificationByName(
658
- await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getNotifications(),
659
+ await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getNotifications(),
659
660
  name
660
661
  );
661
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
662
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
662
663
  });
663
664
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
664
665
  "--to <target>",
@@ -672,14 +673,14 @@ Examples:
672
673
  []
673
674
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
674
675
  async (name, options) => {
675
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().createNotificationGroup({
676
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().createNotificationGroup({
676
677
  name,
677
678
  targets: options.to,
678
679
  legacyEvents: options.for,
679
680
  dryRun: options.dryRun
680
681
  });
681
682
  if (result.mode === "dry_run") {
682
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
683
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
683
684
  result.compatibilityMode ? {
684
685
  dryRun: true,
685
686
  name: result.name,
@@ -696,7 +697,7 @@ Examples:
696
697
  return;
697
698
  }
698
699
  if (result.mode === "legacy") {
699
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
700
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
700
701
  {
701
702
  notification: result.notification,
702
703
  render: {
@@ -718,7 +719,7 @@ Examples:
718
719
  );
719
720
  return;
720
721
  }
721
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
722
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
722
723
  {
723
724
  ...result,
724
725
  render: {
@@ -754,12 +755,12 @@ Examples:
754
755
  []
755
756
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
756
757
  async (name, options) => {
757
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
758
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
758
759
  const rule = notificationByName(await client.getNotifications(), name);
759
760
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
760
761
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
761
762
  if (options.dryRun) {
762
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
763
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
763
764
  { dryRun: true, notification: rule.id, target, eventTypes },
764
765
  { json: options.json }
765
766
  );
@@ -770,15 +771,15 @@ Examples:
770
771
  ...target,
771
772
  eventTypes
772
773
  });
773
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
774
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
774
775
  }
775
776
  );
776
777
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
777
778
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
778
- const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().listNotificationChannels(
779
+ const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().listNotificationChannels(
779
780
  options.search
780
781
  );
781
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
782
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
782
783
  {
783
784
  ...result,
784
785
  render: {
@@ -798,31 +799,31 @@ Examples:
798
799
  ["resume", true]
799
800
  ]) {
800
801
  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) => {
801
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
802
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
802
803
  const rule = notificationByName(await client.getNotifications(), name);
803
804
  if (options.dryRun) {
804
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
805
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
805
806
  { dryRun: true, notification: rule.id, enabled },
806
807
  { json: options.json }
807
808
  );
808
809
  return;
809
810
  }
810
811
  const result = await client.updateNotification(rule.id, { enabled });
811
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
812
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
812
813
  });
813
814
  }
814
815
  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) => {
815
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
816
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
816
817
  const rule = notificationByName(await client.getNotifications(), name);
817
818
  if (options.dryRun) {
818
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
819
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
819
820
  { dryRun: true, notification: rule.id, action: "send_test" },
820
821
  { json: options.json }
821
822
  );
822
823
  return;
823
824
  }
824
825
  const result = await client.testNotification(rule.id);
825
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
826
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
826
827
  { ...result, notification: rule.name },
827
828
  { json: options.json }
828
829
  );
@@ -830,17 +831,17 @@ Examples:
830
831
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
831
832
  "Archive one notification without touching its provider integration."
832
833
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
833
- const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
834
+ const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
834
835
  const rule = notificationByName(await client.getNotifications(), name);
835
836
  if (options.dryRun) {
836
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
837
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
837
838
  { dryRun: true, notification: rule.id, action: "archive" },
838
839
  { json: options.json }
839
840
  );
840
841
  return;
841
842
  }
842
843
  const result = await client.deleteNotification(rule.id);
843
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
844
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
844
845
  { ...result, notification: rule.name },
845
846
  { json: options.json }
846
847
  );