deepline 0.3.508 → 0.3.510
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/shared_libs/monitors/org-monitor-limits.ts +7 -2
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +94 -43
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +111 -27
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +79 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +80 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +571 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
- package/dist/cli/auth-S2Z5YMU3.js +43 -0
- package/dist/cli/{auth-2URIN52G.mjs → auth-USS2W3UV.mjs} +5 -5
- package/dist/cli/{billing-IW23GSR5.mjs → billing-JCUWM5XB.mjs} +7 -7
- package/dist/cli/{billing-R2HY2ZVJ.js → billing-LQQHU443.js} +82 -82
- package/dist/cli/{chunk-7PELFO3C.js → chunk-2JXEZAJF.js} +21 -21
- package/dist/cli/chunk-3LXU22UZ.js +77 -0
- package/dist/cli/{chunk-74UO7THC.js → chunk-4NJK6P5T.js} +4 -4
- package/dist/cli/{chunk-FXKKFM7J.js → chunk-4ZIIS6KG.js} +9 -9
- package/dist/cli/{chunk-63MCLOR2.mjs → chunk-563HM4D2.mjs} +6 -6
- package/dist/cli/{chunk-XSOLA2ED.mjs → chunk-5DU7RXDW.mjs} +4 -4
- package/dist/cli/{chunk-OWH7SSBO.mjs → chunk-5MYXW6M6.mjs} +2 -2
- package/dist/cli/{chunk-3BZ74K27.js → chunk-5N2HFB3G.js} +16 -16
- package/dist/cli/{chunk-2YOM5J3G.js → chunk-63DHG7BM.js} +26 -26
- package/dist/cli/{chunk-P7GOQTUN.js → chunk-6AL2VF3E.js} +14 -14
- package/dist/cli/{chunk-QBZECLNG.mjs → chunk-7BF4R26M.mjs} +3 -3
- package/dist/cli/{chunk-JRHMPZJX.js → chunk-7VQKU6MS.js} +7 -7
- package/dist/cli/{chunk-3C6VBHNW.mjs → chunk-7VT7RMZ2.mjs} +2 -2
- package/dist/cli/{chunk-M37I4A2Z.js → chunk-ASBWPRBN.js} +16 -16
- package/dist/cli/{chunk-3ZNPIJX6.js → chunk-B2T7PBS6.js} +41 -41
- package/dist/cli/{chunk-NC2FIUPX.mjs → chunk-B2U3LVSO.mjs} +1 -1
- package/dist/cli/{chunk-RNZQ7RDW.mjs → chunk-B6Q6BHSY.mjs} +2 -2
- package/dist/cli/{chunk-IZZ7FFWP.js → chunk-BPGFNVH2.js} +44 -44
- package/dist/cli/{chunk-2PYFXXYA.mjs → chunk-CLV4T5FN.mjs} +2 -2
- package/dist/cli/{chunk-JEB6BNIU.mjs → chunk-DEPBCRKG.mjs} +15 -4
- package/dist/cli/{chunk-DZ7JCRAL.mjs → chunk-DMF56C6D.mjs} +2 -2
- package/dist/cli/{chunk-RWXHMG6F.js → chunk-EEQ2QQOH.js} +21 -10
- package/dist/cli/{chunk-UDH3YMBI.mjs → chunk-EJ57CA2L.mjs} +1 -1
- package/dist/cli/{chunk-JYNHHO3J.js → chunk-F6IXWFPF.js} +6 -6
- package/dist/cli/{chunk-DWV7KM6H.mjs → chunk-FFPLCSTZ.mjs} +10 -10
- package/dist/cli/{chunk-VXNL4HLE.mjs → chunk-FND6GZZ4.mjs} +5 -5
- package/dist/cli/{chunk-D73YB5NQ.js → chunk-HC27PYJM.js} +2 -2
- package/dist/cli/{chunk-FRT5MFLF.mjs → chunk-HOKOJGQW.mjs} +1 -1
- package/dist/cli/{chunk-AYNO4VFW.js → chunk-JNECQ5QF.js} +11 -11
- package/dist/cli/chunk-JVEU6MXD.mjs +77 -0
- package/dist/cli/{chunk-ZLIAUR2E.js → chunk-JY73USD7.js} +2 -2
- package/dist/cli/{chunk-K4RME7AV.mjs → chunk-KXSOZYCS.mjs} +1 -1
- package/dist/cli/{chunk-ESVK4Z7S.js → chunk-LF3FF2B2.js} +1 -1
- package/dist/cli/{chunk-63BGKU3A.js → chunk-N7FV7OM3.js} +96 -96
- package/dist/cli/{chunk-Q4I5YKN4.mjs → chunk-OEG6VCK4.mjs} +1 -1
- package/dist/cli/{chunk-2LY42EZJ.mjs → chunk-PQ56GE55.mjs} +1 -1
- package/dist/cli/{chunk-GRGZKXLL.mjs → chunk-Q5EJO4TE.mjs} +5 -5
- package/dist/cli/{chunk-N5HRBS4K.js → chunk-QRQBKLOM.js} +3 -3
- package/dist/cli/{chunk-4DAR2GYV.mjs → chunk-RHKFNEV2.mjs} +2 -2
- package/dist/cli/{chunk-C6TP4DR3.mjs → chunk-UV524JZ5.mjs} +1 -1
- package/dist/cli/{chunk-KSQO32L5.mjs → chunk-V6DLYRSO.mjs} +1 -1
- package/dist/cli/{chunk-J3LJ37WD.js → chunk-VPJSQMWQ.js} +3 -3
- package/dist/cli/{chunk-3XBI4KZM.mjs → chunk-WAOLTP6R.mjs} +2 -2
- package/dist/cli/{chunk-JXYVBF5L.mjs → chunk-WC5754QJ.mjs} +5 -5
- package/dist/cli/{chunk-RUD77W2Y.js → chunk-XJZU7KO4.js} +5 -5
- package/dist/cli/{chunk-GDHLL5EQ.js → chunk-XK3AJFYQ.js} +35 -10
- package/dist/cli/{chunk-JUYW6TSU.js → chunk-XL4FFVWL.js} +7 -7
- package/dist/cli/{chunk-ZL2ME3UT.js → chunk-XRLE2FPE.js} +6 -6
- package/dist/cli/{chunk-R4S2AK3Q.js → chunk-YDALHHUC.js} +53 -53
- package/dist/cli/{chunk-IF242BIJ.mjs → chunk-YYUVOUEH.mjs} +5 -5
- package/dist/cli/{chunk-TVADI7K5.js → chunk-ZCYV6MZH.js} +5 -5
- package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-ZRACZKEE.mjs} +35 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CMJSMC2I.mjs → csv-MTFVEDPU.mjs} +4 -4
- package/dist/cli/{csv-DPDO6BU6.js → csv-UXFQZLZM.js} +13 -13
- package/dist/cli/{db-SL3EFN6V.mjs → db-3WPUYCCI.mjs} +6 -6
- package/dist/cli/{db-PPPKNTT5.js → db-RGWT6B7K.js} +27 -27
- package/dist/cli/describe-LNCLA2LA.js +50 -0
- package/dist/cli/{describe-XLN33FJX.mjs → describe-XJY5654F.mjs} +18 -18
- package/dist/cli/{executions-6YDTV2J6.js → executions-IWTALFNB.js} +8 -8
- package/dist/cli/{executions-O6Z5B5NY.mjs → executions-PDE4V5YH.mjs} +6 -6
- package/dist/cli/{feedback-DP7LPWAD.mjs → feedback-BMOVTPC4.mjs} +11 -7
- package/dist/cli/{feedback-BZ434BN4.js → feedback-I72P4XZS.js} +15 -11
- package/dist/cli/{git-MI7E5WGL.mjs → git-QJG3EF4P.mjs} +5 -5
- package/dist/cli/git-QWH7SPGF.js +25 -0
- package/dist/cli/index.js +173 -156
- package/dist/cli/index.mjs +76 -59
- package/dist/cli/{legacy-noops-65WNPQVZ.js → legacy-noops-5P75CQC7.js} +9 -8
- package/dist/cli/{legacy-noops-6VYXF2MG.mjs → legacy-noops-MZ45GDMK.mjs} +6 -5
- package/dist/cli/{monitors-BYUCTVSC.js → monitors-5PHQZDZM.js} +100 -100
- package/dist/cli/{monitors-Y7I5ZVCN.mjs → monitors-VIOBUG2X.mjs} +7 -7
- package/dist/cli/{org-F2ASWTFY.js → org-B5LDVP2P.js} +72 -72
- package/dist/cli/{org-IW3YD6JZ.mjs → org-D5RTFJNY.mjs} +6 -6
- package/dist/cli/{pages-X6HLRQNV.js → pages-BUJYG3JL.js} +18 -18
- package/dist/cli/{pages-H2CXNIDB.mjs → pages-XWZL3YV2.mjs} +6 -6
- package/dist/cli/{play-LLEEDXRX.mjs → play-OSXLGCLZ.mjs} +93 -54
- package/dist/cli/{play-H2EM7DTI.js → play-SEC3EE7H.js} +468 -429
- package/dist/cli/{providers-BZR5JONN.mjs → providers-ENSURIW6.mjs} +6 -6
- package/dist/cli/{providers-6R2SPOEV.js → providers-RQPUASLI.js} +9 -9
- package/dist/cli/{quickstart-KVES7R6D.mjs → quickstart-HJTK6XWI.mjs} +4 -4
- package/dist/cli/{quickstart-PW7ONQUH.js → quickstart-XDTU4MAT.js} +6 -6
- package/dist/cli/{run-HVUQROBE.js → run-GX2SU5AT.js} +41 -41
- package/dist/cli/{run-RDI3Q6GO.mjs → run-ZMWSQAR2.mjs} +23 -23
- package/dist/cli/search-7WPABWYO.js +33 -0
- package/dist/cli/{search-3TJ24CUF.mjs → search-DZHZBHWT.mjs} +8 -8
- package/dist/cli/{search-output-JHT553SL.js → search-output-3JVZERNV.js} +6 -6
- package/dist/cli/{search-output-Y57OBQXX.mjs → search-output-MNHAR754.mjs} +4 -4
- package/dist/cli/{secrets-OZK7GRD5.mjs → secrets-VALVNVXB.mjs} +6 -6
- package/dist/cli/{secrets-U5JHWAXU.js → secrets-WO2LMDQ2.js} +15 -15
- package/dist/cli/sessions-2IA2DGWO.js +18 -0
- package/dist/cli/{sessions-D6DSEQ2T.mjs → sessions-EPYCH3AY.mjs} +6 -5
- package/dist/cli/{settings-DLPEHYGS.js → settings-OSF4O5HM.js} +109 -82
- package/dist/cli/{settings-ITLSLT2R.mjs → settings-W2ABZUD4.mjs} +39 -12
- package/dist/cli/{setup-Y5ZYEC6U.js → setup-DCXNQG6R.js} +50 -50
- package/dist/cli/{setup-XTYLF2CF.mjs → setup-XI2ERSMQ.mjs} +10 -10
- package/dist/cli/skills-QMD2WARJ.js +37 -0
- package/dist/cli/{skills-C4WCAVII.mjs → skills-ZO4AH2YR.mjs} +8 -8
- package/dist/cli/tools-53E6GBQU.js +57 -0
- package/dist/cli/{tools-ZESAPVOW.mjs → tools-FTECXZYA.mjs} +17 -17
- package/dist/cli/update-PPPNR6J5.js +35 -0
- package/dist/cli/{update-4PCKVDCS.mjs → update-WPFZO2JE.mjs} +10 -10
- package/dist/cli/{workflow-42CL4TVR.mjs → workflow-7X75IP3D.mjs} +7 -7
- package/dist/cli/{workflow-XXKXMPTI.js → workflow-PKMU33LV.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +105 -102
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-LFU77QDI.js +0 -43
- package/dist/cli/describe-JKZ67X3E.js +0 -50
- package/dist/cli/git-U5N6CTML.js +0 -25
- package/dist/cli/search-NKEEGLY6.js +0 -33
- package/dist/cli/sessions-PNMYAJNB.js +0 -17
- package/dist/cli/skills-K6FVG3BX.js +0 -37
- package/dist/cli/tools-LSALTN7I.js +0 -57
- package/dist/cli/update-P5KGNFNL.js +0 -35
package/dist/cli/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
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 _chunkF6IXWFPFjs = require('./chunk-F6IXWFPF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunk3LXU22UZjs = require('./chunk-3LXU22UZ.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
var _chunk7PELFO3Cjs = require('./chunk-7PELFO3C.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
var _chunk2JXEZAJFjs = require('./chunk-2JXEZAJF.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
var _chunkZLIAUR2Ejs = require('./chunk-ZLIAUR2E.js');
|
|
21
|
-
require('./chunk-M37I4A2Z.js');
|
|
22
|
-
require('./chunk-D73YB5NQ.js');
|
|
23
|
-
require('./chunk-3ZNPIJX6.js');
|
|
24
21
|
|
|
25
22
|
|
|
23
|
+
var _chunkJY73USD7js = require('./chunk-JY73USD7.js');
|
|
24
|
+
require('./chunk-ASBWPRBN.js');
|
|
25
|
+
require('./chunk-HC27PYJM.js');
|
|
26
|
+
require('./chunk-B2T7PBS6.js');
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
@@ -32,23 +33,25 @@ require('./chunk-3ZNPIJX6.js');
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
var _chunkIZZ7FFWPjs = require('./chunk-IZZ7FFWP.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkBPGFNVH2js = require('./chunk-BPGFNVH2.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
var _chunkQRQBKLOMjs = require('./chunk-QRQBKLOM.js');
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
|
|
46
|
-
var _chunkP7GOQTUNjs = require('./chunk-P7GOQTUN.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
var _chunk6AL2VF3Ejs = require('./chunk-6AL2VF3E.js');
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
var _chunkXK3AJFYQjs = require('./chunk-XK3AJFYQ.js');
|
|
52
55
|
require('./chunk-R7J7CJPZ.js');
|
|
53
56
|
require('./chunk-YGCKMI5P.js');
|
|
54
57
|
|
|
@@ -63,7 +66,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
|
|
66
|
-
var
|
|
69
|
+
var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
|
|
@@ -71,18 +74,18 @@ var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
|
|
|
71
74
|
|
|
72
75
|
|
|
73
76
|
|
|
74
|
-
var
|
|
77
|
+
var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
|
|
75
78
|
|
|
76
79
|
|
|
77
80
|
|
|
78
81
|
|
|
79
|
-
var
|
|
82
|
+
var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
|
|
80
83
|
|
|
81
84
|
|
|
82
85
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
83
86
|
require('./chunk-XNYIZMNQ.js');
|
|
84
87
|
require('./chunk-DIAWYWT5.js');
|
|
85
|
-
require('./chunk-
|
|
88
|
+
require('./chunk-LF3FF2B2.js');
|
|
86
89
|
require('./chunk-OG64RBAC.js');
|
|
87
90
|
require('./chunk-RLX5ZFNX.js');
|
|
88
91
|
require('./chunk-COGTRVWW.js');
|
|
@@ -163,56 +166,56 @@ var _os = require('os');
|
|
|
163
166
|
var COMMAND_GROUPS = [
|
|
164
167
|
{
|
|
165
168
|
names: ["auth"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-S2Z5YMU3.js")))).registerAuthCommands
|
|
167
170
|
},
|
|
168
171
|
{
|
|
169
172
|
names: ["providers"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-RQPUASLI.js")))).registerProviderCommands
|
|
171
174
|
},
|
|
172
175
|
{
|
|
173
176
|
names: ["search"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-7WPABWYO.js")))).registerSearchCommand
|
|
175
178
|
},
|
|
176
179
|
{
|
|
177
180
|
names: ["describe"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LNCLA2LA.js")))).registerDescribeCommand
|
|
179
182
|
},
|
|
180
183
|
{
|
|
181
184
|
names: ["run"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-GX2SU5AT.js")))).registerRunCommand
|
|
183
186
|
},
|
|
184
187
|
{
|
|
185
188
|
names: ["tools"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-53E6GBQU.js")))).registerToolsCommands
|
|
187
190
|
},
|
|
188
191
|
{
|
|
189
192
|
names: ["executions"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-IWTALFNB.js")))).registerExecutionsCommands
|
|
191
194
|
},
|
|
192
195
|
{
|
|
193
196
|
names: ["plays", "runs"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-SEC3EE7H.js")))).registerPlayCommands
|
|
195
198
|
},
|
|
196
199
|
{
|
|
197
200
|
names: ["sessions"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-2IA2DGWO.js")))).registerSessionsCommands
|
|
199
202
|
},
|
|
200
203
|
{
|
|
201
204
|
names: ["workflows"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-PKMU33LV.js")))).registerWorkflowCommands
|
|
203
206
|
},
|
|
204
207
|
{
|
|
205
208
|
names: ["pages"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
209
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-BUJYG3JL.js")))).registerPagesCommands
|
|
207
210
|
},
|
|
208
211
|
{
|
|
209
212
|
names: ["secrets"],
|
|
210
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-WO2LMDQ2.js")))).registerSecretsCommands
|
|
211
214
|
},
|
|
212
215
|
{
|
|
213
216
|
names: ["settings", "notifications"],
|
|
214
217
|
load: async () => {
|
|
215
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
218
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-OSF4O5HM.js")));
|
|
216
219
|
return (p) => {
|
|
217
220
|
commands.registerSettingsCommands(p);
|
|
218
221
|
commands.registerNotificationCommands(p);
|
|
@@ -221,51 +224,51 @@ var COMMAND_GROUPS = [
|
|
|
221
224
|
},
|
|
222
225
|
{
|
|
223
226
|
names: ["billing"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-LQQHU443.js")))).registerBillingCommands
|
|
225
228
|
},
|
|
226
229
|
{
|
|
227
230
|
names: ["monitors"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-5PHQZDZM.js")))).registerMonitorsCommands
|
|
229
232
|
},
|
|
230
233
|
{
|
|
231
234
|
names: ["org"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
235
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-B5LDVP2P.js")))).registerOrgCommands
|
|
233
236
|
},
|
|
234
237
|
{
|
|
235
238
|
names: ["git", "projects", "deployments"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-QWH7SPGF.js")))).registerGitCommands
|
|
237
240
|
},
|
|
238
241
|
{
|
|
239
242
|
names: ["csv"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-UXFQZLZM.js")))).registerCsvCommands
|
|
241
244
|
},
|
|
242
245
|
{
|
|
243
246
|
names: ["db"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-RGWT6B7K.js")))).registerDbCommands
|
|
245
248
|
},
|
|
246
249
|
{
|
|
247
250
|
names: ["feedback"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-I72P4XZS.js")))).registerFeedbackCommands
|
|
249
252
|
},
|
|
250
253
|
{
|
|
251
254
|
names: ["enrich", "session", "backend"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-5P75CQC7.js")))).registerDeprecatedCommands
|
|
253
256
|
},
|
|
254
257
|
{
|
|
255
258
|
names: ["update"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-PPPNR6J5.js")))).registerUpdateCommand
|
|
257
260
|
},
|
|
258
261
|
{
|
|
259
262
|
names: ["skills", "skills-auto-sync"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-QMD2WARJ.js")))).registerSkillsCommand
|
|
261
264
|
},
|
|
262
265
|
{
|
|
263
266
|
names: ["setup", "doctor"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
267
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-DCXNQG6R.js")))).registerSetupCommands
|
|
265
268
|
},
|
|
266
269
|
{
|
|
267
270
|
names: ["quickstart"],
|
|
268
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
271
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-XDTU4MAT.js")))).registerQuickstartCommands
|
|
269
272
|
}
|
|
270
273
|
];
|
|
271
274
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -291,8 +294,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
291
294
|
function createDeferredPlayRunMaintenance(input) {
|
|
292
295
|
return async () => {
|
|
293
296
|
try {
|
|
294
|
-
const skillsVersion =
|
|
295
|
-
const compatibility = await
|
|
297
|
+
const skillsVersion = _chunkVPJSQMWQjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
298
|
+
const compatibility = await _chunkJY73USD7js.traceCliSpan.call(void 0,
|
|
296
299
|
"cli.sdk_compatibility_deferred",
|
|
297
300
|
{
|
|
298
301
|
baseUrl: input.baseUrl,
|
|
@@ -300,24 +303,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
300
303
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
301
304
|
},
|
|
302
305
|
async () => {
|
|
303
|
-
const trusted =
|
|
306
|
+
const trusted = _chunkBPGFNVH2js.readTrustedCleanCompatibility.call(void 0,
|
|
304
307
|
input.baseUrl,
|
|
305
308
|
"plays run",
|
|
306
309
|
skillsVersion
|
|
307
310
|
);
|
|
308
311
|
if (trusted) return { response: trusted, error: null };
|
|
309
|
-
return
|
|
312
|
+
return _chunkBPGFNVH2js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
310
313
|
command: "plays run",
|
|
311
314
|
skillsVersion,
|
|
312
315
|
persistCache: input.policy !== "off",
|
|
313
|
-
catalog:
|
|
316
|
+
catalog: _chunk2JXEZAJFjs.compatibilityCatalog.call(void 0, input.command)
|
|
314
317
|
});
|
|
315
318
|
}
|
|
316
319
|
);
|
|
317
320
|
if (compatibility.error || !compatibility.response) return;
|
|
318
321
|
const automaticUpdate = compatibility.response.auto_update;
|
|
319
322
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
320
|
-
await
|
|
323
|
+
await _chunk2JXEZAJFjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
321
324
|
compatibility.response,
|
|
322
325
|
input.baseUrl,
|
|
323
326
|
input.policy
|
|
@@ -327,7 +330,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
327
330
|
compatibility.response,
|
|
328
331
|
"skills"
|
|
329
332
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
330
|
-
await
|
|
333
|
+
await _chunkBPGFNVH2js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
331
334
|
update: skillsUpdate,
|
|
332
335
|
mode: "detached"
|
|
333
336
|
});
|
|
@@ -355,8 +358,8 @@ var MAX_SESSIONS = 20;
|
|
|
355
358
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
356
359
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
357
360
|
}
|
|
358
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
359
|
-
const explicit =
|
|
361
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunk4NJK6P5Tjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
362
|
+
const explicit = _chunkXK3AJFYQjs.helpDetailFromArgv.call(void 0, argv);
|
|
360
363
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
361
364
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
362
365
|
const path = helpSeenPath(homeDir);
|
|
@@ -453,7 +456,7 @@ function shouldReport(stdout, stderr) {
|
|
|
453
456
|
}
|
|
454
457
|
function toolName(action) {
|
|
455
458
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
456
|
-
return typeof toolId === "string" ?
|
|
459
|
+
return typeof toolId === "string" ? _chunk6AL2VF3Ejs.redactFailureText.call(void 0, toolId) : null;
|
|
457
460
|
}
|
|
458
461
|
function chunkText(chunk) {
|
|
459
462
|
if (typeof chunk === "string") return chunk;
|
|
@@ -484,14 +487,14 @@ function watch(stream) {
|
|
|
484
487
|
}
|
|
485
488
|
async function postCommandOutput(body) {
|
|
486
489
|
try {
|
|
487
|
-
const baseUrl =
|
|
488
|
-
const apiKey =
|
|
490
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
491
|
+
const apiKey = _chunkVPJSQMWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
489
492
|
if (!apiKey) return;
|
|
490
|
-
const agentSessionId =
|
|
493
|
+
const agentSessionId = _chunk4NJK6P5Tjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
491
494
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
492
495
|
method: "POST",
|
|
493
496
|
headers: {
|
|
494
|
-
...
|
|
497
|
+
..._chunk6AL2VF3Ejs.failureReportHeaders.call(void 0, apiKey),
|
|
495
498
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
496
499
|
},
|
|
497
500
|
body: JSON.stringify(body),
|
|
@@ -507,14 +510,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
507
510
|
const stdoutWatch = watch(streams.stdout);
|
|
508
511
|
const stderrWatch = watch(streams.stderr);
|
|
509
512
|
return async (finished) => {
|
|
510
|
-
if (
|
|
513
|
+
if (_chunk6AL2VF3Ejs.isFailureReportingDisabled.call(void 0, )) return;
|
|
511
514
|
const [stdout, stderr] = await Promise.all([
|
|
512
515
|
stdoutWatch.settled(),
|
|
513
516
|
stderrWatch.settled()
|
|
514
517
|
]);
|
|
515
518
|
if (!shouldReport(stdout, stderr)) return;
|
|
516
519
|
await postCommandOutput({
|
|
517
|
-
command:
|
|
520
|
+
command: _chunk6AL2VF3Ejs.sanitizeCommand.call(void 0, invocation.argv),
|
|
518
521
|
tool: toolName(finished.action),
|
|
519
522
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
520
523
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -545,7 +548,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
545
548
|
function printUsageErrorJson(code, message, commandPath) {
|
|
546
549
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
547
550
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
548
|
-
|
|
551
|
+
_chunkXL4FFVWLjs.printJson.call(void 0, {
|
|
549
552
|
ok: false,
|
|
550
553
|
error: {
|
|
551
554
|
code,
|
|
@@ -603,7 +606,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
603
606
|
);
|
|
604
607
|
}
|
|
605
608
|
async function runPlayRunnerHealthCheck() {
|
|
606
|
-
|
|
609
|
+
_chunkVPJSQMWQjs.resolveConfig.call(void 0, );
|
|
607
610
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
608
611
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
609
612
|
try {
|
|
@@ -633,7 +636,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
636
|
});
|
|
634
637
|
let exitCode = 1;
|
|
635
638
|
try {
|
|
636
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
639
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-SEC3EE7H.js")));
|
|
637
640
|
exitCode = await handlePlayRun([
|
|
638
641
|
file,
|
|
639
642
|
"--input",
|
|
@@ -673,7 +676,7 @@ function preflightErrorMessage(error) {
|
|
|
673
676
|
return error instanceof Error ? error.message : String(error);
|
|
674
677
|
}
|
|
675
678
|
async function runPreflightCheck() {
|
|
676
|
-
const baseUrl =
|
|
679
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
677
680
|
const healthController = new AbortController();
|
|
678
681
|
const healthTimeout = setTimeout(
|
|
679
682
|
() => healthController.abort(),
|
|
@@ -690,14 +693,14 @@ async function runPreflightCheck() {
|
|
|
690
693
|
}).catch((error) => ({
|
|
691
694
|
status: "unreachable",
|
|
692
695
|
version: null,
|
|
693
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
696
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunk4NJK6P5Tjs.connectionFailureMessage.call(void 0,
|
|
694
697
|
baseUrl,
|
|
695
698
|
error instanceof Error ? error : new Error(String(error))
|
|
696
699
|
)
|
|
697
700
|
})).finally(() => clearTimeout(healthTimeout));
|
|
698
|
-
const apiKey =
|
|
699
|
-
const http = apiKey ? new (0,
|
|
700
|
-
|
|
701
|
+
const apiKey = _chunkVPJSQMWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
702
|
+
const http = apiKey ? new (0, _chunkVPJSQMWQjs.HttpClient)(
|
|
703
|
+
_chunkVPJSQMWQjs.resolveConfig.call(void 0, {
|
|
701
704
|
baseUrl,
|
|
702
705
|
apiKey,
|
|
703
706
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -742,7 +745,7 @@ async function runPreflightCheck() {
|
|
|
742
745
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
743
746
|
return {
|
|
744
747
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
745
|
-
cli_version:
|
|
748
|
+
cli_version: _chunk4NJK6P5Tjs.SDK_VERSION,
|
|
746
749
|
host: baseUrl,
|
|
747
750
|
health: {
|
|
748
751
|
status: healthResult.status,
|
|
@@ -769,7 +772,7 @@ async function runPreflightCheck() {
|
|
|
769
772
|
{
|
|
770
773
|
title: "preflight",
|
|
771
774
|
lines: [
|
|
772
|
-
`cli: ${
|
|
775
|
+
`cli: ${_chunk4NJK6P5Tjs.SDK_VERSION}`,
|
|
773
776
|
`host: ${baseUrl}`,
|
|
774
777
|
`health: ${healthResult.status}`,
|
|
775
778
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -796,12 +799,12 @@ function printPreflightHuman(data) {
|
|
|
796
799
|
}
|
|
797
800
|
async function newerCliCommandHint(baseUrl, command) {
|
|
798
801
|
if (!command.trim()) return null;
|
|
799
|
-
const { response, error } = await
|
|
802
|
+
const { response, error } = await _chunkBPGFNVH2js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
800
803
|
if (error || !response) return null;
|
|
801
804
|
const introduced = response.command_introduced_in;
|
|
802
805
|
if (introduced) {
|
|
803
806
|
return [
|
|
804
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
807
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunk4NJK6P5Tjs.SDK_VERSION}.`,
|
|
805
808
|
` ${introduced.reason}`,
|
|
806
809
|
` Update with: ${response.update_command}`,
|
|
807
810
|
" 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 +813,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
810
813
|
if (!response.update_required) return null;
|
|
811
814
|
return [
|
|
812
815
|
response.message,
|
|
813
|
-
` Installed: ${
|
|
816
|
+
` Installed: ${_chunk4NJK6P5Tjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
814
817
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
815
818
|
].join("\n");
|
|
816
819
|
}
|
|
817
|
-
async function runMain(ensureTransport, onAction) {
|
|
820
|
+
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
818
821
|
const mainStartedAt = Date.now();
|
|
819
|
-
|
|
822
|
+
_chunkXL4FFVWLjs.installJsonStderrGuard.call(void 0, );
|
|
820
823
|
let rootHelpStatus = "";
|
|
821
824
|
let commandFailed = false;
|
|
822
825
|
const deferredMaintenance = { inlinePlay: null };
|
|
823
|
-
|
|
826
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
824
827
|
phase: "cli.main_start",
|
|
825
828
|
argv: process.argv.slice(2)
|
|
826
829
|
});
|
|
827
830
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
828
|
-
const progress = printStartupPhase ?
|
|
831
|
+
const progress = printStartupPhase ? _chunkQRQBKLOMjs.createCliProgress.call(void 0, true) : null;
|
|
829
832
|
if (printStartupPhase) {
|
|
830
833
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
831
834
|
}
|
|
832
835
|
const program = new (0, _commander.Command)();
|
|
833
836
|
program.name("deepline").description(
|
|
834
837
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
835
|
-
).version(
|
|
838
|
+
).version(_chunk4NJK6P5Tjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
836
839
|
"--maintenance <policy>",
|
|
837
840
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
838
|
-
|
|
841
|
+
_chunkJY73USD7js.parseCliMaintenancePolicy,
|
|
839
842
|
"configured"
|
|
840
843
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
841
844
|
"beforeAll",
|
|
@@ -884,9 +887,9 @@ Exit codes:
|
|
|
884
887
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
885
888
|
`
|
|
886
889
|
).addHelpText("afterAll", ({ command }) => {
|
|
887
|
-
const key =
|
|
890
|
+
const key = _chunkXK3AJFYQjs.commandDocKey.call(void 0, command);
|
|
888
891
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
889
|
-
return
|
|
892
|
+
return _chunkXK3AJFYQjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
890
893
|
});
|
|
891
894
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
895
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -894,23 +897,25 @@ Exit codes:
|
|
|
894
897
|
path: compatibilityCommand,
|
|
895
898
|
args: actionCommand.processedArgs
|
|
896
899
|
});
|
|
897
|
-
const maintenance =
|
|
900
|
+
const maintenance = _chunkJY73USD7js.resolveCliMaintenancePolicy.call(void 0,
|
|
898
901
|
actionCommand.optsWithGlobals()
|
|
899
902
|
);
|
|
900
903
|
if (actionCommand.name() !== "version") {
|
|
901
904
|
await ensureTransport();
|
|
902
905
|
}
|
|
903
|
-
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() === _chunkBPGFNVH2js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
|
|
907
|
+
compatibilityCommand
|
|
908
|
+
) && _chunk3LXU22UZjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
904
909
|
return;
|
|
905
910
|
}
|
|
906
911
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
907
912
|
if (isToolExecuteCommand) {
|
|
908
|
-
|
|
913
|
+
_chunk2JXEZAJFjs.beginToolExecuteCommand.call(void 0, );
|
|
909
914
|
}
|
|
910
915
|
if (isToolExecuteCommand) {
|
|
911
|
-
const baseUrl =
|
|
912
|
-
if (maintenance !== "off")
|
|
913
|
-
|
|
916
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
917
|
+
if (maintenance !== "off") _chunkBPGFNVH2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
918
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
914
919
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
915
920
|
baseUrl,
|
|
916
921
|
command: compatibilityCommand
|
|
@@ -918,9 +923,9 @@ Exit codes:
|
|
|
918
923
|
return;
|
|
919
924
|
}
|
|
920
925
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
921
|
-
if (!playDryRun &&
|
|
926
|
+
if (!playDryRun && _chunkF6IXWFPFjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
922
927
|
if (maintenance !== "off") {
|
|
923
|
-
const baseUrl =
|
|
928
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
924
929
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
925
930
|
baseUrl,
|
|
926
931
|
command: actionCommand,
|
|
@@ -929,27 +934,27 @@ Exit codes:
|
|
|
929
934
|
}
|
|
930
935
|
return;
|
|
931
936
|
}
|
|
932
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
937
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunk2JXEZAJFjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
933
938
|
if (printStartupPhase) {
|
|
934
939
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
935
940
|
}
|
|
936
941
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
942
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
943
|
+
if (maintenance !== "off") _chunkBPGFNVH2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
944
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
940
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
941
|
-
const trusted = isToolExecuteCommand ? null :
|
|
945
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkVPJSQMWQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
946
|
+
const trusted = isToolExecuteCommand ? null : _chunkBPGFNVH2js.readTrustedCleanCompatibility.call(void 0,
|
|
942
947
|
baseUrl,
|
|
943
948
|
compatibilityCommand,
|
|
944
949
|
skillsVersion
|
|
945
950
|
);
|
|
946
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
951
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkBPGFNVH2js.readFreshCleanCompatibility.call(void 0,
|
|
947
952
|
baseUrl,
|
|
948
953
|
compatibilityCommand,
|
|
949
954
|
skillsVersion
|
|
950
955
|
) !== null;
|
|
951
956
|
if (trusted) {
|
|
952
|
-
|
|
957
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
953
958
|
phase: "cli.sdk_compatibility",
|
|
954
959
|
ms: 0,
|
|
955
960
|
ok: true,
|
|
@@ -959,7 +964,7 @@ Exit codes:
|
|
|
959
964
|
source: "trusted_cache"
|
|
960
965
|
});
|
|
961
966
|
}
|
|
962
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
967
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkJY73USD7js.traceCliSpan.call(void 0,
|
|
963
968
|
"cli.sdk_compatibility",
|
|
964
969
|
{
|
|
965
970
|
baseUrl,
|
|
@@ -967,12 +972,12 @@ Exit codes:
|
|
|
967
972
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
968
973
|
fastDeadline
|
|
969
974
|
},
|
|
970
|
-
() =>
|
|
975
|
+
() => _chunkBPGFNVH2js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
971
976
|
command: compatibilityCommand,
|
|
972
977
|
skillsVersion,
|
|
973
978
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
974
|
-
catalog:
|
|
975
|
-
...fastDeadline ? { timeoutMs:
|
|
979
|
+
catalog: _chunk2JXEZAJFjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
980
|
+
...fastDeadline ? { timeoutMs: _chunkBPGFNVH2js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
976
981
|
})
|
|
977
982
|
);
|
|
978
983
|
if (compatibility.error) {
|
|
@@ -983,7 +988,7 @@ Exit codes:
|
|
|
983
988
|
response: null
|
|
984
989
|
};
|
|
985
990
|
}
|
|
986
|
-
const relaunched = await
|
|
991
|
+
const relaunched = await _chunk2JXEZAJFjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
987
992
|
compatibility.response,
|
|
988
993
|
baseUrl,
|
|
989
994
|
maintenance
|
|
@@ -997,14 +1002,14 @@ Exit codes:
|
|
|
997
1002
|
};
|
|
998
1003
|
}
|
|
999
1004
|
const policy = compatibility.response;
|
|
1000
|
-
const jsonOutput =
|
|
1001
|
-
|
|
1005
|
+
const jsonOutput = _chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, );
|
|
1006
|
+
_chunkBPGFNVH2js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1002
1007
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1003
|
-
|
|
1008
|
+
_chunk2JXEZAJFjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkBPGFNVH2js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1004
1009
|
});
|
|
1005
1010
|
const advisory = compatibility.response;
|
|
1006
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1007
|
-
|
|
1011
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkBPGFNVH2js.isCiEnvironment.call(void 0, ) && !_chunk2JXEZAJFjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1012
|
+
_chunkXL4FFVWLjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1008
1013
|
}
|
|
1009
1014
|
return {
|
|
1010
1015
|
shouldContinue: true,
|
|
@@ -1021,10 +1026,10 @@ Exit codes:
|
|
|
1021
1026
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1022
1027
|
await runStartupStage(
|
|
1023
1028
|
"agent skills sync",
|
|
1024
|
-
() =>
|
|
1029
|
+
() => _chunkJY73USD7js.traceCliSpan.call(void 0,
|
|
1025
1030
|
"cli.sdk_skills_sync",
|
|
1026
1031
|
{ baseUrl: startup.baseUrl },
|
|
1027
|
-
() =>
|
|
1032
|
+
() => _chunkBPGFNVH2js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1028
1033
|
update: skillsUpdate,
|
|
1029
1034
|
mode: "detached"
|
|
1030
1035
|
})
|
|
@@ -1036,16 +1041,18 @@ Exit codes:
|
|
|
1036
1041
|
program,
|
|
1037
1042
|
process.argv.slice(2)
|
|
1038
1043
|
);
|
|
1039
|
-
const
|
|
1044
|
+
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1045
|
+
if (carriesFeedback) suppressOutputReport();
|
|
1046
|
+
const commandRegistrationStartedAt = _chunkJY73USD7js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1040
1047
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1041
1048
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1042
|
-
|
|
1049
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
1043
1050
|
phase: "cli.command_registration",
|
|
1044
1051
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1045
1052
|
});
|
|
1046
1053
|
}
|
|
1047
1054
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1048
|
-
if (
|
|
1055
|
+
if (_chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1049
1056
|
preflight.addHelpText(
|
|
1050
1057
|
"after",
|
|
1051
1058
|
`
|
|
@@ -1061,8 +1068,8 @@ Examples:
|
|
|
1061
1068
|
`
|
|
1062
1069
|
).action(async (options) => {
|
|
1063
1070
|
const data = await runPreflightCheck();
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1071
|
+
if (_chunkXL4FFVWLjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1072
|
+
_chunkXL4FFVWLjs.printJson.call(void 0, data);
|
|
1066
1073
|
} else {
|
|
1067
1074
|
printPreflightHuman(data);
|
|
1068
1075
|
}
|
|
@@ -1087,7 +1094,7 @@ Examples:
|
|
|
1087
1094
|
).action(async (options) => {
|
|
1088
1095
|
if (options.playRunner) {
|
|
1089
1096
|
const data = await runPlayRunnerHealthCheck();
|
|
1090
|
-
|
|
1097
|
+
_chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, data, {
|
|
1091
1098
|
json: options.json,
|
|
1092
1099
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1093
1100
|
`
|
|
@@ -1095,15 +1102,15 @@ Examples:
|
|
|
1095
1102
|
return;
|
|
1096
1103
|
}
|
|
1097
1104
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1099
|
-
const baseUrl =
|
|
1105
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-S2Z5YMU3.js")));
|
|
1106
|
+
const baseUrl = _chunkVPJSQMWQjs.resolveBaseUrlOnly.call(void 0, );
|
|
1100
1107
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1108
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1102
1109
|
readStatusBanner(baseUrl)
|
|
1103
1110
|
]);
|
|
1104
1111
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1105
1112
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1106
|
-
|
|
1113
|
+
_chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
|
|
1107
1114
|
{ ...data, status_banner: banner },
|
|
1108
1115
|
{
|
|
1109
1116
|
json: options.json,
|
|
@@ -1131,16 +1138,16 @@ Examples:
|
|
|
1131
1138
|
`
|
|
1132
1139
|
).action((options) => {
|
|
1133
1140
|
if (options.json) {
|
|
1134
|
-
|
|
1141
|
+
_chunkXL4FFVWLjs.printCompactJson.call(void 0, { version: _chunk4NJK6P5Tjs.SDK_VERSION });
|
|
1135
1142
|
return;
|
|
1136
1143
|
}
|
|
1137
|
-
process.stdout.write(`deepline ${
|
|
1144
|
+
process.stdout.write(`deepline ${_chunk4NJK6P5Tjs.SDK_VERSION}
|
|
1138
1145
|
`);
|
|
1139
1146
|
});
|
|
1140
1147
|
if (process.argv.slice(2).length === 0) {
|
|
1141
1148
|
program.outputHelp({ error: true });
|
|
1142
1149
|
console.error("\nerror: missing command (see usage above)");
|
|
1143
|
-
|
|
1150
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
1144
1151
|
phase: "cli.main_total",
|
|
1145
1152
|
ms: Date.now() - mainStartedAt,
|
|
1146
1153
|
ok: false,
|
|
@@ -1152,16 +1159,16 @@ Examples:
|
|
|
1152
1159
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1153
1160
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1154
1161
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1155
|
-
if (!
|
|
1156
|
-
const baseUrl =
|
|
1162
|
+
if (!_chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1163
|
+
const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, );
|
|
1157
1164
|
await ensureTransport();
|
|
1158
1165
|
const versionHint = await newerCliCommandHint(
|
|
1159
1166
|
baseUrl,
|
|
1160
1167
|
requestedTopLevelCommand
|
|
1161
1168
|
);
|
|
1162
|
-
if (
|
|
1169
|
+
if (_chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, )) {
|
|
1163
1170
|
if (versionHint) {
|
|
1164
|
-
|
|
1171
|
+
_chunkXL4FFVWLjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1165
1172
|
}
|
|
1166
1173
|
printUsageErrorJson(
|
|
1167
1174
|
"commander.unknownCommand",
|
|
@@ -1183,33 +1190,35 @@ Examples:
|
|
|
1183
1190
|
const helpArgs = process.argv.slice(2);
|
|
1184
1191
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1192
|
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: ${
|
|
1193
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-S2Z5YMU3.js")));
|
|
1194
|
+
rootHelpStatus = `Version: ${_chunk4NJK6P5Tjs.SDK_VERSION}
|
|
1188
1195
|
${await authStatusLine()}
|
|
1189
1196
|
`;
|
|
1190
1197
|
}
|
|
1191
1198
|
await program.parseAsync(process.argv);
|
|
1192
|
-
|
|
1199
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
1193
1200
|
phase: "cli.main_total",
|
|
1194
1201
|
ms: Date.now() - mainStartedAt,
|
|
1195
1202
|
ok: true
|
|
1196
1203
|
});
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1204
|
+
if (!carriesFeedback) {
|
|
1205
|
+
await _chunk6AL2VF3Ejs.maybeReportSdkCliFailure.call(void 0, {
|
|
1206
|
+
argv: process.argv.slice(2),
|
|
1207
|
+
startedAtMs: mainStartedAt,
|
|
1208
|
+
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1202
1211
|
} catch (error) {
|
|
1203
1212
|
commandFailed = true;
|
|
1204
1213
|
const commanderError = asCommanderError(error);
|
|
1205
|
-
|
|
1214
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
1206
1215
|
phase: "cli.main_total",
|
|
1207
1216
|
ms: Date.now() - mainStartedAt,
|
|
1208
1217
|
ok: false,
|
|
1209
1218
|
error: error instanceof Error ? error.message : String(error)
|
|
1210
1219
|
});
|
|
1211
1220
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1212
|
-
const wantsJson =
|
|
1221
|
+
const wantsJson = _chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, );
|
|
1213
1222
|
if (commanderError) {
|
|
1214
1223
|
const grammarError = [
|
|
1215
1224
|
"commander.unknownCommand",
|
|
@@ -1220,12 +1229,12 @@ ${await authStatusLine()}
|
|
|
1220
1229
|
if (grammarError) {
|
|
1221
1230
|
await ensureTransport();
|
|
1222
1231
|
const versionHint = await newerCliCommandHint(
|
|
1223
|
-
|
|
1232
|
+
_chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ),
|
|
1224
1233
|
commandPath
|
|
1225
1234
|
);
|
|
1226
1235
|
if (wantsJson) {
|
|
1227
1236
|
if (versionHint) {
|
|
1228
|
-
|
|
1237
|
+
_chunkXL4FFVWLjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1229
1238
|
}
|
|
1230
1239
|
} else {
|
|
1231
1240
|
if (versionHint) console.error(versionHint);
|
|
@@ -1245,55 +1254,57 @@ ${await authStatusLine()}
|
|
|
1245
1254
|
return;
|
|
1246
1255
|
} else if (wantsJson) {
|
|
1247
1256
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
|
-
|
|
1257
|
+
_chunkXL4FFVWLjs.addJsonNotice.call(void 0, {
|
|
1249
1258
|
code: "auth_required",
|
|
1250
1259
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1251
1260
|
});
|
|
1252
1261
|
}
|
|
1253
|
-
const providerConcurrency =
|
|
1262
|
+
const providerConcurrency = _chunkXL4FFVWLjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1254
1263
|
if (providerConcurrency) {
|
|
1255
|
-
|
|
1264
|
+
_chunkXL4FFVWLjs.addJsonNotice.call(void 0, {
|
|
1256
1265
|
code: "provider_concurrency",
|
|
1257
1266
|
message: providerConcurrency
|
|
1258
1267
|
});
|
|
1259
1268
|
}
|
|
1260
|
-
const payload =
|
|
1261
|
-
|
|
1269
|
+
const payload = _chunkXL4FFVWLjs.errorToJsonPayload.call(void 0, error);
|
|
1270
|
+
_chunkXL4FFVWLjs.printJson.call(void 0, {
|
|
1262
1271
|
...payload,
|
|
1263
1272
|
// The envelope names the code the process exits with, so a caller
|
|
1264
1273
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1265
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1274
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunk6AL2VF3Ejs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1266
1275
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1267
1276
|
});
|
|
1268
1277
|
} else if (error instanceof Error) {
|
|
1269
1278
|
console.error(`Error: ${error.message}`);
|
|
1270
|
-
const toolDiagnostic =
|
|
1279
|
+
const toolDiagnostic = _chunkXL4FFVWLjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1271
1280
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1272
1281
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1273
1282
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1274
1283
|
}
|
|
1275
|
-
const providerConcurrency =
|
|
1284
|
+
const providerConcurrency = _chunkXL4FFVWLjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1276
1285
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1277
1286
|
} else {
|
|
1278
1287
|
console.error(`Error: ${String(error)}`);
|
|
1279
1288
|
}
|
|
1280
1289
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1281
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1290
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk6AL2VF3Ejs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1282
1291
|
process.exitCode = failureExitCode;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1292
|
+
if (!carriesFeedback) {
|
|
1293
|
+
await _chunk6AL2VF3Ejs.maybeReportSdkCliFailure.call(void 0, {
|
|
1294
|
+
argv: process.argv.slice(2),
|
|
1295
|
+
startedAtMs: mainStartedAt,
|
|
1296
|
+
exitCode: failureExitCode,
|
|
1297
|
+
error
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1289
1300
|
} finally {
|
|
1290
|
-
|
|
1301
|
+
_chunk2JXEZAJFjs.finishToolExecuteCommand.call(void 0, );
|
|
1291
1302
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1292
1303
|
deferredMaintenance.inlinePlay = null;
|
|
1293
1304
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1294
1305
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1295
1306
|
}
|
|
1296
|
-
await
|
|
1307
|
+
await _chunk2JXEZAJFjs.runDeferredAutoUpdate.call(void 0, );
|
|
1297
1308
|
}
|
|
1298
1309
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1299
1310
|
}
|
|
@@ -1301,7 +1312,7 @@ async function main() {
|
|
|
1301
1312
|
let disposeTransport;
|
|
1302
1313
|
const ensureTransport = async () => {
|
|
1303
1314
|
if (disposeTransport) return;
|
|
1304
|
-
const transportStartedAt =
|
|
1315
|
+
const transportStartedAt = _chunkJY73USD7js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1305
1316
|
const hasProxy = [
|
|
1306
1317
|
"HTTP_PROXY",
|
|
1307
1318
|
"http_proxy",
|
|
@@ -1313,7 +1324,7 @@ async function main() {
|
|
|
1313
1324
|
disposeTransport = configureCliTransport();
|
|
1314
1325
|
}
|
|
1315
1326
|
if (transportStartedAt !== void 0) {
|
|
1316
|
-
|
|
1327
|
+
_chunkJY73USD7js.recordCliTrace.call(void 0, {
|
|
1317
1328
|
phase: "cli.transport_setup",
|
|
1318
1329
|
ms: performance.now() - transportStartedAt
|
|
1319
1330
|
});
|
|
@@ -1326,13 +1337,19 @@ async function main() {
|
|
|
1326
1337
|
let action = null;
|
|
1327
1338
|
let skipOutputReport = false;
|
|
1328
1339
|
try {
|
|
1329
|
-
await runMain(
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1340
|
+
await runMain(
|
|
1341
|
+
ensureTransport,
|
|
1342
|
+
(dispatched) => {
|
|
1343
|
+
action = dispatched;
|
|
1344
|
+
skipOutputReport ||= dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1345
|
+
},
|
|
1346
|
+
() => {
|
|
1347
|
+
skipOutputReport = true;
|
|
1348
|
+
}
|
|
1349
|
+
);
|
|
1350
|
+
const silentFailure = _chunkXL4FFVWLjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1334
1351
|
if (silentFailure) {
|
|
1335
|
-
|
|
1352
|
+
_chunkXL4FFVWLjs.printJson.call(void 0, {
|
|
1336
1353
|
ok: false,
|
|
1337
1354
|
exitCode: Number(process.exitCode),
|
|
1338
1355
|
error: { code: "CLI_ERROR", message: silentFailure }
|