deepline 0.3.393 → 0.3.394

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 (122) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +477 -10
  3. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +28 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +251 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +12 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +25 -16
  9. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +69 -22
  11. package/dist/bundling-sources/shared_libs/plays/core.ts +1 -1
  12. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +18 -0
  13. package/dist/cli/auth-IHKISLJQ.js +39 -0
  14. package/dist/cli/{auth-5PXHA232.mjs → auth-OSXDAVCF.mjs} +4 -4
  15. package/dist/cli/{billing-JFB2XLSO.js → billing-EKLYOXUY.js} +75 -75
  16. package/dist/cli/{billing-Z2N7ZAGM.mjs → billing-ZNNKX3UR.mjs} +4 -4
  17. package/dist/cli/{chunk-OXNOAD6Y.js → chunk-2MDDA7A4.js} +26 -26
  18. package/dist/cli/{chunk-PTDECJGP.js → chunk-354JCXA2.js} +50 -50
  19. package/dist/cli/{chunk-RKMB3N7K.mjs → chunk-3HU47EGZ.mjs} +48 -9
  20. package/dist/cli/{chunk-6I73X254.mjs → chunk-3HWALOL2.mjs} +1 -1
  21. package/dist/cli/{chunk-VIQJIX2P.js → chunk-4P27AXEA.js} +65 -65
  22. package/dist/cli/{chunk-UOGZUA24.mjs → chunk-5BB2RGAX.mjs} +18 -8
  23. package/dist/cli/{chunk-RWHWF5ZJ.js → chunk-6YAUMG27.js} +1 -1
  24. package/dist/cli/{chunk-HLEESTCH.mjs → chunk-BP33SIZF.mjs} +1 -1
  25. package/dist/cli/{chunk-CDFH2DYL.js → chunk-CS6RAIVY.js} +4 -4
  26. package/dist/cli/{chunk-2HAD745V.js → chunk-E23BQ5SC.js} +9 -9
  27. package/dist/cli/{chunk-LMMEAMA7.mjs → chunk-FJGW5GXU.mjs} +1 -1
  28. package/dist/cli/{chunk-Q26LUSQ2.mjs → chunk-JHIJIHFB.mjs} +1 -1
  29. package/dist/cli/{chunk-PWSWAN7Q.js → chunk-KB4SDX5S.js} +48 -9
  30. package/dist/cli/{chunk-M7Y7JYZX.js → chunk-KGNTKMRG.js} +6 -6
  31. package/dist/cli/{chunk-4XX6443T.js → chunk-KI635JN4.js} +59 -59
  32. package/dist/cli/{chunk-Z3OOZM5L.js → chunk-KIUMEOM5.js} +8 -8
  33. package/dist/cli/{chunk-KIYU2TGL.mjs → chunk-M57J2SK4.mjs} +2 -2
  34. package/dist/cli/{chunk-FQ6VHPW4.mjs → chunk-MFB2VKBO.mjs} +2 -2
  35. package/dist/cli/{chunk-MS6GUPBB.js → chunk-MH73HMPV.js} +3 -3
  36. package/dist/cli/{chunk-AARX5L4B.js → chunk-MLPU5SMZ.js} +2 -2
  37. package/dist/cli/{chunk-5PRVMXKB.mjs → chunk-NR3DFKNF.mjs} +1 -1
  38. package/dist/cli/{chunk-W4WOMXR3.js → chunk-QIQBYKLB.js} +15 -15
  39. package/dist/cli/{chunk-VIWE6WRK.js → chunk-RBJYWRCF.js} +260 -250
  40. package/dist/cli/{chunk-LZPCDB7U.mjs → chunk-TJI2EN6K.mjs} +1 -1
  41. package/dist/cli/{chunk-4TCT77UF.js → chunk-URWF7NGQ.js} +6 -1
  42. package/dist/cli/{chunk-5KWKZIQR.mjs → chunk-UXFSWG3Q.mjs} +4 -4
  43. package/dist/cli/{chunk-L2SYLGRP.js → chunk-VK6FYZLP.js} +8 -8
  44. package/dist/cli/{chunk-7HR7BGZL.mjs → chunk-X63FDZJZ.mjs} +3 -3
  45. package/dist/cli/{chunk-4PT2VA3A.mjs → chunk-XRQ2AQL7.mjs} +2 -2
  46. package/dist/cli/{chunk-STNYIMIV.mjs → chunk-XXUDVEXK.mjs} +6 -6
  47. package/dist/cli/{chunk-PQSA443V.mjs → chunk-ZI2ZNDJK.mjs} +6 -1
  48. package/dist/cli/{chunk-2LGC4EFT.mjs → chunk-ZYBGA4AR.mjs} +3 -3
  49. package/dist/cli/command-docs.js +2 -2
  50. package/dist/cli/command-docs.mjs +1 -1
  51. package/dist/cli/{csv-KJWZHKCH.mjs → csv-5AXRB35H.mjs} +3 -3
  52. package/dist/cli/{csv-P3Z3YE7H.js → csv-LU7O75WE.js} +12 -12
  53. package/dist/cli/{db-NCM4CQIS.mjs → db-7XP5UWEW.mjs} +4 -4
  54. package/dist/cli/{db-NUZGJNQC.js → db-F7YTFKVM.js} +29 -29
  55. package/dist/cli/{describe-YGSEN5WC.js → describe-FRH32RDV.js} +20 -20
  56. package/dist/cli/{describe-WT6MM2GO.mjs → describe-K4ES5LIL.mjs} +10 -10
  57. package/dist/cli/{executions-XS2IPJ4W.mjs → executions-IEHEHJUO.mjs} +4 -4
  58. package/dist/cli/{executions-PCOLHN7Q.js → executions-RZV5XPT2.js} +6 -6
  59. package/dist/cli/{feedback-4MSH7TFU.js → feedback-3P65QTX3.js} +7 -7
  60. package/dist/cli/{feedback-CCLTS5SV.mjs → feedback-FPUVZBAN.mjs} +3 -3
  61. package/dist/cli/{git-K2DHPMPC.mjs → git-GLVVP7TY.mjs} +4 -4
  62. package/dist/cli/git-MFFAWVVX.js +23 -0
  63. package/dist/cli/index.js +95 -95
  64. package/dist/cli/index.mjs +33 -33
  65. package/dist/cli/{legacy-noops-B5S4AR3P.mjs → legacy-noops-3MOI6NBM.mjs} +4 -4
  66. package/dist/cli/{legacy-noops-GPNOPFXV.js → legacy-noops-XKSGZR7Q.js} +7 -7
  67. package/dist/cli/{monitors-JLMAIPRG.mjs → monitors-FTBGNEFG.mjs} +4 -4
  68. package/dist/cli/{monitors-ZAWD7NSN.js → monitors-NZ2DYNST.js} +85 -85
  69. package/dist/cli/{org-P2KN4CES.js → org-MCKDQXIV.js} +64 -64
  70. package/dist/cli/{org-T3JTHP4G.mjs → org-V2J5RBCN.mjs} +4 -4
  71. package/dist/cli/{play-NK6BLRGL.mjs → play-AJFGME3B.mjs} +9 -9
  72. package/dist/cli/play-WLSN2EO2.js +158 -0
  73. package/dist/cli/{providers-5QRZN3DT.js → providers-2JEZ2264.js} +7 -7
  74. package/dist/cli/{providers-3NQRA7IT.mjs → providers-I6RQJZFZ.mjs} +4 -4
  75. package/dist/cli/{quickstart-PIA2JGPV.mjs → quickstart-BIDQDMO4.mjs} +3 -3
  76. package/dist/cli/{quickstart-R7NUZGNW.js → quickstart-GJ2RPDU3.js} +5 -5
  77. package/dist/cli/search-5VN4YD4I.js +27 -0
  78. package/dist/cli/{search-AIDIIGLY.mjs → search-ELRXFWG5.mjs} +5 -5
  79. package/dist/cli/{secrets-BT3PGMWN.js → secrets-53IT6VXD.js} +13 -13
  80. package/dist/cli/{secrets-OQNHL45O.mjs → secrets-SQXGZXIC.mjs} +4 -4
  81. package/dist/cli/{sessions-SF7WJPJP.mjs → sessions-2X5QF7SL.mjs} +4 -4
  82. package/dist/cli/{sessions-EYXWOSWK.js → sessions-CAV5M77Y.js} +5 -5
  83. package/dist/cli/{settings-BA3GHBOD.js → settings-532WNAZO.js} +74 -74
  84. package/dist/cli/{settings-Y57JTFDD.mjs → settings-7P67VGCJ.mjs} +7 -7
  85. package/dist/cli/{setup-RERXYC66.js → setup-6L2VSUWJ.js} +41 -41
  86. package/dist/cli/{setup-7GR5GBHA.mjs → setup-QGGBV2LE.mjs} +6 -6
  87. package/dist/cli/{skills-SJWIQAV5.mjs → skills-3FE62WBG.mjs} +4 -4
  88. package/dist/cli/skills-S6NPZAN7.js +28 -0
  89. package/dist/cli/tools-647RLXQS.js +41 -0
  90. package/dist/cli/{tools-ZF3JXPNL.mjs → tools-DMR25DEF.mjs} +7 -7
  91. package/dist/cli/{update-FFFYQAOJ.mjs → update-6RZMHJZP.mjs} +6 -6
  92. package/dist/cli/update-WVTSC3EM.js +28 -0
  93. package/dist/cli/{workflow-XVFEEGAS.mjs → workflow-L2DQRE6R.mjs} +5 -5
  94. package/dist/cli/{workflow-SZJVQH4T.js → workflow-TX4F2PIX.js} +15 -15
  95. package/dist/{client-DU5dtHDy.d.mts → client-BktIPdIj.d.mts} +1 -1
  96. package/dist/{client-mCE88hC4.d.ts → client-C3O1Ipf3.d.ts} +1 -1
  97. package/dist/{compiler-manifest-DE4RdAiY.d.ts → compiler-manifest-DLxUY5kI.d.mts} +65 -11
  98. package/dist/{compiler-manifest-DE4RdAiY.d.mts → compiler-manifest-DLxUY5kI.d.ts} +65 -11
  99. package/dist/{index-Bi-f7HFT.d.ts → index-B_GM9E3q.d.ts} +1 -1
  100. package/dist/{index-BI6nWgaV.d.mts → index-SCb0NvDb.d.mts} +1 -1
  101. package/dist/index.d.mts +5 -5
  102. package/dist/index.d.ts +5 -5
  103. package/dist/index.js +7 -7
  104. package/dist/index.mjs +4 -4
  105. package/dist/install-integrity.json +85 -84
  106. package/dist/plays/bundle-play-file.d.mts +3 -3
  107. package/dist/plays/bundle-play-file.d.ts +3 -3
  108. package/dist/plays/bundle-play-file.mjs +2 -2
  109. package/dist/plays/run-request.d.mts +2 -2
  110. package/dist/plays/run-request.d.ts +2 -2
  111. package/dist/release.d.mts +1 -1
  112. package/dist/release.d.ts +1 -1
  113. package/dist/release.js +2 -2
  114. package/dist/release.mjs +1 -1
  115. package/package.json +1 -1
  116. package/dist/cli/auth-P3MVDTXM.js +0 -39
  117. package/dist/cli/git-RNM45FX4.js +0 -23
  118. package/dist/cli/play-PDXR6JFB.js +0 -158
  119. package/dist/cli/search-QRWL7MFM.js +0 -27
  120. package/dist/cli/skills-V7EY75HB.js +0 -28
  121. package/dist/cli/tools-H5HLBCHH.js +0 -41
  122. package/dist/cli/update-472HA3LT.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2HAD745Vjs = require('./chunk-2HAD745V.js');
5
+ var _chunkE23BQ5SCjs = require('./chunk-E23BQ5SC.js');
6
6
  require('./chunk-S6R3OX7B.js');
7
7
  require('./chunk-UHNDVD3P.js');
8
8
  require('./chunk-XDVT3GOM.js');
@@ -10,24 +10,24 @@ require('./chunk-XDVT3GOM.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkW4WOMXR3js = require('./chunk-W4WOMXR3.js');
14
- require('./chunk-AARX5L4B.js');
15
- require('./chunk-VIQJIX2P.js');
13
+ var _chunkQIQBYKLBjs = require('./chunk-QIQBYKLB.js');
14
+ require('./chunk-MLPU5SMZ.js');
15
+ require('./chunk-4P27AXEA.js');
16
16
  require('./chunk-WJYPBHTE.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkM7Y7JYZXjs = require('./chunk-M7Y7JYZX.js');
21
- require('./chunk-CDFH2DYL.js');
20
+ var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
21
+ require('./chunk-CS6RAIVY.js');
22
22
  require('./chunk-XNYIZMNQ.js');
23
23
  require('./chunk-7P5AA3SN.js');
24
- require('./chunk-RWHWF5ZJ.js');
24
+ require('./chunk-6YAUMG27.js');
25
25
  require('./chunk-OG64RBAC.js');
26
26
  require('./chunk-COGTRVWW.js');
27
27
 
28
28
  // src/cli/commands/settings.ts
29
29
  var _fs = require('fs');
30
- var eventHelp = _chunk2HAD745Vjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
30
+ var eventHelp = _chunkE23BQ5SCjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
31
31
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
32
32
  ).join("\n");
33
33
  function slackDestination(settings) {
@@ -39,7 +39,7 @@ function slackDestination(settings) {
39
39
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
40
40
  })
41
41
  );
42
- return _chunk2HAD745Vjs.resolveLegacySlackNotification.call(void 0, destinations);
42
+ return _chunkE23BQ5SCjs.resolveLegacySlackNotification.call(void 0, destinations);
43
43
  }
44
44
  function eventLines(settings, destinationId) {
45
45
  const enabled = new Map(
@@ -61,10 +61,10 @@ function requireCatalogEvent(settings, eventType) {
61
61
  return event;
62
62
  }
63
63
  async function printSettings(options) {
64
- const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
64
+ const settings = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotificationSettings();
65
65
  const slack = slackDestination(settings);
66
66
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
67
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
67
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
68
68
  {
69
69
  settings,
70
70
  render: {
@@ -119,8 +119,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
119
119
  version pin. Pinning installs and holds one exact pin-aware CLI version.
120
120
  `
121
121
  ).option("--json", "Emit JSON output").action((options) => {
122
- const preferences = _chunkW4WOMXR3js.readCliUpdatePreferences.call(void 0, );
123
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
122
+ const preferences = _chunkQIQBYKLBjs.readCliUpdatePreferences.call(void 0, );
123
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
124
124
  {
125
125
  autoUpdateEnabled: preferences.autoUpdateEnabled,
126
126
  pinnedVersion: preferences.pinnedVersion,
@@ -143,8 +143,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
143
143
  autoupdate.command(enabled ? "on" : "off").description(
144
144
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
145
145
  ).option("--json", "Emit JSON output").action((options) => {
146
- const preferences = _chunkW4WOMXR3js.setCliAutoUpdateEnabled.call(void 0, enabled);
147
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
146
+ const preferences = _chunkQIQBYKLBjs.setCliAutoUpdateEnabled.call(void 0, enabled);
147
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
148
148
  {
149
149
  ok: true,
150
150
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -165,7 +165,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
165
165
  });
166
166
  }
167
167
  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) => {
168
- process.exitCode = await _chunkW4WOMXR3js.runUpdateCommand.call(void 0, {
168
+ process.exitCode = await _chunkQIQBYKLBjs.runUpdateCommand.call(void 0, {
169
169
  pin: version,
170
170
  json: options.json,
171
171
  executeWithJson: true
@@ -193,15 +193,15 @@ notifications; there is no general integrations CLI.
193
193
  if (destination !== "slack")
194
194
  throw new Error("Only slack is supported.");
195
195
  if (options.dryRun) {
196
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
196
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
197
197
  { dryRun: true, destination, action: "start_oauth" },
198
198
  { json: options.json }
199
199
  );
200
200
  return;
201
201
  }
202
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().connectNotificationSlack();
203
- const browser = options.open ? _chunkM7Y7JYZXjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
204
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
202
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().connectNotificationSlack();
203
+ const browser = options.open ? _chunkKGNTKMRGjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
204
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
205
205
  {
206
206
  ...result,
207
207
  browser,
@@ -225,10 +225,10 @@ notifications; there is no general integrations CLI.
225
225
  }
226
226
  );
227
227
  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) => {
228
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationSlackChannels(
228
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().listNotificationSlackChannels(
229
229
  options.query
230
230
  );
231
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
231
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
232
232
  {
233
233
  ...result,
234
234
  render: {
@@ -254,14 +254,14 @@ notifications; there is no general integrations CLI.
254
254
  }
255
255
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
256
256
  if (options.dryRun) {
257
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
257
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
258
258
  { dryRun: true, destination, target },
259
259
  { json: options.json }
260
260
  );
261
261
  return;
262
262
  }
263
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().setNotificationSlack(target);
264
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
263
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().setNotificationSlack(target);
264
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
265
265
  {
266
266
  ok: true,
267
267
  result,
@@ -287,14 +287,14 @@ notifications; there is no general integrations CLI.
287
287
  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) => {
288
288
  if (destination !== "slack") throw new Error("Only slack is supported.");
289
289
  if (options.dryRun) {
290
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
290
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
291
291
  { dryRun: true, destination, action: "send_test_ping" },
292
292
  { json: options.json }
293
293
  );
294
294
  return;
295
295
  }
296
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().testNotificationSlack();
297
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
296
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().testNotificationSlack();
297
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
298
298
  {
299
299
  ...result,
300
300
  render: {
@@ -307,14 +307,14 @@ notifications; there is no general integrations CLI.
307
307
  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) => {
308
308
  if (destination !== "slack") throw new Error("Only slack is supported.");
309
309
  if (options.dryRun) {
310
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
310
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
311
311
  { dryRun: true, destination, action: "disable" },
312
312
  { json: options.json }
313
313
  );
314
314
  return;
315
315
  }
316
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().disableNotificationSlack();
317
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
316
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().disableNotificationSlack();
317
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
318
318
  {
319
319
  ok: true,
320
320
  result,
@@ -333,10 +333,10 @@ ${eventHelp}
333
333
  `
334
334
  );
335
335
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
336
- const current = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
336
+ const current = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotificationSettings();
337
337
  const destination = slackDestination(current);
338
338
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
339
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
339
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
340
340
  {
341
341
  catalog: current.catalog,
342
342
  subscriptions: current.subscriptions,
@@ -353,14 +353,14 @@ ${eventHelp}
353
353
  );
354
354
  });
355
355
  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) => {
356
- const current = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
356
+ const current = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotificationSettings();
357
357
  const event = requireCatalogEvent(current, eventType);
358
358
  const destination = slackDestination(current);
359
359
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
360
360
  const subscription = current.subscriptions.find(
361
361
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
362
362
  );
363
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
363
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
364
364
  {
365
365
  event,
366
366
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -381,11 +381,11 @@ ${eventHelp}
381
381
  });
382
382
  for (const enabled of [true, false]) {
383
383
  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) => {
384
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
384
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
385
385
  const current = await client.getNotificationSettings();
386
386
  const event = requireCatalogEvent(current, eventType);
387
387
  if (options.dryRun) {
388
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
388
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
389
389
  { dryRun: true, event, enabled },
390
390
  { json: options.json }
391
391
  );
@@ -395,7 +395,7 @@ ${eventHelp}
395
395
  [event.id],
396
396
  enabled
397
397
  );
398
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
398
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
399
399
  {
400
400
  ok: true,
401
401
  event: event.id,
@@ -416,11 +416,11 @@ ${eventHelp}
416
416
  }
417
417
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
418
418
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
419
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationDlq(
419
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().listNotificationDlq(
420
420
  Number(options.limit)
421
421
  );
422
422
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
423
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
423
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
424
424
  {
425
425
  ...result,
426
426
  render: {
@@ -438,10 +438,10 @@ ${eventHelp}
438
438
  );
439
439
  });
440
440
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
441
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationDlqDelivery(
441
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotificationDlqDelivery(
442
442
  deliveryId
443
443
  );
444
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, result, {
444
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, result, {
445
445
  json: options.json
446
446
  });
447
447
  });
@@ -450,17 +450,17 @@ ${eventHelp}
450
450
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
451
451
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
452
452
  if (options.dryRun) {
453
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
453
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
454
454
  { dryRun: true, action, deliveryId },
455
455
  { json: options.json }
456
456
  );
457
457
  return;
458
458
  }
459
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().updateNotificationDlqDelivery(
459
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().updateNotificationDlqDelivery(
460
460
  deliveryId,
461
461
  action
462
462
  );
463
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
463
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
464
464
  { ok: true, action, deliveryId, result },
465
465
  { json: options.json }
466
466
  );
@@ -561,8 +561,8 @@ Examples:
561
561
  `
562
562
  );
563
563
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
564
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationConfiguration();
565
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
564
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotificationConfiguration();
565
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...result,
568
568
  render: {
@@ -587,21 +587,21 @@ Examples:
587
587
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
588
588
  const input = await readNotificationConfigurationChange(file);
589
589
  if (options.dryRun) {
590
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
590
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
591
591
  { dryRun: true, ...input },
592
592
  { json: options.json }
593
593
  );
594
594
  return;
595
595
  }
596
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().changeNotificationConfiguration(
596
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().changeNotificationConfiguration(
597
597
  input.expectedWorkspaceVersion,
598
598
  input.change
599
599
  );
600
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, result, { json: options.json });
600
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, result, { json: options.json });
601
601
  });
602
602
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
603
- const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications();
604
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
603
+ const settings = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotifications();
604
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
605
605
  {
606
606
  events: settings.catalog,
607
607
  render: {
@@ -619,9 +619,9 @@ Examples:
619
619
  );
620
620
  });
621
621
  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) => {
622
- const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications();
622
+ const settings = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotifications();
623
623
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
624
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
624
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
625
625
  {
626
626
  notifications: options.compact ? rules.map((rule) => ({
627
627
  id: rule.id,
@@ -649,10 +649,10 @@ Examples:
649
649
  });
650
650
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
651
651
  const rule = notificationByName(
652
- await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications(),
652
+ await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getNotifications(),
653
653
  name
654
654
  );
655
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
655
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
656
656
  });
657
657
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
658
658
  "--to <target>",
@@ -666,14 +666,14 @@ Examples:
666
666
  []
667
667
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
668
668
  async (name, options) => {
669
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().createNotificationGroup({
669
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().createNotificationGroup({
670
670
  name,
671
671
  targets: options.to,
672
672
  legacyEvents: options.for,
673
673
  dryRun: options.dryRun
674
674
  });
675
675
  if (result.mode === "dry_run") {
676
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
676
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
677
677
  result.compatibilityMode ? {
678
678
  dryRun: true,
679
679
  name: result.name,
@@ -690,7 +690,7 @@ Examples:
690
690
  return;
691
691
  }
692
692
  if (result.mode === "legacy") {
693
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
693
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
694
694
  {
695
695
  notification: result.notification,
696
696
  render: {
@@ -712,7 +712,7 @@ Examples:
712
712
  );
713
713
  return;
714
714
  }
715
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
715
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
716
716
  {
717
717
  ...result,
718
718
  render: {
@@ -748,12 +748,12 @@ Examples:
748
748
  []
749
749
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
750
750
  async (name, options) => {
751
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
751
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
752
752
  const rule = notificationByName(await client.getNotifications(), name);
753
753
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
754
754
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
755
755
  if (options.dryRun) {
756
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
756
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
757
757
  { dryRun: true, notification: rule.id, target, eventTypes },
758
758
  { json: options.json }
759
759
  );
@@ -764,15 +764,15 @@ Examples:
764
764
  ...target,
765
765
  eventTypes
766
766
  });
767
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
767
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
768
768
  }
769
769
  );
770
770
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
771
771
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
772
- const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationChannels(
772
+ const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().listNotificationChannels(
773
773
  options.search
774
774
  );
775
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
775
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
776
776
  {
777
777
  ...result,
778
778
  render: {
@@ -792,31 +792,31 @@ Examples:
792
792
  ["resume", true]
793
793
  ]) {
794
794
  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) => {
795
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
795
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
796
796
  const rule = notificationByName(await client.getNotifications(), name);
797
797
  if (options.dryRun) {
798
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
798
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
799
799
  { dryRun: true, notification: rule.id, enabled },
800
800
  { json: options.json }
801
801
  );
802
802
  return;
803
803
  }
804
804
  const result = await client.updateNotification(rule.id, { enabled });
805
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
805
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
806
806
  });
807
807
  }
808
808
  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) => {
809
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
809
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
810
810
  const rule = notificationByName(await client.getNotifications(), name);
811
811
  if (options.dryRun) {
812
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
812
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
813
813
  { dryRun: true, notification: rule.id, action: "send_test" },
814
814
  { json: options.json }
815
815
  );
816
816
  return;
817
817
  }
818
818
  const result = await client.testNotification(rule.id);
819
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
819
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
820
820
  { ...result, notification: rule.name },
821
821
  { json: options.json }
822
822
  );
@@ -824,17 +824,17 @@ Examples:
824
824
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
825
825
  "Archive one notification without touching its provider integration."
826
826
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
827
- const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
827
+ const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
828
828
  const rule = notificationByName(await client.getNotifications(), name);
829
829
  if (options.dryRun) {
830
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
830
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
831
831
  { dryRun: true, notification: rule.id, action: "archive" },
832
832
  { json: options.json }
833
833
  );
834
834
  return;
835
835
  }
836
836
  const result = await client.deleteNotification(rule.id);
837
- _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
837
+ _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
838
838
  { ...result, notification: rule.name },
839
839
  { json: options.json }
840
840
  );
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  PRODUCT_NOTIFICATION_EVENT_CATALOG,
4
4
  resolveLegacySlackNotification
5
- } from "./chunk-Q26LUSQ2.mjs";
5
+ } from "./chunk-JHIJIHFB.mjs";
6
6
  import "./chunk-6IKARAYD.mjs";
7
7
  import "./chunk-JI2B4RZP.mjs";
8
8
  import "./chunk-UBKA33KY.mjs";
@@ -10,18 +10,18 @@ import {
10
10
  readCliUpdatePreferences,
11
11
  runUpdateCommand,
12
12
  setCliAutoUpdateEnabled
13
- } from "./chunk-5KWKZIQR.mjs";
14
- import "./chunk-HLEESTCH.mjs";
15
- import "./chunk-7HR7BGZL.mjs";
13
+ } from "./chunk-UXFSWG3Q.mjs";
14
+ import "./chunk-BP33SIZF.mjs";
15
+ import "./chunk-X63FDZJZ.mjs";
16
16
  import "./chunk-GAMFK2ZP.mjs";
17
17
  import {
18
18
  openInBrowser,
19
19
  printCommandEnvelope
20
- } from "./chunk-5PRVMXKB.mjs";
21
- import "./chunk-LMMEAMA7.mjs";
20
+ } from "./chunk-NR3DFKNF.mjs";
21
+ import "./chunk-FJGW5GXU.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-NXGCO4JB.mjs";
24
- import "./chunk-LZPCDB7U.mjs";
24
+ import "./chunk-TJI2EN6K.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27