deepline 0.3.458 → 0.3.460
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 +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
- package/dist/cli/{auth-APD43NYT.mjs → auth-HKA6ZVHQ.mjs} +4 -4
- package/dist/cli/auth-VDOCNR7H.js +40 -0
- package/dist/cli/{billing-QW4K272E.mjs → billing-26G44S5N.mjs} +4 -4
- package/dist/cli/{billing-TI4YOWAJ.js → billing-MTO2ZZ3G.js} +73 -73
- package/dist/cli/{chunk-7M6C4STX.js → chunk-2PBN4SZE.js} +16 -16
- package/dist/cli/{chunk-LJDJ5GPR.js → chunk-2WRO2UJ5.js} +51 -51
- package/dist/cli/{chunk-AA2DMXBN.js → chunk-2XHWOQF4.js} +50 -50
- package/dist/cli/{chunk-7MZQ64FI.mjs → chunk-526R2HON.mjs} +1 -1
- package/dist/cli/{chunk-2A63IJ2J.js → chunk-BHGII2D6.js} +6 -6
- package/dist/cli/{chunk-EO7WQN5X.mjs → chunk-CTRPCARW.mjs} +8 -8
- package/dist/cli/{chunk-ECS3KXM7.mjs → chunk-EJGBLXDZ.mjs} +1 -1
- package/dist/cli/{chunk-ZLL345RP.mjs → chunk-KADIT5NV.mjs} +2 -2
- package/dist/cli/{chunk-HJ5WE6S5.mjs → chunk-LAWEURCT.mjs} +1 -1
- package/dist/cli/{chunk-6FLTFNAY.js → chunk-LJTFZOHU.js} +8 -8
- package/dist/cli/{chunk-JIDT3SCM.js → chunk-LMAULZLF.js} +20 -20
- package/dist/cli/{chunk-LZUXLXL3.mjs → chunk-LVJOFUU7.mjs} +3 -3
- package/dist/cli/{chunk-XI6AZJPO.js → chunk-M52JQSLK.js} +3 -3
- package/dist/cli/{chunk-4TWDW7PI.mjs → chunk-MLFR6DVF.mjs} +5 -5
- package/dist/cli/{chunk-6UJJZWT2.mjs → chunk-NH6JSJW6.mjs} +3 -3
- package/dist/cli/{chunk-NDODDIEC.js → chunk-NRGGFVVB.js} +35 -35
- package/dist/cli/{chunk-X3ZRKA3V.mjs → chunk-OJ6RUKVT.mjs} +1 -1
- package/dist/cli/{chunk-U5O5TZC2.mjs → chunk-OMM54B3X.mjs} +1 -1
- package/dist/cli/{chunk-XBVZ35XJ.js → chunk-QGAWTBIR.js} +81 -81
- package/dist/cli/{chunk-DHERSOIG.js → chunk-QJLKYYPX.js} +4 -4
- package/dist/cli/{chunk-AJQUFGTJ.js → chunk-RBTTUYZZ.js} +1 -1
- package/dist/cli/{chunk-CF2GXP2O.js → chunk-RDPTDDKX.js} +2 -2
- package/dist/cli/{chunk-VYLWKTDQ.mjs → chunk-RZSTT45F.mjs} +3 -3
- package/dist/cli/{chunk-OTN6GV74.mjs → chunk-S4Q2XCGM.mjs} +1 -1
- package/dist/cli/{chunk-ECVZUWRR.js → chunk-UKFZT7RF.js} +2 -2
- package/dist/cli/{chunk-K6IHE6R5.js → chunk-VJAEA4CS.js} +8 -8
- package/dist/cli/{chunk-L27PA5GT.js → chunk-VTODQWQA.js} +10 -10
- package/dist/cli/{chunk-5KO62ZXQ.mjs → chunk-W3BE3CHK.mjs} +4 -4
- package/dist/cli/{chunk-GFGBHE43.mjs → chunk-XAYO3Q2X.mjs} +2 -2
- package/dist/cli/{chunk-NXVHTBBS.js → chunk-YHTQM5XI.js} +26 -26
- package/dist/cli/{chunk-W3OAT72T.js → chunk-YS2YBSJB.js} +6 -6
- package/dist/cli/{chunk-V6BEYE35.mjs → chunk-YULBYKAK.mjs} +2 -2
- package/dist/cli/{chunk-MNEN3RYE.mjs → chunk-YVBWO647.mjs} +2 -2
- package/dist/cli/{chunk-EMIR3EXE.mjs → chunk-ZR2RLI4O.mjs} +1 -1
- package/dist/cli/{csv-NIKB3RQX.js → csv-6FNFYJUC.js} +12 -12
- package/dist/cli/{csv-VOX5XXBB.mjs → csv-MDHT4BKK.mjs} +3 -3
- package/dist/cli/{db-GETE5AIV.mjs → db-74O3RFWY.mjs} +4 -4
- package/dist/cli/{db-ZH2NUZ3F.js → db-D6AMVOEW.js} +25 -25
- package/dist/cli/{describe-JZ6QOTPY.js → describe-QW54QQNB.js} +17 -17
- package/dist/cli/{describe-LWGEU6IE.mjs → describe-TOMIAT37.mjs} +13 -13
- package/dist/cli/{executions-CEVMJ4QY.js → executions-N4FMGVSC.js} +6 -6
- package/dist/cli/{executions-DUMCTK4E.mjs → executions-PVSF4HUF.mjs} +4 -4
- package/dist/cli/{feedback-UEYC3V3O.mjs → feedback-OB7NANZW.mjs} +3 -3
- package/dist/cli/{feedback-VI4N44TJ.js → feedback-WFSPCAI2.js} +7 -7
- package/dist/cli/git-4PMBJSH5.js +24 -0
- package/dist/cli/{git-BOMW65V5.mjs → git-FHUSPAEU.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-SWPSUKTD.js → legacy-noops-ECHNA5HN.js} +7 -7
- package/dist/cli/{legacy-noops-33X26VLN.mjs → legacy-noops-HMK4BSCI.mjs} +4 -4
- package/dist/cli/{monitors-465GCZ73.mjs → monitors-U7VQ3EZM.mjs} +5 -5
- package/dist/cli/{monitors-6HMDLDKU.js → monitors-XLLFNENH.js} +89 -89
- package/dist/cli/{org-CAAOHGTM.mjs → org-6H3USO5M.mjs} +4 -4
- package/dist/cli/{org-JFQ4QBHQ.js → org-QX6ER2HN.js} +66 -66
- package/dist/cli/{play-NJP6HIQD.mjs → play-MOB2WYOR.mjs} +11 -11
- package/dist/cli/{play-UKD4KR4K.js → play-WNB7HBZK.js} +284 -284
- package/dist/cli/{providers-YTRBZARB.js → providers-7M3DISKX.js} +7 -7
- package/dist/cli/{providers-UVHTTSKV.mjs → providers-CXEZ23E2.mjs} +4 -4
- package/dist/cli/{quickstart-3GXVHJRL.js → quickstart-CLJT4AZL.js} +5 -5
- package/dist/cli/{quickstart-CB3TQ5L2.mjs → quickstart-ZFCHKHF6.mjs} +3 -3
- package/dist/cli/search-4CCQCTVD.js +30 -0
- package/dist/cli/{search-NXA6526R.mjs → search-FVYWYIC3.mjs} +5 -5
- package/dist/cli/{secrets-JFJK2X2N.mjs → secrets-WAMPTQFC.mjs} +4 -4
- package/dist/cli/{secrets-E3Y6YDKR.js → secrets-YRLKZQS5.js} +13 -13
- package/dist/cli/{sessions-NKLP6TVY.js → sessions-44J6WIVU.js} +5 -5
- package/dist/cli/{sessions-HAZJLQQL.mjs → sessions-IQ332BJH.mjs} +4 -4
- package/dist/cli/{settings-BSD4DW4O.mjs → settings-22S6NIFQ.mjs} +9 -9
- package/dist/cli/{settings-D4LEZOEW.js → settings-4IJR2I2T.js} +76 -76
- package/dist/cli/{setup-KMZ4EFDK.js → setup-3FWSRNOX.js} +43 -43
- package/dist/cli/{setup-QO64H6YO.mjs → setup-OZUPKKPW.mjs} +8 -8
- package/dist/cli/{skills-YLAH2YNN.mjs → skills-5CW3NFP3.mjs} +6 -6
- package/dist/cli/skills-LMNM6B5F.js +30 -0
- package/dist/cli/tools-AGBBDJ7P.js +45 -0
- package/dist/cli/{tools-KGQ76YQE.mjs → tools-NOPBDRGW.mjs} +13 -13
- package/dist/cli/{update-JXUSVBH7.mjs → update-IBULOV7P.mjs} +8 -8
- package/dist/cli/update-U3W6USVD.js +32 -0
- package/dist/cli/{workflow-NYWZWN5Z.mjs → workflow-MVZT7MWT.mjs} +5 -5
- package/dist/cli/{workflow-YTXY76FN.js → workflow-Z7FW6GT2.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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/package.json +1 -1
- package/dist/cli/auth-4CBIXFOR.js +0 -40
- package/dist/cli/git-QISWQQM3.js +0 -24
- package/dist/cli/search-YM4ATHTV.js +0 -30
- package/dist/cli/skills-T5VTI2LZ.js +0 -30
- package/dist/cli/tools-M574OF4H.js +0 -45
- package/dist/cli/update-WNG5DNNO.js +0 -32
|
@@ -1,7 +1,7 @@
|
|
|
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; } var _class; var _class2;require('./chunk-I5YZLGMG.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVTODQWQAjs = require('./chunk-VTODQWQA.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-JKVRBCZL.js');
|
|
7
7
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -16,14 +16,14 @@ require('./chunk-UNEMDKXN.js');
|
|
|
16
16
|
var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkM52JQSLKjs = require('./chunk-M52JQSLK.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
25
|
+
var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
26
|
+
require('./chunk-QJLKYYPX.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -31,7 +31,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
34
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-RBTTUYZZ.js');
|
|
35
35
|
require('./chunk-OG64RBAC.js');
|
|
36
36
|
require('./chunk-COGTRVWW.js');
|
|
37
37
|
|
|
@@ -109,10 +109,10 @@ function reportMonitorsFailure(error, options) {
|
|
|
109
109
|
const exitCode = monitorsErrorExitCode(error);
|
|
110
110
|
const next = monitorsFailureNextCommand(error, exitCode, options);
|
|
111
111
|
const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
|
|
112
|
-
const wantsJson =
|
|
112
|
+
const wantsJson = _chunkBHGII2D6js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
|
|
113
113
|
if (wantsJson) {
|
|
114
|
-
const payload =
|
|
115
|
-
|
|
114
|
+
const payload = _chunkBHGII2D6js.errorToJsonPayload.call(void 0, error);
|
|
115
|
+
_chunkBHGII2D6js.printJson.call(void 0, {
|
|
116
116
|
ok: false,
|
|
117
117
|
exitCode,
|
|
118
118
|
...next ? { next } : {},
|
|
@@ -527,14 +527,14 @@ Preview the plan first with:
|
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
529
|
async function handleMonitorsStatus(options) {
|
|
530
|
-
const payload = await new (0,
|
|
530
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.status();
|
|
531
531
|
const hasAccess = payload.has_access === true;
|
|
532
532
|
const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
|
|
533
533
|
const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
|
|
534
534
|
${reason}` : ""}
|
|
535
535
|
` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
|
|
536
536
|
`;
|
|
537
|
-
|
|
537
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
538
538
|
{ has_access: hasAccess, ...reason ? { reason } : {} },
|
|
539
539
|
{ json: options.json, text }
|
|
540
540
|
);
|
|
@@ -600,14 +600,14 @@ async function handleMonitorsAvailable(toolId, options) {
|
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
const tool = _nullishCoalesce(toolId, () => ( options.tool));
|
|
603
|
-
const payload = await new (0,
|
|
603
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.available(tool, {
|
|
604
604
|
...options.provider ? { provider: options.provider } : {},
|
|
605
605
|
...options.search ? { search: options.search } : {},
|
|
606
606
|
...options.limit ? { limit: options.limit } : {},
|
|
607
607
|
...options.full ? { full: true } : {},
|
|
608
608
|
...options.compact ? { compact: true } : {}
|
|
609
609
|
});
|
|
610
|
-
|
|
610
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
611
611
|
json: options.json,
|
|
612
612
|
// Human list view shows id + name + deployed_count ("deployed: N") so
|
|
613
613
|
// can-deploy vs already-deployed is visible in one view. Describing a
|
|
@@ -710,14 +710,14 @@ async function handleMonitorsList(options) {
|
|
|
710
710
|
"`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
const payload = await new (0,
|
|
713
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.list({
|
|
714
714
|
...state ? { state } : {},
|
|
715
715
|
...options.status ? { status: options.status } : {},
|
|
716
716
|
...options.limit ? { limit: options.limit } : {},
|
|
717
717
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
718
718
|
...options.includeConsumers ? { includeConsumers: true } : {}
|
|
719
719
|
});
|
|
720
|
-
|
|
720
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
721
721
|
json: options.json,
|
|
722
722
|
text: renderDeployedListText(
|
|
723
723
|
payload,
|
|
@@ -733,10 +733,10 @@ async function handleMonitorsCheck(definition, options) {
|
|
|
733
733
|
argLabel: "<definition>",
|
|
734
734
|
command: "deepline monitors check"
|
|
735
735
|
});
|
|
736
|
-
const payload = await new (0,
|
|
736
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.check(
|
|
737
737
|
body
|
|
738
738
|
);
|
|
739
|
-
|
|
739
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
740
740
|
}
|
|
741
741
|
function previewText(value) {
|
|
742
742
|
return typeof value === "string" && value.trim() ? value.trim() : "-";
|
|
@@ -794,22 +794,22 @@ async function handleMonitorsPreview(definition, options) {
|
|
|
794
794
|
if (limit !== void 0 && !Number.isInteger(limit)) {
|
|
795
795
|
throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
|
|
796
796
|
}
|
|
797
|
-
const wantsJson =
|
|
797
|
+
const wantsJson = _chunkBHGII2D6js.shouldEmitJson.call(void 0, options.json);
|
|
798
798
|
if (options.idempotencyKey === void 0 && wantsJson) {
|
|
799
799
|
throw new MonitorsUsageError(
|
|
800
800
|
"--json requires --idempotency-key <key>. Choose a new key for each new preview and keep it: rerunning with the same key returns the result without paying again."
|
|
801
801
|
);
|
|
802
802
|
}
|
|
803
803
|
const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
|
|
804
|
-
const progress =
|
|
804
|
+
const progress = _chunkM52JQSLKjs.createCliProgress.call(void 0, !wantsJson);
|
|
805
805
|
progress.phase(`Preview key: ${idempotencyKey}`);
|
|
806
806
|
try {
|
|
807
|
-
const payload = await new (0,
|
|
807
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.preview(
|
|
808
808
|
body,
|
|
809
809
|
{ idempotencyKey, ...limit === void 0 ? {} : { limit } }
|
|
810
810
|
);
|
|
811
811
|
progress.complete();
|
|
812
|
-
|
|
812
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
813
813
|
json: options.json,
|
|
814
814
|
text: renderMonitorPreviewText(payload)
|
|
815
815
|
});
|
|
@@ -854,7 +854,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
854
854
|
argLabel: "<definition>",
|
|
855
855
|
command: "deepline monitors deploy"
|
|
856
856
|
});
|
|
857
|
-
const client = new (0,
|
|
857
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
858
858
|
const definitionArg = body;
|
|
859
859
|
if (options.dryRun) {
|
|
860
860
|
const payload2 = await client.monitors.deploy(definitionArg, {
|
|
@@ -862,7 +862,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
862
862
|
});
|
|
863
863
|
const valid = payload2.valid !== false;
|
|
864
864
|
const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _23 => _23(payload2), 'optionalAccess', _24 => _24.identity_conflict]));
|
|
865
|
-
|
|
865
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
866
866
|
{ dry_run: true, ...payload2 },
|
|
867
867
|
{ json: options.json, text: renderMonitorDeployPlan(payload2) }
|
|
868
868
|
);
|
|
@@ -872,7 +872,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
872
872
|
return;
|
|
873
873
|
}
|
|
874
874
|
const payload = await client.monitors.deploy(definitionArg);
|
|
875
|
-
|
|
875
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
876
876
|
json: options.json,
|
|
877
877
|
text: renderMonitorDeployCompletion(payload)
|
|
878
878
|
});
|
|
@@ -884,29 +884,29 @@ async function handleMonitorsSync(definition, options) {
|
|
|
884
884
|
argLabel: "<definition>",
|
|
885
885
|
command: "deepline monitors sync"
|
|
886
886
|
});
|
|
887
|
-
const payload = await new (0,
|
|
887
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.sync(body, {
|
|
888
888
|
...options.dryRun ? { dryRun: true } : {},
|
|
889
889
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
|
|
890
890
|
});
|
|
891
891
|
if (options.dryRun) {
|
|
892
892
|
const plan = payload;
|
|
893
|
-
|
|
893
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
894
894
|
{ dry_run: true, ...plan },
|
|
895
895
|
{ json: options.json, text: renderMonitorDeployPlan(plan) }
|
|
896
896
|
);
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
|
|
899
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
900
900
|
json: options.json,
|
|
901
901
|
text: renderMonitorJob(payload)
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
async function handleScalarMonitorLifecycle(action, key, options) {
|
|
905
|
-
const payload = await new (0,
|
|
905
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors[action](key, {
|
|
906
906
|
...options.dryRun ? { dryRun: true } : {},
|
|
907
907
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
|
|
908
908
|
});
|
|
909
|
-
|
|
909
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
910
910
|
json: options.json,
|
|
911
911
|
text: options.dryRun ? void 0 : renderMonitorJob(payload)
|
|
912
912
|
});
|
|
@@ -995,11 +995,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
|
|
|
995
995
|
lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
|
|
996
996
|
);
|
|
997
997
|
}
|
|
998
|
-
const payload = await new (0,
|
|
998
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batch.deploy(
|
|
999
999
|
lint.normalized.monitors,
|
|
1000
1000
|
{ idempotencyKey }
|
|
1001
1001
|
);
|
|
1002
|
-
|
|
1002
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1003
1003
|
{
|
|
1004
1004
|
...payload,
|
|
1005
1005
|
idempotency_key: idempotencyKey,
|
|
@@ -1032,7 +1032,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1032
1032
|
);
|
|
1033
1033
|
}
|
|
1034
1034
|
if (options.dryRun) {
|
|
1035
|
-
|
|
1035
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1036
1036
|
{
|
|
1037
1037
|
ok: true,
|
|
1038
1038
|
dry_run: true,
|
|
@@ -1049,7 +1049,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1049
1049
|
"sync",
|
|
1050
1050
|
options.idempotencyKey
|
|
1051
1051
|
);
|
|
1052
|
-
const payload = await new (0,
|
|
1052
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batches.sync(
|
|
1053
1053
|
batchId,
|
|
1054
1054
|
lint.normalized.monitors,
|
|
1055
1055
|
{
|
|
@@ -1057,14 +1057,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
1057
1057
|
...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
|
|
1058
1058
|
}
|
|
1059
1059
|
);
|
|
1060
|
-
|
|
1060
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1061
1061
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
1062
1062
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
1063
1063
|
);
|
|
1064
1064
|
}
|
|
1065
1065
|
async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
1066
1066
|
if (options.dryRun) {
|
|
1067
|
-
|
|
1067
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1068
1068
|
{
|
|
1069
1069
|
ok: true,
|
|
1070
1070
|
dry_run: true,
|
|
@@ -1080,17 +1080,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
|
1080
1080
|
intent,
|
|
1081
1081
|
options.idempotencyKey
|
|
1082
1082
|
);
|
|
1083
|
-
const payload = await new (0,
|
|
1083
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batches[intent](batchId, {
|
|
1084
1084
|
idempotencyKey
|
|
1085
1085
|
});
|
|
1086
|
-
|
|
1086
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1087
1087
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
1088
1088
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
1089
1089
|
);
|
|
1090
1090
|
}
|
|
1091
1091
|
async function handleNamedMonitorBatchGet(batchId, options) {
|
|
1092
|
-
const payload = await new (0,
|
|
1093
|
-
|
|
1092
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batches.get(batchId);
|
|
1093
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
1094
1094
|
json: options.json,
|
|
1095
1095
|
text: renderMonitorJob(payload)
|
|
1096
1096
|
});
|
|
@@ -1104,7 +1104,7 @@ async function handleMonitorBatchLint(options) {
|
|
|
1104
1104
|
const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
|
|
1105
1105
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1106
1106
|
);
|
|
1107
|
-
|
|
1107
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1108
1108
|
{
|
|
1109
1109
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1110
1110
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1124,7 +1124,7 @@ async function handleMonitorFleetLint(options) {
|
|
|
1124
1124
|
const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
|
|
1125
1125
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1126
1126
|
);
|
|
1127
|
-
|
|
1127
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1128
1128
|
{
|
|
1129
1129
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1130
1130
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1136,32 +1136,32 @@ async function handleMonitorFleetLint(options) {
|
|
|
1136
1136
|
process.exitCode = 2;
|
|
1137
1137
|
}
|
|
1138
1138
|
async function handleMonitorJobGet(jobId, options) {
|
|
1139
|
-
const payload = await new (0,
|
|
1140
|
-
|
|
1139
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.jobs.get(jobId);
|
|
1140
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
1141
1141
|
json: options.json,
|
|
1142
1142
|
text: renderMonitorJob(payload)
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
async function handleMonitorJobWait(jobId, options) {
|
|
1146
|
-
const payload = await new (0,
|
|
1146
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.jobs.wait(jobId, {
|
|
1147
1147
|
timeoutMs: fleetTimeoutMs(options.timeout),
|
|
1148
1148
|
pollIntervalMs: FLEET_POLL_INTERVAL_MS
|
|
1149
1149
|
});
|
|
1150
|
-
|
|
1150
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
1151
1151
|
json: options.json,
|
|
1152
1152
|
text: renderMonitorJob(payload)
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
async function handleMonitorJobLogs(jobId, options) {
|
|
1156
1156
|
const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
|
|
1157
|
-
const payload = await new (0,
|
|
1157
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.jobs.logs(jobId, {
|
|
1158
1158
|
...limit === void 0 ? {} : { limit }
|
|
1159
1159
|
});
|
|
1160
|
-
|
|
1160
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
1161
1161
|
}
|
|
1162
1162
|
async function handleMonitorJobCancel(jobId, options) {
|
|
1163
|
-
const payload = await new (0,
|
|
1164
|
-
|
|
1163
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.jobs.cancel(jobId);
|
|
1164
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, {
|
|
1165
1165
|
json: options.json,
|
|
1166
1166
|
text: renderMonitorJob(payload)
|
|
1167
1167
|
});
|
|
@@ -1459,7 +1459,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1459
1459
|
`;
|
|
1460
1460
|
}
|
|
1461
1461
|
function reportFleetState(payload, error, options) {
|
|
1462
|
-
|
|
1462
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1463
1463
|
{
|
|
1464
1464
|
...payload,
|
|
1465
1465
|
code: error.code,
|
|
@@ -1574,7 +1574,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
|
|
|
1574
1574
|
_fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
|
|
1575
1575
|
`, "utf8");
|
|
1576
1576
|
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
|
|
1577
|
-
|
|
1577
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1578
1578
|
{ schemaVersion: 2, file, definition, next },
|
|
1579
1579
|
{
|
|
1580
1580
|
json: options.json,
|
|
@@ -1636,7 +1636,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1636
1636
|
'The Fleet definition has no id. Add a top-level "id" and re-run.'
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
|
-
const client = new (0,
|
|
1639
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
1640
1640
|
const payload = await client.monitors.fleets.sync(
|
|
1641
1641
|
_nullishCoalesce(definition, () => ( fleetId)),
|
|
1642
1642
|
{
|
|
@@ -1658,7 +1658,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1660
1660
|
if (!options.wait || options.dryRun) {
|
|
1661
|
-
|
|
1661
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, accepted, {
|
|
1662
1662
|
json: options.json,
|
|
1663
1663
|
text: renderFleetSync(payload, {
|
|
1664
1664
|
fleetId,
|
|
@@ -1684,7 +1684,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1684
1684
|
const status = fleetStatus(final);
|
|
1685
1685
|
const summary = renderFleetGet(final);
|
|
1686
1686
|
if (status === "converged") {
|
|
1687
|
-
|
|
1687
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1688
1688
|
return;
|
|
1689
1689
|
}
|
|
1690
1690
|
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
|
|
@@ -1717,14 +1717,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1717
1717
|
);
|
|
1718
1718
|
}
|
|
1719
1719
|
const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
|
|
1720
|
-
const client = new (0,
|
|
1720
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
1721
1721
|
const payload = await client.monitors.fleets.get(fleetId, {
|
|
1722
1722
|
...options.drift ? { drift: true } : {},
|
|
1723
1723
|
...limit !== void 0 ? { limit } : {}
|
|
1724
1724
|
});
|
|
1725
1725
|
const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
|
|
1726
1726
|
if (!options.check) {
|
|
1727
|
-
|
|
1727
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1728
1728
|
return;
|
|
1729
1729
|
}
|
|
1730
1730
|
const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
|
|
@@ -1732,7 +1732,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1732
1732
|
);
|
|
1733
1733
|
const unconverged = statuses.filter((status) => status !== "converged");
|
|
1734
1734
|
if (unconverged.length === 0) {
|
|
1735
|
-
|
|
1735
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1736
1736
|
return;
|
|
1737
1737
|
}
|
|
1738
1738
|
const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
|
|
@@ -1771,13 +1771,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1771
1771
|
${fleetReactivateCommandLine(fleetId, options)}`
|
|
1772
1772
|
);
|
|
1773
1773
|
}
|
|
1774
|
-
const client = new (0,
|
|
1774
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
1775
1775
|
const payload = await client.monitors.fleets.reactivate(fleetId, {
|
|
1776
1776
|
idempotencyKey
|
|
1777
1777
|
});
|
|
1778
1778
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1779
1779
|
if (!options.wait) {
|
|
1780
|
-
|
|
1780
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, accepted, {
|
|
1781
1781
|
json: options.json,
|
|
1782
1782
|
text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
|
|
1783
1783
|
idempotency key ${idempotencyKey}
|
|
@@ -1800,7 +1800,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1800
1800
|
const envelope = { ...accepted, ...final };
|
|
1801
1801
|
const text = renderFleetGet(final);
|
|
1802
1802
|
if (fleetStatus(final) === "converged") {
|
|
1803
|
-
|
|
1803
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
|
|
1804
1804
|
return;
|
|
1805
1805
|
}
|
|
1806
1806
|
reportFleetState(
|
|
@@ -1842,7 +1842,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
1845
|
-
const client = new (0,
|
|
1845
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
1846
1846
|
if (options.dryRun) {
|
|
1847
1847
|
const plan = await client.monitors.fleets.deactivate(fleetId, {
|
|
1848
1848
|
dryRun: true,
|
|
@@ -1852,7 +1852,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
|
1852
1852
|
command: "deepline monitors fleets deactivate",
|
|
1853
1853
|
mutation: "fleet deactivate"
|
|
1854
1854
|
});
|
|
1855
|
-
|
|
1855
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, plan, {
|
|
1856
1856
|
json: options.json,
|
|
1857
1857
|
text: renderFleetDeactivatePlan(plan, fleetId)
|
|
1858
1858
|
});
|
|
@@ -1890,7 +1890,7 @@ Preview the blast radius first:
|
|
|
1890
1890
|
});
|
|
1891
1891
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1892
1892
|
if (payload.already === true) {
|
|
1893
|
-
|
|
1893
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, accepted, {
|
|
1894
1894
|
json: options.json,
|
|
1895
1895
|
text: `Fleet ${fleetId} is already deactivated.
|
|
1896
1896
|
`
|
|
@@ -1902,7 +1902,7 @@ Preview the blast radius first:
|
|
|
1902
1902
|
` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
|
|
1903
1903
|
` : "");
|
|
1904
1904
|
if (!options.wait) {
|
|
1905
|
-
|
|
1905
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, accepted, {
|
|
1906
1906
|
json: options.json,
|
|
1907
1907
|
text: acceptedText
|
|
1908
1908
|
});
|
|
@@ -1924,7 +1924,7 @@ Preview the blast radius first:
|
|
|
1924
1924
|
const envelope = { ...accepted, ...final };
|
|
1925
1925
|
const summary = renderFleetGet(final);
|
|
1926
1926
|
if (fleetStatus(final) === "deactivated") {
|
|
1927
|
-
|
|
1927
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
1930
|
reportFleetState(
|
|
@@ -1955,7 +1955,7 @@ function handleMonitorFleetsOverview(options) {
|
|
|
1955
1955
|
"Agent notes:",
|
|
1956
1956
|
...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
|
|
1957
1957
|
];
|
|
1958
|
-
|
|
1958
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
1959
1959
|
{
|
|
1960
1960
|
schemaVersion: 1,
|
|
1961
1961
|
lifecycle: MONITOR_FLEET_LIFECYCLE,
|
|
@@ -2116,7 +2116,7 @@ function renderMonitorGet(payload) {
|
|
|
2116
2116
|
`;
|
|
2117
2117
|
}
|
|
2118
2118
|
async function handleMonitorsGet(key, options) {
|
|
2119
|
-
const client = new (0,
|
|
2119
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
2120
2120
|
const payload = await client.monitors.get(key);
|
|
2121
2121
|
const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
|
|
2122
2122
|
const dependents = boundPlays ? {
|
|
@@ -2124,24 +2124,24 @@ async function handleMonitorsGet(key, options) {
|
|
|
2124
2124
|
truncated: payload.consumer_health_truncated === true
|
|
2125
2125
|
} : await client.monitors.dependents(key);
|
|
2126
2126
|
const detail = { ...payload, dependents };
|
|
2127
|
-
|
|
2127
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, detail, {
|
|
2128
2128
|
json: options.json,
|
|
2129
2129
|
text: renderMonitorGet(detail)
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
async function handleMonitorsTest(key, payload, options) {
|
|
2133
2133
|
const explicitPayload = parseJsonObjectArg(payload, "<payload>");
|
|
2134
|
-
const result = await new (0,
|
|
2134
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.test(key, explicitPayload);
|
|
2135
2135
|
const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
|
|
2136
2136
|
mode: validation_only (no rows written, credits spent, or Plays dispatched)
|
|
2137
2137
|
persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
|
|
2138
2138
|
dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
|
|
2139
2139
|
`;
|
|
2140
|
-
|
|
2140
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
|
|
2141
2141
|
}
|
|
2142
2142
|
async function handleMonitorsValidate(key, options) {
|
|
2143
|
-
const result = await new (0,
|
|
2144
|
-
|
|
2143
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.validate(key);
|
|
2144
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
2145
2145
|
if (result.valid === false) process.exitCode = 7;
|
|
2146
2146
|
}
|
|
2147
2147
|
async function confirmMonitorDelete(key) {
|
|
@@ -2159,14 +2159,14 @@ async function confirmMonitorDelete(key) {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
2161
|
async function handleMonitorsDelete(key, options) {
|
|
2162
|
-
const client = new (0,
|
|
2162
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
2163
2163
|
if (options.dryRun) {
|
|
2164
2164
|
const payload2 = await client.monitors.delete(key, { dryRun: true });
|
|
2165
2165
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2166
2166
|
command: "deepline monitors delete",
|
|
2167
2167
|
mutation: "delete"
|
|
2168
2168
|
});
|
|
2169
|
-
|
|
2169
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload2, {
|
|
2170
2170
|
json: options.json,
|
|
2171
2171
|
text: renderMonitorDeletePlan(payload2, key)
|
|
2172
2172
|
});
|
|
@@ -2186,7 +2186,7 @@ async function handleMonitorsDelete(key, options) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
2188
|
const payload = await client.monitors.delete(key);
|
|
2189
|
-
|
|
2189
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2190
2190
|
}
|
|
2191
2191
|
async function handleMonitorsUpdate(key, patch, options) {
|
|
2192
2192
|
const body = resolveMonitorJsonBody({
|
|
@@ -2195,25 +2195,25 @@ async function handleMonitorsUpdate(key, patch, options) {
|
|
|
2195
2195
|
argLabel: "<patch>",
|
|
2196
2196
|
command: `deepline monitors update ${key}`
|
|
2197
2197
|
});
|
|
2198
|
-
const payload = await new (0,
|
|
2199
|
-
|
|
2198
|
+
const payload = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.update(key, body);
|
|
2199
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2200
2200
|
}
|
|
2201
2201
|
async function handleMonitorsReactivate(key, options) {
|
|
2202
|
-
const client = new (0,
|
|
2202
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
2203
2203
|
if (options.dryRun) {
|
|
2204
2204
|
const payload2 = await client.monitors.reactivate(key, { dryRun: true });
|
|
2205
2205
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2206
2206
|
command: "deepline monitors reactivate",
|
|
2207
2207
|
mutation: "reactivate"
|
|
2208
2208
|
});
|
|
2209
|
-
|
|
2209
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload2, {
|
|
2210
2210
|
json: options.json,
|
|
2211
2211
|
text: renderMonitorReactivatePlan(payload2, key)
|
|
2212
2212
|
});
|
|
2213
2213
|
return;
|
|
2214
2214
|
}
|
|
2215
2215
|
const payload = await client.monitors.reactivate(key);
|
|
2216
|
-
|
|
2216
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2217
2217
|
}
|
|
2218
2218
|
var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
|
|
2219
2219
|
function monitorHealthLine(health) {
|
|
@@ -2335,7 +2335,7 @@ function monitorHealthText(health) {
|
|
|
2335
2335
|
`;
|
|
2336
2336
|
}
|
|
2337
2337
|
async function handleMonitorsAudit(options) {
|
|
2338
|
-
const client = new (0,
|
|
2338
|
+
const client = new (0, _chunkVTODQWQAjs.DeeplineClient)();
|
|
2339
2339
|
const fleetId = _optionalChain([options, 'access', _75 => _75.fleet, 'optionalAccess', _76 => _76.trim, 'call', _77 => _77()]) || void 0;
|
|
2340
2340
|
const scope = fleetId ? { fleetId } : {};
|
|
2341
2341
|
let result = await client.monitors.audit(scope);
|
|
@@ -2379,7 +2379,7 @@ async function handleMonitorsAudit(options) {
|
|
|
2379
2379
|
"",
|
|
2380
2380
|
monitorHealthText(health)
|
|
2381
2381
|
].join("\n");
|
|
2382
|
-
|
|
2382
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
2383
2383
|
{ ...result, audit: { ...result.audit, totals }, health },
|
|
2384
2384
|
{ json: options.json, text }
|
|
2385
2385
|
);
|
|
@@ -2392,10 +2392,10 @@ async function handleMonitorsRepair(options) {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
async function handleMonitorsHealth(options) {
|
|
2394
2394
|
const fleetId = _optionalChain([options, 'access', _81 => _81.fleet, 'optionalAccess', _82 => _82.trim, 'call', _83 => _83()]) || void 0;
|
|
2395
|
-
const health = await new (0,
|
|
2395
|
+
const health = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.health(
|
|
2396
2396
|
fleetId ? { fleetId } : {}
|
|
2397
2397
|
);
|
|
2398
|
-
|
|
2398
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, health, {
|
|
2399
2399
|
json: options.json,
|
|
2400
2400
|
text: monitorHealthText(health)
|
|
2401
2401
|
});
|
|
@@ -2469,14 +2469,14 @@ async function handleMonitorBatchDeploy(options) {
|
|
|
2469
2469
|
"deploy",
|
|
2470
2470
|
options.idempotencyKey
|
|
2471
2471
|
);
|
|
2472
|
-
const result = await new (0,
|
|
2472
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batch.submit({
|
|
2473
2473
|
kind: "deploy",
|
|
2474
2474
|
manifestNdjson,
|
|
2475
2475
|
dryRun: options.dryRun === true,
|
|
2476
2476
|
idempotencyKey
|
|
2477
2477
|
});
|
|
2478
2478
|
const operation = result.operation;
|
|
2479
|
-
|
|
2479
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
2480
2480
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2481
2481
|
{
|
|
2482
2482
|
json: options.json,
|
|
@@ -2504,7 +2504,7 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2504
2504
|
kind,
|
|
2505
2505
|
options.idempotencyKey
|
|
2506
2506
|
);
|
|
2507
|
-
const result = await new (0,
|
|
2507
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batch.submit({
|
|
2508
2508
|
kind,
|
|
2509
2509
|
scope,
|
|
2510
2510
|
dryRun: options.dryRun === true,
|
|
@@ -2517,14 +2517,14 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2517
2517
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2518
2518
|
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2519
2519
|
].join("\n");
|
|
2520
|
-
|
|
2520
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
2521
2521
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2522
2522
|
{ json: options.json, text: `${text}
|
|
2523
2523
|
` }
|
|
2524
2524
|
);
|
|
2525
2525
|
}
|
|
2526
2526
|
async function handleMonitorBatchGet(operationId, options) {
|
|
2527
|
-
const result = await new (0,
|
|
2527
|
+
const result = await new (0, _chunkVTODQWQAjs.DeeplineClient)().monitors.batch.get(operationId, {
|
|
2528
2528
|
...options.cursor ? { cursor: options.cursor } : {}
|
|
2529
2529
|
});
|
|
2530
2530
|
const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
|
|
@@ -2536,7 +2536,7 @@ async function handleMonitorBatchGet(operationId, options) {
|
|
|
2536
2536
|
`results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
|
|
2537
2537
|
] : []
|
|
2538
2538
|
].join("\n");
|
|
2539
|
-
|
|
2539
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
|
|
2540
2540
|
` });
|
|
2541
2541
|
}
|
|
2542
2542
|
function registerMonitorsCommands(program) {
|