deepline 0.3.505 → 0.3.507
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-core.ts +148 -11
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +38 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
- package/dist/bundling-sources/shared_libs/monitors/package.json +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +24 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +405 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +8 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +13 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
- package/dist/cli/auth-6PJ4G5PC.js +43 -0
- package/dist/cli/{auth-AHE2EDQA.mjs → auth-BNP3M27C.mjs} +5 -5
- package/dist/cli/{billing-JOIZPHON.js → billing-7HIVX4YJ.js} +101 -91
- package/dist/cli/{billing-7CPWTGGI.mjs → billing-JKJ2AEZ6.mjs} +27 -17
- package/dist/cli/{chunk-PDLOPF5L.mjs → chunk-2OKEMB5A.mjs} +1 -1
- package/dist/cli/{chunk-HASFFOSU.js → chunk-2ZINJVWW.js} +16 -16
- package/dist/cli/{chunk-MHZAG2ZQ.js → chunk-3D5ZNYYI.js} +93 -60
- package/dist/cli/{chunk-7DDACLMX.js → chunk-56SRWY5F.js} +16 -16
- package/dist/cli/{chunk-QGNNAZ5M.mjs → chunk-5A66OJZD.mjs} +1 -1
- package/dist/cli/{chunk-UZ24SF7N.mjs → chunk-5I2XKXLS.mjs} +5 -5
- package/dist/cli/{chunk-SPN7U3MV.js → chunk-5PXGAA2M.js} +4 -4
- package/dist/cli/{chunk-EMUFF6EU.js → chunk-6AQO5OJ5.js} +7 -7
- package/dist/cli/{chunk-WTQLUULB.js → chunk-76R5I7HR.js} +6 -6
- package/dist/cli/{chunk-OMEDQ77C.mjs → chunk-7TZA6LJI.mjs} +5 -5
- package/dist/cli/{chunk-JVKEZT7L.mjs → chunk-AFSYNOG4.mjs} +22 -1
- package/dist/cli/{chunk-OORPAQVC.js → chunk-AXYLMDU3.js} +8 -8
- package/dist/cli/{chunk-FIQ5UEIF.mjs → chunk-D2T4W5LR.mjs} +2 -2
- package/dist/cli/{chunk-Y52XY56V.js → chunk-E5HGDYU3.js} +41 -41
- package/dist/cli/{chunk-3YEOOXD4.js → chunk-E7YIIEZU.js} +11 -11
- package/dist/cli/{chunk-NARJWXBR.mjs → chunk-EEJLV77L.mjs} +2 -2
- package/dist/cli/{chunk-7DDKLFOY.mjs → chunk-EYZJDHXA.mjs} +3 -3
- package/dist/cli/{chunk-K26YOPDO.js → chunk-GDHLL5EQ.js} +22 -1
- package/dist/cli/{chunk-WTUC5VKB.mjs → chunk-GMRWVXU2.mjs} +2 -2
- package/dist/cli/{chunk-PZN24YQQ.mjs → chunk-H334EFON.mjs} +2 -2
- package/dist/cli/{chunk-RT3HJBIH.mjs → chunk-H6PABDS4.mjs} +10 -10
- package/dist/cli/{chunk-7QLK2GHL.js → chunk-HPZONIDF.js} +5 -5
- package/dist/cli/{chunk-5XT4DZQL.mjs → chunk-IBKWVFWP.mjs} +2 -2
- package/dist/cli/{chunk-45XYW477.js → chunk-ILUZ7IHP.js} +21 -21
- package/dist/cli/{chunk-SHKRL7CW.mjs → chunk-IWZRQ6YW.mjs} +1 -1
- package/dist/cli/{chunk-ACI6CUDX.mjs → chunk-JCE2JNGD.mjs} +78 -45
- package/dist/cli/{chunk-XHPB6RGY.js → chunk-JPN6OBPW.js} +1 -1
- package/dist/cli/{chunk-W6I4N4JN.mjs → chunk-LSONU2E2.mjs} +6 -6
- package/dist/cli/{chunk-VXKWF3AD.js → chunk-MN5HO2PN.js} +9 -9
- package/dist/cli/{chunk-6FEN6VWZ.js → chunk-MQRT5NYP.js} +26 -26
- package/dist/cli/{chunk-52FPW2RD.mjs → chunk-NJRJGXVF.mjs} +2 -2
- package/dist/cli/{chunk-BWAYMJ23.js → chunk-OBATCFZO.js} +91 -48
- package/dist/cli/{chunk-YBIVVAL7.mjs → chunk-OPEJASMJ.mjs} +3 -3
- package/dist/cli/{chunk-GXMNOUHP.js → chunk-QWRSWQ7Z.js} +7 -7
- package/dist/cli/{chunk-GAUNJCXQ.js → chunk-REFT4DMJ.js} +96 -96
- package/dist/cli/{chunk-QYGYVCRI.js → chunk-RFJANXCC.js} +14 -14
- package/dist/cli/{chunk-4OFSAZN6.mjs → chunk-RTLWYERT.mjs} +46 -3
- package/dist/cli/{chunk-CSLLQWAB.mjs → chunk-T6FUNWXX.mjs} +1 -1
- package/dist/cli/{chunk-JA7YBRP4.mjs → chunk-TVR4R2E6.mjs} +1 -1
- package/dist/cli/{chunk-ZLN2B5YA.js → chunk-TZ7APOBM.js} +3 -3
- package/dist/cli/{chunk-JSTKLYYD.js → chunk-V2K34NAO.js} +2 -2
- package/dist/cli/{chunk-WPCF7C6B.js → chunk-V4GGTOCX.js} +3 -3
- package/dist/cli/{chunk-IZYOYXG7.mjs → chunk-VGEBRTHF.mjs} +4 -4
- package/dist/cli/{chunk-OA6U5NVB.mjs → chunk-VQLD5M43.mjs} +5 -5
- package/dist/cli/{chunk-LC4FG34E.js → chunk-WOPWSAGS.js} +53 -53
- package/dist/cli/{chunk-MAFZ64RN.mjs → chunk-WQAHMVBT.mjs} +2 -2
- package/dist/cli/{chunk-IDAE5VDH.js → chunk-WTY2R4R3.js} +5 -5
- package/dist/cli/{chunk-6U3AGJWI.mjs → chunk-XKGNEN4P.mjs} +1 -1
- package/dist/cli/{chunk-7AD565DO.mjs → chunk-YAAJHS6W.mjs} +1 -1
- package/dist/cli/{chunk-CA3SYXCS.js → chunk-ZCNGMQVD.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WTPI6ZON.mjs → csv-LZTQOPP2.mjs} +4 -4
- package/dist/cli/{csv-DZHVIW3G.js → csv-WYJVU5HV.js} +13 -13
- package/dist/cli/{db-NR4PJ6AF.mjs → db-D6XFOQP3.mjs} +6 -6
- package/dist/cli/{db-D7LPPNCC.js → db-UCUXPY7S.js} +27 -27
- package/dist/cli/{describe-NCKAJPUG.mjs → describe-HKL2XK67.mjs} +18 -18
- package/dist/cli/describe-XS4OIASD.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-UQG6LWEN.js → executions-5CF5NM7V.js} +8 -8
- package/dist/cli/{executions-RQVJ4LAB.mjs → executions-AFHYXH73.mjs} +6 -6
- package/dist/cli/{feedback-TCHA67IA.js → feedback-GJAX3JZE.js} +8 -8
- package/dist/cli/{feedback-RD4Y3YQR.mjs → feedback-MLKQ572F.mjs} +4 -4
- package/dist/cli/{git-Z7434B7Y.mjs → git-BMLROZOU.mjs} +5 -5
- package/dist/cli/git-RIXUHRDL.js +25 -0
- package/dist/cli/index.js +145 -149
- package/dist/cli/index.mjs +46 -50
- package/dist/cli/{legacy-noops-23WRA7DH.js → legacy-noops-FHRDF7MC.js} +8 -8
- package/dist/cli/{legacy-noops-LQJU4UIV.mjs → legacy-noops-Y7JSQVLQ.mjs} +5 -5
- package/dist/cli/{monitors-KOWN7M3V.js → monitors-Z6RPIQIH.js} +450 -138
- package/dist/cli/{monitors-Z6VYUZ2W.mjs → monitors-ZEVK3UD7.mjs} +332 -20
- package/dist/cli/{org-UBNRO5XO.mjs → org-PFLVANIN.mjs} +6 -6
- package/dist/cli/{org-2T5K2VP5.js → org-TXJ3RES5.js} +72 -72
- package/dist/cli/{pages-GHPJBVV3.mjs → pages-BKEMQ2J7.mjs} +6 -6
- package/dist/cli/{pages-SRXTU7XO.js → pages-ESKKBK5Y.js} +18 -18
- package/dist/cli/{play-HRQKGTXA.mjs → play-4Z6Z7KVY.mjs} +18 -18
- package/dist/cli/{play-2HMZ57EZ.js → play-AAFOZJKQ.js} +317 -317
- package/dist/cli/{providers-JWJRFRR5.mjs → providers-KYP2UWDV.mjs} +6 -6
- package/dist/cli/{providers-P5O676MZ.js → providers-WEU4UNKY.js} +9 -9
- package/dist/cli/{quickstart-S7NZUQRO.mjs → quickstart-7EUDF4IL.mjs} +4 -4
- package/dist/cli/{quickstart-YCY72TAO.js → quickstart-DXYZCOJY.js} +6 -6
- package/dist/cli/{run-MHLLGF4G.js → run-3YN6P26W.js} +41 -41
- package/dist/cli/{run-QWMRIUIU.mjs → run-MB2R5PQ7.mjs} +23 -23
- package/dist/cli/{search-4BFTQUEP.mjs → search-MIFBESRE.mjs} +8 -8
- package/dist/cli/search-Z7GUKVFE.js +33 -0
- package/dist/cli/{search-output-LIYHDTBP.mjs → search-output-2IR3UA4W.mjs} +4 -4
- package/dist/cli/{search-output-62LBVZHN.js → search-output-NUWL47SR.js} +6 -6
- package/dist/cli/{secrets-KKKHVSOO.js → secrets-6UT6BIDJ.js} +15 -15
- package/dist/cli/{secrets-GW27V77E.mjs → secrets-E6WIYONW.mjs} +6 -6
- package/dist/cli/{sessions-R75LBGIL.mjs → sessions-AP7L6YCL.mjs} +5 -5
- package/dist/cli/{sessions-R3OEINAR.js → sessions-NF2RBXMJ.js} +6 -6
- package/dist/cli/{settings-MQIHAEZN.js → settings-FZWXYP4W.js} +106 -79
- package/dist/cli/{settings-I3AQZSYG.mjs → settings-MMLHJ5E5.mjs} +39 -12
- package/dist/cli/{setup-2YA5MYMS.mjs → setup-WJNN2CZZ.mjs} +10 -10
- package/dist/cli/{setup-X3QRJERP.js → setup-YHXAAJNZ.js} +50 -50
- package/dist/cli/skills-4YYUFNMS.js +37 -0
- package/dist/cli/{skills-7252FOOI.mjs → skills-KXZ5PJU2.mjs} +8 -8
- package/dist/cli/{tools-SKQTSVGE.mjs → tools-K6S7RX7B.mjs} +17 -17
- package/dist/cli/tools-OCYEMMUP.js +57 -0
- package/dist/cli/{update-GNBBSKTB.mjs → update-2SFWEVM6.mjs} +10 -10
- package/dist/cli/update-WQIPUQ4K.js +35 -0
- package/dist/cli/{workflow-OJSAL5FO.mjs → workflow-IR3RCVHZ.mjs} +7 -7
- package/dist/cli/{workflow-QB7YYWPP.js → workflow-SM3Q45X5.js} +17 -17
- package/dist/{client-B3GSaSFn.d.ts → client-BlwD-G4v.d.ts} +1 -1
- package/dist/{client-DEJg0CZn.d.mts → client-DMpsMNH9.d.mts} +1 -1
- package/dist/{client-core-C404E33V.d.mts → client-core-CITtRTbB.d.mts} +77 -11
- package/dist/{client-core-GQmy3N8y.d.ts → client-core-DwBLuEkm.d.ts} +77 -11
- package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
- package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
- package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
- package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
- package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
- package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-SEPKNRHV.js +0 -43
- package/dist/cli/describe-HVQBTKFM.js +0 -50
- package/dist/cli/git-TUB2ZUEH.js +0 -25
- package/dist/cli/search-QPUHOEIL.js +0 -33
- package/dist/cli/skills-BPZWMZSL.js +0 -37
- package/dist/cli/tools-F7RVQ3IK.js +0 -57
- package/dist/cli/update-TLSY6LC2.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 _chunkWTY2R4R3js = require('./chunk-WTY2R4R3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOBATCFZOjs = require('./chunk-OBATCFZO.js');
|
|
8
8
|
require('./chunk-E4CABWXL.js');
|
|
9
9
|
require('./chunk-RNSHCJME.js');
|
|
10
10
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -13,29 +13,33 @@ require('./chunk-WSGXBROE.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-MHZAG2ZQ.js');
|
|
20
|
-
require('./chunk-WPCF7C6B.js');
|
|
21
|
-
require('./chunk-QYGYVCRI.js');
|
|
16
|
+
var _chunk2ZINJVWWjs = require('./chunk-2ZINJVWW.js');
|
|
17
|
+
require('./chunk-V2K34NAO.js');
|
|
18
|
+
require('./chunk-E5HGDYU3.js');
|
|
22
19
|
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
22
|
+
var _chunk3D5ZNYYIjs = require('./chunk-3D5ZNYYI.js');
|
|
23
|
+
require('./chunk-V4GGTOCX.js');
|
|
24
|
+
require('./chunk-RFJANXCC.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunk6AQO5OJ5js = require('./chunk-6AQO5OJ5.js');
|
|
29
|
+
require('./chunk-TZ7APOBM.js');
|
|
30
|
+
require('./chunk-5PXGAA2M.js');
|
|
28
31
|
require('./chunk-ALJJRZNJ.js');
|
|
29
32
|
require('./chunk-XNYIZMNQ.js');
|
|
30
33
|
require('./chunk-DIAWYWT5.js');
|
|
31
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-JPN6OBPW.js');
|
|
32
35
|
require('./chunk-OG64RBAC.js');
|
|
33
36
|
require('./chunk-RLX5ZFNX.js');
|
|
34
37
|
require('./chunk-COGTRVWW.js');
|
|
35
38
|
|
|
36
39
|
// src/cli/commands/settings.ts
|
|
40
|
+
var _commander = require('commander');
|
|
37
41
|
var _fs = require('fs');
|
|
38
|
-
var eventHelp =
|
|
42
|
+
var eventHelp = _chunkOBATCFZOjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
39
43
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
40
44
|
).join("\n");
|
|
41
45
|
function slackDestination(settings) {
|
|
@@ -47,7 +51,7 @@ function slackDestination(settings) {
|
|
|
47
51
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
48
52
|
})
|
|
49
53
|
);
|
|
50
|
-
return
|
|
54
|
+
return _chunkOBATCFZOjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
51
55
|
}
|
|
52
56
|
function eventLines(settings, destinationId) {
|
|
53
57
|
const enabled = new Map(
|
|
@@ -69,10 +73,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
69
73
|
return event;
|
|
70
74
|
}
|
|
71
75
|
async function printSettings(options) {
|
|
72
|
-
const settings = await new (0,
|
|
76
|
+
const settings = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotificationSettings();
|
|
73
77
|
const slack = slackDestination(settings);
|
|
74
78
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
75
|
-
|
|
79
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
76
80
|
{
|
|
77
81
|
settings,
|
|
78
82
|
render: {
|
|
@@ -127,8 +131,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
127
131
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
128
132
|
`
|
|
129
133
|
).option("--json", "Emit JSON output").action((options) => {
|
|
130
|
-
const preferences =
|
|
131
|
-
|
|
134
|
+
const preferences = _chunk2ZINJVWWjs.readCliUpdatePreferences.call(void 0, );
|
|
135
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
132
136
|
{
|
|
133
137
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
134
138
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -151,8 +155,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
151
155
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
152
156
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
153
157
|
).option("--json", "Emit JSON output").action((options) => {
|
|
154
|
-
const preferences =
|
|
155
|
-
|
|
158
|
+
const preferences = _chunk2ZINJVWWjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
159
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
156
160
|
{
|
|
157
161
|
ok: true,
|
|
158
162
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -173,12 +177,35 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
173
177
|
});
|
|
174
178
|
}
|
|
175
179
|
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) => {
|
|
176
|
-
process.exitCode = await
|
|
180
|
+
process.exitCode = await _chunk2ZINJVWWjs.runUpdateCommand.call(void 0, {
|
|
177
181
|
pin: version,
|
|
178
182
|
json: options.json,
|
|
179
183
|
executeWithJson: true
|
|
180
184
|
});
|
|
181
185
|
});
|
|
186
|
+
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) => {
|
|
187
|
+
const autoSkillsSyncEnabled = mode === void 0 ? _chunk3D5ZNYYIjs.isCliSkillsSyncEnabled.call(void 0, ) : mode === "on";
|
|
188
|
+
if (mode !== void 0 && !options.dryRun) {
|
|
189
|
+
_chunk3D5ZNYYIjs.setCliSkillsSyncEnabled.call(void 0, autoSkillsSyncEnabled);
|
|
190
|
+
}
|
|
191
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
192
|
+
{
|
|
193
|
+
autoSkillsSyncEnabled,
|
|
194
|
+
...options.dryRun ? { dryRun: true } : {},
|
|
195
|
+
render: {
|
|
196
|
+
sections: [
|
|
197
|
+
{
|
|
198
|
+
title: "automatic skill sync",
|
|
199
|
+
lines: [
|
|
200
|
+
`${options.dryRun && mode !== void 0 ? "would set" : "status"}: ${autoSkillsSyncEnabled ? "on" : "off"}`
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{ json: options.json }
|
|
207
|
+
);
|
|
208
|
+
});
|
|
182
209
|
const notifications = settings.command("notifications").description(
|
|
183
210
|
"Configure Deepline product notifications and delivery safety."
|
|
184
211
|
).addHelpText(
|
|
@@ -201,15 +228,15 @@ notifications; there is no general integrations CLI.
|
|
|
201
228
|
if (destination !== "slack")
|
|
202
229
|
throw new Error("Only slack is supported.");
|
|
203
230
|
if (options.dryRun) {
|
|
204
|
-
|
|
231
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
205
232
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
206
233
|
{ json: options.json }
|
|
207
234
|
);
|
|
208
235
|
return;
|
|
209
236
|
}
|
|
210
|
-
const result = await new (0,
|
|
211
|
-
const browser = options.open ?
|
|
212
|
-
|
|
237
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().connectNotificationSlack();
|
|
238
|
+
const browser = options.open ? _chunk6AQO5OJ5js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
239
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
213
240
|
{
|
|
214
241
|
...result,
|
|
215
242
|
browser,
|
|
@@ -233,10 +260,10 @@ notifications; there is no general integrations CLI.
|
|
|
233
260
|
}
|
|
234
261
|
);
|
|
235
262
|
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) => {
|
|
236
|
-
const result = await new (0,
|
|
263
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().listNotificationSlackChannels(
|
|
237
264
|
options.query
|
|
238
265
|
);
|
|
239
|
-
|
|
266
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
240
267
|
{
|
|
241
268
|
...result,
|
|
242
269
|
render: {
|
|
@@ -262,14 +289,14 @@ notifications; there is no general integrations CLI.
|
|
|
262
289
|
}
|
|
263
290
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
264
291
|
if (options.dryRun) {
|
|
265
|
-
|
|
292
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
266
293
|
{ dryRun: true, destination, target },
|
|
267
294
|
{ json: options.json }
|
|
268
295
|
);
|
|
269
296
|
return;
|
|
270
297
|
}
|
|
271
|
-
const result = await new (0,
|
|
272
|
-
|
|
298
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().setNotificationSlack(target);
|
|
299
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
273
300
|
{
|
|
274
301
|
ok: true,
|
|
275
302
|
result,
|
|
@@ -295,14 +322,14 @@ notifications; there is no general integrations CLI.
|
|
|
295
322
|
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) => {
|
|
296
323
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
297
324
|
if (options.dryRun) {
|
|
298
|
-
|
|
325
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
299
326
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
300
327
|
{ json: options.json }
|
|
301
328
|
);
|
|
302
329
|
return;
|
|
303
330
|
}
|
|
304
|
-
const result = await new (0,
|
|
305
|
-
|
|
331
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().testNotificationSlack();
|
|
332
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
306
333
|
{
|
|
307
334
|
...result,
|
|
308
335
|
render: {
|
|
@@ -315,14 +342,14 @@ notifications; there is no general integrations CLI.
|
|
|
315
342
|
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) => {
|
|
316
343
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
317
344
|
if (options.dryRun) {
|
|
318
|
-
|
|
345
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
319
346
|
{ dryRun: true, destination, action: "disable" },
|
|
320
347
|
{ json: options.json }
|
|
321
348
|
);
|
|
322
349
|
return;
|
|
323
350
|
}
|
|
324
|
-
const result = await new (0,
|
|
325
|
-
|
|
351
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().disableNotificationSlack();
|
|
352
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
326
353
|
{
|
|
327
354
|
ok: true,
|
|
328
355
|
result,
|
|
@@ -341,10 +368,10 @@ ${eventHelp}
|
|
|
341
368
|
`
|
|
342
369
|
);
|
|
343
370
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
344
|
-
const current = await new (0,
|
|
371
|
+
const current = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotificationSettings();
|
|
345
372
|
const destination = slackDestination(current);
|
|
346
373
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
347
|
-
|
|
374
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
348
375
|
{
|
|
349
376
|
catalog: current.catalog,
|
|
350
377
|
subscriptions: current.subscriptions,
|
|
@@ -361,14 +388,14 @@ ${eventHelp}
|
|
|
361
388
|
);
|
|
362
389
|
});
|
|
363
390
|
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) => {
|
|
364
|
-
const current = await new (0,
|
|
391
|
+
const current = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotificationSettings();
|
|
365
392
|
const event = requireCatalogEvent(current, eventType);
|
|
366
393
|
const destination = slackDestination(current);
|
|
367
394
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
368
395
|
const subscription = current.subscriptions.find(
|
|
369
396
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
370
397
|
);
|
|
371
|
-
|
|
398
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
372
399
|
{
|
|
373
400
|
event,
|
|
374
401
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -389,11 +416,11 @@ ${eventHelp}
|
|
|
389
416
|
});
|
|
390
417
|
for (const enabled of [true, false]) {
|
|
391
418
|
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) => {
|
|
392
|
-
const client = new (0,
|
|
419
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
393
420
|
const current = await client.getNotificationSettings();
|
|
394
421
|
const event = requireCatalogEvent(current, eventType);
|
|
395
422
|
if (options.dryRun) {
|
|
396
|
-
|
|
423
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
397
424
|
{ dryRun: true, event, enabled },
|
|
398
425
|
{ json: options.json }
|
|
399
426
|
);
|
|
@@ -403,7 +430,7 @@ ${eventHelp}
|
|
|
403
430
|
[event.id],
|
|
404
431
|
enabled
|
|
405
432
|
);
|
|
406
|
-
|
|
433
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
407
434
|
{
|
|
408
435
|
ok: true,
|
|
409
436
|
event: event.id,
|
|
@@ -424,11 +451,11 @@ ${eventHelp}
|
|
|
424
451
|
}
|
|
425
452
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
426
453
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
427
|
-
const result = await new (0,
|
|
454
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().listNotificationDlq(
|
|
428
455
|
Number(options.limit)
|
|
429
456
|
);
|
|
430
457
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
431
|
-
|
|
458
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
432
459
|
{
|
|
433
460
|
...result,
|
|
434
461
|
render: {
|
|
@@ -446,10 +473,10 @@ ${eventHelp}
|
|
|
446
473
|
);
|
|
447
474
|
});
|
|
448
475
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
449
|
-
const result = await new (0,
|
|
476
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotificationDlqDelivery(
|
|
450
477
|
deliveryId
|
|
451
478
|
);
|
|
452
|
-
|
|
479
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, result, {
|
|
453
480
|
json: options.json
|
|
454
481
|
});
|
|
455
482
|
});
|
|
@@ -458,17 +485,17 @@ ${eventHelp}
|
|
|
458
485
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
459
486
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
460
487
|
if (options.dryRun) {
|
|
461
|
-
|
|
488
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
462
489
|
{ dryRun: true, action, deliveryId },
|
|
463
490
|
{ json: options.json }
|
|
464
491
|
);
|
|
465
492
|
return;
|
|
466
493
|
}
|
|
467
|
-
const result = await new (0,
|
|
494
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().updateNotificationDlqDelivery(
|
|
468
495
|
deliveryId,
|
|
469
496
|
action
|
|
470
497
|
);
|
|
471
|
-
|
|
498
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
472
499
|
{ ok: true, action, deliveryId, result },
|
|
473
500
|
{ json: options.json }
|
|
474
501
|
);
|
|
@@ -569,8 +596,8 @@ Examples:
|
|
|
569
596
|
`
|
|
570
597
|
);
|
|
571
598
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
572
|
-
const result = await new (0,
|
|
573
|
-
|
|
599
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotificationConfiguration();
|
|
600
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
574
601
|
{
|
|
575
602
|
...result,
|
|
576
603
|
render: {
|
|
@@ -595,21 +622,21 @@ Examples:
|
|
|
595
622
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
596
623
|
const input = await readNotificationConfigurationChange(file);
|
|
597
624
|
if (options.dryRun) {
|
|
598
|
-
|
|
625
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
599
626
|
{ dryRun: true, ...input },
|
|
600
627
|
{ json: options.json }
|
|
601
628
|
);
|
|
602
629
|
return;
|
|
603
630
|
}
|
|
604
|
-
const result = await new (0,
|
|
631
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().changeNotificationConfiguration(
|
|
605
632
|
input.expectedWorkspaceVersion,
|
|
606
633
|
input.change
|
|
607
634
|
);
|
|
608
|
-
|
|
635
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
609
636
|
});
|
|
610
637
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
611
|
-
const settings = await new (0,
|
|
612
|
-
|
|
638
|
+
const settings = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotifications();
|
|
639
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
613
640
|
{
|
|
614
641
|
events: settings.catalog,
|
|
615
642
|
render: {
|
|
@@ -627,9 +654,9 @@ Examples:
|
|
|
627
654
|
);
|
|
628
655
|
});
|
|
629
656
|
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) => {
|
|
630
|
-
const settings = await new (0,
|
|
657
|
+
const settings = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotifications();
|
|
631
658
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
632
|
-
|
|
659
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
633
660
|
{
|
|
634
661
|
notifications: options.compact ? rules.map((rule) => ({
|
|
635
662
|
id: rule.id,
|
|
@@ -657,10 +684,10 @@ Examples:
|
|
|
657
684
|
});
|
|
658
685
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
659
686
|
const rule = notificationByName(
|
|
660
|
-
await new (0,
|
|
687
|
+
await new (0, _chunkWTY2R4R3js.DeeplineClient)().getNotifications(),
|
|
661
688
|
name
|
|
662
689
|
);
|
|
663
|
-
|
|
690
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
664
691
|
});
|
|
665
692
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
666
693
|
"--to <target>",
|
|
@@ -674,14 +701,14 @@ Examples:
|
|
|
674
701
|
[]
|
|
675
702
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
676
703
|
async (name, options) => {
|
|
677
|
-
const result = await new (0,
|
|
704
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().createNotificationGroup({
|
|
678
705
|
name,
|
|
679
706
|
targets: options.to,
|
|
680
707
|
legacyEvents: options.for,
|
|
681
708
|
dryRun: options.dryRun
|
|
682
709
|
});
|
|
683
710
|
if (result.mode === "dry_run") {
|
|
684
|
-
|
|
711
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
685
712
|
result.compatibilityMode ? {
|
|
686
713
|
dryRun: true,
|
|
687
714
|
name: result.name,
|
|
@@ -698,7 +725,7 @@ Examples:
|
|
|
698
725
|
return;
|
|
699
726
|
}
|
|
700
727
|
if (result.mode === "legacy") {
|
|
701
|
-
|
|
728
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
702
729
|
{
|
|
703
730
|
notification: result.notification,
|
|
704
731
|
render: {
|
|
@@ -720,7 +747,7 @@ Examples:
|
|
|
720
747
|
);
|
|
721
748
|
return;
|
|
722
749
|
}
|
|
723
|
-
|
|
750
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
724
751
|
{
|
|
725
752
|
...result,
|
|
726
753
|
render: {
|
|
@@ -756,12 +783,12 @@ Examples:
|
|
|
756
783
|
[]
|
|
757
784
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
758
785
|
async (name, options) => {
|
|
759
|
-
const client = new (0,
|
|
786
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
760
787
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
761
788
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
762
789
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
763
790
|
if (options.dryRun) {
|
|
764
|
-
|
|
791
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
765
792
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
766
793
|
{ json: options.json }
|
|
767
794
|
);
|
|
@@ -772,15 +799,15 @@ Examples:
|
|
|
772
799
|
...target,
|
|
773
800
|
eventTypes
|
|
774
801
|
});
|
|
775
|
-
|
|
802
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
776
803
|
}
|
|
777
804
|
);
|
|
778
805
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
779
806
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
780
|
-
const result = await new (0,
|
|
807
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().listNotificationChannels(
|
|
781
808
|
options.search
|
|
782
809
|
);
|
|
783
|
-
|
|
810
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
784
811
|
{
|
|
785
812
|
...result,
|
|
786
813
|
render: {
|
|
@@ -800,31 +827,31 @@ Examples:
|
|
|
800
827
|
["resume", true]
|
|
801
828
|
]) {
|
|
802
829
|
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) => {
|
|
803
|
-
const client = new (0,
|
|
830
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
804
831
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
805
832
|
if (options.dryRun) {
|
|
806
|
-
|
|
833
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
807
834
|
{ dryRun: true, notification: rule.id, enabled },
|
|
808
835
|
{ json: options.json }
|
|
809
836
|
);
|
|
810
837
|
return;
|
|
811
838
|
}
|
|
812
839
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
813
|
-
|
|
840
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
814
841
|
});
|
|
815
842
|
}
|
|
816
843
|
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) => {
|
|
817
|
-
const client = new (0,
|
|
844
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
818
845
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
819
846
|
if (options.dryRun) {
|
|
820
|
-
|
|
847
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
821
848
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
822
849
|
{ json: options.json }
|
|
823
850
|
);
|
|
824
851
|
return;
|
|
825
852
|
}
|
|
826
853
|
const result = await client.testNotification(rule.id);
|
|
827
|
-
|
|
854
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
828
855
|
{ ...result, notification: rule.name },
|
|
829
856
|
{ json: options.json }
|
|
830
857
|
);
|
|
@@ -832,17 +859,17 @@ Examples:
|
|
|
832
859
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
833
860
|
"Archive one notification without touching its provider integration."
|
|
834
861
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
835
|
-
const client = new (0,
|
|
862
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
836
863
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
837
864
|
if (options.dryRun) {
|
|
838
|
-
|
|
865
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
839
866
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
840
867
|
{ json: options.json }
|
|
841
868
|
);
|
|
842
869
|
return;
|
|
843
870
|
}
|
|
844
871
|
const result = await client.deleteNotification(rule.id);
|
|
845
|
-
|
|
872
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
846
873
|
{ ...result, notification: rule.name },
|
|
847
874
|
{ json: options.json }
|
|
848
875
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NJRJGXVF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRODUCT_NOTIFICATION_EVENT_CATALOG,
|
|
6
6
|
resolveLegacySlackNotification
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RTLWYERT.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-N4TR6QRI.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -13,27 +13,31 @@ import {
|
|
|
13
13
|
readCliUpdatePreferences,
|
|
14
14
|
runUpdateCommand,
|
|
15
15
|
setCliAutoUpdateEnabled
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
} from "./chunk-VQLD5M43.mjs";
|
|
17
|
+
import "./chunk-T6FUNWXX.mjs";
|
|
18
|
+
import "./chunk-VGEBRTHF.mjs";
|
|
19
|
+
import {
|
|
20
|
+
isCliSkillsSyncEnabled,
|
|
21
|
+
setCliSkillsSyncEnabled
|
|
22
|
+
} from "./chunk-JCE2JNGD.mjs";
|
|
23
|
+
import "./chunk-5A66OJZD.mjs";
|
|
24
|
+
import "./chunk-D2T4W5LR.mjs";
|
|
22
25
|
import {
|
|
23
26
|
openInBrowser,
|
|
24
27
|
printCommandEnvelope
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-H334EFON.mjs";
|
|
29
|
+
import "./chunk-IWZRQ6YW.mjs";
|
|
30
|
+
import "./chunk-YAAJHS6W.mjs";
|
|
28
31
|
import "./chunk-4QF2K7TM.mjs";
|
|
29
32
|
import "./chunk-DLIRSHV6.mjs";
|
|
30
33
|
import "./chunk-HBL4PM5Q.mjs";
|
|
31
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-XKGNEN4P.mjs";
|
|
32
35
|
import "./chunk-WZYKRD7T.mjs";
|
|
33
36
|
import "./chunk-5JPKRDFC.mjs";
|
|
34
37
|
import "./chunk-KRD6H754.mjs";
|
|
35
38
|
|
|
36
39
|
// src/cli/commands/settings.ts
|
|
40
|
+
import { Argument } from "commander";
|
|
37
41
|
import { readFileSync } from "fs";
|
|
38
42
|
var eventHelp = PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
39
43
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
@@ -179,6 +183,29 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
179
183
|
executeWithJson: true
|
|
180
184
|
});
|
|
181
185
|
});
|
|
186
|
+
settings.command("skills-sync").description("Configure automatic skill syncing on this machine.").addArgument(new Argument("[mode]").choices(["on", "off"])).option("--dry-run", "Show the requested setting without saving it").option("--json", "Emit JSON output").action((mode, options) => {
|
|
187
|
+
const autoSkillsSyncEnabled = mode === void 0 ? isCliSkillsSyncEnabled() : mode === "on";
|
|
188
|
+
if (mode !== void 0 && !options.dryRun) {
|
|
189
|
+
setCliSkillsSyncEnabled(autoSkillsSyncEnabled);
|
|
190
|
+
}
|
|
191
|
+
printCommandEnvelope(
|
|
192
|
+
{
|
|
193
|
+
autoSkillsSyncEnabled,
|
|
194
|
+
...options.dryRun ? { dryRun: true } : {},
|
|
195
|
+
render: {
|
|
196
|
+
sections: [
|
|
197
|
+
{
|
|
198
|
+
title: "automatic skill sync",
|
|
199
|
+
lines: [
|
|
200
|
+
`${options.dryRun && mode !== void 0 ? "would set" : "status"}: ${autoSkillsSyncEnabled ? "on" : "off"}`
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{ json: options.json }
|
|
207
|
+
);
|
|
208
|
+
});
|
|
182
209
|
const notifications = settings.command("notifications").description(
|
|
183
210
|
"Configure Deepline product notifications and delivery safety."
|
|
184
211
|
).addHelpText(
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportApprovalLinkShown,
|
|
9
9
|
reportSetupCompleted
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EYZJDHXA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
npmSupportsAllowScripts,
|
|
13
13
|
readNpmVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T6FUNWXX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
deeplineGtmSkillRoots,
|
|
17
17
|
runSkillsCommand,
|
|
18
18
|
skillsStatePathForScope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VGEBRTHF.mjs";
|
|
20
20
|
import {
|
|
21
21
|
resolveShellSpawn
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-JCE2JNGD.mjs";
|
|
23
|
+
import "./chunk-5A66OJZD.mjs";
|
|
24
|
+
import "./chunk-D2T4W5LR.mjs";
|
|
25
25
|
import {
|
|
26
26
|
openInBrowser,
|
|
27
27
|
printCommandEnvelope
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-H334EFON.mjs";
|
|
29
29
|
import {
|
|
30
30
|
autoDetectBaseUrl,
|
|
31
31
|
baseUrlSlug,
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
resolveProjectApiKeyForBaseUrl,
|
|
35
35
|
resolveProjectPinTarget,
|
|
36
36
|
sdkCliStateDirPath
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IWZRQ6YW.mjs";
|
|
38
38
|
import {
|
|
39
39
|
SDK_VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YAAJHS6W.mjs";
|
|
41
41
|
import "./chunk-4QF2K7TM.mjs";
|
|
42
42
|
import "./chunk-DLIRSHV6.mjs";
|
|
43
43
|
import "./chunk-HBL4PM5Q.mjs";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-XKGNEN4P.mjs";
|
|
45
45
|
import "./chunk-WZYKRD7T.mjs";
|
|
46
46
|
import {
|
|
47
47
|
DEEPLINE_GTM_SKILL,
|