deepline 0.3.400 → 0.3.402
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/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +3 -1
- package/dist/cli/auth-CF34E66T.js +40 -0
- package/dist/cli/{auth-JL76JRJP.mjs → auth-GJGFHAUP.mjs} +4 -4
- package/dist/cli/{billing-C6QEIDES.mjs → billing-7YYI5OFD.mjs} +4 -4
- package/dist/cli/{billing-BPYI4EUH.js → billing-UBBNYU74.js} +73 -73
- package/dist/cli/{chunk-III4UASP.mjs → chunk-4EWCKDFC.mjs} +1 -1
- package/dist/cli/{chunk-H7Q6RK5Y.js → chunk-5Z7SAD3Q.js} +44 -44
- package/dist/cli/{chunk-O4JZTJEP.js → chunk-65YHUBYZ.js} +8 -8
- package/dist/cli/{chunk-ORQE3XBG.js → chunk-B2FAQ3AX.js} +50 -50
- package/dist/cli/{chunk-6SRV2NM3.js → chunk-CBPK2TLC.js} +65 -65
- package/dist/cli/{chunk-4OPBTEVW.js → chunk-CIOMFOJJ.js} +6 -6
- package/dist/cli/{chunk-JIDNO3FI.js → chunk-IK7J2DE5.js} +1 -1
- package/dist/cli/{chunk-OVYVMPEC.js → chunk-JHFX74T6.js} +4 -4
- package/dist/cli/{chunk-V3T4CHXI.mjs → chunk-JT7XZP4U.mjs} +1 -1
- package/dist/cli/{chunk-PF3N65JD.js → chunk-L5UOVDJV.js} +2 -2
- package/dist/cli/{chunk-IDXATBJB.js → chunk-LQS5XUFL.js} +6 -6
- package/dist/cli/{chunk-QUCAOIN7.js → chunk-MSS6UHGK.js} +26 -26
- package/dist/cli/{chunk-QZDHNVKF.mjs → chunk-NMPFKSZN.mjs} +1 -1
- package/dist/cli/{chunk-BRMEK6KG.mjs → chunk-OIUXHL7G.mjs} +3 -3
- package/dist/cli/{chunk-GCIMQKW4.mjs → chunk-OPS5KQVF.mjs} +2 -2
- package/dist/cli/{chunk-6PRUVCMW.mjs → chunk-Q77JWGMZ.mjs} +1 -1
- package/dist/cli/{chunk-GMMJMFCQ.mjs → chunk-QPIAVCCS.mjs} +2 -2
- package/dist/cli/{chunk-GYJSZ6J6.mjs → chunk-RLL23M7M.mjs} +2 -2
- package/dist/cli/{chunk-UYIRTEU6.mjs → chunk-TPPHH3FS.mjs} +3 -3
- package/dist/cli/{chunk-CKIELGYT.mjs → chunk-TWZEHT5L.mjs} +5 -5
- package/dist/cli/{chunk-H33BWG7S.mjs → chunk-V4TFEZ47.mjs} +1 -1
- package/dist/cli/{chunk-USSWEZNP.js → chunk-VHZOTHAD.js} +15 -15
- package/dist/cli/{chunk-BENKBQ2J.mjs → chunk-Z7MNFHHE.mjs} +4 -4
- package/dist/cli/{chunk-2H37YDDG.js → chunk-ZOKF4F65.js} +8 -8
- package/dist/cli/{csv-FLNTE5CW.mjs → csv-USUSIYER.mjs} +3 -3
- package/dist/cli/{csv-NK4QWZNT.js → csv-V6JDZEWY.js} +12 -12
- package/dist/cli/{db-CAGTZIVN.mjs → db-F5GMBQ65.mjs} +4 -4
- package/dist/cli/{db-DU7J3CEM.js → db-HRWKCFXF.js} +25 -25
- package/dist/cli/{describe-IWQW7OLG.js → describe-R6KMEHL5.js} +10 -10
- package/dist/cli/{describe-YJHDN5IE.mjs → describe-S5O6FVT3.mjs} +6 -6
- package/dist/cli/{executions-SUKU6I7V.js → executions-PZIPKQBP.js} +6 -6
- package/dist/cli/{executions-CDFAK267.mjs → executions-YPZREEMY.mjs} +4 -4
- package/dist/cli/{feedback-EQKQZTC4.mjs → feedback-BTETOM6H.mjs} +3 -3
- package/dist/cli/{feedback-SRPRMYAN.js → feedback-VDJR5X3J.js} +7 -7
- package/dist/cli/git-B5DP75FD.js +24 -0
- package/dist/cli/{git-M555IN55.mjs → git-INUECEXT.mjs} +4 -4
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-M4X6PQFZ.js → legacy-noops-45WQXPUD.js} +7 -7
- package/dist/cli/{legacy-noops-LRNAWLDN.mjs → legacy-noops-MDN77QAS.mjs} +4 -4
- package/dist/cli/{monitors-IKRE2U3J.mjs → monitors-4BTZGTJW.mjs} +4 -4
- package/dist/cli/{monitors-AOXY55KT.js → monitors-BMQEIYV6.js} +84 -84
- package/dist/cli/{org-V5MRHKRO.mjs → org-6YNJ7VNJ.mjs} +4 -4
- package/dist/cli/{org-HNFRABMG.js → org-GTZDYRD3.js} +64 -64
- package/dist/cli/{play-LSGWSQE2.js → play-BDIBVDSU.js} +375 -296
- package/dist/cli/{play-Z22R7FWE.mjs → play-GGQBJQG4.mjs} +112 -33
- package/dist/cli/{providers-BJJCETVG.mjs → providers-6EYFXCHM.mjs} +4 -4
- package/dist/cli/{providers-VYVFZR4J.js → providers-AFQ6FQWQ.js} +7 -7
- package/dist/cli/{quickstart-EFPCKX32.mjs → quickstart-FIK5TO73.mjs} +3 -3
- package/dist/cli/{quickstart-UGWUJK67.js → quickstart-PUXYA3QD.js} +5 -5
- package/dist/cli/search-64GE26YS.js +30 -0
- package/dist/cli/{search-NVPTBYU3.mjs → search-UTPRENV4.mjs} +5 -5
- package/dist/cli/{secrets-ENLLOXON.js → secrets-FMM4RFK2.js} +13 -13
- package/dist/cli/{secrets-4N4LSDKP.mjs → secrets-R2RJ2J7Z.mjs} +4 -4
- package/dist/cli/{sessions-7BKKDN5T.mjs → sessions-HA2B7AYB.mjs} +4 -4
- package/dist/cli/{sessions-PHGZZFBP.js → sessions-ZRXUQIVV.js} +5 -5
- package/dist/cli/{settings-VWEGOBRP.mjs → settings-HPGNP7UU.mjs} +7 -7
- package/dist/cli/{settings-CV2ZCTVK.js → settings-KKHOBBKF.js} +74 -74
- package/dist/cli/{setup-DEJSO3OM.js → setup-FTSDFQOK.js} +41 -41
- package/dist/cli/{setup-KG5HHXZD.mjs → setup-WERVZIIX.mjs} +6 -6
- package/dist/cli/{skills-EKFHOC3V.mjs → skills-D4BGGD5D.mjs} +4 -4
- package/dist/cli/skills-O7HGWWGF.js +29 -0
- package/dist/cli/{tools-4RLOPQJK.js → tools-EKVHV35B.js} +7 -7
- package/dist/cli/{tools-4YNU6U4J.mjs → tools-TKQW72OL.mjs} +6 -6
- package/dist/cli/update-5CP72TRU.js +29 -0
- package/dist/cli/{update-DE4SJRNA.mjs → update-O77BPQAE.mjs} +6 -6
- package/dist/cli/{workflow-I7QMPLIW.js → workflow-GIDAYVSL.js} +15 -15
- package/dist/cli/{workflow-ODAFYNZA.mjs → workflow-IJCMSPGJ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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-TNYZVC73.js +0 -40
- package/dist/cli/git-IRCN2ZZY.js +0 -24
- package/dist/cli/search-V3STUCIN.js +0 -30
- package/dist/cli/skills-YEVGRKB6.js +0 -29
- package/dist/cli/update-2RMF5UZD.js +0 -29
|
@@ -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 _chunkLQS5XUFLjs = require('./chunk-LQS5XUFL.js');
|
|
5
5
|
require('./chunk-S6R3OX7B.js');
|
|
6
6
|
require('./chunk-UHNDVD3P.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 _chunkCIOMFOJJjs = require('./chunk-CIOMFOJJ.js');
|
|
23
|
+
require('./chunk-JHFX74T6.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
|
|
@@ -28,7 +28,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-IK7J2DE5.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 = _chunkCIOMFOJJjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
|
|
110
110
|
if (wantsJson) {
|
|
111
|
-
const payload =
|
|
112
|
-
|
|
111
|
+
const payload = _chunkCIOMFOJJjs.errorToJsonPayload.call(void 0, error);
|
|
112
|
+
_chunkCIOMFOJJjs.printJson.call(void 0, {
|
|
113
113
|
ok: false,
|
|
114
114
|
exitCode,
|
|
115
115
|
...next ? { next } : {},
|
|
@@ -523,14 +523,14 @@ Preview the plan first with:
|
|
|
523
523
|
);
|
|
524
524
|
}
|
|
525
525
|
async function handleMonitorsStatus(options) {
|
|
526
|
-
const payload = await new (0,
|
|
526
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.status();
|
|
527
527
|
const hasAccess = payload.has_access === true;
|
|
528
528
|
const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
|
|
529
529
|
const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
|
|
530
530
|
${reason}` : ""}
|
|
531
531
|
` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
|
|
532
532
|
`;
|
|
533
|
-
|
|
533
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
534
534
|
{ has_access: hasAccess, ...reason ? { reason } : {} },
|
|
535
535
|
{ json: options.json, text }
|
|
536
536
|
);
|
|
@@ -596,14 +596,14 @@ async function handleMonitorsAvailable(toolId, options) {
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
const tool = _nullishCoalesce(toolId, () => ( options.tool));
|
|
599
|
-
const payload = await new (0,
|
|
599
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.available(tool, {
|
|
600
600
|
...options.provider ? { provider: options.provider } : {},
|
|
601
601
|
...options.search ? { search: options.search } : {},
|
|
602
602
|
...options.limit ? { limit: options.limit } : {},
|
|
603
603
|
...options.full ? { full: true } : {},
|
|
604
604
|
...options.compact ? { compact: true } : {}
|
|
605
605
|
});
|
|
606
|
-
|
|
606
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
607
607
|
json: options.json,
|
|
608
608
|
// Human list view shows id + name + deployed_count ("deployed: N") so
|
|
609
609
|
// can-deploy vs already-deployed is visible in one view. Describing a
|
|
@@ -706,14 +706,14 @@ async function handleMonitorsList(options) {
|
|
|
706
706
|
"`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
|
|
707
707
|
);
|
|
708
708
|
}
|
|
709
|
-
const payload = await new (0,
|
|
709
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.list({
|
|
710
710
|
...state ? { state } : {},
|
|
711
711
|
...options.status ? { status: options.status } : {},
|
|
712
712
|
...options.limit ? { limit: options.limit } : {},
|
|
713
713
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
714
714
|
...options.includeConsumers ? { includeConsumers: true } : {}
|
|
715
715
|
});
|
|
716
|
-
|
|
716
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
717
717
|
json: options.json,
|
|
718
718
|
text: renderDeployedListText(
|
|
719
719
|
payload,
|
|
@@ -729,10 +729,10 @@ async function handleMonitorsCheck(definition, options) {
|
|
|
729
729
|
argLabel: "<definition>",
|
|
730
730
|
command: "deepline monitors check"
|
|
731
731
|
});
|
|
732
|
-
const payload = await new (0,
|
|
732
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.check(
|
|
733
733
|
body
|
|
734
734
|
);
|
|
735
|
-
|
|
735
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
736
736
|
}
|
|
737
737
|
async function handleMonitorsDeploy(definition, options) {
|
|
738
738
|
const body = resolveMonitorJsonBody({
|
|
@@ -741,7 +741,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
741
741
|
argLabel: "<definition>",
|
|
742
742
|
command: "deepline monitors deploy"
|
|
743
743
|
});
|
|
744
|
-
const client = new (0,
|
|
744
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
745
745
|
const definitionArg = body;
|
|
746
746
|
if (options.dryRun) {
|
|
747
747
|
const payload2 = await client.monitors.deploy(definitionArg, {
|
|
@@ -749,7 +749,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
749
749
|
});
|
|
750
750
|
const valid = payload2.valid !== false;
|
|
751
751
|
const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _21 => _21(payload2), 'optionalAccess', _22 => _22.identity_conflict]));
|
|
752
|
-
|
|
752
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
753
753
|
{ dry_run: true, ...payload2 },
|
|
754
754
|
{ json: options.json, text: renderMonitorDeployPlan(payload2) }
|
|
755
755
|
);
|
|
@@ -759,7 +759,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
761
|
const payload = await client.monitors.deploy(definitionArg);
|
|
762
|
-
|
|
762
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
763
763
|
json: options.json,
|
|
764
764
|
text: renderMonitorDeployCompletion(payload)
|
|
765
765
|
});
|
|
@@ -771,29 +771,29 @@ async function handleMonitorsSync(definition, options) {
|
|
|
771
771
|
argLabel: "<definition>",
|
|
772
772
|
command: "deepline monitors sync"
|
|
773
773
|
});
|
|
774
|
-
const payload = await new (0,
|
|
774
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.sync(body, {
|
|
775
775
|
...options.dryRun ? { dryRun: true } : {},
|
|
776
776
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
|
|
777
777
|
});
|
|
778
778
|
if (options.dryRun) {
|
|
779
779
|
const plan = payload;
|
|
780
|
-
|
|
780
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
781
781
|
{ dry_run: true, ...plan },
|
|
782
782
|
{ json: options.json, text: renderMonitorDeployPlan(plan) }
|
|
783
783
|
);
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
|
-
|
|
786
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
787
787
|
json: options.json,
|
|
788
788
|
text: renderMonitorJob(payload)
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
async function handleScalarMonitorLifecycle(action, key, options) {
|
|
792
|
-
const payload = await new (0,
|
|
792
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors[action](key, {
|
|
793
793
|
...options.dryRun ? { dryRun: true } : {},
|
|
794
794
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
|
|
795
795
|
});
|
|
796
|
-
|
|
796
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
797
797
|
json: options.json,
|
|
798
798
|
text: options.dryRun ? void 0 : renderMonitorJob(payload)
|
|
799
799
|
});
|
|
@@ -882,11 +882,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
|
|
|
882
882
|
lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
|
|
883
883
|
);
|
|
884
884
|
}
|
|
885
|
-
const payload = await new (0,
|
|
885
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batch.deploy(
|
|
886
886
|
lint.normalized.monitors,
|
|
887
887
|
{ idempotencyKey }
|
|
888
888
|
);
|
|
889
|
-
|
|
889
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
890
890
|
{
|
|
891
891
|
...payload,
|
|
892
892
|
idempotency_key: idempotencyKey,
|
|
@@ -919,7 +919,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
919
919
|
);
|
|
920
920
|
}
|
|
921
921
|
if (options.dryRun) {
|
|
922
|
-
|
|
922
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
923
923
|
{
|
|
924
924
|
ok: true,
|
|
925
925
|
dry_run: true,
|
|
@@ -936,7 +936,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
936
936
|
"sync",
|
|
937
937
|
options.idempotencyKey
|
|
938
938
|
);
|
|
939
|
-
const payload = await new (0,
|
|
939
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batches.sync(
|
|
940
940
|
batchId,
|
|
941
941
|
lint.normalized.monitors,
|
|
942
942
|
{
|
|
@@ -944,14 +944,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
944
944
|
...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
|
|
945
945
|
}
|
|
946
946
|
);
|
|
947
|
-
|
|
947
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
948
948
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
949
949
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
950
950
|
);
|
|
951
951
|
}
|
|
952
952
|
async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
953
953
|
if (options.dryRun) {
|
|
954
|
-
|
|
954
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
955
955
|
{
|
|
956
956
|
ok: true,
|
|
957
957
|
dry_run: true,
|
|
@@ -967,17 +967,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
|
967
967
|
intent,
|
|
968
968
|
options.idempotencyKey
|
|
969
969
|
);
|
|
970
|
-
const payload = await new (0,
|
|
970
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batches[intent](batchId, {
|
|
971
971
|
idempotencyKey
|
|
972
972
|
});
|
|
973
|
-
|
|
973
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
974
974
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
975
975
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
976
976
|
);
|
|
977
977
|
}
|
|
978
978
|
async function handleNamedMonitorBatchGet(batchId, options) {
|
|
979
|
-
const payload = await new (0,
|
|
980
|
-
|
|
979
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batches.get(batchId);
|
|
980
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
981
981
|
json: options.json,
|
|
982
982
|
text: renderMonitorJob(payload)
|
|
983
983
|
});
|
|
@@ -991,7 +991,7 @@ async function handleMonitorBatchLint(options) {
|
|
|
991
991
|
const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
|
|
992
992
|
readMonitorDefinitionsJsonFile(options.file)
|
|
993
993
|
);
|
|
994
|
-
|
|
994
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
995
995
|
{
|
|
996
996
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
997
997
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1011,7 +1011,7 @@ async function handleMonitorFleetLint(options) {
|
|
|
1011
1011
|
const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
|
|
1012
1012
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1013
1013
|
);
|
|
1014
|
-
|
|
1014
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1015
1015
|
{
|
|
1016
1016
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1017
1017
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1023,32 +1023,32 @@ async function handleMonitorFleetLint(options) {
|
|
|
1023
1023
|
process.exitCode = 2;
|
|
1024
1024
|
}
|
|
1025
1025
|
async function handleMonitorJobGet(jobId, options) {
|
|
1026
|
-
const payload = await new (0,
|
|
1027
|
-
|
|
1026
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.jobs.get(jobId);
|
|
1027
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
1028
1028
|
json: options.json,
|
|
1029
1029
|
text: renderMonitorJob(payload)
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
1032
|
async function handleMonitorJobWait(jobId, options) {
|
|
1033
|
-
const payload = await new (0,
|
|
1033
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.jobs.wait(jobId, {
|
|
1034
1034
|
timeoutMs: fleetTimeoutMs(options.timeout),
|
|
1035
1035
|
pollIntervalMs: FLEET_POLL_INTERVAL_MS
|
|
1036
1036
|
});
|
|
1037
|
-
|
|
1037
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
1038
1038
|
json: options.json,
|
|
1039
1039
|
text: renderMonitorJob(payload)
|
|
1040
1040
|
});
|
|
1041
1041
|
}
|
|
1042
1042
|
async function handleMonitorJobLogs(jobId, options) {
|
|
1043
1043
|
const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
|
|
1044
|
-
const payload = await new (0,
|
|
1044
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.jobs.logs(jobId, {
|
|
1045
1045
|
...limit === void 0 ? {} : { limit }
|
|
1046
1046
|
});
|
|
1047
|
-
|
|
1047
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
1048
1048
|
}
|
|
1049
1049
|
async function handleMonitorJobCancel(jobId, options) {
|
|
1050
|
-
const payload = await new (0,
|
|
1051
|
-
|
|
1050
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.jobs.cancel(jobId);
|
|
1051
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, {
|
|
1052
1052
|
json: options.json,
|
|
1053
1053
|
text: renderMonitorJob(payload)
|
|
1054
1054
|
});
|
|
@@ -1346,7 +1346,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1346
1346
|
`;
|
|
1347
1347
|
}
|
|
1348
1348
|
function reportFleetState(payload, error, options) {
|
|
1349
|
-
|
|
1349
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1350
1350
|
{
|
|
1351
1351
|
...payload,
|
|
1352
1352
|
code: error.code,
|
|
@@ -1461,7 +1461,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
|
|
|
1461
1461
|
_fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
|
|
1462
1462
|
`, "utf8");
|
|
1463
1463
|
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
|
|
1464
|
-
|
|
1464
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1465
1465
|
{ schemaVersion: 2, file, definition, next },
|
|
1466
1466
|
{
|
|
1467
1467
|
json: options.json,
|
|
@@ -1523,7 +1523,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1523
1523
|
'The Fleet definition has no id. Add a top-level "id" and re-run.'
|
|
1524
1524
|
);
|
|
1525
1525
|
}
|
|
1526
|
-
const client = new (0,
|
|
1526
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1527
1527
|
const payload = await client.monitors.fleets.sync(
|
|
1528
1528
|
_nullishCoalesce(definition, () => ( fleetId)),
|
|
1529
1529
|
{
|
|
@@ -1545,7 +1545,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1545
1545
|
}
|
|
1546
1546
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1547
1547
|
if (!options.wait || options.dryRun) {
|
|
1548
|
-
|
|
1548
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1549
1549
|
json: options.json,
|
|
1550
1550
|
text: renderFleetSync(payload, {
|
|
1551
1551
|
fleetId,
|
|
@@ -1571,7 +1571,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1571
1571
|
const status = fleetStatus(final);
|
|
1572
1572
|
const summary = renderFleetGet(final);
|
|
1573
1573
|
if (status === "converged") {
|
|
1574
|
-
|
|
1574
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1575
1575
|
return;
|
|
1576
1576
|
}
|
|
1577
1577
|
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
|
|
@@ -1604,14 +1604,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1604
1604
|
);
|
|
1605
1605
|
}
|
|
1606
1606
|
const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
|
|
1607
|
-
const client = new (0,
|
|
1607
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1608
1608
|
const payload = await client.monitors.fleets.get(fleetId, {
|
|
1609
1609
|
...options.drift ? { drift: true } : {},
|
|
1610
1610
|
...limit !== void 0 ? { limit } : {}
|
|
1611
1611
|
});
|
|
1612
1612
|
const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
|
|
1613
1613
|
if (!options.check) {
|
|
1614
|
-
|
|
1614
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
1617
|
const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
|
|
@@ -1619,7 +1619,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1619
1619
|
);
|
|
1620
1620
|
const unconverged = statuses.filter((status) => status !== "converged");
|
|
1621
1621
|
if (unconverged.length === 0) {
|
|
1622
|
-
|
|
1622
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1623
1623
|
return;
|
|
1624
1624
|
}
|
|
1625
1625
|
const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
|
|
@@ -1658,13 +1658,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1658
1658
|
${fleetReactivateCommandLine(fleetId, options)}`
|
|
1659
1659
|
);
|
|
1660
1660
|
}
|
|
1661
|
-
const client = new (0,
|
|
1661
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1662
1662
|
const payload = await client.monitors.fleets.reactivate(fleetId, {
|
|
1663
1663
|
idempotencyKey
|
|
1664
1664
|
});
|
|
1665
1665
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1666
1666
|
if (!options.wait) {
|
|
1667
|
-
|
|
1667
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1668
1668
|
json: options.json,
|
|
1669
1669
|
text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
|
|
1670
1670
|
idempotency key ${idempotencyKey}
|
|
@@ -1687,7 +1687,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1687
1687
|
const envelope = { ...accepted, ...final };
|
|
1688
1688
|
const text = renderFleetGet(final);
|
|
1689
1689
|
if (fleetStatus(final) === "converged") {
|
|
1690
|
-
|
|
1690
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
|
|
1691
1691
|
return;
|
|
1692
1692
|
}
|
|
1693
1693
|
reportFleetState(
|
|
@@ -1729,7 +1729,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
1732
|
-
const client = new (0,
|
|
1732
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1733
1733
|
if (options.dryRun) {
|
|
1734
1734
|
const plan = await client.monitors.fleets.deactivate(fleetId, {
|
|
1735
1735
|
dryRun: true,
|
|
@@ -1739,7 +1739,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
|
1739
1739
|
command: "deepline monitors fleets deactivate",
|
|
1740
1740
|
mutation: "fleet deactivate"
|
|
1741
1741
|
});
|
|
1742
|
-
|
|
1742
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, plan, {
|
|
1743
1743
|
json: options.json,
|
|
1744
1744
|
text: renderFleetDeactivatePlan(plan, fleetId)
|
|
1745
1745
|
});
|
|
@@ -1777,7 +1777,7 @@ Preview the blast radius first:
|
|
|
1777
1777
|
});
|
|
1778
1778
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1779
1779
|
if (payload.already === true) {
|
|
1780
|
-
|
|
1780
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1781
1781
|
json: options.json,
|
|
1782
1782
|
text: `Fleet ${fleetId} is already deactivated.
|
|
1783
1783
|
`
|
|
@@ -1789,7 +1789,7 @@ Preview the blast radius first:
|
|
|
1789
1789
|
` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
|
|
1790
1790
|
` : "");
|
|
1791
1791
|
if (!options.wait) {
|
|
1792
|
-
|
|
1792
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1793
1793
|
json: options.json,
|
|
1794
1794
|
text: acceptedText
|
|
1795
1795
|
});
|
|
@@ -1811,7 +1811,7 @@ Preview the blast radius first:
|
|
|
1811
1811
|
const envelope = { ...accepted, ...final };
|
|
1812
1812
|
const summary = renderFleetGet(final);
|
|
1813
1813
|
if (fleetStatus(final) === "deactivated") {
|
|
1814
|
-
|
|
1814
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1815
1815
|
return;
|
|
1816
1816
|
}
|
|
1817
1817
|
reportFleetState(
|
|
@@ -1842,7 +1842,7 @@ function handleMonitorFleetsOverview(options) {
|
|
|
1842
1842
|
"Agent notes:",
|
|
1843
1843
|
...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
|
|
1844
1844
|
];
|
|
1845
|
-
|
|
1845
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1846
1846
|
{
|
|
1847
1847
|
schemaVersion: 1,
|
|
1848
1848
|
lifecycle: MONITOR_FLEET_LIFECYCLE,
|
|
@@ -2003,7 +2003,7 @@ function renderMonitorGet(payload) {
|
|
|
2003
2003
|
`;
|
|
2004
2004
|
}
|
|
2005
2005
|
async function handleMonitorsGet(key, options) {
|
|
2006
|
-
const client = new (0,
|
|
2006
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
2007
2007
|
const payload = await client.monitors.get(key);
|
|
2008
2008
|
const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
|
|
2009
2009
|
const dependents = boundPlays ? {
|
|
@@ -2011,24 +2011,24 @@ async function handleMonitorsGet(key, options) {
|
|
|
2011
2011
|
truncated: payload.consumer_health_truncated === true
|
|
2012
2012
|
} : await client.monitors.dependents(key);
|
|
2013
2013
|
const detail = { ...payload, dependents };
|
|
2014
|
-
|
|
2014
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, detail, {
|
|
2015
2015
|
json: options.json,
|
|
2016
2016
|
text: renderMonitorGet(detail)
|
|
2017
2017
|
});
|
|
2018
2018
|
}
|
|
2019
2019
|
async function handleMonitorsTest(key, payload, options) {
|
|
2020
2020
|
const explicitPayload = parseJsonObjectArg(payload, "<payload>");
|
|
2021
|
-
const result = await new (0,
|
|
2021
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.test(key, explicitPayload);
|
|
2022
2022
|
const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
|
|
2023
2023
|
mode: validation_only (no rows written, credits spent, or Plays dispatched)
|
|
2024
2024
|
persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
|
|
2025
2025
|
dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
|
|
2026
2026
|
`;
|
|
2027
|
-
|
|
2027
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
|
|
2028
2028
|
}
|
|
2029
2029
|
async function handleMonitorsValidate(key, options) {
|
|
2030
|
-
const result = await new (0,
|
|
2031
|
-
|
|
2030
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.validate(key);
|
|
2031
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
2032
2032
|
if (result.valid === false) process.exitCode = 7;
|
|
2033
2033
|
}
|
|
2034
2034
|
async function confirmMonitorDelete(key) {
|
|
@@ -2046,14 +2046,14 @@ async function confirmMonitorDelete(key) {
|
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
async function handleMonitorsDelete(key, options) {
|
|
2049
|
-
const client = new (0,
|
|
2049
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
2050
2050
|
if (options.dryRun) {
|
|
2051
2051
|
const payload2 = await client.monitors.delete(key, { dryRun: true });
|
|
2052
2052
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2053
2053
|
command: "deepline monitors delete",
|
|
2054
2054
|
mutation: "delete"
|
|
2055
2055
|
});
|
|
2056
|
-
|
|
2056
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2057
2057
|
json: options.json,
|
|
2058
2058
|
text: renderMonitorDeletePlan(payload2, key)
|
|
2059
2059
|
});
|
|
@@ -2073,7 +2073,7 @@ async function handleMonitorsDelete(key, options) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
const payload = await client.monitors.delete(key);
|
|
2076
|
-
|
|
2076
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2077
2077
|
}
|
|
2078
2078
|
async function handleMonitorsUpdate(key, patch, options) {
|
|
2079
2079
|
const body = resolveMonitorJsonBody({
|
|
@@ -2082,25 +2082,25 @@ async function handleMonitorsUpdate(key, patch, options) {
|
|
|
2082
2082
|
argLabel: "<patch>",
|
|
2083
2083
|
command: `deepline monitors update ${key}`
|
|
2084
2084
|
});
|
|
2085
|
-
const payload = await new (0,
|
|
2086
|
-
|
|
2085
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.update(key, body);
|
|
2086
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2087
2087
|
}
|
|
2088
2088
|
async function handleMonitorsReactivate(key, options) {
|
|
2089
|
-
const client = new (0,
|
|
2089
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
2090
2090
|
if (options.dryRun) {
|
|
2091
2091
|
const payload2 = await client.monitors.reactivate(key, { dryRun: true });
|
|
2092
2092
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2093
2093
|
command: "deepline monitors reactivate",
|
|
2094
2094
|
mutation: "reactivate"
|
|
2095
2095
|
});
|
|
2096
|
-
|
|
2096
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2097
2097
|
json: options.json,
|
|
2098
2098
|
text: renderMonitorReactivatePlan(payload2, key)
|
|
2099
2099
|
});
|
|
2100
2100
|
return;
|
|
2101
2101
|
}
|
|
2102
2102
|
const payload = await client.monitors.reactivate(key);
|
|
2103
|
-
|
|
2103
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2104
2104
|
}
|
|
2105
2105
|
var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
|
|
2106
2106
|
function monitorHealthLine(health) {
|
|
@@ -2222,7 +2222,7 @@ function monitorHealthText(health) {
|
|
|
2222
2222
|
`;
|
|
2223
2223
|
}
|
|
2224
2224
|
async function handleMonitorsAudit(options) {
|
|
2225
|
-
const client = new (0,
|
|
2225
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
2226
2226
|
const fleetId = _optionalChain([options, 'access', _73 => _73.fleet, 'optionalAccess', _74 => _74.trim, 'call', _75 => _75()]) || void 0;
|
|
2227
2227
|
const scope = fleetId ? { fleetId } : {};
|
|
2228
2228
|
let result = await client.monitors.audit(scope);
|
|
@@ -2266,7 +2266,7 @@ async function handleMonitorsAudit(options) {
|
|
|
2266
2266
|
"",
|
|
2267
2267
|
monitorHealthText(health)
|
|
2268
2268
|
].join("\n");
|
|
2269
|
-
|
|
2269
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
2270
2270
|
{ ...result, audit: { ...result.audit, totals }, health },
|
|
2271
2271
|
{ json: options.json, text }
|
|
2272
2272
|
);
|
|
@@ -2279,10 +2279,10 @@ async function handleMonitorsRepair(options) {
|
|
|
2279
2279
|
}
|
|
2280
2280
|
async function handleMonitorsHealth(options) {
|
|
2281
2281
|
const fleetId = _optionalChain([options, 'access', _79 => _79.fleet, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || void 0;
|
|
2282
|
-
const health = await new (0,
|
|
2282
|
+
const health = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.health(
|
|
2283
2283
|
fleetId ? { fleetId } : {}
|
|
2284
2284
|
);
|
|
2285
|
-
|
|
2285
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, health, {
|
|
2286
2286
|
json: options.json,
|
|
2287
2287
|
text: monitorHealthText(health)
|
|
2288
2288
|
});
|
|
@@ -2356,14 +2356,14 @@ async function handleMonitorBatchDeploy(options) {
|
|
|
2356
2356
|
"deploy",
|
|
2357
2357
|
options.idempotencyKey
|
|
2358
2358
|
);
|
|
2359
|
-
const result = await new (0,
|
|
2359
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batch.submit({
|
|
2360
2360
|
kind: "deploy",
|
|
2361
2361
|
manifestNdjson,
|
|
2362
2362
|
dryRun: options.dryRun === true,
|
|
2363
2363
|
idempotencyKey
|
|
2364
2364
|
});
|
|
2365
2365
|
const operation = result.operation;
|
|
2366
|
-
|
|
2366
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
2367
2367
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2368
2368
|
{
|
|
2369
2369
|
json: options.json,
|
|
@@ -2391,7 +2391,7 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2391
2391
|
kind,
|
|
2392
2392
|
options.idempotencyKey
|
|
2393
2393
|
);
|
|
2394
|
-
const result = await new (0,
|
|
2394
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batch.submit({
|
|
2395
2395
|
kind,
|
|
2396
2396
|
scope,
|
|
2397
2397
|
dryRun: options.dryRun === true,
|
|
@@ -2404,14 +2404,14 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2404
2404
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2405
2405
|
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2406
2406
|
].join("\n");
|
|
2407
|
-
|
|
2407
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
2408
2408
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2409
2409
|
{ json: options.json, text: `${text}
|
|
2410
2410
|
` }
|
|
2411
2411
|
);
|
|
2412
2412
|
}
|
|
2413
2413
|
async function handleMonitorBatchGet(operationId, options) {
|
|
2414
|
-
const result = await new (0,
|
|
2414
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().monitors.batch.get(operationId, {
|
|
2415
2415
|
...options.cursor ? { cursor: options.cursor } : {}
|
|
2416
2416
|
});
|
|
2417
2417
|
const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
|
|
@@ -2423,7 +2423,7 @@ async function handleMonitorBatchGet(operationId, options) {
|
|
|
2423
2423
|
`results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
|
|
2424
2424
|
] : []
|
|
2425
2425
|
].join("\n");
|
|
2426
|
-
|
|
2426
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
|
|
2427
2427
|
` });
|
|
2428
2428
|
}
|
|
2429
2429
|
function registerMonitorsCommands(program) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4EWCKDFC.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-JI2B4RZP.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-JT7XZP4U.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-Q77JWGMZ.mjs";
|
|
32
32
|
import "./chunk-YHPYUZZX.mjs";
|
|
33
33
|
import "./chunk-DLIRSHV6.mjs";
|
|
34
34
|
import "./chunk-NXGCO4JB.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-NMPFKSZN.mjs";
|
|
36
36
|
import "./chunk-WZYKRD7T.mjs";
|
|
37
37
|
import "./chunk-KRD6H754.mjs";
|
|
38
38
|
|