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.
- package/dist/bundling-sources/sdk/src/client.ts +156 -24
- package/dist/bundling-sources/sdk/src/compat.ts +9 -0
- package/dist/bundling-sources/sdk/src/http.ts +5 -1
- package/dist/bundling-sources/sdk/src/index.ts +5 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +182 -6
- package/dist/bundling-sources/sdk/src/release.ts +4 -1
- package/dist/bundling-sources/sdk/src/types.ts +13 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/request-warnings.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +315 -0
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +41 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +418 -44
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +11 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +19 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +158 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +235 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +92 -58
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +30 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1161 -316
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +28 -15
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +24 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +31 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -4
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +172 -79
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +173 -1
- package/dist/cli/{auth-6JSA2ZCW.mjs → auth-5PXHA232.mjs} +4 -4
- package/dist/cli/auth-P3MVDTXM.js +39 -0
- package/dist/cli/{billing-Q5BLQHIU.js → billing-JFB2XLSO.js} +101 -74
- package/dist/cli/{billing-MRRO643H.mjs → billing-Z2N7ZAGM.mjs} +32 -5
- package/dist/cli/{chunk-CVLM3WMJ.js → chunk-2HAD745V.js} +242 -183
- package/dist/cli/{chunk-HGYBEAQP.mjs → chunk-2LGC4EFT.mjs} +3 -3
- package/dist/cli/{chunk-A3APGZFP.mjs → chunk-4PT2VA3A.mjs} +2 -2
- package/dist/cli/{chunk-6DBOU7UH.js → chunk-4XX6443T.js} +176 -87
- package/dist/cli/{chunk-2QLML6G4.mjs → chunk-5KWKZIQR.mjs} +4 -4
- package/dist/cli/{chunk-2G7DXFHI.mjs → chunk-5PRVMXKB.mjs} +27 -2
- package/dist/cli/{chunk-DSWSEHRX.mjs → chunk-6I73X254.mjs} +1 -1
- package/dist/cli/{chunk-ZTACINO5.mjs → chunk-7HR7BGZL.mjs} +13 -3
- package/dist/cli/{chunk-BB3FNYFY.js → chunk-AARX5L4B.js} +2 -2
- package/dist/cli/{chunk-WMS5U6YB.js → chunk-CDFH2DYL.js} +20 -19
- package/dist/cli/{chunk-R3O2CZ4H.mjs → chunk-FQ6VHPW4.mjs} +2 -2
- package/dist/cli/{chunk-MU6M3URX.mjs → chunk-HLEESTCH.mjs} +1 -1
- package/dist/cli/{chunk-Q6EOHNRH.mjs → chunk-JI2B4RZP.mjs} +119 -6
- package/dist/cli/{chunk-2Q3GEFL4.mjs → chunk-KIYU2TGL.mjs} +2 -2
- package/dist/cli/{chunk-Y6VOGHF2.mjs → chunk-KZZC33PY.mjs} +0 -181
- package/dist/cli/{chunk-UCKJQG25.js → chunk-L2SYLGRP.js} +8 -8
- package/dist/cli/{chunk-2GAHHSLB.mjs → chunk-LMMEAMA7.mjs} +3 -2
- package/dist/cli/{chunk-YAZCDBXX.mjs → chunk-LZPCDB7U.mjs} +3 -2
- package/dist/cli/{chunk-RV6ALZIX.js → chunk-M7Y7JYZX.js} +32 -7
- package/dist/cli/{chunk-QGKPTBRR.js → chunk-MS6GUPBB.js} +3 -3
- package/dist/cli/{chunk-4SFPVW7A.js → chunk-OXNOAD6Y.js} +26 -26
- package/dist/cli/{chunk-JOFPQGXW.js → chunk-PTDECJGP.js} +50 -50
- package/dist/cli/{chunk-5O4B6AUN.js → chunk-PWSWAN7Q.js} +25 -2
- package/dist/cli/{chunk-YN6YA7ZZ.mjs → chunk-Q26LUSQ2.mjs} +79 -20
- package/dist/cli/{chunk-3VN4FTE3.js → chunk-RDXFGPJU.js} +1 -182
- package/dist/cli/{chunk-7E66A24V.mjs → chunk-RKMB3N7K.mjs} +25 -2
- package/dist/cli/{chunk-JSLPHFP7.js → chunk-RWHWF5ZJ.js} +3 -2
- package/dist/cli/{chunk-3FV4GBRK.mjs → chunk-STNYIMIV.mjs} +97 -8
- package/dist/cli/chunk-UBKA33KY.mjs +310 -0
- package/dist/cli/{chunk-PAIMOGCM.js → chunk-UHNDVD3P.js} +125 -12
- package/dist/cli/{chunk-24VEN5PQ.mjs → chunk-UOGZUA24.mjs} +179 -17
- package/dist/cli/{chunk-T7OKJ2T6.js → chunk-VIQJIX2P.js} +73 -63
- package/dist/cli/{chunk-RIV2GS5E.js → chunk-VIWE6WRK.js} +627 -465
- package/dist/cli/{chunk-EY7RFC6A.js → chunk-W4WOMXR3.js} +15 -15
- package/dist/cli/chunk-XDVT3GOM.js +310 -0
- package/dist/cli/{chunk-2FQG2HU4.js → chunk-Z3OOZM5L.js} +8 -8
- package/dist/cli/{csv-E4QGUIGI.mjs → csv-KJWZHKCH.mjs} +3 -3
- package/dist/cli/{csv-26U5T24Z.js → csv-P3Z3YE7H.js} +12 -12
- package/dist/cli/{db-JTRJIAQW.mjs → db-NCM4CQIS.mjs} +6 -5
- package/dist/cli/{db-QHBFLMVL.js → db-NUZGJNQC.js} +31 -30
- package/dist/cli/{describe-E3DE3ZK3.mjs → describe-WT6MM2GO.mjs} +17 -16
- package/dist/cli/{describe-FDV2V74F.js → describe-YGSEN5WC.js} +24 -23
- package/dist/cli/{executions-VZYOGVQY.js → executions-PCOLHN7Q.js} +8 -7
- package/dist/cli/{executions-B3GTNPRE.mjs → executions-XS2IPJ4W.mjs} +6 -5
- package/dist/cli/{feedback-CR55FJA2.js → feedback-4MSH7TFU.js} +7 -7
- package/dist/cli/{feedback-4CEBR3OV.mjs → feedback-CCLTS5SV.mjs} +3 -3
- package/dist/cli/{git-NM2PHHZ4.mjs → git-K2DHPMPC.mjs} +4 -4
- package/dist/cli/git-RNM45FX4.js +23 -0
- package/dist/cli/index.js +96 -92
- package/dist/cli/index.mjs +46 -42
- package/dist/cli/{legacy-noops-A7MSW5ND.mjs → legacy-noops-B5S4AR3P.mjs} +4 -4
- package/dist/cli/{legacy-noops-ZUA4YFIH.js → legacy-noops-GPNOPFXV.js} +7 -7
- package/dist/cli/{monitors-NVPRQYP3.mjs → monitors-JLMAIPRG.mjs} +6 -5
- package/dist/cli/{monitors-ZE3TLZ4H.js → monitors-ZAWD7NSN.js} +87 -86
- package/dist/cli/{org-U7A6DV5D.js → org-P2KN4CES.js} +66 -65
- package/dist/cli/{org-KUBILNQV.mjs → org-T3JTHP4G.mjs} +6 -5
- package/dist/cli/{play-HRDXQ4QE.mjs → play-NK6BLRGL.mjs} +11 -10
- package/dist/cli/play-PDXR6JFB.js +158 -0
- package/dist/cli/{providers-OHIWI453.mjs → providers-3NQRA7IT.mjs} +6 -5
- package/dist/cli/{providers-VD6YTVQZ.js → providers-5QRZN3DT.js} +9 -8
- package/dist/cli/{quickstart-UBV2FONF.mjs → quickstart-PIA2JGPV.mjs} +3 -3
- package/dist/cli/{quickstart-ETTCWPA4.js → quickstart-R7NUZGNW.js} +5 -5
- package/dist/cli/run-identity-G257GQED.js +25 -0
- package/dist/cli/run-identity-MRNCEGV2.mjs +25 -0
- package/dist/cli/{search-F44IZRT7.mjs → search-AIDIIGLY.mjs} +7 -6
- package/dist/cli/search-QRWL7MFM.js +27 -0
- package/dist/cli/{secrets-CAEMRORF.js → secrets-BT3PGMWN.js} +15 -14
- package/dist/cli/{secrets-R6XOJZKU.mjs → secrets-OQNHL45O.mjs} +6 -5
- package/dist/cli/{sessions-6GC7OFTT.js → sessions-EYXWOSWK.js} +5 -5
- package/dist/cli/{sessions-RLN6UQS3.mjs → sessions-SF7WJPJP.mjs} +4 -4
- package/dist/cli/{settings-DPNVUAV2.js → settings-BA3GHBOD.js} +76 -75
- package/dist/cli/{settings-KIPAMRPP.mjs → settings-Y57JTFDD.mjs} +9 -8
- package/dist/cli/{setup-TU2F7PU5.mjs → setup-7GR5GBHA.mjs} +6 -6
- package/dist/cli/{setup-DTL3L5SG.js → setup-RERXYC66.js} +41 -41
- package/dist/cli/{skills-UV5MYJ46.mjs → skills-SJWIQAV5.mjs} +4 -4
- package/dist/cli/skills-V7EY75HB.js +28 -0
- package/dist/cli/tools-H5HLBCHH.js +41 -0
- package/dist/cli/{tools-QRRNDCQ7.mjs → tools-ZF3JXPNL.mjs} +10 -9
- package/dist/cli/update-472HA3LT.js +28 -0
- package/dist/cli/{update-4426TF35.mjs → update-FFFYQAOJ.mjs} +6 -6
- package/dist/cli/{workflow-HNLOVISB.js → workflow-SZJVQH4T.js} +17 -16
- package/dist/cli/{workflow-N4U5VLZ3.mjs → workflow-XVFEEGAS.mjs} +7 -6
- package/dist/{client-e6Qh5ZIg.d.mts → client-DU5dtHDy.d.mts} +153 -4
- package/dist/{client-Uxuy-xQ2.d.ts → client-mCE88hC4.d.ts} +153 -4
- package/dist/{compiler-manifest-CY2v8ab0.d.ts → compiler-manifest-DE4RdAiY.d.mts} +61 -1
- package/dist/{compiler-manifest-CY2v8ab0.d.mts → compiler-manifest-DE4RdAiY.d.ts} +61 -1
- package/dist/{index-B9fBZH1g.d.mts → index-BI6nWgaV.d.mts} +1 -1
- package/dist/{index-BZ6uzZJl.d.ts → index-Bi-f7HFT.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +120 -29
- package/dist/index.mjs +111 -20
- package/dist/install-integrity.json +91 -86
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +5 -2
- package/dist/plays/run-request.mjs +4 -1
- package/dist/release.d.mts +4 -1
- package/dist/release.d.ts +4 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-67TAELQL.js +0 -39
- package/dist/cli/git-I5JTK6YU.js +0 -23
- package/dist/cli/play-A2V7YDU7.js +0 -157
- package/dist/cli/search-WWXMBVPH.js +0 -26
- package/dist/cli/skills-SWOSEZLB.js +0 -28
- package/dist/cli/tools-IL2YCDQ6.js +0 -40
- package/dist/cli/update-BERDPEYR.js +0 -28
|
@@ -2,31 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2HAD745Vjs = require('./chunk-2HAD745V.js');
|
|
6
6
|
require('./chunk-S6R3OX7B.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-UHNDVD3P.js');
|
|
8
|
+
require('./chunk-XDVT3GOM.js');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
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
|
|
20
|
-
require('./chunk-
|
|
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-
|
|
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 =
|
|
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
|
|
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,
|
|
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
|
-
|
|
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 =
|
|
122
|
-
|
|
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 =
|
|
146
|
-
|
|
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
|
|
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
|
-
|
|
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,
|
|
202
|
-
const browser = options.open ?
|
|
203
|
-
|
|
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,
|
|
228
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationSlackChannels(
|
|
228
229
|
options.query
|
|
229
230
|
);
|
|
230
|
-
|
|
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
|
-
|
|
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,
|
|
263
|
-
|
|
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
|
-
|
|
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,
|
|
296
|
-
|
|
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
|
-
|
|
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,
|
|
316
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
419
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationDlq(
|
|
419
420
|
Number(options.limit)
|
|
420
421
|
);
|
|
421
422
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
422
|
-
|
|
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,
|
|
441
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
441
442
|
deliveryId
|
|
442
443
|
);
|
|
443
|
-
|
|
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
|
-
|
|
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,
|
|
459
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
459
460
|
deliveryId,
|
|
460
461
|
action
|
|
461
462
|
);
|
|
462
|
-
|
|
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,
|
|
564
|
-
|
|
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
|
-
|
|
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,
|
|
596
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().changeNotificationConfiguration(
|
|
596
597
|
input.expectedWorkspaceVersion,
|
|
597
598
|
input.change
|
|
598
599
|
);
|
|
599
|
-
|
|
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,
|
|
603
|
-
|
|
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,
|
|
622
|
+
const settings = await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications();
|
|
622
623
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
623
|
-
|
|
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,
|
|
652
|
+
await new (0, _chunk2HAD745Vjs.DeeplineClient)().getNotifications(),
|
|
652
653
|
name
|
|
653
654
|
);
|
|
654
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
772
|
+
const result = await new (0, _chunk2HAD745Vjs.DeeplineClient)().listNotificationChannels(
|
|
772
773
|
options.search
|
|
773
774
|
);
|
|
774
|
-
|
|
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,
|
|
795
|
+
const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
|
|
795
796
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
796
797
|
if (options.dryRun) {
|
|
797
|
-
|
|
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
|
-
|
|
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,
|
|
809
|
+
const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
|
|
809
810
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
810
811
|
if (options.dryRun) {
|
|
811
|
-
|
|
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
|
-
|
|
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,
|
|
827
|
+
const client = new (0, _chunk2HAD745Vjs.DeeplineClient)();
|
|
827
828
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
828
829
|
if (options.dryRun) {
|
|
829
|
-
|
|
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
|
-
|
|
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-
|
|
5
|
+
} from "./chunk-Q26LUSQ2.mjs";
|
|
6
6
|
import "./chunk-6IKARAYD.mjs";
|
|
7
|
-
import "./chunk-
|
|
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-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
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-
|
|
20
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
9
|
+
} from "./chunk-FQ6VHPW4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HLEESTCH.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveShellSpawn,
|
|
16
16
|
runSkillsCommand,
|
|
17
17
|
skillsStatePathForScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7HR7BGZL.mjs";
|
|
19
19
|
import "./chunk-GAMFK2ZP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
openInBrowser,
|
|
22
22
|
printCommandEnvelope
|
|
23
|
-
} from "./chunk-
|
|
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-
|
|
33
|
+
} from "./chunk-LMMEAMA7.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
35
|
import "./chunk-NXGCO4JB.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-LZPCDB7U.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import {
|
|
39
39
|
DEEPLINE_GTM_SKILL,
|