deepline 0.3.511 → 0.3.512
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +23 -1
- package/dist/cli/{artifacts-PLF5ZUS7.js → artifacts-5IGM3EYP.js} +18 -18
- package/dist/cli/{artifacts-G6JHRHY5.mjs → artifacts-YSYWQFQQ.mjs} +6 -6
- package/dist/cli/{auth-2XMJMDWG.mjs → auth-4MVWCUXS.mjs} +5 -5
- package/dist/cli/auth-M3AJBJ3O.js +43 -0
- package/dist/cli/{billing-Z3XFXP3H.js → billing-OYYHWNVS.js} +79 -79
- package/dist/cli/{billing-6C5AI42X.mjs → billing-SZXRENPC.mjs} +6 -6
- package/dist/cli/{chunk-RPPU3XB3.mjs → chunk-2BS6BRGH.mjs} +2 -2
- package/dist/cli/{chunk-QDWNVTTO.mjs → chunk-2R6M62UO.mjs} +2 -2
- package/dist/cli/{chunk-FTT2SBBH.mjs → chunk-32UMZXCZ.mjs} +5 -5
- package/dist/cli/{chunk-OQ4YBPOQ.mjs → chunk-3INAN6EK.mjs} +3 -3
- package/dist/cli/{chunk-VHFTN6VY.js → chunk-4DSRBHN6.js} +44 -44
- package/dist/cli/{chunk-O37BQ2CG.js → chunk-4QR64X2S.js} +10 -10
- package/dist/cli/{chunk-WDBEWOU6.js → chunk-4ZDHGAE6.js} +2 -2
- package/dist/cli/{chunk-KXGH4YUQ.mjs → chunk-5XLU47DG.mjs} +1 -1
- package/dist/cli/{chunk-LKSJXTRP.js → chunk-7U3WY2F3.js} +53 -53
- package/dist/cli/{chunk-HLEZQDEZ.mjs → chunk-AATUAFD2.mjs} +2 -2
- package/dist/cli/{chunk-IYWN7M4I.js → chunk-AVYI522S.js} +5 -5
- package/dist/cli/{chunk-BHV7JKXQ.js → chunk-BP4XEO6Z.js} +1 -1
- package/dist/cli/{chunk-XZ6IZIQJ.mjs → chunk-DJ4FD5DR.mjs} +2 -2
- package/dist/cli/{chunk-ASXOFBF7.mjs → chunk-EQAKPIGI.mjs} +2 -2
- package/dist/cli/{chunk-XXQZYLLL.mjs → chunk-FJPJ6SO3.mjs} +2 -2
- package/dist/cli/{chunk-JHBZBCU4.mjs → chunk-GJMIW4Q6.mjs} +1 -1
- package/dist/cli/{chunk-ZFJ2U76O.mjs → chunk-HA5NSCTH.mjs} +2 -2
- package/dist/cli/{chunk-YX7E2VQM.js → chunk-HCMFRAYT.js} +26 -26
- package/dist/cli/{chunk-ISY7PBIK.mjs → chunk-I6OK54YK.mjs} +5 -5
- package/dist/cli/{chunk-FAGSSIOY.js → chunk-IMC2HQ6V.js} +6 -6
- package/dist/cli/{chunk-VQ74WMKG.mjs → chunk-JDD6OLWN.mjs} +3 -3
- package/dist/cli/{chunk-KK6NZHAJ.mjs → chunk-JH7JISQ2.mjs} +1 -1
- package/dist/cli/{chunk-2Q4H2Y6N.js → chunk-JKLFRDQ6.js} +6 -6
- package/dist/cli/{chunk-XGXXNT4O.js → chunk-JU35QU3Z.js} +7 -7
- package/dist/cli/{chunk-D5VWSR4D.js → chunk-KBM5T6UV.js} +5 -5
- package/dist/cli/{chunk-GGQHOLH6.js → chunk-L7CAOWHY.js} +3 -3
- package/dist/cli/{chunk-PCI4MMH7.mjs → chunk-LYOWQKGN.mjs} +1 -1
- package/dist/cli/{chunk-VEOFISLZ.mjs → chunk-MQ5GBB7V.mjs} +1 -1
- package/dist/cli/{chunk-XSBGWMI6.mjs → chunk-MTSHUN2R.mjs} +1 -1
- package/dist/cli/{chunk-PUFEARWT.js → chunk-O24VWLOY.js} +16 -16
- package/dist/cli/{chunk-KZBKQPSA.js → chunk-OU6AK63V.js} +2 -2
- package/dist/cli/{chunk-S6KEACD3.mjs → chunk-P3RYPSOQ.mjs} +6 -6
- package/dist/cli/{chunk-GD3ES3JU.js → chunk-PJCPFF7J.js} +14 -14
- package/dist/cli/{chunk-2YVRIXVR.js → chunk-Q72Q3ZWB.js} +9 -9
- package/dist/cli/{chunk-PI45LZ5B.js → chunk-RR6G6ZCT.js} +11 -11
- package/dist/cli/{chunk-S5C4CWSS.mjs → chunk-RXZRZEW7.mjs} +5 -5
- package/dist/cli/{chunk-SI4QXATV.mjs → chunk-T3SUWKUT.mjs} +5 -5
- package/dist/cli/{chunk-NVMNMKZW.js → chunk-TKN2TRW5.js} +3 -3
- package/dist/cli/{chunk-JDDKJIZU.mjs → chunk-TNQ5MF6K.mjs} +1 -1
- package/dist/cli/{chunk-LDZYGM7W.js → chunk-V6FQRUPJ.js} +41 -41
- package/dist/cli/{chunk-KUDNPJ43.js → chunk-VGCNLFER.js} +2 -2
- package/dist/cli/{chunk-JYFLIQPE.js → chunk-VZN6D23P.js} +7 -7
- package/dist/cli/{chunk-FV4PASXH.js → chunk-W7DAWILZ.js} +16 -16
- package/dist/cli/{chunk-ZWGBQKW7.js → chunk-WDCOUJQ5.js} +21 -21
- package/dist/cli/{chunk-ZYVR4A4P.mjs → chunk-XKFWY4IK.mjs} +10 -10
- package/dist/cli/{chunk-5WTLXL6O.mjs → chunk-YJN55ZWG.mjs} +1 -1
- package/dist/cli/{chunk-XREZY4FA.mjs → chunk-YNMHIJC5.mjs} +1 -1
- package/dist/cli/{chunk-K4JB2BZP.js → chunk-ZLHIQU2G.js} +96 -96
- package/dist/cli/{chunk-GJWL4KTY.mjs → chunk-ZVYMGTZ7.mjs} +4 -4
- package/dist/cli/{chunk-JIY25SUX.js → chunk-ZZ7SVWKR.js} +4 -4
- package/dist/cli/{csv-CNK6ZF3T.mjs → csv-AY4KT3NZ.mjs} +4 -4
- package/dist/cli/{csv-S44OGG2O.js → csv-YR2E5HNM.js} +13 -13
- package/dist/cli/{db-AVO6QJU6.mjs → db-IMYD3OCM.mjs} +6 -6
- package/dist/cli/{db-WKZ6EXNG.js → db-YKV6564I.js} +27 -27
- package/dist/cli/{describe-2HQRT5MI.mjs → describe-72GI2Q6T.mjs} +18 -18
- package/dist/cli/describe-UFGHQBM7.js +50 -0
- package/dist/cli/{executions-DKHOR7HD.mjs → executions-2YO6KIP3.mjs} +6 -6
- package/dist/cli/{executions-MTAHNARA.js → executions-OSNL5CSU.js} +8 -8
- package/dist/cli/{feedback-K6SJS4LG.mjs → feedback-SYDNAT62.mjs} +5 -5
- package/dist/cli/{feedback-R2UABU3E.js → feedback-WSA7YTKS.js} +10 -10
- package/dist/cli/{git-3EPA7433.mjs → git-WBH7N3EF.mjs} +5 -5
- package/dist/cli/git-YYOW4CYQ.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-3Q2D2F24.js → legacy-noops-BZPLWY5C.js} +9 -9
- package/dist/cli/{legacy-noops-66OPCJJD.mjs → legacy-noops-USZM4ZXF.mjs} +6 -6
- package/dist/cli/{monitors-2PYPRWT4.mjs → monitors-6HOZMLEV.mjs} +7 -7
- package/dist/cli/{monitors-KHH4MZDF.js → monitors-XHXAMMYC.js} +100 -100
- package/dist/cli/{org-X5G36B2Q.js → org-BAAOAZF3.js} +72 -72
- package/dist/cli/{org-WAW3OL7B.mjs → org-LT3DICB4.mjs} +6 -6
- package/dist/cli/{pages-XDPHCHHU.js → pages-7NP4PKLA.js} +18 -18
- package/dist/cli/{pages-KABWXDGW.mjs → pages-MOCSTZZQ.mjs} +6 -6
- package/dist/cli/{play-UE5FKQCO.js → play-CGUL22GL.js} +317 -317
- package/dist/cli/{play-654B2HQU.mjs → play-MGJ7B7RL.mjs} +18 -18
- package/dist/cli/{providers-QT2BZMJ7.js → providers-5LCUHKX2.js} +9 -9
- package/dist/cli/{providers-SKNGX6IT.mjs → providers-AOWBHJ24.mjs} +6 -6
- package/dist/cli/{quickstart-XWDVAQTT.js → quickstart-7YZUT7GO.js} +6 -6
- package/dist/cli/{quickstart-BX7XMJIQ.mjs → quickstart-Z6NA2CCM.mjs} +4 -4
- package/dist/cli/{run-JTU4K4MY.mjs → run-7QGBNUKE.mjs} +23 -23
- package/dist/cli/{run-C6YYD4AK.js → run-M66ILCWL.js} +41 -41
- package/dist/cli/search-OZQH5VMI.js +33 -0
- package/dist/cli/{search-NHV4Y4SX.mjs → search-Z2T3B4V4.mjs} +8 -8
- package/dist/cli/{search-output-WLFFEGCY.js → search-output-6OHPSJGK.js} +6 -6
- package/dist/cli/{search-output-AAOMFK7K.mjs → search-output-MLHVBRIR.mjs} +4 -4
- package/dist/cli/{secrets-H4WTLQJJ.js → secrets-T7MW2DMK.js} +15 -15
- package/dist/cli/{secrets-S66PZSRO.mjs → secrets-VBSILT5H.mjs} +6 -6
- package/dist/cli/{sessions-PY6FJX3O.mjs → sessions-KNITGDLS.mjs} +6 -6
- package/dist/cli/sessions-XKEIBOTP.js +18 -0
- package/dist/cli/{settings-V7BM42KQ.mjs → settings-NBZRRKZS.mjs} +13 -13
- package/dist/cli/{settings-YO4FFPN6.js → settings-OSEBDBKR.js} +86 -86
- package/dist/cli/{setup-IFZYYQ2W.js → setup-7DZPC6FC.js} +50 -50
- package/dist/cli/{setup-VUBM2HMH.mjs → setup-WTEQPZ5I.mjs} +10 -10
- package/dist/cli/{skills-EYWRSQQJ.mjs → skills-JMD2MNJZ.mjs} +8 -8
- package/dist/cli/skills-R6RO6MQF.js +37 -0
- package/dist/cli/{tools-VZOW4MUD.mjs → tools-LK5BM2Z7.mjs} +17 -17
- package/dist/cli/tools-NBBDUNPR.js +57 -0
- package/dist/cli/update-BI2ABPGX.js +35 -0
- package/dist/cli/{update-CQDJJYU2.mjs → update-IVUSIA2E.mjs} +10 -10
- package/dist/cli/{workflow-2VRDIPF3.mjs → workflow-4QP6G54M.mjs} +7 -7
- package/dist/cli/{workflow-XS3JEU6X.js → workflow-GY374FMJ.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -104
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/dist/viewer/viewer.js +16 -7
- package/package.json +1 -1
- package/dist/cli/auth-PI2KS2CD.js +0 -43
- package/dist/cli/describe-CCK77NER.js +0 -50
- package/dist/cli/git-7L3PY2A4.js +0 -25
- package/dist/cli/search-RIFW5JCK.js +0 -33
- package/dist/cli/sessions-EFWO62XJ.js +0 -18
- package/dist/cli/skills-LFP53SWQ.js +0 -37
- package/dist/cli/tools-SR2Q7KC5.js +0 -57
- package/dist/cli/update-ADZBZZZS.js +0 -35
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKBM5T6UVjs = require('./chunk-KBM5T6UV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
|
|
8
8
|
require('./chunk-E4CABWXL.js');
|
|
9
9
|
require('./chunk-RNSHCJME.js');
|
|
10
10
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -12,30 +12,30 @@ require('./chunk-WSGXBROE.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkVGCNLFERjs = require('./chunk-VGCNLFER.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
20
|
+
var _chunkO24VWLOYjs = require('./chunk-O24VWLOY.js');
|
|
21
|
+
require('./chunk-OU6AK63V.js');
|
|
22
|
+
require('./chunk-V6FQRUPJ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
27
|
-
require('./chunk-
|
|
28
|
-
require('./chunk-
|
|
26
|
+
var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
|
|
27
|
+
require('./chunk-TKN2TRW5.js');
|
|
28
|
+
require('./chunk-PJCPFF7J.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
require('./chunk-
|
|
34
|
-
require('./chunk-
|
|
32
|
+
var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
|
|
33
|
+
require('./chunk-L7CAOWHY.js');
|
|
34
|
+
require('./chunk-ZZ7SVWKR.js');
|
|
35
35
|
require('./chunk-ALJJRZNJ.js');
|
|
36
36
|
require('./chunk-XNYIZMNQ.js');
|
|
37
37
|
require('./chunk-DIAWYWT5.js');
|
|
38
|
-
require('./chunk-
|
|
38
|
+
require('./chunk-BP4XEO6Z.js');
|
|
39
39
|
require('./chunk-OG64RBAC.js');
|
|
40
40
|
require('./chunk-RLX5ZFNX.js');
|
|
41
41
|
require('./chunk-COGTRVWW.js');
|
|
@@ -43,7 +43,7 @@ require('./chunk-COGTRVWW.js');
|
|
|
43
43
|
// src/cli/commands/settings.ts
|
|
44
44
|
var _commander = require('commander');
|
|
45
45
|
var _fs = require('fs');
|
|
46
|
-
var eventHelp =
|
|
46
|
+
var eventHelp = _chunkJU35QU3Zjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
47
47
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
48
48
|
).join("\n");
|
|
49
49
|
function slackDestination(settings) {
|
|
@@ -55,7 +55,7 @@ function slackDestination(settings) {
|
|
|
55
55
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
56
56
|
})
|
|
57
57
|
);
|
|
58
|
-
return
|
|
58
|
+
return _chunkJU35QU3Zjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
59
59
|
}
|
|
60
60
|
function eventLines(settings, destinationId) {
|
|
61
61
|
const enabled = new Map(
|
|
@@ -77,10 +77,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
77
77
|
return event;
|
|
78
78
|
}
|
|
79
79
|
async function printSettings(options) {
|
|
80
|
-
const settings = await new (0,
|
|
80
|
+
const settings = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotificationSettings();
|
|
81
81
|
const slack = slackDestination(settings);
|
|
82
82
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
83
|
-
|
|
83
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
84
84
|
{
|
|
85
85
|
settings,
|
|
86
86
|
render: {
|
|
@@ -128,8 +128,8 @@ function registerSettingsCommands(program) {
|
|
|
128
128
|
off: "Do not ask the user to send feedback or upload a session. Use --requested only if they explicitly request it without being prompted."
|
|
129
129
|
};
|
|
130
130
|
const printFeedback = (options) => {
|
|
131
|
-
const setting =
|
|
132
|
-
|
|
131
|
+
const setting = _chunkVGCNLFERjs.readFeedbackSetting.call(void 0, );
|
|
132
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
133
133
|
{ ok: true, setting, enabled: setting === "on" },
|
|
134
134
|
{
|
|
135
135
|
json: options.json,
|
|
@@ -141,7 +141,7 @@ function registerSettingsCommands(program) {
|
|
|
141
141
|
const feedback = settings.command("feedback").description("Show or change the local feedback setting (ask by default).").option("--json", "Emit JSON output").action(printFeedback);
|
|
142
142
|
for (const setting of ["ask", "on", "off"]) {
|
|
143
143
|
feedback.command(setting).description(feedbackDescriptions[setting]).option("--json", "Emit JSON output").action((_options, command) => {
|
|
144
|
-
|
|
144
|
+
_chunkVGCNLFERjs.writeFeedbackSetting.call(void 0, setting);
|
|
145
145
|
printFeedback(command.optsWithGlobals());
|
|
146
146
|
});
|
|
147
147
|
}
|
|
@@ -158,8 +158,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
158
158
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
159
159
|
`
|
|
160
160
|
).option("--json", "Emit JSON output").action((options) => {
|
|
161
|
-
const preferences =
|
|
162
|
-
|
|
161
|
+
const preferences = _chunkO24VWLOYjs.readCliUpdatePreferences.call(void 0, );
|
|
162
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
163
163
|
{
|
|
164
164
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
165
165
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -182,8 +182,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
182
182
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
183
183
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
184
184
|
).option("--json", "Emit JSON output").action((options) => {
|
|
185
|
-
const preferences =
|
|
186
|
-
|
|
185
|
+
const preferences = _chunkO24VWLOYjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
186
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
187
187
|
{
|
|
188
188
|
ok: true,
|
|
189
189
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -204,18 +204,18 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
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) => {
|
|
207
|
-
process.exitCode = await
|
|
207
|
+
process.exitCode = await _chunkO24VWLOYjs.runUpdateCommand.call(void 0, {
|
|
208
208
|
pin: version,
|
|
209
209
|
json: options.json,
|
|
210
210
|
executeWithJson: true
|
|
211
211
|
});
|
|
212
212
|
});
|
|
213
213
|
settings.command("skills-sync").description("Configure automatic skill syncing on this machine.").addArgument(new (0, _commander.Argument)("[mode]").choices(["on", "off"])).option("--dry-run", "Show the requested setting without saving it").option("--json", "Emit JSON output").action((mode, options) => {
|
|
214
|
-
const autoSkillsSyncEnabled = mode === void 0 ?
|
|
214
|
+
const autoSkillsSyncEnabled = mode === void 0 ? _chunk4DSRBHN6js.isCliSkillsSyncEnabled.call(void 0, ) : mode === "on";
|
|
215
215
|
if (mode !== void 0 && !options.dryRun) {
|
|
216
|
-
|
|
216
|
+
_chunk4DSRBHN6js.setCliSkillsSyncEnabled.call(void 0, autoSkillsSyncEnabled);
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
219
219
|
{
|
|
220
220
|
autoSkillsSyncEnabled,
|
|
221
221
|
...options.dryRun ? { dryRun: true } : {},
|
|
@@ -255,15 +255,15 @@ notifications; there is no general integrations CLI.
|
|
|
255
255
|
if (destination !== "slack")
|
|
256
256
|
throw new Error("Only slack is supported.");
|
|
257
257
|
if (options.dryRun) {
|
|
258
|
-
|
|
258
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
259
259
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
260
260
|
{ json: options.json }
|
|
261
261
|
);
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
|
-
const result = await new (0,
|
|
265
|
-
const browser = options.open ?
|
|
266
|
-
|
|
264
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().connectNotificationSlack();
|
|
265
|
+
const browser = options.open ? _chunkVZN6D23Pjs.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
266
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
267
267
|
{
|
|
268
268
|
...result,
|
|
269
269
|
browser,
|
|
@@ -287,10 +287,10 @@ notifications; there is no general integrations CLI.
|
|
|
287
287
|
}
|
|
288
288
|
);
|
|
289
289
|
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) => {
|
|
290
|
-
const result = await new (0,
|
|
290
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().listNotificationSlackChannels(
|
|
291
291
|
options.query
|
|
292
292
|
);
|
|
293
|
-
|
|
293
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
294
294
|
{
|
|
295
295
|
...result,
|
|
296
296
|
render: {
|
|
@@ -316,14 +316,14 @@ notifications; there is no general integrations CLI.
|
|
|
316
316
|
}
|
|
317
317
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
318
318
|
if (options.dryRun) {
|
|
319
|
-
|
|
319
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
320
320
|
{ dryRun: true, destination, target },
|
|
321
321
|
{ json: options.json }
|
|
322
322
|
);
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
|
-
const result = await new (0,
|
|
326
|
-
|
|
325
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().setNotificationSlack(target);
|
|
326
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
327
327
|
{
|
|
328
328
|
ok: true,
|
|
329
329
|
result,
|
|
@@ -349,14 +349,14 @@ notifications; there is no general integrations CLI.
|
|
|
349
349
|
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) => {
|
|
350
350
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
351
351
|
if (options.dryRun) {
|
|
352
|
-
|
|
352
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
353
353
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
354
354
|
{ json: options.json }
|
|
355
355
|
);
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
|
-
const result = await new (0,
|
|
359
|
-
|
|
358
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().testNotificationSlack();
|
|
359
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
360
360
|
{
|
|
361
361
|
...result,
|
|
362
362
|
render: {
|
|
@@ -369,14 +369,14 @@ notifications; there is no general integrations CLI.
|
|
|
369
369
|
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) => {
|
|
370
370
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
371
371
|
if (options.dryRun) {
|
|
372
|
-
|
|
372
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
373
373
|
{ dryRun: true, destination, action: "disable" },
|
|
374
374
|
{ json: options.json }
|
|
375
375
|
);
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
const result = await new (0,
|
|
379
|
-
|
|
378
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().disableNotificationSlack();
|
|
379
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: true,
|
|
382
382
|
result,
|
|
@@ -395,10 +395,10 @@ ${eventHelp}
|
|
|
395
395
|
`
|
|
396
396
|
);
|
|
397
397
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
398
|
-
const current = await new (0,
|
|
398
|
+
const current = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotificationSettings();
|
|
399
399
|
const destination = slackDestination(current);
|
|
400
400
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
401
|
-
|
|
401
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
402
402
|
{
|
|
403
403
|
catalog: current.catalog,
|
|
404
404
|
subscriptions: current.subscriptions,
|
|
@@ -415,14 +415,14 @@ ${eventHelp}
|
|
|
415
415
|
);
|
|
416
416
|
});
|
|
417
417
|
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) => {
|
|
418
|
-
const current = await new (0,
|
|
418
|
+
const current = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotificationSettings();
|
|
419
419
|
const event = requireCatalogEvent(current, eventType);
|
|
420
420
|
const destination = slackDestination(current);
|
|
421
421
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
422
422
|
const subscription = current.subscriptions.find(
|
|
423
423
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
424
424
|
);
|
|
425
|
-
|
|
425
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
426
426
|
{
|
|
427
427
|
event,
|
|
428
428
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -443,11 +443,11 @@ ${eventHelp}
|
|
|
443
443
|
});
|
|
444
444
|
for (const enabled of [true, false]) {
|
|
445
445
|
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) => {
|
|
446
|
-
const client = new (0,
|
|
446
|
+
const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
|
|
447
447
|
const current = await client.getNotificationSettings();
|
|
448
448
|
const event = requireCatalogEvent(current, eventType);
|
|
449
449
|
if (options.dryRun) {
|
|
450
|
-
|
|
450
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{ dryRun: true, event, enabled },
|
|
452
452
|
{ json: options.json }
|
|
453
453
|
);
|
|
@@ -457,7 +457,7 @@ ${eventHelp}
|
|
|
457
457
|
[event.id],
|
|
458
458
|
enabled
|
|
459
459
|
);
|
|
460
|
-
|
|
460
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
461
461
|
{
|
|
462
462
|
ok: true,
|
|
463
463
|
event: event.id,
|
|
@@ -478,11 +478,11 @@ ${eventHelp}
|
|
|
478
478
|
}
|
|
479
479
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
480
480
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
481
|
-
const result = await new (0,
|
|
481
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().listNotificationDlq(
|
|
482
482
|
Number(options.limit)
|
|
483
483
|
);
|
|
484
484
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
485
|
-
|
|
485
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
486
486
|
{
|
|
487
487
|
...result,
|
|
488
488
|
render: {
|
|
@@ -500,10 +500,10 @@ ${eventHelp}
|
|
|
500
500
|
);
|
|
501
501
|
});
|
|
502
502
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
503
|
-
const result = await new (0,
|
|
503
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
504
504
|
deliveryId
|
|
505
505
|
);
|
|
506
|
-
|
|
506
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, result, {
|
|
507
507
|
json: options.json
|
|
508
508
|
});
|
|
509
509
|
});
|
|
@@ -512,17 +512,17 @@ ${eventHelp}
|
|
|
512
512
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
513
513
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
514
514
|
if (options.dryRun) {
|
|
515
|
-
|
|
515
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
516
516
|
{ dryRun: true, action, deliveryId },
|
|
517
517
|
{ json: options.json }
|
|
518
518
|
);
|
|
519
519
|
return;
|
|
520
520
|
}
|
|
521
|
-
const result = await new (0,
|
|
521
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
522
522
|
deliveryId,
|
|
523
523
|
action
|
|
524
524
|
);
|
|
525
|
-
|
|
525
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
526
526
|
{ ok: true, action, deliveryId, result },
|
|
527
527
|
{ json: options.json }
|
|
528
528
|
);
|
|
@@ -623,8 +623,8 @@ Examples:
|
|
|
623
623
|
`
|
|
624
624
|
);
|
|
625
625
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
626
|
-
const result = await new (0,
|
|
627
|
-
|
|
626
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotificationConfiguration();
|
|
627
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
628
628
|
{
|
|
629
629
|
...result,
|
|
630
630
|
render: {
|
|
@@ -649,21 +649,21 @@ Examples:
|
|
|
649
649
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
650
650
|
const input = await readNotificationConfigurationChange(file);
|
|
651
651
|
if (options.dryRun) {
|
|
652
|
-
|
|
652
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
653
653
|
{ dryRun: true, ...input },
|
|
654
654
|
{ json: options.json }
|
|
655
655
|
);
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
const result = await new (0,
|
|
658
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().changeNotificationConfiguration(
|
|
659
659
|
input.expectedWorkspaceVersion,
|
|
660
660
|
input.change
|
|
661
661
|
);
|
|
662
|
-
|
|
662
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
663
663
|
});
|
|
664
664
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
665
|
-
const settings = await new (0,
|
|
666
|
-
|
|
665
|
+
const settings = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotifications();
|
|
666
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
667
667
|
{
|
|
668
668
|
events: settings.catalog,
|
|
669
669
|
render: {
|
|
@@ -681,9 +681,9 @@ Examples:
|
|
|
681
681
|
);
|
|
682
682
|
});
|
|
683
683
|
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) => {
|
|
684
|
-
const settings = await new (0,
|
|
684
|
+
const settings = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotifications();
|
|
685
685
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
686
|
-
|
|
686
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
687
687
|
{
|
|
688
688
|
notifications: options.compact ? rules.map((rule) => ({
|
|
689
689
|
id: rule.id,
|
|
@@ -711,10 +711,10 @@ Examples:
|
|
|
711
711
|
});
|
|
712
712
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
713
713
|
const rule = notificationByName(
|
|
714
|
-
await new (0,
|
|
714
|
+
await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getNotifications(),
|
|
715
715
|
name
|
|
716
716
|
);
|
|
717
|
-
|
|
717
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
718
718
|
});
|
|
719
719
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
720
720
|
"--to <target>",
|
|
@@ -728,14 +728,14 @@ Examples:
|
|
|
728
728
|
[]
|
|
729
729
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
730
730
|
async (name, options) => {
|
|
731
|
-
const result = await new (0,
|
|
731
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().createNotificationGroup({
|
|
732
732
|
name,
|
|
733
733
|
targets: options.to,
|
|
734
734
|
legacyEvents: options.for,
|
|
735
735
|
dryRun: options.dryRun
|
|
736
736
|
});
|
|
737
737
|
if (result.mode === "dry_run") {
|
|
738
|
-
|
|
738
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
739
739
|
result.compatibilityMode ? {
|
|
740
740
|
dryRun: true,
|
|
741
741
|
name: result.name,
|
|
@@ -752,7 +752,7 @@ Examples:
|
|
|
752
752
|
return;
|
|
753
753
|
}
|
|
754
754
|
if (result.mode === "legacy") {
|
|
755
|
-
|
|
755
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
756
756
|
{
|
|
757
757
|
notification: result.notification,
|
|
758
758
|
render: {
|
|
@@ -774,7 +774,7 @@ Examples:
|
|
|
774
774
|
);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
|
-
|
|
777
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
778
778
|
{
|
|
779
779
|
...result,
|
|
780
780
|
render: {
|
|
@@ -810,12 +810,12 @@ Examples:
|
|
|
810
810
|
[]
|
|
811
811
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
812
812
|
async (name, options) => {
|
|
813
|
-
const client = new (0,
|
|
813
|
+
const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
|
|
814
814
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
815
815
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
816
816
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
817
817
|
if (options.dryRun) {
|
|
818
|
-
|
|
818
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
819
819
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
820
820
|
{ json: options.json }
|
|
821
821
|
);
|
|
@@ -826,15 +826,15 @@ Examples:
|
|
|
826
826
|
...target,
|
|
827
827
|
eventTypes
|
|
828
828
|
});
|
|
829
|
-
|
|
829
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
833
833
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
834
|
-
const result = await new (0,
|
|
834
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().listNotificationChannels(
|
|
835
835
|
options.search
|
|
836
836
|
);
|
|
837
|
-
|
|
837
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
838
838
|
{
|
|
839
839
|
...result,
|
|
840
840
|
render: {
|
|
@@ -854,31 +854,31 @@ Examples:
|
|
|
854
854
|
["resume", true]
|
|
855
855
|
]) {
|
|
856
856
|
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) => {
|
|
857
|
-
const client = new (0,
|
|
857
|
+
const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
|
|
858
858
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
859
859
|
if (options.dryRun) {
|
|
860
|
-
|
|
860
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
861
861
|
{ dryRun: true, notification: rule.id, enabled },
|
|
862
862
|
{ json: options.json }
|
|
863
863
|
);
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
866
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
867
|
-
|
|
867
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
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) => {
|
|
871
|
-
const client = new (0,
|
|
871
|
+
const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
|
|
872
872
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
873
873
|
if (options.dryRun) {
|
|
874
|
-
|
|
874
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
875
875
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
876
876
|
{ json: options.json }
|
|
877
877
|
);
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
880
|
const result = await client.testNotification(rule.id);
|
|
881
|
-
|
|
881
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
882
882
|
{ ...result, notification: rule.name },
|
|
883
883
|
{ json: options.json }
|
|
884
884
|
);
|
|
@@ -886,17 +886,17 @@ Examples:
|
|
|
886
886
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
887
887
|
"Archive one notification without touching its provider integration."
|
|
888
888
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
889
|
-
const client = new (0,
|
|
889
|
+
const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
|
|
890
890
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
891
891
|
if (options.dryRun) {
|
|
892
|
-
|
|
892
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
893
893
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
894
894
|
{ json: options.json }
|
|
895
895
|
);
|
|
896
896
|
return;
|
|
897
897
|
}
|
|
898
898
|
const result = await client.deleteNotification(rule.id);
|
|
899
|
-
|
|
899
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
900
900
|
{ ...result, notification: rule.name },
|
|
901
901
|
{ json: options.json }
|
|
902
902
|
);
|