deepline 0.3.392 → 0.3.393

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 (145) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +156 -24
  2. package/dist/bundling-sources/sdk/src/compat.ts +9 -0
  3. package/dist/bundling-sources/sdk/src/http.ts +5 -1
  4. package/dist/bundling-sources/sdk/src/index.ts +5 -0
  5. package/dist/bundling-sources/sdk/src/plays/run-request.ts +182 -6
  6. package/dist/bundling-sources/sdk/src/release.ts +4 -1
  7. package/dist/bundling-sources/sdk/src/types.ts +13 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/request-warnings.ts +64 -0
  9. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +315 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +41 -8
  11. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +418 -44
  12. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +36 -3
  13. package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +36 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +11 -3
  15. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +1 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +19 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +26 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +158 -10
  19. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +235 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +92 -58
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +7 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +30 -7
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1161 -316
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +28 -15
  25. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +24 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +31 -0
  27. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -4
  28. package/dist/bundling-sources/shared_libs/plays/dataset.ts +172 -79
  29. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +173 -1
  30. package/dist/cli/{auth-6JSA2ZCW.mjs → auth-5PXHA232.mjs} +4 -4
  31. package/dist/cli/auth-P3MVDTXM.js +39 -0
  32. package/dist/cli/{billing-Q5BLQHIU.js → billing-JFB2XLSO.js} +101 -74
  33. package/dist/cli/{billing-MRRO643H.mjs → billing-Z2N7ZAGM.mjs} +32 -5
  34. package/dist/cli/{chunk-CVLM3WMJ.js → chunk-2HAD745V.js} +242 -183
  35. package/dist/cli/{chunk-HGYBEAQP.mjs → chunk-2LGC4EFT.mjs} +3 -3
  36. package/dist/cli/{chunk-A3APGZFP.mjs → chunk-4PT2VA3A.mjs} +2 -2
  37. package/dist/cli/{chunk-6DBOU7UH.js → chunk-4XX6443T.js} +176 -87
  38. package/dist/cli/{chunk-2QLML6G4.mjs → chunk-5KWKZIQR.mjs} +4 -4
  39. package/dist/cli/{chunk-2G7DXFHI.mjs → chunk-5PRVMXKB.mjs} +27 -2
  40. package/dist/cli/{chunk-DSWSEHRX.mjs → chunk-6I73X254.mjs} +1 -1
  41. package/dist/cli/{chunk-ZTACINO5.mjs → chunk-7HR7BGZL.mjs} +13 -3
  42. package/dist/cli/{chunk-BB3FNYFY.js → chunk-AARX5L4B.js} +2 -2
  43. package/dist/cli/{chunk-WMS5U6YB.js → chunk-CDFH2DYL.js} +20 -19
  44. package/dist/cli/{chunk-R3O2CZ4H.mjs → chunk-FQ6VHPW4.mjs} +2 -2
  45. package/dist/cli/{chunk-MU6M3URX.mjs → chunk-HLEESTCH.mjs} +1 -1
  46. package/dist/cli/{chunk-Q6EOHNRH.mjs → chunk-JI2B4RZP.mjs} +119 -6
  47. package/dist/cli/{chunk-2Q3GEFL4.mjs → chunk-KIYU2TGL.mjs} +2 -2
  48. package/dist/cli/{chunk-Y6VOGHF2.mjs → chunk-KZZC33PY.mjs} +0 -181
  49. package/dist/cli/{chunk-UCKJQG25.js → chunk-L2SYLGRP.js} +8 -8
  50. package/dist/cli/{chunk-2GAHHSLB.mjs → chunk-LMMEAMA7.mjs} +3 -2
  51. package/dist/cli/{chunk-YAZCDBXX.mjs → chunk-LZPCDB7U.mjs} +3 -2
  52. package/dist/cli/{chunk-RV6ALZIX.js → chunk-M7Y7JYZX.js} +32 -7
  53. package/dist/cli/{chunk-QGKPTBRR.js → chunk-MS6GUPBB.js} +3 -3
  54. package/dist/cli/{chunk-4SFPVW7A.js → chunk-OXNOAD6Y.js} +26 -26
  55. package/dist/cli/{chunk-JOFPQGXW.js → chunk-PTDECJGP.js} +50 -50
  56. package/dist/cli/{chunk-5O4B6AUN.js → chunk-PWSWAN7Q.js} +25 -2
  57. package/dist/cli/{chunk-YN6YA7ZZ.mjs → chunk-Q26LUSQ2.mjs} +79 -20
  58. package/dist/cli/{chunk-3VN4FTE3.js → chunk-RDXFGPJU.js} +1 -182
  59. package/dist/cli/{chunk-7E66A24V.mjs → chunk-RKMB3N7K.mjs} +25 -2
  60. package/dist/cli/{chunk-JSLPHFP7.js → chunk-RWHWF5ZJ.js} +3 -2
  61. package/dist/cli/{chunk-3FV4GBRK.mjs → chunk-STNYIMIV.mjs} +97 -8
  62. package/dist/cli/chunk-UBKA33KY.mjs +310 -0
  63. package/dist/cli/{chunk-PAIMOGCM.js → chunk-UHNDVD3P.js} +125 -12
  64. package/dist/cli/{chunk-24VEN5PQ.mjs → chunk-UOGZUA24.mjs} +179 -17
  65. package/dist/cli/{chunk-T7OKJ2T6.js → chunk-VIQJIX2P.js} +73 -63
  66. package/dist/cli/{chunk-RIV2GS5E.js → chunk-VIWE6WRK.js} +627 -465
  67. package/dist/cli/{chunk-EY7RFC6A.js → chunk-W4WOMXR3.js} +15 -15
  68. package/dist/cli/chunk-XDVT3GOM.js +310 -0
  69. package/dist/cli/{chunk-2FQG2HU4.js → chunk-Z3OOZM5L.js} +8 -8
  70. package/dist/cli/{csv-E4QGUIGI.mjs → csv-KJWZHKCH.mjs} +3 -3
  71. package/dist/cli/{csv-26U5T24Z.js → csv-P3Z3YE7H.js} +12 -12
  72. package/dist/cli/{db-JTRJIAQW.mjs → db-NCM4CQIS.mjs} +6 -5
  73. package/dist/cli/{db-QHBFLMVL.js → db-NUZGJNQC.js} +31 -30
  74. package/dist/cli/{describe-E3DE3ZK3.mjs → describe-WT6MM2GO.mjs} +17 -16
  75. package/dist/cli/{describe-FDV2V74F.js → describe-YGSEN5WC.js} +24 -23
  76. package/dist/cli/{executions-VZYOGVQY.js → executions-PCOLHN7Q.js} +8 -7
  77. package/dist/cli/{executions-B3GTNPRE.mjs → executions-XS2IPJ4W.mjs} +6 -5
  78. package/dist/cli/{feedback-CR55FJA2.js → feedback-4MSH7TFU.js} +7 -7
  79. package/dist/cli/{feedback-4CEBR3OV.mjs → feedback-CCLTS5SV.mjs} +3 -3
  80. package/dist/cli/{git-NM2PHHZ4.mjs → git-K2DHPMPC.mjs} +4 -4
  81. package/dist/cli/git-RNM45FX4.js +23 -0
  82. package/dist/cli/index.js +96 -92
  83. package/dist/cli/index.mjs +46 -42
  84. package/dist/cli/{legacy-noops-A7MSW5ND.mjs → legacy-noops-B5S4AR3P.mjs} +4 -4
  85. package/dist/cli/{legacy-noops-ZUA4YFIH.js → legacy-noops-GPNOPFXV.js} +7 -7
  86. package/dist/cli/{monitors-NVPRQYP3.mjs → monitors-JLMAIPRG.mjs} +6 -5
  87. package/dist/cli/{monitors-ZE3TLZ4H.js → monitors-ZAWD7NSN.js} +87 -86
  88. package/dist/cli/{org-U7A6DV5D.js → org-P2KN4CES.js} +66 -65
  89. package/dist/cli/{org-KUBILNQV.mjs → org-T3JTHP4G.mjs} +6 -5
  90. package/dist/cli/{play-HRDXQ4QE.mjs → play-NK6BLRGL.mjs} +11 -10
  91. package/dist/cli/play-PDXR6JFB.js +158 -0
  92. package/dist/cli/{providers-OHIWI453.mjs → providers-3NQRA7IT.mjs} +6 -5
  93. package/dist/cli/{providers-VD6YTVQZ.js → providers-5QRZN3DT.js} +9 -8
  94. package/dist/cli/{quickstart-UBV2FONF.mjs → quickstart-PIA2JGPV.mjs} +3 -3
  95. package/dist/cli/{quickstart-ETTCWPA4.js → quickstart-R7NUZGNW.js} +5 -5
  96. package/dist/cli/run-identity-G257GQED.js +25 -0
  97. package/dist/cli/run-identity-MRNCEGV2.mjs +25 -0
  98. package/dist/cli/{search-F44IZRT7.mjs → search-AIDIIGLY.mjs} +7 -6
  99. package/dist/cli/search-QRWL7MFM.js +27 -0
  100. package/dist/cli/{secrets-CAEMRORF.js → secrets-BT3PGMWN.js} +15 -14
  101. package/dist/cli/{secrets-R6XOJZKU.mjs → secrets-OQNHL45O.mjs} +6 -5
  102. package/dist/cli/{sessions-6GC7OFTT.js → sessions-EYXWOSWK.js} +5 -5
  103. package/dist/cli/{sessions-RLN6UQS3.mjs → sessions-SF7WJPJP.mjs} +4 -4
  104. package/dist/cli/{settings-DPNVUAV2.js → settings-BA3GHBOD.js} +76 -75
  105. package/dist/cli/{settings-KIPAMRPP.mjs → settings-Y57JTFDD.mjs} +9 -8
  106. package/dist/cli/{setup-TU2F7PU5.mjs → setup-7GR5GBHA.mjs} +6 -6
  107. package/dist/cli/{setup-DTL3L5SG.js → setup-RERXYC66.js} +41 -41
  108. package/dist/cli/{skills-UV5MYJ46.mjs → skills-SJWIQAV5.mjs} +4 -4
  109. package/dist/cli/skills-V7EY75HB.js +28 -0
  110. package/dist/cli/tools-H5HLBCHH.js +41 -0
  111. package/dist/cli/{tools-QRRNDCQ7.mjs → tools-ZF3JXPNL.mjs} +10 -9
  112. package/dist/cli/update-472HA3LT.js +28 -0
  113. package/dist/cli/{update-4426TF35.mjs → update-FFFYQAOJ.mjs} +6 -6
  114. package/dist/cli/{workflow-HNLOVISB.js → workflow-SZJVQH4T.js} +17 -16
  115. package/dist/cli/{workflow-N4U5VLZ3.mjs → workflow-XVFEEGAS.mjs} +7 -6
  116. package/dist/{client-e6Qh5ZIg.d.mts → client-DU5dtHDy.d.mts} +153 -4
  117. package/dist/{client-Uxuy-xQ2.d.ts → client-mCE88hC4.d.ts} +153 -4
  118. package/dist/{compiler-manifest-CY2v8ab0.d.ts → compiler-manifest-DE4RdAiY.d.mts} +61 -1
  119. package/dist/{compiler-manifest-CY2v8ab0.d.mts → compiler-manifest-DE4RdAiY.d.ts} +61 -1
  120. package/dist/{index-B9fBZH1g.d.mts → index-BI6nWgaV.d.mts} +1 -1
  121. package/dist/{index-BZ6uzZJl.d.ts → index-Bi-f7HFT.d.ts} +1 -1
  122. package/dist/index.d.mts +5 -5
  123. package/dist/index.d.ts +5 -5
  124. package/dist/index.js +120 -29
  125. package/dist/index.mjs +111 -20
  126. package/dist/install-integrity.json +91 -86
  127. package/dist/plays/bundle-play-file.d.mts +3 -3
  128. package/dist/plays/bundle-play-file.d.ts +3 -3
  129. package/dist/plays/bundle-play-file.mjs +2 -2
  130. package/dist/plays/run-request.d.mts +2 -2
  131. package/dist/plays/run-request.d.ts +2 -2
  132. package/dist/plays/run-request.js +5 -2
  133. package/dist/plays/run-request.mjs +4 -1
  134. package/dist/release.d.mts +4 -1
  135. package/dist/release.d.ts +4 -1
  136. package/dist/release.js +2 -2
  137. package/dist/release.mjs +1 -1
  138. package/package.json +1 -1
  139. package/dist/cli/auth-67TAELQL.js +0 -39
  140. package/dist/cli/git-I5JTK6YU.js +0 -23
  141. package/dist/cli/play-A2V7YDU7.js +0 -157
  142. package/dist/cli/search-WWXMBVPH.js +0 -26
  143. package/dist/cli/skills-SWOSEZLB.js +0 -28
  144. package/dist/cli/tools-IL2YCDQ6.js +0 -40
  145. package/dist/cli/update-BERDPEYR.js +0 -28
@@ -2,31 +2,32 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkCVLM3WMJjs = require('./chunk-CVLM3WMJ.js');
5
+ var _chunk2HAD745Vjs = require('./chunk-2HAD745V.js');
6
6
  require('./chunk-S6R3OX7B.js');
7
- require('./chunk-PAIMOGCM.js');
7
+ require('./chunk-UHNDVD3P.js');
8
+ require('./chunk-XDVT3GOM.js');
8
9
 
9
10
 
10
11
 
11
12
 
12
- var _chunkEY7RFC6Ajs = require('./chunk-EY7RFC6A.js');
13
- require('./chunk-BB3FNYFY.js');
14
- require('./chunk-T7OKJ2T6.js');
13
+ var _chunkW4WOMXR3js = require('./chunk-W4WOMXR3.js');
14
+ require('./chunk-AARX5L4B.js');
15
+ require('./chunk-VIQJIX2P.js');
15
16
  require('./chunk-WJYPBHTE.js');
16
17
 
17
18
 
18
19
 
19
- var _chunkRV6ALZIXjs = require('./chunk-RV6ALZIX.js');
20
- require('./chunk-WMS5U6YB.js');
20
+ var _chunkM7Y7JYZXjs = require('./chunk-M7Y7JYZX.js');
21
+ require('./chunk-CDFH2DYL.js');
21
22
  require('./chunk-XNYIZMNQ.js');
22
23
  require('./chunk-7P5AA3SN.js');
23
- require('./chunk-JSLPHFP7.js');
24
+ require('./chunk-RWHWF5ZJ.js');
24
25
  require('./chunk-OG64RBAC.js');
25
26
  require('./chunk-COGTRVWW.js');
26
27
 
27
28
  // src/cli/commands/settings.ts
28
29
  var _fs = require('fs');
29
- var eventHelp = _chunkCVLM3WMJjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
30
+ var eventHelp = _chunk2HAD745Vjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
30
31
  (event) => ` ${event.id.padEnd(28)} ${event.description}`
31
32
  ).join("\n");
32
33
  function slackDestination(settings) {
@@ -38,7 +39,7 @@ function slackDestination(settings) {
38
39
  archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
39
40
  })
40
41
  );
41
- return _chunkCVLM3WMJjs.resolveLegacySlackNotification.call(void 0, destinations);
42
+ return _chunk2HAD745Vjs.resolveLegacySlackNotification.call(void 0, destinations);
42
43
  }
43
44
  function eventLines(settings, destinationId) {
44
45
  const enabled = new Map(
@@ -60,10 +61,10 @@ function requireCatalogEvent(settings, eventType) {
60
61
  return event;
61
62
  }
62
63
  async function printSettings(options) {
63
- const settings = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotificationSettings();
64
+ const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
64
65
  const slack = slackDestination(settings);
65
66
  const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
66
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
67
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
67
68
  {
68
69
  settings,
69
70
  render: {
@@ -118,8 +119,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
118
119
  version pin. Pinning installs and holds one exact pin-aware CLI version.
119
120
  `
120
121
  ).option("--json", "Emit JSON output").action((options) => {
121
- const preferences = _chunkEY7RFC6Ajs.readCliUpdatePreferences.call(void 0, );
122
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
122
+ const preferences = _chunkW4WOMXR3js.readCliUpdatePreferences.call(void 0, );
123
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
123
124
  {
124
125
  autoUpdateEnabled: preferences.autoUpdateEnabled,
125
126
  pinnedVersion: preferences.pinnedVersion,
@@ -142,8 +143,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
142
143
  autoupdate.command(enabled ? "on" : "off").description(
143
144
  enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
144
145
  ).option("--json", "Emit JSON output").action((options) => {
145
- const preferences = _chunkEY7RFC6Ajs.setCliAutoUpdateEnabled.call(void 0, enabled);
146
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
146
+ const preferences = _chunkW4WOMXR3js.setCliAutoUpdateEnabled.call(void 0, enabled);
147
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
147
148
  {
148
149
  ok: true,
149
150
  autoUpdateEnabled: preferences.autoUpdateEnabled,
@@ -164,7 +165,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
164
165
  });
165
166
  }
166
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) => {
167
- process.exitCode = await _chunkEY7RFC6Ajs.runUpdateCommand.call(void 0, {
168
+ process.exitCode = await _chunkW4WOMXR3js.runUpdateCommand.call(void 0, {
168
169
  pin: version,
169
170
  json: options.json,
170
171
  executeWithJson: true
@@ -192,15 +193,15 @@ notifications; there is no general integrations CLI.
192
193
  if (destination !== "slack")
193
194
  throw new Error("Only slack is supported.");
194
195
  if (options.dryRun) {
195
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
196
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
196
197
  { dryRun: true, destination, action: "start_oauth" },
197
198
  { json: options.json }
198
199
  );
199
200
  return;
200
201
  }
201
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().connectNotificationSlack();
202
- const browser = options.open ? _chunkRV6ALZIXjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
203
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
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,
204
205
  {
205
206
  ...result,
206
207
  browser,
@@ -224,10 +225,10 @@ notifications; there is no general integrations CLI.
224
225
  }
225
226
  );
226
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) => {
227
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().listNotificationSlackChannels(
228
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationSlackChannels(
228
229
  options.query
229
230
  );
230
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
231
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
231
232
  {
232
233
  ...result,
233
234
  render: {
@@ -253,14 +254,14 @@ notifications; there is no general integrations CLI.
253
254
  }
254
255
  const target = options.memberId ? { memberId: options.memberId } : options.channel;
255
256
  if (options.dryRun) {
256
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
257
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
257
258
  { dryRun: true, destination, target },
258
259
  { json: options.json }
259
260
  );
260
261
  return;
261
262
  }
262
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().setNotificationSlack(target);
263
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
263
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().setNotificationSlack(target);
264
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
264
265
  {
265
266
  ok: true,
266
267
  result,
@@ -286,14 +287,14 @@ notifications; there is no general integrations CLI.
286
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) => {
287
288
  if (destination !== "slack") throw new Error("Only slack is supported.");
288
289
  if (options.dryRun) {
289
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
290
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
290
291
  { dryRun: true, destination, action: "send_test_ping" },
291
292
  { json: options.json }
292
293
  );
293
294
  return;
294
295
  }
295
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().testNotificationSlack();
296
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
296
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().testNotificationSlack();
297
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
297
298
  {
298
299
  ...result,
299
300
  render: {
@@ -306,14 +307,14 @@ notifications; there is no general integrations CLI.
306
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) => {
307
308
  if (destination !== "slack") throw new Error("Only slack is supported.");
308
309
  if (options.dryRun) {
309
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
310
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
310
311
  { dryRun: true, destination, action: "disable" },
311
312
  { json: options.json }
312
313
  );
313
314
  return;
314
315
  }
315
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().disableNotificationSlack();
316
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
316
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().disableNotificationSlack();
317
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
317
318
  {
318
319
  ok: true,
319
320
  result,
@@ -332,10 +333,10 @@ ${eventHelp}
332
333
  `
333
334
  );
334
335
  subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
335
- const current = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotificationSettings();
336
+ const current = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
336
337
  const destination = slackDestination(current);
337
338
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
338
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
339
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
339
340
  {
340
341
  catalog: current.catalog,
341
342
  subscriptions: current.subscriptions,
@@ -352,14 +353,14 @@ ${eventHelp}
352
353
  );
353
354
  });
354
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) => {
355
- const current = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotificationSettings();
356
+ const current = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationSettings();
356
357
  const event = requireCatalogEvent(current, eventType);
357
358
  const destination = slackDestination(current);
358
359
  const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
359
360
  const subscription = current.subscriptions.find(
360
361
  (entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
361
362
  );
362
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
363
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
363
364
  {
364
365
  event,
365
366
  enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
@@ -380,11 +381,11 @@ ${eventHelp}
380
381
  });
381
382
  for (const enabled of [true, false]) {
382
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) => {
383
- const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
384
+ const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
384
385
  const current = await client.getNotificationSettings();
385
386
  const event = requireCatalogEvent(current, eventType);
386
387
  if (options.dryRun) {
387
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
388
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
388
389
  { dryRun: true, event, enabled },
389
390
  { json: options.json }
390
391
  );
@@ -394,7 +395,7 @@ ${eventHelp}
394
395
  [event.id],
395
396
  enabled
396
397
  );
397
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
398
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
398
399
  {
399
400
  ok: true,
400
401
  event: event.id,
@@ -415,11 +416,11 @@ ${eventHelp}
415
416
  }
416
417
  const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
417
418
  dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
418
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().listNotificationDlq(
419
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationDlq(
419
420
  Number(options.limit)
420
421
  );
421
422
  const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
422
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
423
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
423
424
  {
424
425
  ...result,
425
426
  render: {
@@ -437,10 +438,10 @@ ${eventHelp}
437
438
  );
438
439
  });
439
440
  dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
440
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotificationDlqDelivery(
441
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationDlqDelivery(
441
442
  deliveryId
442
443
  );
443
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, result, {
444
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, result, {
444
445
  json: options.json
445
446
  });
446
447
  });
@@ -449,17 +450,17 @@ ${eventHelp}
449
450
  `${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
450
451
  ).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
451
452
  if (options.dryRun) {
452
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
453
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
453
454
  { dryRun: true, action, deliveryId },
454
455
  { json: options.json }
455
456
  );
456
457
  return;
457
458
  }
458
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().updateNotificationDlqDelivery(
459
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().updateNotificationDlqDelivery(
459
460
  deliveryId,
460
461
  action
461
462
  );
462
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
463
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
463
464
  { ok: true, action, deliveryId, result },
464
465
  { json: options.json }
465
466
  );
@@ -560,8 +561,8 @@ Examples:
560
561
  `
561
562
  );
562
563
  configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
563
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotificationConfiguration();
564
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
564
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationConfiguration();
565
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
565
566
  {
566
567
  ...result,
567
568
  render: {
@@ -586,21 +587,21 @@ Examples:
586
587
  ).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
587
588
  const input = await readNotificationConfigurationChange(file);
588
589
  if (options.dryRun) {
589
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
590
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
590
591
  { dryRun: true, ...input },
591
592
  { json: options.json }
592
593
  );
593
594
  return;
594
595
  }
595
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().changeNotificationConfiguration(
596
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().changeNotificationConfiguration(
596
597
  input.expectedWorkspaceVersion,
597
598
  input.change
598
599
  );
599
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, result, { json: options.json });
600
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, result, { json: options.json });
600
601
  });
601
602
  notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
602
- const settings = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotifications();
603
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
603
+ const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications();
604
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
604
605
  {
605
606
  events: settings.catalog,
606
607
  render: {
@@ -618,9 +619,9 @@ Examples:
618
619
  );
619
620
  });
620
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) => {
621
- const settings = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotifications();
622
+ const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications();
622
623
  const rules = _nullishCoalesce(settings.notifications, () => ( []));
623
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
624
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
624
625
  {
625
626
  notifications: options.compact ? rules.map((rule) => ({
626
627
  id: rule.id,
@@ -648,10 +649,10 @@ Examples:
648
649
  });
649
650
  notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
650
651
  const rule = notificationByName(
651
- await new (0, _chunkCVLM3WMJjs.DeeplineClient)().getNotifications(),
652
+ await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications(),
652
653
  name
653
654
  );
654
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
655
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
655
656
  });
656
657
  notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
657
658
  "--to <target>",
@@ -665,14 +666,14 @@ Examples:
665
666
  []
666
667
  ).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
667
668
  async (name, options) => {
668
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().createNotificationGroup({
669
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().createNotificationGroup({
669
670
  name,
670
671
  targets: options.to,
671
672
  legacyEvents: options.for,
672
673
  dryRun: options.dryRun
673
674
  });
674
675
  if (result.mode === "dry_run") {
675
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
676
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
676
677
  result.compatibilityMode ? {
677
678
  dryRun: true,
678
679
  name: result.name,
@@ -689,7 +690,7 @@ Examples:
689
690
  return;
690
691
  }
691
692
  if (result.mode === "legacy") {
692
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
693
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
693
694
  {
694
695
  notification: result.notification,
695
696
  render: {
@@ -711,7 +712,7 @@ Examples:
711
712
  );
712
713
  return;
713
714
  }
714
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
715
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
715
716
  {
716
717
  ...result,
717
718
  render: {
@@ -747,12 +748,12 @@ Examples:
747
748
  []
748
749
  ).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
749
750
  async (name, options) => {
750
- const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
751
+ const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
751
752
  const rule = notificationByName(await client.getNotifications(), name);
752
753
  const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
753
754
  const eventTypes = options.for.length ? options.for : rule.eventTypes;
754
755
  if (options.dryRun) {
755
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
756
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
756
757
  { dryRun: true, notification: rule.id, target, eventTypes },
757
758
  { json: options.json }
758
759
  );
@@ -763,15 +764,15 @@ Examples:
763
764
  ...target,
764
765
  eventTypes
765
766
  });
766
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
767
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
767
768
  }
768
769
  );
769
770
  const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
770
771
  slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
771
- const result = await new (0, _chunkCVLM3WMJjs.DeeplineClient)().listNotificationChannels(
772
+ const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationChannels(
772
773
  options.search
773
774
  );
774
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
775
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
775
776
  {
776
777
  ...result,
777
778
  render: {
@@ -791,31 +792,31 @@ Examples:
791
792
  ["resume", true]
792
793
  ]) {
793
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) => {
794
- const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
795
+ const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
795
796
  const rule = notificationByName(await client.getNotifications(), name);
796
797
  if (options.dryRun) {
797
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
798
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
798
799
  { dryRun: true, notification: rule.id, enabled },
799
800
  { json: options.json }
800
801
  );
801
802
  return;
802
803
  }
803
804
  const result = await client.updateNotification(rule.id, { enabled });
804
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
805
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
805
806
  });
806
807
  }
807
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) => {
808
- const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
809
+ const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
809
810
  const rule = notificationByName(await client.getNotifications(), name);
810
811
  if (options.dryRun) {
811
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
812
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
812
813
  { dryRun: true, notification: rule.id, action: "send_test" },
813
814
  { json: options.json }
814
815
  );
815
816
  return;
816
817
  }
817
818
  const result = await client.testNotification(rule.id);
818
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
819
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
819
820
  { ...result, notification: rule.name },
820
821
  { json: options.json }
821
822
  );
@@ -823,17 +824,17 @@ Examples:
823
824
  notifications.command("delete").argument("<name>", "Notification name or ID").description(
824
825
  "Archive one notification without touching its provider integration."
825
826
  ).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
826
- const client = new (0, _chunkCVLM3WMJjs.DeeplineClient)();
827
+ const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
827
828
  const rule = notificationByName(await client.getNotifications(), name);
828
829
  if (options.dryRun) {
829
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
830
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
830
831
  { dryRun: true, notification: rule.id, action: "archive" },
831
832
  { json: options.json }
832
833
  );
833
834
  return;
834
835
  }
835
836
  const result = await client.deleteNotification(rule.id);
836
- _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
837
+ _chunkM7Y7JYZXjs.printCommandEnvelope.call(void 0,
837
838
  { ...result, notification: rule.name },
838
839
  { json: options.json }
839
840
  );
@@ -2,25 +2,26 @@ import {
2
2
  DeeplineClient,
3
3
  PRODUCT_NOTIFICATION_EVENT_CATALOG,
4
4
  resolveLegacySlackNotification
5
- } from "./chunk-YN6YA7ZZ.mjs";
5
+ } from "./chunk-Q26LUSQ2.mjs";
6
6
  import "./chunk-6IKARAYD.mjs";
7
- import "./chunk-Q6EOHNRH.mjs";
7
+ import "./chunk-JI2B4RZP.mjs";
8
+ import "./chunk-UBKA33KY.mjs";
8
9
  import {
9
10
  readCliUpdatePreferences,
10
11
  runUpdateCommand,
11
12
  setCliAutoUpdateEnabled
12
- } from "./chunk-2QLML6G4.mjs";
13
- import "./chunk-MU6M3URX.mjs";
14
- import "./chunk-ZTACINO5.mjs";
13
+ } from "./chunk-5KWKZIQR.mjs";
14
+ import "./chunk-HLEESTCH.mjs";
15
+ import "./chunk-7HR7BGZL.mjs";
15
16
  import "./chunk-GAMFK2ZP.mjs";
16
17
  import {
17
18
  openInBrowser,
18
19
  printCommandEnvelope
19
- } from "./chunk-2G7DXFHI.mjs";
20
- import "./chunk-2GAHHSLB.mjs";
20
+ } from "./chunk-5PRVMXKB.mjs";
21
+ import "./chunk-LMMEAMA7.mjs";
21
22
  import "./chunk-DLIRSHV6.mjs";
22
23
  import "./chunk-NXGCO4JB.mjs";
23
- import "./chunk-YAZCDBXX.mjs";
24
+ import "./chunk-LZPCDB7U.mjs";
24
25
  import "./chunk-WZYKRD7T.mjs";
25
26
  import "./chunk-KRD6H754.mjs";
26
27
 
@@ -6,21 +6,21 @@ import {
6
6
  handleWait,
7
7
  readPendingAuthClaim,
8
8
  reportSetupCompleted
9
- } from "./chunk-R3O2CZ4H.mjs";
9
+ } from "./chunk-FQ6VHPW4.mjs";
10
10
  import {
11
11
  npmSupportsAllowScripts,
12
12
  readNpmVersion
13
- } from "./chunk-MU6M3URX.mjs";
13
+ } from "./chunk-HLEESTCH.mjs";
14
14
  import {
15
15
  resolveShellSpawn,
16
16
  runSkillsCommand,
17
17
  skillsStatePathForScope
18
- } from "./chunk-ZTACINO5.mjs";
18
+ } from "./chunk-7HR7BGZL.mjs";
19
19
  import "./chunk-GAMFK2ZP.mjs";
20
20
  import {
21
21
  openInBrowser,
22
22
  printCommandEnvelope
23
- } from "./chunk-2G7DXFHI.mjs";
23
+ } from "./chunk-5PRVMXKB.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  autoDetectBaseUrl,
@@ -30,10 +30,10 @@ import {
30
30
  resolveProjectApiKeyForBaseUrl,
31
31
  resolveProjectPinTarget,
32
32
  sdkCliStateDirPath
33
- } from "./chunk-2GAHHSLB.mjs";
33
+ } from "./chunk-LMMEAMA7.mjs";
34
34
  import "./chunk-DLIRSHV6.mjs";
35
35
  import "./chunk-NXGCO4JB.mjs";
36
- import "./chunk-YAZCDBXX.mjs";
36
+ import "./chunk-LZPCDB7U.mjs";
37
37
  import "./chunk-WZYKRD7T.mjs";
38
38
  import {
39
39
  DEEPLINE_GTM_SKILL,