deepline 0.3.535 → 0.3.536
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 +232 -147
- package/dist/bundling-sources/sdk/src/index.ts +4 -0
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -23
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
- package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +88 -96
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +127 -9
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +84 -49
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -32
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
- package/dist/cli/auth-6XQKFOLG.js +43 -0
- package/dist/cli/{auth-ZCTMB5RA.mjs → auth-KCTCUO7P.mjs} +7 -7
- package/dist/cli/{billing-GVFKZQH3.js → billing-4VBGZ3CT.js} +273 -112
- package/dist/cli/{billing-OU2ZHL72.mjs → billing-OOJHKLNS.mjs} +185 -24
- package/dist/cli/{chunk-FGN75ZN6.js → chunk-2B4IOGFD.js} +390 -382
- package/dist/cli/{chunk-KOZBZPRM.js → chunk-2FCSUOYN.js} +55 -55
- package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
- package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-2YWJS76L.mjs} +1 -1
- package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
- package/dist/cli/{chunk-UUQ2OXMH.js → chunk-4E5JXZ3W.js} +18 -20
- package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
- package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
- package/dist/cli/{chunk-PHLNYBAA.js → chunk-6VUGBQZQ.js} +5 -5
- package/dist/cli/{chunk-G2DLG32W.mjs → chunk-AB2GBOD4.mjs} +40 -27
- package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-ANUKBZ6W.mjs} +475 -11
- package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-BASLYGXK.mjs} +85 -77
- package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
- package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
- package/dist/cli/{chunk-PI5R65OQ.js → chunk-CIDN5K23.js} +1 -1
- package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
- package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
- package/dist/cli/{chunk-D4MHCCIR.js → chunk-CWSLUNA6.js} +33 -33
- package/dist/cli/{chunk-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
- package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-DA2I2M7D.mjs} +2 -2
- package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-DQHUJMCL.mjs} +5 -5
- package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-DUYAMLOC.mjs} +1 -1
- package/dist/cli/{chunk-K53NKWZO.mjs → chunk-E24UGPGG.mjs} +13 -15
- package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
- package/dist/cli/{chunk-7R5DAANG.mjs → chunk-GF32SBST.mjs} +1 -1
- package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-GHLDCLSC.mjs} +1 -1
- package/dist/cli/{chunk-ZUVE63Y7.js → chunk-GTVZKY3F.js} +2 -2
- package/dist/cli/{chunk-J75DANZY.mjs → chunk-HAJQGP5V.mjs} +2 -2
- package/dist/cli/{chunk-RFQWSH6I.js → chunk-HWDKRN7L.js} +3 -3
- package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
- package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
- package/dist/cli/{chunk-K76AEBFY.mjs → chunk-JUHDJNSI.mjs} +4 -4
- package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-KPQHUVYW.mjs} +5 -5
- package/dist/cli/{chunk-6LHX33VN.js → chunk-KWYGWO4Y.js} +9 -6
- package/dist/cli/{chunk-7PXP2FQK.js → chunk-LDGZFDUB.js} +2 -2
- package/dist/cli/{chunk-KWGXHPHL.js → chunk-LN6RXDTB.js} +523 -59
- package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-LZXZQPA2.mjs} +4 -1
- package/dist/cli/{chunk-2D6SWQTK.js → chunk-MSP4DTSD.js} +13 -13
- package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
- package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-OUDTOMZC.mjs} +7 -9
- package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
- package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-PNY3BWHP.mjs} +2 -2
- package/dist/cli/{chunk-DYIWDUY4.js → chunk-Q4MNUOS4.js} +316 -303
- package/dist/cli/{chunk-5EKNDNFQ.js → chunk-Q5CXV3E3.js} +2 -2
- package/dist/cli/{chunk-W6T23EUC.mjs → chunk-RVSSQPQO.mjs} +1 -1
- package/dist/cli/{chunk-WNNA4L6Z.js → chunk-SLPJ3LXI.js} +22 -22
- package/dist/cli/{chunk-K3IPGMGP.js → chunk-TX5TUHJN.js} +17 -19
- package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
- package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
- package/dist/cli/{chunk-4NLRWKZB.js → chunk-VBDZIMWD.js} +26 -26
- package/dist/cli/{chunk-DAPKLYST.js → chunk-W7AEIGZR.js} +41 -41
- package/dist/cli/{chunk-LVISZFYO.mjs → chunk-WC5M3JXE.mjs} +2 -2
- package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
- package/dist/cli/{chunk-243O3FH5.js → chunk-XBAH3TKU.js} +5 -5
- package/dist/cli/{chunk-DFJODFMC.mjs → chunk-XJD2GYUP.mjs} +5 -5
- package/dist/cli/{chunk-BF65LB7X.mjs → chunk-XVZRJJDS.mjs} +4 -4
- package/dist/cli/{chunk-OM732MGV.js → chunk-Y2NTPYGS.js} +17 -17
- package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-YBMHOH6H.mjs} +4 -4
- package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-YRLAUGQY.mjs} +3 -3
- package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
- package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Z7UIOGW4.mjs} +3 -3
- package/dist/cli/{chunk-HYBZWSSH.js → chunk-ZEV2Y56V.js} +44 -44
- package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
- package/dist/cli/{chunk-HWPOXCCK.js → chunk-ZILSRDIN.js} +8 -8
- package/dist/cli/{chunk-CIDATNTY.js → chunk-ZISEH7OL.js} +16 -16
- package/dist/cli/{chunk-KA6ZERJL.js → chunk-ZZ4MF2GI.js} +6 -6
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CD55KEIO.js → csv-2V2DIFNG.js} +15 -15
- package/dist/cli/{csv-CLPVMIRF.mjs → csv-P3HLK4GO.mjs} +6 -6
- package/dist/cli/{db-MQKLDAEO.js → db-MREAQVW6.js} +36 -36
- package/dist/cli/{db-AU4SMWUN.mjs → db-ZYOY3QRQ.mjs} +9 -9
- package/dist/cli/describe-IKZFOADR.mjs +49 -0
- package/dist/cli/describe-WW3OQRLP.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-77GOLWRM.js → executions-H5IJ7QSQ.js} +11 -11
- package/dist/cli/{executions-TFIJPUX7.mjs → executions-KTSY5M34.mjs} +9 -9
- package/dist/cli/{feedback-OV5YAL3A.js → feedback-724QK3Z5.js} +16 -16
- package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-WWJRIXEU.mjs} +8 -8
- package/dist/cli/git-PHYRD56H.js +25 -0
- package/dist/cli/{git-VNS4ATLZ.mjs → git-R5VRG7X6.mjs} +7 -7
- package/dist/cli/index.js +151 -157
- package/dist/cli/index.mjs +51 -57
- package/dist/cli/{legacy-noops-HDOB5C6F.js → legacy-noops-C6GDEGPU.js} +11 -11
- package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
- package/dist/cli/{monitors-5IUMHH3E.js → monitors-VAVQ4WCE.js} +125 -122
- package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-WQSKMHAP.mjs} +19 -16
- package/dist/cli/{org-ADW2EVAC.js → org-CWWRWXZQ.js} +89 -89
- package/dist/cli/{org-G4YGZPHS.mjs → org-MAL4QPVF.mjs} +9 -9
- package/dist/cli/{play-7GQ56C2D.mjs → play-ILW6MSNG.mjs} +123 -76
- package/dist/cli/{play-EHSOSSHT.js → play-WJOWK5PQ.js} +641 -594
- package/dist/cli/{providers-WL3YTCSV.mjs → providers-4V2NMLZZ.mjs} +9 -9
- package/dist/cli/{providers-PWCF6OOO.js → providers-W662ANCH.js} +12 -12
- package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-BW6EBUYX.js} +8 -8
- package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-C22BR743.mjs} +6 -6
- package/dist/cli/{run-XZPWA6JS.js → run-KW7KW4FX.js} +50 -53
- package/dist/cli/{run-ZCNZU3K2.mjs → run-SPAU5IMW.mjs} +31 -34
- package/dist/cli/search-HLE54W5G.js +32 -0
- package/dist/cli/{search-CVLVSFMJ.mjs → search-XPC75HLM.mjs} +10 -11
- package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-JKYJSEPM.mjs} +6 -6
- package/dist/cli/{search-output-7HRSSRBS.js → search-output-VJYE7USJ.js} +8 -8
- package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-OJG73GXQ.mjs} +9 -9
- package/dist/cli/{secrets-IYD5VKY4.js → secrets-YB57KGSB.js} +18 -18
- package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-7ZL37BW4.mjs} +8 -8
- package/dist/cli/sessions-VEBYZIEU.js +22 -0
- package/dist/cli/{settings-CANK4HJQ.js → settings-A7DD2ZYE.js} +88 -89
- package/dist/cli/{settings-BN5MJZ3C.mjs → settings-RKSQB7FA.mjs} +15 -16
- package/dist/cli/{setup-JNMSCCU4.mjs → setup-NXDUTITY.mjs} +11 -12
- package/dist/cli/{setup-YSGKGLSJ.js → setup-S3K5YU62.js} +51 -52
- package/dist/cli/skills-NVQ744CN.js +36 -0
- package/dist/cli/{skills-QCQN2UM2.mjs → skills-VMFAIDO6.mjs} +9 -10
- package/dist/cli/{tools-CDPOID7V.mjs → tools-52NTHBSJ.mjs} +20 -21
- package/dist/cli/tools-SBDUL3WB.js +56 -0
- package/dist/cli/update-HHVFZPCV.js +34 -0
- package/dist/cli/{update-D3ZERUQ3.mjs → update-SAKBEKMV.mjs} +11 -12
- package/dist/cli/{views-RDZRWQBQ.mjs → views-ACRV7MD6.mjs} +54 -10
- package/dist/cli/{views-4NV2KQKA.js → views-C3GJOBDG.js} +66 -22
- package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-CS22E7TC.mjs} +10 -10
- package/dist/cli/{workflow-RABJCAZC.js → workflow-ZNWCZEGN.js} +20 -20
- package/dist/{client-DhSvMO3A.d.mts → client-BlLYQDNo.d.mts} +1 -1
- package/dist/{client-oGNJMQFd.d.ts → client-DSQlkIDO.d.ts} +1 -1
- package/dist/{client-core-CdWH6Sii.d.ts → client-core-CDwapXy5.d.ts} +159 -108
- package/dist/{client-core-CVG1Et-4.d.mts → client-core-rX7n2H8U.d.mts} +159 -108
- package/dist/{compiler-manifest-D2ZlBGxj.d.ts → compiler-manifest-BHNC4RL-.d.mts} +15 -22
- package/dist/{compiler-manifest-D2ZlBGxj.d.mts → compiler-manifest-BHNC4RL-.d.ts} +15 -22
- package/dist/{errors-B-gOQdj-.d.mts → errors-D7sPXrvB.d.mts} +1 -1
- package/dist/{errors-CB0KAmmV.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
- package/dist/{index-c3nvUGCS.d.ts → index-CQTBHXHr.d.ts} +1 -1
- package/dist/{index-BbJADro4.d.mts → index-NaDZq2xf.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/index.mjs +11 -11
- package/dist/install-integrity.json +129 -132
- package/dist/monitor-fleet-contract.d.mts +17 -11
- package/dist/monitor-fleet-contract.d.ts +17 -11
- package/dist/monitor-fleet-contract.js +3 -3
- package/dist/monitor-fleet-contract.mjs +2 -2
- package/dist/monitor-input-contract.js +2 -2
- package/dist/monitor-input-contract.mjs +1 -1
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +17 -5
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +12 -12
- package/dist/server.mjs +6 -6
- package/package.json +1 -1
- package/dist/cli/auth-VDCU3T6A.js +0 -43
- package/dist/cli/chunk-4QELPWUW.mjs +0 -405
- package/dist/cli/chunk-T7RBM2WX.js +0 -405
- package/dist/cli/describe-5BFNHT5V.js +0 -50
- package/dist/cli/describe-AWJUXE2U.mjs +0 -50
- package/dist/cli/git-HGMX52XU.js +0 -25
- package/dist/cli/pages-KXKWSCEV.mjs +0 -266
- package/dist/cli/pages-VTJGAI2D.js +0 -266
- package/dist/cli/search-J6EY7DQN.js +0 -33
- package/dist/cli/sessions-7HPIVSQ4.js +0 -22
- package/dist/cli/skills-WDGSSKJZ.js +0 -37
- package/dist/cli/tools-URNVXSTZ.js +0 -57
- package/dist/cli/update-Q6JW32IA.js +0 -35
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 _chunkZZ4MF2GIjs = require('./chunk-ZZ4MF2GI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGTVZKY3Fjs = require('./chunk-GTVZKY3F.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkZUVE63Y7js = require('./chunk-ZUVE63Y7.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSLPJ3LXIjs = require('./chunk-SLPJ3LXI.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 _chunkLDGZFDUBjs = require('./chunk-LDGZFDUB.js');
|
|
24
|
+
require('./chunk-ZISEH7OL.js');
|
|
25
|
+
require('./chunk-Q5CXV3E3.js');
|
|
26
|
+
require('./chunk-W7AEIGZR.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,25 +35,24 @@ require('./chunk-DAPKLYST.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkZEV2Y56Vjs = require('./chunk-ZEV2Y56V.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkHWDKRN7Ljs = require('./chunk-HWDKRN7L.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
var _chunk6BBGUQJJjs = require('./chunk-6BBGUQJJ.js');
|
|
47
|
+
require('./chunk-R7J7CJPZ.js');
|
|
48
|
+
require('./chunk-YGCKMI5P.js');
|
|
46
49
|
|
|
47
50
|
|
|
48
51
|
|
|
49
|
-
var _chunkT7RBM2WXjs = require('./chunk-T7RBM2WX.js');
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
|
|
54
|
-
var _chunkXSOTEVOBjs = require('./chunk-XSOTEVOB.js');
|
|
55
|
-
require('./chunk-R7J7CJPZ.js');
|
|
56
|
-
require('./chunk-YGCKMI5P.js');
|
|
57
56
|
|
|
58
57
|
|
|
59
58
|
|
|
@@ -65,27 +64,26 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
64
|
|
|
66
65
|
|
|
67
66
|
|
|
67
|
+
var _chunkLN6RXDTBjs = require('./chunk-LN6RXDTB.js');
|
|
68
68
|
|
|
69
|
-
var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
|
|
70
69
|
|
|
71
70
|
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
|
|
75
74
|
|
|
75
|
+
var _chunkZILSRDINjs = require('./chunk-ZILSRDIN.js');
|
|
76
76
|
|
|
77
|
-
var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
|
|
78
77
|
|
|
79
78
|
|
|
80
79
|
|
|
80
|
+
var _chunkCWSLUNA6js = require('./chunk-CWSLUNA6.js');
|
|
81
81
|
|
|
82
|
-
var _chunkD4MHCCIRjs = require('./chunk-D4MHCCIR.js');
|
|
83
82
|
|
|
84
|
-
|
|
85
|
-
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
83
|
+
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
86
84
|
require('./chunk-XNYIZMNQ.js');
|
|
87
|
-
require('./chunk-
|
|
88
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-BBTKAASQ.js');
|
|
86
|
+
require('./chunk-CIDN5K23.js');
|
|
89
87
|
require('./chunk-OG64RBAC.js');
|
|
90
88
|
require('./chunk-RLX5ZFNX.js');
|
|
91
89
|
require('./chunk-COGTRVWW.js');
|
|
@@ -166,60 +164,56 @@ var _os = require('os');
|
|
|
166
164
|
var COMMAND_GROUPS = [
|
|
167
165
|
{
|
|
168
166
|
names: ["auth"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
167
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-6XQKFOLG.js")))).registerAuthCommands
|
|
170
168
|
},
|
|
171
169
|
{
|
|
172
170
|
names: ["providers"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
171
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-W662ANCH.js")))).registerProviderCommands
|
|
174
172
|
},
|
|
175
173
|
{
|
|
176
174
|
names: ["search"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
175
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-HLE54W5G.js")))).registerSearchCommand
|
|
178
176
|
},
|
|
179
177
|
{
|
|
180
178
|
names: ["describe"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
179
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WW3OQRLP.js")))).registerDescribeCommand
|
|
182
180
|
},
|
|
183
181
|
{
|
|
184
182
|
names: ["run"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
183
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-KW7KW4FX.js")))).registerRunCommand
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
names: ["tools"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
187
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-SBDUL3WB.js")))).registerToolsCommands
|
|
190
188
|
},
|
|
191
189
|
{
|
|
192
190
|
names: ["executions"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
191
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-H5IJ7QSQ.js")))).registerExecutionsCommands
|
|
194
192
|
},
|
|
195
193
|
{
|
|
196
194
|
names: ["plays", "runs"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
195
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-WJOWK5PQ.js")))).registerPlayCommands
|
|
198
196
|
},
|
|
199
197
|
{
|
|
200
198
|
names: ["sessions"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
199
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-VEBYZIEU.js")))).registerSessionsCommands
|
|
202
200
|
},
|
|
203
201
|
{
|
|
204
202
|
names: ["workflows"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
names: ["pages"],
|
|
209
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-VTJGAI2D.js")))).registerPagesCommands
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-ZNWCZEGN.js")))).registerWorkflowCommands
|
|
210
204
|
},
|
|
211
205
|
{
|
|
212
206
|
names: ["views"],
|
|
213
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-C3GJOBDG.js")))).registerViewsCommands
|
|
214
208
|
},
|
|
215
209
|
{
|
|
216
210
|
names: ["secrets"],
|
|
217
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-YB57KGSB.js")))).registerSecretsCommands
|
|
218
212
|
},
|
|
219
213
|
{
|
|
220
214
|
names: ["settings", "notifications"],
|
|
221
215
|
load: async () => {
|
|
222
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
216
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-A7DD2ZYE.js")));
|
|
223
217
|
return (p) => {
|
|
224
218
|
commands.registerSettingsCommands(p);
|
|
225
219
|
commands.registerNotificationCommands(p);
|
|
@@ -228,51 +222,51 @@ var COMMAND_GROUPS = [
|
|
|
228
222
|
},
|
|
229
223
|
{
|
|
230
224
|
names: ["billing"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
225
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-4VBGZ3CT.js")))).registerBillingCommands
|
|
232
226
|
},
|
|
233
227
|
{
|
|
234
228
|
names: ["monitors"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
229
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-VAVQ4WCE.js")))).registerMonitorsCommands
|
|
236
230
|
},
|
|
237
231
|
{
|
|
238
232
|
names: ["org"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
233
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-CWWRWXZQ.js")))).registerOrgCommands
|
|
240
234
|
},
|
|
241
235
|
{
|
|
242
236
|
names: ["git", "projects", "deployments"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
237
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-PHYRD56H.js")))).registerGitCommands
|
|
244
238
|
},
|
|
245
239
|
{
|
|
246
240
|
names: ["csv"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
241
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-2V2DIFNG.js")))).registerCsvCommands
|
|
248
242
|
},
|
|
249
243
|
{
|
|
250
244
|
names: ["db"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
245
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-MREAQVW6.js")))).registerDbCommands
|
|
252
246
|
},
|
|
253
247
|
{
|
|
254
248
|
names: ["feedback"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
249
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-724QK3Z5.js")))).registerFeedbackCommands
|
|
256
250
|
},
|
|
257
251
|
{
|
|
258
252
|
names: ["enrich", "session", "backend"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
253
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-C6GDEGPU.js")))).registerDeprecatedCommands
|
|
260
254
|
},
|
|
261
255
|
{
|
|
262
256
|
names: ["update"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
257
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-HHVFZPCV.js")))).registerUpdateCommand
|
|
264
258
|
},
|
|
265
259
|
{
|
|
266
260
|
names: ["skills", "skills-auto-sync"],
|
|
267
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
261
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-NVQ744CN.js")))).registerSkillsCommand
|
|
268
262
|
},
|
|
269
263
|
{
|
|
270
264
|
names: ["setup", "doctor"],
|
|
271
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
265
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-S3K5YU62.js")))).registerSetupCommands
|
|
272
266
|
},
|
|
273
267
|
{
|
|
274
268
|
names: ["quickstart"],
|
|
275
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
269
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-BW6EBUYX.js")))).registerQuickstartCommands
|
|
276
270
|
}
|
|
277
271
|
];
|
|
278
272
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -298,8 +292,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
298
292
|
function createDeferredPlayRunMaintenance(input) {
|
|
299
293
|
return async () => {
|
|
300
294
|
try {
|
|
301
|
-
const skillsVersion =
|
|
302
|
-
const compatibility = await
|
|
295
|
+
const skillsVersion = _chunkZILSRDINjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
296
|
+
const compatibility = await _chunkLDGZFDUBjs.traceCliSpan.call(void 0,
|
|
303
297
|
"cli.sdk_compatibility_deferred",
|
|
304
298
|
{
|
|
305
299
|
baseUrl: input.baseUrl,
|
|
@@ -307,24 +301,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
307
301
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
308
302
|
},
|
|
309
303
|
async () => {
|
|
310
|
-
const trusted =
|
|
304
|
+
const trusted = _chunkZEV2Y56Vjs.readTrustedCleanCompatibility.call(void 0,
|
|
311
305
|
input.baseUrl,
|
|
312
306
|
"plays run",
|
|
313
307
|
skillsVersion
|
|
314
308
|
);
|
|
315
309
|
if (trusted) return { response: trusted, error: null };
|
|
316
|
-
return
|
|
310
|
+
return _chunkZEV2Y56Vjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
317
311
|
command: "plays run",
|
|
318
312
|
skillsVersion,
|
|
319
313
|
persistCache: input.policy !== "off",
|
|
320
|
-
catalog:
|
|
314
|
+
catalog: _chunkSLPJ3LXIjs.compatibilityCatalog.call(void 0, input.command)
|
|
321
315
|
});
|
|
322
316
|
}
|
|
323
317
|
);
|
|
324
318
|
if (compatibility.error || !compatibility.response) return;
|
|
325
319
|
const automaticUpdate = compatibility.response.auto_update;
|
|
326
320
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
327
|
-
await
|
|
321
|
+
await _chunkSLPJ3LXIjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
328
322
|
compatibility.response,
|
|
329
323
|
input.baseUrl,
|
|
330
324
|
input.policy
|
|
@@ -334,7 +328,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
334
328
|
compatibility.response,
|
|
335
329
|
"skills"
|
|
336
330
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
337
|
-
await
|
|
331
|
+
await _chunkZEV2Y56Vjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
338
332
|
update: skillsUpdate,
|
|
339
333
|
mode: "detached"
|
|
340
334
|
});
|
|
@@ -362,8 +356,8 @@ var MAX_SESSIONS = 20;
|
|
|
362
356
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
363
357
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
364
358
|
}
|
|
365
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
366
|
-
const explicit =
|
|
359
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkCWSLUNA6js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
360
|
+
const explicit = _chunk6BBGUQJJjs.helpDetailFromArgv.call(void 0, argv);
|
|
367
361
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
368
362
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
369
363
|
const path = helpSeenPath(homeDir);
|
|
@@ -460,7 +454,7 @@ function shouldReport(stdout, stderr) {
|
|
|
460
454
|
}
|
|
461
455
|
function toolName(action) {
|
|
462
456
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
463
|
-
return typeof toolId === "string" ?
|
|
457
|
+
return typeof toolId === "string" ? _chunkLN6RXDTBjs.redactFailureText.call(void 0, toolId) : null;
|
|
464
458
|
}
|
|
465
459
|
function chunkText(chunk) {
|
|
466
460
|
if (typeof chunk === "string") return chunk;
|
|
@@ -491,14 +485,14 @@ function watch(stream) {
|
|
|
491
485
|
}
|
|
492
486
|
async function postCommandOutput(body) {
|
|
493
487
|
try {
|
|
494
|
-
const baseUrl =
|
|
495
|
-
const apiKey =
|
|
488
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
489
|
+
const apiKey = _chunkZILSRDINjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
496
490
|
if (!apiKey) return;
|
|
497
|
-
const agentSessionId =
|
|
491
|
+
const agentSessionId = _chunkCWSLUNA6js.agentSessionIdFromEnvironment.call(void 0, );
|
|
498
492
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
499
493
|
method: "POST",
|
|
500
494
|
headers: {
|
|
501
|
-
...
|
|
495
|
+
..._chunkLN6RXDTBjs.failureReportHeaders.call(void 0, apiKey),
|
|
502
496
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
503
497
|
},
|
|
504
498
|
body: JSON.stringify(body),
|
|
@@ -514,14 +508,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
514
508
|
const stdoutWatch = watch(streams.stdout);
|
|
515
509
|
const stderrWatch = watch(streams.stderr);
|
|
516
510
|
return async (finished) => {
|
|
517
|
-
if (
|
|
511
|
+
if (_chunkLN6RXDTBjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
518
512
|
const [stdout, stderr] = await Promise.all([
|
|
519
513
|
stdoutWatch.settled(),
|
|
520
514
|
stderrWatch.settled()
|
|
521
515
|
]);
|
|
522
516
|
if (!shouldReport(stdout, stderr)) return;
|
|
523
517
|
await postCommandOutput({
|
|
524
|
-
command:
|
|
518
|
+
command: _chunkLN6RXDTBjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
525
519
|
tool: toolName(finished.action),
|
|
526
520
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
527
521
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -552,7 +546,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
552
546
|
function printUsageErrorJson(code, message, commandPath) {
|
|
553
547
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
554
548
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
555
|
-
|
|
549
|
+
_chunkLN6RXDTBjs.printJson.call(void 0, {
|
|
556
550
|
ok: false,
|
|
557
551
|
error: {
|
|
558
552
|
code,
|
|
@@ -610,7 +604,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
610
604
|
);
|
|
611
605
|
}
|
|
612
606
|
async function runPlayRunnerHealthCheck() {
|
|
613
|
-
|
|
607
|
+
_chunkZILSRDINjs.resolveConfig.call(void 0, );
|
|
614
608
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
615
609
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
616
610
|
try {
|
|
@@ -640,7 +634,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
640
634
|
});
|
|
641
635
|
let exitCode = 1;
|
|
642
636
|
try {
|
|
643
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
637
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-WJOWK5PQ.js")));
|
|
644
638
|
exitCode = await handlePlayRun([
|
|
645
639
|
file,
|
|
646
640
|
"--input",
|
|
@@ -680,7 +674,7 @@ function preflightErrorMessage(error) {
|
|
|
680
674
|
return error instanceof Error ? error.message : String(error);
|
|
681
675
|
}
|
|
682
676
|
async function runPreflightCheck() {
|
|
683
|
-
const baseUrl =
|
|
677
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
684
678
|
const healthController = new AbortController();
|
|
685
679
|
const healthTimeout = setTimeout(
|
|
686
680
|
() => healthController.abort(),
|
|
@@ -697,14 +691,14 @@ async function runPreflightCheck() {
|
|
|
697
691
|
}).catch((error) => ({
|
|
698
692
|
status: "unreachable",
|
|
699
693
|
version: null,
|
|
700
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
694
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkCWSLUNA6js.connectionFailureMessage.call(void 0,
|
|
701
695
|
baseUrl,
|
|
702
696
|
error instanceof Error ? error : new Error(String(error))
|
|
703
697
|
)
|
|
704
698
|
})).finally(() => clearTimeout(healthTimeout));
|
|
705
|
-
const apiKey =
|
|
706
|
-
const http = apiKey ? new (0,
|
|
707
|
-
|
|
699
|
+
const apiKey = _chunkZILSRDINjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
|
+
const http = apiKey ? new (0, _chunkZILSRDINjs.HttpClient)(
|
|
701
|
+
_chunkZILSRDINjs.resolveConfig.call(void 0, {
|
|
708
702
|
baseUrl,
|
|
709
703
|
apiKey,
|
|
710
704
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -749,7 +743,7 @@ async function runPreflightCheck() {
|
|
|
749
743
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
750
744
|
return {
|
|
751
745
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
752
|
-
cli_version:
|
|
746
|
+
cli_version: _chunkCWSLUNA6js.SDK_VERSION,
|
|
753
747
|
host: baseUrl,
|
|
754
748
|
health: {
|
|
755
749
|
status: healthResult.status,
|
|
@@ -776,7 +770,7 @@ async function runPreflightCheck() {
|
|
|
776
770
|
{
|
|
777
771
|
title: "preflight",
|
|
778
772
|
lines: [
|
|
779
|
-
`cli: ${
|
|
773
|
+
`cli: ${_chunkCWSLUNA6js.SDK_VERSION}`,
|
|
780
774
|
`host: ${baseUrl}`,
|
|
781
775
|
`health: ${healthResult.status}`,
|
|
782
776
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -803,12 +797,12 @@ function printPreflightHuman(data) {
|
|
|
803
797
|
}
|
|
804
798
|
async function newerCliCommandHint(baseUrl, command) {
|
|
805
799
|
if (!command.trim()) return null;
|
|
806
|
-
const { response, error } = await
|
|
800
|
+
const { response, error } = await _chunkZEV2Y56Vjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
807
801
|
if (error || !response) return null;
|
|
808
802
|
const introduced = response.command_introduced_in;
|
|
809
803
|
if (introduced) {
|
|
810
804
|
return [
|
|
811
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
805
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkCWSLUNA6js.SDK_VERSION}.`,
|
|
812
806
|
` ${introduced.reason}`,
|
|
813
807
|
` Update with: ${response.update_command}`,
|
|
814
808
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -817,32 +811,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
817
811
|
if (!response.update_required) return null;
|
|
818
812
|
return [
|
|
819
813
|
response.message,
|
|
820
|
-
` Installed: ${
|
|
814
|
+
` Installed: ${_chunkCWSLUNA6js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
821
815
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
822
816
|
].join("\n");
|
|
823
817
|
}
|
|
824
818
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
825
819
|
const mainStartedAt = Date.now();
|
|
826
|
-
|
|
820
|
+
_chunkLN6RXDTBjs.installJsonStderrGuard.call(void 0, );
|
|
827
821
|
let rootHelpStatus = "";
|
|
828
822
|
let commandFailed = false;
|
|
829
823
|
const deferredMaintenance = { inlinePlay: null };
|
|
830
|
-
|
|
824
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
831
825
|
phase: "cli.main_start",
|
|
832
826
|
argv: process.argv.slice(2)
|
|
833
827
|
});
|
|
834
828
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
835
|
-
const progress = printStartupPhase ?
|
|
829
|
+
const progress = printStartupPhase ? _chunkHWDKRN7Ljs.createCliProgress.call(void 0, true) : null;
|
|
836
830
|
if (printStartupPhase) {
|
|
837
831
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
838
832
|
}
|
|
839
833
|
const program = new (0, _commander.Command)();
|
|
840
834
|
program.name("deepline").description(
|
|
841
835
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
842
|
-
).version(
|
|
836
|
+
).version(_chunkCWSLUNA6js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
843
837
|
"--maintenance <policy>",
|
|
844
838
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
845
|
-
|
|
839
|
+
_chunkLDGZFDUBjs.parseCliMaintenancePolicy,
|
|
846
840
|
"configured"
|
|
847
841
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
848
842
|
"beforeAll",
|
|
@@ -854,7 +848,7 @@ Common commands:
|
|
|
854
848
|
deepline health
|
|
855
849
|
deepline auth status
|
|
856
850
|
deepline sessions send --current-session
|
|
857
|
-
deepline search "name and company domain -> work email"
|
|
851
|
+
deepline search "name and company domain -> work email"
|
|
858
852
|
deepline describe person-linkedin-to-email
|
|
859
853
|
deepline run my.play.ts --input '{"domain":"stripe.com"}'
|
|
860
854
|
deepline secrets check HUBSPOT_TOKEN
|
|
@@ -891,9 +885,9 @@ Exit codes:
|
|
|
891
885
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
892
886
|
`
|
|
893
887
|
).addHelpText("afterAll", ({ command }) => {
|
|
894
|
-
const key =
|
|
888
|
+
const key = _chunk6BBGUQJJjs.commandDocKey.call(void 0, command);
|
|
895
889
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
896
|
-
return
|
|
890
|
+
return _chunk6BBGUQJJjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
897
891
|
});
|
|
898
892
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
899
893
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -901,25 +895,25 @@ Exit codes:
|
|
|
901
895
|
path: compatibilityCommand,
|
|
902
896
|
args: actionCommand.processedArgs
|
|
903
897
|
});
|
|
904
|
-
const maintenance =
|
|
898
|
+
const maintenance = _chunkLDGZFDUBjs.resolveCliMaintenancePolicy.call(void 0,
|
|
905
899
|
actionCommand.optsWithGlobals()
|
|
906
900
|
);
|
|
907
901
|
if (actionCommand.name() !== "version") {
|
|
908
902
|
await ensureTransport();
|
|
909
903
|
}
|
|
910
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
904
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkZEV2Y56Vjs.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
905
|
compatibilityCommand
|
|
912
|
-
) &&
|
|
906
|
+
) && _chunkGTVZKY3Fjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
913
907
|
return;
|
|
914
908
|
}
|
|
915
909
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
916
910
|
if (isToolExecuteCommand) {
|
|
917
|
-
|
|
911
|
+
_chunkSLPJ3LXIjs.beginToolExecuteCommand.call(void 0, );
|
|
918
912
|
}
|
|
919
913
|
if (isToolExecuteCommand) {
|
|
920
|
-
const baseUrl =
|
|
921
|
-
if (maintenance !== "off")
|
|
922
|
-
|
|
914
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
915
|
+
if (maintenance !== "off") _chunkZEV2Y56Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
916
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
923
917
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
924
918
|
baseUrl,
|
|
925
919
|
command: compatibilityCommand
|
|
@@ -927,9 +921,9 @@ Exit codes:
|
|
|
927
921
|
return;
|
|
928
922
|
}
|
|
929
923
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
930
|
-
if (!playDryRun &&
|
|
924
|
+
if (!playDryRun && _chunkZZ4MF2GIjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
931
925
|
if (maintenance !== "off") {
|
|
932
|
-
const baseUrl =
|
|
926
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
933
927
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
934
928
|
baseUrl,
|
|
935
929
|
command: actionCommand,
|
|
@@ -938,27 +932,27 @@ Exit codes:
|
|
|
938
932
|
}
|
|
939
933
|
return;
|
|
940
934
|
}
|
|
941
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
935
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
942
936
|
if (printStartupPhase) {
|
|
943
937
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
944
938
|
}
|
|
945
939
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
946
|
-
const baseUrl =
|
|
947
|
-
if (maintenance !== "off")
|
|
940
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
941
|
+
if (maintenance !== "off") _chunkZEV2Y56Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
948
942
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
949
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
950
|
-
const trusted = isToolExecuteCommand ? null :
|
|
943
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkZILSRDINjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
944
|
+
const trusted = isToolExecuteCommand ? null : _chunkZEV2Y56Vjs.readTrustedCleanCompatibility.call(void 0,
|
|
951
945
|
baseUrl,
|
|
952
946
|
compatibilityCommand,
|
|
953
947
|
skillsVersion
|
|
954
948
|
);
|
|
955
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
949
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkZEV2Y56Vjs.readFreshCleanCompatibility.call(void 0,
|
|
956
950
|
baseUrl,
|
|
957
951
|
compatibilityCommand,
|
|
958
952
|
skillsVersion
|
|
959
953
|
) !== null;
|
|
960
954
|
if (trusted) {
|
|
961
|
-
|
|
955
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
962
956
|
phase: "cli.sdk_compatibility",
|
|
963
957
|
ms: 0,
|
|
964
958
|
ok: true,
|
|
@@ -968,7 +962,7 @@ Exit codes:
|
|
|
968
962
|
source: "trusted_cache"
|
|
969
963
|
});
|
|
970
964
|
}
|
|
971
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
965
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkLDGZFDUBjs.traceCliSpan.call(void 0,
|
|
972
966
|
"cli.sdk_compatibility",
|
|
973
967
|
{
|
|
974
968
|
baseUrl,
|
|
@@ -976,12 +970,12 @@ Exit codes:
|
|
|
976
970
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
977
971
|
fastDeadline
|
|
978
972
|
},
|
|
979
|
-
() =>
|
|
973
|
+
() => _chunkZEV2Y56Vjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
980
974
|
command: compatibilityCommand,
|
|
981
975
|
skillsVersion,
|
|
982
976
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
983
|
-
catalog:
|
|
984
|
-
...fastDeadline ? { timeoutMs:
|
|
977
|
+
catalog: _chunkSLPJ3LXIjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
978
|
+
...fastDeadline ? { timeoutMs: _chunkZEV2Y56Vjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
985
979
|
})
|
|
986
980
|
);
|
|
987
981
|
if (compatibility.error) {
|
|
@@ -992,7 +986,7 @@ Exit codes:
|
|
|
992
986
|
response: null
|
|
993
987
|
};
|
|
994
988
|
}
|
|
995
|
-
const relaunched = await
|
|
989
|
+
const relaunched = await _chunkSLPJ3LXIjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
996
990
|
compatibility.response,
|
|
997
991
|
baseUrl,
|
|
998
992
|
maintenance
|
|
@@ -1006,14 +1000,14 @@ Exit codes:
|
|
|
1006
1000
|
};
|
|
1007
1001
|
}
|
|
1008
1002
|
const policy = compatibility.response;
|
|
1009
|
-
const jsonOutput =
|
|
1010
|
-
|
|
1003
|
+
const jsonOutput = _chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, );
|
|
1004
|
+
_chunkZEV2Y56Vjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1011
1005
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1012
|
-
|
|
1006
|
+
_chunkSLPJ3LXIjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkZEV2Y56Vjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1013
1007
|
});
|
|
1014
1008
|
const advisory = compatibility.response;
|
|
1015
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1016
|
-
|
|
1009
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkZEV2Y56Vjs.isCiEnvironment.call(void 0, ) && !_chunkSLPJ3LXIjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1010
|
+
_chunkLN6RXDTBjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1017
1011
|
}
|
|
1018
1012
|
return {
|
|
1019
1013
|
shouldContinue: true,
|
|
@@ -1030,10 +1024,10 @@ Exit codes:
|
|
|
1030
1024
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1031
1025
|
await runStartupStage(
|
|
1032
1026
|
"agent skills sync",
|
|
1033
|
-
() =>
|
|
1027
|
+
() => _chunkLDGZFDUBjs.traceCliSpan.call(void 0,
|
|
1034
1028
|
"cli.sdk_skills_sync",
|
|
1035
1029
|
{ baseUrl: startup.baseUrl },
|
|
1036
|
-
() =>
|
|
1030
|
+
() => _chunkZEV2Y56Vjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1037
1031
|
update: skillsUpdate,
|
|
1038
1032
|
mode: "detached"
|
|
1039
1033
|
})
|
|
@@ -1047,16 +1041,16 @@ Exit codes:
|
|
|
1047
1041
|
);
|
|
1048
1042
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1049
1043
|
if (carriesFeedback) suppressOutputReport();
|
|
1050
|
-
const commandRegistrationStartedAt =
|
|
1044
|
+
const commandRegistrationStartedAt = _chunkLDGZFDUBjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1051
1045
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1052
1046
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1053
|
-
|
|
1047
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
1054
1048
|
phase: "cli.command_registration",
|
|
1055
1049
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1056
1050
|
});
|
|
1057
1051
|
}
|
|
1058
1052
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1059
|
-
if (
|
|
1053
|
+
if (_chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1060
1054
|
preflight.addHelpText(
|
|
1061
1055
|
"after",
|
|
1062
1056
|
`
|
|
@@ -1072,8 +1066,8 @@ Examples:
|
|
|
1072
1066
|
`
|
|
1073
1067
|
).action(async (options) => {
|
|
1074
1068
|
const data = await runPreflightCheck();
|
|
1075
|
-
if (
|
|
1076
|
-
|
|
1069
|
+
if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1070
|
+
_chunkLN6RXDTBjs.printJson.call(void 0, data);
|
|
1077
1071
|
} else {
|
|
1078
1072
|
printPreflightHuman(data);
|
|
1079
1073
|
}
|
|
@@ -1098,7 +1092,7 @@ Examples:
|
|
|
1098
1092
|
).action(async (options) => {
|
|
1099
1093
|
if (options.playRunner) {
|
|
1100
1094
|
const data = await runPlayRunnerHealthCheck();
|
|
1101
|
-
|
|
1095
|
+
_chunkLN6RXDTBjs.printCommandEnvelope.call(void 0, data, {
|
|
1102
1096
|
json: options.json,
|
|
1103
1097
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1104
1098
|
`
|
|
@@ -1106,15 +1100,15 @@ Examples:
|
|
|
1106
1100
|
return;
|
|
1107
1101
|
}
|
|
1108
1102
|
try {
|
|
1109
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1110
|
-
const baseUrl =
|
|
1103
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-6XQKFOLG.js")));
|
|
1104
|
+
const baseUrl = _chunkZILSRDINjs.resolveBaseUrlOnly.call(void 0, );
|
|
1111
1105
|
const [{ status, data }, banner] = await Promise.all([
|
|
1112
1106
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1113
1107
|
readStatusBanner(baseUrl)
|
|
1114
1108
|
]);
|
|
1115
1109
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1116
1110
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1117
|
-
|
|
1111
|
+
_chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
|
|
1118
1112
|
{ ...data, status_banner: banner },
|
|
1119
1113
|
{
|
|
1120
1114
|
json: options.json,
|
|
@@ -1142,16 +1136,16 @@ Examples:
|
|
|
1142
1136
|
`
|
|
1143
1137
|
).action((options) => {
|
|
1144
1138
|
if (options.json) {
|
|
1145
|
-
|
|
1139
|
+
_chunkLN6RXDTBjs.printCompactJson.call(void 0, { version: _chunkCWSLUNA6js.SDK_VERSION });
|
|
1146
1140
|
return;
|
|
1147
1141
|
}
|
|
1148
|
-
process.stdout.write(`deepline ${
|
|
1142
|
+
process.stdout.write(`deepline ${_chunkCWSLUNA6js.SDK_VERSION}
|
|
1149
1143
|
`);
|
|
1150
1144
|
});
|
|
1151
1145
|
if (process.argv.slice(2).length === 0) {
|
|
1152
1146
|
program.outputHelp({ error: true });
|
|
1153
1147
|
console.error("\nerror: missing command (see usage above)");
|
|
1154
|
-
|
|
1148
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
1155
1149
|
phase: "cli.main_total",
|
|
1156
1150
|
ms: Date.now() - mainStartedAt,
|
|
1157
1151
|
ok: false,
|
|
@@ -1163,16 +1157,16 @@ Examples:
|
|
|
1163
1157
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1164
1158
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1165
1159
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1166
|
-
if (!
|
|
1167
|
-
const baseUrl =
|
|
1160
|
+
if (!_chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1161
|
+
const baseUrl = _chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, );
|
|
1168
1162
|
await ensureTransport();
|
|
1169
1163
|
const versionHint = await newerCliCommandHint(
|
|
1170
1164
|
baseUrl,
|
|
1171
1165
|
requestedTopLevelCommand
|
|
1172
1166
|
);
|
|
1173
|
-
if (
|
|
1167
|
+
if (_chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, )) {
|
|
1174
1168
|
if (versionHint) {
|
|
1175
|
-
|
|
1169
|
+
_chunkLN6RXDTBjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1176
1170
|
}
|
|
1177
1171
|
printUsageErrorJson(
|
|
1178
1172
|
"commander.unknownCommand",
|
|
@@ -1194,19 +1188,19 @@ Examples:
|
|
|
1194
1188
|
const helpArgs = process.argv.slice(2);
|
|
1195
1189
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1196
1190
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1197
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1198
|
-
rootHelpStatus = `Version: ${
|
|
1191
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-6XQKFOLG.js")));
|
|
1192
|
+
rootHelpStatus = `Version: ${_chunkCWSLUNA6js.SDK_VERSION}
|
|
1199
1193
|
${await authStatusLine()}
|
|
1200
1194
|
`;
|
|
1201
1195
|
}
|
|
1202
1196
|
await program.parseAsync(process.argv);
|
|
1203
|
-
|
|
1197
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
1204
1198
|
phase: "cli.main_total",
|
|
1205
1199
|
ms: Date.now() - mainStartedAt,
|
|
1206
1200
|
ok: true
|
|
1207
1201
|
});
|
|
1208
1202
|
if (!carriesFeedback) {
|
|
1209
|
-
await
|
|
1203
|
+
await _chunkLN6RXDTBjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1210
1204
|
argv: process.argv.slice(2),
|
|
1211
1205
|
startedAtMs: mainStartedAt,
|
|
1212
1206
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1215,14 +1209,14 @@ ${await authStatusLine()}
|
|
|
1215
1209
|
} catch (error) {
|
|
1216
1210
|
commandFailed = true;
|
|
1217
1211
|
const commanderError = asCommanderError(error);
|
|
1218
|
-
|
|
1212
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
1219
1213
|
phase: "cli.main_total",
|
|
1220
1214
|
ms: Date.now() - mainStartedAt,
|
|
1221
1215
|
ok: false,
|
|
1222
1216
|
error: error instanceof Error ? error.message : String(error)
|
|
1223
1217
|
});
|
|
1224
1218
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1225
|
-
const wantsJson =
|
|
1219
|
+
const wantsJson = _chunkLN6RXDTBjs.isJsonOutputMode.call(void 0, );
|
|
1226
1220
|
if (commanderError) {
|
|
1227
1221
|
const grammarError = [
|
|
1228
1222
|
"commander.unknownCommand",
|
|
@@ -1233,12 +1227,12 @@ ${await authStatusLine()}
|
|
|
1233
1227
|
if (grammarError) {
|
|
1234
1228
|
await ensureTransport();
|
|
1235
1229
|
const versionHint = await newerCliCommandHint(
|
|
1236
|
-
|
|
1230
|
+
_chunkZILSRDINjs.autoDetectBaseUrl.call(void 0, ),
|
|
1237
1231
|
commandPath
|
|
1238
1232
|
);
|
|
1239
1233
|
if (wantsJson) {
|
|
1240
1234
|
if (versionHint) {
|
|
1241
|
-
|
|
1235
|
+
_chunkLN6RXDTBjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1242
1236
|
}
|
|
1243
1237
|
} else {
|
|
1244
1238
|
if (versionHint) console.error(versionHint);
|
|
@@ -1257,44 +1251,44 @@ ${await authStatusLine()}
|
|
|
1257
1251
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1258
1252
|
return;
|
|
1259
1253
|
} else if (wantsJson) {
|
|
1260
|
-
if (error instanceof
|
|
1261
|
-
|
|
1254
|
+
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1255
|
+
_chunkLN6RXDTBjs.addJsonNotice.call(void 0, {
|
|
1262
1256
|
code: "auth_required",
|
|
1263
1257
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1264
1258
|
});
|
|
1265
1259
|
}
|
|
1266
|
-
const providerConcurrency =
|
|
1260
|
+
const providerConcurrency = _chunkLN6RXDTBjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1267
1261
|
if (providerConcurrency) {
|
|
1268
|
-
|
|
1262
|
+
_chunkLN6RXDTBjs.addJsonNotice.call(void 0, {
|
|
1269
1263
|
code: "provider_concurrency",
|
|
1270
1264
|
message: providerConcurrency
|
|
1271
1265
|
});
|
|
1272
1266
|
}
|
|
1273
|
-
const payload =
|
|
1274
|
-
|
|
1267
|
+
const payload = _chunkLN6RXDTBjs.errorToJsonPayload.call(void 0, error);
|
|
1268
|
+
_chunkLN6RXDTBjs.printJson.call(void 0, {
|
|
1275
1269
|
...payload,
|
|
1276
1270
|
// The envelope names the code the process exits with, so a caller
|
|
1277
1271
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1278
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1279
|
-
...error instanceof
|
|
1272
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkLN6RXDTBjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1273
|
+
...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1280
1274
|
});
|
|
1281
1275
|
} else if (error instanceof Error) {
|
|
1282
1276
|
console.error(`Error: ${error.message}`);
|
|
1283
|
-
const toolDiagnostic =
|
|
1277
|
+
const toolDiagnostic = _chunkLN6RXDTBjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1284
1278
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1285
|
-
if (error instanceof
|
|
1279
|
+
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1286
1280
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1287
1281
|
}
|
|
1288
|
-
const providerConcurrency =
|
|
1282
|
+
const providerConcurrency = _chunkLN6RXDTBjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1289
1283
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1290
1284
|
} else {
|
|
1291
1285
|
console.error(`Error: ${String(error)}`);
|
|
1292
1286
|
}
|
|
1293
1287
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1294
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1288
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkLN6RXDTBjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1295
1289
|
process.exitCode = failureExitCode;
|
|
1296
1290
|
if (!carriesFeedback) {
|
|
1297
|
-
await
|
|
1291
|
+
await _chunkLN6RXDTBjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1298
1292
|
argv: process.argv.slice(2),
|
|
1299
1293
|
startedAtMs: mainStartedAt,
|
|
1300
1294
|
exitCode: failureExitCode,
|
|
@@ -1302,13 +1296,13 @@ ${await authStatusLine()}
|
|
|
1302
1296
|
});
|
|
1303
1297
|
}
|
|
1304
1298
|
} finally {
|
|
1305
|
-
|
|
1299
|
+
_chunkSLPJ3LXIjs.finishToolExecuteCommand.call(void 0, );
|
|
1306
1300
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1307
1301
|
deferredMaintenance.inlinePlay = null;
|
|
1308
1302
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1309
1303
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1310
1304
|
}
|
|
1311
|
-
await
|
|
1305
|
+
await _chunkSLPJ3LXIjs.runDeferredAutoUpdate.call(void 0, );
|
|
1312
1306
|
}
|
|
1313
1307
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1314
1308
|
}
|
|
@@ -1316,7 +1310,7 @@ async function main() {
|
|
|
1316
1310
|
let disposeTransport;
|
|
1317
1311
|
const ensureTransport = async () => {
|
|
1318
1312
|
if (disposeTransport) return;
|
|
1319
|
-
const transportStartedAt =
|
|
1313
|
+
const transportStartedAt = _chunkLDGZFDUBjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1320
1314
|
const hasProxy = [
|
|
1321
1315
|
"HTTP_PROXY",
|
|
1322
1316
|
"http_proxy",
|
|
@@ -1328,7 +1322,7 @@ async function main() {
|
|
|
1328
1322
|
disposeTransport = configureCliTransport();
|
|
1329
1323
|
}
|
|
1330
1324
|
if (transportStartedAt !== void 0) {
|
|
1331
|
-
|
|
1325
|
+
_chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
|
|
1332
1326
|
phase: "cli.transport_setup",
|
|
1333
1327
|
ms: performance.now() - transportStartedAt
|
|
1334
1328
|
});
|
|
@@ -1351,9 +1345,9 @@ async function main() {
|
|
|
1351
1345
|
skipOutputReport = true;
|
|
1352
1346
|
}
|
|
1353
1347
|
);
|
|
1354
|
-
const silentFailure =
|
|
1348
|
+
const silentFailure = _chunkLN6RXDTBjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1355
1349
|
if (silentFailure) {
|
|
1356
|
-
|
|
1350
|
+
_chunkLN6RXDTBjs.printJson.call(void 0, {
|
|
1357
1351
|
ok: false,
|
|
1358
1352
|
exitCode: Number(process.exitCode),
|
|
1359
1353
|
error: { code: "CLI_ERROR", message: silentFailure }
|