deepline 0.3.476 → 0.3.478
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/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +33 -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 +77 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +13 -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/sandbox-compute-usage.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +215 -22
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +42 -0
- 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 +1 -0
- 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/cli/{auth-A22724UX.mjs → auth-SA4DJCSO.mjs} +5 -5
- package/dist/cli/auth-U5SNVC5F.js +41 -0
- package/dist/cli/{billing-T5Q6OO6M.js → billing-462SAHWX.js} +107 -87
- package/dist/cli/{billing-IIBEZ6J7.mjs → billing-Z4D35MV5.mjs} +34 -14
- package/dist/cli/{chunk-NPNQCPFP.mjs → chunk-2FTUPGTN.mjs} +2 -2
- package/dist/cli/{chunk-2WEPQSA2.mjs → chunk-2JS5DNVX.mjs} +5 -5
- package/dist/cli/{chunk-L45IECBZ.js → chunk-2MSKG4ER.js} +7 -6
- package/dist/cli/{chunk-JU2KBLOR.mjs → chunk-3LTLQAU4.mjs} +4 -4
- package/dist/cli/{chunk-ZV4OWYLZ.mjs → chunk-3V7INABZ.mjs} +2 -2
- package/dist/cli/{chunk-VPAVNEDQ.mjs → chunk-4C3TMIF3.mjs} +4 -4
- package/dist/cli/{chunk-H3GOAZHV.mjs → chunk-4RJRGQ5Y.mjs} +2 -2
- package/dist/cli/{chunk-AS3VECCY.js → chunk-4RV7U3RP.js} +7 -7
- package/dist/cli/{chunk-UHTJWDYB.mjs → chunk-645RNF2Y.mjs} +1 -1
- package/dist/cli/{chunk-TEJSRJNH.js → chunk-6EEMW7YP.js} +8 -8
- package/dist/cli/{chunk-ZOXV6WFI.mjs → chunk-75DAGCEX.mjs} +1 -1
- package/dist/cli/{chunk-NTJDZURV.mjs → chunk-7HTWT3Z4.mjs} +2 -2
- package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
- package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
- package/dist/cli/{chunk-5FBCMLJW.js → chunk-A5LPDB6N.js} +6 -6
- package/dist/cli/{chunk-4YWYLHED.mjs → chunk-ABBP5ZCI.mjs} +3 -3
- package/dist/cli/{chunk-IC3BZJR7.js → chunk-AQYSZYNE.js} +8 -8
- package/dist/cli/{chunk-WTPRRKZA.js → chunk-AYW242XF.js} +37 -37
- package/dist/cli/{chunk-CFSCHLNQ.mjs → chunk-BLAZVZVD.mjs} +23 -5
- package/dist/cli/{chunk-KGLIDLJ2.js → chunk-D2LKEQKI.js} +5 -5
- package/dist/cli/{chunk-4WMIMSSI.mjs → chunk-F2SJYUBW.mjs} +5 -5
- package/dist/cli/{chunk-KCP6XNRR.mjs → chunk-F44O4PEP.mjs} +1 -1
- package/dist/cli/{chunk-EBWYNNTJ.js → chunk-HMUBLAT4.js} +5 -5
- package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
- package/dist/cli/{chunk-B7PEXXRW.js → chunk-IWYWZXCA.js} +53 -53
- package/dist/cli/{chunk-PGNLD6L6.js → chunk-J3ZYRN5L.js} +10 -10
- package/dist/cli/{chunk-VKBZLV2K.mjs → chunk-JH775FF6.mjs} +1 -1
- package/dist/cli/{chunk-5AEEINTU.js → chunk-KBBZXWXF.js} +63 -11
- package/dist/cli/{chunk-FVPT44IJ.mjs → chunk-M5USVQ33.mjs} +55 -3
- package/dist/cli/{chunk-2YHDNHRR.mjs → chunk-N573OK4W.mjs} +4 -4
- package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
- package/dist/cli/{chunk-J4FCTFQS.mjs → chunk-PHBOI24Y.mjs} +10 -10
- package/dist/cli/{chunk-D7EQ4PI5.mjs → chunk-PLJV6SX4.mjs} +1 -1
- package/dist/cli/{chunk-YQOWMQEW.mjs → chunk-PPHHPAQV.mjs} +1 -1
- package/dist/cli/{chunk-CBVCCXIY.js → chunk-PZHRNSMU.js} +21 -21
- package/dist/cli/{chunk-LJFIUT5R.mjs → chunk-QB3Q73LP.mjs} +2 -2
- package/dist/cli/{chunk-ULKGYVYP.js → chunk-QVZNUQAP.js} +2 -2
- package/dist/cli/{chunk-A6BETJ2A.js → chunk-S3BKOCVB.js} +1 -1
- package/dist/cli/{chunk-F5PYBZ2H.mjs → chunk-S7UEKKOX.mjs} +2 -1
- package/dist/cli/{chunk-W3BHZUPL.js → chunk-SCHE5QRN.js} +3 -3
- package/dist/cli/{chunk-YEJDFZJP.js → chunk-SXY4DOVA.js} +16 -16
- package/dist/cli/{chunk-LZCYDU6Q.mjs → chunk-TLF3KGWG.mjs} +2 -2
- package/dist/cli/{chunk-5PYSYW63.js → chunk-TQWI7LJX.js} +26 -26
- package/dist/cli/{chunk-7HAUVMRF.js → chunk-TW3TTKW5.js} +3 -3
- package/dist/cli/{chunk-FK7SBMSZ.js → chunk-UXQVSDFP.js} +3 -3
- package/dist/cli/{chunk-HSANVBVL.js → chunk-V7I65ME7.js} +2 -2
- package/dist/cli/{chunk-6YZYCKWD.js → chunk-VE25VUTE.js} +70 -52
- package/dist/cli/{chunk-VLYUFZUT.js → chunk-XFY3JOP2.js} +9 -9
- package/dist/cli/{chunk-MYYOCJZ2.js → chunk-XOORR6P3.js} +93 -93
- package/dist/cli/chunk-YGCKMI5P.js +127 -0
- package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
- package/dist/cli/{chunk-NREO7TT4.mjs → chunk-ZSU3C4ST.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-GPVCETS2.mjs → csv-3SNWBO5F.mjs} +4 -4
- package/dist/cli/{csv-FXOQ2PBE.js → csv-LAYTDYIF.js} +13 -13
- package/dist/cli/{db-F5UJTBGP.mjs → db-72JKGQSK.mjs} +6 -6
- package/dist/cli/{db-LXYV4GPZ.js → db-OOUOSURL.js} +27 -27
- package/dist/cli/describe-7HYV44MO.js +48 -0
- package/dist/cli/{describe-GYWCI7I6.mjs → describe-KDPNOEUJ.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-6NL2YW76.mjs → executions-O6JS3UKX.mjs} +6 -6
- package/dist/cli/{executions-6SJKTY2L.js → executions-RJNMGJEE.js} +8 -8
- package/dist/cli/{feedback-E3HULSQD.js → feedback-FXB6NV3Y.js} +8 -8
- package/dist/cli/{feedback-7AMQCNTB.mjs → feedback-T3JH3CWC.mjs} +4 -4
- package/dist/cli/git-5LTKPXGN.js +25 -0
- package/dist/cli/{git-74IS2EFH.mjs → git-6KAQSH5J.mjs} +5 -5
- package/dist/cli/index.js +161 -142
- package/dist/cli/index.mjs +65 -46
- package/dist/cli/{legacy-noops-52FFRTRZ.mjs → legacy-noops-7HDGEGTK.mjs} +5 -5
- package/dist/cli/{legacy-noops-ALWUQPKS.js → legacy-noops-PAOGRKUK.js} +8 -8
- package/dist/cli/{monitors-Z4ADOGTY.js → monitors-KQFI7TVJ.js} +91 -91
- package/dist/cli/{monitors-VTJIWWW2.mjs → monitors-LE2AYK3Z.mjs} +7 -7
- package/dist/cli/{org-2BTEKDF5.js → org-J6XFHDJE.js} +72 -72
- package/dist/cli/{org-7GU6H7JL.mjs → org-Z4DMJ72I.mjs} +6 -6
- package/dist/cli/{pages-I6PFQGEU.mjs → pages-5LYS6Y4I.mjs} +6 -6
- package/dist/cli/{pages-MG36E7RY.js → pages-FIXBZQJG.js} +17 -17
- package/dist/cli/{play-VN52S3RV.js → play-D7WPXADH.js} +604 -680
- package/dist/cli/{play-7KFSLJX2.mjs → play-GILXXIN7.mjs} +45 -121
- package/dist/cli/{providers-W5XLII66.js → providers-KN7YACT6.js} +9 -9
- package/dist/cli/{providers-D46JDEL2.mjs → providers-OQWL4Q4W.mjs} +6 -6
- package/dist/cli/{quickstart-4GTXBZHY.mjs → quickstart-2LRIORFM.mjs} +4 -4
- package/dist/cli/{quickstart-TIZAC63S.js → quickstart-M2OBP3W3.js} +6 -6
- package/dist/cli/{run-FOVEMYYX.js → run-6YZZO7VM.js} +36 -36
- package/dist/cli/{run-LE3D4LVU.mjs → run-GYRBKQZT.mjs} +22 -22
- package/dist/cli/search-OVKWA4AV.js +32 -0
- package/dist/cli/{search-6YL6WJMQ.mjs → search-VUPK6BNU.mjs} +7 -7
- package/dist/cli/{secrets-CSTTTMZH.js → secrets-RE3UMZB7.js} +15 -15
- package/dist/cli/{secrets-D66U6RTT.mjs → secrets-ULRGU7NM.mjs} +6 -6
- package/dist/cli/{sessions-XIO3OUER.mjs → sessions-2ZZVJ3P2.mjs} +5 -5
- package/dist/cli/{sessions-45M2NRAA.js → sessions-T4UMHNDW.js} +6 -6
- package/dist/cli/{settings-N42CVKSK.js → settings-BRV6AYFM.js} +78 -78
- package/dist/cli/{settings-R33X2D5T.mjs → settings-PDY4TJU6.mjs} +11 -11
- package/dist/cli/{setup-CBBC4FQP.mjs → setup-CXL6C5Z5.mjs} +9 -9
- package/dist/cli/{setup-HREDVNF2.js → setup-JONYJYBK.js} +44 -44
- package/dist/cli/{skills-4X6WS2PT.mjs → skills-TOMVQD5O.mjs} +7 -7
- package/dist/cli/skills-UK5AK35I.js +33 -0
- package/dist/cli/{tools-YR46YFR2.mjs → tools-B2LJK4MM.mjs} +16 -16
- package/dist/cli/tools-HH6E5G7J.js +55 -0
- package/dist/cli/{update-5CYAZX5X.mjs → update-CD6T2REC.mjs} +9 -9
- package/dist/cli/update-EGXT3EIJ.js +33 -0
- package/dist/cli/{workflow-M7AA722W.js → workflow-PZML43E2.js} +17 -17
- package/dist/cli/{workflow-NKQ3CWPK.mjs → workflow-ZAOBP6I7.mjs} +7 -7
- package/dist/{client-AjmfA5nR.d.mts → client-B1s1yJdT.d.mts} +1 -1
- package/dist/{client-DMyY-QL8.d.ts → client-DqUseRzd.d.ts} +1 -1
- package/dist/{client-core-C705vFyV.d.ts → client-core-Bd7tP9Uz.d.ts} +45 -6
- package/dist/{client-core-CpBbvLEX.d.mts → client-core-BijQEQ70.d.mts} +45 -6
- package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-B1m5tRzz.d.mts} +23 -17
- package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-B1m5tRzz.d.ts} +23 -17
- package/dist/{errors-CRO2qQ6k.d.ts → errors-3g71OMXy.d.ts} +1 -1
- package/dist/{errors-DIHVetNY.d.mts → errors-QiC6am-q.d.mts} +1 -1
- package/dist/{index-DVZ_X4Gb.d.mts → index-Biz5toO4.d.mts} +1 -1
- package/dist/{index-B8DVoeYt.d.ts → index-CIBiwzhK.d.ts} +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-2ZY57Q7W.js +0 -41
- package/dist/cli/describe-IB7SUIUT.js +0 -48
- package/dist/cli/git-A2QIIMW5.js +0 -25
- package/dist/cli/search-HN6SVDQU.js +0 -32
- package/dist/cli/skills-QZ6HZX2T.js +0 -33
- package/dist/cli/tools-KFIH7UWB.js +0 -55
- package/dist/cli/update-VZLEJLWJ.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 _chunkPZHRNSMUjs = require('./chunk-PZHRNSMU.js');
|
|
11
|
+
require('./chunk-SXY4DOVA.js');
|
|
12
|
+
require('./chunk-QVZNUQAP.js');
|
|
13
|
+
require('./chunk-AYW242XF.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkA5LPDB6Njs = require('./chunk-A5LPDB6N.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkV7I65ME7js = require('./chunk-V7I65ME7.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,15 +38,15 @@ var _chunkHSANVBVLjs = require('./chunk-HSANVBVL.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkSCHE5QRNjs = require('./chunk-SCHE5QRN.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkOKAZHDYNjs = require('./chunk-OKAZHDYN.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -59,7 +59,7 @@ var _chunkWFVEMDQLjs = require('./chunk-WFVEMDQL.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,17 +67,18 @@ var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
var _chunkKBBZXWXFjs = require('./chunk-KBBZXWXF.js');
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
78
79
|
require('./chunk-XNYIZMNQ.js');
|
|
79
80
|
require('./chunk-DIAWYWT5.js');
|
|
80
|
-
require('./chunk-
|
|
81
|
+
require('./chunk-S3BKOCVB.js');
|
|
81
82
|
require('./chunk-OG64RBAC.js');
|
|
82
83
|
require('./chunk-COGTRVWW.js');
|
|
83
84
|
|
|
@@ -142,56 +143,56 @@ var _os = require('os');
|
|
|
142
143
|
var COMMAND_GROUPS = [
|
|
143
144
|
{
|
|
144
145
|
names: ["auth"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
146
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-U5SNVC5F.js")))).registerAuthCommands
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
149
|
names: ["providers"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
150
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-KN7YACT6.js")))).registerProviderCommands
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
153
|
names: ["search"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
154
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-OVKWA4AV.js")))).registerSearchCommand
|
|
154
155
|
},
|
|
155
156
|
{
|
|
156
157
|
names: ["describe"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
158
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-7HYV44MO.js")))).registerDescribeCommand
|
|
158
159
|
},
|
|
159
160
|
{
|
|
160
161
|
names: ["run"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
162
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-6YZZO7VM.js")))).registerRunCommand
|
|
162
163
|
},
|
|
163
164
|
{
|
|
164
165
|
names: ["tools"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-HH6E5G7J.js")))).registerToolsCommands
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
169
|
names: ["executions"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-RJNMGJEE.js")))).registerExecutionsCommands
|
|
170
171
|
},
|
|
171
172
|
{
|
|
172
173
|
names: ["plays", "runs"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-D7WPXADH.js")))).registerPlayCommands
|
|
174
175
|
},
|
|
175
176
|
{
|
|
176
177
|
names: ["sessions"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-T4UMHNDW.js")))).registerSessionsCommands
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
181
|
names: ["workflows"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-PZML43E2.js")))).registerWorkflowCommands
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
names: ["pages"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-FIXBZQJG.js")))).registerPagesCommands
|
|
186
187
|
},
|
|
187
188
|
{
|
|
188
189
|
names: ["secrets"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-RE3UMZB7.js")))).registerSecretsCommands
|
|
190
191
|
},
|
|
191
192
|
{
|
|
192
193
|
names: ["settings", "notifications"],
|
|
193
194
|
load: async () => {
|
|
194
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
195
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-BRV6AYFM.js")));
|
|
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 Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-462SAHWX.js")))).registerBillingCommands
|
|
204
205
|
},
|
|
205
206
|
{
|
|
206
207
|
names: ["monitors"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-KQFI7TVJ.js")))).registerMonitorsCommands
|
|
208
209
|
},
|
|
209
210
|
{
|
|
210
211
|
names: ["org"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-J6XFHDJE.js")))).registerOrgCommands
|
|
212
213
|
},
|
|
213
214
|
{
|
|
214
215
|
names: ["git", "projects", "deployments"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-5LTKPXGN.js")))).registerGitCommands
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
219
|
names: ["csv"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-LAYTDYIF.js")))).registerCsvCommands
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
223
|
names: ["db"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-OOUOSURL.js")))).registerDbCommands
|
|
224
225
|
},
|
|
225
226
|
{
|
|
226
227
|
names: ["feedback"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-FXB6NV3Y.js")))).registerFeedbackCommands
|
|
228
229
|
},
|
|
229
230
|
{
|
|
230
231
|
names: ["enrich", "session", "backend"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-PAOGRKUK.js")))).registerDeprecatedCommands
|
|
232
233
|
},
|
|
233
234
|
{
|
|
234
235
|
names: ["update"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-EGXT3EIJ.js")))).registerUpdateCommand
|
|
236
237
|
},
|
|
237
238
|
{
|
|
238
239
|
names: ["skills", "skills-auto-sync"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-UK5AK35I.js")))).registerSkillsCommand
|
|
240
241
|
},
|
|
241
242
|
{
|
|
242
243
|
names: ["setup", "doctor"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-JONYJYBK.js")))).registerSetupCommands
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
names: ["quickstart"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-M2OBP3W3.js")))).registerQuickstartCommands
|
|
248
249
|
}
|
|
249
250
|
];
|
|
250
251
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -270,25 +271,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
270
271
|
function createDeferredPlayRunMaintenance(input) {
|
|
271
272
|
return async () => {
|
|
272
273
|
try {
|
|
273
|
-
const skillsVersion =
|
|
274
|
-
const compatibility = await
|
|
274
|
+
const skillsVersion = _chunkTW3TTKW5js.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
275
|
+
const compatibility = await _chunkV7I65ME7js.traceCliSpan.call(void 0,
|
|
275
276
|
"cli.sdk_compatibility_deferred",
|
|
276
277
|
{
|
|
277
278
|
baseUrl: input.baseUrl,
|
|
278
279
|
command: "plays run",
|
|
279
280
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
280
281
|
},
|
|
281
|
-
() =>
|
|
282
|
+
() => _chunkIWYWZXCAjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
282
283
|
command: "plays run",
|
|
283
284
|
skillsVersion,
|
|
284
285
|
persistCache: input.policy !== "off",
|
|
285
|
-
catalog:
|
|
286
|
+
catalog: _chunkPZHRNSMUjs.compatibilityCatalog.call(void 0, input.command)
|
|
286
287
|
})
|
|
287
288
|
);
|
|
288
289
|
if (compatibility.error || !compatibility.response) return;
|
|
289
290
|
const automaticUpdate = compatibility.response.auto_update;
|
|
290
291
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
291
|
-
await
|
|
292
|
+
await _chunkPZHRNSMUjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
292
293
|
compatibility.response,
|
|
293
294
|
input.baseUrl,
|
|
294
295
|
input.policy
|
|
@@ -298,7 +299,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
298
299
|
compatibility.response,
|
|
299
300
|
"skills"
|
|
300
301
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
301
|
-
await
|
|
302
|
+
await _chunkIWYWZXCAjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
302
303
|
update: skillsUpdate,
|
|
303
304
|
mode: "detached"
|
|
304
305
|
});
|
|
@@ -326,8 +327,8 @@ var MAX_SESSIONS = 20;
|
|
|
326
327
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
327
328
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
328
329
|
}
|
|
329
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
330
|
-
const explicit =
|
|
330
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkKBBZXWXFjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
331
|
+
const explicit = _chunkOKAZHDYNjs.helpDetailFromArgv.call(void 0, argv);
|
|
331
332
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
332
333
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
333
334
|
const path = helpSeenPath(homeDir);
|
|
@@ -424,7 +425,7 @@ function shouldReport(stdout, stderr) {
|
|
|
424
425
|
}
|
|
425
426
|
function toolName(action) {
|
|
426
427
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
427
|
-
return typeof toolId === "string" ?
|
|
428
|
+
return typeof toolId === "string" ? _chunkIWYWZXCAjs.redactFailureText.call(void 0, toolId) : null;
|
|
428
429
|
}
|
|
429
430
|
function chunkText(chunk) {
|
|
430
431
|
if (typeof chunk === "string") return chunk;
|
|
@@ -455,14 +456,14 @@ function watch(stream) {
|
|
|
455
456
|
}
|
|
456
457
|
async function postCommandOutput(body) {
|
|
457
458
|
try {
|
|
458
|
-
const baseUrl =
|
|
459
|
-
const apiKey =
|
|
459
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
460
|
+
const apiKey = _chunkTW3TTKW5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
460
461
|
if (!apiKey) return;
|
|
461
|
-
const agentSessionId =
|
|
462
|
+
const agentSessionId = _chunkKBBZXWXFjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
462
463
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
463
464
|
method: "POST",
|
|
464
465
|
headers: {
|
|
465
|
-
...
|
|
466
|
+
..._chunkIWYWZXCAjs.failureReportHeaders.call(void 0, apiKey),
|
|
466
467
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
467
468
|
},
|
|
468
469
|
body: JSON.stringify(body),
|
|
@@ -478,14 +479,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
478
479
|
const stdoutWatch = watch(streams.stdout);
|
|
479
480
|
const stderrWatch = watch(streams.stderr);
|
|
480
481
|
return async (finished) => {
|
|
481
|
-
if (
|
|
482
|
+
if (_chunkIWYWZXCAjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
482
483
|
const [stdout, stderr] = await Promise.all([
|
|
483
484
|
stdoutWatch.settled(),
|
|
484
485
|
stderrWatch.settled()
|
|
485
486
|
]);
|
|
486
487
|
if (!shouldReport(stdout, stderr)) return;
|
|
487
488
|
await postCommandOutput({
|
|
488
|
-
command:
|
|
489
|
+
command: _chunkIWYWZXCAjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
489
490
|
tool: toolName(finished.action),
|
|
490
491
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
491
492
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -516,7 +517,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
516
517
|
function printUsageErrorJson(code, message, commandPath) {
|
|
517
518
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
518
519
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
519
|
-
|
|
520
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, {
|
|
520
521
|
ok: false,
|
|
521
522
|
error: {
|
|
522
523
|
code,
|
|
@@ -578,7 +579,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
578
579
|
);
|
|
579
580
|
}
|
|
580
581
|
async function runPlayRunnerHealthCheck() {
|
|
581
|
-
|
|
582
|
+
_chunkTW3TTKW5js.resolveConfig.call(void 0, );
|
|
582
583
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
583
584
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
584
585
|
try {
|
|
@@ -608,7 +609,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
608
609
|
});
|
|
609
610
|
let exitCode = 1;
|
|
610
611
|
try {
|
|
611
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
612
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-D7WPXADH.js")));
|
|
612
613
|
exitCode = await handlePlayRun([
|
|
613
614
|
file,
|
|
614
615
|
"--input",
|
|
@@ -648,7 +649,7 @@ function preflightErrorMessage(error) {
|
|
|
648
649
|
return error instanceof Error ? error.message : String(error);
|
|
649
650
|
}
|
|
650
651
|
async function runPreflightCheck() {
|
|
651
|
-
const baseUrl =
|
|
652
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
653
|
const healthController = new AbortController();
|
|
653
654
|
const healthTimeout = setTimeout(
|
|
654
655
|
() => healthController.abort(),
|
|
@@ -662,10 +663,17 @@ async function runPreflightCheck() {
|
|
|
662
663
|
status: response.ok ? _nullishCoalesce(pickString(payload, "status"), () => ( "ok")) : "unreachable",
|
|
663
664
|
version: pickString(payload, "version")
|
|
664
665
|
};
|
|
665
|
-
}).catch(() => ({
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
666
|
+
}).catch((error) => ({
|
|
667
|
+
status: "unreachable",
|
|
668
|
+
version: null,
|
|
669
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkKBBZXWXFjs.connectionFailureMessage.call(void 0,
|
|
670
|
+
baseUrl,
|
|
671
|
+
error instanceof Error ? error : new Error(String(error))
|
|
672
|
+
)
|
|
673
|
+
})).finally(() => clearTimeout(healthTimeout));
|
|
674
|
+
const apiKey = _chunkTW3TTKW5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
675
|
+
const http = apiKey ? new (0, _chunkTW3TTKW5js.HttpClient)(
|
|
676
|
+
_chunkTW3TTKW5js.resolveConfig.call(void 0, {
|
|
669
677
|
baseUrl,
|
|
670
678
|
apiKey,
|
|
671
679
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -710,11 +718,12 @@ async function runPreflightCheck() {
|
|
|
710
718
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
711
719
|
return {
|
|
712
720
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
713
|
-
cli_version:
|
|
721
|
+
cli_version: _chunkKBBZXWXFjs.SDK_VERSION,
|
|
714
722
|
host: baseUrl,
|
|
715
723
|
health: {
|
|
716
724
|
status: healthResult.status,
|
|
717
|
-
version: _nullishCoalesce(healthResult.version, () => ( null))
|
|
725
|
+
version: _nullishCoalesce(healthResult.version, () => ( null)),
|
|
726
|
+
..."error" in healthResult ? { error: healthResult.error } : {}
|
|
718
727
|
},
|
|
719
728
|
auth: {
|
|
720
729
|
status: authStatus,
|
|
@@ -736,12 +745,14 @@ async function runPreflightCheck() {
|
|
|
736
745
|
{
|
|
737
746
|
title: "preflight",
|
|
738
747
|
lines: [
|
|
739
|
-
`cli: ${
|
|
748
|
+
`cli: ${_chunkKBBZXWXFjs.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
|
]
|
|
@@ -761,12 +772,12 @@ function printPreflightHuman(data) {
|
|
|
761
772
|
}
|
|
762
773
|
async function newerCliCommandHint(baseUrl, command) {
|
|
763
774
|
if (!command.trim()) return null;
|
|
764
|
-
const { response, error } = await
|
|
775
|
+
const { response, error } = await _chunkIWYWZXCAjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
765
776
|
if (error || !response) return null;
|
|
766
777
|
const introduced = response.command_introduced_in;
|
|
767
778
|
if (introduced) {
|
|
768
779
|
return [
|
|
769
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
780
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkKBBZXWXFjs.SDK_VERSION}.`,
|
|
770
781
|
` ${introduced.reason}`,
|
|
771
782
|
` Update with: ${response.update_command}`,
|
|
772
783
|
" 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 +786,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
775
786
|
if (!response.update_required) return null;
|
|
776
787
|
return [
|
|
777
788
|
response.message,
|
|
778
|
-
` Installed: ${
|
|
789
|
+
` Installed: ${_chunkKBBZXWXFjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
779
790
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
780
791
|
].join("\n");
|
|
781
792
|
}
|
|
782
793
|
async function runMain(ensureTransport, onAction) {
|
|
783
794
|
const mainStartedAt = Date.now();
|
|
784
|
-
|
|
795
|
+
_chunk4RV7U3RPjs.installJsonStderrGuard.call(void 0, );
|
|
785
796
|
let rootHelpStatus = "";
|
|
786
797
|
const deferredMaintenance = { inlinePlay: null };
|
|
787
|
-
|
|
798
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
788
799
|
phase: "cli.main_start",
|
|
789
800
|
argv: process.argv.slice(2)
|
|
790
801
|
});
|
|
791
802
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
792
|
-
const progress = printStartupPhase ?
|
|
803
|
+
const progress = printStartupPhase ? _chunkSCHE5QRNjs.createCliProgress.call(void 0, true) : null;
|
|
793
804
|
if (printStartupPhase) {
|
|
794
805
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
795
806
|
}
|
|
796
807
|
const program = new (0, _commander.Command)();
|
|
797
808
|
program.name("deepline").description(
|
|
798
809
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
799
|
-
).version(
|
|
810
|
+
).version(_chunkKBBZXWXFjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
800
811
|
"--maintenance <policy>",
|
|
801
812
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
802
|
-
|
|
813
|
+
_chunkV7I65ME7js.parseCliMaintenancePolicy,
|
|
803
814
|
"configured"
|
|
804
815
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
805
816
|
"beforeAll",
|
|
@@ -848,33 +859,33 @@ Exit codes:
|
|
|
848
859
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
849
860
|
`
|
|
850
861
|
).addHelpText("afterAll", ({ command }) => {
|
|
851
|
-
const key =
|
|
862
|
+
const key = _chunkOKAZHDYNjs.commandDocKey.call(void 0, command);
|
|
852
863
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
853
|
-
return
|
|
864
|
+
return _chunkOKAZHDYNjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
854
865
|
});
|
|
855
866
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
856
867
|
onAction({
|
|
857
868
|
path: compatibilityCommandPath(actionCommand),
|
|
858
869
|
args: actionCommand.processedArgs
|
|
859
870
|
});
|
|
860
|
-
const maintenance =
|
|
871
|
+
const maintenance = _chunkV7I65ME7js.resolveCliMaintenancePolicy.call(void 0,
|
|
861
872
|
actionCommand.optsWithGlobals()
|
|
862
873
|
);
|
|
863
874
|
if (actionCommand.name() !== "version") {
|
|
864
875
|
await ensureTransport();
|
|
865
876
|
}
|
|
866
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
877
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkIWYWZXCAjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
867
878
|
return;
|
|
868
879
|
}
|
|
869
880
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
870
881
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
871
882
|
if (isToolExecuteCommand) {
|
|
872
|
-
|
|
883
|
+
_chunkPZHRNSMUjs.beginToolExecuteCommand.call(void 0, );
|
|
873
884
|
}
|
|
874
885
|
if (isToolExecuteCommand) {
|
|
875
|
-
const baseUrl =
|
|
876
|
-
if (maintenance !== "off")
|
|
877
|
-
|
|
886
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
887
|
+
if (maintenance !== "off") _chunkIWYWZXCAjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
888
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
878
889
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
879
890
|
baseUrl,
|
|
880
891
|
command: compatibilityCommand
|
|
@@ -882,10 +893,10 @@ Exit codes:
|
|
|
882
893
|
return;
|
|
883
894
|
}
|
|
884
895
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
885
|
-
if (!playDryRun &&
|
|
896
|
+
if (!playDryRun && _chunkA5LPDB6Njs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
886
897
|
if (maintenance !== "off") {
|
|
887
|
-
const baseUrl =
|
|
888
|
-
|
|
898
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
899
|
+
_chunkIWYWZXCAjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
889
900
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
890
901
|
baseUrl,
|
|
891
902
|
command: actionCommand,
|
|
@@ -894,27 +905,27 @@ Exit codes:
|
|
|
894
905
|
}
|
|
895
906
|
return;
|
|
896
907
|
}
|
|
897
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
908
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkPZHRNSMUjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
898
909
|
if (printStartupPhase) {
|
|
899
910
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
900
911
|
}
|
|
901
912
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
902
|
-
const baseUrl =
|
|
903
|
-
if (maintenance !== "off")
|
|
913
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
914
|
+
if (maintenance !== "off") _chunkIWYWZXCAjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
904
915
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
905
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
906
|
-
const trusted = isToolExecuteCommand ? null :
|
|
916
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkTW3TTKW5js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
917
|
+
const trusted = isToolExecuteCommand ? null : _chunkIWYWZXCAjs.readTrustedCleanCompatibility.call(void 0,
|
|
907
918
|
baseUrl,
|
|
908
919
|
compatibilityCommand,
|
|
909
920
|
skillsVersion
|
|
910
921
|
);
|
|
911
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
922
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkIWYWZXCAjs.readFreshCleanCompatibility.call(void 0,
|
|
912
923
|
baseUrl,
|
|
913
924
|
compatibilityCommand,
|
|
914
925
|
skillsVersion
|
|
915
926
|
) !== null;
|
|
916
927
|
if (trusted) {
|
|
917
|
-
|
|
928
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
918
929
|
phase: "cli.sdk_compatibility",
|
|
919
930
|
ms: 0,
|
|
920
931
|
ok: true,
|
|
@@ -924,7 +935,7 @@ Exit codes:
|
|
|
924
935
|
source: "trusted_cache"
|
|
925
936
|
});
|
|
926
937
|
}
|
|
927
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
938
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkV7I65ME7js.traceCliSpan.call(void 0,
|
|
928
939
|
"cli.sdk_compatibility",
|
|
929
940
|
{
|
|
930
941
|
baseUrl,
|
|
@@ -932,12 +943,12 @@ Exit codes:
|
|
|
932
943
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
933
944
|
fastDeadline
|
|
934
945
|
},
|
|
935
|
-
() =>
|
|
946
|
+
() => _chunkIWYWZXCAjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
936
947
|
command: compatibilityCommand,
|
|
937
948
|
skillsVersion,
|
|
938
949
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
939
|
-
catalog:
|
|
940
|
-
...fastDeadline ? { timeoutMs:
|
|
950
|
+
catalog: _chunkPZHRNSMUjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
951
|
+
...fastDeadline ? { timeoutMs: _chunkIWYWZXCAjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
941
952
|
})
|
|
942
953
|
);
|
|
943
954
|
if (compatibility.error) {
|
|
@@ -948,7 +959,7 @@ Exit codes:
|
|
|
948
959
|
response: null
|
|
949
960
|
};
|
|
950
961
|
}
|
|
951
|
-
const relaunched = await
|
|
962
|
+
const relaunched = await _chunkPZHRNSMUjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
952
963
|
compatibility.response,
|
|
953
964
|
baseUrl,
|
|
954
965
|
maintenance
|
|
@@ -962,14 +973,14 @@ Exit codes:
|
|
|
962
973
|
};
|
|
963
974
|
}
|
|
964
975
|
const policy = compatibility.response;
|
|
965
|
-
const jsonOutput =
|
|
966
|
-
|
|
976
|
+
const jsonOutput = _chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, );
|
|
977
|
+
_chunkIWYWZXCAjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
967
978
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
968
|
-
|
|
979
|
+
_chunkPZHRNSMUjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkIWYWZXCAjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
969
980
|
});
|
|
970
981
|
const advisory = compatibility.response;
|
|
971
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
972
|
-
|
|
982
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkIWYWZXCAjs.isCiEnvironment.call(void 0, ) && !_chunkPZHRNSMUjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
983
|
+
_chunk4RV7U3RPjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
973
984
|
}
|
|
974
985
|
return {
|
|
975
986
|
shouldContinue: true,
|
|
@@ -986,10 +997,10 @@ Exit codes:
|
|
|
986
997
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
987
998
|
await runStartupStage(
|
|
988
999
|
"agent skills sync",
|
|
989
|
-
() =>
|
|
1000
|
+
() => _chunkV7I65ME7js.traceCliSpan.call(void 0,
|
|
990
1001
|
"cli.sdk_skills_sync",
|
|
991
1002
|
{ baseUrl: startup.baseUrl },
|
|
992
|
-
() =>
|
|
1003
|
+
() => _chunkIWYWZXCAjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
993
1004
|
update: skillsUpdate,
|
|
994
1005
|
mode: "detached"
|
|
995
1006
|
})
|
|
@@ -998,19 +1009,19 @@ Exit codes:
|
|
|
998
1009
|
}
|
|
999
1010
|
});
|
|
1000
1011
|
const requestedCommand = process.argv[2];
|
|
1001
|
-
const commandRegistrationStartedAt =
|
|
1012
|
+
const commandRegistrationStartedAt = _chunkV7I65ME7js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1002
1013
|
await registerDeeplineCommandGroups(
|
|
1003
1014
|
program,
|
|
1004
1015
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
1005
1016
|
);
|
|
1006
1017
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1007
|
-
|
|
1018
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
1008
1019
|
phase: "cli.command_registration",
|
|
1009
1020
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1010
1021
|
});
|
|
1011
1022
|
}
|
|
1012
1023
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1013
|
-
if (
|
|
1024
|
+
if (_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1014
1025
|
preflight.addHelpText(
|
|
1015
1026
|
"after",
|
|
1016
1027
|
`
|
|
@@ -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
|
|
@@ -1025,11 +1037,14 @@ Examples:
|
|
|
1025
1037
|
`
|
|
1026
1038
|
).action(async (options) => {
|
|
1027
1039
|
const data = await runPreflightCheck();
|
|
1028
|
-
if (
|
|
1029
|
-
|
|
1040
|
+
if (_chunk4RV7U3RPjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1041
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, data);
|
|
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",
|
|
@@ -1048,7 +1063,7 @@ Examples:
|
|
|
1048
1063
|
).action(async (options) => {
|
|
1049
1064
|
if (options.playRunner) {
|
|
1050
1065
|
const data = await runPlayRunnerHealthCheck();
|
|
1051
|
-
|
|
1066
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0, data, {
|
|
1052
1067
|
json: options.json,
|
|
1053
1068
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1054
1069
|
`
|
|
@@ -1056,15 +1071,15 @@ Examples:
|
|
|
1056
1071
|
return;
|
|
1057
1072
|
}
|
|
1058
1073
|
try {
|
|
1059
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1060
|
-
const baseUrl =
|
|
1074
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-U5SNVC5F.js")));
|
|
1075
|
+
const baseUrl = _chunkTW3TTKW5js.resolveBaseUrlOnly.call(void 0, );
|
|
1061
1076
|
const [{ status, data }, banner] = await Promise.all([
|
|
1062
1077
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1063
1078
|
readStatusBanner(baseUrl)
|
|
1064
1079
|
]);
|
|
1065
1080
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1066
1081
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1067
|
-
|
|
1082
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
1068
1083
|
{ ...data, status_banner: banner },
|
|
1069
1084
|
{
|
|
1070
1085
|
json: options.json,
|
|
@@ -1092,16 +1107,16 @@ Examples:
|
|
|
1092
1107
|
`
|
|
1093
1108
|
).action((options) => {
|
|
1094
1109
|
if (options.json) {
|
|
1095
|
-
|
|
1110
|
+
_chunk4RV7U3RPjs.printCompactJson.call(void 0, { version: _chunkKBBZXWXFjs.SDK_VERSION });
|
|
1096
1111
|
return;
|
|
1097
1112
|
}
|
|
1098
|
-
process.stdout.write(`deepline ${
|
|
1113
|
+
process.stdout.write(`deepline ${_chunkKBBZXWXFjs.SDK_VERSION}
|
|
1099
1114
|
`);
|
|
1100
1115
|
});
|
|
1101
1116
|
if (process.argv.slice(2).length === 0) {
|
|
1102
1117
|
program.outputHelp({ error: true });
|
|
1103
1118
|
console.error("\nerror: missing command (see usage above)");
|
|
1104
|
-
|
|
1119
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
1105
1120
|
phase: "cli.main_total",
|
|
1106
1121
|
ms: Date.now() - mainStartedAt,
|
|
1107
1122
|
ok: false,
|
|
@@ -1113,16 +1128,16 @@ Examples:
|
|
|
1113
1128
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1114
1129
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1115
1130
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1116
|
-
if (!
|
|
1117
|
-
const baseUrl =
|
|
1131
|
+
if (!_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1132
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, );
|
|
1118
1133
|
await ensureTransport();
|
|
1119
1134
|
const versionHint = await newerCliCommandHint(
|
|
1120
1135
|
baseUrl,
|
|
1121
1136
|
requestedTopLevelCommand
|
|
1122
1137
|
);
|
|
1123
|
-
if (
|
|
1138
|
+
if (_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) {
|
|
1124
1139
|
if (versionHint) {
|
|
1125
|
-
|
|
1140
|
+
_chunk4RV7U3RPjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1126
1141
|
}
|
|
1127
1142
|
printUsageErrorJson(
|
|
1128
1143
|
"commander.unknownCommand",
|
|
@@ -1144,32 +1159,32 @@ 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 Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1148
|
-
rootHelpStatus = `Version: ${
|
|
1162
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-U5SNVC5F.js")));
|
|
1163
|
+
rootHelpStatus = `Version: ${_chunkKBBZXWXFjs.SDK_VERSION}
|
|
1149
1164
|
${await authStatusLine()}
|
|
1150
1165
|
`;
|
|
1151
1166
|
}
|
|
1152
1167
|
await program.parseAsync(process.argv);
|
|
1153
|
-
|
|
1168
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
1154
1169
|
phase: "cli.main_total",
|
|
1155
1170
|
ms: Date.now() - mainStartedAt,
|
|
1156
1171
|
ok: true
|
|
1157
1172
|
});
|
|
1158
|
-
await
|
|
1173
|
+
await _chunkIWYWZXCAjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1159
1174
|
argv: process.argv.slice(2),
|
|
1160
1175
|
startedAtMs: mainStartedAt,
|
|
1161
1176
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1162
1177
|
});
|
|
1163
1178
|
} catch (error) {
|
|
1164
1179
|
const commanderError = asCommanderError(error);
|
|
1165
|
-
|
|
1180
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
1166
1181
|
phase: "cli.main_total",
|
|
1167
1182
|
ms: Date.now() - mainStartedAt,
|
|
1168
1183
|
ok: false,
|
|
1169
1184
|
error: error instanceof Error ? error.message : String(error)
|
|
1170
1185
|
});
|
|
1171
1186
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1172
|
-
const wantsJson =
|
|
1187
|
+
const wantsJson = _chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, );
|
|
1173
1188
|
if (commanderError) {
|
|
1174
1189
|
const grammarError = [
|
|
1175
1190
|
"commander.unknownCommand",
|
|
@@ -1180,12 +1195,12 @@ ${await authStatusLine()}
|
|
|
1180
1195
|
if (grammarError) {
|
|
1181
1196
|
await ensureTransport();
|
|
1182
1197
|
const versionHint = await newerCliCommandHint(
|
|
1183
|
-
|
|
1198
|
+
_chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ),
|
|
1184
1199
|
commandPath
|
|
1185
1200
|
);
|
|
1186
1201
|
if (wantsJson) {
|
|
1187
1202
|
if (versionHint) {
|
|
1188
|
-
|
|
1203
|
+
_chunk4RV7U3RPjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1189
1204
|
}
|
|
1190
1205
|
} else {
|
|
1191
1206
|
if (versionHint) console.error(versionHint);
|
|
@@ -1205,49 +1220,53 @@ ${await authStatusLine()}
|
|
|
1205
1220
|
return;
|
|
1206
1221
|
} else if (wantsJson) {
|
|
1207
1222
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1208
|
-
|
|
1223
|
+
_chunk4RV7U3RPjs.addJsonNotice.call(void 0, {
|
|
1209
1224
|
code: "auth_required",
|
|
1210
1225
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1211
1226
|
});
|
|
1212
1227
|
}
|
|
1213
|
-
const providerConcurrency =
|
|
1228
|
+
const providerConcurrency = _chunk4RV7U3RPjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1214
1229
|
if (providerConcurrency) {
|
|
1215
|
-
|
|
1230
|
+
_chunk4RV7U3RPjs.addJsonNotice.call(void 0, {
|
|
1216
1231
|
code: "provider_concurrency",
|
|
1217
1232
|
message: providerConcurrency
|
|
1218
1233
|
});
|
|
1219
1234
|
}
|
|
1220
|
-
|
|
1221
|
-
|
|
1235
|
+
const payload = _chunk4RV7U3RPjs.errorToJsonPayload.call(void 0, error);
|
|
1236
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, {
|
|
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: _nullishCoalesce(payload.exitCode, () => ( _chunkIWYWZXCAjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1222
1241
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1223
1242
|
});
|
|
1224
1243
|
} else if (error instanceof Error) {
|
|
1225
1244
|
console.error(`Error: ${error.message}`);
|
|
1226
|
-
const toolDiagnostic =
|
|
1245
|
+
const toolDiagnostic = _chunk4RV7U3RPjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1227
1246
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1228
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1229
1248
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1230
1249
|
}
|
|
1231
|
-
const providerConcurrency =
|
|
1250
|
+
const providerConcurrency = _chunk4RV7U3RPjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1232
1251
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1233
1252
|
} else {
|
|
1234
1253
|
console.error(`Error: ${String(error)}`);
|
|
1235
1254
|
}
|
|
1236
1255
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1237
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1256
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkIWYWZXCAjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1238
1257
|
process.exitCode = failureExitCode;
|
|
1239
|
-
await
|
|
1258
|
+
await _chunkIWYWZXCAjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1240
1259
|
argv: process.argv.slice(2),
|
|
1241
1260
|
startedAtMs: mainStartedAt,
|
|
1242
1261
|
exitCode: failureExitCode,
|
|
1243
1262
|
error
|
|
1244
1263
|
});
|
|
1245
1264
|
} finally {
|
|
1246
|
-
|
|
1265
|
+
_chunkPZHRNSMUjs.finishToolExecuteCommand.call(void 0, );
|
|
1247
1266
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1248
1267
|
deferredMaintenance.inlinePlay = null;
|
|
1249
1268
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1250
|
-
await
|
|
1269
|
+
await _chunkPZHRNSMUjs.runDeferredAutoUpdate.call(void 0, );
|
|
1251
1270
|
}
|
|
1252
1271
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1253
1272
|
}
|
|
@@ -1255,7 +1274,7 @@ async function main() {
|
|
|
1255
1274
|
let disposeTransport;
|
|
1256
1275
|
const ensureTransport = async () => {
|
|
1257
1276
|
if (disposeTransport) return;
|
|
1258
|
-
const transportStartedAt =
|
|
1277
|
+
const transportStartedAt = _chunkV7I65ME7js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1259
1278
|
const hasProxy = [
|
|
1260
1279
|
"HTTP_PROXY",
|
|
1261
1280
|
"http_proxy",
|
|
@@ -1267,7 +1286,7 @@ async function main() {
|
|
|
1267
1286
|
disposeTransport = configureCliTransport();
|
|
1268
1287
|
}
|
|
1269
1288
|
if (transportStartedAt !== void 0) {
|
|
1270
|
-
|
|
1289
|
+
_chunkV7I65ME7js.recordCliTrace.call(void 0, {
|
|
1271
1290
|
phase: "cli.transport_setup",
|
|
1272
1291
|
ms: performance.now() - transportStartedAt
|
|
1273
1292
|
});
|
|
@@ -1284,9 +1303,9 @@ async function main() {
|
|
|
1284
1303
|
action = dispatched;
|
|
1285
1304
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1286
1305
|
});
|
|
1287
|
-
const silentFailure =
|
|
1306
|
+
const silentFailure = _chunk4RV7U3RPjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1288
1307
|
if (silentFailure) {
|
|
1289
|
-
|
|
1308
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, {
|
|
1290
1309
|
ok: false,
|
|
1291
1310
|
exitCode: Number(process.exitCode),
|
|
1292
1311
|
error: { code: "CLI_ERROR", message: silentFailure }
|