deepline 0.3.495 → 0.3.497
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/client-core.ts +91 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +5 -19
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +79 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +110 -66
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +57 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +28 -12
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +26 -6
- package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +4 -1
- package/dist/cli/auth-553ZBCPJ.js +43 -0
- package/dist/cli/{auth-B2YUNFQ6.mjs → auth-OAKBFUQD.mjs} +5 -5
- package/dist/cli/{billing-5TR7ZBZM.mjs → billing-AM6D2KN5.mjs} +7 -7
- package/dist/cli/{billing-2Q7TMNRE.js → billing-FUB6HQZ5.js} +80 -80
- package/dist/cli/{chunk-RBBOUPME.mjs → chunk-3DHPKENA.mjs} +1 -1
- package/dist/cli/{chunk-XR6RCBB3.mjs → chunk-3IVAGF4P.mjs} +10 -10
- package/dist/cli/{chunk-TUAEM76Y.js → chunk-3KG2FUU4.js} +108 -65
- package/dist/cli/{chunk-SC5GHGFD.mjs → chunk-4MR7LZXF.mjs} +2 -2
- package/dist/cli/{chunk-DFK5IJMT.mjs → chunk-5GXYXU45.mjs} +1 -1
- package/dist/cli/{chunk-H5L2Q2GI.mjs → chunk-5IBHSACU.mjs} +2 -2
- package/dist/cli/{chunk-CTFR52JC.js → chunk-6TA2H7CY.js} +26 -26
- package/dist/cli/{chunk-ZBQBH4IT.js → chunk-77IAUCTB.js} +3 -3
- package/dist/cli/{chunk-XAOLMEN5.js → chunk-7FFNSYMJ.js} +14 -14
- package/dist/cli/{chunk-XKYQR3QK.js → chunk-7RBIOOCQ.js} +3 -3
- package/dist/cli/{chunk-LQKZG5RN.js → chunk-A66Y2LCW.js} +53 -53
- package/dist/cli/{chunk-Z33PZUWG.js → chunk-B4Q3EBQX.js} +5 -5
- package/dist/cli/{chunk-T4PGA6UD.js → chunk-BBHGJE73.js} +1 -1
- package/dist/cli/{chunk-UDFO2MWA.js → chunk-BRUDMG56.js} +41 -41
- package/dist/cli/{chunk-DVQHG6AM.mjs → chunk-CS2AEAD6.mjs} +63 -11
- package/dist/cli/{chunk-Y2DUGUUU.js → chunk-DKSTMQ3F.js} +21 -21
- package/dist/cli/{chunk-PKV5CD3W.js → chunk-EQR5O2D2.js} +87 -35
- package/dist/cli/{chunk-L5ZXEYTQ.mjs → chunk-EWQ3KY5U.mjs} +6 -6
- package/dist/cli/{chunk-JRBQC6L4.mjs → chunk-FISH2MI2.mjs} +2 -2
- package/dist/cli/{chunk-PEIOQKTA.js → chunk-FVS5MJQ5.js} +3 -3
- package/dist/cli/{chunk-TSKVPEVZ.mjs → chunk-HRODQDTB.mjs} +46 -3
- package/dist/cli/{chunk-7YNZRALI.mjs → chunk-IURXJPGH.mjs} +3 -3
- package/dist/cli/{chunk-TCNILHMS.js → chunk-JDFYCHNV.js} +5 -5
- package/dist/cli/{chunk-TMO7W4P2.mjs → chunk-KFJV3BZX.mjs} +1 -1
- package/dist/cli/{chunk-S2QARJLX.mjs → chunk-KUX3HYJI.mjs} +1 -1
- package/dist/cli/{chunk-KG2FUYWB.mjs → chunk-LPCK5KK5.mjs} +3 -3
- package/dist/cli/{chunk-TFMV3NKL.mjs → chunk-M2WIEW2E.mjs} +1 -1
- package/dist/cli/{chunk-I66IWCY4.mjs → chunk-MBOAXLWC.mjs} +4 -4
- package/dist/cli/{chunk-CAWE3MS2.js → chunk-OEI6HXMK.js} +16 -16
- package/dist/cli/{chunk-UKGOZOTT.js → chunk-OWDK2PVH.js} +8 -8
- package/dist/cli/{chunk-7LLUJQM5.mjs → chunk-SJID5WMV.mjs} +4 -4
- package/dist/cli/{chunk-WVL5HGUG.js → chunk-SJM7MKOE.js} +2 -2
- package/dist/cli/{chunk-PHO53W67.js → chunk-SLS3HUVC.js} +4 -4
- package/dist/cli/{chunk-MG3WST3Z.mjs → chunk-TGAYN34A.mjs} +2 -2
- package/dist/cli/{chunk-SR6VS5PG.mjs → chunk-THD6KA67.mjs} +4 -4
- package/dist/cli/{chunk-OFBDI5S3.mjs → chunk-UETGYJYH.mjs} +2 -2
- package/dist/cli/{chunk-B3ROCZ5Y.js → chunk-UV7AT2D4.js} +2 -2
- package/dist/cli/{chunk-XX6PRYFI.js → chunk-V2EVSEUD.js} +16 -16
- package/dist/cli/{chunk-ZB6UYG5I.mjs → chunk-VMOVB2FN.mjs} +5 -5
- package/dist/cli/{chunk-UMFZQREB.js → chunk-WKCMARFR.js} +94 -94
- package/dist/cli/{chunk-ACVT5LPN.js → chunk-WXW7YJDO.js} +53 -53
- package/dist/cli/{chunk-FLJSK32S.mjs → chunk-WZ3A35ZD.mjs} +1 -1
- package/dist/cli/{chunk-MAMEKGLI.js → chunk-XLYJ7MJX.js} +7 -7
- package/dist/cli/{chunk-CKLJAQIV.mjs → chunk-XNLXHU6L.mjs} +5 -5
- package/dist/cli/{chunk-FC4JGTFC.mjs → chunk-XX7WLKOQ.mjs} +1 -1
- package/dist/cli/{chunk-HJ5LYO6U.mjs → chunk-YQ66NC4J.mjs} +2 -2
- package/dist/cli/{chunk-7OGADAAA.js → chunk-YUEFDOME.js} +6 -6
- package/dist/cli/{chunk-5OKQPDYJ.js → chunk-ZLYKN4AJ.js} +7 -7
- package/dist/cli/{csv-DZQ77T67.js → csv-PMBYKVUU.js} +13 -13
- package/dist/cli/{csv-5UQXKWLE.mjs → csv-U2GOFP3M.mjs} +4 -4
- package/dist/cli/{db-F62BVFTP.mjs → db-DKFOTZGZ.mjs} +7 -7
- package/dist/cli/{db-JIPLUHA6.js → db-GREVTMIR.js} +28 -28
- package/dist/cli/describe-BL5NNHV5.js +50 -0
- package/dist/cli/{describe-J7KYHONJ.mjs → describe-SWXA6L62.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-XQ4FNJ27.js → executions-2RRAESQK.js} +9 -9
- package/dist/cli/{executions-XB4F2KZD.mjs → executions-EBRFC5JR.mjs} +7 -7
- package/dist/cli/{feedback-5CR4CJ6W.mjs → feedback-4A57QLX2.mjs} +4 -4
- package/dist/cli/{feedback-Q6JRCMDV.js → feedback-N6ML7IRH.js} +8 -8
- package/dist/cli/{git-P5WBBUT3.mjs → git-6D2WQPOS.mjs} +5 -5
- package/dist/cli/git-7TSX5V57.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-H5JJVYZ2.mjs → legacy-noops-CL5QWXGH.mjs} +5 -5
- package/dist/cli/{legacy-noops-EJAB6III.js → legacy-noops-DXRJARNC.js} +8 -8
- package/dist/cli/{monitors-QPFAT2J5.mjs → monitors-SGMEGGJO.mjs} +190 -8
- package/dist/cli/{monitors-7DOGM7RO.js → monitors-XWKDVHYL.js} +318 -136
- package/dist/cli/{org-BH7ATDIJ.mjs → org-55BI5RQF.mjs} +7 -7
- package/dist/cli/{org-QOBB4IN3.js → org-QKQ57PDN.js} +73 -73
- package/dist/cli/{pages-PLTE54KM.js → pages-FOIR5UH4.js} +19 -19
- package/dist/cli/{pages-PJH2TXZQ.mjs → pages-LM4QACOM.mjs} +7 -7
- package/dist/cli/{play-ULTJ3LPA.mjs → play-7VA26O6E.mjs} +36 -61
- package/dist/cli/{play-XZAPTF3T.js → play-S44FXGD7.js} +634 -659
- package/dist/cli/{providers-6NUTRVE4.mjs → providers-QAVIR5E2.mjs} +7 -7
- package/dist/cli/{providers-SKXLW7M3.js → providers-RDSHID7C.js} +10 -10
- package/dist/cli/{quickstart-JFCIIGII.js → quickstart-EREQPM3G.js} +6 -6
- package/dist/cli/{quickstart-5HMJMXVT.mjs → quickstart-IL4HQYE4.mjs} +4 -4
- package/dist/cli/{run-2BJZPY4K.mjs → run-4XZNJR7N.mjs} +23 -23
- package/dist/cli/{run-BRAXLCBC.js → run-TBUUV5EG.js} +37 -37
- package/dist/cli/search-GCANFVVZ.js +32 -0
- package/dist/cli/{search-IDXSB2CV.mjs → search-SYT5UT5G.mjs} +8 -8
- package/dist/cli/{search-output-CJ4TNYF7.js → search-output-5F3EEQ34.js} +6 -6
- package/dist/cli/{search-output-AATMH4QG.mjs → search-output-Y3IKZ3TX.mjs} +4 -4
- package/dist/cli/{secrets-UQNEJSNG.mjs → secrets-AKAU2N3K.mjs} +7 -7
- package/dist/cli/{secrets-6SMKTBFT.js → secrets-PZWJ2ES5.js} +16 -16
- package/dist/cli/{sessions-W3KU4Q4X.js → sessions-UMHA7K23.js} +6 -6
- package/dist/cli/{sessions-MHTUVPSR.mjs → sessions-Z5C26IS7.mjs} +5 -5
- package/dist/cli/{settings-KNYJ6GXK.mjs → settings-S5BM3SVI.mjs} +12 -12
- package/dist/cli/{settings-BA52NEU5.js → settings-WGJYWTJZ.js} +79 -79
- package/dist/cli/{setup-D5HCJAVU.js → setup-6K6ERKOH.js} +49 -49
- package/dist/cli/{setup-TLTZ2YCO.mjs → setup-E4HRXP2X.mjs} +9 -9
- package/dist/cli/{skills-DPLM4EGS.mjs → skills-HIZA7YAN.mjs} +7 -7
- package/dist/cli/skills-J3GQHHHL.js +36 -0
- package/dist/cli/{tools-I4ZOJV23.mjs → tools-FS5S6BT7.mjs} +17 -17
- package/dist/cli/tools-RZYKMOUX.js +57 -0
- package/dist/cli/{update-VIFS7IK5.mjs → update-4CJPTG3L.mjs} +9 -9
- package/dist/cli/update-CATZW7GA.js +34 -0
- package/dist/cli/{workflow-7REPOHXM.js → workflow-TYSZ5JWS.js} +18 -18
- package/dist/cli/{workflow-TAQBNDV7.mjs → workflow-UMSXOIOS.mjs} +8 -8
- package/dist/{client-CKVH6tmp.d.ts → client-Cj3UqrCZ.d.ts} +1 -1
- package/dist/{client-BDT_LwuM.d.mts → client-DSCTVVRj.d.mts} +1 -1
- package/dist/{client-core-CEixe_C0.d.mts → client-core-B-8DTIN1.d.mts} +44 -3
- package/dist/{client-core-RS-d-vtY.d.ts → client-core-dI4KTuWS.d.ts} +44 -3
- package/dist/{compiler-manifest-CPEF48NM.d.mts → compiler-manifest-DlXDyndN.d.mts} +2 -0
- package/dist/{compiler-manifest-CPEF48NM.d.ts → compiler-manifest-DlXDyndN.d.ts} +2 -0
- package/dist/{errors-BWbPzqwo.d.mts → errors-BtriA2ld.d.mts} +1 -1
- package/dist/{errors-B-PJXveg.d.ts → errors-DmcLykM7.d.ts} +1 -1
- package/dist/{index-CvVxPpE8.d.ts → index--Jw-slHY.d.ts} +1 -1
- package/dist/{index-BJ8AA1F9.d.mts → index-DI0sR_fX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +110 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-GAOWVOK4.js +0 -43
- package/dist/cli/describe-BA4RAZ7J.js +0 -50
- package/dist/cli/git-EAO432S2.js +0 -25
- package/dist/cli/search-4MU2G6HV.js +0 -32
- package/dist/cli/skills-SVUWVXCE.js +0 -36
- package/dist/cli/tools-RJSP76HX.js +0 -57
- package/dist/cli/update-YT6JPIC6.js +0 -34
package/dist/cli/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
usesInlinePlayAdmission
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5IBHSACU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
beginToolExecuteCommand,
|
|
7
7
|
compatibilityCatalog,
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
maybeAutoUpdateAndRelaunch,
|
|
11
11
|
runDeferredAutoUpdate,
|
|
12
12
|
runToolExecuteStage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XNLXHU6L.mjs";
|
|
14
14
|
import {
|
|
15
15
|
isCliTraceEnabled,
|
|
16
16
|
parseCliMaintenancePolicy,
|
|
17
17
|
recordCliTrace,
|
|
18
18
|
resolveCliMaintenancePolicy,
|
|
19
19
|
traceCliSpan
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-M2WIEW2E.mjs";
|
|
21
|
+
import "./chunk-VMOVB2FN.mjs";
|
|
22
|
+
import "./chunk-KFJV3BZX.mjs";
|
|
23
|
+
import "./chunk-SJID5WMV.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_COMPATIBILITY_FAST_DEADLINE_MS,
|
|
26
26
|
SKILLS_AUTO_SYNC_COMMAND,
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
resolveSdkCliFailureExitCode,
|
|
39
39
|
sanitizeCommand,
|
|
40
40
|
syncSdkSkillsIfNeeded
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-THD6KA67.mjs";
|
|
42
42
|
import {
|
|
43
43
|
createCliProgress
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3DHPKENA.mjs";
|
|
45
45
|
import {
|
|
46
46
|
commandDocKey,
|
|
47
47
|
helpDetailFromArgv,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
printJson,
|
|
60
60
|
shouldEmitJson,
|
|
61
61
|
takeSilentJsonFailureMessage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
63
63
|
import {
|
|
64
64
|
HttpClient,
|
|
65
65
|
autoDetectBaseUrl,
|
|
@@ -67,18 +67,18 @@ import {
|
|
|
67
67
|
resolveApiKeyForBaseUrl,
|
|
68
68
|
resolveBaseUrlOnly,
|
|
69
69
|
resolveConfig
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XX7WLKOQ.mjs";
|
|
71
71
|
import {
|
|
72
72
|
SDK_VERSION,
|
|
73
73
|
agentSessionIdFromEnvironment,
|
|
74
74
|
connectionFailureMessage
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-WZ3A35ZD.mjs";
|
|
76
76
|
import {
|
|
77
77
|
AuthError
|
|
78
78
|
} from "./chunk-4QF2K7TM.mjs";
|
|
79
79
|
import "./chunk-DLIRSHV6.mjs";
|
|
80
80
|
import "./chunk-HBL4PM5Q.mjs";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-5GXYXU45.mjs";
|
|
82
82
|
import "./chunk-WZYKRD7T.mjs";
|
|
83
83
|
import "./chunk-5JPKRDFC.mjs";
|
|
84
84
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -159,56 +159,56 @@ import { Command as Command2 } from "commander";
|
|
|
159
159
|
var COMMAND_GROUPS = [
|
|
160
160
|
{
|
|
161
161
|
names: ["auth"],
|
|
162
|
-
load: async () => (await import("./auth-
|
|
162
|
+
load: async () => (await import("./auth-OAKBFUQD.mjs")).registerAuthCommands
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
names: ["providers"],
|
|
166
|
-
load: async () => (await import("./providers-
|
|
166
|
+
load: async () => (await import("./providers-QAVIR5E2.mjs")).registerProviderCommands
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
names: ["search"],
|
|
170
|
-
load: async () => (await import("./search-
|
|
170
|
+
load: async () => (await import("./search-SYT5UT5G.mjs")).registerSearchCommand
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["describe"],
|
|
174
|
-
load: async () => (await import("./describe-
|
|
174
|
+
load: async () => (await import("./describe-SWXA6L62.mjs")).registerDescribeCommand
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["run"],
|
|
178
|
-
load: async () => (await import("./run-
|
|
178
|
+
load: async () => (await import("./run-4XZNJR7N.mjs")).registerRunCommand
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["tools"],
|
|
182
|
-
load: async () => (await import("./tools-
|
|
182
|
+
load: async () => (await import("./tools-FS5S6BT7.mjs")).registerToolsCommands
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["executions"],
|
|
186
|
-
load: async () => (await import("./executions-
|
|
186
|
+
load: async () => (await import("./executions-EBRFC5JR.mjs")).registerExecutionsCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["plays", "runs"],
|
|
190
|
-
load: async () => (await import("./play-
|
|
190
|
+
load: async () => (await import("./play-7VA26O6E.mjs")).registerPlayCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["sessions"],
|
|
194
|
-
load: async () => (await import("./sessions-
|
|
194
|
+
load: async () => (await import("./sessions-Z5C26IS7.mjs")).registerSessionsCommands
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
names: ["workflows"],
|
|
198
|
-
load: async () => (await import("./workflow-
|
|
198
|
+
load: async () => (await import("./workflow-UMSXOIOS.mjs")).registerWorkflowCommands
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
names: ["pages"],
|
|
202
|
-
load: async () => (await import("./pages-
|
|
202
|
+
load: async () => (await import("./pages-LM4QACOM.mjs")).registerPagesCommands
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
names: ["secrets"],
|
|
206
|
-
load: async () => (await import("./secrets-
|
|
206
|
+
load: async () => (await import("./secrets-AKAU2N3K.mjs")).registerSecretsCommands
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
names: ["settings", "notifications"],
|
|
210
210
|
load: async () => {
|
|
211
|
-
const commands = await import("./settings-
|
|
211
|
+
const commands = await import("./settings-S5BM3SVI.mjs");
|
|
212
212
|
return (p) => {
|
|
213
213
|
commands.registerSettingsCommands(p);
|
|
214
214
|
commands.registerNotificationCommands(p);
|
|
@@ -217,51 +217,51 @@ var COMMAND_GROUPS = [
|
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
names: ["billing"],
|
|
220
|
-
load: async () => (await import("./billing-
|
|
220
|
+
load: async () => (await import("./billing-AM6D2KN5.mjs")).registerBillingCommands
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
names: ["monitors"],
|
|
224
|
-
load: async () => (await import("./monitors-
|
|
224
|
+
load: async () => (await import("./monitors-SGMEGGJO.mjs")).registerMonitorsCommands
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
names: ["org"],
|
|
228
|
-
load: async () => (await import("./org-
|
|
228
|
+
load: async () => (await import("./org-55BI5RQF.mjs")).registerOrgCommands
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
names: ["git", "projects", "deployments"],
|
|
232
|
-
load: async () => (await import("./git-
|
|
232
|
+
load: async () => (await import("./git-6D2WQPOS.mjs")).registerGitCommands
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
names: ["csv"],
|
|
236
|
-
load: async () => (await import("./csv-
|
|
236
|
+
load: async () => (await import("./csv-U2GOFP3M.mjs")).registerCsvCommands
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
names: ["db"],
|
|
240
|
-
load: async () => (await import("./db-
|
|
240
|
+
load: async () => (await import("./db-DKFOTZGZ.mjs")).registerDbCommands
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
names: ["feedback"],
|
|
244
|
-
load: async () => (await import("./feedback-
|
|
244
|
+
load: async () => (await import("./feedback-4A57QLX2.mjs")).registerFeedbackCommands
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
names: ["enrich", "session", "backend"],
|
|
248
|
-
load: async () => (await import("./legacy-noops-
|
|
248
|
+
load: async () => (await import("./legacy-noops-CL5QWXGH.mjs")).registerDeprecatedCommands
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
names: ["update"],
|
|
252
|
-
load: async () => (await import("./update-
|
|
252
|
+
load: async () => (await import("./update-4CJPTG3L.mjs")).registerUpdateCommand
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
names: ["skills", "skills-auto-sync"],
|
|
256
|
-
load: async () => (await import("./skills-
|
|
256
|
+
load: async () => (await import("./skills-HIZA7YAN.mjs")).registerSkillsCommand
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
names: ["setup", "doctor"],
|
|
260
|
-
load: async () => (await import("./setup-
|
|
260
|
+
load: async () => (await import("./setup-E4HRXP2X.mjs")).registerSetupCommands
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
names: ["quickstart"],
|
|
264
|
-
load: async () => (await import("./quickstart-
|
|
264
|
+
load: async () => (await import("./quickstart-IL4HQYE4.mjs")).registerQuickstartCommands
|
|
265
265
|
}
|
|
266
266
|
];
|
|
267
267
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -633,7 +633,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
633
|
});
|
|
634
634
|
let exitCode = 1;
|
|
635
635
|
try {
|
|
636
|
-
const { handlePlayRun } = await import("./play-
|
|
636
|
+
const { handlePlayRun } = await import("./play-7VA26O6E.mjs");
|
|
637
637
|
exitCode = await handlePlayRun([
|
|
638
638
|
file,
|
|
639
639
|
"--input",
|
|
@@ -1095,7 +1095,7 @@ Examples:
|
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-
|
|
1098
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-OAKBFUQD.mjs");
|
|
1099
1099
|
const baseUrl = resolveBaseUrlOnly();
|
|
1100
1100
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1101
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
@@ -1183,7 +1183,7 @@ Examples:
|
|
|
1183
1183
|
const helpArgs = process.argv.slice(2);
|
|
1184
1184
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1185
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1186
|
-
const { authStatusLine } = await import("./auth-
|
|
1186
|
+
const { authStatusLine } = await import("./auth-OAKBFUQD.mjs");
|
|
1187
1187
|
rootHelpStatus = `Version: ${SDK_VERSION}
|
|
1188
1188
|
${await authStatusLine()}
|
|
1189
1189
|
`;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerSessionSendRenderCommands
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGAYN34A.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ENRICH_COMMAND_DEPRECATION_MESSAGE
|
|
6
6
|
} from "./chunk-ITOFSXIU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
10
|
+
import "./chunk-XX7WLKOQ.mjs";
|
|
11
|
+
import "./chunk-WZ3A35ZD.mjs";
|
|
12
12
|
import "./chunk-4QF2K7TM.mjs";
|
|
13
13
|
import "./chunk-DLIRSHV6.mjs";
|
|
14
14
|
import "./chunk-HBL4PM5Q.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5GXYXU45.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOWDK2PVHjs = require('./chunk-OWDK2PVH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
|
|
10
|
+
require('./chunk-77IAUCTB.js');
|
|
11
|
+
require('./chunk-SLS3HUVC.js');
|
|
12
12
|
require('./chunk-ALJJRZNJ.js');
|
|
13
13
|
require('./chunk-XNYIZMNQ.js');
|
|
14
14
|
require('./chunk-DIAWYWT5.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-BBHGJE73.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
require('./chunk-COGTRVWW.js');
|
|
18
18
|
|
|
@@ -53,7 +53,7 @@ function deprecatedCommandEnvelope(input) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function printDeprecatedCommand(input) {
|
|
56
|
-
|
|
56
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
|
|
57
57
|
json: input.options.json
|
|
58
58
|
});
|
|
59
59
|
process.exitCode = 2;
|
|
@@ -73,7 +73,7 @@ function registerDeprecatedCommands(program) {
|
|
|
73
73
|
program.command("enrich", { hidden: true }).description("Deprecated CSV enrichment command.").allowUnknownOption(true).allowExcessArguments(true).option("--json", "Emit JSON output").argument("[args...]").addHelpText("after", `
|
|
74
74
|
${_chunk3XX5TEA4js.ENRICH_COMMAND_DEPRECATION_MESSAGE}
|
|
75
75
|
`).action((_args, options) => {
|
|
76
|
-
|
|
76
|
+
_chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
|
|
77
77
|
{
|
|
78
78
|
ok: false,
|
|
79
79
|
command: "deepline enrich",
|
|
@@ -116,7 +116,7 @@ Examples:
|
|
|
116
116
|
options
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
|
-
|
|
119
|
+
_chunkOWDK2PVHjs.registerSessionSendRenderCommands.call(void 0, session, "session");
|
|
120
120
|
for (const subcommand of SESSION_SUBCOMMANDS) {
|
|
121
121
|
addDeprecatedSubcommand(
|
|
122
122
|
session,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-EXMLR72R.mjs";
|
|
2
2
|
import {
|
|
3
3
|
DeeplineClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-4MR7LZXF.mjs";
|
|
5
|
+
import "./chunk-HRODQDTB.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-CS2AEAD6.mjs";
|
|
8
8
|
import "./chunk-S3A4IXBQ.mjs";
|
|
9
9
|
import "./chunk-UBKA33KY.mjs";
|
|
10
10
|
import {
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
} from "./chunk-MI6ZP7XI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createCliProgress
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3DHPKENA.mjs";
|
|
21
21
|
import {
|
|
22
22
|
errorToJsonPayload,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
printJson,
|
|
25
25
|
shouldEmitJson
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-FISH2MI2.mjs";
|
|
27
|
+
import "./chunk-XX7WLKOQ.mjs";
|
|
28
|
+
import "./chunk-WZ3A35ZD.mjs";
|
|
29
29
|
import {
|
|
30
30
|
AuthError
|
|
31
31
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-5GXYXU45.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -728,6 +728,121 @@ async function handleMonitorsList(options) {
|
|
|
728
728
|
)
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
|
+
var LEDGER_STATUS_LABELS = {
|
|
732
|
+
active: "Active",
|
|
733
|
+
setting_up: "Setting up",
|
|
734
|
+
paused_credits: "Paused \xB7 out of credits",
|
|
735
|
+
paused_cap: "Paused \xB7 spending cap",
|
|
736
|
+
paused_billing: "Paused \xB7 billing issue",
|
|
737
|
+
stopped: "Stopped"
|
|
738
|
+
};
|
|
739
|
+
function ledgerPlayLabel(play) {
|
|
740
|
+
const name = asString(play.name) ?? "Play";
|
|
741
|
+
const notes = [];
|
|
742
|
+
if (play.failing === true) notes.push("failing");
|
|
743
|
+
if (play.state === "blocked") notes.push("blocked");
|
|
744
|
+
else if (play.state === "inactive") notes.push("inactive");
|
|
745
|
+
if (play.applicability === "some") notes.push("some findings");
|
|
746
|
+
if (play.update_only === true) notes.push("updates only");
|
|
747
|
+
return notes.length > 0 ? `${name} (${notes.join(", ")})` : name;
|
|
748
|
+
}
|
|
749
|
+
var LEDGER_WINDOW_LABELS = {
|
|
750
|
+
"1d": "today",
|
|
751
|
+
"7d": "7d",
|
|
752
|
+
"30d": "30d",
|
|
753
|
+
"90d": "90d",
|
|
754
|
+
"1y": "1y"
|
|
755
|
+
};
|
|
756
|
+
function ledgerFindingsText(findings, windowLabel) {
|
|
757
|
+
const count = asFiniteNumber(findings?.count);
|
|
758
|
+
if (count === void 0) return "findings not counted yet";
|
|
759
|
+
const since = asString(findings?.counting_since);
|
|
760
|
+
return `${count.toLocaleString("en-US")} ${count === 1 ? "finding" : "findings"} ${windowLabel}${since ? ` (counting since ${since})` : ""}`;
|
|
761
|
+
}
|
|
762
|
+
function renderMonitorLedgerText(payload) {
|
|
763
|
+
const monitors = Array.isArray(payload.monitors) ? payload.monitors : null;
|
|
764
|
+
if (!monitors) return void 0;
|
|
765
|
+
const window = asString(asRecord(payload.applied)?.window) ?? "30d";
|
|
766
|
+
const windowLabel = LEDGER_WINDOW_LABELS[window] ?? window;
|
|
767
|
+
const lines = [];
|
|
768
|
+
const failing = Array.isArray(payload.failing_plays) ? payload.failing_plays : [];
|
|
769
|
+
for (const raw of failing) {
|
|
770
|
+
const play = asRecord(raw);
|
|
771
|
+
if (!play) continue;
|
|
772
|
+
lines.push(
|
|
773
|
+
`! ${asString(play.name) ?? "A Play"} is failing: ${asString(play.error) ?? "latest run failed"}${asString(play.run_id) ? ` (run ${asString(play.run_id)})` : ""}`
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
const total = asFiniteNumber(payload.total);
|
|
777
|
+
lines.push(
|
|
778
|
+
monitors.length === 0 ? "No monitors matched." : total !== void 0 && total > monitors.length ? `Monitors (${monitors.length} of ${total}):` : `Monitors (${monitors.length}):`
|
|
779
|
+
);
|
|
780
|
+
for (const raw of monitors) {
|
|
781
|
+
const entry = asRecord(raw);
|
|
782
|
+
const key = entry ? asString(entry.key) : void 0;
|
|
783
|
+
if (!entry || !key) continue;
|
|
784
|
+
const signal = asRecord(entry.signal);
|
|
785
|
+
const subject = asRecord(entry.subject);
|
|
786
|
+
const status = asString(entry.ledger_status) ?? "unknown";
|
|
787
|
+
const plays = asRecord(entry.plays);
|
|
788
|
+
const shown = Array.isArray(plays?.shown) ? plays.shown : [];
|
|
789
|
+
const more = asFiniteNumber(plays?.more_count) ?? 0;
|
|
790
|
+
const playText = shown.length === 0 ? "No Play" : `${shown.map((play) => ledgerPlayLabel(asRecord(play) ?? {})).join(", ")}${more > 0 ? `, +${more} more` : ""}`;
|
|
791
|
+
lines.push(
|
|
792
|
+
`- ${asString(entry.name) ?? key} [${key}] \xB7 ${asString(signal?.label) ?? asString(entry.type) ?? "monitor"}${asString(subject?.value) ? ` \xB7 ${asString(subject?.value)}` : ""}`,
|
|
793
|
+
` ${LEDGER_STATUS_LABELS[status] ?? status} \xB7 ${ledgerFindingsText(asRecord(entry.findings), windowLabel)} \xB7 set up ${asString(entry.installed_at)?.slice(0, 10) ?? "unknown"} \xB7 triggers: ${playText}`
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
const next = asString(payload.next_cursor);
|
|
797
|
+
if (next) lines.push(`More: --cursor ${next}`);
|
|
798
|
+
return lines.join("\n");
|
|
799
|
+
}
|
|
800
|
+
var LEDGER_SORTS = ["recent", "installed", "name", "findings"];
|
|
801
|
+
var LEDGER_WINDOWS = ["1d", "7d", "30d", "90d", "1y"];
|
|
802
|
+
async function handleMonitorsLedger(key, options) {
|
|
803
|
+
const client = new DeeplineClient();
|
|
804
|
+
if (options.findings) {
|
|
805
|
+
if (!key) {
|
|
806
|
+
throw new MonitorsUsageError(
|
|
807
|
+
"--findings needs a monitor key: deepline monitors ledger <key> --findings"
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
const payload2 = await client.monitors.ledgerFindings(key, {
|
|
811
|
+
...options.cursor ? { cursor: options.cursor } : {}
|
|
812
|
+
});
|
|
813
|
+
printCommandEnvelope(payload2, { json: options.json });
|
|
814
|
+
return;
|
|
815
|
+
}
|
|
816
|
+
if (key) {
|
|
817
|
+
const payload2 = await client.monitors.ledgerGet(key);
|
|
818
|
+
printCommandEnvelope(payload2, { json: options.json });
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
if (options.sort !== void 0 && !LEDGER_SORTS.includes(options.sort)) {
|
|
822
|
+
throw new MonitorsUsageError(
|
|
823
|
+
`--sort must be recent, installed, name, or findings; received ${options.sort}.`
|
|
824
|
+
);
|
|
825
|
+
}
|
|
826
|
+
if (options.window !== void 0 && !LEDGER_WINDOWS.includes(options.window)) {
|
|
827
|
+
throw new MonitorsUsageError(
|
|
828
|
+
`--window must be 1d, 7d, 30d, 90d, or 1y; received ${options.window}.`
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
const payload = await client.monitors.ledger({
|
|
832
|
+
...options.search ? { search: options.search } : {},
|
|
833
|
+
...options.state?.length ? { states: options.state } : {},
|
|
834
|
+
...options.signal?.length ? { signals: options.signal } : {},
|
|
835
|
+
...options.play ? { play: options.play } : {},
|
|
836
|
+
...options.sort ? { sort: options.sort } : {},
|
|
837
|
+
...options.window ? { window: options.window } : {},
|
|
838
|
+
...options.limit ? { limit: options.limit } : {},
|
|
839
|
+
...options.cursor ? { cursor: options.cursor } : {}
|
|
840
|
+
});
|
|
841
|
+
printCommandEnvelope(payload, {
|
|
842
|
+
json: options.json,
|
|
843
|
+
text: renderMonitorLedgerText(payload)
|
|
844
|
+
});
|
|
845
|
+
}
|
|
731
846
|
async function handleMonitorsCheck(definition, options) {
|
|
732
847
|
const body = resolveMonitorJsonBody({
|
|
733
848
|
positional: definition,
|
|
@@ -2916,6 +3031,72 @@ Examples:
|
|
|
2916
3031
|
"Include current SQL-listener consumer health (requires --limit 20 or fewer)"
|
|
2917
3032
|
)
|
|
2918
3033
|
).action(monitorsAction(handleMonitorsList));
|
|
3034
|
+
const collect = (value, previous = []) => [
|
|
3035
|
+
...previous,
|
|
3036
|
+
value
|
|
3037
|
+
];
|
|
3038
|
+
withJsonOption(
|
|
3039
|
+
monitors.command("ledger [key]").description(
|
|
3040
|
+
"Show the Monitors list: status, radar filters, and the Plays each monitor triggers."
|
|
3041
|
+
).addHelpText(
|
|
3042
|
+
"after",
|
|
3043
|
+
`
|
|
3044
|
+
Notes:
|
|
3045
|
+
Read-only. Lists monitors as the dashboard's Monitors page does: one row per
|
|
3046
|
+
monitor with its customer status, the provider-side radar filters it was
|
|
3047
|
+
deployed with, and the Plays its findings trigger. Pass a monitor key to see
|
|
3048
|
+
one monitor with every Play it can trigger and that monitor's latest run.
|
|
3049
|
+
|
|
3050
|
+
Statuses: active, setting_up, paused_credits, paused_cap, paused_billing,
|
|
3051
|
+
stopped. Every status except stopped is shown by default; repeat --state to
|
|
3052
|
+
choose. A Play is listed when a finding can trigger it: "some findings" means
|
|
3053
|
+
its own where filter decides per finding, and it is omitted only when a
|
|
3054
|
+
_dl_monitor_id filter excludes this monitor. Failing Plays (their latest
|
|
3055
|
+
completed monitor-triggered run failed) are listed first.
|
|
3056
|
+
|
|
3057
|
+
Each row's findings counts delivered findings in --window (UTC days,
|
|
3058
|
+
today included). counting_since is set when counting began inside the
|
|
3059
|
+
window, so the count is partial; a null count means the monitor has not
|
|
3060
|
+
been counted yet.
|
|
3061
|
+
|
|
3062
|
+
Filters apply before paging, so total is the filtered count. Page with
|
|
3063
|
+
--cursor <next_cursor> until next_cursor is null.
|
|
3064
|
+
|
|
3065
|
+
Examples:
|
|
3066
|
+
deepline monitors ledger
|
|
3067
|
+
deepline monitors ledger --state stopped
|
|
3068
|
+
deepline monitors ledger --state paused_credits --state paused_cap
|
|
3069
|
+
deepline monitors ledger --search halcyon --sort installed
|
|
3070
|
+
deepline monitors ledger --sort findings --window 7d
|
|
3071
|
+
deepline monitors ledger --play none
|
|
3072
|
+
deepline monitors ledger halcyon-openings --json
|
|
3073
|
+
deepline monitors ledger halcyon-openings --findings --json
|
|
3074
|
+
`
|
|
3075
|
+
).option(
|
|
3076
|
+
"--search <text>",
|
|
3077
|
+
"Search name, key, subject, signal and deploy filters"
|
|
3078
|
+
).option(
|
|
3079
|
+
"--state <state>",
|
|
3080
|
+
"Include a status (repeatable): active, setting_up, paused_credits, paused_cap, paused_billing, stopped",
|
|
3081
|
+
collect
|
|
3082
|
+
).option(
|
|
3083
|
+
"--signal <key>",
|
|
3084
|
+
"Include a signal key from the response signals list (repeatable)",
|
|
3085
|
+
collect
|
|
3086
|
+
).option(
|
|
3087
|
+
"--play <play>",
|
|
3088
|
+
'Only monitors triggering this Play definition id, or "none" for monitors no Play listens to'
|
|
3089
|
+
).option(
|
|
3090
|
+
"--sort <sort>",
|
|
3091
|
+
"recent (default; newest finding first), installed, name, or findings (most in --window first)"
|
|
3092
|
+
).option(
|
|
3093
|
+
"--window <window>",
|
|
3094
|
+
"Findings window: 1d, 7d, 30d (default), 90d, or 1y"
|
|
3095
|
+
).option("--limit <n>", "Rows per page (at most 100)").option("--cursor <cursor>", "Continue from a prior next_cursor").option(
|
|
3096
|
+
"--findings",
|
|
3097
|
+
"With a key: that monitor's recent findings, newest first, with each Play's recorded run"
|
|
3098
|
+
)
|
|
3099
|
+
).action(monitorsAction(handleMonitorsLedger));
|
|
2919
3100
|
withJsonOption(
|
|
2920
3101
|
monitors.command("get <key>").description("Show a single deployed monitor by its public key.").addHelpText(
|
|
2921
3102
|
"after",
|
|
@@ -3461,6 +3642,7 @@ export {
|
|
|
3461
3642
|
renderMonitorDeployCompletion,
|
|
3462
3643
|
renderMonitorDeployPlan,
|
|
3463
3644
|
renderMonitorGet,
|
|
3645
|
+
renderMonitorLedgerText,
|
|
3464
3646
|
renderMonitorReactivatePlan,
|
|
3465
3647
|
resolveMonitorJsonBody
|
|
3466
3648
|
};
|