deepline 0.3.466 → 0.3.467
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 +41 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
- package/dist/cli/{auth-HYIPYSKK.mjs → auth-7H62VDZD.mjs} +5 -5
- package/dist/cli/auth-EXW5E3DI.js +41 -0
- package/dist/cli/{billing-5S6SGBUP.mjs → billing-6TM3ZXDR.mjs} +44 -6
- package/dist/cli/{billing-NG62QGPT.js → billing-N5BNGGYN.js} +115 -77
- package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
- package/dist/cli/{chunk-A7MWUG5H.js → chunk-3ZGSR6X7.js} +1 -1
- package/dist/cli/{chunk-7IWYO475.js → chunk-42AW4SQR.js} +21 -21
- package/dist/cli/{chunk-7QITO7XO.mjs → chunk-4LTQYDZG.mjs} +4 -4
- package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-5RXKAXFD.mjs} +2 -2
- package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-6UZ4MRWN.mjs} +2 -2
- package/dist/cli/{chunk-RGRSUMN6.js → chunk-7Y53LJLE.js} +5 -5
- package/dist/cli/{chunk-B7BNWOG6.js → chunk-7ZZWOJTM.js} +3 -3
- package/dist/cli/{chunk-EOKUL6XS.js → chunk-AD5BZUAP.js} +5 -5
- package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-AU4BWQTT.mjs} +5 -5
- package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-AUVEQ3JX.mjs} +1 -1
- package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-C4GBOGTW.mjs} +2 -2
- package/dist/cli/{chunk-3DVJ2IPG.js → chunk-C6EGT3LO.js} +183 -173
- package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-CER3XHT3.mjs} +3 -3
- package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-DCDTCG2D.mjs} +2 -2
- package/dist/cli/{chunk-R2SQN2CD.js → chunk-FFOAOQ77.js} +6 -6
- package/dist/cli/{chunk-6R36QIG4.mjs → chunk-FP3DH46P.mjs} +4 -4
- package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-FQIGRZ52.mjs} +1 -1
- package/dist/cli/{chunk-4QJ63YHC.js → chunk-FRY76AFK.js} +8 -8
- package/dist/cli/{chunk-VVCMP45C.js → chunk-FS55YDCW.js} +3 -3
- package/dist/cli/{chunk-HOFXQYRF.js → chunk-FVA6XLRA.js} +7 -7
- package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
- package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-G35HNL6P.mjs} +1 -1
- package/dist/cli/{chunk-MTH7WIE3.js → chunk-H3QDLCRT.js} +53 -53
- package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
- package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-HTXQUA3V.mjs} +11 -1
- package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-I3LWDZRN.mjs} +1 -1
- package/dist/cli/{chunk-22BKA2QL.js → chunk-KMYCHMZF.js} +26 -26
- package/dist/cli/{chunk-F6H74EFB.mjs → chunk-KUCUHRLC.mjs} +2 -2
- package/dist/cli/{chunk-LDEJ4NUP.js → chunk-LAMHSZ74.js} +13 -13
- package/dist/cli/{chunk-CMXFOZVG.js → chunk-LKVOV7PX.js} +258 -258
- package/dist/cli/{chunk-OB5NON4G.js → chunk-MGUQGKHE.js} +8 -8
- package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-MRBDFPJ7.mjs} +2 -2
- package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
- package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-NU64F53H.mjs} +11 -11
- package/dist/cli/{chunk-V27TVT7P.mjs → chunk-OSKGEBE7.mjs} +1 -1
- package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-R5ZJICJA.mjs} +1 -1
- package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-RH6DVPGW.mjs} +2 -2
- package/dist/cli/{chunk-NQH7E3F2.js → chunk-SHGBHP6J.js} +3 -3
- package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-SYLR33PS.mjs} +3 -3
- package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
- package/dist/cli/{chunk-FWHRCZET.mjs → chunk-TNAXVJEG.mjs} +5 -5
- package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
- package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-VGWH3BFC.mjs} +1 -1
- package/dist/cli/{chunk-5BEKJUOK.js → chunk-VOPKDTJT.js} +2 -2
- package/dist/cli/{chunk-ZBWKWMSH.js → chunk-WBYC7AYC.js} +16 -16
- package/dist/cli/{chunk-RRCVAVM7.js → chunk-WGMNXDRZ.js} +2 -2
- package/dist/cli/{chunk-46YQQOTC.mjs → chunk-WISHPL5Q.mjs} +5 -5
- package/dist/cli/{chunk-QZKSG7XZ.js → chunk-WS2BY2ST.js} +36 -36
- package/dist/cli/{chunk-PEUWKPY4.js → chunk-WTVTCSPY.js} +4 -4
- package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
- package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
- package/dist/cli/{chunk-NYNNNOJW.js → chunk-YIJS7ET7.js} +51 -51
- package/dist/cli/{chunk-SWUSDFG2.js → chunk-ZTA4JIAB.js} +9 -9
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZGZX2IIP.mjs → csv-435JAJ45.mjs} +4 -4
- package/dist/cli/{csv-AD2DLLLL.js → csv-BPZ4VLR6.js} +13 -13
- package/dist/cli/{db-NBY4LHAY.js → db-EBR2UQK3.js} +27 -27
- package/dist/cli/{db-LUFEKPEK.mjs → db-IEUTNOOC.mjs} +6 -6
- package/dist/cli/describe-EPT52IUE.js +48 -0
- package/dist/cli/{describe-MLXMC47U.mjs → describe-GM233O75.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-HDJMKNBR.js → executions-5SWPQTLB.js} +8 -8
- package/dist/cli/{executions-JKVWM3P4.mjs → executions-LDPBVSKZ.mjs} +6 -6
- package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-JB7BBF64.mjs} +4 -4
- package/dist/cli/{feedback-VXMP7HDF.js → feedback-YFW5KT36.js} +8 -8
- package/dist/cli/git-7L7LKOKW.js +25 -0
- package/dist/cli/{git-UFMRAGMY.mjs → git-MCGUPO2W.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-EHNXHQL7.mjs} +5 -5
- package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-LMGSIBWM.js} +8 -8
- package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-355EWLGN.mjs} +7 -7
- package/dist/cli/{monitors-LNNSTELC.js → monitors-VRQ32EAA.js} +91 -91
- package/dist/cli/{org-EEEMWKQ2.mjs → org-MJ6XMAI4.mjs} +51 -10
- package/dist/cli/{org-OWM3IGOK.js → org-W3YZN65W.js} +113 -72
- package/dist/cli/{pages-ZYYMQUDX.mjs → pages-62QNUXV2.mjs} +6 -6
- package/dist/cli/{pages-7JF6AKDI.js → pages-JPK6UVMV.js} +17 -17
- package/dist/cli/{play-5Z3E7KL6.mjs → play-CKBPES6Q.mjs} +18 -18
- package/dist/cli/{play-WLAFXAHR.js → play-WPPJQBBS.js} +305 -305
- package/dist/cli/{providers-TTDFQQU2.js → providers-DH5JJ5HN.js} +9 -9
- package/dist/cli/{providers-JUT7IYD3.mjs → providers-LLPKHVXL.mjs} +6 -6
- package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-K5HVPO2L.mjs} +4 -4
- package/dist/cli/{quickstart-OZYEGICI.js → quickstart-NNEF37EG.js} +6 -6
- package/dist/cli/{run-BYGE4LUB.js → run-N2KY2VNQ.js} +40 -40
- package/dist/cli/{run-CM6OZUBR.mjs → run-SKIZFJ5O.mjs} +25 -25
- package/dist/cli/{search-RZRJ73YL.mjs → search-2WXJ3GID.mjs} +7 -7
- package/dist/cli/search-HO7ARG3H.js +32 -0
- package/dist/cli/{secrets-XLTN3SCL.js → secrets-5YVX7LK7.js} +15 -15
- package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-6GEQ75OU.mjs} +6 -6
- package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-GOPZ3YRN.mjs} +5 -5
- package/dist/cli/{sessions-6NCQQXVK.js → sessions-H3QES7C2.js} +6 -6
- package/dist/cli/{settings-JJH72W5V.js → settings-62SU5ROV.js} +78 -78
- package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-IP47HYC6.mjs} +11 -11
- package/dist/cli/{setup-ZJ4G54XN.mjs → setup-LCKXUSW5.mjs} +9 -9
- package/dist/cli/{setup-3BIOG6N2.js → setup-YCCU7TU4.js} +44 -44
- package/dist/cli/{skills-FBH4REPB.mjs → skills-3QAQI6X7.mjs} +7 -7
- package/dist/cli/skills-UVAIKQNC.js +31 -0
- package/dist/cli/{tools-J6YGZTD5.mjs → tools-HKD4G6HA.mjs} +18 -18
- package/dist/cli/tools-KAIUUBTD.js +55 -0
- package/dist/cli/{update-6CSRALIQ.mjs → update-2VYSBSDD.mjs} +9 -9
- package/dist/cli/update-Q3AMECAG.js +33 -0
- package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-EFRGY6JD.mjs} +7 -7
- package/dist/cli/{workflow-2ETKYSJV.js → workflow-MMWGUSGY.js} +17 -17
- package/dist/{client-BClp2yrq.d.ts → client-BOEAXwJj.d.ts} +1 -1
- package/dist/{client-ADFHNtFM.d.mts → client-DL0koOaP.d.mts} +1 -1
- package/dist/{client-core-BFU73Ttw.d.ts → client-core-BX_8khUY.d.ts} +23 -1
- package/dist/{client-core-DWLmmJWo.d.mts → client-core-CowyuxKu.d.mts} +23 -1
- package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
- package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
- package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
- package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
- package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
- package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +277 -76
- package/dist/index.mjs +239 -38
- package/dist/install-integrity.json +114 -114
- 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/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-Y3UTWD3W.js +0 -41
- package/dist/cli/describe-Z66CQESH.js +0 -48
- package/dist/cli/git-NNSJKW3V.js +0 -25
- package/dist/cli/search-RIG4LTCS.js +0 -32
- package/dist/cli/skills-ODISCL7S.js +0 -31
- package/dist/cli/tools-IHBHDI4P.js +0 -55
- package/dist/cli/update-5O3HDR5O.js +0 -33
package/dist/cli/index.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunk42AW4SQRjs = require('./chunk-42AW4SQR.js');
|
|
11
|
+
require('./chunk-WBYC7AYC.js');
|
|
12
|
+
require('./chunk-WGMNXDRZ.js');
|
|
13
|
+
require('./chunk-WS2BY2ST.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFFOAOQ77js = require('./chunk-FFOAOQ77.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkVOPKDTJTjs = require('./chunk-VOPKDTJT.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,15 +38,15 @@ var _chunk5BEKJUOKjs = require('./chunk-5BEKJUOK.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkH3QDLCRTjs = require('./chunk-H3QDLCRT.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk7ZZWOJTMjs = require('./chunk-7ZZWOJTM.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkHNP5V5BNjs = require('./chunk-HNP5V5BN.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -59,7 +59,7 @@ var _chunkHIMV32ZXjs = require('./chunk-HIMV32ZX.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkFVA6XLRAjs = require('./chunk-FVA6XLRA.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,17 +67,17 @@ var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkSHGBHP6Jjs = require('./chunk-SHGBHP6J.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkWTVTCSPYjs = require('./chunk-WTVTCSPY.js');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
78
78
|
require('./chunk-XNYIZMNQ.js');
|
|
79
79
|
require('./chunk-DIAWYWT5.js');
|
|
80
|
-
require('./chunk-
|
|
80
|
+
require('./chunk-3ZGSR6X7.js');
|
|
81
81
|
require('./chunk-OG64RBAC.js');
|
|
82
82
|
require('./chunk-COGTRVWW.js');
|
|
83
83
|
|
|
@@ -142,56 +142,56 @@ var _os = require('os');
|
|
|
142
142
|
var COMMAND_GROUPS = [
|
|
143
143
|
{
|
|
144
144
|
names: ["auth"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EXW5E3DI.js")))).registerAuthCommands
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
names: ["providers"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-DH5JJ5HN.js")))).registerProviderCommands
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
names: ["search"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-HO7ARG3H.js")))).registerSearchCommand
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
names: ["describe"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-EPT52IUE.js")))).registerDescribeCommand
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
names: ["run"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-N2KY2VNQ.js")))).registerRunCommand
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
names: ["tools"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-KAIUUBTD.js")))).registerToolsCommands
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
names: ["executions"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-5SWPQTLB.js")))).registerExecutionsCommands
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["plays", "runs"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-WPPJQBBS.js")))).registerPlayCommands
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
names: ["sessions"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-H3QES7C2.js")))).registerSessionsCommands
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
names: ["workflows"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-MMWGUSGY.js")))).registerWorkflowCommands
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
names: ["pages"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-JPK6UVMV.js")))).registerPagesCommands
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
names: ["secrets"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-5YVX7LK7.js")))).registerSecretsCommands
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["settings", "notifications"],
|
|
193
193
|
load: async () => {
|
|
194
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
194
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-62SU5ROV.js")));
|
|
195
195
|
return (p) => {
|
|
196
196
|
commands.registerSettingsCommands(p);
|
|
197
197
|
commands.registerNotificationCommands(p);
|
|
@@ -200,51 +200,51 @@ var COMMAND_GROUPS = [
|
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
names: ["billing"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-N5BNGGYN.js")))).registerBillingCommands
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
names: ["monitors"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-VRQ32EAA.js")))).registerMonitorsCommands
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
names: ["org"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-W3YZN65W.js")))).registerOrgCommands
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
names: ["git", "projects", "deployments"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
215
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-7L7LKOKW.js")))).registerGitCommands
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
names: ["csv"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-BPZ4VLR6.js")))).registerCsvCommands
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
names: ["db"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-EBR2UQK3.js")))).registerDbCommands
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
names: ["feedback"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-YFW5KT36.js")))).registerFeedbackCommands
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
names: ["enrich", "session", "backend"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-LMGSIBWM.js")))).registerDeprecatedCommands
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
names: ["update"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
235
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-Q3AMECAG.js")))).registerUpdateCommand
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
names: ["skills", "skills-auto-sync"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-UVAIKQNC.js")))).registerSkillsCommand
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
names: ["setup", "doctor"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-YCCU7TU4.js")))).registerSetupCommands
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
names: ["quickstart"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-NNEF37EG.js")))).registerQuickstartCommands
|
|
248
248
|
}
|
|
249
249
|
];
|
|
250
250
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -270,25 +270,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
270
270
|
function createDeferredPlayRunMaintenance(input) {
|
|
271
271
|
return async () => {
|
|
272
272
|
try {
|
|
273
|
-
const skillsVersion =
|
|
274
|
-
const compatibility = await
|
|
273
|
+
const skillsVersion = _chunkSHGBHP6Jjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
274
|
+
const compatibility = await _chunkVOPKDTJTjs.traceCliSpan.call(void 0,
|
|
275
275
|
"cli.sdk_compatibility_deferred",
|
|
276
276
|
{
|
|
277
277
|
baseUrl: input.baseUrl,
|
|
278
278
|
command: "plays run",
|
|
279
279
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
280
280
|
},
|
|
281
|
-
() =>
|
|
281
|
+
() => _chunkH3QDLCRTjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
282
282
|
command: "plays run",
|
|
283
283
|
skillsVersion,
|
|
284
284
|
persistCache: input.policy !== "off",
|
|
285
|
-
catalog:
|
|
285
|
+
catalog: _chunk42AW4SQRjs.compatibilityCatalog.call(void 0, input.command)
|
|
286
286
|
})
|
|
287
287
|
);
|
|
288
288
|
if (compatibility.error || !compatibility.response) return;
|
|
289
289
|
const automaticUpdate = compatibility.response.auto_update;
|
|
290
290
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
291
|
-
await
|
|
291
|
+
await _chunk42AW4SQRjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
292
292
|
compatibility.response,
|
|
293
293
|
input.baseUrl,
|
|
294
294
|
input.policy
|
|
@@ -298,7 +298,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
298
298
|
compatibility.response,
|
|
299
299
|
"skills"
|
|
300
300
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
301
|
-
await
|
|
301
|
+
await _chunkH3QDLCRTjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
302
302
|
update: skillsUpdate,
|
|
303
303
|
mode: "detached"
|
|
304
304
|
});
|
|
@@ -326,8 +326,8 @@ var MAX_SESSIONS = 20;
|
|
|
326
326
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
327
327
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
328
328
|
}
|
|
329
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
330
|
-
const explicit =
|
|
329
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkWTVTCSPYjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
330
|
+
const explicit = _chunkHNP5V5BNjs.helpDetailFromArgv.call(void 0, argv);
|
|
331
331
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
332
332
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
333
333
|
const path = helpSeenPath(homeDir);
|
|
@@ -424,7 +424,7 @@ function shouldReport(stdout, stderr) {
|
|
|
424
424
|
}
|
|
425
425
|
function toolName(action) {
|
|
426
426
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
427
|
-
return typeof toolId === "string" ?
|
|
427
|
+
return typeof toolId === "string" ? _chunkH3QDLCRTjs.redactFailureText.call(void 0, toolId) : null;
|
|
428
428
|
}
|
|
429
429
|
function chunkText(chunk) {
|
|
430
430
|
if (typeof chunk === "string") return chunk;
|
|
@@ -455,14 +455,14 @@ function watch(stream) {
|
|
|
455
455
|
}
|
|
456
456
|
async function postCommandOutput(body) {
|
|
457
457
|
try {
|
|
458
|
-
const baseUrl =
|
|
459
|
-
const apiKey =
|
|
458
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
459
|
+
const apiKey = _chunkSHGBHP6Jjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
460
460
|
if (!apiKey) return;
|
|
461
|
-
const agentSessionId =
|
|
461
|
+
const agentSessionId = _chunkWTVTCSPYjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
462
462
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
463
463
|
method: "POST",
|
|
464
464
|
headers: {
|
|
465
|
-
...
|
|
465
|
+
..._chunkH3QDLCRTjs.failureReportHeaders.call(void 0, apiKey),
|
|
466
466
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
467
467
|
},
|
|
468
468
|
body: JSON.stringify(body),
|
|
@@ -478,14 +478,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
478
478
|
const stdoutWatch = watch(streams.stdout);
|
|
479
479
|
const stderrWatch = watch(streams.stderr);
|
|
480
480
|
return async (finished) => {
|
|
481
|
-
if (
|
|
481
|
+
if (_chunkH3QDLCRTjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
482
482
|
const [stdout, stderr] = await Promise.all([
|
|
483
483
|
stdoutWatch.settled(),
|
|
484
484
|
stderrWatch.settled()
|
|
485
485
|
]);
|
|
486
486
|
if (!shouldReport(stdout, stderr)) return;
|
|
487
487
|
await postCommandOutput({
|
|
488
|
-
command:
|
|
488
|
+
command: _chunkH3QDLCRTjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
489
489
|
tool: toolName(finished.action),
|
|
490
490
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
491
491
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -516,7 +516,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
516
516
|
function printUsageErrorJson(code, message, commandPath) {
|
|
517
517
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
518
518
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
519
|
-
|
|
519
|
+
_chunkFVA6XLRAjs.printJson.call(void 0, {
|
|
520
520
|
ok: false,
|
|
521
521
|
error: {
|
|
522
522
|
code,
|
|
@@ -578,7 +578,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
580
|
async function runPlayRunnerHealthCheck() {
|
|
581
|
-
|
|
581
|
+
_chunkSHGBHP6Jjs.resolveConfig.call(void 0, );
|
|
582
582
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
583
583
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
584
584
|
try {
|
|
@@ -608,7 +608,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
608
608
|
});
|
|
609
609
|
let exitCode = 1;
|
|
610
610
|
try {
|
|
611
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
611
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-WPPJQBBS.js")));
|
|
612
612
|
exitCode = await handlePlayRun([
|
|
613
613
|
file,
|
|
614
614
|
"--input",
|
|
@@ -648,7 +648,7 @@ function preflightErrorMessage(error) {
|
|
|
648
648
|
return error instanceof Error ? error.message : String(error);
|
|
649
649
|
}
|
|
650
650
|
async function runPreflightCheck() {
|
|
651
|
-
const baseUrl =
|
|
651
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
652
|
const healthController = new AbortController();
|
|
653
653
|
const healthTimeout = setTimeout(
|
|
654
654
|
() => healthController.abort(),
|
|
@@ -663,9 +663,9 @@ async function runPreflightCheck() {
|
|
|
663
663
|
version: pickString(payload, "version")
|
|
664
664
|
};
|
|
665
665
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
666
|
-
const apiKey =
|
|
667
|
-
const http = apiKey ? new (0,
|
|
668
|
-
|
|
666
|
+
const apiKey = _chunkSHGBHP6Jjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
667
|
+
const http = apiKey ? new (0, _chunkSHGBHP6Jjs.HttpClient)(
|
|
668
|
+
_chunkSHGBHP6Jjs.resolveConfig.call(void 0, {
|
|
669
669
|
baseUrl,
|
|
670
670
|
apiKey,
|
|
671
671
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -710,7 +710,7 @@ async function runPreflightCheck() {
|
|
|
710
710
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
711
711
|
return {
|
|
712
712
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
713
|
-
cli_version:
|
|
713
|
+
cli_version: _chunkWTVTCSPYjs.SDK_VERSION,
|
|
714
714
|
host: baseUrl,
|
|
715
715
|
health: {
|
|
716
716
|
status: healthResult.status,
|
|
@@ -736,7 +736,7 @@ async function runPreflightCheck() {
|
|
|
736
736
|
{
|
|
737
737
|
title: "preflight",
|
|
738
738
|
lines: [
|
|
739
|
-
`cli: ${
|
|
739
|
+
`cli: ${_chunkWTVTCSPYjs.SDK_VERSION}`,
|
|
740
740
|
`host: ${baseUrl}`,
|
|
741
741
|
`health: ${healthResult.status}`,
|
|
742
742
|
`auth: ${authStatus}`,
|
|
@@ -761,12 +761,12 @@ function printPreflightHuman(data) {
|
|
|
761
761
|
}
|
|
762
762
|
async function newerCliCommandHint(baseUrl, command) {
|
|
763
763
|
if (!command.trim()) return null;
|
|
764
|
-
const { response, error } = await
|
|
764
|
+
const { response, error } = await _chunkH3QDLCRTjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
765
765
|
if (error || !response) return null;
|
|
766
766
|
const introduced = response.command_introduced_in;
|
|
767
767
|
if (introduced) {
|
|
768
768
|
return [
|
|
769
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
769
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkWTVTCSPYjs.SDK_VERSION}.`,
|
|
770
770
|
` ${introduced.reason}`,
|
|
771
771
|
` Update with: ${response.update_command}`,
|
|
772
772
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -775,31 +775,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
775
775
|
if (!response.update_required) return null;
|
|
776
776
|
return [
|
|
777
777
|
response.message,
|
|
778
|
-
` Installed: ${
|
|
778
|
+
` Installed: ${_chunkWTVTCSPYjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
779
779
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
780
780
|
].join("\n");
|
|
781
781
|
}
|
|
782
782
|
async function runMain(ensureTransport, onAction) {
|
|
783
783
|
const mainStartedAt = Date.now();
|
|
784
|
-
|
|
784
|
+
_chunkFVA6XLRAjs.installJsonStderrGuard.call(void 0, );
|
|
785
785
|
let rootHelpStatus = "";
|
|
786
786
|
const deferredMaintenance = { inlinePlay: null };
|
|
787
|
-
|
|
787
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
788
788
|
phase: "cli.main_start",
|
|
789
789
|
argv: process.argv.slice(2)
|
|
790
790
|
});
|
|
791
791
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
792
|
-
const progress = printStartupPhase ?
|
|
792
|
+
const progress = printStartupPhase ? _chunk7ZZWOJTMjs.createCliProgress.call(void 0, true) : null;
|
|
793
793
|
if (printStartupPhase) {
|
|
794
794
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
795
795
|
}
|
|
796
796
|
const program = new (0, _commander.Command)();
|
|
797
797
|
program.name("deepline").description(
|
|
798
798
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
799
|
-
).version(
|
|
799
|
+
).version(_chunkWTVTCSPYjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
800
800
|
"--maintenance <policy>",
|
|
801
801
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
802
|
-
|
|
802
|
+
_chunkVOPKDTJTjs.parseCliMaintenancePolicy,
|
|
803
803
|
"configured"
|
|
804
804
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
805
805
|
"beforeAll",
|
|
@@ -848,33 +848,33 @@ Exit codes:
|
|
|
848
848
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
849
849
|
`
|
|
850
850
|
).addHelpText("afterAll", ({ command }) => {
|
|
851
|
-
const key =
|
|
851
|
+
const key = _chunkHNP5V5BNjs.commandDocKey.call(void 0, command);
|
|
852
852
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
853
|
-
return
|
|
853
|
+
return _chunkHNP5V5BNjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
854
854
|
});
|
|
855
855
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
856
856
|
onAction({
|
|
857
857
|
path: compatibilityCommandPath(actionCommand),
|
|
858
858
|
args: actionCommand.processedArgs
|
|
859
859
|
});
|
|
860
|
-
const maintenance =
|
|
860
|
+
const maintenance = _chunkVOPKDTJTjs.resolveCliMaintenancePolicy.call(void 0,
|
|
861
861
|
actionCommand.optsWithGlobals()
|
|
862
862
|
);
|
|
863
863
|
if (actionCommand.name() !== "version") {
|
|
864
864
|
await ensureTransport();
|
|
865
865
|
}
|
|
866
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
866
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkH3QDLCRTjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
869
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
870
870
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
871
871
|
if (isToolExecuteCommand) {
|
|
872
|
-
|
|
872
|
+
_chunk42AW4SQRjs.beginToolExecuteCommand.call(void 0, );
|
|
873
873
|
}
|
|
874
874
|
if (isToolExecuteCommand) {
|
|
875
|
-
const baseUrl =
|
|
876
|
-
if (maintenance !== "off")
|
|
877
|
-
|
|
875
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
876
|
+
if (maintenance !== "off") _chunkH3QDLCRTjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
877
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
878
878
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
879
879
|
baseUrl,
|
|
880
880
|
command: compatibilityCommand
|
|
@@ -882,10 +882,10 @@ Exit codes:
|
|
|
882
882
|
return;
|
|
883
883
|
}
|
|
884
884
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
885
|
-
if (!playDryRun &&
|
|
885
|
+
if (!playDryRun && _chunkFFOAOQ77js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
886
886
|
if (maintenance !== "off") {
|
|
887
|
-
const baseUrl =
|
|
888
|
-
|
|
887
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
888
|
+
_chunkH3QDLCRTjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
889
889
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
890
890
|
baseUrl,
|
|
891
891
|
command: actionCommand,
|
|
@@ -894,27 +894,27 @@ Exit codes:
|
|
|
894
894
|
}
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
897
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunk42AW4SQRjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
898
898
|
if (printStartupPhase) {
|
|
899
899
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
900
900
|
}
|
|
901
901
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
902
|
-
const baseUrl =
|
|
903
|
-
if (maintenance !== "off")
|
|
902
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
903
|
+
if (maintenance !== "off") _chunkH3QDLCRTjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
904
904
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
905
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
906
|
-
const trusted = isToolExecuteCommand ? null :
|
|
905
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkSHGBHP6Jjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
906
|
+
const trusted = isToolExecuteCommand ? null : _chunkH3QDLCRTjs.readTrustedCleanCompatibility.call(void 0,
|
|
907
907
|
baseUrl,
|
|
908
908
|
compatibilityCommand,
|
|
909
909
|
skillsVersion
|
|
910
910
|
);
|
|
911
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
911
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkH3QDLCRTjs.readFreshCleanCompatibility.call(void 0,
|
|
912
912
|
baseUrl,
|
|
913
913
|
compatibilityCommand,
|
|
914
914
|
skillsVersion
|
|
915
915
|
) !== null;
|
|
916
916
|
if (trusted) {
|
|
917
|
-
|
|
917
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
918
918
|
phase: "cli.sdk_compatibility",
|
|
919
919
|
ms: 0,
|
|
920
920
|
ok: true,
|
|
@@ -924,7 +924,7 @@ Exit codes:
|
|
|
924
924
|
source: "trusted_cache"
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
927
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkVOPKDTJTjs.traceCliSpan.call(void 0,
|
|
928
928
|
"cli.sdk_compatibility",
|
|
929
929
|
{
|
|
930
930
|
baseUrl,
|
|
@@ -932,12 +932,12 @@ Exit codes:
|
|
|
932
932
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
933
933
|
fastDeadline
|
|
934
934
|
},
|
|
935
|
-
() =>
|
|
935
|
+
() => _chunkH3QDLCRTjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
936
936
|
command: compatibilityCommand,
|
|
937
937
|
skillsVersion,
|
|
938
938
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
939
|
-
catalog:
|
|
940
|
-
...fastDeadline ? { timeoutMs:
|
|
939
|
+
catalog: _chunk42AW4SQRjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
940
|
+
...fastDeadline ? { timeoutMs: _chunkH3QDLCRTjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
941
941
|
})
|
|
942
942
|
);
|
|
943
943
|
if (compatibility.error) {
|
|
@@ -948,7 +948,7 @@ Exit codes:
|
|
|
948
948
|
response: null
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
|
-
const relaunched = await
|
|
951
|
+
const relaunched = await _chunk42AW4SQRjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
952
952
|
compatibility.response,
|
|
953
953
|
baseUrl,
|
|
954
954
|
maintenance
|
|
@@ -962,14 +962,14 @@ Exit codes:
|
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
964
|
const policy = compatibility.response;
|
|
965
|
-
const jsonOutput =
|
|
966
|
-
|
|
965
|
+
const jsonOutput = _chunkFVA6XLRAjs.isJsonOutputMode.call(void 0, );
|
|
966
|
+
_chunkH3QDLCRTjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
967
967
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
968
|
-
|
|
968
|
+
_chunk42AW4SQRjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkH3QDLCRTjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
969
969
|
});
|
|
970
970
|
const advisory = compatibility.response;
|
|
971
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
972
|
-
|
|
971
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkH3QDLCRTjs.isCiEnvironment.call(void 0, ) && !_chunk42AW4SQRjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
972
|
+
_chunkFVA6XLRAjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
973
973
|
}
|
|
974
974
|
return {
|
|
975
975
|
shouldContinue: true,
|
|
@@ -986,10 +986,10 @@ Exit codes:
|
|
|
986
986
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
987
987
|
await runStartupStage(
|
|
988
988
|
"agent skills sync",
|
|
989
|
-
() =>
|
|
989
|
+
() => _chunkVOPKDTJTjs.traceCliSpan.call(void 0,
|
|
990
990
|
"cli.sdk_skills_sync",
|
|
991
991
|
{ baseUrl: startup.baseUrl },
|
|
992
|
-
() =>
|
|
992
|
+
() => _chunkH3QDLCRTjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
993
993
|
update: skillsUpdate,
|
|
994
994
|
mode: "detached"
|
|
995
995
|
})
|
|
@@ -998,19 +998,19 @@ Exit codes:
|
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
1000
|
const requestedCommand = process.argv[2];
|
|
1001
|
-
const commandRegistrationStartedAt =
|
|
1001
|
+
const commandRegistrationStartedAt = _chunkVOPKDTJTjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1002
1002
|
await registerDeeplineCommandGroups(
|
|
1003
1003
|
program,
|
|
1004
1004
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
1005
1005
|
);
|
|
1006
1006
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1007
|
-
|
|
1007
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
1008
1008
|
phase: "cli.command_registration",
|
|
1009
1009
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1013
|
-
if (
|
|
1013
|
+
if (_chunkFVA6XLRAjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1014
1014
|
preflight.addHelpText(
|
|
1015
1015
|
"after",
|
|
1016
1016
|
`
|
|
@@ -1025,8 +1025,8 @@ Examples:
|
|
|
1025
1025
|
`
|
|
1026
1026
|
).action(async (options) => {
|
|
1027
1027
|
const data = await runPreflightCheck();
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1028
|
+
if (_chunkFVA6XLRAjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1029
|
+
_chunkFVA6XLRAjs.printJson.call(void 0, data);
|
|
1030
1030
|
} else {
|
|
1031
1031
|
printPreflightHuman(data);
|
|
1032
1032
|
}
|
|
@@ -1048,7 +1048,7 @@ Examples:
|
|
|
1048
1048
|
).action(async (options) => {
|
|
1049
1049
|
if (options.playRunner) {
|
|
1050
1050
|
const data = await runPlayRunnerHealthCheck();
|
|
1051
|
-
|
|
1051
|
+
_chunkFVA6XLRAjs.printCommandEnvelope.call(void 0, data, {
|
|
1052
1052
|
json: options.json,
|
|
1053
1053
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1054
1054
|
`
|
|
@@ -1056,15 +1056,15 @@ Examples:
|
|
|
1056
1056
|
return;
|
|
1057
1057
|
}
|
|
1058
1058
|
try {
|
|
1059
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1060
|
-
const baseUrl =
|
|
1059
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EXW5E3DI.js")));
|
|
1060
|
+
const baseUrl = _chunkSHGBHP6Jjs.resolveBaseUrlOnly.call(void 0, );
|
|
1061
1061
|
const [{ status, data }, banner] = await Promise.all([
|
|
1062
1062
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1063
1063
|
readStatusBanner(baseUrl)
|
|
1064
1064
|
]);
|
|
1065
1065
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1066
1066
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1067
|
-
|
|
1067
|
+
_chunkFVA6XLRAjs.printCommandEnvelope.call(void 0,
|
|
1068
1068
|
{ ...data, status_banner: banner },
|
|
1069
1069
|
{
|
|
1070
1070
|
json: options.json,
|
|
@@ -1092,16 +1092,16 @@ Examples:
|
|
|
1092
1092
|
`
|
|
1093
1093
|
).action((options) => {
|
|
1094
1094
|
if (options.json) {
|
|
1095
|
-
|
|
1095
|
+
_chunkFVA6XLRAjs.printCompactJson.call(void 0, { version: _chunkWTVTCSPYjs.SDK_VERSION });
|
|
1096
1096
|
return;
|
|
1097
1097
|
}
|
|
1098
|
-
process.stdout.write(`deepline ${
|
|
1098
|
+
process.stdout.write(`deepline ${_chunkWTVTCSPYjs.SDK_VERSION}
|
|
1099
1099
|
`);
|
|
1100
1100
|
});
|
|
1101
1101
|
if (process.argv.slice(2).length === 0) {
|
|
1102
1102
|
program.outputHelp({ error: true });
|
|
1103
1103
|
console.error("\nerror: missing command (see usage above)");
|
|
1104
|
-
|
|
1104
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
1105
1105
|
phase: "cli.main_total",
|
|
1106
1106
|
ms: Date.now() - mainStartedAt,
|
|
1107
1107
|
ok: false,
|
|
@@ -1113,16 +1113,16 @@ Examples:
|
|
|
1113
1113
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1114
1114
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1115
1115
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1116
|
-
if (!
|
|
1117
|
-
const baseUrl =
|
|
1116
|
+
if (!_chunkFVA6XLRAjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1117
|
+
const baseUrl = _chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, );
|
|
1118
1118
|
await ensureTransport();
|
|
1119
1119
|
const versionHint = await newerCliCommandHint(
|
|
1120
1120
|
baseUrl,
|
|
1121
1121
|
requestedTopLevelCommand
|
|
1122
1122
|
);
|
|
1123
|
-
if (
|
|
1123
|
+
if (_chunkFVA6XLRAjs.isJsonOutputMode.call(void 0, )) {
|
|
1124
1124
|
if (versionHint) {
|
|
1125
|
-
|
|
1125
|
+
_chunkFVA6XLRAjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1126
1126
|
}
|
|
1127
1127
|
printUsageErrorJson(
|
|
1128
1128
|
"commander.unknownCommand",
|
|
@@ -1144,32 +1144,32 @@ Examples:
|
|
|
1144
1144
|
const helpArgs = process.argv.slice(2);
|
|
1145
1145
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1146
1146
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1147
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1148
|
-
rootHelpStatus = `Version: ${
|
|
1147
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EXW5E3DI.js")));
|
|
1148
|
+
rootHelpStatus = `Version: ${_chunkWTVTCSPYjs.SDK_VERSION}
|
|
1149
1149
|
${await authStatusLine()}
|
|
1150
1150
|
`;
|
|
1151
1151
|
}
|
|
1152
1152
|
await program.parseAsync(process.argv);
|
|
1153
|
-
|
|
1153
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
1154
1154
|
phase: "cli.main_total",
|
|
1155
1155
|
ms: Date.now() - mainStartedAt,
|
|
1156
1156
|
ok: true
|
|
1157
1157
|
});
|
|
1158
|
-
await
|
|
1158
|
+
await _chunkH3QDLCRTjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1159
1159
|
argv: process.argv.slice(2),
|
|
1160
1160
|
startedAtMs: mainStartedAt,
|
|
1161
1161
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1162
1162
|
});
|
|
1163
1163
|
} catch (error) {
|
|
1164
1164
|
const commanderError = asCommanderError(error);
|
|
1165
|
-
|
|
1165
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
1166
1166
|
phase: "cli.main_total",
|
|
1167
1167
|
ms: Date.now() - mainStartedAt,
|
|
1168
1168
|
ok: false,
|
|
1169
1169
|
error: error instanceof Error ? error.message : String(error)
|
|
1170
1170
|
});
|
|
1171
1171
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1172
|
-
const wantsJson =
|
|
1172
|
+
const wantsJson = _chunkFVA6XLRAjs.isJsonOutputMode.call(void 0, );
|
|
1173
1173
|
if (commanderError) {
|
|
1174
1174
|
const grammarError = [
|
|
1175
1175
|
"commander.unknownCommand",
|
|
@@ -1180,12 +1180,12 @@ ${await authStatusLine()}
|
|
|
1180
1180
|
if (grammarError) {
|
|
1181
1181
|
await ensureTransport();
|
|
1182
1182
|
const versionHint = await newerCliCommandHint(
|
|
1183
|
-
|
|
1183
|
+
_chunkSHGBHP6Jjs.autoDetectBaseUrl.call(void 0, ),
|
|
1184
1184
|
commandPath
|
|
1185
1185
|
);
|
|
1186
1186
|
if (wantsJson) {
|
|
1187
1187
|
if (versionHint) {
|
|
1188
|
-
|
|
1188
|
+
_chunkFVA6XLRAjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1189
1189
|
}
|
|
1190
1190
|
} else {
|
|
1191
1191
|
if (versionHint) console.error(versionHint);
|
|
@@ -1205,49 +1205,49 @@ ${await authStatusLine()}
|
|
|
1205
1205
|
return;
|
|
1206
1206
|
} else if (wantsJson) {
|
|
1207
1207
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1208
|
-
|
|
1208
|
+
_chunkFVA6XLRAjs.addJsonNotice.call(void 0, {
|
|
1209
1209
|
code: "auth_required",
|
|
1210
1210
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
1213
|
-
const providerConcurrency =
|
|
1213
|
+
const providerConcurrency = _chunkFVA6XLRAjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1214
1214
|
if (providerConcurrency) {
|
|
1215
|
-
|
|
1215
|
+
_chunkFVA6XLRAjs.addJsonNotice.call(void 0, {
|
|
1216
1216
|
code: "provider_concurrency",
|
|
1217
1217
|
message: providerConcurrency
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
|
|
1221
|
-
...
|
|
1220
|
+
_chunkFVA6XLRAjs.printJson.call(void 0, {
|
|
1221
|
+
..._chunkFVA6XLRAjs.errorToJsonPayload.call(void 0, error),
|
|
1222
1222
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1223
1223
|
});
|
|
1224
1224
|
} else if (error instanceof Error) {
|
|
1225
1225
|
console.error(`Error: ${error.message}`);
|
|
1226
|
-
const toolDiagnostic =
|
|
1226
|
+
const toolDiagnostic = _chunkFVA6XLRAjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1227
1227
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1228
1228
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1229
1229
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1230
1230
|
}
|
|
1231
|
-
const providerConcurrency =
|
|
1231
|
+
const providerConcurrency = _chunkFVA6XLRAjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1232
1232
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1233
1233
|
} else {
|
|
1234
1234
|
console.error(`Error: ${String(error)}`);
|
|
1235
1235
|
}
|
|
1236
1236
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1237
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1237
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkH3QDLCRTjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1238
1238
|
process.exitCode = failureExitCode;
|
|
1239
|
-
await
|
|
1239
|
+
await _chunkH3QDLCRTjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1240
1240
|
argv: process.argv.slice(2),
|
|
1241
1241
|
startedAtMs: mainStartedAt,
|
|
1242
1242
|
exitCode: failureExitCode,
|
|
1243
1243
|
error
|
|
1244
1244
|
});
|
|
1245
1245
|
} finally {
|
|
1246
|
-
|
|
1246
|
+
_chunk42AW4SQRjs.finishToolExecuteCommand.call(void 0, );
|
|
1247
1247
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1248
1248
|
deferredMaintenance.inlinePlay = null;
|
|
1249
1249
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1250
|
-
await
|
|
1250
|
+
await _chunk42AW4SQRjs.runDeferredAutoUpdate.call(void 0, );
|
|
1251
1251
|
}
|
|
1252
1252
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1253
1253
|
}
|
|
@@ -1255,7 +1255,7 @@ async function main() {
|
|
|
1255
1255
|
let disposeTransport;
|
|
1256
1256
|
const ensureTransport = async () => {
|
|
1257
1257
|
if (disposeTransport) return;
|
|
1258
|
-
const transportStartedAt =
|
|
1258
|
+
const transportStartedAt = _chunkVOPKDTJTjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1259
1259
|
const hasProxy = [
|
|
1260
1260
|
"HTTP_PROXY",
|
|
1261
1261
|
"http_proxy",
|
|
@@ -1267,7 +1267,7 @@ async function main() {
|
|
|
1267
1267
|
disposeTransport = configureCliTransport();
|
|
1268
1268
|
}
|
|
1269
1269
|
if (transportStartedAt !== void 0) {
|
|
1270
|
-
|
|
1270
|
+
_chunkVOPKDTJTjs.recordCliTrace.call(void 0, {
|
|
1271
1271
|
phase: "cli.transport_setup",
|
|
1272
1272
|
ms: performance.now() - transportStartedAt
|
|
1273
1273
|
});
|
|
@@ -1284,9 +1284,9 @@ async function main() {
|
|
|
1284
1284
|
action = dispatched;
|
|
1285
1285
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1286
1286
|
});
|
|
1287
|
-
const silentFailure =
|
|
1287
|
+
const silentFailure = _chunkFVA6XLRAjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1288
1288
|
if (silentFailure) {
|
|
1289
|
-
|
|
1289
|
+
_chunkFVA6XLRAjs.printJson.call(void 0, {
|
|
1290
1290
|
ok: false,
|
|
1291
1291
|
exitCode: Number(process.exitCode),
|
|
1292
1292
|
error: { code: "CLI_ERROR", message: silentFailure }
|