deepline 0.3.503 → 0.3.505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-AHE2EDQA.mjs} +5 -5
- package/dist/cli/auth-SEPKNRHV.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-7CPWTGGI.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-JOIZPHON.js} +92 -85
- package/dist/cli/{chunk-33JUK73X.js → chunk-3YEOOXD4.js} +96 -37
- package/dist/cli/{chunk-FVDTERO2.js → chunk-45XYW477.js} +21 -21
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-4OFSAZN6.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-52FPW2RD.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-5XT4DZQL.mjs} +2 -2
- package/dist/cli/{chunk-26RSSTCF.js → chunk-6FEN6VWZ.js} +26 -26
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-6U3AGJWI.mjs} +1 -1
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-7AD565DO.mjs} +1 -1
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-7DDACLMX.js} +16 -16
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-7DDKLFOY.mjs} +3 -3
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-7QLK2GHL.js} +5 -5
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-ACI6CUDX.mjs} +11 -401
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-BWAYMJ23.js} +7 -7
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-CA3SYXCS.js} +2 -2
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-CSLLQWAB.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-EMUFF6EU.js} +7 -7
- package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
- package/dist/cli/{chunk-2626LTU3.js → chunk-GAUNJCXQ.js} +96 -96
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-GXMNOUHP.js} +6 -6
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-HASFFOSU.js} +16 -16
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-IDAE5VDH.js} +5 -5
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-IZYOYXG7.mjs} +4 -4
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-JA7YBRP4.mjs} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-JSTKLYYD.js} +2 -2
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-JVKEZT7L.mjs} +48 -8
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-K26YOPDO.js} +50 -10
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-LC4FG34E.js} +53 -53
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-MAFZ64RN.mjs} +2 -2
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-MHZAG2ZQ.js} +80 -470
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-NARJWXBR.mjs} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-OA6U5NVB.mjs} +5 -5
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-OMEDQ77C.mjs} +93 -34
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-OORPAQVC.js} +8 -8
- package/dist/cli/{chunk-WS274KID.mjs → chunk-PDLOPF5L.mjs} +1 -1
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-PZN24YQQ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
- package/dist/cli/chunk-QYGYVCRI.js +405 -0
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-RT3HJBIH.mjs} +12 -12
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-SHKRL7CW.mjs} +1 -1
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-SPN7U3MV.js} +4 -4
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-UZ24SF7N.mjs} +5 -5
- package/dist/cli/{chunk-AARF4SOW.js → chunk-VXKWF3AD.js} +9 -9
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-W6I4N4JN.mjs} +6 -6
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-WPCF7C6B.js} +3 -3
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-WTQLUULB.js} +6 -6
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-WTUC5VKB.mjs} +2 -2
- package/dist/cli/{chunk-IIP46RVC.js → chunk-XHPB6RGY.js} +1 -1
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-Y52XY56V.js} +41 -41
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-YBIVVAL7.mjs} +2 -2
- package/dist/cli/{chunk-HS63YBT5.js → chunk-ZLN2B5YA.js} +3 -3
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-DZHVIW3G.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-WTPI6ZON.mjs} +4 -4
- package/dist/cli/{db-J3IJS4OG.js → db-D7LPPNCC.js} +27 -27
- package/dist/cli/{db-PX7EQEIG.mjs → db-NR4PJ6AF.mjs} +6 -6
- package/dist/cli/describe-HVQBTKFM.js +50 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-NCKAJPUG.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FFKK24RY.mjs → executions-RQVJ4LAB.mjs} +6 -6
- package/dist/cli/{executions-RO3TJUXL.js → executions-UQG6LWEN.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-RD4Y3YQR.mjs} +4 -4
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-TCHA67IA.js} +8 -8
- package/dist/cli/git-TUB2ZUEH.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-Z7434B7Y.mjs} +5 -5
- package/dist/cli/index.js +145 -141
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-23WRA7DH.js} +8 -8
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
- package/dist/cli/{monitors-42PIGLBF.js → monitors-KOWN7M3V.js} +95 -95
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
- package/dist/cli/{org-GQMCA3MN.js → org-2T5K2VP5.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-UBNRO5XO.mjs} +6 -6
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-GHPJBVV3.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-SRXTU7XO.js} +18 -18
- package/dist/cli/{play-FST6ZAHW.js → play-2HMZ57EZ.js} +324 -517
- package/dist/cli/{play-5V54VTUR.mjs → play-HRQKGTXA.mjs} +24 -217
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-JWJRFRR5.mjs} +6 -6
- package/dist/cli/{providers-HBUUPN7J.js → providers-P5O676MZ.js} +9 -9
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-S7NZUQRO.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-YCY72TAO.js} +6 -6
- package/dist/cli/{run-FGOKCG4J.js → run-MHLLGF4G.js} +41 -40
- package/dist/cli/{run-JHI5MTHD.mjs → run-QWMRIUIU.mjs} +23 -22
- package/dist/cli/{search-EWIZBIY2.mjs → search-4BFTQUEP.mjs} +8 -7
- package/dist/cli/search-QPUHOEIL.js +33 -0
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-62LBVZHN.js} +6 -6
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-LIYHDTBP.mjs} +4 -4
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-GW27V77E.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-KKKHVSOO.js} +15 -15
- package/dist/cli/{sessions-BSGE5EET.js → sessions-R3OEINAR.js} +6 -6
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-R75LBGIL.mjs} +5 -5
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-I3AQZSYG.mjs} +12 -11
- package/dist/cli/{settings-47LARBRU.js → settings-MQIHAEZN.js} +79 -78
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-2YA5MYMS.mjs} +10 -9
- package/dist/cli/{setup-BNFZFXO6.js → setup-X3QRJERP.js} +50 -49
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-7252FOOI.mjs} +8 -7
- package/dist/cli/skills-BPZWMZSL.js +37 -0
- package/dist/cli/tools-F7RVQ3IK.js +57 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-SKQTSVGE.mjs} +17 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-GNBBSKTB.mjs} +10 -9
- package/dist/cli/update-TLSY6LC2.js +35 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-OJSAL5FO.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-QB7YYWPP.js} +17 -17
- package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
- package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +109 -104
- package/dist/plays/bundle-play-file.mjs +4 -4
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGXMNOUHPjs = require('./chunk-GXMNOUHP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,17 +10,17 @@ var _chunkA2C6ONWAjs = require('./chunk-A2C6ONWA.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk45XYW477js = require('./chunk-45XYW477.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
20
|
+
var _chunkCA3SYXCSjs = require('./chunk-CA3SYXCS.js');
|
|
21
|
+
require('./chunk-HASFFOSU.js');
|
|
22
|
+
require('./chunk-JSTKLYYD.js');
|
|
23
|
+
require('./chunk-Y52XY56V.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -32,22 +32,25 @@ require('./chunk-RVOBFO7C.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
var _chunkMHZAG2ZQjs = require('./chunk-MHZAG2ZQ.js');
|
|
35
36
|
|
|
36
37
|
|
|
38
|
+
var _chunkWPCF7C6Bjs = require('./chunk-WPCF7C6B.js');
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
|
|
41
|
-
var _chunkB3X4YWQ6js = require('./chunk-B3X4YWQ6.js');
|
|
42
43
|
|
|
43
44
|
|
|
44
|
-
var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
|
|
45
45
|
|
|
46
|
+
var _chunkQYGYVCRIjs = require('./chunk-QYGYVCRI.js');
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
|
|
49
|
-
var _chunk4IIYSBEPjs = require('./chunk-4IIYSBEP.js');
|
|
50
50
|
|
|
51
|
+
var _chunkK26YOPDOjs = require('./chunk-K26YOPDO.js');
|
|
52
|
+
require('./chunk-R7J7CJPZ.js');
|
|
53
|
+
require('./chunk-YGCKMI5P.js');
|
|
51
54
|
|
|
52
55
|
|
|
53
56
|
|
|
@@ -59,26 +62,27 @@ var _chunk4IIYSBEPjs = require('./chunk-4IIYSBEP.js');
|
|
|
59
62
|
|
|
60
63
|
|
|
61
64
|
|
|
62
|
-
var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
|
|
63
65
|
|
|
66
|
+
var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
|
|
70
|
-
var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
|
|
71
73
|
|
|
74
|
+
var _chunkZLN2B5YAjs = require('./chunk-ZLN2B5YA.js');
|
|
72
75
|
|
|
73
76
|
|
|
74
77
|
|
|
75
|
-
|
|
78
|
+
|
|
79
|
+
var _chunkSPN7U3MVjs = require('./chunk-SPN7U3MV.js');
|
|
76
80
|
|
|
77
81
|
|
|
78
82
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
79
83
|
require('./chunk-XNYIZMNQ.js');
|
|
80
84
|
require('./chunk-DIAWYWT5.js');
|
|
81
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-XHPB6RGY.js');
|
|
82
86
|
require('./chunk-OG64RBAC.js');
|
|
83
87
|
require('./chunk-RLX5ZFNX.js');
|
|
84
88
|
require('./chunk-COGTRVWW.js');
|
|
@@ -159,56 +163,56 @@ var _os = require('os');
|
|
|
159
163
|
var COMMAND_GROUPS = [
|
|
160
164
|
{
|
|
161
165
|
names: ["auth"],
|
|
162
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-SEPKNRHV.js")))).registerAuthCommands
|
|
163
167
|
},
|
|
164
168
|
{
|
|
165
169
|
names: ["providers"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-P5O676MZ.js")))).registerProviderCommands
|
|
167
171
|
},
|
|
168
172
|
{
|
|
169
173
|
names: ["search"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-QPUHOEIL.js")))).registerSearchCommand
|
|
171
175
|
},
|
|
172
176
|
{
|
|
173
177
|
names: ["describe"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-HVQBTKFM.js")))).registerDescribeCommand
|
|
175
179
|
},
|
|
176
180
|
{
|
|
177
181
|
names: ["run"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-MHLLGF4G.js")))).registerRunCommand
|
|
179
183
|
},
|
|
180
184
|
{
|
|
181
185
|
names: ["tools"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-F7RVQ3IK.js")))).registerToolsCommands
|
|
183
187
|
},
|
|
184
188
|
{
|
|
185
189
|
names: ["executions"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-UQG6LWEN.js")))).registerExecutionsCommands
|
|
187
191
|
},
|
|
188
192
|
{
|
|
189
193
|
names: ["plays", "runs"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2HMZ57EZ.js")))).registerPlayCommands
|
|
191
195
|
},
|
|
192
196
|
{
|
|
193
197
|
names: ["sessions"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-R3OEINAR.js")))).registerSessionsCommands
|
|
195
199
|
},
|
|
196
200
|
{
|
|
197
201
|
names: ["workflows"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-QB7YYWPP.js")))).registerWorkflowCommands
|
|
199
203
|
},
|
|
200
204
|
{
|
|
201
205
|
names: ["pages"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-SRXTU7XO.js")))).registerPagesCommands
|
|
203
207
|
},
|
|
204
208
|
{
|
|
205
209
|
names: ["secrets"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
210
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-KKKHVSOO.js")))).registerSecretsCommands
|
|
207
211
|
},
|
|
208
212
|
{
|
|
209
213
|
names: ["settings", "notifications"],
|
|
210
214
|
load: async () => {
|
|
211
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
215
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-MQIHAEZN.js")));
|
|
212
216
|
return (p) => {
|
|
213
217
|
commands.registerSettingsCommands(p);
|
|
214
218
|
commands.registerNotificationCommands(p);
|
|
@@ -217,51 +221,51 @@ var COMMAND_GROUPS = [
|
|
|
217
221
|
},
|
|
218
222
|
{
|
|
219
223
|
names: ["billing"],
|
|
220
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-JOIZPHON.js")))).registerBillingCommands
|
|
221
225
|
},
|
|
222
226
|
{
|
|
223
227
|
names: ["monitors"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-KOWN7M3V.js")))).registerMonitorsCommands
|
|
225
229
|
},
|
|
226
230
|
{
|
|
227
231
|
names: ["org"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-2T5K2VP5.js")))).registerOrgCommands
|
|
229
233
|
},
|
|
230
234
|
{
|
|
231
235
|
names: ["git", "projects", "deployments"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-TUB2ZUEH.js")))).registerGitCommands
|
|
233
237
|
},
|
|
234
238
|
{
|
|
235
239
|
names: ["csv"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-DZHVIW3G.js")))).registerCsvCommands
|
|
237
241
|
},
|
|
238
242
|
{
|
|
239
243
|
names: ["db"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-D7LPPNCC.js")))).registerDbCommands
|
|
241
245
|
},
|
|
242
246
|
{
|
|
243
247
|
names: ["feedback"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-TCHA67IA.js")))).registerFeedbackCommands
|
|
245
249
|
},
|
|
246
250
|
{
|
|
247
251
|
names: ["enrich", "session", "backend"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
252
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-23WRA7DH.js")))).registerDeprecatedCommands
|
|
249
253
|
},
|
|
250
254
|
{
|
|
251
255
|
names: ["update"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
256
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-TLSY6LC2.js")))).registerUpdateCommand
|
|
253
257
|
},
|
|
254
258
|
{
|
|
255
259
|
names: ["skills", "skills-auto-sync"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
260
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-BPZWMZSL.js")))).registerSkillsCommand
|
|
257
261
|
},
|
|
258
262
|
{
|
|
259
263
|
names: ["setup", "doctor"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
264
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-X3QRJERP.js")))).registerSetupCommands
|
|
261
265
|
},
|
|
262
266
|
{
|
|
263
267
|
names: ["quickstart"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
268
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-YCY72TAO.js")))).registerQuickstartCommands
|
|
265
269
|
}
|
|
266
270
|
];
|
|
267
271
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -287,8 +291,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
287
291
|
function createDeferredPlayRunMaintenance(input) {
|
|
288
292
|
return async () => {
|
|
289
293
|
try {
|
|
290
|
-
const skillsVersion =
|
|
291
|
-
const compatibility = await
|
|
294
|
+
const skillsVersion = _chunkZLN2B5YAjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
295
|
+
const compatibility = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
292
296
|
"cli.sdk_compatibility_deferred",
|
|
293
297
|
{
|
|
294
298
|
baseUrl: input.baseUrl,
|
|
@@ -296,24 +300,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
296
300
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
297
301
|
},
|
|
298
302
|
async () => {
|
|
299
|
-
const trusted =
|
|
303
|
+
const trusted = _chunkMHZAG2ZQjs.readTrustedCleanCompatibility.call(void 0,
|
|
300
304
|
input.baseUrl,
|
|
301
305
|
"plays run",
|
|
302
306
|
skillsVersion
|
|
303
307
|
);
|
|
304
308
|
if (trusted) return { response: trusted, error: null };
|
|
305
|
-
return
|
|
309
|
+
return _chunkMHZAG2ZQjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
306
310
|
command: "plays run",
|
|
307
311
|
skillsVersion,
|
|
308
312
|
persistCache: input.policy !== "off",
|
|
309
|
-
catalog:
|
|
313
|
+
catalog: _chunk45XYW477js.compatibilityCatalog.call(void 0, input.command)
|
|
310
314
|
});
|
|
311
315
|
}
|
|
312
316
|
);
|
|
313
317
|
if (compatibility.error || !compatibility.response) return;
|
|
314
318
|
const automaticUpdate = compatibility.response.auto_update;
|
|
315
319
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
316
|
-
await
|
|
320
|
+
await _chunk45XYW477js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
317
321
|
compatibility.response,
|
|
318
322
|
input.baseUrl,
|
|
319
323
|
input.policy
|
|
@@ -323,7 +327,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
323
327
|
compatibility.response,
|
|
324
328
|
"skills"
|
|
325
329
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
326
|
-
await
|
|
330
|
+
await _chunkMHZAG2ZQjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
327
331
|
update: skillsUpdate,
|
|
328
332
|
mode: "detached"
|
|
329
333
|
});
|
|
@@ -351,8 +355,8 @@ var MAX_SESSIONS = 20;
|
|
|
351
355
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
352
356
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
353
357
|
}
|
|
354
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
355
|
-
const explicit =
|
|
358
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkSPN7U3MVjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
359
|
+
const explicit = _chunkK26YOPDOjs.helpDetailFromArgv.call(void 0, argv);
|
|
356
360
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
357
361
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
358
362
|
const path = helpSeenPath(homeDir);
|
|
@@ -449,7 +453,7 @@ function shouldReport(stdout, stderr) {
|
|
|
449
453
|
}
|
|
450
454
|
function toolName(action) {
|
|
451
455
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
452
|
-
return typeof toolId === "string" ?
|
|
456
|
+
return typeof toolId === "string" ? _chunkQYGYVCRIjs.redactFailureText.call(void 0, toolId) : null;
|
|
453
457
|
}
|
|
454
458
|
function chunkText(chunk) {
|
|
455
459
|
if (typeof chunk === "string") return chunk;
|
|
@@ -480,14 +484,14 @@ function watch(stream) {
|
|
|
480
484
|
}
|
|
481
485
|
async function postCommandOutput(body) {
|
|
482
486
|
try {
|
|
483
|
-
const baseUrl =
|
|
484
|
-
const apiKey =
|
|
487
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
|
+
const apiKey = _chunkZLN2B5YAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
485
489
|
if (!apiKey) return;
|
|
486
|
-
const agentSessionId =
|
|
490
|
+
const agentSessionId = _chunkSPN7U3MVjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
487
491
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
488
492
|
method: "POST",
|
|
489
493
|
headers: {
|
|
490
|
-
...
|
|
494
|
+
..._chunkQYGYVCRIjs.failureReportHeaders.call(void 0, apiKey),
|
|
491
495
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
492
496
|
},
|
|
493
497
|
body: JSON.stringify(body),
|
|
@@ -503,14 +507,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
503
507
|
const stdoutWatch = watch(streams.stdout);
|
|
504
508
|
const stderrWatch = watch(streams.stderr);
|
|
505
509
|
return async (finished) => {
|
|
506
|
-
if (
|
|
510
|
+
if (_chunkQYGYVCRIjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
507
511
|
const [stdout, stderr] = await Promise.all([
|
|
508
512
|
stdoutWatch.settled(),
|
|
509
513
|
stderrWatch.settled()
|
|
510
514
|
]);
|
|
511
515
|
if (!shouldReport(stdout, stderr)) return;
|
|
512
516
|
await postCommandOutput({
|
|
513
|
-
command:
|
|
517
|
+
command: _chunkQYGYVCRIjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
514
518
|
tool: toolName(finished.action),
|
|
515
519
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
516
520
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -541,7 +545,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
541
545
|
function printUsageErrorJson(code, message, commandPath) {
|
|
542
546
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
543
547
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
544
|
-
|
|
548
|
+
_chunkEMUFF6EUjs.printJson.call(void 0, {
|
|
545
549
|
ok: false,
|
|
546
550
|
error: {
|
|
547
551
|
code,
|
|
@@ -603,7 +607,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
603
607
|
);
|
|
604
608
|
}
|
|
605
609
|
async function runPlayRunnerHealthCheck() {
|
|
606
|
-
|
|
610
|
+
_chunkZLN2B5YAjs.resolveConfig.call(void 0, );
|
|
607
611
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
608
612
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
609
613
|
try {
|
|
@@ -633,7 +637,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
637
|
});
|
|
634
638
|
let exitCode = 1;
|
|
635
639
|
try {
|
|
636
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
640
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2HMZ57EZ.js")));
|
|
637
641
|
exitCode = await handlePlayRun([
|
|
638
642
|
file,
|
|
639
643
|
"--input",
|
|
@@ -673,7 +677,7 @@ function preflightErrorMessage(error) {
|
|
|
673
677
|
return error instanceof Error ? error.message : String(error);
|
|
674
678
|
}
|
|
675
679
|
async function runPreflightCheck() {
|
|
676
|
-
const baseUrl =
|
|
680
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
677
681
|
const healthController = new AbortController();
|
|
678
682
|
const healthTimeout = setTimeout(
|
|
679
683
|
() => healthController.abort(),
|
|
@@ -690,14 +694,14 @@ async function runPreflightCheck() {
|
|
|
690
694
|
}).catch((error) => ({
|
|
691
695
|
status: "unreachable",
|
|
692
696
|
version: null,
|
|
693
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
697
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkSPN7U3MVjs.connectionFailureMessage.call(void 0,
|
|
694
698
|
baseUrl,
|
|
695
699
|
error instanceof Error ? error : new Error(String(error))
|
|
696
700
|
)
|
|
697
701
|
})).finally(() => clearTimeout(healthTimeout));
|
|
698
|
-
const apiKey =
|
|
699
|
-
const http = apiKey ? new (0,
|
|
700
|
-
|
|
702
|
+
const apiKey = _chunkZLN2B5YAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
703
|
+
const http = apiKey ? new (0, _chunkZLN2B5YAjs.HttpClient)(
|
|
704
|
+
_chunkZLN2B5YAjs.resolveConfig.call(void 0, {
|
|
701
705
|
baseUrl,
|
|
702
706
|
apiKey,
|
|
703
707
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -742,7 +746,7 @@ async function runPreflightCheck() {
|
|
|
742
746
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
743
747
|
return {
|
|
744
748
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
745
|
-
cli_version:
|
|
749
|
+
cli_version: _chunkSPN7U3MVjs.SDK_VERSION,
|
|
746
750
|
host: baseUrl,
|
|
747
751
|
health: {
|
|
748
752
|
status: healthResult.status,
|
|
@@ -769,7 +773,7 @@ async function runPreflightCheck() {
|
|
|
769
773
|
{
|
|
770
774
|
title: "preflight",
|
|
771
775
|
lines: [
|
|
772
|
-
`cli: ${
|
|
776
|
+
`cli: ${_chunkSPN7U3MVjs.SDK_VERSION}`,
|
|
773
777
|
`host: ${baseUrl}`,
|
|
774
778
|
`health: ${healthResult.status}`,
|
|
775
779
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -796,12 +800,12 @@ function printPreflightHuman(data) {
|
|
|
796
800
|
}
|
|
797
801
|
async function newerCliCommandHint(baseUrl, command) {
|
|
798
802
|
if (!command.trim()) return null;
|
|
799
|
-
const { response, error } = await
|
|
803
|
+
const { response, error } = await _chunkMHZAG2ZQjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
800
804
|
if (error || !response) return null;
|
|
801
805
|
const introduced = response.command_introduced_in;
|
|
802
806
|
if (introduced) {
|
|
803
807
|
return [
|
|
804
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
808
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkSPN7U3MVjs.SDK_VERSION}.`,
|
|
805
809
|
` ${introduced.reason}`,
|
|
806
810
|
` Update with: ${response.update_command}`,
|
|
807
811
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -810,32 +814,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
810
814
|
if (!response.update_required) return null;
|
|
811
815
|
return [
|
|
812
816
|
response.message,
|
|
813
|
-
` Installed: ${
|
|
817
|
+
` Installed: ${_chunkSPN7U3MVjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
814
818
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
815
819
|
].join("\n");
|
|
816
820
|
}
|
|
817
821
|
async function runMain(ensureTransport, onAction) {
|
|
818
822
|
const mainStartedAt = Date.now();
|
|
819
|
-
|
|
823
|
+
_chunkEMUFF6EUjs.installJsonStderrGuard.call(void 0, );
|
|
820
824
|
let rootHelpStatus = "";
|
|
821
825
|
let commandFailed = false;
|
|
822
826
|
const deferredMaintenance = { inlinePlay: null };
|
|
823
|
-
|
|
827
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
824
828
|
phase: "cli.main_start",
|
|
825
829
|
argv: process.argv.slice(2)
|
|
826
830
|
});
|
|
827
831
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
828
|
-
const progress = printStartupPhase ?
|
|
832
|
+
const progress = printStartupPhase ? _chunkWPCF7C6Bjs.createCliProgress.call(void 0, true) : null;
|
|
829
833
|
if (printStartupPhase) {
|
|
830
834
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
831
835
|
}
|
|
832
836
|
const program = new (0, _commander.Command)();
|
|
833
837
|
program.name("deepline").description(
|
|
834
838
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
835
|
-
).version(
|
|
839
|
+
).version(_chunkSPN7U3MVjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
836
840
|
"--maintenance <policy>",
|
|
837
841
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
838
|
-
|
|
842
|
+
_chunkCA3SYXCSjs.parseCliMaintenancePolicy,
|
|
839
843
|
"configured"
|
|
840
844
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
841
845
|
"beforeAll",
|
|
@@ -884,33 +888,33 @@ Exit codes:
|
|
|
884
888
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
885
889
|
`
|
|
886
890
|
).addHelpText("afterAll", ({ command }) => {
|
|
887
|
-
const key =
|
|
891
|
+
const key = _chunkK26YOPDOjs.commandDocKey.call(void 0, command);
|
|
888
892
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
889
|
-
return
|
|
893
|
+
return _chunkK26YOPDOjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
890
894
|
});
|
|
891
895
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
896
|
onAction({
|
|
893
897
|
path: compatibilityCommandPath(actionCommand),
|
|
894
898
|
args: actionCommand.processedArgs
|
|
895
899
|
});
|
|
896
|
-
const maintenance =
|
|
900
|
+
const maintenance = _chunkCA3SYXCSjs.resolveCliMaintenancePolicy.call(void 0,
|
|
897
901
|
actionCommand.optsWithGlobals()
|
|
898
902
|
);
|
|
899
903
|
if (actionCommand.name() !== "version") {
|
|
900
904
|
await ensureTransport();
|
|
901
905
|
}
|
|
902
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
906
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkMHZAG2ZQjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
903
907
|
return;
|
|
904
908
|
}
|
|
905
909
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
906
910
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
907
911
|
if (isToolExecuteCommand) {
|
|
908
|
-
|
|
912
|
+
_chunk45XYW477js.beginToolExecuteCommand.call(void 0, );
|
|
909
913
|
}
|
|
910
914
|
if (isToolExecuteCommand) {
|
|
911
|
-
const baseUrl =
|
|
912
|
-
if (maintenance !== "off")
|
|
913
|
-
|
|
915
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
916
|
+
if (maintenance !== "off") _chunkMHZAG2ZQjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
917
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
914
918
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
915
919
|
baseUrl,
|
|
916
920
|
command: compatibilityCommand
|
|
@@ -918,9 +922,9 @@ Exit codes:
|
|
|
918
922
|
return;
|
|
919
923
|
}
|
|
920
924
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
921
|
-
if (!playDryRun &&
|
|
925
|
+
if (!playDryRun && _chunkGXMNOUHPjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
922
926
|
if (maintenance !== "off") {
|
|
923
|
-
const baseUrl =
|
|
927
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
924
928
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
925
929
|
baseUrl,
|
|
926
930
|
command: actionCommand,
|
|
@@ -929,27 +933,27 @@ Exit codes:
|
|
|
929
933
|
}
|
|
930
934
|
return;
|
|
931
935
|
}
|
|
932
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
936
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunk45XYW477js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
933
937
|
if (printStartupPhase) {
|
|
934
938
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
935
939
|
}
|
|
936
940
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
941
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
942
|
+
if (maintenance !== "off") _chunkMHZAG2ZQjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
943
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
940
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
941
|
-
const trusted = isToolExecuteCommand ? null :
|
|
944
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkZLN2B5YAjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
945
|
+
const trusted = isToolExecuteCommand ? null : _chunkMHZAG2ZQjs.readTrustedCleanCompatibility.call(void 0,
|
|
942
946
|
baseUrl,
|
|
943
947
|
compatibilityCommand,
|
|
944
948
|
skillsVersion
|
|
945
949
|
);
|
|
946
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
950
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkMHZAG2ZQjs.readFreshCleanCompatibility.call(void 0,
|
|
947
951
|
baseUrl,
|
|
948
952
|
compatibilityCommand,
|
|
949
953
|
skillsVersion
|
|
950
954
|
) !== null;
|
|
951
955
|
if (trusted) {
|
|
952
|
-
|
|
956
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
953
957
|
phase: "cli.sdk_compatibility",
|
|
954
958
|
ms: 0,
|
|
955
959
|
ok: true,
|
|
@@ -959,7 +963,7 @@ Exit codes:
|
|
|
959
963
|
source: "trusted_cache"
|
|
960
964
|
});
|
|
961
965
|
}
|
|
962
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
966
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
963
967
|
"cli.sdk_compatibility",
|
|
964
968
|
{
|
|
965
969
|
baseUrl,
|
|
@@ -967,12 +971,12 @@ Exit codes:
|
|
|
967
971
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
968
972
|
fastDeadline
|
|
969
973
|
},
|
|
970
|
-
() =>
|
|
974
|
+
() => _chunkMHZAG2ZQjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
971
975
|
command: compatibilityCommand,
|
|
972
976
|
skillsVersion,
|
|
973
977
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
974
|
-
catalog:
|
|
975
|
-
...fastDeadline ? { timeoutMs:
|
|
978
|
+
catalog: _chunk45XYW477js.compatibilityCatalog.call(void 0, actionCommand),
|
|
979
|
+
...fastDeadline ? { timeoutMs: _chunkMHZAG2ZQjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
976
980
|
})
|
|
977
981
|
);
|
|
978
982
|
if (compatibility.error) {
|
|
@@ -983,7 +987,7 @@ Exit codes:
|
|
|
983
987
|
response: null
|
|
984
988
|
};
|
|
985
989
|
}
|
|
986
|
-
const relaunched = await
|
|
990
|
+
const relaunched = await _chunk45XYW477js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
987
991
|
compatibility.response,
|
|
988
992
|
baseUrl,
|
|
989
993
|
maintenance
|
|
@@ -997,14 +1001,14 @@ Exit codes:
|
|
|
997
1001
|
};
|
|
998
1002
|
}
|
|
999
1003
|
const policy = compatibility.response;
|
|
1000
|
-
const jsonOutput =
|
|
1001
|
-
|
|
1004
|
+
const jsonOutput = _chunkEMUFF6EUjs.isJsonOutputMode.call(void 0, );
|
|
1005
|
+
_chunkMHZAG2ZQjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1002
1006
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1003
|
-
|
|
1007
|
+
_chunk45XYW477js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkMHZAG2ZQjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1004
1008
|
});
|
|
1005
1009
|
const advisory = compatibility.response;
|
|
1006
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1007
|
-
|
|
1010
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkMHZAG2ZQjs.isCiEnvironment.call(void 0, ) && !_chunk45XYW477js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1011
|
+
_chunkEMUFF6EUjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1008
1012
|
}
|
|
1009
1013
|
return {
|
|
1010
1014
|
shouldContinue: true,
|
|
@@ -1021,10 +1025,10 @@ Exit codes:
|
|
|
1021
1025
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1022
1026
|
await runStartupStage(
|
|
1023
1027
|
"agent skills sync",
|
|
1024
|
-
() =>
|
|
1028
|
+
() => _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
1025
1029
|
"cli.sdk_skills_sync",
|
|
1026
1030
|
{ baseUrl: startup.baseUrl },
|
|
1027
|
-
() =>
|
|
1031
|
+
() => _chunkMHZAG2ZQjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1028
1032
|
update: skillsUpdate,
|
|
1029
1033
|
mode: "detached"
|
|
1030
1034
|
})
|
|
@@ -1036,16 +1040,16 @@ Exit codes:
|
|
|
1036
1040
|
program,
|
|
1037
1041
|
process.argv.slice(2)
|
|
1038
1042
|
);
|
|
1039
|
-
const commandRegistrationStartedAt =
|
|
1043
|
+
const commandRegistrationStartedAt = _chunkCA3SYXCSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1040
1044
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1041
1045
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1042
|
-
|
|
1046
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
1043
1047
|
phase: "cli.command_registration",
|
|
1044
1048
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1045
1049
|
});
|
|
1046
1050
|
}
|
|
1047
1051
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1048
|
-
if (
|
|
1052
|
+
if (_chunkEMUFF6EUjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1049
1053
|
preflight.addHelpText(
|
|
1050
1054
|
"after",
|
|
1051
1055
|
`
|
|
@@ -1061,8 +1065,8 @@ Examples:
|
|
|
1061
1065
|
`
|
|
1062
1066
|
).action(async (options) => {
|
|
1063
1067
|
const data = await runPreflightCheck();
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1068
|
+
if (_chunkEMUFF6EUjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1069
|
+
_chunkEMUFF6EUjs.printJson.call(void 0, data);
|
|
1066
1070
|
} else {
|
|
1067
1071
|
printPreflightHuman(data);
|
|
1068
1072
|
}
|
|
@@ -1087,7 +1091,7 @@ Examples:
|
|
|
1087
1091
|
).action(async (options) => {
|
|
1088
1092
|
if (options.playRunner) {
|
|
1089
1093
|
const data = await runPlayRunnerHealthCheck();
|
|
1090
|
-
|
|
1094
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, data, {
|
|
1091
1095
|
json: options.json,
|
|
1092
1096
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1093
1097
|
`
|
|
@@ -1095,15 +1099,15 @@ Examples:
|
|
|
1095
1099
|
return;
|
|
1096
1100
|
}
|
|
1097
1101
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1099
|
-
const baseUrl =
|
|
1102
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-SEPKNRHV.js")));
|
|
1103
|
+
const baseUrl = _chunkZLN2B5YAjs.resolveBaseUrlOnly.call(void 0, );
|
|
1100
1104
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1105
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1102
1106
|
readStatusBanner(baseUrl)
|
|
1103
1107
|
]);
|
|
1104
1108
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1105
1109
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1106
|
-
|
|
1110
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
1107
1111
|
{ ...data, status_banner: banner },
|
|
1108
1112
|
{
|
|
1109
1113
|
json: options.json,
|
|
@@ -1131,16 +1135,16 @@ Examples:
|
|
|
1131
1135
|
`
|
|
1132
1136
|
).action((options) => {
|
|
1133
1137
|
if (options.json) {
|
|
1134
|
-
|
|
1138
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, { version: _chunkSPN7U3MVjs.SDK_VERSION });
|
|
1135
1139
|
return;
|
|
1136
1140
|
}
|
|
1137
|
-
process.stdout.write(`deepline ${
|
|
1141
|
+
process.stdout.write(`deepline ${_chunkSPN7U3MVjs.SDK_VERSION}
|
|
1138
1142
|
`);
|
|
1139
1143
|
});
|
|
1140
1144
|
if (process.argv.slice(2).length === 0) {
|
|
1141
1145
|
program.outputHelp({ error: true });
|
|
1142
1146
|
console.error("\nerror: missing command (see usage above)");
|
|
1143
|
-
|
|
1147
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
1144
1148
|
phase: "cli.main_total",
|
|
1145
1149
|
ms: Date.now() - mainStartedAt,
|
|
1146
1150
|
ok: false,
|
|
@@ -1152,16 +1156,16 @@ Examples:
|
|
|
1152
1156
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1153
1157
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1154
1158
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1155
|
-
if (!
|
|
1156
|
-
const baseUrl =
|
|
1159
|
+
if (!_chunkEMUFF6EUjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1160
|
+
const baseUrl = _chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, );
|
|
1157
1161
|
await ensureTransport();
|
|
1158
1162
|
const versionHint = await newerCliCommandHint(
|
|
1159
1163
|
baseUrl,
|
|
1160
1164
|
requestedTopLevelCommand
|
|
1161
1165
|
);
|
|
1162
|
-
if (
|
|
1166
|
+
if (_chunkEMUFF6EUjs.isJsonOutputMode.call(void 0, )) {
|
|
1163
1167
|
if (versionHint) {
|
|
1164
|
-
|
|
1168
|
+
_chunkEMUFF6EUjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1165
1169
|
}
|
|
1166
1170
|
printUsageErrorJson(
|
|
1167
1171
|
"commander.unknownCommand",
|
|
@@ -1183,18 +1187,18 @@ Examples:
|
|
|
1183
1187
|
const helpArgs = process.argv.slice(2);
|
|
1184
1188
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1189
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1186
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1187
|
-
rootHelpStatus = `Version: ${
|
|
1190
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-SEPKNRHV.js")));
|
|
1191
|
+
rootHelpStatus = `Version: ${_chunkSPN7U3MVjs.SDK_VERSION}
|
|
1188
1192
|
${await authStatusLine()}
|
|
1189
1193
|
`;
|
|
1190
1194
|
}
|
|
1191
1195
|
await program.parseAsync(process.argv);
|
|
1192
|
-
|
|
1196
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
1193
1197
|
phase: "cli.main_total",
|
|
1194
1198
|
ms: Date.now() - mainStartedAt,
|
|
1195
1199
|
ok: true
|
|
1196
1200
|
});
|
|
1197
|
-
await
|
|
1201
|
+
await _chunkQYGYVCRIjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1198
1202
|
argv: process.argv.slice(2),
|
|
1199
1203
|
startedAtMs: mainStartedAt,
|
|
1200
1204
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1202,14 +1206,14 @@ ${await authStatusLine()}
|
|
|
1202
1206
|
} catch (error) {
|
|
1203
1207
|
commandFailed = true;
|
|
1204
1208
|
const commanderError = asCommanderError(error);
|
|
1205
|
-
|
|
1209
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
1206
1210
|
phase: "cli.main_total",
|
|
1207
1211
|
ms: Date.now() - mainStartedAt,
|
|
1208
1212
|
ok: false,
|
|
1209
1213
|
error: error instanceof Error ? error.message : String(error)
|
|
1210
1214
|
});
|
|
1211
1215
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1212
|
-
const wantsJson =
|
|
1216
|
+
const wantsJson = _chunkEMUFF6EUjs.isJsonOutputMode.call(void 0, );
|
|
1213
1217
|
if (commanderError) {
|
|
1214
1218
|
const grammarError = [
|
|
1215
1219
|
"commander.unknownCommand",
|
|
@@ -1220,12 +1224,12 @@ ${await authStatusLine()}
|
|
|
1220
1224
|
if (grammarError) {
|
|
1221
1225
|
await ensureTransport();
|
|
1222
1226
|
const versionHint = await newerCliCommandHint(
|
|
1223
|
-
|
|
1227
|
+
_chunkZLN2B5YAjs.autoDetectBaseUrl.call(void 0, ),
|
|
1224
1228
|
commandPath
|
|
1225
1229
|
);
|
|
1226
1230
|
if (wantsJson) {
|
|
1227
1231
|
if (versionHint) {
|
|
1228
|
-
|
|
1232
|
+
_chunkEMUFF6EUjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1229
1233
|
}
|
|
1230
1234
|
} else {
|
|
1231
1235
|
if (versionHint) console.error(versionHint);
|
|
@@ -1245,55 +1249,55 @@ ${await authStatusLine()}
|
|
|
1245
1249
|
return;
|
|
1246
1250
|
} else if (wantsJson) {
|
|
1247
1251
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
|
-
|
|
1252
|
+
_chunkEMUFF6EUjs.addJsonNotice.call(void 0, {
|
|
1249
1253
|
code: "auth_required",
|
|
1250
1254
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1251
1255
|
});
|
|
1252
1256
|
}
|
|
1253
|
-
const providerConcurrency =
|
|
1257
|
+
const providerConcurrency = _chunkEMUFF6EUjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1254
1258
|
if (providerConcurrency) {
|
|
1255
|
-
|
|
1259
|
+
_chunkEMUFF6EUjs.addJsonNotice.call(void 0, {
|
|
1256
1260
|
code: "provider_concurrency",
|
|
1257
1261
|
message: providerConcurrency
|
|
1258
1262
|
});
|
|
1259
1263
|
}
|
|
1260
|
-
const payload =
|
|
1261
|
-
|
|
1264
|
+
const payload = _chunkEMUFF6EUjs.errorToJsonPayload.call(void 0, error);
|
|
1265
|
+
_chunkEMUFF6EUjs.printJson.call(void 0, {
|
|
1262
1266
|
...payload,
|
|
1263
1267
|
// The envelope names the code the process exits with, so a caller
|
|
1264
1268
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1265
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1269
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkQYGYVCRIjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1266
1270
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1267
1271
|
});
|
|
1268
1272
|
} else if (error instanceof Error) {
|
|
1269
1273
|
console.error(`Error: ${error.message}`);
|
|
1270
|
-
const toolDiagnostic =
|
|
1274
|
+
const toolDiagnostic = _chunkEMUFF6EUjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1271
1275
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1272
1276
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1273
1277
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1274
1278
|
}
|
|
1275
|
-
const providerConcurrency =
|
|
1279
|
+
const providerConcurrency = _chunkEMUFF6EUjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1276
1280
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1277
1281
|
} else {
|
|
1278
1282
|
console.error(`Error: ${String(error)}`);
|
|
1279
1283
|
}
|
|
1280
1284
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1281
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1285
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkQYGYVCRIjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1282
1286
|
process.exitCode = failureExitCode;
|
|
1283
|
-
await
|
|
1287
|
+
await _chunkQYGYVCRIjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1284
1288
|
argv: process.argv.slice(2),
|
|
1285
1289
|
startedAtMs: mainStartedAt,
|
|
1286
1290
|
exitCode: failureExitCode,
|
|
1287
1291
|
error
|
|
1288
1292
|
});
|
|
1289
1293
|
} finally {
|
|
1290
|
-
|
|
1294
|
+
_chunk45XYW477js.finishToolExecuteCommand.call(void 0, );
|
|
1291
1295
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1292
1296
|
deferredMaintenance.inlinePlay = null;
|
|
1293
1297
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1294
1298
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1295
1299
|
}
|
|
1296
|
-
await
|
|
1300
|
+
await _chunk45XYW477js.runDeferredAutoUpdate.call(void 0, );
|
|
1297
1301
|
}
|
|
1298
1302
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1299
1303
|
}
|
|
@@ -1301,7 +1305,7 @@ async function main() {
|
|
|
1301
1305
|
let disposeTransport;
|
|
1302
1306
|
const ensureTransport = async () => {
|
|
1303
1307
|
if (disposeTransport) return;
|
|
1304
|
-
const transportStartedAt =
|
|
1308
|
+
const transportStartedAt = _chunkCA3SYXCSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1305
1309
|
const hasProxy = [
|
|
1306
1310
|
"HTTP_PROXY",
|
|
1307
1311
|
"http_proxy",
|
|
@@ -1313,7 +1317,7 @@ async function main() {
|
|
|
1313
1317
|
disposeTransport = configureCliTransport();
|
|
1314
1318
|
}
|
|
1315
1319
|
if (transportStartedAt !== void 0) {
|
|
1316
|
-
|
|
1320
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
1317
1321
|
phase: "cli.transport_setup",
|
|
1318
1322
|
ms: performance.now() - transportStartedAt
|
|
1319
1323
|
});
|
|
@@ -1330,9 +1334,9 @@ async function main() {
|
|
|
1330
1334
|
action = dispatched;
|
|
1331
1335
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1332
1336
|
});
|
|
1333
|
-
const silentFailure =
|
|
1337
|
+
const silentFailure = _chunkEMUFF6EUjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1334
1338
|
if (silentFailure) {
|
|
1335
|
-
|
|
1339
|
+
_chunkEMUFF6EUjs.printJson.call(void 0, {
|
|
1336
1340
|
ok: false,
|
|
1337
1341
|
exitCode: Number(process.exitCode),
|
|
1338
1342
|
error: { code: "CLI_ERROR", message: silentFailure }
|