deepline 0.3.369 → 0.3.371
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/README.md +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +8 -8
- package/dist/bundling-sources/sdk/src/release.ts +1 -7
- package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
- package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
- package/dist/cli/auth-DQVK3ZI6.js +33 -0
- package/dist/cli/{auth-F5YPFL6L.mjs → auth-LCSEXQA2.mjs} +4 -4
- package/dist/cli/{billing-3HHLCETY.js → billing-KISDL67A.js} +148 -148
- package/dist/cli/{billing-LNO6FPPM.mjs → billing-Z7PLJC5C.mjs} +79 -79
- package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
- package/dist/cli/{chunk-COEBGYBW.mjs → chunk-2L6LBJVC.mjs} +193 -187
- package/dist/cli/{chunk-H4N6FMJ5.mjs → chunk-3FTYFVYN.mjs} +5 -5
- package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
- package/dist/cli/{chunk-KGZRUGL7.js → chunk-44SHFHA3.js} +17 -17
- package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-46JCJ7FT.mjs} +56 -97
- package/dist/cli/{chunk-6A3GNWSU.js → chunk-5BCVKWLV.js} +17 -17
- package/dist/cli/{chunk-TRRFXE4X.mjs → chunk-5S525TQV.mjs} +2 -2
- package/dist/cli/{chunk-X6FNDFTD.js → chunk-5Z7JFUNX.js} +26 -26
- package/dist/cli/{chunk-JGLIB4JN.mjs → chunk-73NIXYKH.mjs} +90 -50
- package/dist/cli/{chunk-2AENFV3B.js → chunk-A7X7KFXX.js} +4 -4
- package/dist/cli/{chunk-KU4X5TWN.mjs → chunk-AIZKDTFF.mjs} +11 -11
- package/dist/cli/{chunk-ERMXQOIV.js → chunk-BO3ADIBV.js} +8 -8
- package/dist/cli/{chunk-FXVRQHJC.js → chunk-C3IPN4E6.js} +17 -17
- package/dist/cli/{chunk-LH3BV773.js → chunk-C553OZGG.js} +10 -10
- package/dist/cli/{chunk-EJC3INZD.mjs → chunk-DOXAN2I7.mjs} +3 -3
- package/dist/cli/{chunk-XH3EIQAZ.js → chunk-DPVBWLBF.js} +419 -413
- package/dist/cli/{chunk-PRMAO43X.js → chunk-DQMTJXLK.js} +145 -105
- package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
- package/dist/cli/{chunk-U5VEW7LL.mjs → chunk-IWY7T6MR.mjs} +1 -1
- package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
- package/dist/cli/{chunk-QILHWZFP.js → chunk-JSK6GUY6.js} +56 -97
- package/dist/cli/{chunk-VUYCB2RY.mjs → chunk-KBJO7HIF.mjs} +9 -9
- package/dist/cli/{chunk-SDOPEZYS.mjs → chunk-KGRAQ4OR.mjs} +6 -6
- package/dist/cli/{chunk-5IXQ6VP4.mjs → chunk-KKRRIFR3.mjs} +1 -1
- package/dist/cli/{chunk-74XTRGY5.js → chunk-N34UX4TW.js} +2 -2
- package/dist/cli/{chunk-KR5NWPWI.js → chunk-NMDNUOVI.js} +1 -6
- package/dist/cli/{chunk-YCLPW7QO.mjs → chunk-SEDS6ZVR.mjs} +10 -10
- package/dist/cli/{chunk-RIT4UED6.mjs → chunk-SENW5J4O.mjs} +5 -5
- package/dist/cli/{chunk-P7W5OMQ6.js → chunk-TT2YWFYW.js} +53 -53
- package/dist/cli/{chunk-OEQC4QLU.js → chunk-YENBXYUH.js} +68 -68
- package/dist/cli/{chunk-4RVNJQ7D.mjs → chunk-YYFLULK7.mjs} +1 -6
- package/dist/cli/client-JFSRNUVD.js +20 -0
- package/dist/cli/{client-HURLYTDV.mjs → client-Z3Z5EDDJ.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZECPS6DF.mjs → csv-TEVHLGGA.mjs} +3 -3
- package/dist/cli/{csv-BZ7QNGLU.js → csv-XGFXV7JE.js} +12 -12
- package/dist/cli/{db-JXLCCIML.js → db-LLZJ7UH5.js} +42 -43
- package/dist/cli/{db-EUNDS5UG.mjs → db-OB7PMWSZ.mjs} +17 -18
- package/dist/cli/{describe-L6LADCXI.mjs → describe-GZIRANUZ.mjs} +12 -12
- package/dist/cli/{describe-DNDL3TC6.js → describe-NWU7LI3I.js} +28 -28
- package/dist/cli/{executions-GPKPWEHO.js → executions-64YZGSOW.js} +6 -6
- package/dist/cli/{executions-GRCD2GHT.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
- package/dist/cli/{feedback-5WG2HNZ6.mjs → feedback-2WRQRW3U.mjs} +8 -8
- package/dist/cli/{feedback-VJCNBYVQ.js → feedback-MN5CXULH.js} +12 -12
- package/dist/cli/{git-3G5Q4TPI.mjs → git-BPYVLLTY.mjs} +4 -4
- package/dist/cli/git-TJIPVSAE.js +23 -0
- package/dist/cli/index.js +98 -109
- package/dist/cli/index.mjs +46 -57
- package/dist/cli/{legacy-noops-YAO3LDPI.js → legacy-noops-VMXJPLMW.js} +9 -9
- package/dist/cli/{legacy-noops-7WLCNXLD.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
- package/dist/cli/{monitors-NRQN7M3A.mjs → monitors-5BRTBL7E.mjs} +59 -59
- package/dist/cli/{monitors-MQ6KNDOH.js → monitors-OQSI2VOL.js} +140 -140
- package/dist/cli/{org-TGKGLAB4.js → org-F5QS3HG4.js} +88 -87
- package/dist/cli/{org-X46ICV24.mjs → org-SMZ7AGR3.mjs} +28 -27
- package/dist/cli/{play-PCLCMTVK.mjs → play-CJZNLQL7.mjs} +10 -8
- package/dist/cli/play-K7HE4LBB.js +155 -0
- package/dist/cli/{providers-T2S532QL.mjs → providers-CBWXJRDG.mjs} +7 -7
- package/dist/cli/{providers-IPH3TV6J.js → providers-SH2HYOVR.js} +10 -10
- package/dist/cli/{quickstart-6CO5FGYE.mjs → quickstart-342ENF6Q.mjs} +4 -4
- package/dist/cli/{quickstart-GXFHMZL7.js → quickstart-B6EL7WDG.js} +6 -6
- package/dist/cli/{search-6HML4FB2.mjs → search-E7DKH3SI.mjs} +5 -5
- package/dist/cli/search-SEEYCQED.js +26 -0
- package/dist/cli/{secrets-KCNIINW5.mjs → secrets-FSYIPRVS.mjs} +5 -5
- package/dist/cli/{secrets-J6T743DQ.js → secrets-M2AW5RGE.js} +14 -14
- package/dist/cli/{sessions-ABXL2OZV.js → sessions-AFE4C3FQ.js} +5 -5
- package/dist/cli/{sessions-FQHM34TD.mjs → sessions-DJPGWPNA.mjs} +4 -4
- package/dist/cli/{settings-3UXXWUZ3.mjs → settings-KLN2A3PQ.mjs} +10 -10
- package/dist/cli/{settings-HB5DSAUW.js → settings-VUWBNATC.js} +77 -77
- package/dist/cli/{setup-2MOBCKAB.mjs → setup-BE6N5YV6.mjs} +15 -15
- package/dist/cli/{setup-TMJJLEYX.js → setup-I5IMTQCX.js} +50 -50
- package/dist/cli/skills-7XH5GMZB.js +28 -0
- package/dist/cli/{skills-LWS7PNTF.mjs → skills-GSNPQDUG.mjs} +4 -4
- package/dist/cli/tools-JCL4ABAF.js +40 -0
- package/dist/cli/{tools-TIUE2AK7.mjs → tools-ORCGHV4P.mjs} +8 -8
- package/dist/cli/{update-IYXAP5MI.mjs → update-UXEUWVWS.mjs} +6 -6
- package/dist/cli/update-YNZOS77Z.js +28 -0
- package/dist/cli/{workflow-3CVYOEKJ.mjs → workflow-JBQY7JJN.mjs} +7 -7
- package/dist/cli/{workflow-SGF3DFKJ.js → workflow-R7SDICTU.js} +17 -17
- package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
- package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -5
- package/dist/release.d.ts +1 -5
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-L3ZF67G5.js +0 -33
- package/dist/cli/client-HL2AHZPQ.js +0 -20
- package/dist/cli/git-MSJ6SFLT.js +0 -23
- package/dist/cli/play-TJBPVFUK.js +0 -153
- package/dist/cli/search-34MPYWVW.js +0 -26
- package/dist/cli/skills-D3IIQSUK.js +0 -28
- package/dist/cli/tools-XWUSCNVK.js +0 -40
- package/dist/cli/update-7O5MXP5K.js +0 -28
|
@@ -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 _chunk44SHFHA3js = require('./chunk-44SHFHA3.js');
|
|
5
5
|
require('./chunk-S6R3OX7B.js');
|
|
6
6
|
require('./chunk-LA46MMTL.js');
|
|
7
7
|
|
|
@@ -17,15 +17,15 @@ var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
|
|
24
24
|
require('./chunk-XNYIZMNQ.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
28
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-NMDNUOVI.js');
|
|
29
29
|
require('./chunk-OG64RBAC.js');
|
|
30
30
|
require('./chunk-COGTRVWW.js');
|
|
31
31
|
|
|
@@ -34,7 +34,7 @@ var _crypto = require('crypto');
|
|
|
34
34
|
var _fs = require('fs');
|
|
35
35
|
var _path = require('path');
|
|
36
36
|
var _promises = require('readline/promises');
|
|
37
|
-
var JSON_OPTION_DESCRIPTION = "Emit JSON output
|
|
37
|
+
var JSON_OPTION_DESCRIPTION = "Emit JSON output";
|
|
38
38
|
function withJsonOption(command) {
|
|
39
39
|
return command.option("--json", JSON_OPTION_DESCRIPTION);
|
|
40
40
|
}
|
|
@@ -56,7 +56,7 @@ var MonitorDryRunUnsupportedError = (_class2 = class extends Error {
|
|
|
56
56
|
function monitorsErrorExitCode(error) {
|
|
57
57
|
if (error instanceof MonitorsUsageError) return 2;
|
|
58
58
|
if (error instanceof MonitorFleetStateError) return 6;
|
|
59
|
-
if (error instanceof
|
|
59
|
+
if (error instanceof _chunkA7X7KFXXjs.AuthError) return 3;
|
|
60
60
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError) {
|
|
61
61
|
const status = error.statusCode;
|
|
62
62
|
if (status === 401 || status === 403) return 3;
|
|
@@ -78,10 +78,10 @@ function monitorsFailureNextCommand(error, exitCode, options) {
|
|
|
78
78
|
return "deepline monitors status";
|
|
79
79
|
}
|
|
80
80
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "monitor_tool_not_found") {
|
|
81
|
-
return "deepline monitors available
|
|
81
|
+
return "deepline monitors available";
|
|
82
82
|
}
|
|
83
|
-
if (exitCode === 3) return "deepline auth status
|
|
84
|
-
if (exitCode === 4) return "deepline monitors list --status all
|
|
83
|
+
if (exitCode === 3) return "deepline auth status";
|
|
84
|
+
if (exitCode === 4) return "deepline monitors list --status all";
|
|
85
85
|
return void 0;
|
|
86
86
|
}
|
|
87
87
|
function readValidationIssues(error) {
|
|
@@ -103,10 +103,10 @@ function reportMonitorsFailure(error, options) {
|
|
|
103
103
|
const exitCode = monitorsErrorExitCode(error);
|
|
104
104
|
const next = monitorsFailureNextCommand(error, exitCode, options);
|
|
105
105
|
const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
|
|
106
|
-
const wantsJson =
|
|
106
|
+
const wantsJson = _chunkBO3ADIBVjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
|
|
107
107
|
if (wantsJson) {
|
|
108
|
-
const payload =
|
|
109
|
-
|
|
108
|
+
const payload = _chunkBO3ADIBVjs.errorToJsonPayload.call(void 0, error);
|
|
109
|
+
_chunkBO3ADIBVjs.printJson.call(void 0, {
|
|
110
110
|
ok: false,
|
|
111
111
|
exitCode,
|
|
112
112
|
...next ? { next } : {},
|
|
@@ -437,7 +437,7 @@ function renderMonitorDeployPlan(payload) {
|
|
|
437
437
|
"",
|
|
438
438
|
"You may already have a monitor covering this \u2014 check before deploying:",
|
|
439
439
|
...candidateLines,
|
|
440
|
-
" Inspect: deepline monitors get <key>
|
|
440
|
+
" Inspect: deepline monitors get <key>"
|
|
441
441
|
);
|
|
442
442
|
}
|
|
443
443
|
const identityConflict = asRecord(payload.identity_conflict);
|
|
@@ -455,7 +455,7 @@ function renderMonitorDeployPlan(payload) {
|
|
|
455
455
|
lines.push(
|
|
456
456
|
"",
|
|
457
457
|
`An existing monitor owns this upstream identity: ${identityOwnerKey}.`,
|
|
458
|
-
`Inspect: deepline monitors get ${identityOwnerKey}
|
|
458
|
+
`Inspect: deepline monitors get ${identityOwnerKey}`,
|
|
459
459
|
"Do not deploy this key unless that conflict is resolved."
|
|
460
460
|
);
|
|
461
461
|
} else {
|
|
@@ -508,7 +508,7 @@ function renderMonitorReactivatePlan(payload, key) {
|
|
|
508
508
|
function assertMonitorDryRunAcknowledged(payload, context) {
|
|
509
509
|
if (payload.dry_run === true) return;
|
|
510
510
|
throw new MonitorDryRunUnsupportedError(
|
|
511
|
-
`${context.command} --dry-run: the server response did not acknowledge dry-run mode (missing "dry_run": true). This Deepline server may not support --dry-run for ${context.mutation}, so the response cannot be trusted as a plan. Nothing was rendered as a plan. Verify current state with \`deepline monitors get <key
|
|
511
|
+
`${context.command} --dry-run: the server response did not acknowledge dry-run mode (missing "dry_run": true). This Deepline server may not support --dry-run for ${context.mutation}, so the response cannot be trusted as a plan. Nothing was rendered as a plan. Verify current state with \`deepline monitors get <key>\`, and re-run without --dry-run only when you intend the real ${context.mutation}.`
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
514
|
function monitorDeleteRequiresYesError(key) {
|
|
@@ -520,14 +520,14 @@ Preview the plan first with:
|
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
522
|
async function handleMonitorsStatus(options) {
|
|
523
|
-
const payload = await new (0,
|
|
523
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.status();
|
|
524
524
|
const hasAccess = payload.has_access === true;
|
|
525
525
|
const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
|
|
526
526
|
const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
|
|
527
527
|
${reason}` : ""}
|
|
528
528
|
` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
|
|
529
529
|
`;
|
|
530
|
-
|
|
530
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
531
531
|
{ has_access: hasAccess, ...reason ? { reason } : {} },
|
|
532
532
|
{ json: options.json, text }
|
|
533
533
|
);
|
|
@@ -572,7 +572,7 @@ function renderAvailableToolsText(payload) {
|
|
|
572
572
|
"",
|
|
573
573
|
"Next:",
|
|
574
574
|
" Inspect payload fields, output columns, and a play binding:",
|
|
575
|
-
" deepline monitors available <provider.tool>
|
|
575
|
+
" deepline monitors available <provider.tool>",
|
|
576
576
|
" See monitors already deployed in this workspace:",
|
|
577
577
|
" deepline monitors list",
|
|
578
578
|
" Validate a monitor definition before deploying:",
|
|
@@ -593,14 +593,14 @@ async function handleMonitorsAvailable(toolId, options) {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
const tool = _nullishCoalesce(toolId, () => ( options.tool));
|
|
596
|
-
const payload = await new (0,
|
|
596
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.available(tool, {
|
|
597
597
|
...options.provider ? { provider: options.provider } : {},
|
|
598
598
|
...options.search ? { search: options.search } : {},
|
|
599
599
|
...options.limit ? { limit: options.limit } : {},
|
|
600
600
|
...options.full ? { full: true } : {},
|
|
601
601
|
...options.compact ? { compact: true } : {}
|
|
602
602
|
});
|
|
603
|
-
|
|
603
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
604
604
|
json: options.json,
|
|
605
605
|
// Human list view shows id + name + deployed_count ("deployed: N") so
|
|
606
606
|
// can-deploy vs already-deployed is visible in one view. Describing a
|
|
@@ -686,7 +686,7 @@ function renderDeployedListText(payload, requestedStatus, filterKind = "status")
|
|
|
686
686
|
);
|
|
687
687
|
}
|
|
688
688
|
if (monitors.length > 0) {
|
|
689
|
-
lines.push("", "Inspect one: deepline monitors get <key>
|
|
689
|
+
lines.push("", "Inspect one: deepline monitors get <key>");
|
|
690
690
|
}
|
|
691
691
|
return `${lines.join("\n")}
|
|
692
692
|
`;
|
|
@@ -703,14 +703,14 @@ async function handleMonitorsList(options) {
|
|
|
703
703
|
"`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
|
|
704
704
|
);
|
|
705
705
|
}
|
|
706
|
-
const payload = await new (0,
|
|
706
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.list({
|
|
707
707
|
...state ? { state } : {},
|
|
708
708
|
...options.status ? { status: options.status } : {},
|
|
709
709
|
...options.limit ? { limit: options.limit } : {},
|
|
710
710
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
711
711
|
...options.includeConsumers ? { includeConsumers: true } : {}
|
|
712
712
|
});
|
|
713
|
-
|
|
713
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
714
714
|
json: options.json,
|
|
715
715
|
text: renderDeployedListText(
|
|
716
716
|
payload,
|
|
@@ -726,10 +726,10 @@ async function handleMonitorsCheck(definition, options) {
|
|
|
726
726
|
argLabel: "<definition>",
|
|
727
727
|
command: "deepline monitors check"
|
|
728
728
|
});
|
|
729
|
-
const payload = await new (0,
|
|
729
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.check(
|
|
730
730
|
body
|
|
731
731
|
);
|
|
732
|
-
|
|
732
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
733
733
|
}
|
|
734
734
|
async function handleMonitorsDeploy(definition, options) {
|
|
735
735
|
const body = resolveMonitorJsonBody({
|
|
@@ -738,7 +738,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
738
738
|
argLabel: "<definition>",
|
|
739
739
|
command: "deepline monitors deploy"
|
|
740
740
|
});
|
|
741
|
-
const client = new (0,
|
|
741
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
742
742
|
const definitionArg = body;
|
|
743
743
|
if (options.dryRun) {
|
|
744
744
|
const payload2 = await client.monitors.deploy(definitionArg, {
|
|
@@ -746,7 +746,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
746
746
|
});
|
|
747
747
|
const valid = payload2.valid !== false;
|
|
748
748
|
const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _21 => _21(payload2), 'optionalAccess', _22 => _22.identity_conflict]));
|
|
749
|
-
|
|
749
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
750
750
|
{ dry_run: true, ...payload2 },
|
|
751
751
|
{ json: options.json, text: renderMonitorDeployPlan(payload2) }
|
|
752
752
|
);
|
|
@@ -756,7 +756,7 @@ async function handleMonitorsDeploy(definition, options) {
|
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
const payload = await client.monitors.deploy(definitionArg);
|
|
759
|
-
|
|
759
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
760
760
|
json: options.json,
|
|
761
761
|
text: renderMonitorDeployCompletion(payload)
|
|
762
762
|
});
|
|
@@ -768,29 +768,29 @@ async function handleMonitorsSync(definition, options) {
|
|
|
768
768
|
argLabel: "<definition>",
|
|
769
769
|
command: "deepline monitors sync"
|
|
770
770
|
});
|
|
771
|
-
const payload = await new (0,
|
|
771
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.sync(body, {
|
|
772
772
|
...options.dryRun ? { dryRun: true } : {},
|
|
773
773
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
|
|
774
774
|
});
|
|
775
775
|
if (options.dryRun) {
|
|
776
776
|
const plan = payload;
|
|
777
|
-
|
|
777
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
778
778
|
{ dry_run: true, ...plan },
|
|
779
779
|
{ json: options.json, text: renderMonitorDeployPlan(plan) }
|
|
780
780
|
);
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
784
784
|
json: options.json,
|
|
785
785
|
text: renderMonitorJob(payload)
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
async function handleScalarMonitorLifecycle(action, key, options) {
|
|
789
|
-
const payload = await new (0,
|
|
789
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors[action](key, {
|
|
790
790
|
...options.dryRun ? { dryRun: true } : {},
|
|
791
791
|
idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
|
|
792
792
|
});
|
|
793
|
-
|
|
793
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
794
794
|
json: options.json,
|
|
795
795
|
text: options.dryRun ? void 0 : renderMonitorJob(payload)
|
|
796
796
|
});
|
|
@@ -879,11 +879,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
|
|
|
879
879
|
lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
|
|
880
880
|
);
|
|
881
881
|
}
|
|
882
|
-
const payload = await new (0,
|
|
882
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batch.deploy(
|
|
883
883
|
lint.normalized.monitors,
|
|
884
884
|
{ idempotencyKey }
|
|
885
885
|
);
|
|
886
|
-
|
|
886
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
887
887
|
{
|
|
888
888
|
...payload,
|
|
889
889
|
idempotency_key: idempotencyKey,
|
|
@@ -916,13 +916,13 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
916
916
|
);
|
|
917
917
|
}
|
|
918
918
|
if (options.dryRun) {
|
|
919
|
-
|
|
919
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
920
920
|
{
|
|
921
921
|
ok: true,
|
|
922
922
|
dry_run: true,
|
|
923
923
|
batch: { id: batchId, desired_count: lint.normalized.monitors.length },
|
|
924
924
|
issues: lint.issues,
|
|
925
|
-
next: `deepline monitors batches sync ${batchId} --file ${options.file} --idempotency-key <stable-key
|
|
925
|
+
next: `deepline monitors batches sync ${batchId} --file ${options.file} --idempotency-key <stable-key>`
|
|
926
926
|
},
|
|
927
927
|
{ json: options.json }
|
|
928
928
|
);
|
|
@@ -933,7 +933,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
933
933
|
"sync",
|
|
934
934
|
options.idempotencyKey
|
|
935
935
|
);
|
|
936
|
-
const payload = await new (0,
|
|
936
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batches.sync(
|
|
937
937
|
batchId,
|
|
938
938
|
lint.normalized.monitors,
|
|
939
939
|
{
|
|
@@ -941,19 +941,19 @@ async function handleNamedMonitorBatchSync(batchId, options) {
|
|
|
941
941
|
...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
|
|
942
942
|
}
|
|
943
943
|
);
|
|
944
|
-
|
|
944
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
945
945
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
946
946
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
947
947
|
);
|
|
948
948
|
}
|
|
949
949
|
async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
950
950
|
if (options.dryRun) {
|
|
951
|
-
|
|
951
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
952
952
|
{
|
|
953
953
|
ok: true,
|
|
954
954
|
dry_run: true,
|
|
955
955
|
batch: { id: batchId, intent },
|
|
956
|
-
next: `deepline monitors batches ${intent} ${batchId} --idempotency-key <stable-key
|
|
956
|
+
next: `deepline monitors batches ${intent} ${batchId} --idempotency-key <stable-key>`
|
|
957
957
|
},
|
|
958
958
|
{ json: options.json }
|
|
959
959
|
);
|
|
@@ -964,17 +964,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
|
|
|
964
964
|
intent,
|
|
965
965
|
options.idempotencyKey
|
|
966
966
|
);
|
|
967
|
-
const payload = await new (0,
|
|
967
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batches[intent](batchId, {
|
|
968
968
|
idempotencyKey
|
|
969
969
|
});
|
|
970
|
-
|
|
970
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
971
971
|
{ ...payload, idempotency_key: idempotencyKey },
|
|
972
972
|
{ json: options.json, text: renderMonitorJob(payload) }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
975
975
|
async function handleNamedMonitorBatchGet(batchId, options) {
|
|
976
|
-
const payload = await new (0,
|
|
977
|
-
|
|
976
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batches.get(batchId);
|
|
977
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
978
978
|
json: options.json,
|
|
979
979
|
text: renderMonitorJob(payload)
|
|
980
980
|
});
|
|
@@ -988,7 +988,7 @@ async function handleMonitorBatchLint(options) {
|
|
|
988
988
|
const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
|
|
989
989
|
readMonitorDefinitionsJsonFile(options.file)
|
|
990
990
|
);
|
|
991
|
-
|
|
991
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
992
992
|
{
|
|
993
993
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
994
994
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1008,7 +1008,7 @@ async function handleMonitorFleetLint(options) {
|
|
|
1008
1008
|
const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
|
|
1009
1009
|
readMonitorDefinitionsJsonFile(options.file)
|
|
1010
1010
|
);
|
|
1011
|
-
|
|
1011
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
1012
1012
|
{
|
|
1013
1013
|
ok: !result.issues.some((issue) => issue.severity === "error"),
|
|
1014
1014
|
...result.normalized ? { normalized: result.normalized } : {},
|
|
@@ -1020,32 +1020,32 @@ async function handleMonitorFleetLint(options) {
|
|
|
1020
1020
|
process.exitCode = 2;
|
|
1021
1021
|
}
|
|
1022
1022
|
async function handleMonitorJobGet(jobId, options) {
|
|
1023
|
-
const payload = await new (0,
|
|
1024
|
-
|
|
1023
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.jobs.get(jobId);
|
|
1024
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1025
1025
|
json: options.json,
|
|
1026
1026
|
text: renderMonitorJob(payload)
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
1029
|
async function handleMonitorJobWait(jobId, options) {
|
|
1030
|
-
const payload = await new (0,
|
|
1030
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.jobs.wait(jobId, {
|
|
1031
1031
|
timeoutMs: fleetTimeoutMs(options.timeout),
|
|
1032
1032
|
pollIntervalMs: FLEET_POLL_INTERVAL_MS
|
|
1033
1033
|
});
|
|
1034
|
-
|
|
1034
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1035
1035
|
json: options.json,
|
|
1036
1036
|
text: renderMonitorJob(payload)
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
async function handleMonitorJobLogs(jobId, options) {
|
|
1040
1040
|
const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
|
|
1041
|
-
const payload = await new (0,
|
|
1041
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.jobs.logs(jobId, {
|
|
1042
1042
|
...limit === void 0 ? {} : { limit }
|
|
1043
1043
|
});
|
|
1044
|
-
|
|
1044
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
1045
1045
|
}
|
|
1046
1046
|
async function handleMonitorJobCancel(jobId, options) {
|
|
1047
|
-
const payload = await new (0,
|
|
1048
|
-
|
|
1047
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.jobs.cancel(jobId);
|
|
1048
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
1049
1049
|
json: options.json,
|
|
1050
1050
|
text: renderMonitorJob(payload)
|
|
1051
1051
|
});
|
|
@@ -1109,7 +1109,7 @@ var MONITOR_FLEET_COMMANDS = [
|
|
|
1109
1109
|
}
|
|
1110
1110
|
];
|
|
1111
1111
|
var MONITOR_FLEET_AGENT_NOTES = [
|
|
1112
|
-
"
|
|
1112
|
+
"Pass --json only when a program parses the output; stdout is then exactly one JSON object.",
|
|
1113
1113
|
"Every error includes a runnable `next` command \u2014 run it, do not guess.",
|
|
1114
1114
|
"Exit 5 = retry the same command; 6 = inspect counts with `get --drift`; 7 = change the request."
|
|
1115
1115
|
];
|
|
@@ -1343,7 +1343,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
|
|
|
1343
1343
|
`;
|
|
1344
1344
|
}
|
|
1345
1345
|
function reportFleetState(payload, error, options) {
|
|
1346
|
-
|
|
1346
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
1347
1347
|
{
|
|
1348
1348
|
...payload,
|
|
1349
1349
|
code: error.code,
|
|
@@ -1457,8 +1457,8 @@ async function handleMonitorFleetsInit(fleetId, options) {
|
|
|
1457
1457
|
const file = _path.resolve.call(void 0, out);
|
|
1458
1458
|
_fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
|
|
1459
1459
|
`, "utf8");
|
|
1460
|
-
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run
|
|
1461
|
-
|
|
1460
|
+
const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
|
|
1461
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
1462
1462
|
{ schemaVersion: 2, file, definition, next },
|
|
1463
1463
|
{
|
|
1464
1464
|
json: options.json,
|
|
@@ -1520,7 +1520,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1520
1520
|
'The Fleet definition has no id. Add a top-level "id" and re-run.'
|
|
1521
1521
|
);
|
|
1522
1522
|
}
|
|
1523
|
-
const client = new (0,
|
|
1523
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
1524
1524
|
const payload = await client.monitors.fleets.sync(
|
|
1525
1525
|
_nullishCoalesce(definition, () => ( fleetId)),
|
|
1526
1526
|
{
|
|
@@ -1542,7 +1542,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1544
1544
|
if (!options.wait || options.dryRun) {
|
|
1545
|
-
|
|
1545
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1546
1546
|
json: options.json,
|
|
1547
1547
|
text: renderFleetSync(payload, {
|
|
1548
1548
|
fleetId,
|
|
@@ -1568,10 +1568,10 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
|
|
|
1568
1568
|
const status = fleetStatus(final);
|
|
1569
1569
|
const summary = renderFleetGet(final);
|
|
1570
1570
|
if (status === "converged") {
|
|
1571
|
-
|
|
1571
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1572
1572
|
return;
|
|
1573
1573
|
}
|
|
1574
|
-
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift
|
|
1574
|
+
const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
|
|
1575
1575
|
if (status === "degraded") {
|
|
1576
1576
|
reportFleetState(
|
|
1577
1577
|
envelope,
|
|
@@ -1601,14 +1601,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1601
1601
|
);
|
|
1602
1602
|
}
|
|
1603
1603
|
const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
|
|
1604
|
-
const client = new (0,
|
|
1604
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
1605
1605
|
const payload = await client.monitors.fleets.get(fleetId, {
|
|
1606
1606
|
...options.drift ? { drift: true } : {},
|
|
1607
1607
|
...limit !== void 0 ? { limit } : {}
|
|
1608
1608
|
});
|
|
1609
1609
|
const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
|
|
1610
1610
|
if (!options.check) {
|
|
1611
|
-
|
|
1611
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
|
|
@@ -1616,7 +1616,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1616
1616
|
);
|
|
1617
1617
|
const unconverged = statuses.filter((status) => status !== "converged");
|
|
1618
1618
|
if (unconverged.length === 0) {
|
|
1619
|
-
|
|
1619
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
1622
|
const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
|
|
@@ -1626,7 +1626,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
|
|
|
1626
1626
|
new MonitorFleetStateError({
|
|
1627
1627
|
code: degraded ? "MONITOR_FLEET_DEGRADED" : "MONITOR_FLEET_NOT_CONVERGED",
|
|
1628
1628
|
message: degraded ? `Fleet ${target} is degraded: members are stuck and retrying will not move them.` : `Fleet ${target} has not converged yet.`,
|
|
1629
|
-
next: _nullishCoalesce(fleetServerNext(payload), () => ( `deepline monitors fleets get ${fleetShellArg(target)} --drift
|
|
1629
|
+
next: _nullishCoalesce(fleetServerNext(payload), () => ( `deepline monitors fleets get ${fleetShellArg(target)} --drift`))
|
|
1630
1630
|
}),
|
|
1631
1631
|
{ json: options.json, text }
|
|
1632
1632
|
);
|
|
@@ -1655,13 +1655,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1655
1655
|
${fleetReactivateCommandLine(fleetId, options)}`
|
|
1656
1656
|
);
|
|
1657
1657
|
}
|
|
1658
|
-
const client = new (0,
|
|
1658
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
1659
1659
|
const payload = await client.monitors.fleets.reactivate(fleetId, {
|
|
1660
1660
|
idempotencyKey
|
|
1661
1661
|
});
|
|
1662
1662
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1663
1663
|
if (!options.wait) {
|
|
1664
|
-
|
|
1664
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1665
1665
|
json: options.json,
|
|
1666
1666
|
text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
|
|
1667
1667
|
idempotency key ${idempotencyKey}
|
|
@@ -1684,7 +1684,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1684
1684
|
const envelope = { ...accepted, ...final };
|
|
1685
1685
|
const text = renderFleetGet(final);
|
|
1686
1686
|
if (fleetStatus(final) === "converged") {
|
|
1687
|
-
|
|
1687
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
|
|
1688
1688
|
return;
|
|
1689
1689
|
}
|
|
1690
1690
|
reportFleetState(
|
|
@@ -1692,7 +1692,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
|
|
|
1692
1692
|
new MonitorFleetStateError({
|
|
1693
1693
|
code: "MONITOR_FLEET_WAIT_TIMEOUT",
|
|
1694
1694
|
message: `Stopped waiting after ${timeoutMs}ms. Fleet ${fleetId} recovery is still in progress on the server.`,
|
|
1695
|
-
next: _nullishCoalesce(fleetServerNext(final), () => ( `deepline monitors fleets get ${fleetShellArg(fleetId)}
|
|
1695
|
+
next: _nullishCoalesce(fleetServerNext(final), () => ( `deepline monitors fleets get ${fleetShellArg(fleetId)}`))
|
|
1696
1696
|
}),
|
|
1697
1697
|
{ json: options.json, text }
|
|
1698
1698
|
);
|
|
@@ -1726,7 +1726,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
1729
|
-
const client = new (0,
|
|
1729
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
1730
1730
|
if (options.dryRun) {
|
|
1731
1731
|
const plan = await client.monitors.fleets.deactivate(fleetId, {
|
|
1732
1732
|
dryRun: true,
|
|
@@ -1736,7 +1736,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
|
|
|
1736
1736
|
command: "deepline monitors fleets deactivate",
|
|
1737
1737
|
mutation: "fleet deactivate"
|
|
1738
1738
|
});
|
|
1739
|
-
|
|
1739
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, plan, {
|
|
1740
1740
|
json: options.json,
|
|
1741
1741
|
text: renderFleetDeactivatePlan(plan, fleetId)
|
|
1742
1742
|
});
|
|
@@ -1774,7 +1774,7 @@ Preview the blast radius first:
|
|
|
1774
1774
|
});
|
|
1775
1775
|
const accepted = { ...payload, idempotency_key: idempotencyKey };
|
|
1776
1776
|
if (payload.already === true) {
|
|
1777
|
-
|
|
1777
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1778
1778
|
json: options.json,
|
|
1779
1779
|
text: `Fleet ${fleetId} is already deactivated.
|
|
1780
1780
|
`
|
|
@@ -1786,7 +1786,7 @@ Preview the blast radius first:
|
|
|
1786
1786
|
` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
|
|
1787
1787
|
` : "");
|
|
1788
1788
|
if (!options.wait) {
|
|
1789
|
-
|
|
1789
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, accepted, {
|
|
1790
1790
|
json: options.json,
|
|
1791
1791
|
text: acceptedText
|
|
1792
1792
|
});
|
|
@@ -1808,7 +1808,7 @@ Preview the blast radius first:
|
|
|
1808
1808
|
const envelope = { ...accepted, ...final };
|
|
1809
1809
|
const summary = renderFleetGet(final);
|
|
1810
1810
|
if (fleetStatus(final) === "deactivated") {
|
|
1811
|
-
|
|
1811
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
|
|
1812
1812
|
return;
|
|
1813
1813
|
}
|
|
1814
1814
|
reportFleetState(
|
|
@@ -1816,7 +1816,7 @@ Preview the blast radius first:
|
|
|
1816
1816
|
new MonitorFleetStateError({
|
|
1817
1817
|
code: "MONITOR_FLEET_WAIT_TIMEOUT",
|
|
1818
1818
|
message: `Stopped waiting after ${timeoutMs}ms. Deactivation of fleet ${fleetId} is still in progress on the server; nothing was lost.`,
|
|
1819
|
-
next: _nullishCoalesce(fleetServerNext(final), () => ( `deepline monitors fleets get ${fleetShellArg(fleetId)}
|
|
1819
|
+
next: _nullishCoalesce(fleetServerNext(final), () => ( `deepline monitors fleets get ${fleetShellArg(fleetId)}`))
|
|
1820
1820
|
}),
|
|
1821
1821
|
{ json: options.json, text: summary }
|
|
1822
1822
|
);
|
|
@@ -1839,7 +1839,7 @@ function handleMonitorFleetsOverview(options) {
|
|
|
1839
1839
|
"Agent notes:",
|
|
1840
1840
|
...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
|
|
1841
1841
|
];
|
|
1842
|
-
|
|
1842
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
1843
1843
|
{
|
|
1844
1844
|
schemaVersion: 1,
|
|
1845
1845
|
lifecycle: MONITOR_FLEET_LIFECYCLE,
|
|
@@ -1910,7 +1910,7 @@ function renderMonitorGet(payload) {
|
|
|
1910
1910
|
lines.push(
|
|
1911
1911
|
"",
|
|
1912
1912
|
`Sample test payload: ${JSON.stringify(samplePayload)}`,
|
|
1913
|
-
` deepline monitors test ${key} '${JSON.stringify(samplePayload)}'
|
|
1913
|
+
` deepline monitors test ${key} '${JSON.stringify(samplePayload)}'`
|
|
1914
1914
|
);
|
|
1915
1915
|
}
|
|
1916
1916
|
const monitorSpec = asRecord(payload.monitor_spec);
|
|
@@ -1976,7 +1976,7 @@ function renderMonitorGet(payload) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
if (payload.consumer_health_truncated === true) {
|
|
1979
|
-
lines.push(" Results are truncated
|
|
1979
|
+
lines.push(" Results are truncated.");
|
|
1980
1980
|
}
|
|
1981
1981
|
lines.push("", `Dependent published plays (${plays.length}):`);
|
|
1982
1982
|
if (plays.length === 0) {
|
|
@@ -1994,13 +1994,13 @@ function renderMonitorGet(payload) {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
if (_optionalChain([dependents, 'optionalAccess', _64 => _64.truncated]) === true) {
|
|
1997
|
-
lines.push(" Results are truncated
|
|
1997
|
+
lines.push(" Results are truncated.");
|
|
1998
1998
|
}
|
|
1999
1999
|
return `${lines.join("\n")}
|
|
2000
2000
|
`;
|
|
2001
2001
|
}
|
|
2002
2002
|
async function handleMonitorsGet(key, options) {
|
|
2003
|
-
const client = new (0,
|
|
2003
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
2004
2004
|
const payload = await client.monitors.get(key);
|
|
2005
2005
|
const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
|
|
2006
2006
|
const dependents = boundPlays ? {
|
|
@@ -2008,24 +2008,24 @@ async function handleMonitorsGet(key, options) {
|
|
|
2008
2008
|
truncated: payload.consumer_health_truncated === true
|
|
2009
2009
|
} : await client.monitors.dependents(key);
|
|
2010
2010
|
const detail = { ...payload, dependents };
|
|
2011
|
-
|
|
2011
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, detail, {
|
|
2012
2012
|
json: options.json,
|
|
2013
2013
|
text: renderMonitorGet(detail)
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
2016
|
async function handleMonitorsTest(key, payload, options) {
|
|
2017
2017
|
const explicitPayload = parseJsonObjectArg(payload, "<payload>");
|
|
2018
|
-
const result = await new (0,
|
|
2018
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.test(key, explicitPayload);
|
|
2019
2019
|
const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
|
|
2020
2020
|
mode: validation_only (no rows written, credits spent, or Plays dispatched)
|
|
2021
2021
|
persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
|
|
2022
2022
|
dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
|
|
2023
2023
|
`;
|
|
2024
|
-
|
|
2024
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
|
|
2025
2025
|
}
|
|
2026
2026
|
async function handleMonitorsValidate(key, options) {
|
|
2027
|
-
const result = await new (0,
|
|
2028
|
-
|
|
2027
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.validate(key);
|
|
2028
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
2029
2029
|
if (result.valid === false) process.exitCode = 7;
|
|
2030
2030
|
}
|
|
2031
2031
|
async function confirmMonitorDelete(key) {
|
|
@@ -2043,14 +2043,14 @@ async function confirmMonitorDelete(key) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
2045
|
async function handleMonitorsDelete(key, options) {
|
|
2046
|
-
const client = new (0,
|
|
2046
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
2047
2047
|
if (options.dryRun) {
|
|
2048
2048
|
const payload2 = await client.monitors.delete(key, { dryRun: true });
|
|
2049
2049
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2050
2050
|
command: "deepline monitors delete",
|
|
2051
2051
|
mutation: "delete"
|
|
2052
2052
|
});
|
|
2053
|
-
|
|
2053
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2054
2054
|
json: options.json,
|
|
2055
2055
|
text: renderMonitorDeletePlan(payload2, key)
|
|
2056
2056
|
});
|
|
@@ -2070,7 +2070,7 @@ async function handleMonitorsDelete(key, options) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
const payload = await client.monitors.delete(key);
|
|
2073
|
-
|
|
2073
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2074
2074
|
}
|
|
2075
2075
|
async function handleMonitorsUpdate(key, patch, options) {
|
|
2076
2076
|
const body = resolveMonitorJsonBody({
|
|
@@ -2079,25 +2079,25 @@ async function handleMonitorsUpdate(key, patch, options) {
|
|
|
2079
2079
|
argLabel: "<patch>",
|
|
2080
2080
|
command: `deepline monitors update ${key}`
|
|
2081
2081
|
});
|
|
2082
|
-
const payload = await new (0,
|
|
2083
|
-
|
|
2082
|
+
const payload = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.update(key, body);
|
|
2083
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2084
2084
|
}
|
|
2085
2085
|
async function handleMonitorsReactivate(key, options) {
|
|
2086
|
-
const client = new (0,
|
|
2086
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
2087
2087
|
if (options.dryRun) {
|
|
2088
2088
|
const payload2 = await client.monitors.reactivate(key, { dryRun: true });
|
|
2089
2089
|
assertMonitorDryRunAcknowledged(payload2, {
|
|
2090
2090
|
command: "deepline monitors reactivate",
|
|
2091
2091
|
mutation: "reactivate"
|
|
2092
2092
|
});
|
|
2093
|
-
|
|
2093
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload2, {
|
|
2094
2094
|
json: options.json,
|
|
2095
2095
|
text: renderMonitorReactivatePlan(payload2, key)
|
|
2096
2096
|
});
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
2099
2099
|
const payload = await client.monitors.reactivate(key);
|
|
2100
|
-
|
|
2100
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
|
|
2101
2101
|
}
|
|
2102
2102
|
var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
|
|
2103
2103
|
function monitorHealthLine(health) {
|
|
@@ -2202,7 +2202,7 @@ function monitorHealthText(health) {
|
|
|
2202
2202
|
`${health.alignment_required} monitor(s) need provider identity alignment; normal repair intentionally will not guess or create a paid replacement.`
|
|
2203
2203
|
);
|
|
2204
2204
|
lines.push(
|
|
2205
|
-
`Run the exact inventory audit, then review one safe adoption candidate: deepline-admin monitors reconcile ${health.scope.org_id} --monitor <monitor-key> --environment production
|
|
2205
|
+
`Run the exact inventory audit, then review one safe adoption candidate: deepline-admin monitors reconcile ${health.scope.org_id} --monitor <monitor-key> --environment production`
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
if (health.worst_offenders.length > 0) {
|
|
@@ -2219,7 +2219,7 @@ function monitorHealthText(health) {
|
|
|
2219
2219
|
`;
|
|
2220
2220
|
}
|
|
2221
2221
|
async function handleMonitorsAudit(options) {
|
|
2222
|
-
const client = new (0,
|
|
2222
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
2223
2223
|
const fleetId = _optionalChain([options, 'access', _73 => _73.fleet, 'optionalAccess', _74 => _74.trim, 'call', _75 => _75()]) || void 0;
|
|
2224
2224
|
const scope = fleetId ? { fleetId } : {};
|
|
2225
2225
|
let result = await client.monitors.audit(scope);
|
|
@@ -2263,7 +2263,7 @@ async function handleMonitorsAudit(options) {
|
|
|
2263
2263
|
"",
|
|
2264
2264
|
monitorHealthText(health)
|
|
2265
2265
|
].join("\n");
|
|
2266
|
-
|
|
2266
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2267
2267
|
{ ...result, audit: { ...result.audit, totals }, health },
|
|
2268
2268
|
{ json: options.json, text }
|
|
2269
2269
|
);
|
|
@@ -2276,10 +2276,10 @@ async function handleMonitorsRepair(options) {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
async function handleMonitorsHealth(options) {
|
|
2278
2278
|
const fleetId = _optionalChain([options, 'access', _79 => _79.fleet, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || void 0;
|
|
2279
|
-
const health = await new (0,
|
|
2279
|
+
const health = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.health(
|
|
2280
2280
|
fleetId ? { fleetId } : {}
|
|
2281
2281
|
);
|
|
2282
|
-
|
|
2282
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, health, {
|
|
2283
2283
|
json: options.json,
|
|
2284
2284
|
text: monitorHealthText(health)
|
|
2285
2285
|
});
|
|
@@ -2346,28 +2346,28 @@ async function handleMonitorBatchDeploy(options) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
if (isCanonicalBatchJsonDocument(manifestNdjson)) {
|
|
2348
2348
|
throw new MonitorsUsageError(
|
|
2349
|
-
"Canonical Batch JSON cannot use --dry-run or --yes; those flags select the retained legacy NDJSON operation. Run `deepline monitors batch lint --file <batch.json
|
|
2349
|
+
"Canonical Batch JSON cannot use --dry-run or --yes; those flags select the retained legacy NDJSON operation. Run `deepline monitors batch lint --file <batch.json>`, then submit the Monitor Job with `deepline monitors batch deploy --file <batch.json> --idempotency-key <key>`."
|
|
2350
2350
|
);
|
|
2351
2351
|
}
|
|
2352
2352
|
const idempotencyKey = monitorBatchIdempotencyKey(
|
|
2353
2353
|
"deploy",
|
|
2354
2354
|
options.idempotencyKey
|
|
2355
2355
|
);
|
|
2356
|
-
const result = await new (0,
|
|
2356
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batch.submit({
|
|
2357
2357
|
kind: "deploy",
|
|
2358
2358
|
manifestNdjson,
|
|
2359
2359
|
dryRun: options.dryRun === true,
|
|
2360
2360
|
idempotencyKey
|
|
2361
2361
|
});
|
|
2362
2362
|
const operation = result.operation;
|
|
2363
|
-
|
|
2363
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2364
2364
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2365
2365
|
{
|
|
2366
2366
|
json: options.json,
|
|
2367
2367
|
text: [
|
|
2368
2368
|
`${result.rejoined ? "rejoined" : "submitted"} deploy batch ${operation.runId}`,
|
|
2369
2369
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2370
|
-
`inspect: deepline monitors batch get ${operation.runId}
|
|
2370
|
+
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2371
2371
|
].join("\n") + "\n"
|
|
2372
2372
|
}
|
|
2373
2373
|
);
|
|
@@ -2388,7 +2388,7 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2388
2388
|
kind,
|
|
2389
2389
|
options.idempotencyKey
|
|
2390
2390
|
);
|
|
2391
|
-
const result = await new (0,
|
|
2391
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batch.submit({
|
|
2392
2392
|
kind,
|
|
2393
2393
|
scope,
|
|
2394
2394
|
dryRun: options.dryRun === true,
|
|
@@ -2399,16 +2399,16 @@ async function handleMonitorBatch(kind, options) {
|
|
|
2399
2399
|
const text = [
|
|
2400
2400
|
`${result.rejoined ? "rejoined" : "submitted"} ${operation.kind} batch ${operation.runId}`,
|
|
2401
2401
|
`state ${operation.state} \xB7 retry key ${idempotencyKey}`,
|
|
2402
|
-
`inspect: deepline monitors batch get ${operation.runId}
|
|
2402
|
+
`inspect: deepline monitors batch get ${operation.runId}`
|
|
2403
2403
|
].join("\n");
|
|
2404
|
-
|
|
2404
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2405
2405
|
{ ...result, idempotency_key: idempotencyKey },
|
|
2406
2406
|
{ json: options.json, text: `${text}
|
|
2407
2407
|
` }
|
|
2408
2408
|
);
|
|
2409
2409
|
}
|
|
2410
2410
|
async function handleMonitorBatchGet(operationId, options) {
|
|
2411
|
-
const result = await new (0,
|
|
2411
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().monitors.batch.get(operationId, {
|
|
2412
2412
|
...options.cursor ? { cursor: options.cursor } : {}
|
|
2413
2413
|
});
|
|
2414
2414
|
const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
|
|
@@ -2420,7 +2420,7 @@ async function handleMonitorBatchGet(operationId, options) {
|
|
|
2420
2420
|
`results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
|
|
2421
2421
|
] : []
|
|
2422
2422
|
].join("\n");
|
|
2423
|
-
|
|
2423
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
|
|
2424
2424
|
` });
|
|
2425
2425
|
}
|
|
2426
2426
|
function registerMonitorsCommands(program) {
|
|
@@ -2446,15 +2446,15 @@ Exit codes:
|
|
|
2446
2446
|
\`monitors status\` exits 1 when you lack monitor access (documented contract).
|
|
2447
2447
|
|
|
2448
2448
|
Examples:
|
|
2449
|
-
deepline monitors status
|
|
2450
|
-
deepline tools list --categories monitors
|
|
2449
|
+
deepline monitors status
|
|
2450
|
+
deepline tools list --categories monitors
|
|
2451
2451
|
deepline describe deepline_native.company_radar
|
|
2452
2452
|
deepline monitors check '{"key":"job-openings","tool":"deepline_native.company_radar","payload":{"domain":"stripe.com","radar_type":"company_job_openings"}}'
|
|
2453
2453
|
deepline monitors deploy --dry-run --file monitor.json
|
|
2454
2454
|
deepline monitors deploy --file monitor.json
|
|
2455
|
-
deepline monitors list --status all
|
|
2456
|
-
deepline monitors get my-monitor
|
|
2457
|
-
deepline monitors update my-monitor '{"name":"Interested replies"}'
|
|
2455
|
+
deepline monitors list --status all
|
|
2456
|
+
deepline monitors get my-monitor
|
|
2457
|
+
deepline monitors update my-monitor '{"name":"Interested replies"}'
|
|
2458
2458
|
deepline monitors delete my-monitor --dry-run
|
|
2459
2459
|
deepline monitors reactivate my-monitor --dry-run
|
|
2460
2460
|
`
|
|
@@ -2479,7 +2479,7 @@ Notes:
|
|
|
2479
2479
|
|
|
2480
2480
|
Examples:
|
|
2481
2481
|
deepline monitors audit
|
|
2482
|
-
deepline monitors audit --fleet accounts-eu
|
|
2482
|
+
deepline monitors audit --fleet accounts-eu
|
|
2483
2483
|
deepline monitors audit --fleet accounts-eu --watch --timeout 5m
|
|
2484
2484
|
`
|
|
2485
2485
|
)
|
|
@@ -2503,7 +2503,7 @@ Notes:
|
|
|
2503
2503
|
is selected for repair; current Convex writes cannot create that state.
|
|
2504
2504
|
|
|
2505
2505
|
It returns a run id immediately. Inspect retained results with
|
|
2506
|
-
'deepline monitors batch get <run-id>
|
|
2506
|
+
'deepline monitors batch get <run-id>'. Reuse --idempotency-key after
|
|
2507
2507
|
a lost response to rejoin the exact run without another provider request.
|
|
2508
2508
|
|
|
2509
2509
|
Examples:
|
|
@@ -2528,7 +2528,7 @@ Notes:
|
|
|
2528
2528
|
|
|
2529
2529
|
Examples:
|
|
2530
2530
|
deepline monitors health
|
|
2531
|
-
deepline monitors health --fleet accounts-eu
|
|
2531
|
+
deepline monitors health --fleet accounts-eu
|
|
2532
2532
|
`
|
|
2533
2533
|
)
|
|
2534
2534
|
).action(monitorsAction(handleMonitorsHealth));
|
|
@@ -2668,7 +2668,7 @@ Notes:
|
|
|
2668
2668
|
|
|
2669
2669
|
Examples:
|
|
2670
2670
|
deepline monitors status
|
|
2671
|
-
deepline monitors status
|
|
2671
|
+
deepline monitors status
|
|
2672
2672
|
`
|
|
2673
2673
|
)
|
|
2674
2674
|
).action(monitorsAction(handleMonitorsStatus));
|
|
@@ -2689,10 +2689,10 @@ Notes:
|
|
|
2689
2689
|
|
|
2690
2690
|
Examples:
|
|
2691
2691
|
deepline monitors available
|
|
2692
|
-
deepline monitors available --full
|
|
2693
|
-
deepline monitors available --provider deepline_native
|
|
2694
|
-
deepline monitors available deepline_native.company_radar
|
|
2695
|
-
deepline monitors available --search jobs
|
|
2692
|
+
deepline monitors available --full
|
|
2693
|
+
deepline monitors available --provider deepline_native
|
|
2694
|
+
deepline monitors available deepline_native.company_radar
|
|
2695
|
+
deepline monitors available --search jobs
|
|
2696
2696
|
`
|
|
2697
2697
|
).option("--provider <provider>", "Filter by provider").option(
|
|
2698
2698
|
"--tool <tool>",
|
|
@@ -2723,11 +2723,11 @@ Notes:
|
|
|
2723
2723
|
|
|
2724
2724
|
Examples:
|
|
2725
2725
|
deepline monitors list
|
|
2726
|
-
deepline monitors list --state billing_suspended
|
|
2727
|
-
deepline monitors list --state all
|
|
2728
|
-
deepline monitors list --status all
|
|
2729
|
-
deepline monitors list --status all --cursor <next_cursor>
|
|
2730
|
-
deepline monitors list --include-consumers --limit 20
|
|
2726
|
+
deepline monitors list --state billing_suspended
|
|
2727
|
+
deepline monitors list --state all
|
|
2728
|
+
deepline monitors list --status all
|
|
2729
|
+
deepline monitors list --status all --cursor <next_cursor>
|
|
2730
|
+
deepline monitors list --include-consumers --limit 20
|
|
2731
2731
|
`
|
|
2732
2732
|
).option(
|
|
2733
2733
|
"--state <state>",
|
|
@@ -2760,7 +2760,7 @@ Notes:
|
|
|
2760
2760
|
update so scope and downstream effects are visible.
|
|
2761
2761
|
|
|
2762
2762
|
Examples:
|
|
2763
|
-
deepline monitors get my-monitor
|
|
2763
|
+
deepline monitors get my-monitor
|
|
2764
2764
|
`
|
|
2765
2765
|
)
|
|
2766
2766
|
).action(monitorsAction(handleMonitorsGet));
|
|
@@ -2778,7 +2778,7 @@ Notes:
|
|
|
2778
2778
|
payload.
|
|
2779
2779
|
|
|
2780
2780
|
Examples:
|
|
2781
|
-
deepline monitors test rb2b-website-visitors '{"LinkedIn URL":"https://www.linkedin.com/in/example","Website":"https://example.com"}'
|
|
2781
|
+
deepline monitors test rb2b-website-visitors '{"LinkedIn URL":"https://www.linkedin.com/in/example","Website":"https://example.com"}'
|
|
2782
2782
|
`
|
|
2783
2783
|
)
|
|
2784
2784
|
).action(monitorsAction(handleMonitorsTest));
|
|
@@ -2881,8 +2881,8 @@ previously unseen historical findings are chargeable. Filter-only updates,
|
|
|
2881
2881
|
repair, and reactivation instead use a fresh future-only source boundary.
|
|
2882
2882
|
|
|
2883
2883
|
Examples:
|
|
2884
|
-
deepline monitors update my-monitor '{"name":"Interested replies"}'
|
|
2885
|
-
deepline monitors update job-openings '{"payload":{"job_titles":"CEO OR CFO"}}'
|
|
2884
|
+
deepline monitors update my-monitor '{"name":"Interested replies"}'
|
|
2885
|
+
deepline monitors update job-openings '{"payload":{"job_titles":"CEO OR CFO"}}'
|
|
2886
2886
|
deepline monitors update my-monitor --file patch.json
|
|
2887
2887
|
`
|
|
2888
2888
|
).option(
|
|
@@ -2904,7 +2904,7 @@ returns already_deleted without making another upstream call.
|
|
|
2904
2904
|
|
|
2905
2905
|
Examples:
|
|
2906
2906
|
deepline monitors delete my-monitor --dry-run
|
|
2907
|
-
deepline monitors delete my-monitor --yes
|
|
2907
|
+
deepline monitors delete my-monitor --yes
|
|
2908
2908
|
`
|
|
2909
2909
|
).option("--dry-run", "Show the delete plan without deleting anything").option(
|
|
2910
2910
|
"--yes",
|
|
@@ -2927,7 +2927,7 @@ Notes:
|
|
|
2927
2927
|
|
|
2928
2928
|
Examples:
|
|
2929
2929
|
deepline monitors reactivate my-monitor --dry-run
|
|
2930
|
-
deepline monitors reactivate my-monitor
|
|
2930
|
+
deepline monitors reactivate my-monitor
|
|
2931
2931
|
`
|
|
2932
2932
|
).option("--dry-run", "Show the reactivation cost without reactivating")
|
|
2933
2933
|
).action(monitorsAction(handleMonitorsReactivate));
|
|
@@ -3066,8 +3066,8 @@ Notes:
|
|
|
3066
3066
|
Examples:
|
|
3067
3067
|
deepline monitors fleets sync --file fleet.json --dry-run
|
|
3068
3068
|
deepline monitors fleets sync --file fleet.json --wait --timeout 20m
|
|
3069
|
-
deepline monitors fleets sync account-job-openings --wait
|
|
3070
|
-
cat fleet.json | deepline monitors fleets sync --file - --dry-run
|
|
3069
|
+
deepline monitors fleets sync account-job-openings --wait
|
|
3070
|
+
cat fleet.json | deepline monitors fleets sync --file - --dry-run
|
|
3071
3071
|
`
|
|
3072
3072
|
).option(
|
|
3073
3073
|
"-f, --file <path>",
|
|
@@ -3115,9 +3115,9 @@ Notes:
|
|
|
3115
3115
|
read-only here and are defined by each Play's sqlListeners.
|
|
3116
3116
|
|
|
3117
3117
|
Examples:
|
|
3118
|
-
deepline monitors fleets get
|
|
3119
|
-
deepline monitors fleets get account-job-openings
|
|
3120
|
-
deepline monitors fleets get account-job-openings --drift --limit 50
|
|
3118
|
+
deepline monitors fleets get
|
|
3119
|
+
deepline monitors fleets get account-job-openings
|
|
3120
|
+
deepline monitors fleets get account-job-openings --drift --limit 50
|
|
3121
3121
|
deepline monitors fleets get account-job-openings --check
|
|
3122
3122
|
`
|
|
3123
3123
|
).option("--drift", "Include the members that have not settled, and why").option("--limit <n>", "Maximum drift rows to return").option(
|
|
@@ -3136,7 +3136,7 @@ Notes:
|
|
|
3136
3136
|
|
|
3137
3137
|
Examples:
|
|
3138
3138
|
deepline monitors fleets deactivate account-job-openings --dry-run
|
|
3139
|
-
deepline monitors fleets deactivate account-job-openings --yes --wait
|
|
3139
|
+
deepline monitors fleets deactivate account-job-openings --yes --wait
|
|
3140
3140
|
`
|
|
3141
3141
|
).option("--dry-run", "Show the blast radius without deactivating").option("--wait", "Poll until the fleet reports deactivated").option(
|
|
3142
3142
|
"--timeout <duration>",
|
|
@@ -3176,7 +3176,7 @@ Notes:
|
|
|
3176
3176
|
may restart lifecycle billing. A credit top-up alone never does this.
|
|
3177
3177
|
|
|
3178
3178
|
Example:
|
|
3179
|
-
deepline monitors fleets reactivate account-job-openings --yes --wait
|
|
3179
|
+
deepline monitors fleets reactivate account-job-openings --yes --wait
|
|
3180
3180
|
`
|
|
3181
3181
|
).option("--wait", "Poll until the fleet reports converged").option(
|
|
3182
3182
|
"--timeout <duration>",
|