deepline 0.3.424 → 0.3.425
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 +18 -0
- package/dist/cli/auth-PTKVFEIT.js +40 -0
- package/dist/cli/{auth-QITAQMHF.mjs → auth-RF5WGHBC.mjs} +4 -4
- package/dist/cli/{billing-N5AOFDSU.js → billing-E4G4QVR5.js} +73 -73
- package/dist/cli/{billing-UX2GH5L2.mjs → billing-P4RUJ4UT.mjs} +4 -4
- package/dist/cli/{chunk-YA3LMTLU.js → chunk-2ACYJZHU.js} +1 -1
- package/dist/cli/{chunk-7VC7STG5.mjs → chunk-2J2I5A7K.mjs} +4 -4
- package/dist/cli/{chunk-LSZZVHQP.js → chunk-53DTOGNJ.js} +2 -2
- package/dist/cli/{chunk-DD6MM6WX.js → chunk-7F6KTNUP.js} +6 -6
- package/dist/cli/{chunk-7Y5M5YE3.mjs → chunk-BFVDDMRH.mjs} +2 -2
- package/dist/cli/{chunk-3VB5DQ7Y.js → chunk-CSP5CXTC.js} +20 -20
- package/dist/cli/{chunk-HBW6PEVG.mjs → chunk-E7RPU3VG.mjs} +2 -2
- package/dist/cli/{chunk-ZMU2DDID.mjs → chunk-FDM3BUIB.mjs} +5 -5
- package/dist/cli/{chunk-UPH6UNUI.mjs → chunk-HT3UBTXV.mjs} +1 -1
- package/dist/cli/{chunk-22XGRO2M.js → chunk-IJPWBQEA.js} +8 -8
- package/dist/cli/{chunk-7W4N6VRE.js → chunk-J6FKYOFB.js} +35 -35
- package/dist/cli/{chunk-M67UCQKW.mjs → chunk-MWR452MP.mjs} +3 -3
- package/dist/cli/{chunk-UTF57UBW.js → chunk-NC5DYZ36.js} +6 -6
- package/dist/cli/{chunk-7KNBC4RJ.mjs → chunk-NUET45RU.mjs} +1 -1
- package/dist/cli/{chunk-UOZCQPD4.mjs → chunk-ODO6ZIHB.mjs} +2 -2
- package/dist/cli/{chunk-VC5NKF4B.mjs → chunk-P7SNOFPA.mjs} +3 -3
- package/dist/cli/{chunk-CJD5QKYK.js → chunk-RH2N5JUT.js} +26 -26
- package/dist/cli/{chunk-MFXQVT7P.mjs → chunk-RTFXD5ZX.mjs} +3 -3
- package/dist/cli/{chunk-OWWFCA7A.mjs → chunk-S5FCTT3E.mjs} +1 -1
- package/dist/cli/{chunk-OSNDC3VF.js → chunk-SBPPCMZD.js} +16 -16
- package/dist/cli/{chunk-QP5ATTMC.js → chunk-U42S2GAF.js} +4 -4
- package/dist/cli/{chunk-5OBCPN2C.mjs → chunk-UDRNGM3S.mjs} +2 -2
- package/dist/cli/{chunk-M2VXDQI2.js → chunk-UXLJZ4XQ.js} +10 -10
- package/dist/cli/{chunk-3O7KATMQ.mjs → chunk-VYO6TLWN.mjs} +1 -1
- package/dist/cli/{chunk-3FQUUVN2.mjs → chunk-WNXYRODJ.mjs} +1 -1
- package/dist/cli/{chunk-PNGJIAJ3.js → chunk-WZLGL37A.js} +50 -50
- package/dist/cli/{chunk-5MD5I4MM.mjs → chunk-XC3J4P5W.mjs} +1 -1
- package/dist/cli/{chunk-FJ5U2IZY.mjs → chunk-XLEA2CGA.mjs} +8 -8
- package/dist/cli/{chunk-RISEING7.js → chunk-XN25EAP6.js} +2 -2
- package/dist/cli/{chunk-YMASNIC5.js → chunk-XO5RJ3PF.js} +79 -79
- package/dist/cli/{chunk-5YLEB4CL.js → chunk-XSC2FG4V.js} +8 -8
- package/dist/cli/{chunk-F3MMA7JY.js → chunk-ZYUKNQO4.js} +52 -52
- package/dist/cli/{csv-RL53NPRV.js → csv-P32NU7IS.js} +12 -12
- package/dist/cli/{csv-NM5IHLVM.mjs → csv-XKCR2MB6.mjs} +3 -3
- package/dist/cli/{db-RJCFUM2J.js → db-AHFQJ7ZN.js} +25 -25
- package/dist/cli/{db-FZTIS4QG.mjs → db-ZJQPREBZ.mjs} +4 -4
- package/dist/cli/{describe-T77IEILZ.mjs → describe-IZNT6RGY.mjs} +12 -12
- package/dist/cli/{describe-A2MGAI3Y.js → describe-YE2WIS23.js} +16 -16
- package/dist/cli/{executions-R6UPRZ5N.js → executions-EZDFYAWW.js} +6 -6
- package/dist/cli/{executions-AMQK53QX.mjs → executions-WLRZODFZ.mjs} +4 -4
- package/dist/cli/{feedback-JFT536KI.js → feedback-A62XZMY2.js} +7 -7
- package/dist/cli/{feedback-BA5ZHVCZ.mjs → feedback-M6TNBIUP.mjs} +3 -3
- package/dist/cli/git-62FZH46U.js +24 -0
- package/dist/cli/{git-5ONARXFO.mjs → git-XYDEA57G.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-WT7M7WYD.js → legacy-noops-D34K4LWU.js} +7 -7
- package/dist/cli/{legacy-noops-7J4K6QUX.mjs → legacy-noops-S4XSVXIN.mjs} +4 -4
- package/dist/cli/{monitors-YH6PKEIW.js → monitors-VUSDOVGA.js} +84 -84
- package/dist/cli/{monitors-N3WDXW7H.mjs → monitors-YDHQJMMQ.mjs} +4 -4
- package/dist/cli/{org-2V5ELSYS.mjs → org-EF7Q22GZ.mjs} +4 -4
- package/dist/cli/{org-KGYHMT5P.js → org-IRWGFW3I.js} +64 -64
- package/dist/cli/{play-2JOQQRZI.js → play-D54PEGMK.js} +283 -283
- package/dist/cli/{play-CL2LCBAF.mjs → play-Y4O3WFYH.mjs} +10 -10
- package/dist/cli/{providers-VIP6MCWC.js → providers-2NPEOE22.js} +7 -7
- package/dist/cli/{providers-I7EEPWNW.mjs → providers-PX672XRG.mjs} +4 -4
- package/dist/cli/{quickstart-33WC2KWE.js → quickstart-3XXUIDVF.js} +5 -5
- package/dist/cli/{quickstart-VRBKQODE.mjs → quickstart-KSFYOZGU.mjs} +3 -3
- package/dist/cli/{search-7TDSKXOO.mjs → search-DIATDWNB.mjs} +5 -5
- package/dist/cli/search-TW7PGWYR.js +30 -0
- package/dist/cli/{secrets-DGLCIN7Y.mjs → secrets-HSZNYSHN.mjs} +4 -4
- package/dist/cli/{secrets-TQH5FXAC.js → secrets-S7J53N4D.js} +13 -13
- package/dist/cli/{sessions-D6QGKQ2G.mjs → sessions-BLJ5AZ2O.mjs} +4 -4
- package/dist/cli/{sessions-4D4UDPIS.js → sessions-ECOJWISN.js} +5 -5
- package/dist/cli/{settings-6HVXBCVR.mjs → settings-4X2OSKMC.mjs} +8 -8
- package/dist/cli/{settings-V3QRG4AO.js → settings-BMKHMIN2.js} +75 -75
- package/dist/cli/{setup-6WP7D5I3.js → setup-GOT6Y2E3.js} +42 -42
- package/dist/cli/{setup-CSJ3HSL7.mjs → setup-NUEJ22OI.mjs} +7 -7
- package/dist/cli/skills-DCOMWBDX.js +29 -0
- package/dist/cli/{skills-2MTWP4PS.mjs → skills-FCLEKW4O.mjs} +5 -5
- package/dist/cli/{tools-GAR3BWB6.mjs → tools-IVCHIOIY.mjs} +12 -12
- package/dist/cli/tools-OAYJGYL7.js +44 -0
- package/dist/cli/update-2DBL37AU.js +31 -0
- package/dist/cli/{update-XV3WV3MU.mjs → update-Y5RO5LSX.mjs} +7 -7
- package/dist/cli/{workflow-DTZAWSB2.mjs → workflow-CSVQCXJZ.mjs} +5 -5
- package/dist/cli/{workflow-WNE7ORMT.js → workflow-XGN3FZAE.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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-MN7MWTFR.js +0 -40
- package/dist/cli/git-NHQR3NKF.js +0 -24
- package/dist/cli/search-A6RZZ4LK.js +0 -30
- package/dist/cli/skills-QOYOARZT.js +0 -29
- package/dist/cli/tools-MGEKAIOU.js +0 -44
- package/dist/cli/update-HMZCLFLZ.js +0 -31
|
@@ -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 _chunkUXLJZ4XQjs = require('./chunk-UXLJZ4XQ.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-2H4EY7KH.js');
|
|
7
7
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -19,8 +19,8 @@ var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
22
|
+
var _chunk7F6KTNUPjs = require('./chunk-7F6KTNUP.js');
|
|
23
|
+
require('./chunk-U42S2GAF.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
|
|
@@ -28,7 +28,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-2ACYJZHU.js');
|
|
32
32
|
require('./chunk-OG64RBAC.js');
|
|
33
33
|
require('./chunk-COGTRVWW.js');
|
|
34
34
|
|
|
@@ -106,10 +106,10 @@ function reportMonitorsFailure(error, options) {
|
|
|
106
106
|
const exitCode = monitorsErrorExitCode(error);
|
|
107
107
|
const next = monitorsFailureNextCommand(error, exitCode, options);
|
|
108
108
|
const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
|
|
109
|
-
const wantsJson =
|
|
109
|
+
const wantsJson = _chunk7F6KTNUPjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
|
|
110
110
|
if (wantsJson) {
|
|
111
|
-
const payload =
|
|
112
|
-
|
|
111
|
+
const payload = _chunk7F6KTNUPjs.errorToJsonPayload.call(void 0, error);
|
|
112
|
+
_chunk7F6KTNUPjs.printJson.call(void 0, {
|
|
113
113
|
ok: false,
|
|
114
114
|
exitCode,
|
|
115
115
|
...next ? { next } : {},
|
|
@@ -524,14 +524,14 @@ Preview the plan first with:
|
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
async function handleMonitorsStatus(options) {
|
|
527
|
-
const payload = await new (0,
|
|
527
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.status();
|
|
528
528
|
const hasAccess = payload.has_access === true;
|
|
529
529
|
const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
|
|
530
530
|
const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
|
|
531
531
|
${reason}` : ""}
|
|
532
532
|
` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
|
|
533
533
|
`;
|
|
534
|
-
|
|
534
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
535
535
|
{ has_access: hasAccess, ...reason ? { reason } : {} },
|
|
536
536
|
{ json: options.json, text }
|
|
537
537
|
);
|
|
@@ -597,14 +597,14 @@ async function handleMonitorsAvailable(toolId, options) {
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
const tool = _nullishCoalesce(toolId, () => ( options.tool));
|
|
600
|
-
const payload = await new (0,
|
|
600
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.available(tool, {
|
|
601
601
|
...options.provider ? { provider: options.provider } : {},
|
|
602
602
|
...options.search ? { search: options.search } : {},
|
|
603
603
|
...options.limit ? { limit: options.limit } : {},
|
|
604
604
|
...options.full ? { full: true } : {},
|
|
605
605
|
...options.compact ? { compact: true } : {}
|
|
606
606
|
});
|
|
607
|
-
|
|
607
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
608
608
|
json: options.json,
|
|
609
609
|
// Human list view shows id + name + deployed_count ("deployed: N") so
|
|
610
610
|
// can-deploy vs already-deployed is visible in one view. Describing a
|
|
@@ -707,14 +707,14 @@ async function handleMonitorsList(options) {
|
|
|
707
707
|
"`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
|
-
const payload = await new (0,
|
|
710
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.list({
|
|
711
711
|
...state ? { state } : {},
|
|
712
712
|
...options.status ? { status: options.status } : {},
|
|
713
713
|
...options.limit ? { limit: options.limit } : {},
|
|
714
714
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
715
715
|
...options.includeConsumers ? { includeConsumers: true } : {}
|
|
716
716
|
});
|
|
717
|
-
|
|
717
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
718
718
|
json: options.json,
|
|
719
719
|
text: renderDeployedListText(
|
|
720
720
|
payload,
|
|
@@ -730,10 +730,10 @@ async function handleMonitorsCheck(definition, options) {
|
|
|
730
730
|
argLabel: "<definition>",
|
|
731
731
|
command: "deepline monitors check"
|
|
732
732
|
});
|
|
733
|
-
const payload = await new (0,
|
|
733
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.check(
|
|
734
734
|
body
|
|
735
735
|
);
|
|
736
|
-
|
|
736
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
737
737
|
}
|
|
738
738
|
async function handleMonitorsDeploy(definition, options) {
|
|
739
739
|
const body = resolveMonitorJsonBody({
|
|
@@ -742,7 +742,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
742
742
|
argLabel: "<definition>",
|
|
743
743
|
command: "deepline monitors deploy"
|
|
744
744
|
});
|
|
745
|
-
const client = new (0,
|
|
745
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
746
746
|
const definitionArg = body;
|
|
747
747
|
if (options.dryRun) {
|
|
748
748
|
const payload2 = await client.monitors.deploy(definitionArg, {
|
|
@@ -750,7 +750,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
750
750
|
});
|
|
751
751
|
const valid = payload2.valid !== false;
|
|
752
752
|
const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _21 => _21(payload2), 'optionalAccess', _22 => _22.identity_conflict]));
|
|
753
|
-
|
|
753
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
754
754
|
{ dry_run: true, ...payload2 },
|
|
755
755
|
{ json: options.json, text: renderMonitorDeployPlan(payload2) }
|
|
756
756
|
);
|
|
@@ -760,7 +760,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
const payload = await client.monitors.deploy(definitionArg);
|
|
763
|
-
|
|
763
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
764
764
|
json: options.json,
|
|
765
765
|
text: renderMonitorDeployCompletion(payload)
|
|
766
766
|
});
|
|
@@ -772,29 +772,29 @@ async function handleMonitorsSync(definition, options) {
|
|
|
772
772
|
argLabel: "<definition>",
|
|
773
773
|
command: "deepline monitors sync"
|
|
774
774
|
});
|
|
775
|
-
const payload = await new (0,
|
|
775
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.sync(body, {
|
|
776
776
|
...options.dryRun ? { dryRun: true } : {},
|
|
777
777
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
|
|
778
778
|
});
|
|
779
779
|
if (options.dryRun) {
|
|
780
780
|
const plan = payload;
|
|
781
|
-
|
|
781
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
782
782
|
{ dry_run: true, ...plan },
|
|
783
783
|
{ json: options.json, text: renderMonitorDeployPlan(plan) }
|
|
784
784
|
);
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
|
-
|
|
787
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
788
788
|
json: options.json,
|
|
789
789
|
text: renderMonitorJob(payload)
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
async function handleScalarMonitorLifecycle(action, key, options) {
|
|
793
|
-
const payload = await new (0,
|
|
793
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors[action](key, {
|
|
794
794
|
...options.dryRun ? { dryRun: true } : {},
|
|
795
795
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
|
|
796
796
|
});
|
|
797
|
-
|
|
797
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
798
798
|
json: options.json,
|
|
799
799
|
text: options.dryRun ? void 0 : renderMonitorJob(payload)
|
|
800
800
|
});
|
|
@@ -883,11 +883,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
|
|
|
883
883
|
lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
|
|
884
884
|
);
|
|
885
885
|
}
|
|
886
|
-
const payload = await new (0,
|
|
886
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batch.deploy(
|
|
887
887
|
lint.normalized.monitors,
|
|
888
888
|
{ idempotencyKey }
|
|
889
889
|
);
|
|
890
|
-
|
|
890
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
891
891
|
{
|
|
892
892
|
...payload,
|
|
893
893
|
idempotency_key: idempotencyKey,
|
|
@@ -920,7 +920,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
920
920
|
);
|
|
921
921
|
}
|
|
922
922
|
if (options.dryRun) {
|
|
923
|
-
|
|
923
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
924
924
|
{
|
|
925
925
|
ok: true,
|
|
926
926
|
dry_run: true,
|
|
@@ -937,7 +937,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
937
937
|
"sync",
|
|
938
938
|
options.idempotencyKey
|
|
939
939
|
);
|
|
940
|
-
const payload = await new (0,
|
|
940
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batches.sync(
|
|
941
941
|
batchId,
|
|
942
942
|
lint.normalized.monitors,
|
|
943
943
|
{
|
|
@@ -945,14 +945,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
945
945
|
...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
|
|
946
946
|
}
|
|
947
947
|
);
|
|
948
|
-
|
|
948
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
949
949
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
950
950
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
951
951
|
);
|
|
952
952
|
}
|
|
953
953
|
async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
954
954
|
if (options.dryRun) {
|
|
955
|
-
|
|
955
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
956
956
|
{
|
|
957
957
|
ok: true,
|
|
958
958
|
dry_run: true,
|
|
@@ -968,17 +968,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
|
968
968
|
intent,
|
|
969
969
|
options.idempotencyKey
|
|
970
970
|
);
|
|
971
|
-
const payload = await new (0,
|
|
971
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batches[intent](batchId, {
|
|
972
972
|
idempotencyKey
|
|
973
973
|
});
|
|
974
|
-
|
|
974
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
975
975
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
976
976
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
977
977
|
);
|
|
978
978
|
}
|
|
979
979
|
async function handleNamedMonitorBatchGet(batchId, options) {
|
|
980
|
-
const payload = await new (0,
|
|
981
|
-
|
|
980
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batches.get(batchId);
|
|
981
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
982
982
|
json: options.json,
|
|
983
983
|
text: renderMonitorJob(payload)
|
|
984
984
|
});
|
|
@@ -992,7 +992,7 @@ async function handleMonitorBatchLint(options) {
|
|
|
992
992
|
const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
|
|
993
993
|
readMonitorDefinitionsJsonFile(options.file)
|
|
994
994
|
);
|
|
995
|
-
|
|
995
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
996
996
|
{
|
|
997
997
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
998
998
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1012,7 +1012,7 @@ async function handleMonitorFleetLint(options) {
|
|
|
1012
1012
|
const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
|
|
1013
1013
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1014
1014
|
);
|
|
1015
|
-
|
|
1015
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
1016
1016
|
{
|
|
1017
1017
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1018
1018
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1024,32 +1024,32 @@ async function handleMonitorFleetLint(options) {
|
|
|
1024
1024
|
process.exitCode = 2;
|
|
1025
1025
|
}
|
|
1026
1026
|
async function handleMonitorJobGet(jobId, options) {
|
|
1027
|
-
const payload = await new (0,
|
|
1028
|
-
|
|
1027
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.jobs.get(jobId);
|
|
1028
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
1029
1029
|
json: options.json,
|
|
1030
1030
|
text: renderMonitorJob(payload)
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
async function handleMonitorJobWait(jobId, options) {
|
|
1034
|
-
const payload = await new (0,
|
|
1034
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.jobs.wait(jobId, {
|
|
1035
1035
|
timeoutMs: fleetTimeoutMs(options.timeout),
|
|
1036
1036
|
pollIntervalMs: FLEET_POLL_INTERVAL_MS
|
|
1037
1037
|
});
|
|
1038
|
-
|
|
1038
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
1039
1039
|
json: options.json,
|
|
1040
1040
|
text: renderMonitorJob(payload)
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
1043
|
async function handleMonitorJobLogs(jobId, options) {
|
|
1044
1044
|
const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
|
|
1045
|
-
const payload = await new (0,
|
|
1045
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.jobs.logs(jobId, {
|
|
1046
1046
|
...limit === void 0 ? {} : { limit }
|
|
1047
1047
|
});
|
|
1048
|
-
|
|
1048
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
1049
1049
|
}
|
|
1050
1050
|
async function handleMonitorJobCancel(jobId, options) {
|
|
1051
|
-
const payload = await new (0,
|
|
1052
|
-
|
|
1051
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.jobs.cancel(jobId);
|
|
1052
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, {
|
|
1053
1053
|
json: options.json,
|
|
1054
1054
|
text: renderMonitorJob(payload)
|
|
1055
1055
|
});
|
|
@@ -1347,7 +1347,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1347
1347
|
`;
|
|
1348
1348
|
}
|
|
1349
1349
|
function reportFleetState(payload, error, options) {
|
|
1350
|
-
|
|
1350
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
1351
1351
|
{
|
|
1352
1352
|
...payload,
|
|
1353
1353
|
code: error.code,
|
|
@@ -1462,7 +1462,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
|
|
|
1462
1462
|
_fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
|
|
1463
1463
|
`, "utf8");
|
|
1464
1464
|
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
|
|
1465
|
-
|
|
1465
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
1466
1466
|
{ schemaVersion: 2, file, definition, next },
|
|
1467
1467
|
{
|
|
1468
1468
|
json: options.json,
|
|
@@ -1524,7 +1524,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1524
1524
|
'The Fleet definition has no id. Add a top-level "id" and re-run.'
|
|
1525
1525
|
);
|
|
1526
1526
|
}
|
|
1527
|
-
const client = new (0,
|
|
1527
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
1528
1528
|
const payload = await client.monitors.fleets.sync(
|
|
1529
1529
|
_nullishCoalesce(definition, () => ( fleetId)),
|
|
1530
1530
|
{
|
|
@@ -1546,7 +1546,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1548
1548
|
if (!options.wait || options.dryRun) {
|
|
1549
|
-
|
|
1549
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1550
1550
|
json: options.json,
|
|
1551
1551
|
text: renderFleetSync(payload, {
|
|
1552
1552
|
fleetId,
|
|
@@ -1572,7 +1572,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1572
1572
|
const status = fleetStatus(final);
|
|
1573
1573
|
const summary = renderFleetGet(final);
|
|
1574
1574
|
if (status === "converged") {
|
|
1575
|
-
|
|
1575
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1576
1576
|
return;
|
|
1577
1577
|
}
|
|
1578
1578
|
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
|
|
@@ -1605,14 +1605,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1605
1605
|
);
|
|
1606
1606
|
}
|
|
1607
1607
|
const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
|
|
1608
|
-
const client = new (0,
|
|
1608
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
1609
1609
|
const payload = await client.monitors.fleets.get(fleetId, {
|
|
1610
1610
|
...options.drift ? { drift: true } : {},
|
|
1611
1611
|
...limit !== void 0 ? { limit } : {}
|
|
1612
1612
|
});
|
|
1613
1613
|
const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
|
|
1614
1614
|
if (!options.check) {
|
|
1615
|
-
|
|
1615
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1616
1616
|
return;
|
|
1617
1617
|
}
|
|
1618
1618
|
const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
|
|
@@ -1620,7 +1620,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1620
1620
|
);
|
|
1621
1621
|
const unconverged = statuses.filter((status) => status !== "converged");
|
|
1622
1622
|
if (unconverged.length === 0) {
|
|
1623
|
-
|
|
1623
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
|
|
@@ -1659,13 +1659,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1659
1659
|
${fleetReactivateCommandLine(fleetId, options)}`
|
|
1660
1660
|
);
|
|
1661
1661
|
}
|
|
1662
|
-
const client = new (0,
|
|
1662
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
1663
1663
|
const payload = await client.monitors.fleets.reactivate(fleetId, {
|
|
1664
1664
|
idempotencyKey
|
|
1665
1665
|
});
|
|
1666
1666
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1667
1667
|
if (!options.wait) {
|
|
1668
|
-
|
|
1668
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1669
1669
|
json: options.json,
|
|
1670
1670
|
text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
|
|
1671
1671
|
idempotency key ${idempotencyKey}
|
|
@@ -1688,7 +1688,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1688
1688
|
const envelope = { ...accepted, ...final };
|
|
1689
1689
|
const text = renderFleetGet(final);
|
|
1690
1690
|
if (fleetStatus(final) === "converged") {
|
|
1691
|
-
|
|
1691
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
|
|
1692
1692
|
return;
|
|
1693
1693
|
}
|
|
1694
1694
|
reportFleetState(
|
|
@@ -1730,7 +1730,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
1733
|
-
const client = new (0,
|
|
1733
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
1734
1734
|
if (options.dryRun) {
|
|
1735
1735
|
const plan = await client.monitors.fleets.deactivate(fleetId, {
|
|
1736
1736
|
dryRun: true,
|
|
@@ -1740,7 +1740,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
|
1740
1740
|
command: "deepline monitors fleets deactivate",
|
|
1741
1741
|
mutation: "fleet deactivate"
|
|
1742
1742
|
});
|
|
1743
|
-
|
|
1743
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, plan, {
|
|
1744
1744
|
json: options.json,
|
|
1745
1745
|
text: renderFleetDeactivatePlan(plan, fleetId)
|
|
1746
1746
|
});
|
|
@@ -1778,7 +1778,7 @@ Preview the blast radius first:
|
|
|
1778
1778
|
});
|
|
1779
1779
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1780
1780
|
if (payload.already === true) {
|
|
1781
|
-
|
|
1781
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1782
1782
|
json: options.json,
|
|
1783
1783
|
text: `Fleet ${fleetId} is already deactivated.
|
|
1784
1784
|
`
|
|
@@ -1790,7 +1790,7 @@ Preview the blast radius first:
|
|
|
1790
1790
|
` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
|
|
1791
1791
|
` : "");
|
|
1792
1792
|
if (!options.wait) {
|
|
1793
|
-
|
|
1793
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1794
1794
|
json: options.json,
|
|
1795
1795
|
text: acceptedText
|
|
1796
1796
|
});
|
|
@@ -1812,7 +1812,7 @@ Preview the blast radius first:
|
|
|
1812
1812
|
const envelope = { ...accepted, ...final };
|
|
1813
1813
|
const summary = renderFleetGet(final);
|
|
1814
1814
|
if (fleetStatus(final) === "deactivated") {
|
|
1815
|
-
|
|
1815
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1816
1816
|
return;
|
|
1817
1817
|
}
|
|
1818
1818
|
reportFleetState(
|
|
@@ -1843,7 +1843,7 @@ function handleMonitorFleetsOverview(options) {
|
|
|
1843
1843
|
"Agent notes:",
|
|
1844
1844
|
...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
|
|
1845
1845
|
];
|
|
1846
|
-
|
|
1846
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
1847
1847
|
{
|
|
1848
1848
|
schemaVersion: 1,
|
|
1849
1849
|
lifecycle: MONITOR_FLEET_LIFECYCLE,
|
|
@@ -2004,7 +2004,7 @@ function renderMonitorGet(payload) {
|
|
|
2004
2004
|
`;
|
|
2005
2005
|
}
|
|
2006
2006
|
async function handleMonitorsGet(key, options) {
|
|
2007
|
-
const client = new (0,
|
|
2007
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
2008
2008
|
const payload = await client.monitors.get(key);
|
|
2009
2009
|
const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
|
|
2010
2010
|
const dependents = boundPlays ? {
|
|
@@ -2012,24 +2012,24 @@ async function handleMonitorsGet(key, options) {
|
|
|
2012
2012
|
truncated: payload.consumer_health_truncated === true
|
|
2013
2013
|
} : await client.monitors.dependents(key);
|
|
2014
2014
|
const detail = { ...payload, dependents };
|
|
2015
|
-
|
|
2015
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, detail, {
|
|
2016
2016
|
json: options.json,
|
|
2017
2017
|
text: renderMonitorGet(detail)
|
|
2018
2018
|
});
|
|
2019
2019
|
}
|
|
2020
2020
|
async function handleMonitorsTest(key, payload, options) {
|
|
2021
2021
|
const explicitPayload = parseJsonObjectArg(payload, "<payload>");
|
|
2022
|
-
const result = await new (0,
|
|
2022
|
+
const result = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.test(key, explicitPayload);
|
|
2023
2023
|
const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
|
|
2024
2024
|
mode: validation_only (no rows written, credits spent, or Plays dispatched)
|
|
2025
2025
|
persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
|
|
2026
2026
|
dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
|
|
2027
2027
|
`;
|
|
2028
|
-
|
|
2028
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
|
|
2029
2029
|
}
|
|
2030
2030
|
async function handleMonitorsValidate(key, options) {
|
|
2031
|
-
const result = await new (0,
|
|
2032
|
-
|
|
2031
|
+
const result = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.validate(key);
|
|
2032
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
2033
2033
|
if (result.valid === false) process.exitCode = 7;
|
|
2034
2034
|
}
|
|
2035
2035
|
async function confirmMonitorDelete(key) {
|
|
@@ -2047,14 +2047,14 @@ async function confirmMonitorDelete(key) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
async function handleMonitorsDelete(key, options) {
|
|
2050
|
-
const client = new (0,
|
|
2050
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
2051
2051
|
if (options.dryRun) {
|
|
2052
2052
|
const payload2 = await client.monitors.delete(key, { dryRun: true });
|
|
2053
2053
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2054
2054
|
command: "deepline monitors delete",
|
|
2055
2055
|
mutation: "delete"
|
|
2056
2056
|
});
|
|
2057
|
-
|
|
2057
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2058
2058
|
json: options.json,
|
|
2059
2059
|
text: renderMonitorDeletePlan(payload2, key)
|
|
2060
2060
|
});
|
|
@@ -2074,7 +2074,7 @@ async function handleMonitorsDelete(key, options) {
|
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
const payload = await client.monitors.delete(key);
|
|
2077
|
-
|
|
2077
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2078
2078
|
}
|
|
2079
2079
|
async function handleMonitorsUpdate(key, patch, options) {
|
|
2080
2080
|
const body = resolveMonitorJsonBody({
|
|
@@ -2083,25 +2083,25 @@ async function handleMonitorsUpdate(key, patch, options) {
|
|
|
2083
2083
|
argLabel: "<patch>",
|
|
2084
2084
|
command: `deepline monitors update ${key}`
|
|
2085
2085
|
});
|
|
2086
|
-
const payload = await new (0,
|
|
2087
|
-
|
|
2086
|
+
const payload = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.update(key, body);
|
|
2087
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2088
2088
|
}
|
|
2089
2089
|
async function handleMonitorsReactivate(key, options) {
|
|
2090
|
-
const client = new (0,
|
|
2090
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
2091
2091
|
if (options.dryRun) {
|
|
2092
2092
|
const payload2 = await client.monitors.reactivate(key, { dryRun: true });
|
|
2093
2093
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2094
2094
|
command: "deepline monitors reactivate",
|
|
2095
2095
|
mutation: "reactivate"
|
|
2096
2096
|
});
|
|
2097
|
-
|
|
2097
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2098
2098
|
json: options.json,
|
|
2099
2099
|
text: renderMonitorReactivatePlan(payload2, key)
|
|
2100
2100
|
});
|
|
2101
2101
|
return;
|
|
2102
2102
|
}
|
|
2103
2103
|
const payload = await client.monitors.reactivate(key);
|
|
2104
|
-
|
|
2104
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2105
2105
|
}
|
|
2106
2106
|
var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
|
|
2107
2107
|
function monitorHealthLine(health) {
|
|
@@ -2223,7 +2223,7 @@ function monitorHealthText(health) {
|
|
|
2223
2223
|
`;
|
|
2224
2224
|
}
|
|
2225
2225
|
async function handleMonitorsAudit(options) {
|
|
2226
|
-
const client = new (0,
|
|
2226
|
+
const client = new (0, _chunkUXLJZ4XQjs.DeeplineClient)();
|
|
2227
2227
|
const fleetId = _optionalChain([options, 'access', _73 => _73.fleet, 'optionalAccess', _74 => _74.trim, 'call', _75 => _75()]) || void 0;
|
|
2228
2228
|
const scope = fleetId ? { fleetId } : {};
|
|
2229
2229
|
let result = await client.monitors.audit(scope);
|
|
@@ -2267,7 +2267,7 @@ async function handleMonitorsAudit(options) {
|
|
|
2267
2267
|
"",
|
|
2268
2268
|
monitorHealthText(health)
|
|
2269
2269
|
].join("\n");
|
|
2270
|
-
|
|
2270
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
2271
2271
|
{ ...result, audit: { ...result.audit, totals }, health },
|
|
2272
2272
|
{ json: options.json, text }
|
|
2273
2273
|
);
|
|
@@ -2280,10 +2280,10 @@ async function handleMonitorsRepair(options) {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
async function handleMonitorsHealth(options) {
|
|
2282
2282
|
const fleetId = _optionalChain([options, 'access', _79 => _79.fleet, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || void 0;
|
|
2283
|
-
const health = await new (0,
|
|
2283
|
+
const health = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.health(
|
|
2284
2284
|
fleetId ? { fleetId } : {}
|
|
2285
2285
|
);
|
|
2286
|
-
|
|
2286
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, health, {
|
|
2287
2287
|
json: options.json,
|
|
2288
2288
|
text: monitorHealthText(health)
|
|
2289
2289
|
});
|
|
@@ -2357,14 +2357,14 @@ async function handleMonitorBatchDeploy(options) {
|
|
|
2357
2357
|
"deploy",
|
|
2358
2358
|
options.idempotencyKey
|
|
2359
2359
|
);
|
|
2360
|
-
const result = await new (0,
|
|
2360
|
+
const result = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batch.submit({
|
|
2361
2361
|
kind: "deploy",
|
|
2362
2362
|
manifestNdjson,
|
|
2363
2363
|
dryRun: options.dryRun === true,
|
|
2364
2364
|
idempotencyKey
|
|
2365
2365
|
});
|
|
2366
2366
|
const operation = result.operation;
|
|
2367
|
-
|
|
2367
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
2368
2368
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2369
2369
|
{
|
|
2370
2370
|
json: options.json,
|
|
@@ -2392,7 +2392,7 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2392
2392
|
kind,
|
|
2393
2393
|
options.idempotencyKey
|
|
2394
2394
|
);
|
|
2395
|
-
const result = await new (0,
|
|
2395
|
+
const result = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batch.submit({
|
|
2396
2396
|
kind,
|
|
2397
2397
|
scope,
|
|
2398
2398
|
dryRun: options.dryRun === true,
|
|
@@ -2405,14 +2405,14 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2405
2405
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2406
2406
|
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2407
2407
|
].join("\n");
|
|
2408
|
-
|
|
2408
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0,
|
|
2409
2409
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2410
2410
|
{ json: options.json, text: `${text}
|
|
2411
2411
|
` }
|
|
2412
2412
|
);
|
|
2413
2413
|
}
|
|
2414
2414
|
async function handleMonitorBatchGet(operationId, options) {
|
|
2415
|
-
const result = await new (0,
|
|
2415
|
+
const result = await new (0, _chunkUXLJZ4XQjs.DeeplineClient)().monitors.batch.get(operationId, {
|
|
2416
2416
|
...options.cursor ? { cursor: options.cursor } : {}
|
|
2417
2417
|
});
|
|
2418
2418
|
const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
|
|
@@ -2424,7 +2424,7 @@ async function handleMonitorBatchGet(operationId, options) {
|
|
|
2424
2424
|
`results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
|
|
2425
2425
|
] : []
|
|
2426
2426
|
].join("\n");
|
|
2427
|
-
|
|
2427
|
+
_chunk7F6KTNUPjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
|
|
2428
2428
|
` });
|
|
2429
2429
|
}
|
|
2430
2430
|
function registerMonitorsCommands(program) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-EXMLR72R.mjs";
|
|
2
2
|
import {
|
|
3
3
|
DeeplineClient
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NUET45RU.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-KCC3FKIW.mjs";
|
|
7
7
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
printCommandEnvelope,
|
|
20
20
|
printJson,
|
|
21
21
|
shouldEmitJson
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-VYO6TLWN.mjs";
|
|
23
|
+
import "./chunk-S5FCTT3E.mjs";
|
|
24
24
|
import {
|
|
25
25
|
AuthError
|
|
26
26
|
} from "./chunk-MAMVGOSC.mjs";
|
|
@@ -28,7 +28,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
28
28
|
import {
|
|
29
29
|
DeeplineError
|
|
30
30
|
} from "./chunk-E4IXDAZI.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XC3J4P5W.mjs";
|
|
32
32
|
import "./chunk-WZYKRD7T.mjs";
|
|
33
33
|
import "./chunk-KRD6H754.mjs";
|
|
34
34
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NUET45RU.mjs";
|
|
4
4
|
import "./chunk-L2VKAASU.mjs";
|
|
5
5
|
import "./chunk-KCC3FKIW.mjs";
|
|
6
6
|
import "./chunk-EIMG75BT.mjs";
|
|
7
7
|
import "./chunk-UBKA33KY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VYO6TLWN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ACTIVE_ORG_ID_ENV,
|
|
13
13
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
saveProjectDeeplineEnvValues,
|
|
29
29
|
sdkCliStateDirPath,
|
|
30
30
|
storedHostFeatures
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-S5FCTT3E.mjs";
|
|
32
32
|
import "./chunk-MAMVGOSC.mjs";
|
|
33
33
|
import "./chunk-DLIRSHV6.mjs";
|
|
34
34
|
import "./chunk-E4IXDAZI.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-XC3J4P5W.mjs";
|
|
36
36
|
import "./chunk-WZYKRD7T.mjs";
|
|
37
37
|
import "./chunk-KRD6H754.mjs";
|
|
38
38
|
|