deepline 0.3.509 → 0.3.511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +159 -0
- 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 +3 -3
- 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/play-runtime/scheduler-backends/absurd-runtime-worker.ts +218 -33
- package/dist/cli/artifacts-G6JHRHY5.mjs +268 -0
- package/dist/cli/artifacts-PLF5ZUS7.js +268 -0
- package/dist/cli/{auth-6IR2QH4N.mjs → auth-2XMJMDWG.mjs} +5 -5
- package/dist/cli/auth-PI2KS2CD.js +43 -0
- package/dist/cli/{billing-WEWHH6ST.mjs → billing-6C5AI42X.mjs} +7 -7
- package/dist/cli/{billing-SYBK3ZYU.js → billing-Z3XFXP3H.js} +82 -82
- package/dist/cli/{chunk-JZJNA57M.js → chunk-2Q4H2Y6N.js} +6 -6
- package/dist/cli/{chunk-VTVZ7EUA.js → chunk-2YVRIXVR.js} +9 -9
- package/dist/cli/{chunk-RSKAPLST.mjs → chunk-5WTLXL6O.mjs} +1 -1
- package/dist/cli/{chunk-YJM3NOME.mjs → chunk-77DPQI6W.mjs} +94 -10
- package/dist/cli/{chunk-FNLGMMJJ.mjs → chunk-ASXOFBF7.mjs} +2 -2
- package/dist/cli/{chunk-AO63MXT6.js → chunk-BHV7JKXQ.js} +1 -1
- package/dist/cli/{chunk-RA2NKHV5.js → chunk-D5VWSR4D.js} +5 -5
- package/dist/cli/{chunk-CMSPA5VX.js → chunk-FAGSSIOY.js} +6 -6
- package/dist/cli/{chunk-J5P4PDRT.js → chunk-FF25PDQ2.js} +94 -10
- package/dist/cli/{chunk-SEQIB5WJ.mjs → chunk-FTT2SBBH.mjs} +5 -5
- package/dist/cli/{chunk-5Y3I5LEQ.js → chunk-FV4PASXH.js} +16 -16
- package/dist/cli/{chunk-GTAU4C44.js → chunk-GD3ES3JU.js} +14 -14
- package/dist/cli/{chunk-HMAETS53.js → chunk-GGQHOLH6.js} +3 -3
- package/dist/cli/{chunk-T67NAGSD.mjs → chunk-GJWL4KTY.mjs} +4 -4
- package/dist/cli/{chunk-6KBVQ76G.mjs → chunk-HLEZQDEZ.mjs} +2 -2
- package/dist/cli/{chunk-WJ6H2W3O.mjs → chunk-ISY7PBIK.mjs} +5 -5
- package/dist/cli/{chunk-AD45WJHN.js → chunk-IYWN7M4I.js} +5 -5
- package/dist/cli/{chunk-3CZHC24N.mjs → chunk-JDDKJIZU.mjs} +1 -1
- package/dist/cli/{chunk-E3HWUGDT.mjs → chunk-JHBZBCU4.mjs} +1 -1
- package/dist/cli/{chunk-7KALZEDZ.js → chunk-JIY25SUX.js} +4 -4
- package/dist/cli/{chunk-726UDAV2.js → chunk-JYFLIQPE.js} +7 -7
- package/dist/cli/{chunk-DGOSW42X.js → chunk-K4JB2BZP.js} +96 -96
- package/dist/cli/{chunk-XEQH65DT.mjs → chunk-KK6NZHAJ.mjs} +1 -1
- package/dist/cli/chunk-KUDNPJ43.js +77 -0
- package/dist/cli/{chunk-IZW7IOD6.mjs → chunk-KXGH4YUQ.mjs} +1 -1
- package/dist/cli/{chunk-Q7G6WORO.js → chunk-KZBKQPSA.js} +2 -2
- package/dist/cli/{chunk-4DVANPBN.js → chunk-LDZYGM7W.js} +41 -41
- package/dist/cli/{chunk-XPKBYMJH.js → chunk-LKSJXTRP.js} +53 -53
- package/dist/cli/{chunk-Q5UO2ENN.js → chunk-NVMNMKZW.js} +3 -3
- package/dist/cli/{chunk-VZ773N7G.js → chunk-O37BQ2CG.js} +21 -10
- package/dist/cli/{chunk-OOD5LGUS.mjs → chunk-OQ4YBPOQ.mjs} +3 -3
- package/dist/cli/{chunk-UART6FGK.mjs → chunk-PCI4MMH7.mjs} +1 -1
- package/dist/cli/{chunk-2ZJRCAHG.js → chunk-PI45LZ5B.js} +11 -11
- package/dist/cli/{chunk-O527H5GY.js → chunk-PUFEARWT.js} +16 -16
- package/dist/cli/{chunk-25MAOMVS.mjs → chunk-QDWNVTTO.mjs} +2 -2
- package/dist/cli/{chunk-WUKNKFB3.mjs → chunk-RPPU3XB3.mjs} +2 -2
- package/dist/cli/{chunk-XIBNY6H6.mjs → chunk-S5C4CWSS.mjs} +5 -5
- package/dist/cli/{chunk-2U7Z4LFG.mjs → chunk-S6KEACD3.mjs} +6 -6
- package/dist/cli/{chunk-Y4M5HPQV.mjs → chunk-SI4QXATV.mjs} +5 -5
- package/dist/cli/{chunk-R2KNJMOY.mjs → chunk-VEOFISLZ.mjs} +1 -1
- package/dist/cli/{chunk-Z2LVZDO5.js → chunk-VHFTN6VY.js} +44 -44
- package/dist/cli/{chunk-54YPOG5W.mjs → chunk-VQ74WMKG.mjs} +15 -4
- package/dist/cli/{chunk-ZXGMWXZW.js → chunk-WDBEWOU6.js} +2 -2
- package/dist/cli/{chunk-6TBRWRJ2.js → chunk-XGXXNT4O.js} +270 -199
- package/dist/cli/chunk-XREZY4FA.mjs +77 -0
- package/dist/cli/{chunk-K2RCVD7S.mjs → chunk-XSBGWMI6.mjs} +72 -1
- package/dist/cli/{chunk-S7JEF2MR.mjs → chunk-XXQZYLLL.mjs} +2 -2
- package/dist/cli/{chunk-EEEWADSR.mjs → chunk-XZ6IZIQJ.mjs} +2 -2
- package/dist/cli/{chunk-WPBTWRKG.js → chunk-YX7E2VQM.js} +26 -26
- package/dist/cli/{chunk-FQCIYGQY.mjs → chunk-ZFJ2U76O.mjs} +2 -2
- package/dist/cli/{chunk-7NMPGX3W.js → chunk-ZWGBQKW7.js} +21 -21
- package/dist/cli/{chunk-VH522HUP.mjs → chunk-ZYVR4A4P.mjs} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-4LAJ2ZKG.mjs → csv-CNK6ZF3T.mjs} +4 -4
- package/dist/cli/{csv-5KNONIAX.js → csv-S44OGG2O.js} +13 -13
- package/dist/cli/{db-BEVCJI66.mjs → db-AVO6QJU6.mjs} +6 -6
- package/dist/cli/{db-5PEXOSN3.js → db-WKZ6EXNG.js} +27 -27
- package/dist/cli/{describe-TDJIUSD6.mjs → describe-2HQRT5MI.mjs} +18 -18
- package/dist/cli/describe-CCK77NER.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-KXCPU6YC.mjs → executions-DKHOR7HD.mjs} +6 -6
- package/dist/cli/{executions-36GV3A27.js → executions-MTAHNARA.js} +8 -8
- package/dist/cli/{feedback-GEUUT4S7.mjs → feedback-K6SJS4LG.mjs} +11 -7
- package/dist/cli/{feedback-SPQABV33.js → feedback-R2UABU3E.js} +15 -11
- package/dist/cli/{git-AE36X2R6.mjs → git-3EPA7433.mjs} +5 -5
- package/dist/cli/git-7L3PY2A4.js +25 -0
- package/dist/cli/index.js +177 -156
- package/dist/cli/index.mjs +80 -59
- package/dist/cli/{legacy-noops-TKPHN7WT.js → legacy-noops-3Q2D2F24.js} +9 -8
- package/dist/cli/{legacy-noops-LUEDAK7J.mjs → legacy-noops-66OPCJJD.mjs} +6 -5
- package/dist/cli/{monitors-JHJZ5XG7.mjs → monitors-2PYPRWT4.mjs} +7 -7
- package/dist/cli/{monitors-B2EAIGZI.js → monitors-KHH4MZDF.js} +100 -100
- package/dist/cli/{org-GUICCEBZ.mjs → org-WAW3OL7B.mjs} +6 -6
- package/dist/cli/{org-PYCPXEAU.js → org-X5G36B2Q.js} +72 -72
- package/dist/cli/{pages-Y2XI36HY.mjs → pages-KABWXDGW.mjs} +6 -6
- package/dist/cli/{pages-CV4TQNFY.js → pages-XDPHCHHU.js} +18 -18
- package/dist/cli/{play-VWCQNGZZ.mjs → play-654B2HQU.mjs} +18 -18
- package/dist/cli/{play-MTVK66JK.js → play-UE5FKQCO.js} +317 -317
- package/dist/cli/{providers-N72BUCXZ.js → providers-QT2BZMJ7.js} +9 -9
- package/dist/cli/{providers-ZOZTST3A.mjs → providers-SKNGX6IT.mjs} +6 -6
- package/dist/cli/{quickstart-DXIC3NHS.mjs → quickstart-BX7XMJIQ.mjs} +4 -4
- package/dist/cli/{quickstart-FK53VZB3.js → quickstart-XWDVAQTT.js} +6 -6
- package/dist/cli/{run-NNAYDCEN.js → run-C6YYD4AK.js} +41 -41
- package/dist/cli/{run-IL2KI33N.mjs → run-JTU4K4MY.mjs} +23 -23
- package/dist/cli/{search-7IPVMQCO.mjs → search-NHV4Y4SX.mjs} +8 -8
- package/dist/cli/search-RIFW5JCK.js +33 -0
- package/dist/cli/{search-output-ZY2GE35S.mjs → search-output-AAOMFK7K.mjs} +4 -4
- package/dist/cli/{search-output-YHTWLSDE.js → search-output-WLFFEGCY.js} +6 -6
- package/dist/cli/{secrets-ZML76SH2.js → secrets-H4WTLQJJ.js} +15 -15
- package/dist/cli/{secrets-BGUMHDZ7.mjs → secrets-S66PZSRO.mjs} +6 -6
- package/dist/cli/sessions-EFWO62XJ.js +18 -0
- package/dist/cli/{sessions-F5XO6HZJ.mjs → sessions-PY6FJX3O.mjs} +6 -5
- package/dist/cli/{settings-73SMIICV.mjs → settings-V7BM42KQ.mjs} +39 -12
- package/dist/cli/{settings-TOX2P5M5.js → settings-YO4FFPN6.js} +109 -82
- package/dist/cli/{setup-DNFHFQ7N.js → setup-IFZYYQ2W.js} +50 -50
- package/dist/cli/{setup-FDJZYBMS.mjs → setup-VUBM2HMH.mjs} +10 -10
- package/dist/cli/{skills-6HJ2IAY6.mjs → skills-EYWRSQQJ.mjs} +8 -8
- package/dist/cli/skills-LFP53SWQ.js +37 -0
- package/dist/cli/tools-SR2Q7KC5.js +57 -0
- package/dist/cli/{tools-4FJIIE4R.mjs → tools-VZOW4MUD.mjs} +17 -17
- package/dist/cli/update-ADZBZZZS.js +35 -0
- package/dist/cli/{update-UMRPPILV.mjs → update-CQDJJYU2.mjs} +10 -10
- package/dist/cli/{workflow-LSFOG5VU.mjs → workflow-2VRDIPF3.mjs} +7 -7
- package/dist/cli/{workflow-SK3BUHB4.js → workflow-XS3JEU6X.js} +17 -17
- package/dist/{client-DMpsMNH9.d.mts → client-By7bUS8h.d.mts} +1 -1
- package/dist/{client-BlwD-G4v.d.ts → client-CmlKSBXd.d.ts} +1 -1
- package/dist/{client-core-DwBLuEkm.d.ts → client-core-BM0mKhgp.d.ts} +93 -1
- package/dist/{client-core-CITtRTbB.d.mts → client-core-BZ3tpY_J.d.mts} +93 -1
- 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 +111 -106
- 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-SUTQ4SZQ.js +0 -43
- package/dist/cli/describe-ZB6G6DOV.js +0 -50
- package/dist/cli/git-UX7L6R32.js +0 -25
- package/dist/cli/search-OZHP5ZE2.js +0 -33
- package/dist/cli/sessions-WDINUUZ3.js +0 -17
- package/dist/cli/skills-NE7WN5PP.js +0 -37
- package/dist/cli/tools-ETX4MNNO.js +0 -57
- package/dist/cli/update-N2DMPSUH.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 _chunkFAGSSIOYjs = require('./chunk-FAGSSIOY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkKUDNPJ43js = require('./chunk-KUDNPJ43.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
|
-
var _chunk7NMPGX3Wjs = require('./chunk-7NMPGX3W.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
var _chunkZWGBQKW7js = require('./chunk-ZWGBQKW7.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
var _chunkZXGMWXZWjs = require('./chunk-ZXGMWXZW.js');
|
|
21
|
-
require('./chunk-O527H5GY.js');
|
|
22
|
-
require('./chunk-Q7G6WORO.js');
|
|
23
|
-
require('./chunk-4DVANPBN.js');
|
|
24
21
|
|
|
25
22
|
|
|
23
|
+
var _chunkWDBEWOU6js = require('./chunk-WDBEWOU6.js');
|
|
24
|
+
require('./chunk-PUFEARWT.js');
|
|
25
|
+
require('./chunk-KZBKQPSA.js');
|
|
26
|
+
require('./chunk-LDZYGM7W.js');
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
@@ -32,23 +33,25 @@ require('./chunk-4DVANPBN.js');
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
var _chunkZ2LVZDO5js = require('./chunk-Z2LVZDO5.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkVHFTN6VYjs = require('./chunk-VHFTN6VY.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
var _chunkNVMNMKZWjs = require('./chunk-NVMNMKZW.js');
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
|
|
46
|
-
var _chunkGTAU4C44js = require('./chunk-GTAU4C44.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
var _chunkGD3ES3JUjs = require('./chunk-GD3ES3JU.js');
|
|
49
50
|
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
var _chunkFF25PDQ2js = require('./chunk-FF25PDQ2.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 _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
|
|
@@ -71,18 +74,18 @@ var _chunk726UDAV2js = require('./chunk-726UDAV2.js');
|
|
|
71
74
|
|
|
72
75
|
|
|
73
76
|
|
|
74
|
-
var
|
|
77
|
+
var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
|
|
75
78
|
|
|
76
79
|
|
|
77
80
|
|
|
78
81
|
|
|
79
|
-
var
|
|
82
|
+
var _chunkJIY25SUXjs = require('./chunk-JIY25SUX.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-BHV7JKXQ.js');
|
|
86
89
|
require('./chunk-OG64RBAC.js');
|
|
87
90
|
require('./chunk-RLX5ZFNX.js');
|
|
88
91
|
require('./chunk-COGTRVWW.js');
|
|
@@ -163,56 +166,60 @@ 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-PI2KS2CD.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-QT2BZMJ7.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-RIFW5JCK.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-CCK77NER.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-C6YYD4AK.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-SR2Q7KC5.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-MTAHNARA.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-UE5FKQCO.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-EFWO62XJ.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-XS3JEU6X.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-XDPHCHHU.js")))).registerPagesCommands
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
names: ["artifacts"],
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./artifacts-PLF5ZUS7.js")))).registerArtifactsCommands
|
|
207
214
|
},
|
|
208
215
|
{
|
|
209
216
|
names: ["secrets"],
|
|
210
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
217
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-H4WTLQJJ.js")))).registerSecretsCommands
|
|
211
218
|
},
|
|
212
219
|
{
|
|
213
220
|
names: ["settings", "notifications"],
|
|
214
221
|
load: async () => {
|
|
215
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
222
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-YO4FFPN6.js")));
|
|
216
223
|
return (p) => {
|
|
217
224
|
commands.registerSettingsCommands(p);
|
|
218
225
|
commands.registerNotificationCommands(p);
|
|
@@ -221,51 +228,51 @@ var COMMAND_GROUPS = [
|
|
|
221
228
|
},
|
|
222
229
|
{
|
|
223
230
|
names: ["billing"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-Z3XFXP3H.js")))).registerBillingCommands
|
|
225
232
|
},
|
|
226
233
|
{
|
|
227
234
|
names: ["monitors"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
235
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-KHH4MZDF.js")))).registerMonitorsCommands
|
|
229
236
|
},
|
|
230
237
|
{
|
|
231
238
|
names: ["org"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-X5G36B2Q.js")))).registerOrgCommands
|
|
233
240
|
},
|
|
234
241
|
{
|
|
235
242
|
names: ["git", "projects", "deployments"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-7L3PY2A4.js")))).registerGitCommands
|
|
237
244
|
},
|
|
238
245
|
{
|
|
239
246
|
names: ["csv"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-S44OGG2O.js")))).registerCsvCommands
|
|
241
248
|
},
|
|
242
249
|
{
|
|
243
250
|
names: ["db"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-WKZ6EXNG.js")))).registerDbCommands
|
|
245
252
|
},
|
|
246
253
|
{
|
|
247
254
|
names: ["feedback"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-R2UABU3E.js")))).registerFeedbackCommands
|
|
249
256
|
},
|
|
250
257
|
{
|
|
251
258
|
names: ["enrich", "session", "backend"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3Q2D2F24.js")))).registerDeprecatedCommands
|
|
253
260
|
},
|
|
254
261
|
{
|
|
255
262
|
names: ["update"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-ADZBZZZS.js")))).registerUpdateCommand
|
|
257
264
|
},
|
|
258
265
|
{
|
|
259
266
|
names: ["skills", "skills-auto-sync"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
267
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-LFP53SWQ.js")))).registerSkillsCommand
|
|
261
268
|
},
|
|
262
269
|
{
|
|
263
270
|
names: ["setup", "doctor"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
271
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-IFZYYQ2W.js")))).registerSetupCommands
|
|
265
272
|
},
|
|
266
273
|
{
|
|
267
274
|
names: ["quickstart"],
|
|
268
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
275
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-XWDVAQTT.js")))).registerQuickstartCommands
|
|
269
276
|
}
|
|
270
277
|
];
|
|
271
278
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -291,8 +298,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
291
298
|
function createDeferredPlayRunMaintenance(input) {
|
|
292
299
|
return async () => {
|
|
293
300
|
try {
|
|
294
|
-
const skillsVersion =
|
|
295
|
-
const compatibility = await
|
|
301
|
+
const skillsVersion = _chunkGGQHOLH6js.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
302
|
+
const compatibility = await _chunkWDBEWOU6js.traceCliSpan.call(void 0,
|
|
296
303
|
"cli.sdk_compatibility_deferred",
|
|
297
304
|
{
|
|
298
305
|
baseUrl: input.baseUrl,
|
|
@@ -300,24 +307,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
300
307
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
301
308
|
},
|
|
302
309
|
async () => {
|
|
303
|
-
const trusted =
|
|
310
|
+
const trusted = _chunkVHFTN6VYjs.readTrustedCleanCompatibility.call(void 0,
|
|
304
311
|
input.baseUrl,
|
|
305
312
|
"plays run",
|
|
306
313
|
skillsVersion
|
|
307
314
|
);
|
|
308
315
|
if (trusted) return { response: trusted, error: null };
|
|
309
|
-
return
|
|
316
|
+
return _chunkVHFTN6VYjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
310
317
|
command: "plays run",
|
|
311
318
|
skillsVersion,
|
|
312
319
|
persistCache: input.policy !== "off",
|
|
313
|
-
catalog:
|
|
320
|
+
catalog: _chunkZWGBQKW7js.compatibilityCatalog.call(void 0, input.command)
|
|
314
321
|
});
|
|
315
322
|
}
|
|
316
323
|
);
|
|
317
324
|
if (compatibility.error || !compatibility.response) return;
|
|
318
325
|
const automaticUpdate = compatibility.response.auto_update;
|
|
319
326
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
320
|
-
await
|
|
327
|
+
await _chunkZWGBQKW7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
321
328
|
compatibility.response,
|
|
322
329
|
input.baseUrl,
|
|
323
330
|
input.policy
|
|
@@ -327,7 +334,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
327
334
|
compatibility.response,
|
|
328
335
|
"skills"
|
|
329
336
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
330
|
-
await
|
|
337
|
+
await _chunkVHFTN6VYjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
331
338
|
update: skillsUpdate,
|
|
332
339
|
mode: "detached"
|
|
333
340
|
});
|
|
@@ -355,8 +362,8 @@ var MAX_SESSIONS = 20;
|
|
|
355
362
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
356
363
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
357
364
|
}
|
|
358
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
359
|
-
const explicit =
|
|
365
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkJIY25SUXjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
366
|
+
const explicit = _chunkFF25PDQ2js.helpDetailFromArgv.call(void 0, argv);
|
|
360
367
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
361
368
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
362
369
|
const path = helpSeenPath(homeDir);
|
|
@@ -453,7 +460,7 @@ function shouldReport(stdout, stderr) {
|
|
|
453
460
|
}
|
|
454
461
|
function toolName(action) {
|
|
455
462
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
456
|
-
return typeof toolId === "string" ?
|
|
463
|
+
return typeof toolId === "string" ? _chunkGD3ES3JUjs.redactFailureText.call(void 0, toolId) : null;
|
|
457
464
|
}
|
|
458
465
|
function chunkText(chunk) {
|
|
459
466
|
if (typeof chunk === "string") return chunk;
|
|
@@ -484,14 +491,14 @@ function watch(stream) {
|
|
|
484
491
|
}
|
|
485
492
|
async function postCommandOutput(body) {
|
|
486
493
|
try {
|
|
487
|
-
const baseUrl =
|
|
488
|
-
const apiKey =
|
|
494
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
495
|
+
const apiKey = _chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
489
496
|
if (!apiKey) return;
|
|
490
|
-
const agentSessionId =
|
|
497
|
+
const agentSessionId = _chunkJIY25SUXjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
491
498
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
492
499
|
method: "POST",
|
|
493
500
|
headers: {
|
|
494
|
-
...
|
|
501
|
+
..._chunkGD3ES3JUjs.failureReportHeaders.call(void 0, apiKey),
|
|
495
502
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
496
503
|
},
|
|
497
504
|
body: JSON.stringify(body),
|
|
@@ -507,14 +514,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
507
514
|
const stdoutWatch = watch(streams.stdout);
|
|
508
515
|
const stderrWatch = watch(streams.stderr);
|
|
509
516
|
return async (finished) => {
|
|
510
|
-
if (
|
|
517
|
+
if (_chunkGD3ES3JUjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
511
518
|
const [stdout, stderr] = await Promise.all([
|
|
512
519
|
stdoutWatch.settled(),
|
|
513
520
|
stderrWatch.settled()
|
|
514
521
|
]);
|
|
515
522
|
if (!shouldReport(stdout, stderr)) return;
|
|
516
523
|
await postCommandOutput({
|
|
517
|
-
command:
|
|
524
|
+
command: _chunkGD3ES3JUjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
518
525
|
tool: toolName(finished.action),
|
|
519
526
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
520
527
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -545,7 +552,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
545
552
|
function printUsageErrorJson(code, message, commandPath) {
|
|
546
553
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
547
554
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
548
|
-
|
|
555
|
+
_chunkJYFLIQPEjs.printJson.call(void 0, {
|
|
549
556
|
ok: false,
|
|
550
557
|
error: {
|
|
551
558
|
code,
|
|
@@ -603,7 +610,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
603
610
|
);
|
|
604
611
|
}
|
|
605
612
|
async function runPlayRunnerHealthCheck() {
|
|
606
|
-
|
|
613
|
+
_chunkGGQHOLH6js.resolveConfig.call(void 0, );
|
|
607
614
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
608
615
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
609
616
|
try {
|
|
@@ -633,7 +640,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
640
|
});
|
|
634
641
|
let exitCode = 1;
|
|
635
642
|
try {
|
|
636
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
643
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-UE5FKQCO.js")));
|
|
637
644
|
exitCode = await handlePlayRun([
|
|
638
645
|
file,
|
|
639
646
|
"--input",
|
|
@@ -673,7 +680,7 @@ function preflightErrorMessage(error) {
|
|
|
673
680
|
return error instanceof Error ? error.message : String(error);
|
|
674
681
|
}
|
|
675
682
|
async function runPreflightCheck() {
|
|
676
|
-
const baseUrl =
|
|
683
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
677
684
|
const healthController = new AbortController();
|
|
678
685
|
const healthTimeout = setTimeout(
|
|
679
686
|
() => healthController.abort(),
|
|
@@ -690,14 +697,14 @@ async function runPreflightCheck() {
|
|
|
690
697
|
}).catch((error) => ({
|
|
691
698
|
status: "unreachable",
|
|
692
699
|
version: null,
|
|
693
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
700
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkJIY25SUXjs.connectionFailureMessage.call(void 0,
|
|
694
701
|
baseUrl,
|
|
695
702
|
error instanceof Error ? error : new Error(String(error))
|
|
696
703
|
)
|
|
697
704
|
})).finally(() => clearTimeout(healthTimeout));
|
|
698
|
-
const apiKey =
|
|
699
|
-
const http = apiKey ? new (0,
|
|
700
|
-
|
|
705
|
+
const apiKey = _chunkGGQHOLH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
706
|
+
const http = apiKey ? new (0, _chunkGGQHOLH6js.HttpClient)(
|
|
707
|
+
_chunkGGQHOLH6js.resolveConfig.call(void 0, {
|
|
701
708
|
baseUrl,
|
|
702
709
|
apiKey,
|
|
703
710
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -742,7 +749,7 @@ async function runPreflightCheck() {
|
|
|
742
749
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
743
750
|
return {
|
|
744
751
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
745
|
-
cli_version:
|
|
752
|
+
cli_version: _chunkJIY25SUXjs.SDK_VERSION,
|
|
746
753
|
host: baseUrl,
|
|
747
754
|
health: {
|
|
748
755
|
status: healthResult.status,
|
|
@@ -769,7 +776,7 @@ async function runPreflightCheck() {
|
|
|
769
776
|
{
|
|
770
777
|
title: "preflight",
|
|
771
778
|
lines: [
|
|
772
|
-
`cli: ${
|
|
779
|
+
`cli: ${_chunkJIY25SUXjs.SDK_VERSION}`,
|
|
773
780
|
`host: ${baseUrl}`,
|
|
774
781
|
`health: ${healthResult.status}`,
|
|
775
782
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -796,12 +803,12 @@ function printPreflightHuman(data) {
|
|
|
796
803
|
}
|
|
797
804
|
async function newerCliCommandHint(baseUrl, command) {
|
|
798
805
|
if (!command.trim()) return null;
|
|
799
|
-
const { response, error } = await
|
|
806
|
+
const { response, error } = await _chunkVHFTN6VYjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
800
807
|
if (error || !response) return null;
|
|
801
808
|
const introduced = response.command_introduced_in;
|
|
802
809
|
if (introduced) {
|
|
803
810
|
return [
|
|
804
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
811
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkJIY25SUXjs.SDK_VERSION}.`,
|
|
805
812
|
` ${introduced.reason}`,
|
|
806
813
|
` Update with: ${response.update_command}`,
|
|
807
814
|
" 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 +817,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
810
817
|
if (!response.update_required) return null;
|
|
811
818
|
return [
|
|
812
819
|
response.message,
|
|
813
|
-
` Installed: ${
|
|
820
|
+
` Installed: ${_chunkJIY25SUXjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
814
821
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
815
822
|
].join("\n");
|
|
816
823
|
}
|
|
817
|
-
async function runMain(ensureTransport, onAction) {
|
|
824
|
+
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
818
825
|
const mainStartedAt = Date.now();
|
|
819
|
-
|
|
826
|
+
_chunkJYFLIQPEjs.installJsonStderrGuard.call(void 0, );
|
|
820
827
|
let rootHelpStatus = "";
|
|
821
828
|
let commandFailed = false;
|
|
822
829
|
const deferredMaintenance = { inlinePlay: null };
|
|
823
|
-
|
|
830
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
824
831
|
phase: "cli.main_start",
|
|
825
832
|
argv: process.argv.slice(2)
|
|
826
833
|
});
|
|
827
834
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
828
|
-
const progress = printStartupPhase ?
|
|
835
|
+
const progress = printStartupPhase ? _chunkNVMNMKZWjs.createCliProgress.call(void 0, true) : null;
|
|
829
836
|
if (printStartupPhase) {
|
|
830
837
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
831
838
|
}
|
|
832
839
|
const program = new (0, _commander.Command)();
|
|
833
840
|
program.name("deepline").description(
|
|
834
841
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
835
|
-
).version(
|
|
842
|
+
).version(_chunkJIY25SUXjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
836
843
|
"--maintenance <policy>",
|
|
837
844
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
838
|
-
|
|
845
|
+
_chunkWDBEWOU6js.parseCliMaintenancePolicy,
|
|
839
846
|
"configured"
|
|
840
847
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
841
848
|
"beforeAll",
|
|
@@ -884,9 +891,9 @@ Exit codes:
|
|
|
884
891
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
885
892
|
`
|
|
886
893
|
).addHelpText("afterAll", ({ command }) => {
|
|
887
|
-
const key =
|
|
894
|
+
const key = _chunkFF25PDQ2js.commandDocKey.call(void 0, command);
|
|
888
895
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
889
|
-
return
|
|
896
|
+
return _chunkFF25PDQ2js.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
890
897
|
});
|
|
891
898
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
899
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -894,23 +901,25 @@ Exit codes:
|
|
|
894
901
|
path: compatibilityCommand,
|
|
895
902
|
args: actionCommand.processedArgs
|
|
896
903
|
});
|
|
897
|
-
const maintenance =
|
|
904
|
+
const maintenance = _chunkWDBEWOU6js.resolveCliMaintenancePolicy.call(void 0,
|
|
898
905
|
actionCommand.optsWithGlobals()
|
|
899
906
|
);
|
|
900
907
|
if (actionCommand.name() !== "version") {
|
|
901
908
|
await ensureTransport();
|
|
902
909
|
}
|
|
903
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
910
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkVHFTN6VYjs.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(
|
|
911
|
+
compatibilityCommand
|
|
912
|
+
) && _chunkKUDNPJ43js.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
904
913
|
return;
|
|
905
914
|
}
|
|
906
915
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
907
916
|
if (isToolExecuteCommand) {
|
|
908
|
-
|
|
917
|
+
_chunkZWGBQKW7js.beginToolExecuteCommand.call(void 0, );
|
|
909
918
|
}
|
|
910
919
|
if (isToolExecuteCommand) {
|
|
911
|
-
const baseUrl =
|
|
912
|
-
if (maintenance !== "off")
|
|
913
|
-
|
|
920
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
921
|
+
if (maintenance !== "off") _chunkVHFTN6VYjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
922
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
914
923
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
915
924
|
baseUrl,
|
|
916
925
|
command: compatibilityCommand
|
|
@@ -918,9 +927,9 @@ Exit codes:
|
|
|
918
927
|
return;
|
|
919
928
|
}
|
|
920
929
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
921
|
-
if (!playDryRun &&
|
|
930
|
+
if (!playDryRun && _chunkFAGSSIOYjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
922
931
|
if (maintenance !== "off") {
|
|
923
|
-
const baseUrl =
|
|
932
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
924
933
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
925
934
|
baseUrl,
|
|
926
935
|
command: actionCommand,
|
|
@@ -929,27 +938,27 @@ Exit codes:
|
|
|
929
938
|
}
|
|
930
939
|
return;
|
|
931
940
|
}
|
|
932
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
941
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkZWGBQKW7js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
933
942
|
if (printStartupPhase) {
|
|
934
943
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
935
944
|
}
|
|
936
945
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
946
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
947
|
+
if (maintenance !== "off") _chunkVHFTN6VYjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
948
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
940
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
941
|
-
const trusted = isToolExecuteCommand ? null :
|
|
949
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkGGQHOLH6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
950
|
+
const trusted = isToolExecuteCommand ? null : _chunkVHFTN6VYjs.readTrustedCleanCompatibility.call(void 0,
|
|
942
951
|
baseUrl,
|
|
943
952
|
compatibilityCommand,
|
|
944
953
|
skillsVersion
|
|
945
954
|
);
|
|
946
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
955
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkVHFTN6VYjs.readFreshCleanCompatibility.call(void 0,
|
|
947
956
|
baseUrl,
|
|
948
957
|
compatibilityCommand,
|
|
949
958
|
skillsVersion
|
|
950
959
|
) !== null;
|
|
951
960
|
if (trusted) {
|
|
952
|
-
|
|
961
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
953
962
|
phase: "cli.sdk_compatibility",
|
|
954
963
|
ms: 0,
|
|
955
964
|
ok: true,
|
|
@@ -959,7 +968,7 @@ Exit codes:
|
|
|
959
968
|
source: "trusted_cache"
|
|
960
969
|
});
|
|
961
970
|
}
|
|
962
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
971
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkWDBEWOU6js.traceCliSpan.call(void 0,
|
|
963
972
|
"cli.sdk_compatibility",
|
|
964
973
|
{
|
|
965
974
|
baseUrl,
|
|
@@ -967,12 +976,12 @@ Exit codes:
|
|
|
967
976
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
968
977
|
fastDeadline
|
|
969
978
|
},
|
|
970
|
-
() =>
|
|
979
|
+
() => _chunkVHFTN6VYjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
971
980
|
command: compatibilityCommand,
|
|
972
981
|
skillsVersion,
|
|
973
982
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
974
|
-
catalog:
|
|
975
|
-
...fastDeadline ? { timeoutMs:
|
|
983
|
+
catalog: _chunkZWGBQKW7js.compatibilityCatalog.call(void 0, actionCommand),
|
|
984
|
+
...fastDeadline ? { timeoutMs: _chunkVHFTN6VYjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
976
985
|
})
|
|
977
986
|
);
|
|
978
987
|
if (compatibility.error) {
|
|
@@ -983,7 +992,7 @@ Exit codes:
|
|
|
983
992
|
response: null
|
|
984
993
|
};
|
|
985
994
|
}
|
|
986
|
-
const relaunched = await
|
|
995
|
+
const relaunched = await _chunkZWGBQKW7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
987
996
|
compatibility.response,
|
|
988
997
|
baseUrl,
|
|
989
998
|
maintenance
|
|
@@ -997,14 +1006,14 @@ Exit codes:
|
|
|
997
1006
|
};
|
|
998
1007
|
}
|
|
999
1008
|
const policy = compatibility.response;
|
|
1000
|
-
const jsonOutput =
|
|
1001
|
-
|
|
1009
|
+
const jsonOutput = _chunkJYFLIQPEjs.isJsonOutputMode.call(void 0, );
|
|
1010
|
+
_chunkVHFTN6VYjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1002
1011
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1003
|
-
|
|
1012
|
+
_chunkZWGBQKW7js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkVHFTN6VYjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1004
1013
|
});
|
|
1005
1014
|
const advisory = compatibility.response;
|
|
1006
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1007
|
-
|
|
1015
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkVHFTN6VYjs.isCiEnvironment.call(void 0, ) && !_chunkZWGBQKW7js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1016
|
+
_chunkJYFLIQPEjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1008
1017
|
}
|
|
1009
1018
|
return {
|
|
1010
1019
|
shouldContinue: true,
|
|
@@ -1021,10 +1030,10 @@ Exit codes:
|
|
|
1021
1030
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1022
1031
|
await runStartupStage(
|
|
1023
1032
|
"agent skills sync",
|
|
1024
|
-
() =>
|
|
1033
|
+
() => _chunkWDBEWOU6js.traceCliSpan.call(void 0,
|
|
1025
1034
|
"cli.sdk_skills_sync",
|
|
1026
1035
|
{ baseUrl: startup.baseUrl },
|
|
1027
|
-
() =>
|
|
1036
|
+
() => _chunkVHFTN6VYjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1028
1037
|
update: skillsUpdate,
|
|
1029
1038
|
mode: "detached"
|
|
1030
1039
|
})
|
|
@@ -1036,16 +1045,18 @@ Exit codes:
|
|
|
1036
1045
|
program,
|
|
1037
1046
|
process.argv.slice(2)
|
|
1038
1047
|
);
|
|
1039
|
-
const
|
|
1048
|
+
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1049
|
+
if (carriesFeedback) suppressOutputReport();
|
|
1050
|
+
const commandRegistrationStartedAt = _chunkWDBEWOU6js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1040
1051
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1041
1052
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1042
|
-
|
|
1053
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
1043
1054
|
phase: "cli.command_registration",
|
|
1044
1055
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1045
1056
|
});
|
|
1046
1057
|
}
|
|
1047
1058
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1048
|
-
if (
|
|
1059
|
+
if (_chunkJYFLIQPEjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1049
1060
|
preflight.addHelpText(
|
|
1050
1061
|
"after",
|
|
1051
1062
|
`
|
|
@@ -1061,8 +1072,8 @@ Examples:
|
|
|
1061
1072
|
`
|
|
1062
1073
|
).action(async (options) => {
|
|
1063
1074
|
const data = await runPreflightCheck();
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1075
|
+
if (_chunkJYFLIQPEjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1076
|
+
_chunkJYFLIQPEjs.printJson.call(void 0, data);
|
|
1066
1077
|
} else {
|
|
1067
1078
|
printPreflightHuman(data);
|
|
1068
1079
|
}
|
|
@@ -1087,7 +1098,7 @@ Examples:
|
|
|
1087
1098
|
).action(async (options) => {
|
|
1088
1099
|
if (options.playRunner) {
|
|
1089
1100
|
const data = await runPlayRunnerHealthCheck();
|
|
1090
|
-
|
|
1101
|
+
_chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, data, {
|
|
1091
1102
|
json: options.json,
|
|
1092
1103
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1093
1104
|
`
|
|
@@ -1095,15 +1106,15 @@ Examples:
|
|
|
1095
1106
|
return;
|
|
1096
1107
|
}
|
|
1097
1108
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1099
|
-
const baseUrl =
|
|
1109
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-PI2KS2CD.js")));
|
|
1110
|
+
const baseUrl = _chunkGGQHOLH6js.resolveBaseUrlOnly.call(void 0, );
|
|
1100
1111
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1112
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1102
1113
|
readStatusBanner(baseUrl)
|
|
1103
1114
|
]);
|
|
1104
1115
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1105
1116
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1106
|
-
|
|
1117
|
+
_chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
|
|
1107
1118
|
{ ...data, status_banner: banner },
|
|
1108
1119
|
{
|
|
1109
1120
|
json: options.json,
|
|
@@ -1131,16 +1142,16 @@ Examples:
|
|
|
1131
1142
|
`
|
|
1132
1143
|
).action((options) => {
|
|
1133
1144
|
if (options.json) {
|
|
1134
|
-
|
|
1145
|
+
_chunkJYFLIQPEjs.printCompactJson.call(void 0, { version: _chunkJIY25SUXjs.SDK_VERSION });
|
|
1135
1146
|
return;
|
|
1136
1147
|
}
|
|
1137
|
-
process.stdout.write(`deepline ${
|
|
1148
|
+
process.stdout.write(`deepline ${_chunkJIY25SUXjs.SDK_VERSION}
|
|
1138
1149
|
`);
|
|
1139
1150
|
});
|
|
1140
1151
|
if (process.argv.slice(2).length === 0) {
|
|
1141
1152
|
program.outputHelp({ error: true });
|
|
1142
1153
|
console.error("\nerror: missing command (see usage above)");
|
|
1143
|
-
|
|
1154
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
1144
1155
|
phase: "cli.main_total",
|
|
1145
1156
|
ms: Date.now() - mainStartedAt,
|
|
1146
1157
|
ok: false,
|
|
@@ -1152,16 +1163,16 @@ Examples:
|
|
|
1152
1163
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1153
1164
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1154
1165
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1155
|
-
if (!
|
|
1156
|
-
const baseUrl =
|
|
1166
|
+
if (!_chunkJYFLIQPEjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1167
|
+
const baseUrl = _chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, );
|
|
1157
1168
|
await ensureTransport();
|
|
1158
1169
|
const versionHint = await newerCliCommandHint(
|
|
1159
1170
|
baseUrl,
|
|
1160
1171
|
requestedTopLevelCommand
|
|
1161
1172
|
);
|
|
1162
|
-
if (
|
|
1173
|
+
if (_chunkJYFLIQPEjs.isJsonOutputMode.call(void 0, )) {
|
|
1163
1174
|
if (versionHint) {
|
|
1164
|
-
|
|
1175
|
+
_chunkJYFLIQPEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1165
1176
|
}
|
|
1166
1177
|
printUsageErrorJson(
|
|
1167
1178
|
"commander.unknownCommand",
|
|
@@ -1183,33 +1194,35 @@ Examples:
|
|
|
1183
1194
|
const helpArgs = process.argv.slice(2);
|
|
1184
1195
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1196
|
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: ${
|
|
1197
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-PI2KS2CD.js")));
|
|
1198
|
+
rootHelpStatus = `Version: ${_chunkJIY25SUXjs.SDK_VERSION}
|
|
1188
1199
|
${await authStatusLine()}
|
|
1189
1200
|
`;
|
|
1190
1201
|
}
|
|
1191
1202
|
await program.parseAsync(process.argv);
|
|
1192
|
-
|
|
1203
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
1193
1204
|
phase: "cli.main_total",
|
|
1194
1205
|
ms: Date.now() - mainStartedAt,
|
|
1195
1206
|
ok: true
|
|
1196
1207
|
});
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1208
|
+
if (!carriesFeedback) {
|
|
1209
|
+
await _chunkGD3ES3JUjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1210
|
+
argv: process.argv.slice(2),
|
|
1211
|
+
startedAtMs: mainStartedAt,
|
|
1212
|
+
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1213
|
+
});
|
|
1214
|
+
}
|
|
1202
1215
|
} catch (error) {
|
|
1203
1216
|
commandFailed = true;
|
|
1204
1217
|
const commanderError = asCommanderError(error);
|
|
1205
|
-
|
|
1218
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
1206
1219
|
phase: "cli.main_total",
|
|
1207
1220
|
ms: Date.now() - mainStartedAt,
|
|
1208
1221
|
ok: false,
|
|
1209
1222
|
error: error instanceof Error ? error.message : String(error)
|
|
1210
1223
|
});
|
|
1211
1224
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1212
|
-
const wantsJson =
|
|
1225
|
+
const wantsJson = _chunkJYFLIQPEjs.isJsonOutputMode.call(void 0, );
|
|
1213
1226
|
if (commanderError) {
|
|
1214
1227
|
const grammarError = [
|
|
1215
1228
|
"commander.unknownCommand",
|
|
@@ -1220,12 +1233,12 @@ ${await authStatusLine()}
|
|
|
1220
1233
|
if (grammarError) {
|
|
1221
1234
|
await ensureTransport();
|
|
1222
1235
|
const versionHint = await newerCliCommandHint(
|
|
1223
|
-
|
|
1236
|
+
_chunkGGQHOLH6js.autoDetectBaseUrl.call(void 0, ),
|
|
1224
1237
|
commandPath
|
|
1225
1238
|
);
|
|
1226
1239
|
if (wantsJson) {
|
|
1227
1240
|
if (versionHint) {
|
|
1228
|
-
|
|
1241
|
+
_chunkJYFLIQPEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1229
1242
|
}
|
|
1230
1243
|
} else {
|
|
1231
1244
|
if (versionHint) console.error(versionHint);
|
|
@@ -1245,55 +1258,57 @@ ${await authStatusLine()}
|
|
|
1245
1258
|
return;
|
|
1246
1259
|
} else if (wantsJson) {
|
|
1247
1260
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
|
-
|
|
1261
|
+
_chunkJYFLIQPEjs.addJsonNotice.call(void 0, {
|
|
1249
1262
|
code: "auth_required",
|
|
1250
1263
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1251
1264
|
});
|
|
1252
1265
|
}
|
|
1253
|
-
const providerConcurrency =
|
|
1266
|
+
const providerConcurrency = _chunkJYFLIQPEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1254
1267
|
if (providerConcurrency) {
|
|
1255
|
-
|
|
1268
|
+
_chunkJYFLIQPEjs.addJsonNotice.call(void 0, {
|
|
1256
1269
|
code: "provider_concurrency",
|
|
1257
1270
|
message: providerConcurrency
|
|
1258
1271
|
});
|
|
1259
1272
|
}
|
|
1260
|
-
const payload =
|
|
1261
|
-
|
|
1273
|
+
const payload = _chunkJYFLIQPEjs.errorToJsonPayload.call(void 0, error);
|
|
1274
|
+
_chunkJYFLIQPEjs.printJson.call(void 0, {
|
|
1262
1275
|
...payload,
|
|
1263
1276
|
// The envelope names the code the process exits with, so a caller
|
|
1264
1277
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1265
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1278
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkGD3ES3JUjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1266
1279
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1267
1280
|
});
|
|
1268
1281
|
} else if (error instanceof Error) {
|
|
1269
1282
|
console.error(`Error: ${error.message}`);
|
|
1270
|
-
const toolDiagnostic =
|
|
1283
|
+
const toolDiagnostic = _chunkJYFLIQPEjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1271
1284
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1272
1285
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1273
1286
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1274
1287
|
}
|
|
1275
|
-
const providerConcurrency =
|
|
1288
|
+
const providerConcurrency = _chunkJYFLIQPEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1276
1289
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1277
1290
|
} else {
|
|
1278
1291
|
console.error(`Error: ${String(error)}`);
|
|
1279
1292
|
}
|
|
1280
1293
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1281
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1294
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkGD3ES3JUjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1282
1295
|
process.exitCode = failureExitCode;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1296
|
+
if (!carriesFeedback) {
|
|
1297
|
+
await _chunkGD3ES3JUjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1298
|
+
argv: process.argv.slice(2),
|
|
1299
|
+
startedAtMs: mainStartedAt,
|
|
1300
|
+
exitCode: failureExitCode,
|
|
1301
|
+
error
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1289
1304
|
} finally {
|
|
1290
|
-
|
|
1305
|
+
_chunkZWGBQKW7js.finishToolExecuteCommand.call(void 0, );
|
|
1291
1306
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1292
1307
|
deferredMaintenance.inlinePlay = null;
|
|
1293
1308
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1294
1309
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1295
1310
|
}
|
|
1296
|
-
await
|
|
1311
|
+
await _chunkZWGBQKW7js.runDeferredAutoUpdate.call(void 0, );
|
|
1297
1312
|
}
|
|
1298
1313
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1299
1314
|
}
|
|
@@ -1301,7 +1316,7 @@ async function main() {
|
|
|
1301
1316
|
let disposeTransport;
|
|
1302
1317
|
const ensureTransport = async () => {
|
|
1303
1318
|
if (disposeTransport) return;
|
|
1304
|
-
const transportStartedAt =
|
|
1319
|
+
const transportStartedAt = _chunkWDBEWOU6js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1305
1320
|
const hasProxy = [
|
|
1306
1321
|
"HTTP_PROXY",
|
|
1307
1322
|
"http_proxy",
|
|
@@ -1313,7 +1328,7 @@ async function main() {
|
|
|
1313
1328
|
disposeTransport = configureCliTransport();
|
|
1314
1329
|
}
|
|
1315
1330
|
if (transportStartedAt !== void 0) {
|
|
1316
|
-
|
|
1331
|
+
_chunkWDBEWOU6js.recordCliTrace.call(void 0, {
|
|
1317
1332
|
phase: "cli.transport_setup",
|
|
1318
1333
|
ms: performance.now() - transportStartedAt
|
|
1319
1334
|
});
|
|
@@ -1326,13 +1341,19 @@ async function main() {
|
|
|
1326
1341
|
let action = null;
|
|
1327
1342
|
let skipOutputReport = false;
|
|
1328
1343
|
try {
|
|
1329
|
-
await runMain(
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1344
|
+
await runMain(
|
|
1345
|
+
ensureTransport,
|
|
1346
|
+
(dispatched) => {
|
|
1347
|
+
action = dispatched;
|
|
1348
|
+
skipOutputReport ||= dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1349
|
+
},
|
|
1350
|
+
() => {
|
|
1351
|
+
skipOutputReport = true;
|
|
1352
|
+
}
|
|
1353
|
+
);
|
|
1354
|
+
const silentFailure = _chunkJYFLIQPEjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1334
1355
|
if (silentFailure) {
|
|
1335
|
-
|
|
1356
|
+
_chunkJYFLIQPEjs.printJson.call(void 0, {
|
|
1336
1357
|
ok: false,
|
|
1337
1358
|
exitCode: Number(process.exitCode),
|
|
1338
1359
|
error: { code: "CLI_ERROR", message: silentFailure }
|