deepline 0.1.145 → 0.1.146
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 +2 -2
- package/dist/cli/index.js +218 -2
- package/dist/cli/index.mjs +218 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -101,10 +101,10 @@ export const SDK_RELEASE = {
|
|
|
101
101
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
102
102
|
// the SDK enrich generator's one-second stale policy.
|
|
103
103
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
104
|
-
version: '0.1.
|
|
104
|
+
version: '0.1.146',
|
|
105
105
|
apiContract: '2026-06-dataset-column-cell-stale-hard-cutover',
|
|
106
106
|
supportPolicy: {
|
|
107
|
-
latest: '0.1.
|
|
107
|
+
latest: '0.1.146',
|
|
108
108
|
minimumSupported: '0.1.53',
|
|
109
109
|
deprecatedBelow: '0.1.53',
|
|
110
110
|
commandMinimumSupported: [
|
package/dist/cli/index.js
CHANGED
|
@@ -619,10 +619,10 @@ var SDK_RELEASE = {
|
|
|
619
619
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
620
620
|
// the SDK enrich generator's one-second stale policy.
|
|
621
621
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
622
|
-
version: "0.1.
|
|
622
|
+
version: "0.1.146",
|
|
623
623
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
624
624
|
supportPolicy: {
|
|
625
|
-
latest: "0.1.
|
|
625
|
+
latest: "0.1.146",
|
|
626
626
|
minimumSupported: "0.1.53",
|
|
627
627
|
deprecatedBelow: "0.1.53",
|
|
628
628
|
commandMinimumSupported: [
|
|
@@ -18946,6 +18946,221 @@ Examples:
|
|
|
18946
18946
|
}
|
|
18947
18947
|
}
|
|
18948
18948
|
|
|
18949
|
+
// src/cli/commands/monitors.ts
|
|
18950
|
+
var FORBIDDEN_AS_API_ERROR = { forbiddenAsApiError: true };
|
|
18951
|
+
function buildHttpClient() {
|
|
18952
|
+
return new HttpClient(resolveConfig());
|
|
18953
|
+
}
|
|
18954
|
+
function parseJsonObjectArg(raw, flag) {
|
|
18955
|
+
let parsed;
|
|
18956
|
+
try {
|
|
18957
|
+
parsed = JSON.parse(raw);
|
|
18958
|
+
} catch (error) {
|
|
18959
|
+
throw new Error(
|
|
18960
|
+
`${flag} must be a JSON object. ${error instanceof Error ? error.message : String(error)}`
|
|
18961
|
+
);
|
|
18962
|
+
}
|
|
18963
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
18964
|
+
throw new Error(`${flag} must be a JSON object.`);
|
|
18965
|
+
}
|
|
18966
|
+
return parsed;
|
|
18967
|
+
}
|
|
18968
|
+
function encodeKey(key) {
|
|
18969
|
+
return encodeURIComponent(key);
|
|
18970
|
+
}
|
|
18971
|
+
async function handleMonitorsTools(options) {
|
|
18972
|
+
const http = buildHttpClient();
|
|
18973
|
+
const params = new URLSearchParams();
|
|
18974
|
+
if (options.provider) params.set("provider", options.provider);
|
|
18975
|
+
if (options.tool) params.set("tool", options.tool);
|
|
18976
|
+
if (options.search) params.set("search", options.search);
|
|
18977
|
+
if (options.limit) params.set("limit", options.limit);
|
|
18978
|
+
const query = params.toString();
|
|
18979
|
+
const payload = await http.request(
|
|
18980
|
+
`/api/v2/monitors/tools${query ? `?${query}` : ""}`,
|
|
18981
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
18982
|
+
);
|
|
18983
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
18984
|
+
}
|
|
18985
|
+
async function handleMonitorsCheck(definition, options) {
|
|
18986
|
+
const http = buildHttpClient();
|
|
18987
|
+
const body = parseJsonObjectArg(definition, "--definition");
|
|
18988
|
+
const payload = await http.request(
|
|
18989
|
+
"/api/v2/monitors/check",
|
|
18990
|
+
{ method: "POST", body, ...FORBIDDEN_AS_API_ERROR }
|
|
18991
|
+
);
|
|
18992
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
18993
|
+
}
|
|
18994
|
+
async function handleMonitorsDeploy(definition, options) {
|
|
18995
|
+
const http = buildHttpClient();
|
|
18996
|
+
const body = parseJsonObjectArg(definition, "--definition");
|
|
18997
|
+
const payload = await http.request(
|
|
18998
|
+
"/api/v2/monitors/deploy",
|
|
18999
|
+
{ method: "POST", body, ...FORBIDDEN_AS_API_ERROR }
|
|
19000
|
+
);
|
|
19001
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19002
|
+
}
|
|
19003
|
+
async function handleDeployedList(options) {
|
|
19004
|
+
const http = buildHttpClient();
|
|
19005
|
+
const params = new URLSearchParams();
|
|
19006
|
+
if (options.status) params.set("status", options.status);
|
|
19007
|
+
if (options.limit) params.set("limit", options.limit);
|
|
19008
|
+
const query = params.toString();
|
|
19009
|
+
const payload = await http.request(
|
|
19010
|
+
`/api/v2/monitors/deployed${query ? `?${query}` : ""}`,
|
|
19011
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
19012
|
+
);
|
|
19013
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19014
|
+
}
|
|
19015
|
+
async function handleDeployedGet(key, options) {
|
|
19016
|
+
const http = buildHttpClient();
|
|
19017
|
+
const payload = await http.request(
|
|
19018
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}`,
|
|
19019
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
19020
|
+
);
|
|
19021
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19022
|
+
}
|
|
19023
|
+
async function handleDeployedDelete(key, options) {
|
|
19024
|
+
const http = buildHttpClient();
|
|
19025
|
+
const params = new URLSearchParams();
|
|
19026
|
+
if (options.localOnly) params.set("local_only", "true");
|
|
19027
|
+
const query = params.toString();
|
|
19028
|
+
const payload = await http.request(
|
|
19029
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}${query ? `?${query}` : ""}`,
|
|
19030
|
+
{ method: "DELETE", ...FORBIDDEN_AS_API_ERROR }
|
|
19031
|
+
);
|
|
19032
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19033
|
+
}
|
|
19034
|
+
async function handleDeployedUpdate(key, patch, options) {
|
|
19035
|
+
const http = buildHttpClient();
|
|
19036
|
+
const body = parseJsonObjectArg(patch, "<patch>");
|
|
19037
|
+
const payload = await http.request(
|
|
19038
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}`,
|
|
19039
|
+
{ method: "PATCH", body, ...FORBIDDEN_AS_API_ERROR }
|
|
19040
|
+
);
|
|
19041
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19042
|
+
}
|
|
19043
|
+
async function handleReactivate(key, options) {
|
|
19044
|
+
const http = buildHttpClient();
|
|
19045
|
+
const payload = await http.request(
|
|
19046
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}/reactivate`,
|
|
19047
|
+
{ method: "POST", body: {}, ...FORBIDDEN_AS_API_ERROR }
|
|
19048
|
+
);
|
|
19049
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19050
|
+
}
|
|
19051
|
+
function registerMonitorsCommands(program) {
|
|
19052
|
+
const monitors = program.command("monitors").description("Discover, deploy, and manage Deepline monitors.").addHelpText(
|
|
19053
|
+
"after",
|
|
19054
|
+
`
|
|
19055
|
+
Notes:
|
|
19056
|
+
Monitors are provider-backed signal feeds that deliver events into your
|
|
19057
|
+
workspace. Access is granted by a Deepline admin via Admin -> Rollouts; until
|
|
19058
|
+
then these commands return a clear monitor_access_required error.
|
|
19059
|
+
|
|
19060
|
+
Examples:
|
|
19061
|
+
deepline monitors tools --json
|
|
19062
|
+
deepline monitors check '{"key":"my-monitor","tool":"...","payload":{}}'
|
|
19063
|
+
deepline monitors deploy '{"key":"my-monitor","tool":"...","payload":{}}'
|
|
19064
|
+
deepline monitors deployed --json
|
|
19065
|
+
deepline monitors deployed get my-monitor --json
|
|
19066
|
+
deepline monitors reactivate my-monitor --json
|
|
19067
|
+
`
|
|
19068
|
+
);
|
|
19069
|
+
monitors.command("tools").description("List or describe the monitor tools available to your org.").addHelpText(
|
|
19070
|
+
"after",
|
|
19071
|
+
`
|
|
19072
|
+
Notes:
|
|
19073
|
+
Read-only. Filter the catalog with --provider, --tool, --search, or --limit.
|
|
19074
|
+
Pass --tool to describe a single monitor tool.
|
|
19075
|
+
|
|
19076
|
+
Examples:
|
|
19077
|
+
deepline monitors tools
|
|
19078
|
+
deepline monitors tools --provider theirstack --json
|
|
19079
|
+
deepline monitors tools --tool theirstack_jobs --json
|
|
19080
|
+
`
|
|
19081
|
+
).option("--provider <provider>", "Filter by provider").option("--tool <tool>", "Describe a single monitor tool by id").option("--search <query>", "Search monitor tools by text").option("--limit <n>", "Limit the number of monitor tools returned").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsTools);
|
|
19082
|
+
monitors.command("check <definition>").description("Validate a monitor definition without deploying it.").addHelpText(
|
|
19083
|
+
"after",
|
|
19084
|
+
`
|
|
19085
|
+
Notes:
|
|
19086
|
+
Read-only validation. <definition> is a JSON object with key, tool, payload,
|
|
19087
|
+
and optional controls. Does not deploy or spend credits.
|
|
19088
|
+
|
|
19089
|
+
Examples:
|
|
19090
|
+
deepline monitors check '{"key":"my-monitor","tool":"theirstack_jobs","payload":{}}'
|
|
19091
|
+
`
|
|
19092
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsCheck);
|
|
19093
|
+
monitors.command("deploy <definition>").description("Deploy a monitor from a definition.").addHelpText(
|
|
19094
|
+
"after",
|
|
19095
|
+
`
|
|
19096
|
+
Notes:
|
|
19097
|
+
Mutates workspace state and may spend Deepline credits. <definition> is a JSON
|
|
19098
|
+
object with key, tool, payload, and optional controls.
|
|
19099
|
+
|
|
19100
|
+
Examples:
|
|
19101
|
+
deepline monitors deploy '{"key":"my-monitor","tool":"theirstack_jobs","payload":{}}'
|
|
19102
|
+
`
|
|
19103
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsDeploy);
|
|
19104
|
+
monitors.command("reactivate <key>").description("Reactivate a previously disabled deployed monitor.").addHelpText(
|
|
19105
|
+
"after",
|
|
19106
|
+
`
|
|
19107
|
+
Notes:
|
|
19108
|
+
Mutates workspace state and may spend Deepline credits.
|
|
19109
|
+
|
|
19110
|
+
Examples:
|
|
19111
|
+
deepline monitors reactivate my-monitor --json
|
|
19112
|
+
`
|
|
19113
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleReactivate);
|
|
19114
|
+
const deployed = monitors.command("deployed").description("List and manage your deployed monitors.").addHelpText(
|
|
19115
|
+
"after",
|
|
19116
|
+
`
|
|
19117
|
+
Notes:
|
|
19118
|
+
With no subcommand, lists deployed monitors. Use get/update/delete to manage a
|
|
19119
|
+
single monitor by its public key.
|
|
19120
|
+
|
|
19121
|
+
Examples:
|
|
19122
|
+
deepline monitors deployed --json
|
|
19123
|
+
deepline monitors deployed --status all --json
|
|
19124
|
+
deepline monitors deployed get my-monitor --json
|
|
19125
|
+
`
|
|
19126
|
+
).option("--status <status>", 'Filter by monitor status (or "all")').option("--limit <n>", "Limit the number of deployed monitors returned").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedList);
|
|
19127
|
+
deployed.command("get <key>").description("Show a single deployed monitor by its public key.").addHelpText(
|
|
19128
|
+
"after",
|
|
19129
|
+
`
|
|
19130
|
+
Notes:
|
|
19131
|
+
Read-only.
|
|
19132
|
+
|
|
19133
|
+
Examples:
|
|
19134
|
+
deepline monitors deployed get my-monitor --json
|
|
19135
|
+
`
|
|
19136
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedGet);
|
|
19137
|
+
deployed.command("update <key> <patch>").description("Update a deployed monitor by its public key.").addHelpText(
|
|
19138
|
+
"after",
|
|
19139
|
+
`
|
|
19140
|
+
Notes:
|
|
19141
|
+
Mutates workspace state. <patch> is a JSON object of fields to update.
|
|
19142
|
+
|
|
19143
|
+
Examples:
|
|
19144
|
+
deepline monitors deployed update my-monitor '{"controls":{"enabled":false}}' --json
|
|
19145
|
+
`
|
|
19146
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedUpdate);
|
|
19147
|
+
deployed.command("delete <key>").description("Delete a deployed monitor by its public key.").addHelpText(
|
|
19148
|
+
"after",
|
|
19149
|
+
`
|
|
19150
|
+
Notes:
|
|
19151
|
+
Mutates workspace state. By default deprovisions the upstream provider
|
|
19152
|
+
resource; pass --local-only to remove only the Deepline-managed record.
|
|
19153
|
+
|
|
19154
|
+
Examples:
|
|
19155
|
+
deepline monitors deployed delete my-monitor --json
|
|
19156
|
+
deepline monitors deployed delete my-monitor --local-only --json
|
|
19157
|
+
`
|
|
19158
|
+
).option(
|
|
19159
|
+
"--local-only",
|
|
19160
|
+
"Remove only the Deepline-managed record, leaving the upstream resource"
|
|
19161
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedDelete);
|
|
19162
|
+
}
|
|
19163
|
+
|
|
18949
19164
|
// src/cli/commands/org.ts
|
|
18950
19165
|
async function fetchOrganizations(http, apiKey) {
|
|
18951
19166
|
return http.post("/api/v2/auth/cli/organizations", { api_key: apiKey });
|
|
@@ -23991,6 +24206,7 @@ Exit codes:
|
|
|
23991
24206
|
registerWorkflowCommands(program);
|
|
23992
24207
|
registerSecretsCommands(program);
|
|
23993
24208
|
registerBillingCommands(program);
|
|
24209
|
+
registerMonitorsCommands(program);
|
|
23994
24210
|
registerOrgCommands(program);
|
|
23995
24211
|
registerEnrichCommand(program);
|
|
23996
24212
|
registerCsvCommands(program);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -604,10 +604,10 @@ var SDK_RELEASE = {
|
|
|
604
604
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
605
605
|
// the SDK enrich generator's one-second stale policy.
|
|
606
606
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
607
|
-
version: "0.1.
|
|
607
|
+
version: "0.1.146",
|
|
608
608
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
609
609
|
supportPolicy: {
|
|
610
|
-
latest: "0.1.
|
|
610
|
+
latest: "0.1.146",
|
|
611
611
|
minimumSupported: "0.1.53",
|
|
612
612
|
deprecatedBelow: "0.1.53",
|
|
613
613
|
commandMinimumSupported: [
|
|
@@ -18970,6 +18970,221 @@ Examples:
|
|
|
18970
18970
|
}
|
|
18971
18971
|
}
|
|
18972
18972
|
|
|
18973
|
+
// src/cli/commands/monitors.ts
|
|
18974
|
+
var FORBIDDEN_AS_API_ERROR = { forbiddenAsApiError: true };
|
|
18975
|
+
function buildHttpClient() {
|
|
18976
|
+
return new HttpClient(resolveConfig());
|
|
18977
|
+
}
|
|
18978
|
+
function parseJsonObjectArg(raw, flag) {
|
|
18979
|
+
let parsed;
|
|
18980
|
+
try {
|
|
18981
|
+
parsed = JSON.parse(raw);
|
|
18982
|
+
} catch (error) {
|
|
18983
|
+
throw new Error(
|
|
18984
|
+
`${flag} must be a JSON object. ${error instanceof Error ? error.message : String(error)}`
|
|
18985
|
+
);
|
|
18986
|
+
}
|
|
18987
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
18988
|
+
throw new Error(`${flag} must be a JSON object.`);
|
|
18989
|
+
}
|
|
18990
|
+
return parsed;
|
|
18991
|
+
}
|
|
18992
|
+
function encodeKey(key) {
|
|
18993
|
+
return encodeURIComponent(key);
|
|
18994
|
+
}
|
|
18995
|
+
async function handleMonitorsTools(options) {
|
|
18996
|
+
const http = buildHttpClient();
|
|
18997
|
+
const params = new URLSearchParams();
|
|
18998
|
+
if (options.provider) params.set("provider", options.provider);
|
|
18999
|
+
if (options.tool) params.set("tool", options.tool);
|
|
19000
|
+
if (options.search) params.set("search", options.search);
|
|
19001
|
+
if (options.limit) params.set("limit", options.limit);
|
|
19002
|
+
const query = params.toString();
|
|
19003
|
+
const payload = await http.request(
|
|
19004
|
+
`/api/v2/monitors/tools${query ? `?${query}` : ""}`,
|
|
19005
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
19006
|
+
);
|
|
19007
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19008
|
+
}
|
|
19009
|
+
async function handleMonitorsCheck(definition, options) {
|
|
19010
|
+
const http = buildHttpClient();
|
|
19011
|
+
const body = parseJsonObjectArg(definition, "--definition");
|
|
19012
|
+
const payload = await http.request(
|
|
19013
|
+
"/api/v2/monitors/check",
|
|
19014
|
+
{ method: "POST", body, ...FORBIDDEN_AS_API_ERROR }
|
|
19015
|
+
);
|
|
19016
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19017
|
+
}
|
|
19018
|
+
async function handleMonitorsDeploy(definition, options) {
|
|
19019
|
+
const http = buildHttpClient();
|
|
19020
|
+
const body = parseJsonObjectArg(definition, "--definition");
|
|
19021
|
+
const payload = await http.request(
|
|
19022
|
+
"/api/v2/monitors/deploy",
|
|
19023
|
+
{ method: "POST", body, ...FORBIDDEN_AS_API_ERROR }
|
|
19024
|
+
);
|
|
19025
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19026
|
+
}
|
|
19027
|
+
async function handleDeployedList(options) {
|
|
19028
|
+
const http = buildHttpClient();
|
|
19029
|
+
const params = new URLSearchParams();
|
|
19030
|
+
if (options.status) params.set("status", options.status);
|
|
19031
|
+
if (options.limit) params.set("limit", options.limit);
|
|
19032
|
+
const query = params.toString();
|
|
19033
|
+
const payload = await http.request(
|
|
19034
|
+
`/api/v2/monitors/deployed${query ? `?${query}` : ""}`,
|
|
19035
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
19036
|
+
);
|
|
19037
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19038
|
+
}
|
|
19039
|
+
async function handleDeployedGet(key, options) {
|
|
19040
|
+
const http = buildHttpClient();
|
|
19041
|
+
const payload = await http.request(
|
|
19042
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}`,
|
|
19043
|
+
{ method: "GET", ...FORBIDDEN_AS_API_ERROR }
|
|
19044
|
+
);
|
|
19045
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19046
|
+
}
|
|
19047
|
+
async function handleDeployedDelete(key, options) {
|
|
19048
|
+
const http = buildHttpClient();
|
|
19049
|
+
const params = new URLSearchParams();
|
|
19050
|
+
if (options.localOnly) params.set("local_only", "true");
|
|
19051
|
+
const query = params.toString();
|
|
19052
|
+
const payload = await http.request(
|
|
19053
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}${query ? `?${query}` : ""}`,
|
|
19054
|
+
{ method: "DELETE", ...FORBIDDEN_AS_API_ERROR }
|
|
19055
|
+
);
|
|
19056
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19057
|
+
}
|
|
19058
|
+
async function handleDeployedUpdate(key, patch, options) {
|
|
19059
|
+
const http = buildHttpClient();
|
|
19060
|
+
const body = parseJsonObjectArg(patch, "<patch>");
|
|
19061
|
+
const payload = await http.request(
|
|
19062
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}`,
|
|
19063
|
+
{ method: "PATCH", body, ...FORBIDDEN_AS_API_ERROR }
|
|
19064
|
+
);
|
|
19065
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19066
|
+
}
|
|
19067
|
+
async function handleReactivate(key, options) {
|
|
19068
|
+
const http = buildHttpClient();
|
|
19069
|
+
const payload = await http.request(
|
|
19070
|
+
`/api/v2/monitors/deployed/${encodeKey(key)}/reactivate`,
|
|
19071
|
+
{ method: "POST", body: {}, ...FORBIDDEN_AS_API_ERROR }
|
|
19072
|
+
);
|
|
19073
|
+
printCommandEnvelope(payload, { json: options.json });
|
|
19074
|
+
}
|
|
19075
|
+
function registerMonitorsCommands(program) {
|
|
19076
|
+
const monitors = program.command("monitors").description("Discover, deploy, and manage Deepline monitors.").addHelpText(
|
|
19077
|
+
"after",
|
|
19078
|
+
`
|
|
19079
|
+
Notes:
|
|
19080
|
+
Monitors are provider-backed signal feeds that deliver events into your
|
|
19081
|
+
workspace. Access is granted by a Deepline admin via Admin -> Rollouts; until
|
|
19082
|
+
then these commands return a clear monitor_access_required error.
|
|
19083
|
+
|
|
19084
|
+
Examples:
|
|
19085
|
+
deepline monitors tools --json
|
|
19086
|
+
deepline monitors check '{"key":"my-monitor","tool":"...","payload":{}}'
|
|
19087
|
+
deepline monitors deploy '{"key":"my-monitor","tool":"...","payload":{}}'
|
|
19088
|
+
deepline monitors deployed --json
|
|
19089
|
+
deepline monitors deployed get my-monitor --json
|
|
19090
|
+
deepline monitors reactivate my-monitor --json
|
|
19091
|
+
`
|
|
19092
|
+
);
|
|
19093
|
+
monitors.command("tools").description("List or describe the monitor tools available to your org.").addHelpText(
|
|
19094
|
+
"after",
|
|
19095
|
+
`
|
|
19096
|
+
Notes:
|
|
19097
|
+
Read-only. Filter the catalog with --provider, --tool, --search, or --limit.
|
|
19098
|
+
Pass --tool to describe a single monitor tool.
|
|
19099
|
+
|
|
19100
|
+
Examples:
|
|
19101
|
+
deepline monitors tools
|
|
19102
|
+
deepline monitors tools --provider theirstack --json
|
|
19103
|
+
deepline monitors tools --tool theirstack_jobs --json
|
|
19104
|
+
`
|
|
19105
|
+
).option("--provider <provider>", "Filter by provider").option("--tool <tool>", "Describe a single monitor tool by id").option("--search <query>", "Search monitor tools by text").option("--limit <n>", "Limit the number of monitor tools returned").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsTools);
|
|
19106
|
+
monitors.command("check <definition>").description("Validate a monitor definition without deploying it.").addHelpText(
|
|
19107
|
+
"after",
|
|
19108
|
+
`
|
|
19109
|
+
Notes:
|
|
19110
|
+
Read-only validation. <definition> is a JSON object with key, tool, payload,
|
|
19111
|
+
and optional controls. Does not deploy or spend credits.
|
|
19112
|
+
|
|
19113
|
+
Examples:
|
|
19114
|
+
deepline monitors check '{"key":"my-monitor","tool":"theirstack_jobs","payload":{}}'
|
|
19115
|
+
`
|
|
19116
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsCheck);
|
|
19117
|
+
monitors.command("deploy <definition>").description("Deploy a monitor from a definition.").addHelpText(
|
|
19118
|
+
"after",
|
|
19119
|
+
`
|
|
19120
|
+
Notes:
|
|
19121
|
+
Mutates workspace state and may spend Deepline credits. <definition> is a JSON
|
|
19122
|
+
object with key, tool, payload, and optional controls.
|
|
19123
|
+
|
|
19124
|
+
Examples:
|
|
19125
|
+
deepline monitors deploy '{"key":"my-monitor","tool":"theirstack_jobs","payload":{}}'
|
|
19126
|
+
`
|
|
19127
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleMonitorsDeploy);
|
|
19128
|
+
monitors.command("reactivate <key>").description("Reactivate a previously disabled deployed monitor.").addHelpText(
|
|
19129
|
+
"after",
|
|
19130
|
+
`
|
|
19131
|
+
Notes:
|
|
19132
|
+
Mutates workspace state and may spend Deepline credits.
|
|
19133
|
+
|
|
19134
|
+
Examples:
|
|
19135
|
+
deepline monitors reactivate my-monitor --json
|
|
19136
|
+
`
|
|
19137
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleReactivate);
|
|
19138
|
+
const deployed = monitors.command("deployed").description("List and manage your deployed monitors.").addHelpText(
|
|
19139
|
+
"after",
|
|
19140
|
+
`
|
|
19141
|
+
Notes:
|
|
19142
|
+
With no subcommand, lists deployed monitors. Use get/update/delete to manage a
|
|
19143
|
+
single monitor by its public key.
|
|
19144
|
+
|
|
19145
|
+
Examples:
|
|
19146
|
+
deepline monitors deployed --json
|
|
19147
|
+
deepline monitors deployed --status all --json
|
|
19148
|
+
deepline monitors deployed get my-monitor --json
|
|
19149
|
+
`
|
|
19150
|
+
).option("--status <status>", 'Filter by monitor status (or "all")').option("--limit <n>", "Limit the number of deployed monitors returned").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedList);
|
|
19151
|
+
deployed.command("get <key>").description("Show a single deployed monitor by its public key.").addHelpText(
|
|
19152
|
+
"after",
|
|
19153
|
+
`
|
|
19154
|
+
Notes:
|
|
19155
|
+
Read-only.
|
|
19156
|
+
|
|
19157
|
+
Examples:
|
|
19158
|
+
deepline monitors deployed get my-monitor --json
|
|
19159
|
+
`
|
|
19160
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedGet);
|
|
19161
|
+
deployed.command("update <key> <patch>").description("Update a deployed monitor by its public key.").addHelpText(
|
|
19162
|
+
"after",
|
|
19163
|
+
`
|
|
19164
|
+
Notes:
|
|
19165
|
+
Mutates workspace state. <patch> is a JSON object of fields to update.
|
|
19166
|
+
|
|
19167
|
+
Examples:
|
|
19168
|
+
deepline monitors deployed update my-monitor '{"controls":{"enabled":false}}' --json
|
|
19169
|
+
`
|
|
19170
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedUpdate);
|
|
19171
|
+
deployed.command("delete <key>").description("Delete a deployed monitor by its public key.").addHelpText(
|
|
19172
|
+
"after",
|
|
19173
|
+
`
|
|
19174
|
+
Notes:
|
|
19175
|
+
Mutates workspace state. By default deprovisions the upstream provider
|
|
19176
|
+
resource; pass --local-only to remove only the Deepline-managed record.
|
|
19177
|
+
|
|
19178
|
+
Examples:
|
|
19179
|
+
deepline monitors deployed delete my-monitor --json
|
|
19180
|
+
deepline monitors deployed delete my-monitor --local-only --json
|
|
19181
|
+
`
|
|
19182
|
+
).option(
|
|
19183
|
+
"--local-only",
|
|
19184
|
+
"Remove only the Deepline-managed record, leaving the upstream resource"
|
|
19185
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleDeployedDelete);
|
|
19186
|
+
}
|
|
19187
|
+
|
|
18973
19188
|
// src/cli/commands/org.ts
|
|
18974
19189
|
async function fetchOrganizations(http, apiKey) {
|
|
18975
19190
|
return http.post("/api/v2/auth/cli/organizations", { api_key: apiKey });
|
|
@@ -24030,6 +24245,7 @@ Exit codes:
|
|
|
24030
24245
|
registerWorkflowCommands(program);
|
|
24031
24246
|
registerSecretsCommands(program);
|
|
24032
24247
|
registerBillingCommands(program);
|
|
24248
|
+
registerMonitorsCommands(program);
|
|
24033
24249
|
registerOrgCommands(program);
|
|
24034
24250
|
registerEnrichCommand(program);
|
|
24035
24251
|
registerCsvCommands(program);
|
package/dist/index.js
CHANGED
|
@@ -418,10 +418,10 @@ var SDK_RELEASE = {
|
|
|
418
418
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
419
419
|
// the SDK enrich generator's one-second stale policy.
|
|
420
420
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
421
|
-
version: "0.1.
|
|
421
|
+
version: "0.1.146",
|
|
422
422
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
423
423
|
supportPolicy: {
|
|
424
|
-
latest: "0.1.
|
|
424
|
+
latest: "0.1.146",
|
|
425
425
|
minimumSupported: "0.1.53",
|
|
426
426
|
deprecatedBelow: "0.1.53",
|
|
427
427
|
commandMinimumSupported: [
|
package/dist/index.mjs
CHANGED
|
@@ -348,10 +348,10 @@ var SDK_RELEASE = {
|
|
|
348
348
|
// 0.1.108 ships explicit dataset column/tool recompute policy and removes
|
|
349
349
|
// the SDK enrich generator's one-second stale policy.
|
|
350
350
|
// 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
|
|
351
|
-
version: "0.1.
|
|
351
|
+
version: "0.1.146",
|
|
352
352
|
apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
|
|
353
353
|
supportPolicy: {
|
|
354
|
-
latest: "0.1.
|
|
354
|
+
latest: "0.1.146",
|
|
355
355
|
minimumSupported: "0.1.53",
|
|
356
356
|
deprecatedBelow: "0.1.53",
|
|
357
357
|
commandMinimumSupported: [
|