deepline 0.3.550 → 0.3.552
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 +23 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
- package/dist/bundling-sources/sdk/src/types.ts +22 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +42 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +31 -0
- package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +163 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +187 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +102 -29
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +854 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +43 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +38 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +16 -0
- package/dist/cli/{auth-UJCAHGZG.mjs → auth-KVSBJZOX.mjs} +5 -5
- package/dist/cli/auth-MMNVWATX.js +43 -0
- package/dist/cli/{billing-RYWMI7JJ.mjs → billing-54RHFEBI.mjs} +20 -13
- package/dist/cli/{billing-VO2O5O5O.js → billing-FQREA7UA.js} +109 -102
- package/dist/cli/chunk-2RIKOPIM.mjs +9 -0
- package/dist/cli/{chunk-XYIECA7M.js → chunk-2WFPHBR4.js} +30 -8
- package/dist/cli/{chunk-SBNNK73L.js → chunk-3FD5EQ62.js} +6 -6
- package/dist/cli/{chunk-JLFOQRWM.js → chunk-45PVGZST.js} +270 -270
- package/dist/cli/{chunk-YSYOQYZE.js → chunk-4MK42735.js} +48 -44
- package/dist/cli/{chunk-2IW5GKB4.js → chunk-4NQF6KJ3.js} +13 -13
- package/dist/cli/{chunk-72NXIFOT.mjs → chunk-4TALT2M3.mjs} +1 -1
- package/dist/cli/{chunk-ADWMIZCB.js → chunk-4UUR4TCH.js} +22 -13
- package/dist/cli/{chunk-EMPXPEIQ.mjs → chunk-57VZVF5D.mjs} +3 -3
- package/dist/cli/{chunk-5J3TRWTB.js → chunk-634ZDA3F.js} +1 -1
- package/dist/cli/{chunk-FMXLQHM2.mjs → chunk-6O5HOODW.mjs} +13 -13
- package/dist/cli/{chunk-HCFH2V27.mjs → chunk-6PRW5UBA.mjs} +3 -2
- package/dist/cli/{chunk-N2Y2IGNB.mjs → chunk-6RZOWL2V.mjs} +1 -1
- package/dist/cli/{chunk-JKLDCFY5.js → chunk-6YCA5NKJ.js} +11 -11
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
- package/dist/cli/{chunk-DGUTBLXF.js → chunk-77AAAGVB.js} +3 -2
- package/dist/cli/{chunk-OKNOQRQ3.js → chunk-7IKQKKNX.js} +3 -3
- package/dist/cli/{chunk-JYUIIDZO.js → chunk-ADRC5I3R.js} +23 -22
- package/dist/cli/{chunk-IZCPOX7X.mjs → chunk-AQWQ2BFX.mjs} +1 -1
- package/dist/cli/{chunk-7BWMCVYU.mjs → chunk-AWJPDPMA.mjs} +1 -1
- package/dist/cli/{chunk-S6XOKGBF.mjs → chunk-AZQ264ID.mjs} +1 -1
- package/dist/cli/{chunk-EU23QOJ6.js → chunk-BAIST2BR.js} +26 -26
- package/dist/cli/{chunk-6P7TGCHQ.mjs → chunk-BGBJV26E.mjs} +10 -3
- package/dist/cli/{chunk-COHCKZQK.mjs → chunk-DJ2JDK4O.mjs} +2 -1
- package/dist/cli/{chunk-E4S7OE7B.mjs → chunk-EOPEYCY7.mjs} +3 -3
- package/dist/cli/{chunk-LUULRAQB.mjs → chunk-EUPVF4SU.mjs} +10 -7
- package/dist/cli/{chunk-TB3WT76F.js → chunk-F2LH7TGF.js} +23 -20
- package/dist/cli/{chunk-UL7HWZO7.mjs → chunk-FTJLJCE5.mjs} +2 -2
- package/dist/cli/{chunk-3WG2GURT.js → chunk-G4O75EXF.js} +9 -9
- package/dist/cli/{chunk-7AOFSZJM.mjs → chunk-GGGAEVCX.mjs} +23 -1
- package/dist/cli/{chunk-R5CYKRA2.js → chunk-GKYAYLRI.js} +12 -12
- package/dist/cli/{chunk-UV4RU2TE.js → chunk-H4ALLC2X.js} +2 -0
- package/dist/cli/{chunk-LWHWMU4V.js → chunk-HO3XK3R7.js} +7 -7
- package/dist/cli/{chunk-E2QVWDDW.mjs → chunk-HYC4MKGK.mjs} +3 -3
- package/dist/cli/{chunk-KSUTNW3X.js → chunk-IDVVIXPJ.js} +42 -41
- package/dist/cli/{chunk-BJO7ZXAK.js → chunk-IHRKLXZN.js} +5 -5
- package/dist/cli/{chunk-ZQZOYGDC.mjs → chunk-IYSTRCLX.mjs} +5 -4
- package/dist/cli/{chunk-SMLWC7PM.js → chunk-JWUAX6OP.js} +10 -10
- package/dist/cli/{chunk-RKF263LR.js → chunk-KWSH5T7K.js} +25 -18
- package/dist/cli/{chunk-I62PCYU6.js → chunk-MF2GHZDO.js} +2 -2
- package/dist/cli/{chunk-XKE2PGZ2.js → chunk-PFO3ISXA.js} +26 -15
- package/dist/cli/{chunk-MXEYNRTZ.mjs → chunk-PTVD2GVQ.mjs} +6 -5
- package/dist/cli/{chunk-QD2KT7II.mjs → chunk-QAORXEY3.mjs} +2 -2
- package/dist/cli/{chunk-2AKS64KJ.mjs → chunk-QILKGXYF.mjs} +2 -2
- package/dist/cli/{chunk-DJWM5OOY.mjs → chunk-QPKH23EC.mjs} +4 -4
- package/dist/cli/{chunk-MAE3AKDR.mjs → chunk-QX7LFGJR.mjs} +18 -9
- package/dist/cli/{chunk-CIBQVA6V.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
- package/dist/cli/{chunk-MJDQZYKO.js → chunk-RBEUVDZF.js} +10 -6
- package/dist/cli/{chunk-RS6ZSKX6.js → chunk-RQZQVFCJ.js} +2 -2
- package/dist/cli/{chunk-QNWNR6DG.js → chunk-S46HWQKO.js} +53 -53
- package/dist/cli/{chunk-4NQWUUOH.mjs → chunk-S5S355UY.mjs} +2 -2
- package/dist/cli/{chunk-NM3AYEDI.js → chunk-SHLFOPD6.js} +5 -5
- package/dist/cli/{chunk-K7JZV4QW.mjs → chunk-U7QRMBIY.mjs} +2 -2
- package/dist/cli/{chunk-ECWOIXAV.js → chunk-UPMRIVZB.js} +14 -12
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
- package/dist/cli/{chunk-RINUMR6C.js → chunk-VQALXEXO.js} +20 -19
- package/dist/cli/{chunk-F2RXBNT5.mjs → chunk-WE5HES3H.mjs} +7 -5
- package/dist/cli/{chunk-GWNYLIF7.mjs → chunk-WEHCBH5R.mjs} +4 -2
- package/dist/cli/{chunk-SZNX3XU3.js → chunk-WLN3SUIA.js} +3 -3
- package/dist/cli/{chunk-3W44AJOE.js → chunk-XVB7V4N7.js} +18 -16
- package/dist/cli/{chunk-HEVUFICQ.mjs → chunk-YJHE3O5M.mjs} +9 -5
- package/dist/cli/{chunk-GVW5V562.mjs → chunk-YLTMXJFC.mjs} +7 -3
- package/dist/cli/{chunk-TL3WIXDH.mjs → chunk-Z5TSLLOW.mjs} +19 -8
- package/dist/cli/{chunk-KLQILE2I.mjs → chunk-ZIAXDBXX.mjs} +2 -2
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
- package/dist/cli/{concurrent-runs-help-766HVJR3.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +7 -7
- package/dist/cli/{csv-VU52KZOX.mjs → csv-2PTVDNO6.mjs} +10 -5
- package/dist/cli/{csv-4DZKGYCU.js → csv-F5VAGX4K.js} +19 -14
- package/dist/cli/{db-UBGW373S.mjs → db-IEDXAUF7.mjs} +6 -6
- package/dist/cli/{db-KPIH4HPW.js → db-Z3OIUFMM.js} +27 -27
- package/dist/cli/{describe-NGITP6RA.mjs → describe-QDANCTS3.mjs} +21 -21
- package/dist/cli/describe-VUTT5ZKU.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-G3X25U3V.js → executions-H6H5655J.js} +8 -8
- package/dist/cli/{executions-CO5UF3CV.mjs → executions-R3LP74QN.mjs} +6 -6
- package/dist/cli/{feedback-ZYF65WPH.js → feedback-VFOUR66B.js} +14 -14
- package/dist/cli/{feedback-M2L5DVN2.mjs → feedback-WL3MRVT5.mjs} +6 -6
- package/dist/cli/git-ETB3GH3K.js +25 -0
- package/dist/cli/{git-AYJD5CLS.mjs → git-YX2J4GCI.mjs} +5 -5
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-LKEGGTZO.mjs → integrations-5ZK5KLVP.mjs} +7 -7
- package/dist/cli/{integrations-GSXXJ4CF.js → integrations-E2JZYKHS.js} +15 -15
- package/dist/cli/{legacy-noops-MZDLLEKN.js → legacy-noops-3VW4IJTH.js} +9 -9
- package/dist/cli/{legacy-noops-UF4GKMD4.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
- package/dist/cli/{mcp-RTNC6LP3.js → mcp-UQV2K4EW.js} +24 -24
- package/dist/cli/{mcp-NHQ6RMBP.mjs → mcp-V6MGCYAG.mjs} +4 -4
- package/dist/cli/{monitors-NC4ZR5DH.mjs → monitors-GGKS5W6M.mjs} +7 -7
- package/dist/cli/{monitors-WMWB6EKQ.js → monitors-R3BBDCRC.js} +100 -100
- package/dist/cli/{org-33Q7CXJB.js → org-GRYVMNSW.js} +88 -88
- package/dist/cli/{org-ZXUSYREQ.mjs → org-Z37NGJV4.mjs} +6 -6
- package/dist/cli/{play-N24XV6TI.js → play-2MVO27VO.js} +332 -332
- package/dist/cli/{play-IPWFGNRE.mjs → play-MDWPR4XG.mjs} +19 -19
- package/dist/cli/{providers-AUI7MMQS.js → providers-2AACRUZH.js} +9 -9
- package/dist/cli/{providers-MSVE7UZS.mjs → providers-AKDYFZJZ.mjs} +6 -6
- package/dist/cli/{quickstart-PSC6VTRI.js → quickstart-H6IV3PV3.js} +6 -6
- package/dist/cli/{quickstart-OME5XMW5.mjs → quickstart-QDGRJFZY.mjs} +4 -4
- package/dist/cli/{run-UTIX7CJY.js → run-2634REDK.js} +47 -47
- package/dist/cli/{run-EYTT2DHO.mjs → run-RTSQNGRD.mjs} +26 -26
- package/dist/cli/{search-FVE7PM72.mjs → search-6AOJ4XPP.mjs} +7 -7
- package/dist/cli/search-VTW2YNBS.js +32 -0
- package/dist/cli/{search-output-TQMY6BDG.mjs → search-output-6ADMTOU5.mjs} +40 -10
- package/dist/cli/{search-output-O463JNLR.js → search-output-S5ODBL5E.js} +43 -13
- package/dist/cli/{secrets-TWZ2GO73.js → secrets-LHCIIHMT.js} +15 -15
- package/dist/cli/{secrets-KCJJAHQB.mjs → secrets-TFIFBFB3.mjs} +6 -6
- package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
- package/dist/cli/{sessions-ZCWAA7QL.mjs → sessions-WHBVUHVW.mjs} +6 -6
- package/dist/cli/{settings-SCR654U7.js → settings-CP4FVK2W.js} +85 -85
- package/dist/cli/{settings-4JFKCKII.mjs → settings-EBONWL5C.mjs} +12 -12
- package/dist/cli/{setup-Q2YOPGOI.mjs → setup-I5AZE3IU.mjs} +15 -10
- package/dist/cli/{setup-O6GH3UWT.js → setup-LFGHTNLQ.js} +55 -50
- package/dist/cli/skills-R7EBXREW.js +36 -0
- package/dist/cli/{skills-QHPZ6H2G.mjs → skills-W76AO5XE.mjs} +7 -7
- package/dist/cli/{tools-YO22H46E.mjs → tools-7IJHGF6W.mjs} +19 -19
- package/dist/cli/tools-V7U2BDXM.js +57 -0
- package/dist/cli/update-4COPZETK.js +34 -0
- package/dist/cli/{update-WHBC5IHE.mjs → update-GFOPZTHY.mjs} +9 -9
- package/dist/cli/{views-4CZJ5BLG.js → views-BPL2TQJ4.js} +21 -21
- package/dist/cli/{views-XNLXV2BT.mjs → views-D4NX4SBG.mjs} +6 -6
- package/dist/cli/{workflow-QUWP2CG2.mjs → workflow-YXP42FUI.mjs} +7 -7
- package/dist/cli/{workflow-C4VBARIE.js → workflow-ZYNAUCKC.js} +17 -17
- package/dist/{client-Ceo295L2.d.ts → client-Bf3IpUKN.d.ts} +1 -1
- package/dist/{client-BEJqhQAj.d.mts → client-CyXGrO4D.d.mts} +1 -1
- package/dist/{client-core-BPYuWfBC.d.ts → client-core-BWd0lX0Z.d.ts} +110 -4
- package/dist/{client-core-BqetRxx-.d.mts → client-core-BxsLnXlm.d.mts} +110 -4
- 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 +127 -126
- 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-J4OW5RNJ.js +0 -43
- package/dist/cli/chunk-NIPLY25A.mjs +0 -7
- package/dist/cli/concurrent-runs-help-3XZIHVRP.js +0 -21
- package/dist/cli/describe-4BI6E2CM.js +0 -50
- package/dist/cli/git-QRZP4DNA.js +0 -25
- package/dist/cli/search-CQ6JG2EN.js +0 -32
- package/dist/cli/sessions-LMPXUPUH.js +0 -22
- package/dist/cli/skills-M4CFE65Z.js +0 -36
- package/dist/cli/tools-CV7XA2V6.js +0 -57
- package/dist/cli/update-PUWBKPWJ.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk3FD5EQ62js = require('./chunk-3FD5EQ62.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRQZQVFCJjs = require('./chunk-RQZQVFCJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkRS6ZSKX6js = require('./chunk-RS6ZSKX6.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkADRC5I3Rjs = require('./chunk-ADRC5I3R.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
23
|
+
var _chunkMF2GHZDOjs = require('./chunk-MF2GHZDO.js');
|
|
24
|
+
require('./chunk-XVB7V4N7.js');
|
|
25
|
+
require('./chunk-77AAAGVB.js');
|
|
26
|
+
require('./chunk-IDVVIXPJ.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,17 +35,17 @@ require('./chunk-KSUTNW3X.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk4MK42735js = require('./chunk-4MK42735.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkWLN3SUIAjs = require('./chunk-WLN3SUIA.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
46
|
+
var _chunk4UUR4TCHjs = require('./chunk-4UUR4TCH.js');
|
|
47
|
+
require('./chunk-H4ALLC2X.js');
|
|
48
|
+
require('./chunk-V436Z54K.js');
|
|
49
49
|
require('./chunk-YGCKMI5P.js');
|
|
50
50
|
|
|
51
51
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,18 +73,18 @@ var _chunkRINUMR6Cjs = require('./chunk-RINUMR6C.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
|
|
85
85
|
require('./chunk-XNYIZMNQ.js');
|
|
86
86
|
require('./chunk-BBTKAASQ.js');
|
|
87
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-634ZDA3F.js');
|
|
88
88
|
require('./chunk-OG64RBAC.js');
|
|
89
89
|
require('./chunk-RLX5ZFNX.js');
|
|
90
90
|
require('./chunk-COGTRVWW.js');
|
|
@@ -165,64 +165,64 @@ var _os = require('os');
|
|
|
165
165
|
var COMMAND_GROUPS = [
|
|
166
166
|
{
|
|
167
167
|
names: ["auth"],
|
|
168
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMNVWATX.js")))).registerAuthCommands
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
names: ["providers"],
|
|
172
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-2AACRUZH.js")))).registerProviderCommands
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
names: ["integrations"],
|
|
176
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-E2JZYKHS.js")))).registerIntegrationsCommands
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
names: ["search"],
|
|
180
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-VTW2YNBS.js")))).registerSearchCommand
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
names: ["describe"],
|
|
184
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-VUTT5ZKU.js")))).registerDescribeCommand
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
names: ["run"],
|
|
188
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-2634REDK.js")))).registerRunCommand
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
names: ["tools"],
|
|
192
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-V7U2BDXM.js")))).registerToolsCommands
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
names: ["executions"],
|
|
196
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-H6H5655J.js")))).registerExecutionsCommands
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
names: ["plays", "runs"],
|
|
200
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2MVO27VO.js")))).registerPlayCommands
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
names: ["sessions"],
|
|
204
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-CJ4FJ2WB.js")))).registerSessionsCommands
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
names: ["workflows"],
|
|
208
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-ZYNAUCKC.js")))).registerWorkflowCommands
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
names: ["views"],
|
|
212
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-BPL2TQJ4.js")))).registerViewsCommands
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
names: ["secrets"],
|
|
216
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-LHCIIHMT.js")))).registerSecretsCommands
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
names: ["mcp"],
|
|
220
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-UQV2K4EW.js")))).registerMcpCommands
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
names: ["settings", "notifications"],
|
|
224
224
|
load: async () => {
|
|
225
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
225
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-CP4FVK2W.js")));
|
|
226
226
|
return (p) => {
|
|
227
227
|
commands.registerSettingsCommands(p);
|
|
228
228
|
commands.registerNotificationCommands(p);
|
|
@@ -231,51 +231,51 @@ var COMMAND_GROUPS = [
|
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
names: ["billing"],
|
|
234
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-FQREA7UA.js")))).registerBillingCommands
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
names: ["monitors"],
|
|
238
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-R3BBDCRC.js")))).registerMonitorsCommands
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
names: ["org"],
|
|
242
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-GRYVMNSW.js")))).registerOrgCommands
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
names: ["git", "projects", "deployments"],
|
|
246
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-ETB3GH3K.js")))).registerGitCommands
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
names: ["csv"],
|
|
250
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-F5VAGX4K.js")))).registerCsvCommands
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
names: ["db"],
|
|
254
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-Z3OIUFMM.js")))).registerDbCommands
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
names: ["feedback"],
|
|
258
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-VFOUR66B.js")))).registerFeedbackCommands
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
names: ["enrich", "session", "backend"],
|
|
262
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3VW4IJTH.js")))).registerDeprecatedCommands
|
|
263
263
|
},
|
|
264
264
|
{
|
|
265
265
|
names: ["update"],
|
|
266
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-4COPZETK.js")))).registerUpdateCommand
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
269
|
names: ["skills", "skills-auto-sync"],
|
|
270
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
270
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-R7EBXREW.js")))).registerSkillsCommand
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
names: ["setup", "doctor"],
|
|
274
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
274
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-LFGHTNLQ.js")))).registerSetupCommands
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
277
|
names: ["quickstart"],
|
|
278
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
278
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-H6IV3PV3.js")))).registerQuickstartCommands
|
|
279
279
|
}
|
|
280
280
|
];
|
|
281
281
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -301,8 +301,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
301
301
|
function createDeferredPlayRunMaintenance(input) {
|
|
302
302
|
return async () => {
|
|
303
303
|
try {
|
|
304
|
-
const skillsVersion =
|
|
305
|
-
const compatibility = await
|
|
304
|
+
const skillsVersion = _chunk7IKQKKNXjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
305
|
+
const compatibility = await _chunkMF2GHZDOjs.traceCliSpan.call(void 0,
|
|
306
306
|
"cli.sdk_compatibility_deferred",
|
|
307
307
|
{
|
|
308
308
|
baseUrl: input.baseUrl,
|
|
@@ -310,24 +310,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
310
310
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
311
311
|
},
|
|
312
312
|
async () => {
|
|
313
|
-
const trusted =
|
|
313
|
+
const trusted = _chunk4MK42735js.readTrustedCleanCompatibility.call(void 0,
|
|
314
314
|
input.baseUrl,
|
|
315
315
|
"plays run",
|
|
316
316
|
skillsVersion
|
|
317
317
|
);
|
|
318
318
|
if (trusted) return { response: trusted, error: null };
|
|
319
|
-
return
|
|
319
|
+
return _chunk4MK42735js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
320
320
|
command: "plays run",
|
|
321
321
|
skillsVersion,
|
|
322
322
|
persistCache: input.policy !== "off",
|
|
323
|
-
catalog:
|
|
323
|
+
catalog: _chunkADRC5I3Rjs.compatibilityCatalog.call(void 0, input.command)
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
);
|
|
327
327
|
if (compatibility.error || !compatibility.response) return;
|
|
328
328
|
const automaticUpdate = compatibility.response.auto_update;
|
|
329
329
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
330
|
-
await
|
|
330
|
+
await _chunkADRC5I3Rjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
331
331
|
compatibility.response,
|
|
332
332
|
input.baseUrl,
|
|
333
333
|
input.policy
|
|
@@ -337,7 +337,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
337
337
|
compatibility.response,
|
|
338
338
|
"skills"
|
|
339
339
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
340
|
-
await
|
|
340
|
+
await _chunk4MK42735js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
341
341
|
update: skillsUpdate,
|
|
342
342
|
mode: "detached"
|
|
343
343
|
});
|
|
@@ -365,8 +365,8 @@ var MAX_SESSIONS = 20;
|
|
|
365
365
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
366
366
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
367
367
|
}
|
|
368
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
369
|
-
const explicit =
|
|
368
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkRBEUVDZFjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
369
|
+
const explicit = _chunk4UUR4TCHjs.helpDetailFromArgv.call(void 0, argv);
|
|
370
370
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
371
371
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
372
372
|
const path = helpSeenPath(homeDir);
|
|
@@ -463,7 +463,7 @@ function shouldReport(stdout, stderr) {
|
|
|
463
463
|
}
|
|
464
464
|
function toolName(action) {
|
|
465
465
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
466
|
-
return typeof toolId === "string" ?
|
|
466
|
+
return typeof toolId === "string" ? _chunkVQALXEXOjs.redactFailureText.call(void 0, toolId) : null;
|
|
467
467
|
}
|
|
468
468
|
function chunkText(chunk) {
|
|
469
469
|
if (typeof chunk === "string") return chunk;
|
|
@@ -494,14 +494,14 @@ function watch(stream) {
|
|
|
494
494
|
}
|
|
495
495
|
async function postCommandOutput(body) {
|
|
496
496
|
try {
|
|
497
|
-
const baseUrl =
|
|
498
|
-
const apiKey =
|
|
497
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
498
|
+
const apiKey = _chunk7IKQKKNXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
499
499
|
if (!apiKey) return;
|
|
500
|
-
const agentSessionId =
|
|
500
|
+
const agentSessionId = _chunkRBEUVDZFjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
501
501
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
502
502
|
method: "POST",
|
|
503
503
|
headers: {
|
|
504
|
-
...
|
|
504
|
+
..._chunkVQALXEXOjs.failureReportHeaders.call(void 0, apiKey),
|
|
505
505
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
506
506
|
},
|
|
507
507
|
body: JSON.stringify(body),
|
|
@@ -517,14 +517,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
517
517
|
const stdoutWatch = watch(streams.stdout);
|
|
518
518
|
const stderrWatch = watch(streams.stderr);
|
|
519
519
|
return async (finished) => {
|
|
520
|
-
if (
|
|
520
|
+
if (_chunkVQALXEXOjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
521
521
|
const [stdout, stderr] = await Promise.all([
|
|
522
522
|
stdoutWatch.settled(),
|
|
523
523
|
stderrWatch.settled()
|
|
524
524
|
]);
|
|
525
525
|
if (!shouldReport(stdout, stderr)) return;
|
|
526
526
|
await postCommandOutput({
|
|
527
|
-
command:
|
|
527
|
+
command: _chunkVQALXEXOjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
528
528
|
tool: toolName(finished.action),
|
|
529
529
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
530
530
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -555,7 +555,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
555
555
|
function printUsageErrorJson(code, message, commandPath) {
|
|
556
556
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
557
557
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
558
|
-
|
|
558
|
+
_chunkVQALXEXOjs.printJson.call(void 0, {
|
|
559
559
|
ok: false,
|
|
560
560
|
error: {
|
|
561
561
|
code,
|
|
@@ -613,7 +613,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
615
|
async function runPlayRunnerHealthCheck() {
|
|
616
|
-
|
|
616
|
+
_chunk7IKQKKNXjs.resolveConfig.call(void 0, );
|
|
617
617
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
618
618
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
619
619
|
try {
|
|
@@ -643,7 +643,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
643
643
|
});
|
|
644
644
|
let exitCode = 1;
|
|
645
645
|
try {
|
|
646
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
646
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2MVO27VO.js")));
|
|
647
647
|
exitCode = await handlePlayRun([
|
|
648
648
|
file,
|
|
649
649
|
"--input",
|
|
@@ -683,7 +683,7 @@ function preflightErrorMessage(error) {
|
|
|
683
683
|
return error instanceof Error ? error.message : String(error);
|
|
684
684
|
}
|
|
685
685
|
async function runPreflightCheck() {
|
|
686
|
-
const baseUrl =
|
|
686
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
687
687
|
const healthController = new AbortController();
|
|
688
688
|
const healthTimeout = setTimeout(
|
|
689
689
|
() => healthController.abort(),
|
|
@@ -700,14 +700,14 @@ async function runPreflightCheck() {
|
|
|
700
700
|
}).catch((error) => ({
|
|
701
701
|
status: "unreachable",
|
|
702
702
|
version: null,
|
|
703
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
703
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkRBEUVDZFjs.connectionFailureMessage.call(void 0,
|
|
704
704
|
baseUrl,
|
|
705
705
|
error instanceof Error ? error : new Error(String(error))
|
|
706
706
|
)
|
|
707
707
|
})).finally(() => clearTimeout(healthTimeout));
|
|
708
|
-
const apiKey =
|
|
709
|
-
const http = apiKey ? new (0,
|
|
710
|
-
|
|
708
|
+
const apiKey = _chunk7IKQKKNXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
709
|
+
const http = apiKey ? new (0, _chunk7IKQKKNXjs.HttpClient)(
|
|
710
|
+
_chunk7IKQKKNXjs.resolveConfig.call(void 0, {
|
|
711
711
|
baseUrl,
|
|
712
712
|
apiKey,
|
|
713
713
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -752,7 +752,7 @@ async function runPreflightCheck() {
|
|
|
752
752
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
753
753
|
return {
|
|
754
754
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
755
|
-
cli_version:
|
|
755
|
+
cli_version: _chunkRBEUVDZFjs.SDK_VERSION,
|
|
756
756
|
host: baseUrl,
|
|
757
757
|
health: {
|
|
758
758
|
status: healthResult.status,
|
|
@@ -779,7 +779,7 @@ async function runPreflightCheck() {
|
|
|
779
779
|
{
|
|
780
780
|
title: "preflight",
|
|
781
781
|
lines: [
|
|
782
|
-
`cli: ${
|
|
782
|
+
`cli: ${_chunkRBEUVDZFjs.SDK_VERSION}`,
|
|
783
783
|
`host: ${baseUrl}`,
|
|
784
784
|
`health: ${healthResult.status}`,
|
|
785
785
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -806,12 +806,12 @@ function printPreflightHuman(data) {
|
|
|
806
806
|
}
|
|
807
807
|
async function newerCliCommandHint(baseUrl, command) {
|
|
808
808
|
if (!command.trim()) return null;
|
|
809
|
-
const { response, error } = await
|
|
809
|
+
const { response, error } = await _chunk4MK42735js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
810
810
|
if (error || !response) return null;
|
|
811
811
|
const introduced = response.command_introduced_in;
|
|
812
812
|
if (introduced) {
|
|
813
813
|
return [
|
|
814
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
814
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkRBEUVDZFjs.SDK_VERSION}.`,
|
|
815
815
|
` ${introduced.reason}`,
|
|
816
816
|
` Update with: ${response.update_command}`,
|
|
817
817
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -820,33 +820,33 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
820
820
|
if (!response.update_required) return null;
|
|
821
821
|
return [
|
|
822
822
|
response.message,
|
|
823
|
-
` Installed: ${
|
|
823
|
+
` Installed: ${_chunkRBEUVDZFjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
824
824
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
825
825
|
].join("\n");
|
|
826
826
|
}
|
|
827
827
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
828
828
|
const mainStartedAt = Date.now();
|
|
829
|
-
|
|
829
|
+
_chunkVQALXEXOjs.installJsonStderrGuard.call(void 0, );
|
|
830
830
|
let rootHelpStatus = "";
|
|
831
831
|
let concurrentRunsHelpStatus = "";
|
|
832
832
|
let commandFailed = false;
|
|
833
833
|
const deferredMaintenance = { inlinePlay: null };
|
|
834
|
-
|
|
834
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
835
835
|
phase: "cli.main_start",
|
|
836
836
|
argv: process.argv.slice(2)
|
|
837
837
|
});
|
|
838
838
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
839
|
-
const progress = printStartupPhase ?
|
|
839
|
+
const progress = printStartupPhase ? _chunkWLN3SUIAjs.createCliProgress.call(void 0, true) : null;
|
|
840
840
|
if (printStartupPhase) {
|
|
841
841
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
842
842
|
}
|
|
843
843
|
const program = new (0, _commander.Command)();
|
|
844
844
|
program.name("deepline").description(
|
|
845
845
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
846
|
-
).version(
|
|
846
|
+
).version(_chunkRBEUVDZFjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
847
847
|
"--maintenance <policy>",
|
|
848
848
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
849
|
-
|
|
849
|
+
_chunkMF2GHZDOjs.parseCliMaintenancePolicy,
|
|
850
850
|
"configured"
|
|
851
851
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
852
852
|
"beforeAll",
|
|
@@ -895,9 +895,9 @@ Exit codes:
|
|
|
895
895
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
896
896
|
`
|
|
897
897
|
).addHelpText("afterAll", ({ command }) => {
|
|
898
|
-
const key =
|
|
898
|
+
const key = _chunk4UUR4TCHjs.commandDocKey.call(void 0, command);
|
|
899
899
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
900
|
-
const explanation =
|
|
900
|
+
const explanation = _chunk4UUR4TCHjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
901
901
|
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
902
902
|
});
|
|
903
903
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
@@ -906,25 +906,25 @@ Exit codes:
|
|
|
906
906
|
path: compatibilityCommand,
|
|
907
907
|
args: actionCommand.processedArgs
|
|
908
908
|
});
|
|
909
|
-
const maintenance =
|
|
909
|
+
const maintenance = _chunkMF2GHZDOjs.resolveCliMaintenancePolicy.call(void 0,
|
|
910
910
|
actionCommand.optsWithGlobals()
|
|
911
911
|
);
|
|
912
912
|
if (actionCommand.name() !== "version") {
|
|
913
913
|
await ensureTransport();
|
|
914
914
|
}
|
|
915
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
915
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk4MK42735js.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(
|
|
916
916
|
compatibilityCommand
|
|
917
|
-
) &&
|
|
917
|
+
) && _chunkRQZQVFCJjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
920
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
921
921
|
if (isToolExecuteCommand) {
|
|
922
|
-
|
|
922
|
+
_chunkADRC5I3Rjs.beginToolExecuteCommand.call(void 0, );
|
|
923
923
|
}
|
|
924
924
|
if (isToolExecuteCommand) {
|
|
925
|
-
const baseUrl =
|
|
926
|
-
if (maintenance !== "off")
|
|
927
|
-
|
|
925
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
926
|
+
if (maintenance !== "off") _chunk4MK42735js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
927
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
928
928
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
929
929
|
baseUrl,
|
|
930
930
|
command: compatibilityCommand
|
|
@@ -932,9 +932,9 @@ Exit codes:
|
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
934
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
935
|
-
if (!playDryRun &&
|
|
935
|
+
if (!playDryRun && _chunk3FD5EQ62js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
936
936
|
if (maintenance !== "off") {
|
|
937
|
-
const baseUrl =
|
|
937
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
938
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
939
939
|
baseUrl,
|
|
940
940
|
command: actionCommand,
|
|
@@ -943,27 +943,27 @@ Exit codes:
|
|
|
943
943
|
}
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
946
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkADRC5I3Rjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
947
947
|
if (printStartupPhase) {
|
|
948
948
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
949
949
|
}
|
|
950
950
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
951
|
-
const baseUrl =
|
|
952
|
-
if (maintenance !== "off")
|
|
951
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
952
|
+
if (maintenance !== "off") _chunk4MK42735js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
953
953
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
954
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
955
|
-
const trusted = isToolExecuteCommand ? null :
|
|
954
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunk7IKQKKNXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
955
|
+
const trusted = isToolExecuteCommand ? null : _chunk4MK42735js.readTrustedCleanCompatibility.call(void 0,
|
|
956
956
|
baseUrl,
|
|
957
957
|
compatibilityCommand,
|
|
958
958
|
skillsVersion
|
|
959
959
|
);
|
|
960
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
960
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunk4MK42735js.readFreshCleanCompatibility.call(void 0,
|
|
961
961
|
baseUrl,
|
|
962
962
|
compatibilityCommand,
|
|
963
963
|
skillsVersion
|
|
964
964
|
) !== null;
|
|
965
965
|
if (trusted) {
|
|
966
|
-
|
|
966
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
967
967
|
phase: "cli.sdk_compatibility",
|
|
968
968
|
ms: 0,
|
|
969
969
|
ok: true,
|
|
@@ -973,7 +973,7 @@ Exit codes:
|
|
|
973
973
|
source: "trusted_cache"
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
976
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkMF2GHZDOjs.traceCliSpan.call(void 0,
|
|
977
977
|
"cli.sdk_compatibility",
|
|
978
978
|
{
|
|
979
979
|
baseUrl,
|
|
@@ -981,12 +981,12 @@ Exit codes:
|
|
|
981
981
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
982
982
|
fastDeadline
|
|
983
983
|
},
|
|
984
|
-
() =>
|
|
984
|
+
() => _chunk4MK42735js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
985
985
|
command: compatibilityCommand,
|
|
986
986
|
skillsVersion,
|
|
987
987
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
988
|
-
catalog:
|
|
989
|
-
...fastDeadline ? { timeoutMs:
|
|
988
|
+
catalog: _chunkADRC5I3Rjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
989
|
+
...fastDeadline ? { timeoutMs: _chunk4MK42735js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
990
990
|
})
|
|
991
991
|
);
|
|
992
992
|
if (compatibility.error) {
|
|
@@ -997,7 +997,7 @@ Exit codes:
|
|
|
997
997
|
response: null
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
const relaunched = await
|
|
1000
|
+
const relaunched = await _chunkADRC5I3Rjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
1001
1001
|
compatibility.response,
|
|
1002
1002
|
baseUrl,
|
|
1003
1003
|
maintenance
|
|
@@ -1011,14 +1011,14 @@ Exit codes:
|
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
const policy = compatibility.response;
|
|
1014
|
-
const jsonOutput =
|
|
1015
|
-
|
|
1014
|
+
const jsonOutput = _chunkVQALXEXOjs.isJsonOutputMode.call(void 0, );
|
|
1015
|
+
_chunk4MK42735js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1016
1016
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1017
|
-
|
|
1017
|
+
_chunkADRC5I3Rjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunk4MK42735js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1018
1018
|
});
|
|
1019
1019
|
const advisory = compatibility.response;
|
|
1020
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1021
|
-
|
|
1020
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunk4MK42735js.isCiEnvironment.call(void 0, ) && !_chunkADRC5I3Rjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1021
|
+
_chunkVQALXEXOjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1022
1022
|
}
|
|
1023
1023
|
return {
|
|
1024
1024
|
shouldContinue: true,
|
|
@@ -1035,10 +1035,10 @@ Exit codes:
|
|
|
1035
1035
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1036
1036
|
await runStartupStage(
|
|
1037
1037
|
"agent skills sync",
|
|
1038
|
-
() =>
|
|
1038
|
+
() => _chunkMF2GHZDOjs.traceCliSpan.call(void 0,
|
|
1039
1039
|
"cli.sdk_skills_sync",
|
|
1040
1040
|
{ baseUrl: startup.baseUrl },
|
|
1041
|
-
() =>
|
|
1041
|
+
() => _chunk4MK42735js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1042
1042
|
update: skillsUpdate,
|
|
1043
1043
|
mode: "detached"
|
|
1044
1044
|
})
|
|
@@ -1052,16 +1052,16 @@ Exit codes:
|
|
|
1052
1052
|
);
|
|
1053
1053
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1054
1054
|
if (carriesFeedback) suppressOutputReport();
|
|
1055
|
-
const commandRegistrationStartedAt =
|
|
1055
|
+
const commandRegistrationStartedAt = _chunkMF2GHZDOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1056
1056
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1057
1057
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1058
|
-
|
|
1058
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
1059
1059
|
phase: "cli.command_registration",
|
|
1060
1060
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1064
|
-
if (
|
|
1064
|
+
if (_chunkVQALXEXOjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1065
1065
|
preflight.addHelpText(
|
|
1066
1066
|
"after",
|
|
1067
1067
|
`
|
|
@@ -1077,8 +1077,8 @@ Examples:
|
|
|
1077
1077
|
`
|
|
1078
1078
|
).action(async (options) => {
|
|
1079
1079
|
const data = await runPreflightCheck();
|
|
1080
|
-
if (
|
|
1081
|
-
|
|
1080
|
+
if (_chunkVQALXEXOjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1081
|
+
_chunkVQALXEXOjs.printJson.call(void 0, data);
|
|
1082
1082
|
} else {
|
|
1083
1083
|
printPreflightHuman(data);
|
|
1084
1084
|
}
|
|
@@ -1103,7 +1103,7 @@ Examples:
|
|
|
1103
1103
|
).action(async (options) => {
|
|
1104
1104
|
if (options.playRunner) {
|
|
1105
1105
|
const data = await runPlayRunnerHealthCheck();
|
|
1106
|
-
|
|
1106
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, data, {
|
|
1107
1107
|
json: options.json,
|
|
1108
1108
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1109
1109
|
`
|
|
@@ -1111,15 +1111,15 @@ Examples:
|
|
|
1111
1111
|
return;
|
|
1112
1112
|
}
|
|
1113
1113
|
try {
|
|
1114
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1115
|
-
const baseUrl =
|
|
1114
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMNVWATX.js")));
|
|
1115
|
+
const baseUrl = _chunk7IKQKKNXjs.resolveBaseUrlOnly.call(void 0, );
|
|
1116
1116
|
const [{ status, data }, banner] = await Promise.all([
|
|
1117
1117
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1118
1118
|
readStatusBanner(baseUrl)
|
|
1119
1119
|
]);
|
|
1120
1120
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1121
1121
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1122
|
-
|
|
1122
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
1123
1123
|
{ ...data, status_banner: banner },
|
|
1124
1124
|
{
|
|
1125
1125
|
json: options.json,
|
|
@@ -1147,16 +1147,16 @@ Examples:
|
|
|
1147
1147
|
`
|
|
1148
1148
|
).action((options) => {
|
|
1149
1149
|
if (options.json) {
|
|
1150
|
-
|
|
1150
|
+
_chunkVQALXEXOjs.printCompactJson.call(void 0, { version: _chunkRBEUVDZFjs.SDK_VERSION });
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
|
-
process.stdout.write(`deepline ${
|
|
1153
|
+
process.stdout.write(`deepline ${_chunkRBEUVDZFjs.SDK_VERSION}
|
|
1154
1154
|
`);
|
|
1155
1155
|
});
|
|
1156
1156
|
if (process.argv.slice(2).length === 0) {
|
|
1157
1157
|
program.outputHelp({ error: true });
|
|
1158
1158
|
console.error("\nerror: missing command (see usage above)");
|
|
1159
|
-
|
|
1159
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
1160
1160
|
phase: "cli.main_total",
|
|
1161
1161
|
ms: Date.now() - mainStartedAt,
|
|
1162
1162
|
ok: false,
|
|
@@ -1168,16 +1168,16 @@ Examples:
|
|
|
1168
1168
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1169
1169
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1170
1170
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1171
|
-
if (!
|
|
1172
|
-
const baseUrl =
|
|
1171
|
+
if (!_chunkVQALXEXOjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1172
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, );
|
|
1173
1173
|
await ensureTransport();
|
|
1174
1174
|
const versionHint = await newerCliCommandHint(
|
|
1175
1175
|
baseUrl,
|
|
1176
1176
|
requestedTopLevelCommand
|
|
1177
1177
|
);
|
|
1178
|
-
if (
|
|
1178
|
+
if (_chunkVQALXEXOjs.isJsonOutputMode.call(void 0, )) {
|
|
1179
1179
|
if (versionHint) {
|
|
1180
|
-
|
|
1180
|
+
_chunkVQALXEXOjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1181
1181
|
}
|
|
1182
1182
|
printUsageErrorJson(
|
|
1183
1183
|
"commander.unknownCommand",
|
|
@@ -1199,26 +1199,26 @@ Examples:
|
|
|
1199
1199
|
const helpArgs = process.argv.slice(2);
|
|
1200
1200
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1201
1201
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1202
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1203
|
-
rootHelpStatus = `Version: ${
|
|
1202
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMNVWATX.js")));
|
|
1203
|
+
rootHelpStatus = `Version: ${_chunkRBEUVDZFjs.SDK_VERSION}
|
|
1204
1204
|
${await authStatusLine()}
|
|
1205
1205
|
`;
|
|
1206
1206
|
}
|
|
1207
1207
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1208
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1208
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-FQAIHKKC.js")));
|
|
1209
1209
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1210
1210
|
await ensureTransport();
|
|
1211
1211
|
concurrentRunsHelpStatus = await read();
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
await program.parseAsync(process.argv);
|
|
1215
|
-
|
|
1215
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
1216
1216
|
phase: "cli.main_total",
|
|
1217
1217
|
ms: Date.now() - mainStartedAt,
|
|
1218
1218
|
ok: true
|
|
1219
1219
|
});
|
|
1220
1220
|
if (!carriesFeedback) {
|
|
1221
|
-
await
|
|
1221
|
+
await _chunkVQALXEXOjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1222
1222
|
argv: process.argv.slice(2),
|
|
1223
1223
|
startedAtMs: mainStartedAt,
|
|
1224
1224
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1227,14 +1227,14 @@ ${await authStatusLine()}
|
|
|
1227
1227
|
} catch (error) {
|
|
1228
1228
|
commandFailed = true;
|
|
1229
1229
|
const commanderError = asCommanderError(error);
|
|
1230
|
-
|
|
1230
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
1231
1231
|
phase: "cli.main_total",
|
|
1232
1232
|
ms: Date.now() - mainStartedAt,
|
|
1233
1233
|
ok: false,
|
|
1234
1234
|
error: error instanceof Error ? error.message : String(error)
|
|
1235
1235
|
});
|
|
1236
1236
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1237
|
-
const wantsJson =
|
|
1237
|
+
const wantsJson = _chunkVQALXEXOjs.isJsonOutputMode.call(void 0, );
|
|
1238
1238
|
if (commanderError) {
|
|
1239
1239
|
const grammarError = [
|
|
1240
1240
|
"commander.unknownCommand",
|
|
@@ -1245,12 +1245,12 @@ ${await authStatusLine()}
|
|
|
1245
1245
|
if (grammarError) {
|
|
1246
1246
|
await ensureTransport();
|
|
1247
1247
|
const versionHint = await newerCliCommandHint(
|
|
1248
|
-
|
|
1248
|
+
_chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ),
|
|
1249
1249
|
commandPath
|
|
1250
1250
|
);
|
|
1251
1251
|
if (wantsJson) {
|
|
1252
1252
|
if (versionHint) {
|
|
1253
|
-
|
|
1253
|
+
_chunkVQALXEXOjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1254
1254
|
}
|
|
1255
1255
|
} else {
|
|
1256
1256
|
if (versionHint) console.error(versionHint);
|
|
@@ -1270,43 +1270,43 @@ ${await authStatusLine()}
|
|
|
1270
1270
|
return;
|
|
1271
1271
|
} else if (wantsJson) {
|
|
1272
1272
|
if (error instanceof _chunkEITMD3A5js.AuthError) {
|
|
1273
|
-
|
|
1273
|
+
_chunkVQALXEXOjs.addJsonNotice.call(void 0, {
|
|
1274
1274
|
code: "auth_required",
|
|
1275
1275
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
|
-
const providerConcurrency =
|
|
1278
|
+
const providerConcurrency = _chunkVQALXEXOjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1279
1279
|
if (providerConcurrency) {
|
|
1280
|
-
|
|
1280
|
+
_chunkVQALXEXOjs.addJsonNotice.call(void 0, {
|
|
1281
1281
|
code: "provider_concurrency",
|
|
1282
1282
|
message: providerConcurrency
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
|
-
const payload =
|
|
1286
|
-
|
|
1285
|
+
const payload = _chunkVQALXEXOjs.errorToJsonPayload.call(void 0, error);
|
|
1286
|
+
_chunkVQALXEXOjs.printJson.call(void 0, {
|
|
1287
1287
|
...payload,
|
|
1288
1288
|
// The envelope names the code the process exits with, so a caller
|
|
1289
1289
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1290
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1290
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkVQALXEXOjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1291
1291
|
...error instanceof _chunkEITMD3A5js.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1292
1292
|
});
|
|
1293
1293
|
} else if (error instanceof Error) {
|
|
1294
1294
|
console.error(`Error: ${error.message}`);
|
|
1295
|
-
const toolDiagnostic =
|
|
1295
|
+
const toolDiagnostic = _chunkVQALXEXOjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1296
1296
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1297
1297
|
if (error instanceof _chunkEITMD3A5js.AuthError) {
|
|
1298
1298
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1299
1299
|
}
|
|
1300
|
-
const providerConcurrency =
|
|
1300
|
+
const providerConcurrency = _chunkVQALXEXOjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1301
1301
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1302
1302
|
} else {
|
|
1303
1303
|
console.error(`Error: ${String(error)}`);
|
|
1304
1304
|
}
|
|
1305
1305
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1306
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1306
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkVQALXEXOjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1307
1307
|
process.exitCode = failureExitCode;
|
|
1308
1308
|
if (!carriesFeedback) {
|
|
1309
|
-
await
|
|
1309
|
+
await _chunkVQALXEXOjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1310
1310
|
argv: process.argv.slice(2),
|
|
1311
1311
|
startedAtMs: mainStartedAt,
|
|
1312
1312
|
exitCode: failureExitCode,
|
|
@@ -1314,13 +1314,13 @@ ${await authStatusLine()}
|
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
} finally {
|
|
1317
|
-
|
|
1317
|
+
_chunkADRC5I3Rjs.finishToolExecuteCommand.call(void 0, );
|
|
1318
1318
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1319
1319
|
deferredMaintenance.inlinePlay = null;
|
|
1320
1320
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1321
1321
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1322
1322
|
}
|
|
1323
|
-
await
|
|
1323
|
+
await _chunkADRC5I3Rjs.runDeferredAutoUpdate.call(void 0, );
|
|
1324
1324
|
}
|
|
1325
1325
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1326
1326
|
}
|
|
@@ -1328,7 +1328,7 @@ async function main() {
|
|
|
1328
1328
|
let disposeTransport;
|
|
1329
1329
|
const ensureTransport = async () => {
|
|
1330
1330
|
if (disposeTransport) return;
|
|
1331
|
-
const transportStartedAt =
|
|
1331
|
+
const transportStartedAt = _chunkMF2GHZDOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1332
1332
|
const hasProxy = [
|
|
1333
1333
|
"HTTP_PROXY",
|
|
1334
1334
|
"http_proxy",
|
|
@@ -1340,7 +1340,7 @@ async function main() {
|
|
|
1340
1340
|
disposeTransport = configureCliTransport();
|
|
1341
1341
|
}
|
|
1342
1342
|
if (transportStartedAt !== void 0) {
|
|
1343
|
-
|
|
1343
|
+
_chunkMF2GHZDOjs.recordCliTrace.call(void 0, {
|
|
1344
1344
|
phase: "cli.transport_setup",
|
|
1345
1345
|
ms: performance.now() - transportStartedAt
|
|
1346
1346
|
});
|
|
@@ -1363,9 +1363,9 @@ async function main() {
|
|
|
1363
1363
|
skipOutputReport = true;
|
|
1364
1364
|
}
|
|
1365
1365
|
);
|
|
1366
|
-
const silentFailure =
|
|
1366
|
+
const silentFailure = _chunkVQALXEXOjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1367
1367
|
if (silentFailure) {
|
|
1368
|
-
|
|
1368
|
+
_chunkVQALXEXOjs.printJson.call(void 0, {
|
|
1369
1369
|
ok: false,
|
|
1370
1370
|
exitCode: Number(process.exitCode),
|
|
1371
1371
|
error: { code: "CLI_ERROR", message: silentFailure }
|