deepline 0.3.508 → 0.3.509

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 (127) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
  4. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
  5. package/dist/cli/{auth-2URIN52G.mjs → auth-6IR2QH4N.mjs} +5 -5
  6. package/dist/cli/auth-SUTQ4SZQ.js +43 -0
  7. package/dist/cli/{billing-R2HY2ZVJ.js → billing-SYBK3ZYU.js} +82 -82
  8. package/dist/cli/{billing-IW23GSR5.mjs → billing-WEWHH6ST.mjs} +7 -7
  9. package/dist/cli/{chunk-3XBI4KZM.mjs → chunk-25MAOMVS.mjs} +2 -2
  10. package/dist/cli/{chunk-63MCLOR2.mjs → chunk-2U7Z4LFG.mjs} +6 -6
  11. package/dist/cli/{chunk-AYNO4VFW.js → chunk-2ZJRCAHG.js} +11 -11
  12. package/dist/cli/{chunk-2LY42EZJ.mjs → chunk-3CZHC24N.mjs} +1 -1
  13. package/dist/cli/{chunk-3ZNPIJX6.js → chunk-4DVANPBN.js} +41 -41
  14. package/dist/cli/{chunk-JEB6BNIU.mjs → chunk-54YPOG5W.mjs} +2 -2
  15. package/dist/cli/{chunk-3BZ74K27.js → chunk-5Y3I5LEQ.js} +16 -16
  16. package/dist/cli/{chunk-DZ7JCRAL.mjs → chunk-6KBVQ76G.mjs} +2 -2
  17. package/dist/cli/{chunk-JRHMPZJX.js → chunk-6TBRWRJ2.js} +7 -7
  18. package/dist/cli/{chunk-JUYW6TSU.js → chunk-726UDAV2.js} +7 -7
  19. package/dist/cli/{chunk-74UO7THC.js → chunk-7KALZEDZ.js} +4 -4
  20. package/dist/cli/{chunk-7PELFO3C.js → chunk-7NMPGX3W.js} +21 -21
  21. package/dist/cli/{chunk-RUD77W2Y.js → chunk-AD45WJHN.js} +5 -5
  22. package/dist/cli/{chunk-ESVK4Z7S.js → chunk-AO63MXT6.js} +1 -1
  23. package/dist/cli/{chunk-JYNHHO3J.js → chunk-CMSPA5VX.js} +6 -6
  24. package/dist/cli/{chunk-63BGKU3A.js → chunk-DGOSW42X.js} +96 -96
  25. package/dist/cli/{chunk-C6TP4DR3.mjs → chunk-E3HWUGDT.mjs} +1 -1
  26. package/dist/cli/{chunk-3C6VBHNW.mjs → chunk-EEEWADSR.mjs} +2 -2
  27. package/dist/cli/{chunk-2PYFXXYA.mjs → chunk-FNLGMMJJ.mjs} +2 -2
  28. package/dist/cli/{chunk-OWH7SSBO.mjs → chunk-FQCIYGQY.mjs} +2 -2
  29. package/dist/cli/{chunk-P7GOQTUN.js → chunk-GTAU4C44.js} +14 -14
  30. package/dist/cli/{chunk-J3LJ37WD.js → chunk-HMAETS53.js} +3 -3
  31. package/dist/cli/{chunk-K4RME7AV.mjs → chunk-IZW7IOD6.mjs} +1 -1
  32. package/dist/cli/{chunk-GDHLL5EQ.js → chunk-J5P4PDRT.js} +3 -0
  33. package/dist/cli/{chunk-ZL2ME3UT.js → chunk-JZJNA57M.js} +6 -6
  34. package/dist/cli/{chunk-Q4I5YKN4.mjs → chunk-K2RCVD7S.mjs} +1 -1
  35. package/dist/cli/{chunk-M37I4A2Z.js → chunk-O527H5GY.js} +16 -16
  36. package/dist/cli/{chunk-QBZECLNG.mjs → chunk-OOD5LGUS.mjs} +3 -3
  37. package/dist/cli/{chunk-N5HRBS4K.js → chunk-Q5UO2ENN.js} +3 -3
  38. package/dist/cli/{chunk-D73YB5NQ.js → chunk-Q7G6WORO.js} +2 -2
  39. package/dist/cli/{chunk-FRT5MFLF.mjs → chunk-R2KNJMOY.mjs} +1 -1
  40. package/dist/cli/{chunk-TVADI7K5.js → chunk-RA2NKHV5.js} +5 -5
  41. package/dist/cli/{chunk-KSQO32L5.mjs → chunk-RSKAPLST.mjs} +1 -1
  42. package/dist/cli/{chunk-RNZQ7RDW.mjs → chunk-S7JEF2MR.mjs} +2 -2
  43. package/dist/cli/{chunk-IF242BIJ.mjs → chunk-SEQIB5WJ.mjs} +5 -5
  44. package/dist/cli/{chunk-XSOLA2ED.mjs → chunk-T67NAGSD.mjs} +4 -4
  45. package/dist/cli/{chunk-NC2FIUPX.mjs → chunk-UART6FGK.mjs} +1 -1
  46. package/dist/cli/{chunk-DWV7KM6H.mjs → chunk-VH522HUP.mjs} +10 -10
  47. package/dist/cli/{chunk-FXKKFM7J.js → chunk-VTVZ7EUA.js} +9 -9
  48. package/dist/cli/{chunk-RWXHMG6F.js → chunk-VZ773N7G.js} +8 -8
  49. package/dist/cli/{chunk-VXNL4HLE.mjs → chunk-WJ6H2W3O.mjs} +5 -5
  50. package/dist/cli/{chunk-2YOM5J3G.js → chunk-WPBTWRKG.js} +26 -26
  51. package/dist/cli/{chunk-4DAR2GYV.mjs → chunk-WUKNKFB3.mjs} +2 -2
  52. package/dist/cli/{chunk-UDH3YMBI.mjs → chunk-XEQH65DT.mjs} +1 -1
  53. package/dist/cli/{chunk-GRGZKXLL.mjs → chunk-XIBNY6H6.mjs} +5 -5
  54. package/dist/cli/{chunk-R4S2AK3Q.js → chunk-XPKBYMJH.js} +53 -53
  55. package/dist/cli/{chunk-JXYVBF5L.mjs → chunk-Y4M5HPQV.mjs} +5 -5
  56. package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-YJM3NOME.mjs} +3 -0
  57. package/dist/cli/{chunk-IZZ7FFWP.js → chunk-Z2LVZDO5.js} +44 -44
  58. package/dist/cli/{chunk-ZLIAUR2E.js → chunk-ZXGMWXZW.js} +2 -2
  59. package/dist/cli/command-docs.js +2 -2
  60. package/dist/cli/command-docs.mjs +1 -1
  61. package/dist/cli/{csv-CMJSMC2I.mjs → csv-4LAJ2ZKG.mjs} +4 -4
  62. package/dist/cli/{csv-DPDO6BU6.js → csv-5KNONIAX.js} +13 -13
  63. package/dist/cli/{db-PPPKNTT5.js → db-5PEXOSN3.js} +27 -27
  64. package/dist/cli/{db-SL3EFN6V.mjs → db-BEVCJI66.mjs} +6 -6
  65. package/dist/cli/{describe-XLN33FJX.mjs → describe-TDJIUSD6.mjs} +18 -18
  66. package/dist/cli/describe-ZB6G6DOV.js +50 -0
  67. package/dist/cli/{executions-6YDTV2J6.js → executions-36GV3A27.js} +8 -8
  68. package/dist/cli/{executions-O6Z5B5NY.mjs → executions-KXCPU6YC.mjs} +6 -6
  69. package/dist/cli/{feedback-DP7LPWAD.mjs → feedback-GEUUT4S7.mjs} +4 -4
  70. package/dist/cli/{feedback-BZ434BN4.js → feedback-SPQABV33.js} +8 -8
  71. package/dist/cli/{git-MI7E5WGL.mjs → git-AE36X2R6.mjs} +5 -5
  72. package/dist/cli/git-UX7L6R32.js +25 -0
  73. package/dist/cli/index.js +142 -142
  74. package/dist/cli/index.mjs +42 -42
  75. package/dist/cli/{legacy-noops-6VYXF2MG.mjs → legacy-noops-LUEDAK7J.mjs} +5 -5
  76. package/dist/cli/{legacy-noops-65WNPQVZ.js → legacy-noops-TKPHN7WT.js} +8 -8
  77. package/dist/cli/{monitors-BYUCTVSC.js → monitors-B2EAIGZI.js} +100 -100
  78. package/dist/cli/{monitors-Y7I5ZVCN.mjs → monitors-JHJZ5XG7.mjs} +7 -7
  79. package/dist/cli/{org-IW3YD6JZ.mjs → org-GUICCEBZ.mjs} +6 -6
  80. package/dist/cli/{org-F2ASWTFY.js → org-PYCPXEAU.js} +72 -72
  81. package/dist/cli/{pages-X6HLRQNV.js → pages-CV4TQNFY.js} +18 -18
  82. package/dist/cli/{pages-H2CXNIDB.mjs → pages-Y2XI36HY.mjs} +6 -6
  83. package/dist/cli/{play-H2EM7DTI.js → play-MTVK66JK.js} +468 -429
  84. package/dist/cli/{play-LLEEDXRX.mjs → play-VWCQNGZZ.mjs} +93 -54
  85. package/dist/cli/{providers-6R2SPOEV.js → providers-N72BUCXZ.js} +9 -9
  86. package/dist/cli/{providers-BZR5JONN.mjs → providers-ZOZTST3A.mjs} +6 -6
  87. package/dist/cli/{quickstart-KVES7R6D.mjs → quickstart-DXIC3NHS.mjs} +4 -4
  88. package/dist/cli/{quickstart-PW7ONQUH.js → quickstart-FK53VZB3.js} +6 -6
  89. package/dist/cli/{run-RDI3Q6GO.mjs → run-IL2KI33N.mjs} +23 -23
  90. package/dist/cli/{run-HVUQROBE.js → run-NNAYDCEN.js} +41 -41
  91. package/dist/cli/{search-3TJ24CUF.mjs → search-7IPVMQCO.mjs} +8 -8
  92. package/dist/cli/search-OZHP5ZE2.js +33 -0
  93. package/dist/cli/{search-output-JHT553SL.js → search-output-YHTWLSDE.js} +6 -6
  94. package/dist/cli/{search-output-Y57OBQXX.mjs → search-output-ZY2GE35S.mjs} +4 -4
  95. package/dist/cli/{secrets-OZK7GRD5.mjs → secrets-BGUMHDZ7.mjs} +6 -6
  96. package/dist/cli/{secrets-U5JHWAXU.js → secrets-ZML76SH2.js} +15 -15
  97. package/dist/cli/{sessions-D6DSEQ2T.mjs → sessions-F5XO6HZJ.mjs} +5 -5
  98. package/dist/cli/{sessions-PNMYAJNB.js → sessions-WDINUUZ3.js} +6 -6
  99. package/dist/cli/{settings-ITLSLT2R.mjs → settings-73SMIICV.mjs} +12 -12
  100. package/dist/cli/{settings-DLPEHYGS.js → settings-TOX2P5M5.js} +82 -82
  101. package/dist/cli/{setup-Y5ZYEC6U.js → setup-DNFHFQ7N.js} +50 -50
  102. package/dist/cli/{setup-XTYLF2CF.mjs → setup-FDJZYBMS.mjs} +10 -10
  103. package/dist/cli/{skills-C4WCAVII.mjs → skills-6HJ2IAY6.mjs} +8 -8
  104. package/dist/cli/skills-NE7WN5PP.js +37 -0
  105. package/dist/cli/{tools-ZESAPVOW.mjs → tools-4FJIIE4R.mjs} +17 -17
  106. package/dist/cli/tools-ETX4MNNO.js +57 -0
  107. package/dist/cli/update-N2DMPSUH.js +35 -0
  108. package/dist/cli/{update-4PCKVDCS.mjs → update-UMRPPILV.mjs} +10 -10
  109. package/dist/cli/{workflow-42CL4TVR.mjs → workflow-LSFOG5VU.mjs} +7 -7
  110. package/dist/cli/{workflow-XXKXMPTI.js → workflow-SK3BUHB4.js} +17 -17
  111. package/dist/index.js +9 -9
  112. package/dist/index.mjs +6 -6
  113. package/dist/install-integrity.json +102 -102
  114. package/dist/release.d.mts +1 -1
  115. package/dist/release.d.ts +1 -1
  116. package/dist/release.js +2 -2
  117. package/dist/release.mjs +1 -1
  118. package/dist/server.js +5 -5
  119. package/dist/server.mjs +3 -3
  120. package/package.json +1 -1
  121. package/dist/cli/auth-LFU77QDI.js +0 -43
  122. package/dist/cli/describe-JKZ67X3E.js +0 -50
  123. package/dist/cli/git-U5N6CTML.js +0 -25
  124. package/dist/cli/search-NKEEGLY6.js +0 -33
  125. package/dist/cli/skills-K6FVG3BX.js +0 -37
  126. package/dist/cli/tools-LSALTN7I.js +0 -57
  127. package/dist/cli/update-P5KGNFNL.js +0 -35
@@ -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 _chunkTVADI7K5js = require('./chunk-TVADI7K5.js');
3
+ var _chunkRA2NKHV5js = require('./chunk-RA2NKHV5.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkJRHMPZJXjs = require('./chunk-JRHMPZJX.js');
7
+ var _chunk6TBRWRJ2js = require('./chunk-6TBRWRJ2.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-RNSHCJME.js');
10
10
  require('./chunk-NMU3VR5U.js');
@@ -13,25 +13,25 @@ require('./chunk-WSGXBROE.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkM37I4A2Zjs = require('./chunk-M37I4A2Z.js');
17
- require('./chunk-D73YB5NQ.js');
18
- require('./chunk-3ZNPIJX6.js');
16
+ var _chunkO527H5GYjs = require('./chunk-O527H5GY.js');
17
+ require('./chunk-Q7G6WORO.js');
18
+ require('./chunk-4DVANPBN.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkIZZ7FFWPjs = require('./chunk-IZZ7FFWP.js');
23
- require('./chunk-N5HRBS4K.js');
24
- require('./chunk-P7GOQTUN.js');
22
+ var _chunkZ2LVZDO5js = require('./chunk-Z2LVZDO5.js');
23
+ require('./chunk-Q5UO2ENN.js');
24
+ require('./chunk-GTAU4C44.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
29
- require('./chunk-J3LJ37WD.js');
30
- require('./chunk-74UO7THC.js');
28
+ var _chunk726UDAV2js = require('./chunk-726UDAV2.js');
29
+ require('./chunk-HMAETS53.js');
30
+ require('./chunk-7KALZEDZ.js');
31
31
  require('./chunk-ALJJRZNJ.js');
32
32
  require('./chunk-XNYIZMNQ.js');
33
33
  require('./chunk-DIAWYWT5.js');
34
- require('./chunk-ESVK4Z7S.js');
34
+ require('./chunk-AO63MXT6.js');
35
35
  require('./chunk-OG64RBAC.js');
36
36
  require('./chunk-RLX5ZFNX.js');
37
37
  require('./chunk-COGTRVWW.js');
@@ -39,7 +39,7 @@ require('./chunk-COGTRVWW.js');
39
39
  // src/cli/commands/settings.ts
40
40
  var _commander = require('commander');
41
41
  var _fs = require('fs');
42
- var eventHelp = _chunkJRHMPZJXjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
42
+ var eventHelp = _chunk6TBRWRJ2js.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
43
43
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
44
44
  ).join("\n");
45
45
  function slackDestination(settings) {
@@ -51,7 +51,7 @@ function slackDestination(settings) {
51
51
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
52
52
  })
53
53
  );
54
- return _chunkJRHMPZJXjs.resolveLegacySlackNotification.call(void 0, destinations);
54
+ return _chunk6TBRWRJ2js.resolveLegacySlackNotification.call(void 0, destinations);
55
55
  }
56
56
  function eventLines(settings, destinationId) {
57
57
  const enabled = new Map(
@@ -73,10 +73,10 @@ function requireCatalogEvent(settings, eventType) {
73
73
  return event;
74
74
  }
75
75
  async function printSettings(options) {
76
- const settings = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotificationSettings();
76
+ const settings = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotificationSettings();
77
77
  const slack = slackDestination(settings);
78
78
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
79
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
79
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
80
80
  {
81
81
  settings,
82
82
  render: {
@@ -131,8 +131,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
131
131
  version pin. Pinning installs and holds one exact pin-aware CLI version.
132
132
  `
133
133
  ).option("--json", "Emit JSON output").action((options) => {
134
- const preferences = _chunkM37I4A2Zjs.readCliUpdatePreferences.call(void 0, );
135
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
134
+ const preferences = _chunkO527H5GYjs.readCliUpdatePreferences.call(void 0, );
135
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
136
136
  {
137
137
  autoUpdateEnabled: preferences.autoUpdateEnabled,
138
138
  pinnedVersion: preferences.pinnedVersion,
@@ -155,8 +155,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
155
155
  autoupdate.command(enabled ? "on" : "off").description(
156
156
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
157
157
  ).option("--json", "Emit JSON output").action((options) => {
158
- const preferences = _chunkM37I4A2Zjs.setCliAutoUpdateEnabled.call(void 0, enabled);
159
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
158
+ const preferences = _chunkO527H5GYjs.setCliAutoUpdateEnabled.call(void 0, enabled);
159
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
160
160
  {
161
161
  ok: true,
162
162
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -177,18 +177,18 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
177
177
  });
178
178
  }
179
179
  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) => {
180
- process.exitCode = await _chunkM37I4A2Zjs.runUpdateCommand.call(void 0, {
180
+ process.exitCode = await _chunkO527H5GYjs.runUpdateCommand.call(void 0, {
181
181
  pin: version,
182
182
  json: options.json,
183
183
  executeWithJson: true
184
184
  });
185
185
  });
186
186
  settings.command("skills-sync").description("Configure automatic skill syncing on this machine.").addArgument(new (0, _commander.Argument)("[mode]").choices(["on", "off"])).option("--dry-run", "Show the requested setting without saving it").option("--json", "Emit JSON output").action((mode, options) => {
187
- const autoSkillsSyncEnabled = mode === void 0 ? _chunkIZZ7FFWPjs.isCliSkillsSyncEnabled.call(void 0, ) : mode === "on";
187
+ const autoSkillsSyncEnabled = mode === void 0 ? _chunkZ2LVZDO5js.isCliSkillsSyncEnabled.call(void 0, ) : mode === "on";
188
188
  if (mode !== void 0 && !options.dryRun) {
189
- _chunkIZZ7FFWPjs.setCliSkillsSyncEnabled.call(void 0, autoSkillsSyncEnabled);
189
+ _chunkZ2LVZDO5js.setCliSkillsSyncEnabled.call(void 0, autoSkillsSyncEnabled);
190
190
  }
191
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
191
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
192
192
  {
193
193
  autoSkillsSyncEnabled,
194
194
  ...options.dryRun ? { dryRun: true } : {},
@@ -228,15 +228,15 @@ notifications; there is no general integrations CLI.
228
228
  if (destination !== "slack")
229
229
  throw new Error("Only slack is supported.");
230
230
  if (options.dryRun) {
231
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
231
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
232
232
  { dryRun: true, destination, action: "start_oauth" },
233
233
  { json: options.json }
234
234
  );
235
235
  return;
236
236
  }
237
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().connectNotificationSlack();
238
- const browser = options.open ? _chunkJUYW6TSUjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
239
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
237
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().connectNotificationSlack();
238
+ const browser = options.open ? _chunk726UDAV2js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
239
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
240
240
  {
241
241
  ...result,
242
242
  browser,
@@ -260,10 +260,10 @@ notifications; there is no general integrations CLI.
260
260
  }
261
261
  );
262
262
  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) => {
263
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().listNotificationSlackChannels(
263
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().listNotificationSlackChannels(
264
264
  options.query
265
265
  );
266
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
266
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
267
267
  {
268
268
  ...result,
269
269
  render: {
@@ -289,14 +289,14 @@ notifications; there is no general integrations CLI.
289
289
  }
290
290
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
291
291
  if (options.dryRun) {
292
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
292
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
293
293
  { dryRun: true, destination, target },
294
294
  { json: options.json }
295
295
  );
296
296
  return;
297
297
  }
298
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().setNotificationSlack(target);
299
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
298
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().setNotificationSlack(target);
299
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
300
300
  {
301
301
  ok: true,
302
302
  result,
@@ -322,14 +322,14 @@ notifications; there is no general integrations CLI.
322
322
  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) => {
323
323
  if (destination !== "slack") throw new Error("Only slack is supported.");
324
324
  if (options.dryRun) {
325
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
325
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
326
326
  { dryRun: true, destination, action: "send_test_ping" },
327
327
  { json: options.json }
328
328
  );
329
329
  return;
330
330
  }
331
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().testNotificationSlack();
332
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
331
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().testNotificationSlack();
332
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
333
333
  {
334
334
  ...result,
335
335
  render: {
@@ -342,14 +342,14 @@ notifications; there is no general integrations CLI.
342
342
  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) => {
343
343
  if (destination !== "slack") throw new Error("Only slack is supported.");
344
344
  if (options.dryRun) {
345
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
345
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
346
346
  { dryRun: true, destination, action: "disable" },
347
347
  { json: options.json }
348
348
  );
349
349
  return;
350
350
  }
351
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().disableNotificationSlack();
352
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
351
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().disableNotificationSlack();
352
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
353
353
  {
354
354
  ok: true,
355
355
  result,
@@ -368,10 +368,10 @@ ${eventHelp}
368
368
  `
369
369
  );
370
370
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
371
- const current = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotificationSettings();
371
+ const current = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotificationSettings();
372
372
  const destination = slackDestination(current);
373
373
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
374
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
374
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
375
375
  {
376
376
  catalog: current.catalog,
377
377
  subscriptions: current.subscriptions,
@@ -388,14 +388,14 @@ ${eventHelp}
388
388
  );
389
389
  });
390
390
  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) => {
391
- const current = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotificationSettings();
391
+ const current = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotificationSettings();
392
392
  const event = requireCatalogEvent(current, eventType);
393
393
  const destination = slackDestination(current);
394
394
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
395
395
  const subscription = current.subscriptions.find(
396
396
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
397
397
  );
398
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
398
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
399
399
  {
400
400
  event,
401
401
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -416,11 +416,11 @@ ${eventHelp}
416
416
  });
417
417
  for (const enabled of [true, false]) {
418
418
  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) => {
419
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
419
+ const client = new (0, _chunkRA2NKHV5js.DeeplineClient)();
420
420
  const current = await client.getNotificationSettings();
421
421
  const event = requireCatalogEvent(current, eventType);
422
422
  if (options.dryRun) {
423
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
423
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
424
424
  { dryRun: true, event, enabled },
425
425
  { json: options.json }
426
426
  );
@@ -430,7 +430,7 @@ ${eventHelp}
430
430
  [event.id],
431
431
  enabled
432
432
  );
433
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
433
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
434
434
  {
435
435
  ok: true,
436
436
  event: event.id,
@@ -451,11 +451,11 @@ ${eventHelp}
451
451
  }
452
452
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
453
453
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
454
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().listNotificationDlq(
454
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().listNotificationDlq(
455
455
  Number(options.limit)
456
456
  );
457
457
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
458
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
458
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
459
459
  {
460
460
  ...result,
461
461
  render: {
@@ -473,10 +473,10 @@ ${eventHelp}
473
473
  );
474
474
  });
475
475
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
476
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotificationDlqDelivery(
476
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotificationDlqDelivery(
477
477
  deliveryId
478
478
  );
479
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, result, {
479
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0, result, {
480
480
  json: options.json
481
481
  });
482
482
  });
@@ -485,17 +485,17 @@ ${eventHelp}
485
485
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
486
486
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
487
487
  if (options.dryRun) {
488
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
488
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
489
489
  { dryRun: true, action, deliveryId },
490
490
  { json: options.json }
491
491
  );
492
492
  return;
493
493
  }
494
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().updateNotificationDlqDelivery(
494
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().updateNotificationDlqDelivery(
495
495
  deliveryId,
496
496
  action
497
497
  );
498
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
498
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
499
499
  { ok: true, action, deliveryId, result },
500
500
  { json: options.json }
501
501
  );
@@ -596,8 +596,8 @@ Examples:
596
596
  `
597
597
  );
598
598
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
599
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotificationConfiguration();
600
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
599
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotificationConfiguration();
600
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
601
601
  {
602
602
  ...result,
603
603
  render: {
@@ -622,21 +622,21 @@ Examples:
622
622
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
623
623
  const input = await readNotificationConfigurationChange(file);
624
624
  if (options.dryRun) {
625
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
625
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
626
626
  { dryRun: true, ...input },
627
627
  { json: options.json }
628
628
  );
629
629
  return;
630
630
  }
631
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().changeNotificationConfiguration(
631
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().changeNotificationConfiguration(
632
632
  input.expectedWorkspaceVersion,
633
633
  input.change
634
634
  );
635
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, result, { json: options.json });
635
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0, result, { json: options.json });
636
636
  });
637
637
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
638
- const settings = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotifications();
639
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
638
+ const settings = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotifications();
639
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
640
640
  {
641
641
  events: settings.catalog,
642
642
  render: {
@@ -654,9 +654,9 @@ Examples:
654
654
  );
655
655
  });
656
656
  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) => {
657
- const settings = await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotifications();
657
+ const settings = await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotifications();
658
658
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
659
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
659
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
660
660
  {
661
661
  notifications: options.compact ? rules.map((rule) => ({
662
662
  id: rule.id,
@@ -684,10 +684,10 @@ Examples:
684
684
  });
685
685
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
686
686
  const rule = notificationByName(
687
- await new (0, _chunkTVADI7K5js.DeeplineClient)().getNotifications(),
687
+ await new (0, _chunkRA2NKHV5js.DeeplineClient)().getNotifications(),
688
688
  name
689
689
  );
690
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
690
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
691
691
  });
692
692
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
693
693
  "--to <target>",
@@ -701,14 +701,14 @@ Examples:
701
701
  []
702
702
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
703
703
  async (name, options) => {
704
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().createNotificationGroup({
704
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().createNotificationGroup({
705
705
  name,
706
706
  targets: options.to,
707
707
  legacyEvents: options.for,
708
708
  dryRun: options.dryRun
709
709
  });
710
710
  if (result.mode === "dry_run") {
711
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
711
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
712
712
  result.compatibilityMode ? {
713
713
  dryRun: true,
714
714
  name: result.name,
@@ -725,7 +725,7 @@ Examples:
725
725
  return;
726
726
  }
727
727
  if (result.mode === "legacy") {
728
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
728
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
729
729
  {
730
730
  notification: result.notification,
731
731
  render: {
@@ -747,7 +747,7 @@ Examples:
747
747
  );
748
748
  return;
749
749
  }
750
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
750
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
751
751
  {
752
752
  ...result,
753
753
  render: {
@@ -783,12 +783,12 @@ Examples:
783
783
  []
784
784
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
785
785
  async (name, options) => {
786
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
786
+ const client = new (0, _chunkRA2NKHV5js.DeeplineClient)();
787
787
  const rule = notificationByName(await client.getNotifications(), name);
788
788
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
789
789
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
790
790
  if (options.dryRun) {
791
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
791
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
792
792
  { dryRun: true, notification: rule.id, target, eventTypes },
793
793
  { json: options.json }
794
794
  );
@@ -799,15 +799,15 @@ Examples:
799
799
  ...target,
800
800
  eventTypes
801
801
  });
802
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
802
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
803
803
  }
804
804
  );
805
805
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
806
806
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
807
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().listNotificationChannels(
807
+ const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().listNotificationChannels(
808
808
  options.search
809
809
  );
810
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
810
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
811
811
  {
812
812
  ...result,
813
813
  render: {
@@ -827,31 +827,31 @@ Examples:
827
827
  ["resume", true]
828
828
  ]) {
829
829
  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) => {
830
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
830
+ const client = new (0, _chunkRA2NKHV5js.DeeplineClient)();
831
831
  const rule = notificationByName(await client.getNotifications(), name);
832
832
  if (options.dryRun) {
833
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
833
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
834
834
  { dryRun: true, notification: rule.id, enabled },
835
835
  { json: options.json }
836
836
  );
837
837
  return;
838
838
  }
839
839
  const result = await client.updateNotification(rule.id, { enabled });
840
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
840
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
841
841
  });
842
842
  }
843
843
  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) => {
844
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
844
+ const client = new (0, _chunkRA2NKHV5js.DeeplineClient)();
845
845
  const rule = notificationByName(await client.getNotifications(), name);
846
846
  if (options.dryRun) {
847
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
847
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
848
848
  { dryRun: true, notification: rule.id, action: "send_test" },
849
849
  { json: options.json }
850
850
  );
851
851
  return;
852
852
  }
853
853
  const result = await client.testNotification(rule.id);
854
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
854
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
855
855
  { ...result, notification: rule.name },
856
856
  { json: options.json }
857
857
  );
@@ -859,17 +859,17 @@ Examples:
859
859
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
860
860
  "Archive one notification without touching its provider integration."
861
861
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
862
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
862
+ const client = new (0, _chunkRA2NKHV5js.DeeplineClient)();
863
863
  const rule = notificationByName(await client.getNotifications(), name);
864
864
  if (options.dryRun) {
865
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
865
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
866
866
  { dryRun: true, notification: rule.id, action: "archive" },
867
867
  { json: options.json }
868
868
  );
869
869
  return;
870
870
  }
871
871
  const result = await client.deleteNotification(rule.id);
872
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
872
+ _chunk726UDAV2js.printCommandEnvelope.call(void 0,
873
873
  { ...result, notification: rule.name },
874
874
  { json: options.json }
875
875
  );