deepline 0.3.452 → 0.3.454

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/client.ts +65 -0
  2. package/dist/bundling-sources/sdk/src/http.ts +2 -1
  3. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +63 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +13 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +83 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +11 -3
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +16 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +20 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +77 -12
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +5 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +254 -64
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +11 -0
  17. package/dist/cli/auth-GUZWKNXM.js +40 -0
  18. package/dist/cli/{auth-DKZLB6GN.mjs → auth-YNPT3IER.mjs} +4 -4
  19. package/dist/cli/{billing-DOFXWAZR.mjs → billing-TLRVAOXB.mjs} +18 -5
  20. package/dist/cli/{billing-CN3XSVER.js → billing-VXIIND6T.js} +87 -74
  21. package/dist/cli/{chunk-TXN27XQQ.mjs → chunk-27NNEBIS.mjs} +2 -2
  22. package/dist/cli/chunk-2I7GE7KB.mjs +155 -0
  23. package/dist/cli/{chunk-M4FFNUF4.js → chunk-33FEF4RH.js} +50 -50
  24. package/dist/cli/{chunk-FIQ2F5LA.mjs → chunk-5GJH2BYN.mjs} +2 -2
  25. package/dist/cli/{chunk-ELULDUX3.mjs → chunk-5OQMUDPM.mjs} +1 -1
  26. package/dist/cli/{chunk-5DRGDSJL.js → chunk-6JY2NGJN.js} +26 -26
  27. package/dist/cli/chunk-7ICOQRW5.js +155 -0
  28. package/dist/cli/{chunk-7JSZOUNU.js → chunk-7V3OKSB2.js} +1 -1
  29. package/dist/cli/{chunk-74BPYDDG.js → chunk-BUYQU7TB.js} +8 -8
  30. package/dist/cli/{chunk-RNM4HG3W.mjs → chunk-CPXT4KPC.mjs} +3 -3
  31. package/dist/cli/{chunk-KQUDU3ZE.mjs → chunk-DCZSJON4.mjs} +2 -2
  32. package/dist/cli/{chunk-2GMAPSJU.mjs → chunk-EXWKHMMP.mjs} +5 -5
  33. package/dist/cli/{chunk-ZH6HFV7Y.js → chunk-FKGXZXRP.js} +8 -8
  34. package/dist/cli/{chunk-UGPGB4C6.mjs → chunk-G6ZOZQXT.mjs} +4 -153
  35. package/dist/cli/{chunk-L2GATUZK.js → chunk-IJ5WCZ32.js} +20 -20
  36. package/dist/cli/{chunk-JT4ZSWBK.js → chunk-KPPL2WNH.js} +16 -16
  37. package/dist/cli/{chunk-X4IMX5AO.mjs → chunk-LVHRP7XM.mjs} +4 -4
  38. package/dist/cli/{chunk-RFDIXLRX.mjs → chunk-LWYOJG66.mjs} +1 -1
  39. package/dist/cli/{chunk-L6YCGSL4.js → chunk-P5IQ6LIK.js} +35 -35
  40. package/dist/cli/{chunk-2VERHTKO.js → chunk-QLMQ2NAQ.js} +2 -2
  41. package/dist/cli/{chunk-PBQSX6ES.mjs → chunk-RDAUQGPG.mjs} +1 -1
  42. package/dist/cli/{chunk-7OI33KE5.js → chunk-S2PO3X5R.js} +2 -2
  43. package/dist/cli/{chunk-ZKGK2JU3.js → chunk-SJH66N73.js} +6 -6
  44. package/dist/cli/{chunk-SM5RZ5JC.mjs → chunk-TECW24CR.mjs} +2 -2
  45. package/dist/cli/{chunk-R7YZKHN5.mjs → chunk-THJ7ORNM.mjs} +3 -3
  46. package/dist/cli/{chunk-POSAVPQZ.mjs → chunk-U72KDMYJ.mjs} +2 -2
  47. package/dist/cli/{chunk-JJOSUZMS.mjs → chunk-UT6W675P.mjs} +1 -1
  48. package/dist/cli/{chunk-G5BMPTZD.js → chunk-VHGGHRGY.js} +81 -81
  49. package/dist/cli/{chunk-ETFVH7PO.js → chunk-VXBEHDM6.js} +10 -10
  50. package/dist/cli/{chunk-WW63S4RC.js → chunk-WONLZMDF.js} +6 -6
  51. package/dist/cli/{chunk-QK65KBWN.mjs → chunk-YETNOEAZ.mjs} +8 -8
  52. package/dist/cli/{chunk-YWL4ULLT.js → chunk-YPYR4ACF.js} +73 -222
  53. package/dist/cli/{chunk-2SICEJBN.mjs → chunk-YXCLG3KB.mjs} +35 -1
  54. package/dist/cli/{chunk-J5O4AXSO.js → chunk-Z5PQSTYX.js} +84 -50
  55. package/dist/cli/{csv-N25FMDZQ.js → csv-BSKJR3CR.js} +12 -12
  56. package/dist/cli/{csv-QUNUQZYC.mjs → csv-I4CAAV6A.mjs} +3 -3
  57. package/dist/cli/{db-WYWDUYXS.mjs → db-EQP24K3B.mjs} +4 -4
  58. package/dist/cli/{db-2SGG56WR.js → db-RA3IL6MC.js} +25 -25
  59. package/dist/cli/{describe-QQ2XL6PV.js → describe-62KPTIFH.js} +17 -16
  60. package/dist/cli/{describe-4RBUIHR7.mjs → describe-EZDVJDPQ.mjs} +13 -12
  61. package/dist/cli/describe-core.d.mts +1 -1
  62. package/dist/cli/describe-core.d.ts +1 -1
  63. package/dist/cli/{executions-YLJHAHHX.js → executions-2HBBXRPM.js} +6 -6
  64. package/dist/cli/{executions-WOBIMQ7H.mjs → executions-W5KR56KP.mjs} +4 -4
  65. package/dist/cli/{feedback-VCGVROTY.mjs → feedback-6UTOLSFP.mjs} +3 -3
  66. package/dist/cli/{feedback-D653FAXY.js → feedback-CVYS7ZPV.js} +7 -7
  67. package/dist/cli/{git-SZ6RSLFN.mjs → git-JXH64LI4.mjs} +4 -4
  68. package/dist/cli/git-U6FMVAAM.js +24 -0
  69. package/dist/cli/index.js +133 -131
  70. package/dist/cli/index.mjs +39 -37
  71. package/dist/cli/{legacy-noops-TXZ75CWS.js → legacy-noops-5XTXIPU2.js} +7 -7
  72. package/dist/cli/{legacy-noops-UGLTI2ZY.mjs → legacy-noops-NYMLGQNX.mjs} +4 -4
  73. package/dist/cli/{monitors-HLIW4AIL.mjs → monitors-CEU6SP2B.mjs} +156 -4
  74. package/dist/cli/{monitors-VC6YSBYX.js → monitors-J6HAQLX2.js} +276 -124
  75. package/dist/cli/{org-I3VQDIGZ.js → org-CYE3DCIT.js} +66 -66
  76. package/dist/cli/{org-X4MVTSKM.mjs → org-RRKAJM5V.mjs} +4 -4
  77. package/dist/cli/{play-7TLGGN66.js → play-NJDW74YH.js} +284 -283
  78. package/dist/cli/{play-EAYGEAMI.mjs → play-PXISXZ2P.mjs} +11 -10
  79. package/dist/cli/{providers-MBTMUEGX.mjs → providers-6QGGDOWK.mjs} +4 -4
  80. package/dist/cli/{providers-IZ3YWZ4E.js → providers-JE3MUBYK.js} +7 -7
  81. package/dist/cli/{quickstart-MBDEV4RJ.js → quickstart-AQBBOFQL.js} +5 -5
  82. package/dist/cli/{quickstart-MDW2NMAS.mjs → quickstart-MKJ7TYQZ.mjs} +3 -3
  83. package/dist/cli/{search-4PQZYRQO.mjs → search-6PKFZ2JD.mjs} +5 -5
  84. package/dist/cli/search-EJGRNQQK.js +30 -0
  85. package/dist/cli/{secrets-3S7KUS2H.js → secrets-IKGJYESD.js} +13 -13
  86. package/dist/cli/{secrets-S55UCYYR.mjs → secrets-QBWRVZCT.mjs} +4 -4
  87. package/dist/cli/{sessions-UEHVIB6W.js → sessions-462I5YEQ.js} +5 -5
  88. package/dist/cli/{sessions-T6XVN737.mjs → sessions-SVYTBNRJ.mjs} +4 -4
  89. package/dist/cli/{settings-CGP7XMJZ.mjs → settings-FH4XZ7FE.mjs} +9 -8
  90. package/dist/cli/{settings-MYAUWNTF.js → settings-WHLTLPXZ.js} +76 -75
  91. package/dist/cli/{setup-5Z5HAWEG.js → setup-IKTCP3QB.js} +43 -42
  92. package/dist/cli/{setup-U66NZQXB.mjs → setup-ISCNCB4W.mjs} +8 -7
  93. package/dist/cli/{skills-2JS3SNFA.mjs → skills-HITZS5EJ.mjs} +6 -5
  94. package/dist/cli/skills-LC2YKUSO.js +30 -0
  95. package/dist/cli/{tools-G3VYZKTO.mjs → tools-SQUTVLPO.mjs} +13 -12
  96. package/dist/cli/tools-Y55OXE72.js +45 -0
  97. package/dist/cli/{update-C7CLWWIW.mjs → update-AFYEREBX.mjs} +8 -7
  98. package/dist/cli/update-Q3I6MSEQ.js +32 -0
  99. package/dist/cli/{workflow-TBKVIN4S.js → workflow-AAOOROIR.js} +15 -15
  100. package/dist/cli/{workflow-EUMRVXU7.mjs → workflow-VBCZPKVF.mjs} +5 -5
  101. package/dist/{client-CPRaigLC.d.ts → client-BV7tC6oq.d.ts} +28 -1
  102. package/dist/{client-DstDI5TV.d.mts → client-Ct6OBj9Y.d.mts} +28 -1
  103. package/dist/index.d.mts +2 -2
  104. package/dist/index.d.ts +2 -2
  105. package/dist/index.js +6 -6
  106. package/dist/index.mjs +3 -3
  107. package/dist/install-integrity.json +82 -80
  108. package/dist/plays/play-description.d.mts +1 -1
  109. package/dist/plays/play-description.d.ts +1 -1
  110. package/dist/plays/run-request.d.mts +1 -1
  111. package/dist/plays/run-request.d.ts +1 -1
  112. package/dist/release.d.mts +1 -1
  113. package/dist/release.d.ts +1 -1
  114. package/dist/release.js +2 -2
  115. package/dist/release.mjs +1 -1
  116. package/package.json +1 -1
  117. package/dist/cli/auth-36DQP46D.js +0 -40
  118. package/dist/cli/git-T6LBJEY6.js +0 -24
  119. package/dist/cli/search-5B4ZM7VS.js +0 -30
  120. package/dist/cli/skills-JXPQFJAJ.js +0 -29
  121. package/dist/cli/tools-RHRJ4SLY.js +0 -44
  122. package/dist/cli/update-5YBPJ3EQ.js +0 -31
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ5O4AXSOjs = require('./chunk-J5O4AXSO.js');
5
+ var _chunkZ5PQSTYXjs = require('./chunk-Z5PQSTYX.js');
6
6
  require('./chunk-E4CABWXL.js');
7
7
  require('./chunk-JKVRBCZL.js');
8
8
  require('./chunk-KXMNM4AQ.js');
@@ -11,25 +11,26 @@ require('./chunk-XDVT3GOM.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkJT4ZSWBKjs = require('./chunk-JT4ZSWBK.js');
15
- require('./chunk-7OI33KE5.js');
16
- require('./chunk-L6YCGSL4.js');
17
- require('./chunk-YWL4ULLT.js');
14
+ var _chunkKPPL2WNHjs = require('./chunk-KPPL2WNH.js');
15
+ require('./chunk-S2PO3X5R.js');
16
+ require('./chunk-P5IQ6LIK.js');
17
+ require('./chunk-YPYR4ACF.js');
18
+ require('./chunk-7ICOQRW5.js');
18
19
 
19
20
 
20
21
 
21
- var _chunkZKGK2JU3js = require('./chunk-ZKGK2JU3.js');
22
- require('./chunk-ETFVH7PO.js');
22
+ var _chunkSJH66N73js = require('./chunk-SJH66N73.js');
23
+ require('./chunk-VXBEHDM6.js');
23
24
  require('./chunk-ALJJRZNJ.js');
24
25
  require('./chunk-XNYIZMNQ.js');
25
26
  require('./chunk-DIAWYWT5.js');
26
- require('./chunk-7JSZOUNU.js');
27
+ require('./chunk-7V3OKSB2.js');
27
28
  require('./chunk-OG64RBAC.js');
28
29
  require('./chunk-COGTRVWW.js');
29
30
 
30
31
  // src/cli/commands/settings.ts
31
32
  var _fs = require('fs');
32
- var eventHelp = _chunkJ5O4AXSOjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
33
+ var eventHelp = _chunkZ5PQSTYXjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
33
34
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
34
35
  ).join("\n");
35
36
  function slackDestination(settings) {
@@ -41,7 +42,7 @@ function slackDestination(settings) {
41
42
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
42
43
  })
43
44
  );
44
- return _chunkJ5O4AXSOjs.resolveLegacySlackNotification.call(void 0, destinations);
45
+ return _chunkZ5PQSTYXjs.resolveLegacySlackNotification.call(void 0, destinations);
45
46
  }
46
47
  function eventLines(settings, destinationId) {
47
48
  const enabled = new Map(
@@ -63,10 +64,10 @@ function requireCatalogEvent(settings, eventType) {
63
64
  return event;
64
65
  }
65
66
  async function printSettings(options) {
66
- const settings = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotificationSettings();
67
+ const settings = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotificationSettings();
67
68
  const slack = slackDestination(settings);
68
69
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
69
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
70
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
70
71
  {
71
72
  settings,
72
73
  render: {
@@ -121,8 +122,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
121
122
  version pin. Pinning installs and holds one exact pin-aware CLI version.
122
123
  `
123
124
  ).option("--json", "Emit JSON output").action((options) => {
124
- const preferences = _chunkJT4ZSWBKjs.readCliUpdatePreferences.call(void 0, );
125
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
125
+ const preferences = _chunkKPPL2WNHjs.readCliUpdatePreferences.call(void 0, );
126
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
126
127
  {
127
128
  autoUpdateEnabled: preferences.autoUpdateEnabled,
128
129
  pinnedVersion: preferences.pinnedVersion,
@@ -145,8 +146,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
145
146
  autoupdate.command(enabled ? "on" : "off").description(
146
147
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
147
148
  ).option("--json", "Emit JSON output").action((options) => {
148
- const preferences = _chunkJT4ZSWBKjs.setCliAutoUpdateEnabled.call(void 0, enabled);
149
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
149
+ const preferences = _chunkKPPL2WNHjs.setCliAutoUpdateEnabled.call(void 0, enabled);
150
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
150
151
  {
151
152
  ok: true,
152
153
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -167,7 +168,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
167
168
  });
168
169
  }
169
170
  autoupdate.command("pin").description("Install and hold an exact pin-aware CLI version.").argument("<version>", "Exact semantic version from a pin-aware release").option("--json", "Emit JSON output").action(async (version, options) => {
170
- process.exitCode = await _chunkJT4ZSWBKjs.runUpdateCommand.call(void 0, {
171
+ process.exitCode = await _chunkKPPL2WNHjs.runUpdateCommand.call(void 0, {
171
172
  pin: version,
172
173
  json: options.json,
173
174
  executeWithJson: true
@@ -195,15 +196,15 @@ notifications; there is no general integrations CLI.
195
196
  if (destination !== "slack")
196
197
  throw new Error("Only slack is supported.");
197
198
  if (options.dryRun) {
198
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
199
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
199
200
  { dryRun: true, destination, action: "start_oauth" },
200
201
  { json: options.json }
201
202
  );
202
203
  return;
203
204
  }
204
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().connectNotificationSlack();
205
- const browser = options.open ? _chunkZKGK2JU3js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
206
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
205
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().connectNotificationSlack();
206
+ const browser = options.open ? _chunkSJH66N73js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
207
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
207
208
  {
208
209
  ...result,
209
210
  browser,
@@ -227,10 +228,10 @@ notifications; there is no general integrations CLI.
227
228
  }
228
229
  );
229
230
  notifications.command("channels").description("List Slack channels visible to the connected Deepline app.").option("--query <text>", "Filter channels by name").option("--json", "Emit JSON output").action(async (options) => {
230
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().listNotificationSlackChannels(
231
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().listNotificationSlackChannels(
231
232
  options.query
232
233
  );
233
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
234
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
234
235
  {
235
236
  ...result,
236
237
  render: {
@@ -256,14 +257,14 @@ notifications; there is no general integrations CLI.
256
257
  }
257
258
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
258
259
  if (options.dryRun) {
259
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
260
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
260
261
  { dryRun: true, destination, target },
261
262
  { json: options.json }
262
263
  );
263
264
  return;
264
265
  }
265
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().setNotificationSlack(target);
266
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
266
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().setNotificationSlack(target);
267
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
267
268
  {
268
269
  ok: true,
269
270
  result,
@@ -289,14 +290,14 @@ notifications; there is no general integrations CLI.
289
290
  notifications.command("test").description("Send a validation ping to a destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (destination, options) => {
290
291
  if (destination !== "slack") throw new Error("Only slack is supported.");
291
292
  if (options.dryRun) {
292
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
293
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
293
294
  { dryRun: true, destination, action: "send_test_ping" },
294
295
  { json: options.json }
295
296
  );
296
297
  return;
297
298
  }
298
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().testNotificationSlack();
299
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
299
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().testNotificationSlack();
300
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
300
301
  {
301
302
  ...result,
302
303
  render: {
@@ -309,14 +310,14 @@ notifications; there is no general integrations CLI.
309
310
  notifications.command("disable").description("Disable a product-notification destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the mutation without changing settings").option("--json", "Emit JSON output").action(async (destination, options) => {
310
311
  if (destination !== "slack") throw new Error("Only slack is supported.");
311
312
  if (options.dryRun) {
312
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
313
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
313
314
  { dryRun: true, destination, action: "disable" },
314
315
  { json: options.json }
315
316
  );
316
317
  return;
317
318
  }
318
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().disableNotificationSlack();
319
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
319
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().disableNotificationSlack();
320
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
320
321
  {
321
322
  ok: true,
322
323
  result,
@@ -335,10 +336,10 @@ ${eventHelp}
335
336
  `
336
337
  );
337
338
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
338
- const current = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotificationSettings();
339
+ const current = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotificationSettings();
339
340
  const destination = slackDestination(current);
340
341
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
341
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
342
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
342
343
  {
343
344
  catalog: current.catalog,
344
345
  subscriptions: current.subscriptions,
@@ -355,14 +356,14 @@ ${eventHelp}
355
356
  );
356
357
  });
357
358
  subscriptions.command("describe").description("Describe one event from the shared product catalog.").argument("<event>", "Event ID; run subscriptions list to enumerate").option("--json", "Emit JSON output").action(async (eventType, options) => {
358
- const current = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotificationSettings();
359
+ const current = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotificationSettings();
359
360
  const event = requireCatalogEvent(current, eventType);
360
361
  const destination = slackDestination(current);
361
362
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
362
363
  const subscription = current.subscriptions.find(
363
364
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
364
365
  );
365
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
366
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
366
367
  {
367
368
  event,
368
369
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -383,11 +384,11 @@ ${eventHelp}
383
384
  });
384
385
  for (const enabled of [true, false]) {
385
386
  subscriptions.command(enabled ? "enable" : "disable").description(`${enabled ? "Enable" : "Disable"} one supported event.`).argument("<event>", "Event ID; run subscriptions list to enumerate").option("--dry-run", "Validate intent without changing settings").option("--json", "Emit JSON output").action(async (eventType, options) => {
386
- const client = new (0, _chunkJ5O4AXSOjs.DeeplineClient)();
387
+ const client = new (0, _chunkZ5PQSTYXjs.DeeplineClient)();
387
388
  const current = await client.getNotificationSettings();
388
389
  const event = requireCatalogEvent(current, eventType);
389
390
  if (options.dryRun) {
390
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
391
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
391
392
  { dryRun: true, event, enabled },
392
393
  { json: options.json }
393
394
  );
@@ -397,7 +398,7 @@ ${eventHelp}
397
398
  [event.id],
398
399
  enabled
399
400
  );
400
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
401
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
401
402
  {
402
403
  ok: true,
403
404
  event: event.id,
@@ -418,11 +419,11 @@ ${eventHelp}
418
419
  }
419
420
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
420
421
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
421
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().listNotificationDlq(
422
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().listNotificationDlq(
422
423
  Number(options.limit)
423
424
  );
424
425
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
425
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
426
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
426
427
  {
427
428
  ...result,
428
429
  render: {
@@ -440,10 +441,10 @@ ${eventHelp}
440
441
  );
441
442
  });
442
443
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
443
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotificationDlqDelivery(
444
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotificationDlqDelivery(
444
445
  deliveryId
445
446
  );
446
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, result, {
447
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0, result, {
447
448
  json: options.json
448
449
  });
449
450
  });
@@ -452,17 +453,17 @@ ${eventHelp}
452
453
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
453
454
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
454
455
  if (options.dryRun) {
455
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
456
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
456
457
  { dryRun: true, action, deliveryId },
457
458
  { json: options.json }
458
459
  );
459
460
  return;
460
461
  }
461
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().updateNotificationDlqDelivery(
462
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().updateNotificationDlqDelivery(
462
463
  deliveryId,
463
464
  action
464
465
  );
465
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
466
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
466
467
  { ok: true, action, deliveryId, result },
467
468
  { json: options.json }
468
469
  );
@@ -563,8 +564,8 @@ Examples:
563
564
  `
564
565
  );
565
566
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
566
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotificationConfiguration();
567
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
567
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotificationConfiguration();
568
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
568
569
  {
569
570
  ...result,
570
571
  render: {
@@ -589,21 +590,21 @@ Examples:
589
590
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
590
591
  const input = await readNotificationConfigurationChange(file);
591
592
  if (options.dryRun) {
592
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
593
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
593
594
  { dryRun: true, ...input },
594
595
  { json: options.json }
595
596
  );
596
597
  return;
597
598
  }
598
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().changeNotificationConfiguration(
599
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().changeNotificationConfiguration(
599
600
  input.expectedWorkspaceVersion,
600
601
  input.change
601
602
  );
602
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, result, { json: options.json });
603
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0, result, { json: options.json });
603
604
  });
604
605
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
605
- const settings = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotifications();
606
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
606
+ const settings = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotifications();
607
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
607
608
  {
608
609
  events: settings.catalog,
609
610
  render: {
@@ -621,9 +622,9 @@ Examples:
621
622
  );
622
623
  });
623
624
  notifications.command("list").description("List named notifications and their selected Play events.").option("--json", "Emit JSON output").option("--compact", "Emit only names, state, target, and event IDs").action(async (options) => {
624
- const settings = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotifications();
625
+ const settings = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotifications();
625
626
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
626
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
627
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
627
628
  {
628
629
  notifications: options.compact ? rules.map((rule) => ({
629
630
  id: rule.id,
@@ -651,10 +652,10 @@ Examples:
651
652
  });
652
653
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
653
654
  const rule = notificationByName(
654
- await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().getNotifications(),
655
+ await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().getNotifications(),
655
656
  name
656
657
  );
657
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
658
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
658
659
  });
659
660
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
660
661
  "--to <target>",
@@ -668,14 +669,14 @@ Examples:
668
669
  []
669
670
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
670
671
  async (name, options) => {
671
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().createNotificationGroup({
672
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().createNotificationGroup({
672
673
  name,
673
674
  targets: options.to,
674
675
  legacyEvents: options.for,
675
676
  dryRun: options.dryRun
676
677
  });
677
678
  if (result.mode === "dry_run") {
678
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
679
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
679
680
  result.compatibilityMode ? {
680
681
  dryRun: true,
681
682
  name: result.name,
@@ -692,7 +693,7 @@ Examples:
692
693
  return;
693
694
  }
694
695
  if (result.mode === "legacy") {
695
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
696
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
696
697
  {
697
698
  notification: result.notification,
698
699
  render: {
@@ -714,7 +715,7 @@ Examples:
714
715
  );
715
716
  return;
716
717
  }
717
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
718
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
718
719
  {
719
720
  ...result,
720
721
  render: {
@@ -750,12 +751,12 @@ Examples:
750
751
  []
751
752
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
752
753
  async (name, options) => {
753
- const client = new (0, _chunkJ5O4AXSOjs.DeeplineClient)();
754
+ const client = new (0, _chunkZ5PQSTYXjs.DeeplineClient)();
754
755
  const rule = notificationByName(await client.getNotifications(), name);
755
756
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
756
757
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
757
758
  if (options.dryRun) {
758
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
759
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
759
760
  { dryRun: true, notification: rule.id, target, eventTypes },
760
761
  { json: options.json }
761
762
  );
@@ -766,15 +767,15 @@ Examples:
766
767
  ...target,
767
768
  eventTypes
768
769
  });
769
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
770
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
770
771
  }
771
772
  );
772
773
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
773
774
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
774
- const result = await new (0, _chunkJ5O4AXSOjs.DeeplineClient)().listNotificationChannels(
775
+ const result = await new (0, _chunkZ5PQSTYXjs.DeeplineClient)().listNotificationChannels(
775
776
  options.search
776
777
  );
777
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
778
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
778
779
  {
779
780
  ...result,
780
781
  render: {
@@ -794,31 +795,31 @@ Examples:
794
795
  ["resume", true]
795
796
  ]) {
796
797
  notifications.command(command).argument("<name>", "Notification name or ID").option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(async (name, options) => {
797
- const client = new (0, _chunkJ5O4AXSOjs.DeeplineClient)();
798
+ const client = new (0, _chunkZ5PQSTYXjs.DeeplineClient)();
798
799
  const rule = notificationByName(await client.getNotifications(), name);
799
800
  if (options.dryRun) {
800
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
801
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
801
802
  { dryRun: true, notification: rule.id, enabled },
802
803
  { json: options.json }
803
804
  );
804
805
  return;
805
806
  }
806
807
  const result = await client.updateNotification(rule.id, { enabled });
807
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
808
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
808
809
  });
809
810
  }
810
811
  notifications.command("test").argument("<name>", "Notification name or ID").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (name, options) => {
811
- const client = new (0, _chunkJ5O4AXSOjs.DeeplineClient)();
812
+ const client = new (0, _chunkZ5PQSTYXjs.DeeplineClient)();
812
813
  const rule = notificationByName(await client.getNotifications(), name);
813
814
  if (options.dryRun) {
814
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
815
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
815
816
  { dryRun: true, notification: rule.id, action: "send_test" },
816
817
  { json: options.json }
817
818
  );
818
819
  return;
819
820
  }
820
821
  const result = await client.testNotification(rule.id);
821
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
822
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
822
823
  { ...result, notification: rule.name },
823
824
  { json: options.json }
824
825
  );
@@ -826,17 +827,17 @@ Examples:
826
827
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
827
828
  "Archive one notification without touching its provider integration."
828
829
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
829
- const client = new (0, _chunkJ5O4AXSOjs.DeeplineClient)();
830
+ const client = new (0, _chunkZ5PQSTYXjs.DeeplineClient)();
830
831
  const rule = notificationByName(await client.getNotifications(), name);
831
832
  if (options.dryRun) {
832
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
833
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
833
834
  { dryRun: true, notification: rule.id, action: "archive" },
834
835
  { json: options.json }
835
836
  );
836
837
  return;
837
838
  }
838
839
  const result = await client.deleteNotification(rule.id);
839
- _chunkZKGK2JU3js.printCommandEnvelope.call(void 0,
840
+ _chunkSJH66N73js.printCommandEnvelope.call(void 0,
840
841
  { ...result, notification: rule.name },
841
842
  { json: options.json }
842
843
  );