deepline 0.3.477 → 0.3.479
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 +5 -4
- package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
- package/dist/bundling-sources/sdk/src/http.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +8 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +11 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -27
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +3 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
- package/dist/cli/{auth-XVXRRWIQ.mjs → auth-D7DYB57R.mjs} +5 -5
- package/dist/cli/auth-MZDFNRPG.js +41 -0
- package/dist/cli/{billing-2H7GFJDT.js → billing-DHGSNM6E.js} +107 -87
- package/dist/cli/{billing-EOPUJ4JI.mjs → billing-DT4JT4QN.mjs} +34 -14
- package/dist/cli/{chunk-CH4VMDB5.js → chunk-27GSBTWD.js} +70 -52
- package/dist/cli/{chunk-PQQNMMWM.mjs → chunk-27PXHD2P.mjs} +1 -1
- package/dist/cli/{chunk-ACDXGOXE.js → chunk-33O2JGHE.js} +63 -11
- package/dist/cli/{chunk-255O6APS.js → chunk-3GIM7XRH.js} +2 -2
- package/dist/cli/{chunk-6IJJCRE5.mjs → chunk-3PHOAUU4.mjs} +23 -5
- package/dist/cli/{chunk-NC52JG66.js → chunk-3SGA53DX.js} +3 -3
- package/dist/cli/{chunk-RHIFH3GD.mjs → chunk-6C3QY5JS.mjs} +1 -1
- package/dist/cli/{chunk-NJMYX2TP.mjs → chunk-6QIXWFPO.mjs} +3 -3
- package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
- package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
- package/dist/cli/{chunk-RGNMMDSJ.js → chunk-AFHFZU5V.js} +37 -37
- package/dist/cli/{chunk-KWQNNPMH.js → chunk-AKVNUNL7.js} +3 -3
- package/dist/cli/{chunk-LXKGZKTL.js → chunk-CK2Q6AWR.js} +26 -26
- package/dist/cli/{chunk-DFKHXZQ7.mjs → chunk-D6MLXRMQ.mjs} +10 -10
- package/dist/cli/{chunk-7CILZKLE.js → chunk-EMVWC5LP.js} +5 -5
- package/dist/cli/{chunk-75NLWBYQ.js → chunk-FBEXJVQL.js} +93 -93
- package/dist/cli/{chunk-JS4UO6G4.mjs → chunk-FKEZ5DIJ.mjs} +2 -1
- package/dist/cli/{chunk-ZDPL5AIK.js → chunk-FV7WGK5X.js} +5 -5
- package/dist/cli/{chunk-E2CUSH56.js → chunk-G6V34EQ5.js} +16 -16
- package/dist/cli/{chunk-DS3DZUES.mjs → chunk-GICSDK72.mjs} +2 -2
- package/dist/cli/{chunk-C2V2HQDW.mjs → chunk-GONL4EFT.mjs} +2 -2
- package/dist/cli/{chunk-6KKDIISC.js → chunk-GQCH6Y7W.js} +1 -1
- package/dist/cli/{chunk-3UKKM6OS.js → chunk-GSULE54L.js} +7 -6
- package/dist/cli/{chunk-2YNLW43I.mjs → chunk-GZ43YXHT.mjs} +2 -2
- package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
- package/dist/cli/{chunk-R5FNCFEK.js → chunk-J5VDE42G.js} +3 -3
- package/dist/cli/{chunk-KMXBZIKO.mjs → chunk-JFGOMQW6.mjs} +2 -2
- package/dist/cli/{chunk-C46DWB56.mjs → chunk-JKUFOP7M.mjs} +1 -1
- package/dist/cli/{chunk-23EEVP5W.js → chunk-JMCTNS6S.js} +6 -6
- package/dist/cli/{chunk-ISEUOYCB.mjs → chunk-JNFNNJ75.mjs} +4 -4
- package/dist/cli/{chunk-C2AN2HTB.mjs → chunk-K5RRY7DJ.mjs} +4 -4
- package/dist/cli/{chunk-M2UL4ZS5.js → chunk-LXYDN5FE.js} +7 -7
- package/dist/cli/{chunk-3W6E3WVU.js → chunk-N4M6CO5H.js} +9 -9
- package/dist/cli/{chunk-RLCAECZH.mjs → chunk-N7E25EU2.mjs} +5 -5
- package/dist/cli/{chunk-YZA5UJXM.mjs → chunk-O5BUFQ2P.mjs} +1 -1
- package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
- package/dist/cli/{chunk-4RAENEAX.js → chunk-OVFCPV24.js} +53 -53
- package/dist/cli/{chunk-NO7ZC2GV.mjs → chunk-PUOKABQF.mjs} +5 -5
- package/dist/cli/{chunk-SG2SZQ4K.mjs → chunk-RJVUILW4.mjs} +2 -2
- package/dist/cli/{chunk-SVU2VR6Q.mjs → chunk-TZCHXF4R.mjs} +2 -2
- package/dist/cli/{chunk-XQLYPHYW.mjs → chunk-UOYA35OT.mjs} +1 -1
- package/dist/cli/{chunk-THMGJOR4.js → chunk-VKBLXJCK.js} +8 -8
- package/dist/cli/{chunk-UBNS6GSV.js → chunk-VRZXGJXH.js} +21 -21
- package/dist/cli/{chunk-DMWHEYZM.js → chunk-W4HIOBQQ.js} +2 -2
- package/dist/cli/{chunk-347EE4YE.js → chunk-W6N2S5N7.js} +8 -8
- package/dist/cli/{chunk-WRHLAAGN.mjs → chunk-XBYW5EHY.mjs} +1 -1
- package/dist/cli/{chunk-LJYTYNQZ.mjs → chunk-XDFARN7U.mjs} +55 -3
- package/dist/cli/{chunk-2QT6KN54.js → chunk-Y2MVDYV6.js} +10 -10
- package/dist/cli/{chunk-QODW5ILA.mjs → chunk-YC2QBF2W.mjs} +2 -2
- package/dist/cli/chunk-YGCKMI5P.js +127 -0
- package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
- package/dist/cli/{chunk-2GZFIWSA.mjs → chunk-ZJRVHQSZ.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ECB7TYR2.js → csv-DQWOZ2BL.js} +13 -13
- package/dist/cli/{csv-IDRPTSSC.mjs → csv-JXFOD7DJ.mjs} +4 -4
- package/dist/cli/{db-FOBZD44N.mjs → db-NOGMZAQE.mjs} +6 -6
- package/dist/cli/{db-S74XZZ77.js → db-Q2OAAXRX.js} +27 -27
- package/dist/cli/describe-THHHNUEA.js +48 -0
- package/dist/cli/{describe-KMTPPI2J.mjs → describe-VKZTZLX6.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-ZE3JMNA4.js → executions-B3GDZ4GQ.js} +8 -8
- package/dist/cli/{executions-4JAIVE2E.mjs → executions-XU3JMNI3.mjs} +6 -6
- package/dist/cli/{feedback-W6VA47A3.js → feedback-5IW3ZKRP.js} +8 -8
- package/dist/cli/{feedback-EUX5PDBA.mjs → feedback-R5UQXINE.mjs} +4 -4
- package/dist/cli/{git-UOVG4PLH.mjs → git-7B4H7VEL.mjs} +5 -5
- package/dist/cli/git-BX27JAW4.js +25 -0
- package/dist/cli/index.js +161 -142
- package/dist/cli/index.mjs +65 -46
- package/dist/cli/{legacy-noops-3H35EH5Y.js → legacy-noops-AVT6T5QI.js} +8 -8
- package/dist/cli/{legacy-noops-ZBWUNFWV.mjs → legacy-noops-KY7JAALE.mjs} +5 -5
- package/dist/cli/{monitors-AYSGSUAK.mjs → monitors-G7L7AFXR.mjs} +7 -7
- package/dist/cli/{monitors-PI3KPLR2.js → monitors-GZB6CWK2.js} +91 -91
- package/dist/cli/{org-2BIG7U4V.mjs → org-QDUBOQTH.mjs} +6 -6
- package/dist/cli/{org-MVS3Y6BK.js → org-ZHHKAPCE.js} +72 -72
- package/dist/cli/{pages-VB6FOVDE.js → pages-5P3SPMN5.js} +17 -17
- package/dist/cli/{pages-4TRRL24G.mjs → pages-Q4WGQCST.mjs} +6 -6
- package/dist/cli/{play-BLT6IT2O.js → play-IRLKESZB.js} +585 -678
- package/dist/cli/{play-JR3VUOZM.mjs → play-WRSHD4RE.mjs} +26 -119
- package/dist/cli/{providers-547DPK4S.mjs → providers-7CQUHS57.mjs} +6 -6
- package/dist/cli/{providers-BBXIAGW4.js → providers-LKEYLN6D.js} +9 -9
- package/dist/cli/{quickstart-NTLXD7HS.mjs → quickstart-I6NYGMEE.mjs} +4 -4
- package/dist/cli/{quickstart-RNPI5B6J.js → quickstart-KS45M5SR.js} +6 -6
- package/dist/cli/{run-QZ4SFECD.mjs → run-AZETCL7R.mjs} +22 -22
- package/dist/cli/{run-BCCEXBOG.js → run-BLMOBNAN.js} +36 -36
- package/dist/cli/{search-PYNELH4C.mjs → search-EEKEP67Y.mjs} +7 -7
- package/dist/cli/search-PEQXXY2B.js +32 -0
- package/dist/cli/{secrets-O5WGREQ7.mjs → secrets-HAULG2EW.mjs} +6 -6
- package/dist/cli/{secrets-VD35LMYJ.js → secrets-M6NU3TD2.js} +15 -15
- package/dist/cli/{sessions-2TL6Z5J5.mjs → sessions-5MB4XKOK.mjs} +5 -5
- package/dist/cli/{sessions-NGGIBYXF.js → sessions-DSR5AHIA.js} +6 -6
- package/dist/cli/{settings-ERFNZRHO.js → settings-6US327NQ.js} +78 -78
- package/dist/cli/{settings-6KM74AJT.mjs → settings-JUQP4HYQ.mjs} +11 -11
- package/dist/cli/{setup-6X7EJ6RG.js → setup-5ZRSEQUD.js} +44 -44
- package/dist/cli/{setup-Y3BN6XRS.mjs → setup-JRH4UC47.mjs} +9 -9
- package/dist/cli/{skills-OUBQASHI.mjs → skills-HFOZ5WDH.mjs} +7 -7
- package/dist/cli/skills-P67KCVDR.js +33 -0
- package/dist/cli/{tools-EELZ5FF5.mjs → tools-CJEBZNPB.mjs} +16 -16
- package/dist/cli/tools-PDBEAI22.js +55 -0
- package/dist/cli/update-G6DI3BQW.js +33 -0
- package/dist/cli/{update-TX7SW32Y.mjs → update-VQJEPAAK.mjs} +9 -9
- package/dist/cli/{workflow-PUNQG7LG.mjs → workflow-EYWE3T75.mjs} +7 -7
- package/dist/cli/{workflow-5AI2BJA7.js → workflow-NKPDRZOP.js} +17 -17
- package/dist/{client-AjmfA5nR.d.mts → client-B9N1bcGc.d.mts} +1 -1
- package/dist/{client-DMyY-QL8.d.ts → client-Btw075Hq.d.ts} +1 -1
- package/dist/{client-core-C705vFyV.d.ts → client-core-DvGWlwtX.d.ts} +45 -6
- package/dist/{client-core-CpBbvLEX.d.mts → client-core-TulbIeRB.d.mts} +45 -6
- package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-gkO9ZkVg.d.mts} +37 -17
- package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-gkO9ZkVg.d.ts} +37 -17
- package/dist/{errors-CRO2qQ6k.d.ts → errors-Cc92LKH-.d.ts} +1 -1
- package/dist/{errors-DIHVetNY.d.mts → errors-CeCCOKSA.d.mts} +1 -1
- package/dist/{index-B8DVoeYt.d.ts → index-DJQKdV76.d.ts} +1 -1
- package/dist/{index-DVZ_X4Gb.d.mts → index-DsqWJL3Q.d.mts} +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -1
- 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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-QITP34OX.js +0 -41
- package/dist/cli/describe-PI7HCT7K.js +0 -48
- package/dist/cli/git-NDOGCQZY.js +0 -25
- package/dist/cli/search-YHEICYQL.js +0 -32
- package/dist/cli/skills-F7MPYC4P.js +0 -33
- package/dist/cli/tools-MCWDAK53.js +0 -55
- package/dist/cli/update-G5BRJOVT.js +0 -33
package/dist/cli/index.mjs
CHANGED
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
maybeAutoUpdateAndRelaunch,
|
|
8
8
|
runDeferredAutoUpdate,
|
|
9
9
|
runToolExecuteStage
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-N7E25EU2.mjs";
|
|
11
|
+
import "./chunk-PUOKABQF.mjs";
|
|
12
|
+
import "./chunk-6C3QY5JS.mjs";
|
|
13
|
+
import "./chunk-JNFNNJ75.mjs";
|
|
14
14
|
import {
|
|
15
15
|
usesInlinePlayAdmission
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GZ43YXHT.mjs";
|
|
17
17
|
import {
|
|
18
18
|
isCliTraceEnabled,
|
|
19
19
|
parseCliMaintenancePolicy,
|
|
20
20
|
recordCliTrace,
|
|
21
21
|
resolveCliMaintenancePolicy,
|
|
22
22
|
traceCliSpan
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UOYA35OT.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_COMPATIBILITY_FAST_DEADLINE_MS,
|
|
26
26
|
SKILLS_AUTO_SYNC_COMMAND,
|
|
@@ -38,15 +38,15 @@ import {
|
|
|
38
38
|
resolveSdkCliFailureExitCode,
|
|
39
39
|
sanitizeCommand,
|
|
40
40
|
syncSdkSkillsIfNeeded
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-K5RRY7DJ.mjs";
|
|
42
42
|
import {
|
|
43
43
|
createCliProgress
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XBYW5EHY.mjs";
|
|
45
45
|
import {
|
|
46
46
|
commandDocKey,
|
|
47
47
|
helpDetailFromArgv,
|
|
48
48
|
renderCommandExplanation
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IL5AF6AR.mjs";
|
|
50
50
|
import {
|
|
51
51
|
addJsonNotice,
|
|
52
52
|
errorToJsonPayload,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
printJson,
|
|
60
60
|
shouldEmitJson,
|
|
61
61
|
takeSilentJsonFailureMessage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-YC2QBF2W.mjs";
|
|
63
63
|
import {
|
|
64
64
|
HttpClient,
|
|
65
65
|
autoDetectBaseUrl,
|
|
@@ -67,17 +67,18 @@ import {
|
|
|
67
67
|
resolveApiKeyForBaseUrl,
|
|
68
68
|
resolveBaseUrlOnly,
|
|
69
69
|
resolveConfig
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-O5BUFQ2P.mjs";
|
|
71
71
|
import {
|
|
72
72
|
SDK_VERSION,
|
|
73
|
-
agentSessionIdFromEnvironment
|
|
74
|
-
|
|
73
|
+
agentSessionIdFromEnvironment,
|
|
74
|
+
connectionFailureMessage
|
|
75
|
+
} from "./chunk-XDFARN7U.mjs";
|
|
75
76
|
import {
|
|
76
77
|
AuthError
|
|
77
78
|
} from "./chunk-4QF2K7TM.mjs";
|
|
78
79
|
import "./chunk-DLIRSHV6.mjs";
|
|
79
80
|
import "./chunk-HBL4PM5Q.mjs";
|
|
80
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-27PXHD2P.mjs";
|
|
81
82
|
import "./chunk-WZYKRD7T.mjs";
|
|
82
83
|
import "./chunk-KRD6H754.mjs";
|
|
83
84
|
|
|
@@ -142,56 +143,56 @@ import { Command as Command2 } from "commander";
|
|
|
142
143
|
var COMMAND_GROUPS = [
|
|
143
144
|
{
|
|
144
145
|
names: ["auth"],
|
|
145
|
-
load: async () => (await import("./auth-
|
|
146
|
+
load: async () => (await import("./auth-D7DYB57R.mjs")).registerAuthCommands
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
149
|
names: ["providers"],
|
|
149
|
-
load: async () => (await import("./providers-
|
|
150
|
+
load: async () => (await import("./providers-7CQUHS57.mjs")).registerProviderCommands
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
153
|
names: ["search"],
|
|
153
|
-
load: async () => (await import("./search-
|
|
154
|
+
load: async () => (await import("./search-EEKEP67Y.mjs")).registerSearchCommand
|
|
154
155
|
},
|
|
155
156
|
{
|
|
156
157
|
names: ["describe"],
|
|
157
|
-
load: async () => (await import("./describe-
|
|
158
|
+
load: async () => (await import("./describe-VKZTZLX6.mjs")).registerDescribeCommand
|
|
158
159
|
},
|
|
159
160
|
{
|
|
160
161
|
names: ["run"],
|
|
161
|
-
load: async () => (await import("./run-
|
|
162
|
+
load: async () => (await import("./run-AZETCL7R.mjs")).registerRunCommand
|
|
162
163
|
},
|
|
163
164
|
{
|
|
164
165
|
names: ["tools"],
|
|
165
|
-
load: async () => (await import("./tools-
|
|
166
|
+
load: async () => (await import("./tools-CJEBZNPB.mjs")).registerToolsCommands
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
169
|
names: ["executions"],
|
|
169
|
-
load: async () => (await import("./executions-
|
|
170
|
+
load: async () => (await import("./executions-XU3JMNI3.mjs")).registerExecutionsCommands
|
|
170
171
|
},
|
|
171
172
|
{
|
|
172
173
|
names: ["plays", "runs"],
|
|
173
|
-
load: async () => (await import("./play-
|
|
174
|
+
load: async () => (await import("./play-WRSHD4RE.mjs")).registerPlayCommands
|
|
174
175
|
},
|
|
175
176
|
{
|
|
176
177
|
names: ["sessions"],
|
|
177
|
-
load: async () => (await import("./sessions-
|
|
178
|
+
load: async () => (await import("./sessions-5MB4XKOK.mjs")).registerSessionsCommands
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
181
|
names: ["workflows"],
|
|
181
|
-
load: async () => (await import("./workflow-
|
|
182
|
+
load: async () => (await import("./workflow-EYWE3T75.mjs")).registerWorkflowCommands
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
names: ["pages"],
|
|
185
|
-
load: async () => (await import("./pages-
|
|
186
|
+
load: async () => (await import("./pages-Q4WGQCST.mjs")).registerPagesCommands
|
|
186
187
|
},
|
|
187
188
|
{
|
|
188
189
|
names: ["secrets"],
|
|
189
|
-
load: async () => (await import("./secrets-
|
|
190
|
+
load: async () => (await import("./secrets-HAULG2EW.mjs")).registerSecretsCommands
|
|
190
191
|
},
|
|
191
192
|
{
|
|
192
193
|
names: ["settings", "notifications"],
|
|
193
194
|
load: async () => {
|
|
194
|
-
const commands = await import("./settings-
|
|
195
|
+
const commands = await import("./settings-JUQP4HYQ.mjs");
|
|
195
196
|
return (p) => {
|
|
196
197
|
commands.registerSettingsCommands(p);
|
|
197
198
|
commands.registerNotificationCommands(p);
|
|
@@ -200,51 +201,51 @@ var COMMAND_GROUPS = [
|
|
|
200
201
|
},
|
|
201
202
|
{
|
|
202
203
|
names: ["billing"],
|
|
203
|
-
load: async () => (await import("./billing-
|
|
204
|
+
load: async () => (await import("./billing-DT4JT4QN.mjs")).registerBillingCommands
|
|
204
205
|
},
|
|
205
206
|
{
|
|
206
207
|
names: ["monitors"],
|
|
207
|
-
load: async () => (await import("./monitors-
|
|
208
|
+
load: async () => (await import("./monitors-G7L7AFXR.mjs")).registerMonitorsCommands
|
|
208
209
|
},
|
|
209
210
|
{
|
|
210
211
|
names: ["org"],
|
|
211
|
-
load: async () => (await import("./org-
|
|
212
|
+
load: async () => (await import("./org-QDUBOQTH.mjs")).registerOrgCommands
|
|
212
213
|
},
|
|
213
214
|
{
|
|
214
215
|
names: ["git", "projects", "deployments"],
|
|
215
|
-
load: async () => (await import("./git-
|
|
216
|
+
load: async () => (await import("./git-7B4H7VEL.mjs")).registerGitCommands
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
219
|
names: ["csv"],
|
|
219
|
-
load: async () => (await import("./csv-
|
|
220
|
+
load: async () => (await import("./csv-JXFOD7DJ.mjs")).registerCsvCommands
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
223
|
names: ["db"],
|
|
223
|
-
load: async () => (await import("./db-
|
|
224
|
+
load: async () => (await import("./db-NOGMZAQE.mjs")).registerDbCommands
|
|
224
225
|
},
|
|
225
226
|
{
|
|
226
227
|
names: ["feedback"],
|
|
227
|
-
load: async () => (await import("./feedback-
|
|
228
|
+
load: async () => (await import("./feedback-R5UQXINE.mjs")).registerFeedbackCommands
|
|
228
229
|
},
|
|
229
230
|
{
|
|
230
231
|
names: ["enrich", "session", "backend"],
|
|
231
|
-
load: async () => (await import("./legacy-noops-
|
|
232
|
+
load: async () => (await import("./legacy-noops-KY7JAALE.mjs")).registerDeprecatedCommands
|
|
232
233
|
},
|
|
233
234
|
{
|
|
234
235
|
names: ["update"],
|
|
235
|
-
load: async () => (await import("./update-
|
|
236
|
+
load: async () => (await import("./update-VQJEPAAK.mjs")).registerUpdateCommand
|
|
236
237
|
},
|
|
237
238
|
{
|
|
238
239
|
names: ["skills", "skills-auto-sync"],
|
|
239
|
-
load: async () => (await import("./skills-
|
|
240
|
+
load: async () => (await import("./skills-HFOZ5WDH.mjs")).registerSkillsCommand
|
|
240
241
|
},
|
|
241
242
|
{
|
|
242
243
|
names: ["setup", "doctor"],
|
|
243
|
-
load: async () => (await import("./setup-
|
|
244
|
+
load: async () => (await import("./setup-JRH4UC47.mjs")).registerSetupCommands
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
names: ["quickstart"],
|
|
247
|
-
load: async () => (await import("./quickstart-
|
|
248
|
+
load: async () => (await import("./quickstart-I6NYGMEE.mjs")).registerQuickstartCommands
|
|
248
249
|
}
|
|
249
250
|
];
|
|
250
251
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -608,7 +609,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
608
609
|
});
|
|
609
610
|
let exitCode = 1;
|
|
610
611
|
try {
|
|
611
|
-
const { handlePlayRun } = await import("./play-
|
|
612
|
+
const { handlePlayRun } = await import("./play-WRSHD4RE.mjs");
|
|
612
613
|
exitCode = await handlePlayRun([
|
|
613
614
|
file,
|
|
614
615
|
"--input",
|
|
@@ -662,7 +663,14 @@ async function runPreflightCheck() {
|
|
|
662
663
|
status: response.ok ? pickString(payload, "status") ?? "ok" : "unreachable",
|
|
663
664
|
version: pickString(payload, "version")
|
|
664
665
|
};
|
|
665
|
-
}).catch(() => ({
|
|
666
|
+
}).catch((error) => ({
|
|
667
|
+
status: "unreachable",
|
|
668
|
+
version: null,
|
|
669
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : connectionFailureMessage(
|
|
670
|
+
baseUrl,
|
|
671
|
+
error instanceof Error ? error : new Error(String(error))
|
|
672
|
+
)
|
|
673
|
+
})).finally(() => clearTimeout(healthTimeout));
|
|
666
674
|
const apiKey = resolveApiKeyForBaseUrl(baseUrl);
|
|
667
675
|
const http = apiKey ? new HttpClient(
|
|
668
676
|
resolveConfig({
|
|
@@ -714,7 +722,8 @@ async function runPreflightCheck() {
|
|
|
714
722
|
host: baseUrl,
|
|
715
723
|
health: {
|
|
716
724
|
status: healthResult.status,
|
|
717
|
-
version: healthResult.version ?? null
|
|
725
|
+
version: healthResult.version ?? null,
|
|
726
|
+
..."error" in healthResult ? { error: healthResult.error } : {}
|
|
718
727
|
},
|
|
719
728
|
auth: {
|
|
720
729
|
status: authStatus,
|
|
@@ -739,9 +748,11 @@ async function runPreflightCheck() {
|
|
|
739
748
|
`cli: ${SDK_VERSION}`,
|
|
740
749
|
`host: ${baseUrl}`,
|
|
741
750
|
`health: ${healthResult.status}`,
|
|
751
|
+
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
742
752
|
`auth: ${authStatus}`,
|
|
743
753
|
`billing: ${balanceDisplay} (${balanceStatus})`,
|
|
744
|
-
|
|
754
|
+
// Registering cannot fix a host this machine cannot reach.
|
|
755
|
+
...connected || healthResult.status !== "ok" ? [] : [`next: ${AUTH_RECOVERY_COMMAND}`]
|
|
745
756
|
]
|
|
746
757
|
}
|
|
747
758
|
]
|
|
@@ -1018,6 +1029,7 @@ Notes:
|
|
|
1018
1029
|
Read-only setup check for the configured Deepline host. Shows the CLI version,
|
|
1019
1030
|
server health, auth connection, and customer-visible Deepline balance in one
|
|
1020
1031
|
compact command. When auth is missing it prints the command that connects it.
|
|
1032
|
+
Exits 4 when the host is unreachable.
|
|
1021
1033
|
|
|
1022
1034
|
Examples:
|
|
1023
1035
|
deepline preflight
|
|
@@ -1030,6 +1042,9 @@ Examples:
|
|
|
1030
1042
|
} else {
|
|
1031
1043
|
printPreflightHuman(data);
|
|
1032
1044
|
}
|
|
1045
|
+
if (data.health.status === "unreachable") {
|
|
1046
|
+
process.exitCode = 4;
|
|
1047
|
+
}
|
|
1033
1048
|
});
|
|
1034
1049
|
health.addHelpText(
|
|
1035
1050
|
"after",
|
|
@@ -1056,7 +1071,7 @@ Examples:
|
|
|
1056
1071
|
return;
|
|
1057
1072
|
}
|
|
1058
1073
|
try {
|
|
1059
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-
|
|
1074
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-D7DYB57R.mjs");
|
|
1060
1075
|
const baseUrl = resolveBaseUrlOnly();
|
|
1061
1076
|
const [{ status, data }, banner] = await Promise.all([
|
|
1062
1077
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
@@ -1144,7 +1159,7 @@ Examples:
|
|
|
1144
1159
|
const helpArgs = process.argv.slice(2);
|
|
1145
1160
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1146
1161
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1147
|
-
const { authStatusLine } = await import("./auth-
|
|
1162
|
+
const { authStatusLine } = await import("./auth-D7DYB57R.mjs");
|
|
1148
1163
|
rootHelpStatus = `Version: ${SDK_VERSION}
|
|
1149
1164
|
${await authStatusLine()}
|
|
1150
1165
|
`;
|
|
@@ -1217,8 +1232,12 @@ ${await authStatusLine()}
|
|
|
1217
1232
|
message: providerConcurrency
|
|
1218
1233
|
});
|
|
1219
1234
|
}
|
|
1235
|
+
const payload = errorToJsonPayload(error);
|
|
1220
1236
|
printJson({
|
|
1221
|
-
...
|
|
1237
|
+
...payload,
|
|
1238
|
+
// The envelope names the code the process exits with, so a caller
|
|
1239
|
+
// that only reads stdout still cannot mistake a failure for data.
|
|
1240
|
+
exitCode: payload.exitCode ?? resolveSdkCliFailureExitCode(error),
|
|
1222
1241
|
...error instanceof AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1223
1242
|
});
|
|
1224
1243
|
} else if (error instanceof Error) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkW6N2S5N7js = require('./chunk-W6N2S5N7.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 _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
|
|
10
|
+
require('./chunk-3SGA53DX.js');
|
|
11
|
+
require('./chunk-33O2JGHE.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-GQCH6Y7W.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
|
+
_chunkLXYDN5FEjs.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
|
+
_chunkLXYDN5FEjs.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
|
+
_chunkW6N2S5N7js.registerSessionSendRenderCommands.call(void 0, session, "session");
|
|
120
120
|
for (const subcommand of SESSION_SUBCOMMANDS) {
|
|
121
121
|
addDeprecatedSubcommand(
|
|
122
122
|
session,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerSessionSendRenderCommands
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GICSDK72.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-YC2QBF2W.mjs";
|
|
10
|
+
import "./chunk-O5BUFQ2P.mjs";
|
|
11
|
+
import "./chunk-XDFARN7U.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-27PXHD2P.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-EXMLR72R.mjs";
|
|
2
2
|
import {
|
|
3
3
|
DeeplineClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RJVUILW4.mjs";
|
|
5
|
+
import "./chunk-FKEZ5DIJ.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
7
|
import "./chunk-NELMCOWK.mjs";
|
|
8
8
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
} from "./chunk-MI6ZP7XI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createCliProgress
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XBYW5EHY.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-YC2QBF2W.mjs";
|
|
27
|
+
import "./chunk-O5BUFQ2P.mjs";
|
|
28
|
+
import "./chunk-XDFARN7U.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-27PXHD2P.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|